Skip to content

Instantly share code, notes, and snippets.

@alexleekt
Last active December 16, 2015 09:09
Show Gist options
  • Save alexleekt/5410614 to your computer and use it in GitHub Desktop.
Save alexleekt/5410614 to your computer and use it in GitHub Desktop.
Debian: Setup.md

Setup Debian

https://github.com/ilikenwf/apt-fast

Update!

sudo apt-get update; sudo apt-get dist-upgrade;

directories setup

mkdir ~/apps ~/downloads ~/projects;

Base utilities

sudo apt-get install build-essential curl git wget;

Byobu terminal multiplexer

sudo apt-get install byobu;

Shell

zsh

sudo apt-get install zsh; chsh -s $(which zsh);

oh-my-zsh

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

dotfiles

cd ~; git clone https://github.com/alexleekt/dotfiles.git dotfiles; ./dotfiles/bin/dfm;

sudoers (disable password re-prompt)

echo "$USER ALL=NOPASSWD: ALL" > /tmp/$USER; cd /etc/sudoers.d/; sudo cp /tmp/$USER .; sudo chown root:root $USER; sudo chmod 440 $USER;

autojump

cd ~/apps; git clone https://github.com/joelthelion/autojump.git autojump; cd autojump; python install.py;

autoenv

git clone git://github.com/kennethreitz/autoenv.git ~/apps/autoenv;

Programming

Node Version Manager (NVM)

curl https://raw.github.com/creationix/nvm/master/install.sh | sh

Ruby Version Manager (RVM)

curl -L https://get.rvm.io | bash -s stable --autolibs=enabled

More

Install Dropbox on Linux headless server

Install Cloudflare (dynamic dns) ddclient

sudo apt-get install libio-socket-ssl-perl;

Setup cron to run ddclient every 10 minutes.

crontab -e */10 * * * * nohup /home/alexleekt/bin/ddclient -file /home/alexleekt/dotfiles/etc/ddclient.conf -cache /tmp/ddclient.cache &> /dev/null

Less

Remove exim4 mailer

apt-get remove exim4 exim4-base

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment