Skip to content

Instantly share code, notes, and snippets.

@MitchRatquest
Last active August 21, 2019 05:50
Show Gist options
  • Save MitchRatquest/2c1f0803d663775ba8887d863cdf8d20 to your computer and use it in GitHub Desktop.
Save MitchRatquest/2c1f0803d663775ba8887d863cdf8d20 to your computer and use it in GitHub Desktop.
dev machine setup
#!/bin/bash
function get_packages() {
packages="dnsmasq audacious elinks filezilla build-essential \
lua5.3 screen tmux vim tree libpython-dev python-pip python-setuptools \
python-django postgresql x11vnc libqt5webkit5 patchelf rpm2cpio \
libatasmart-bin smartmontools shellcheck libqt5webkit5 cmake scons tox \
qconf xserver-xorg-dev bison linux-headers-$(uname -r).* libssl-dev \
libmicrohttpd-dev net-tools john wamerican-insane file patch diffutils \
iw libjsoncpp-dev libcurl4-openssl-dev shellinabox figlet toilet i3 \
clang device-tree-compiler rsync luakit qt5-default geany cifs-utils \
smbclient xmount openssh-server openssh-client libprocps-dev git \
lighttpd tar gzip binutils strace bash ffmpeg libasound2-dev \
libao-dev librtaudio-dev librtmidi-dev liblo7 liblo-tools liblo-dev \
libncursesw5-dev libtinfo-dev synergy pd-flext-dev texi2html texinfo \
python-virtualenv flex nmap adlint libacl1-dev libattr1-dev avr-libc libbind-dev \
binstats binutils-dev bsdowl libcapnp-dev cdebootstrap-static cppcheck \
cppcheck-gui libfmt3-dev csmith libdb++-dev libdb-dev libdb-sql-dev \
dbar dia dietlibc-dev direnv libdistorm3-3 libdistorm3-dev libdmalloc-dev \
libdpkg-dev e17-dev comerr-dev e2fsck-static e2fslibs-dev ss-dev \
libesnacc-dev fakeroot-ng festival-dev festival-dev fftw2 sfftw-dev \
sfftw2 libfftw3-dev libfl-dev flite1-dev libelf-freebsd-dev \
lib32stdc++-6-dev libgck-1-dev libgeda-dev giblib-dev libglib2.0-dev \
libgsmme-dev liblo-dev libxcursor-dev libncursesw5-dev libncurses5-dev \
ibtinfo-dev libncap-dev libaudio-dev nettle-dev libprotobuf-dev \
libprotoc-dev libprotobuf-c-dev libpython2.7-dev librxp-dev sash \
libsphinxbase-dev splint libsqlite3-dev libsysfs-dev libtse3-dev \
libwavpack-dev libwim-dev xorg-dev"
function install_qutebrowser() {
wget http://ftp.us.debian.org/debian/pool/main/p/pypeg2/python3-pypeg2_2.15.2-2_all.deb
wget http://ftp.us.debian.org/debian/pool/main/q/qutebrowser/qutebrowser_1.6.1-2_all.deb
wget http://ftp.us.debian.org/debian/pool/main/q/qutebrowser/qutebrowser-qtwebengine_1.6.1-2_all.deb
sudo dpkg -i python3-pypeg2_2.15.2-2_all.deb
sudo dpkg -i qutebrowser_1.6.1-2_all.deb
sudo dpkg -i qutebrowser-qtwebengine_1.6.1-2_all.deb
sudo apt --fix-missing install #sanity check
sudo apt --fix-broken install
}
function install_virtualbox() {
wget https://download.virtualbox.org/virtualbox/6.0.8/virtualbox-6.0_6.0.8-130520~Debian~stretch_amd64.deb
sudo dpkg -i virtualbox-6.0_6.0.8-130520~Debian~stretch_amd64.deb
}
function install_fzy() {
git clone https://github.com/jhawthorn/fzy.git
cd fzy
make
cc -static -Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps -o fzy src/fzy.o src/match.o src/tty.o src/choices.o src/options.o src/tty_interface.o -lpthread
sudo cp fzy /usr/bin/fzy
}
function install_fzf() {
if [ ! -f /usr/bin/fzf ]; then
machine=$(uname -m)
case $machine in
x86_64*) target=amd64 ;;
i686*) target=386 ;;
armv7*) target=arm7 ;;
386*) target=386 ;;
amd64*) target=amd64 ;;
esac
wget -q "https://github.com/junegunn/fzf-bin/releases/download/0.18.0/fzf-0.18.0-linux_${target}.tgz" -O fzf.tgz
tar xvf fzf.tgz
rm fzf.tgz
sudo cp fzf /usr/bin/
fi
}
sudo apt update
sudo apt install -y "$packages"
sudo pip install mechanize attrs bs4 pexpect uuid bottle asyncio tornado numpy scipy cherrypy
install_qutebrowser
install_virtualbox
install_fzy
install_fzf
}
get_packages "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment