Skip to content

Instantly share code, notes, and snippets.

@lamnk
Last active December 19, 2015 06:59
Show Gist options
  • Save lamnk/5915511 to your computer and use it in GitHub Desktop.
Save lamnk/5915511 to your computer and use it in GitHub Desktop.
Setup 24H Ubuntu
#!/bin/bash
#echo "**********************************\n"
#echo "Add partner repo to install Skype and Flash\n\n\n"
#add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
#echo "**********************************\n"
#echo "Add ubuntu-tweak repo\n\n\n"
#add-apt-repository -y ppa:tualatrix/ppa
# change repo to FPT mirrors
# FPT mirrors is faster to install but causes stupid problems
#sudo sed -i 's/archive.ubuntu.com/mirror-fpt-telecom.fpt.net/g' /etc/apt/sources.list
#sudo sed -i 's/ftp.cuhk.edu.hk\/pub\/Linux/mirrors.digipower.vn/g' /etc/apt/sources.list
echo "**********************************\n"
echo "Refresh cache\n\n\n"
apt-get update
echo "**********************************\n"
echo "Install necessary packages\n\n\n"
# libxss1 for chrome compatibility
# htop iotop vnstat for monitoring cpu, disk, network activities
apt-get install ppa-purge aptitude htop iotop vnstat zsh vim p7zip-full libxss1 synaptic evolution freemind shutter pidgin ibus-unikey transmission gimp gimp-data-extras ubuntu-restricted-extras samba openssh-server vlc mplayer openjdk-7-jre icedtea-7-plugin
#apt-get install wine
echo "**********************************\n"
echo "Install packages from 3rd party repo\n\n\n"
apt-get install ubuntu-tweak skype
echo "**********************************\n"
echo "Install localization\n\n\n"
apt-get install thunderbird-locale-vi language-pack-gnome-vi firefox-locale-vi libreoffice-l10n-vi
echo "**********************************\n"
echo "Install Chrome, this will add chrome repo to apt\n\n\n"
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome-stable_current_amd64.deb
echo "**********************************\n"
echo "Install Chrome, this will add chrome repo to apt\n\n\n"
wget http://download.teamviewer.com/download/teamviewer_linux_x64.deb
dpkg -i google-chrome-stable_current_amd64.deb
# interactive shit, need to press key to do
# will download MS fonts and extract theppa-purgem
#sudo apt-get install ttf-mscorefonts-installer
echo "**********************************\n"
echo "Install dropbox into ~/.dropbox-dist\n\n\n"
wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
#echo "**********************************\n"
#echo "Remove Games & Ubuntu One\n\n\n"
#apt-get remove --purge .*ubuntuone.* gnome-games*
echo "**********************************\n"
echo "Remove Ubuntu One\n\n\n"
# Cleanup after install packages
apt-get -f install && sudo apt-get autoremove && sudo apt-get -y autoclean && sudo apt-get -y clean
echo "**********************************\n"
echo "Change update frequency from daily to weekly\n\n\n"
echo "Auto download upgradeable packages\n\n\n"
sed -i 's/Update-Package-Lists "1"/Update-Package-Lists "14"/g' /etc/apt/apt.conf.d/10periodic
sed -i 's/Download-Upgradeable-Packages "0"/Download-Upgradeable-Packages "1"/g' /etc/apt/apt.conf.d/10periodic
#http://howtoubuntu.org/things-to-do-after-installing-ubuntu-12-04-precise-pangolin
#http://razvangavril.com/linux-administration/custom-ubuntu-serGkkkkkki
#http://askubuntu.com/questions/122505/how-do-i-create-completely-unattended-install-for-ubuntu
#http://askubuntu.com/questions/48535/how-to-customize-live-ubuntu-cd
# Install LBP 3300 driver: download from canon, extract and install by dpkg -i
#sudo service cups restart
#sudo /usr/sbin/lpadmin -p LBP3300 -m CNCUPSLBP3300CAPTK.ppd -v ccp://localhost:59787 -E
#sudo /usr/sbin/ccpdadmin -p LBP3300 -o /dev/usblp0
#sudo /usr/sbin/ccpdadmin -p LBP3300 -o /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment