Skip to content

Instantly share code, notes, and snippets.

@gz
Last active April 25, 2023 08:18
Show Gist options
  • Save gz/015d0da2eb1c57363c4b08b682e798b9 to your computer and use it in GitHub Desktop.
Save gz/015d0da2eb1c57363c4b08b682e798b9 to your computer and use it in GitHub Desktop.
Script to initialize a new development server.
# Ubuntu useful packages
adduser gz
usermod -aG sudo gz
usermod -aG kvm gz
echo "gz ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
su gz
sudo apt-get -y install binutils
sudo apt-get -y install build-essential
sudo apt-get -y install cabal-install
sudo apt-get -y install clang
sudo apt-get -y install cscope
sudo apt-get -y install dmidecode
sudo apt-get -y install dnsutils
sudo apt-get -y install dos2unix
sudo apt-get -y install dosfstools
sudo apt-get -y install dpkg
sudo apt-get -y install dstat
sudo apt-get -y install e2fslibs
sudo apt-get -y install e2fsprogs
sudo apt-get -y install ethtool
sudo apt-get -y install exuberant-ctags
sudo apt-get -y install file
sudo apt-get -y install freebsd-glue
sudo apt-get -y install g++
sudo apt-get -y install gcc
sudo apt-get -y install gdb
sudo apt-get -y install genisoimage
sudo apt-get -y install git
sudo apt-get -y install graphviz
sudo apt-get -y install hostname
sudo apt-get -y install htop
sudo apt-get -y install httperf
sudo apt-get -y install isc-dhcp-server
sudo apt-get -y install libelf-freebsd-dev
sudo apt-get -y install libfuse-dev
sudo apt-get -y install libfuse3-dev
sudo apt-get -y install libgit2-dev
sudo apt-get -y install libhwloc-dev
sudo apt-get -y install liburcu-dev
sudo apt-get -y install liburcu6
sudo apt-get -y install likwid
sudo apt-get -y install lshw
sudo apt-get -y install lsof
sudo apt-get -y install make
sudo apt-get -y install makedev
sudo apt-get -y install manpages
sudo apt-get -y install manpages-dev
sudo apt-get -y install mtools
sudo apt-get -y install net-tools
sudo apt-get -y install netcat-openbsd
sudo apt-get -y install nmap
sudo apt-get -y install numactl
sudo apt-get -y install oprofile
sudo apt-get -y install patch
sudo apt-get -y install patchutils
sudo apt-get -y install pciutils
sudo apt-get -y install pcmciautils
sudo apt-get -y install picocom
sudo apt-get -y install pkg-config
sudo apt-get -y install python3
sudo apt-get -y install python3-plumbum
sudo apt-get -y install python3-prctl
sudo apt-get -y install qemu
sudo apt-get -y install qemu-efi
sudo apt-get -y install qemu-kvm
sudo apt-get -y install qemu-system-x86
sudo apt-get -y install redis-tools
sudo apt-get -y install rsync
sudo apt-get -y install silversearcher-ag
sudo apt-get -y install socat
sudo apt-get -y install strace
sudo apt-get -y install sudo
sudo apt-get -y install tar
sudo apt-get -y install tcl
sudo apt-get -y install tcpdump
sudo apt-get -y install time
sudo apt-get -y install unrar
sudo apt-get -y install unzip
sudo apt-get -y install valgrind
sudo apt-get -y install vim
sudo apt-get -y install vim-common
sudo apt-get -y install vim-nox
sudo apt-get -y install vim-runtime
sudo apt-get -y install wget
sudo apt-get -y install zip
sudo apt-get -y install zlib1g
sudo apt-get -y install zlib1g-dev
sudo apt-get -y install zsh
sudo apt-get -y install fonts-powerline
sudo apt-get -y install smartmontools
# Rust
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup default nightly
rustup component add rust-src
rustup component add rustfmt-preview --toolchain nightly
rustup update
cargo install xargo
cargo install mdbook
cargo install difftastic
cargo install atuin
# Python deps
sudo apt-get -y install python3-pip
pip3 install matplotlib
pip3 install numpy
pip3 install backports-datetime-fromisoformat
pip3 install plotnine
pip3 install pandas
pip3 install ghp-import
pip3 install pexpect
pip3 install humanfriendly
pip3 install --upgrade babel
pip3 install --upgrade cython
pip3 install python3-libnuma
pip3 install python3-hwloc
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
git config --global user.name "Gerd Zellweger"
git config --global user.email "[email protected]"
git config --global submodule.recurse true
git config --global submodule.fetchJobs 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment