Skip to content

Instantly share code, notes, and snippets.

@tigris
Last active December 14, 2015 11:28
Show Gist options
  • Save tigris/5078963 to your computer and use it in GitHub Desktop.
Save tigris/5078963 to your computer and use it in GitHub Desktop.
laptop re-install notes

How to backup and upgrade Dan's laptop

TODO before backup

  • Export virtual machines to ~/Documents

Files to backup before start

  • ~/.purple (pidgin config)
  • ~/.ievms (no configs, but super large so downloading again would be annoying)
  • ~/.themes (cinnamon/gtk themes, prob delete any themes in here that are included in new OS)
  • ~/.xchat2 (x-chat config)
  • ~/Documents
  • ~/Downloads
  • ~/Pictures
  • ~/git (if backing up via samba, symlinks won't persist so make sure all git repos are commited and pushed)

apt sources to add after re-install

NOTE: if on linux mint > 15, you should use "software sources" rather than edit sources.list manually

  • deb http://dl.google.com/linux/deb/ stable main # google chrome
  • wget -q https://dl-ssl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
  • deb http://repository.spotify.com stable non-free # spotify
  • sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
  • sudo add-apt-repository ppa:webupd8team/sublime-text-2
  • sudo add-apt-repository ppa:stebbins/handbrake-releases

SSD setup

  • Add noatime,nodiratime,discard to fstab
  • Add tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
  • Add echo deadline > /sys/block/sda/queue/scheduler to /etc/rc.local
  • Add echo 1 > /sys/block/sda/queue/iosched/fifo_batch to /etc/rc.local

Packages to install

sudo apt-get install vim git google-chrome-stable spotify-client handbrake-cli handbrake-gtk ffmpeg aften faad mediainfo mkvtoolnix sublime-text cifs-utils virtualbox virtualbox-guest-additions-iso openssh-server rar unrar unar curl

General setup

  • Add to /etc/sudoers %sudo ALL=NOPASSWD: ALL
  • Setup .ssh folder if required [ ! -f ~/.ssh/id_rsa ] && ssh-keygen -f ~/.ssh/id_rsa
  • Setup from util repos (cd ~/git/util-private && ./setup && cd ~/git/util && ./setup)
  • Add //doc/music /mnt/Music cifs guest,uid=1000,iocharset=utf8 0 0 to fstab

rbenv/vagrant

NOTE: Check latest version before install

git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
sudo apt-get install zlib1g-dev build-essential libssl-dev libreadline-dev
exec $SHELL
rbenv install 2.0.0-p195
rbenv global 2.0.0-p195
rbenv rehash
gem install vagrant
rbenv rehash
vagrant box add ubuntu-12.04-64 ~/Documents/precise64.box

General notes

  • Import all virtual machines from ~/Documents
  • After importing virtual machines, they will have new UUIDs, locate them via cat ~/.VirtualBox/VirtualBox.xml and update the .vagrant file in each corresponding ~/git/ repository.

Previous bugfixes, may not be required with new OS

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