1
0
mirror of https://github.com/gryf/vmstrap.git synced 2025-12-18 20:10:28 +01:00

Added some instructions for ubuntu bootstra, ipython, and some minor things

This commit is contained in:
2020-03-20 11:34:38 +01:00
parent 56186769ae
commit 24169257f7

View File

@@ -1,45 +1,50 @@
#!/bin/bash -x #!/bin/bash -x
# Sometimes, it might be needed to force external network to cooperate:
# 0. network. paste it to the machine before running this script # 0. network. paste it to the machine before running this script
# sudo sh -c 'echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'
# sudo netplan apply
# sudo sh -c 'rm /etc/resolv.conf; echo "nameserver 1.1.1.1" > /etc/resolv.conf' # sudo sh -c 'rm /etc/resolv.conf; echo "nameserver 1.1.1.1" > /etc/resolv.conf'
# sudo sed -i -e "s/127.0.0.1 localhost/127.0.0.1 localhost ${HOSTNAME}/" /etc/hosts # sudo sed -i -e "s/127.0.0.1 localhost/127.0.0.1 localhost ${HOSTNAME}/" /etc/hosts
# git clone https://github.com/gryf/vmstrap && cd vmstrap # sudo sh -c 'echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'
# sudo netplan apply
# git clone https://github.com/gryf/vmstrap
# cd vmstrap
# 1. update # 1. update
sudo apt update && sudo apt -y upgrade sudo apt update && sudo apt -y upgrade
lsb_release -cs 2>/dev/null | grep -q bionic lsb_release -cs 2>/dev/null | grep -q bionic
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
PGS="ccze PGS="ccze
exuberant-ctags exuberant-ctags
flake8 flake8
git-review git-review
htop htop
mc ipython
mc
python-apsw python-apsw
python-flake8 python-flake8
python-jedi python-jedi
python-pip python-pip
python3-flake8 python3-flake8
python3-jedi python3-jedi
silversearcher-ag silversearcher-ag
tmate
vim-gtk" vim-gtk"
else else
PGS="ccze PGS="ccze
exuberant-ctags exuberant-ctags
flake8 flake8
git-review git-review
htop htop
mc ipython
python-apsw mc
python-flake8 python-apsw
python-jedi python-flake8
python-jedi
python-pip python-pip
python3-flake8 python3-flake8
python3-jedi python3-jedi
silversearcher-ag silversearcher-ag
vim-gtk-py2" vim-gtk-py2"
fi fi