diff --git a/debian-ddinstall-debi.sh b/debian-ddinstall-debi.sh index e379a57..9da8087 100644 --- a/debian-ddinstall-debi.sh +++ b/debian-ddinstall-debi.sh @@ -34,6 +34,7 @@ sudo curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/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 可省略,则脚本启动后会问你要密码 +echo echo "=== Last chance!!! Enter [r] to reboot to new system, or [anything else] to cancel all changes" read -p ">>> " LAST if [ 'r' = "$LAST" ] diff --git a/debian-setup.sh b/debian-setup.sh index 9dd0708..3db075b 100644 --- a/debian-setup.sh +++ b/debian-setup.sh @@ -13,7 +13,7 @@ fi echo "=== Installing basic tools" 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 "=== Making dir /faronear/" diff --git a/ipv6-dhcp.sh b/ipv6-dhcp.sh new file mode 100644 index 0000000..c7eb76a --- /dev/null +++ b/ipv6-dhcp.sh @@ -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