lolcat - rainbow coloring for text
This commit is contained in:
parent
70e5bfbfc4
commit
8e33140d34
|
@ -6,6 +6,8 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
|||
ME="${0##*/}"
|
||||
|
||||
if [[ "$1" == "RAZ" ]]; then
|
||||
echo "~/.SSB_ORIGIN is made for $(whoami)"
|
||||
[[ -d ~/.ssb_$(whoami) ]] && mv ~/.ssb_$(whoami) ~/.SSB_ORIGIN
|
||||
rm -Rf ~/.ssb*
|
||||
else
|
||||
echo '
|
||||
|
@ -48,7 +50,7 @@ fi
|
|||
[[ ! -d ~/.zen/astroport ]] && mkdir -p ~/.zen/astroport
|
||||
|
||||
# IS git THERE ?
|
||||
[[ ! $(which git) ]] && sudo apt install git -y
|
||||
[[ ! $(which git) ]] && sudo apt install git lolcat -y
|
||||
|
||||
# USE git pull OR git clone
|
||||
if [[ -f ~/.zen/astroport/install.sh ]]; then
|
||||
|
@ -69,7 +71,7 @@ echo '
|
|||
/_/ /_/\____/\__,_/\___/ __/ /____/
|
||||
/___/
|
||||
|
||||
'
|
||||
' | lolcat
|
||||
if [[ ! $(which node) ]]; then
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
||||
source ~/.bashrc
|
||||
|
@ -81,14 +83,14 @@ if [[ ! $(which node) ]]; then
|
|||
nvm use 12
|
||||
fi
|
||||
|
||||
echo "
|
||||
echo '
|
||||
____ ___ _____ _________
|
||||
/ __ \/ | / ___// _/ ___/
|
||||
/ / / / /| | \__ \ / / \__ \
|
||||
/ /_/ / ___ |___/ // / ___/ /
|
||||
\____/_/ |_/____/___//____/
|
||||
|
||||
"
|
||||
' | lolcat
|
||||
nodename=$(cat /etc/hostname)
|
||||
extension=$(echo $nodename | cut -d '.' -f 2)
|
||||
if [[ $extension == $nodename ]]; then
|
||||
|
@ -124,7 +126,7 @@ echo '**************************************************************
|
|||
__) _|_ |_ |\ /--\ \_|
|
||||
|
||||
#Duniter communication client...
|
||||
'
|
||||
' | lolcat
|
||||
export PATH=$PATH:~/.local/bin
|
||||
if [[ ! $(which silkaj) ]]; then
|
||||
sudo apt update || true
|
||||
|
@ -145,8 +147,8 @@ echo '
|
|||
(__ ) /_/ / /_/ / /_/ /__
|
||||
/____/_.___/\____/\__/\___/
|
||||
|
||||
ScuttleButt communication client...
|
||||
'
|
||||
ScuttleButt communication client...
|
||||
' | lolcat
|
||||
if [[ ! $(which sbotc) ]]; then
|
||||
sudo apt install libsodium-dev build-essential imagemagick -y
|
||||
cd /tmp/
|
||||
|
@ -167,7 +169,7 @@ echo '
|
|||
/____/
|
||||
|
||||
youtube-dl Swarm audio and video source...
|
||||
'
|
||||
' | lolcat
|
||||
if [[ ! $(which youtube-dl) ]]; then
|
||||
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl || exit 1
|
||||
sudo chmod a+rx /usr/local/bin/youtube-dl
|
||||
|
@ -185,7 +187,7 @@ echo '
|
|||
|
||||
ONBOARDING activation... linking ~/.ssb to ~/.ssb_astroport
|
||||
|
||||
'
|
||||
' | lolcat
|
||||
# CREATE ~/.ssb_astroport
|
||||
[[ ! -d ~/.ssb_astroport ]] && mkdir -p ~/.ssb_astroport
|
||||
|
||||
|
@ -221,7 +223,7 @@ KEY
|
|||
|
||||
CHOOSE YOU LOGIN (min 8 car. best is more than 6 words!!)...
|
||||
or LEAVE BLANK and HIT ENTER FOR diceware AUTO GENERATION
|
||||
'
|
||||
' | lolcat
|
||||
read salt
|
||||
[[ $salt != "" ]] && echo "CHOOSE PASSWORD?" && read pepper && [[ $pepper == "" ]] && exit 1
|
||||
|
||||
|
@ -231,7 +233,7 @@ echo '
|
|||
._ _ ._ _ ._ _ _ ._ o _
|
||||
| | | | | (/_ | | | (_) | | | (_
|
||||
|
||||
diceware passphrase generator...'
|
||||
diceware passphrase generator...' | lolcat
|
||||
# INSTALL diceware files ## TODO REPLACE WITH ipfs links
|
||||
|
||||
[[ ! -f ~/.zen/astroport/zen/tools/diceware.sh ]] \
|
||||
|
@ -251,7 +253,7 @@ fi
|
|||
echo "........."
|
||||
|
||||
rm -f ~/.zen/secret.astroport.key
|
||||
echo "#2020.6.6 ASTROPORT METAVERSE #SWARM0 IDENTITY
|
||||
echo "#20200606 ASTROPORT METAVERSE #SWARM0 IDENTITY
|
||||
ZENID=\"$salt\"
|
||||
ZENPWD=\"$pepper\"" > ~/.zen/secret.astroport.key
|
||||
sleep 1
|
||||
|
@ -312,7 +314,7 @@ echo '
|
|||
|
||||
NEW IDENTITY ACTIVATED in ~/.ssb/secret
|
||||
|
||||
'
|
||||
' | lolcat
|
||||
|
||||
echo '
|
||||
_________
|
||||
|
@ -325,7 +327,7 @@ IDENTITY CREATED in ~/.ssb/secret.dunikey
|
|||
|
||||
Install https://cesium.app to use it !!
|
||||
|
||||
'
|
||||
' | lolcat
|
||||
|
||||
cat ~/.zen/secret.astroport.key
|
||||
|
||||
|
|
Loading…
Reference in New Issue