forked from axiom-team/astrXbian
/etc/resolv.conf
This commit is contained in:
parent
701c052cc0
commit
39b615d585
13
ISOconfig.sh
13
ISOconfig.sh
|
@ -103,7 +103,7 @@ mkdir -p ~/.zen/ipfs/.${IPFSNODEID}/G1SSB
|
||||||
# Give $XZUID to your (gchange friends) to add in Vstream Astroport and access your sharings
|
# Give $XZUID to your (gchange friends) to add in Vstream Astroport and access your sharings
|
||||||
# IPNS link to "pastebin list" http://localhost:8181/ipns/$IPNSKEY/xbian/$XZUID
|
# IPNS link to "pastebin list" http://localhost:8181/ipns/$IPNSKEY/xbian/$XZUID
|
||||||
########################################################################
|
########################################################################
|
||||||
XZUID=$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)$(hostname -I | cut -d ' ' -f 1 | cut -d "." -f 4 )$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)
|
XZUID=$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)$(hostname -I | cut -d ' ' -f 1 | cut -d "." -f 4)$(~/.zen/astrXbian/zen/tools/diceware.sh 1 | xargs)
|
||||||
echo "CREATE ~/.zen/ipfs/xbian/$XZUID"
|
echo "CREATE ~/.zen/ipfs/xbian/$XZUID"
|
||||||
mkdir -p ~/.zen/ipfs/xbian
|
mkdir -p ~/.zen/ipfs/xbian
|
||||||
touch ~/.zen/ipfs/xbian/$XZUID
|
touch ~/.zen/ipfs/xbian/$XZUID
|
||||||
|
@ -115,8 +115,8 @@ echo "$XZUID" > ~/.zen/ipfs/.${IPFSNODEID}/_xbian.zuid
|
||||||
echo "CREATE + profile"
|
echo "CREATE + profile"
|
||||||
########################################################################
|
########################################################################
|
||||||
cd ~/.zen/astrXbian/zen/jaklis
|
cd ~/.zen/astrXbian/zen/jaklis
|
||||||
./jaklis.py -n "https://g1.data.e-is.pro" set --name "$XZUID" --avatar "$HOME/.zen/astrXbian/logo.png" #CESIUM+
|
./jaklis.py -n "https://g1.data.e-is.pro" set --name "$XZUID" --avatar "/home/xbian/.zen/astrXbian/logo.png" #CESIUM+
|
||||||
./jaklis.py -n "https://data.gchange.fr" set --name "$XZUID" --avatar "$HOME/.zen/astrXbian/logo.png" #GCHANGE+
|
./jaklis.py -n "https://data.gchange.fr" set --name "$XZUID" --avatar "/home/xbian/.zen/astrXbian/logo.png" #GCHANGE+
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -182,14 +182,15 @@ astrxbian=$(hostname)
|
||||||
sudo sed -i "s/$astrxbian/$XZUID/g" /etc/hostname
|
sudo sed -i "s/$astrxbian/$XZUID/g" /etc/hostname
|
||||||
sudo sed -i "s/$astrxbian/$XZUID/g" /etc/hosts
|
sudo sed -i "s/$astrxbian/$XZUID/g" /etc/hosts
|
||||||
|
|
||||||
echo "CHANGE DNS" # Avoid provider restrictions
|
echo "CHANGE DNS" # Avoid provider restrictions
|
||||||
sudo mv /etc/resolv.conf /etc/resolv.conf.old
|
sudo chattr -i /etc/resolv.conf
|
||||||
sudo cat > /etc/resolv.conf <<EOF
|
sudo cat > /tmp/resolv.conf <<EOF
|
||||||
domain home
|
domain home
|
||||||
search home
|
search home
|
||||||
nameserver 80.67.169.12 80.67.169.40 94.247.43.254 2001:67c:13e4:1::37
|
nameserver 80.67.169.12 80.67.169.40 94.247.43.254 2001:67c:13e4:1::37
|
||||||
# FFDN.org opennic.org = ns8.he.de + ns5.ru
|
# FFDN.org opennic.org = ns8.he.de + ns5.ru
|
||||||
EOF
|
EOF
|
||||||
|
sudo mv /tmp/resolv.conf /etc/resolv.conf
|
||||||
sudo chattr +i /etc/resolv.conf
|
sudo chattr +i /etc/resolv.conf
|
||||||
|
|
||||||
# WRITE ~/.zen/ipfs.sync CONFIG (meaning DONE)
|
# WRITE ~/.zen/ipfs.sync CONFIG (meaning DONE)
|
||||||
|
|
Loading…
Reference in New Issue