Skip to content

Instantly share code, notes, and snippets.

@mikechau
Last active August 29, 2015 14:02
Show Gist options
  • Save mikechau/05995961ff79e50716e0 to your computer and use it in GitHub Desktop.
Save mikechau/05995961ff79e50716e0 to your computer and use it in GitHub Desktop.
htpc configs
# update packages
sudo apt-get update
sudo apt-get upgrade
# hide idle mouse
sudo apt-get install unclutter
# config ssh
mkdir ~/.ssh
ssh-keygen -t rsa -C "[email protected]"
ssh-add ~/.ssh/id_rsa
# install openssh server
sudo apt-get install openssh-server
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults
sudo chmod a-w /etc/ssh/sshd_config.factory-defaults
sudo restart ssh
# install gstreamer-libav
sudo apt-get install gstreamer1.0.0-libav
# stuff
sudo apt-get install python-software-properties
sudo apt-get install ppa-purge
sudo apt-get install htop
# upgrade kernel
cd /tmp
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-utopic/linux-headers-3.15.0-031500-generic_3.15.0-031500.201406081435_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-utopic/linux-headers-3.15.0-031500_3.15.0-031500.201406081435_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.15-utopic/linux-image-3.15.0-031500-generic_3.15.0-031500.201406081435_amd64.deb
sudo dpkg -i linux-headers-3.15.0-*.deb linux-image-3.15.0-*.deb
# xorg edgers
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-337
# flash
sudo apt-get install flashplugin-installer
sudo apt-get install libvdpau1 vdpau-va-driver
# xbmc
sudo apt-get install python-software-properties pkg-config
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install xbmc
# dropbox
sudo apt-get install python-pgpme
wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_1.6.0_amd64.deb
sudo dpkg -i dropbox_1.6.0_amd64.deb
# set up virtualbox
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-4.3
# install vagrant
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb
sudo dpkg -i vagrant_1.6.3_x86_64.deb
vagrant plugin install vagrant-vbguest
# btrfs
sudo apt-get build-dep btrfs-tools
sudo apt-get install uuid-dev libattr1-dev zlib1g-dev libacl1-dev e2fslibs-dev libblkid-dev liblzo2-dev
sudo apt-get install asciidoc xmlto --no-install-recommends
sudo apt-get install git
git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
cd btrfs-progs
make
# install gparted
sudo apt-get install gparted
# install nfs
sudo apt-get install nfs-kernel-server
sudo apt-get install vim tmux screen
sudo apt-get install btrfs-tools smartmontools
# config fstab
# config /etc/exports

sudo nano /etc/nginx/sites-available/default

root /var/www;
index index.php index.html index.htm;
location ~ .php$ {
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        #       # NOTE: You should have "cgi.fix_pathinfo = 0" in php.ini
        #
        #       # With php5-cgi alone:
        #       fastcgi_pass 127.0.0.1:9000;
        # With php5-fpm:
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
}
location /RPC2 {
        include scgi_params;
        scgi_pass 127.0.0.1:5000;
}

http://vassie.me/rtorrent-and-rutorrent-on-ubuntu-server-with-nginx/

sudo apt-get install subversion build-essential automake libtool libcppunit-dev libcurl3-dev libsigc++-2.0-dev unzip unrar-free libncurses-dev
# c-ares
wget http://c-ares.haxx.se/download/c-ares-1.10.0.tar.gz
tar zxvf c-ares-1.10.0.tar.gz
cd c-ares-1.10.0
./configure
make
sudo make install
# curl
wget http://curl.haxx.se/download/curl-7.37.0.tar.gz
tar zxvf curl-7.37.0.tar.gz
cd curl-7.37.0
./configure –enable-ares
make
sudo make install
# xmlrpc
cd /tmp
svn checkout http://svn.code.sf.net/p/xmlrpc-c/code/stable xmlrpc-c
cd xmlrpc-c
./configure --disable-cplusplus
make
make install
# libtorrent
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.3.tar.gz
tar zxvf libtorrent-0.13.3.tar.gz
cd libtorrent-0.13.3
./autogen.sh
./configure
make
sudo make install
# rtorrent
wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz
tar zxvf rtorrent-0.9.3
cd rtorrent-0.9.3
./autogen.sh
./configure --with-xmlrpc-c
make
sudo make install
sudo ldconfig
# ffpmeg
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg mediainfo
# php
sudo apt-get install php5-fpm php5-cli php5-geoip
# nginx
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
sudo mkdir /var/www
sudo chown www-data:www-data /var/www
wget http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz
wget http://dl.bintray.com/novik65/generic/plugins-3.6.tar.gz
sudo tar xvf rutorrent-3.6.tar.gz -C /var/www
sudo tar xvf plugins-3.6.tar.gz -C /var/www/rutorrent
sudo chown www-data:www-data -R /var/www/rutorrent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment