u
This commit is contained in:
parent
8b8bb68883
commit
d9c3aa47b9
@ -34,6 +34,7 @@ sudo curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh
|
|||||||
sudo chmod a+rx debi.sh
|
sudo chmod a+rx debi.sh
|
||||||
sudo ./debi.sh --version $DEBIAN_VERSION --architecture `dpkg --print-architecture` --user root --$PRESET # --architecture 可参略或者[amd64(默认), i386, arm64, armhf];--password 可省略,则脚本启动后会问你要密码
|
sudo ./debi.sh --version $DEBIAN_VERSION --architecture `dpkg --print-architecture` --user root --$PRESET # --architecture 可参略或者[amd64(默认), i386, arm64, armhf];--password 可省略,则脚本启动后会问你要密码
|
||||||
|
|
||||||
|
echo
|
||||||
echo "=== Last chance!!! Enter [r] to reboot to new system, or [anything else] to cancel all changes"
|
echo "=== Last chance!!! Enter [r] to reboot to new system, or [anything else] to cancel all changes"
|
||||||
read -p ">>> " LAST
|
read -p ">>> " LAST
|
||||||
if [ 'r' = "$LAST" ]
|
if [ 'r' = "$LAST" ]
|
||||||
|
@ -13,7 +13,7 @@ fi
|
|||||||
|
|
||||||
echo "=== Installing basic tools"
|
echo "=== Installing basic tools"
|
||||||
apt update
|
apt update
|
||||||
apt install -y emacs git wget curl screen sudo automake rsync dnsutils gcc g++ make python jq
|
apt install -y emacs git wget curl screen sudo automake rsync net-tools dnsutils gcc g++ make python jq
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "=== Making dir /faronear/"
|
echo "=== Making dir /faronear/"
|
||||||
|
11
ipv6-dhcp.sh
Normal file
11
ipv6-dhcp.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
echo "Binding ipv6 to Oracle Cloud debian instance after configuring ipv6 (https://sunpma.com/1051.html)"
|
||||||
|
echo "If it failes, try 'sudo ifconfig' to get the correct nic name, because ubunto use different names."
|
||||||
|
echo "If there is no 'ifconfig', run 'sudo apt install net-tools" at first"
|
||||||
|
echo "You can also reboot to automatically bind ipv6"
|
||||||
|
|
||||||
|
if [ `dpkg --print-architecture` = 'arm64']
|
||||||
|
then
|
||||||
|
sudo dhclient -6 enp0s3
|
||||||
|
else
|
||||||
|
sudo dhclient -6 ens3
|
||||||
|
if
|
Loading…
Reference in New Issue
Block a user