Skip to content

Instantly share code, notes, and snippets.

@codatory
Last active December 16, 2015 04:19
Show Gist options
  • Save codatory/5376309 to your computer and use it in GitHub Desktop.
Save codatory/5376309 to your computer and use it in GitHub Desktop.
Ubuntu 12.04 setup
#!/bin/bash
if [[ `whoami` != 'root' ]]; then
echo 'You must run this script with Root permissions.'
exit
fi
set -E
set -o vi
/usr/lib/lightdm/lightdm-set-defaults --allow-guest false
sysctl -w vm.swappiness=10
echo 'tmpfs /tmp tmpfs size=1g,noexec,nosuid 0 0' >> /etc/fstab
echo "\n\n******************************************"
echo "Set SSD partitions to discard,noatime."
echo "Set btrfs partitions to compress,autodefrag"
echo "******************************************\n\n"
read
vim /etc/fstab
wget -O /tmp/dropbox.deb https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_1.6.0_amd64.deb
dpkg -i /tmp/dropbox.deb
wget -O /tmp/mountimage.deb https://edge.launchpad.net/~zootropo/+archive/+files/nautilus-mount-image_0.2.0-1_all.deb
dpkg -i /tmp/mountimage.deb
wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
echo 'deb http://download.opensuse.org/repositories/home:jkt-gentoo:trojita/xUbuntu_12.04/ /' >> /etc/apt/sources.list.d/trojita.list
wget -O /tmp/trojita-release.key http://download.opensuse.org/repositories/home:jkt-gentoo:trojita/xUbuntu_12.04/Release.key
apt-key add - < /tmp/trojita-release.key
add-apt-repository -y ppa:apt-fast/stable
add-apt-repository -y ppa:scopes-packagers/ppa
add-apt-repository -y ppa:diesch/testing
add-apt-repository -y ppa:shnatsel/zram
add-apt-repository -y ppa:tualatrix/ppa
apt-get update
apt-get install -yf
apt-get --yes --allow-unauthenticated install medibuntu-keyring aria2 apt-fast
apt-fast update
apt-fast upgrade -y
apt-fast install -y ubuntu-restricted-extras unity-lens-utilities unity-scope-calculator unsettings ubuntu-tweak nautilus-open-terminal compizconfig-settings-manager preload zramswap-enabler bleachbit nautilus-image-converter libdvdcss2 gnote minitube steadyflow libxine1-ffmpeg gxine mencoder totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 mpg321 trojita
apt-get autoremove -y unity-lens-music unity-lens-photos unity-lens-gwibber unity-lens-shopping unity-lens-video
apt-get autoremove -y
killall nautilus
rm -rf /tmp/*
mount /tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment