====== Desktop Install Notes ====== ===== Useful Links ===== * [[http://ubuntuforums.org/showthread.php?t=1130384|Jaunty Sound Solutions]] * [[http://www.alanbriolat.co.uk/2009/03/mpd-pulseaudio-ubuntu-intrepid-810/|MPD + PulseAudio + Ubuntu Intrepid (8.10)]] * [[http://ubuntuforums.org/showthread.php?t=1200992|Firefox 3.5 not following gnome font settings]] ===== Ubuntu Lucid (10.04) 64-bit ===== ==== Software Sources ==== * Open System->Administration->Software Sources * Check all package sets on "Ubuntu Software" tab * Check "archive.canonical.com" sources on "Third Party Software" tab * Get correct local mirror lines from [[http://helios/local-ubuntu-mirror.html]] and insert them at the top of ''/etc/apt/sources.list'' * Update, upgrade and reboot * Enable [[https://help.ubuntu.com/community/Medibuntu|Medibuntu repository]] * Enable [[http://www.google.com/linuxrepositories/apt.html|Google repository]] * Enable VirtualBox repository (:!: **use lucid, not karmic, when it's available!**)echo "deb http://download.virtualbox.org/virtualbox/debian lucid non-free" | sudo tee /etc/apt/sources.list.d/virtualbox.list wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add - sudo aptitude update ==== System configuration ==== * Create a Samba credentials file in ''~/.samba_credentials'': username=alan password= workgroup=WORKGROUP * Make sure it's protected! chmod 600 ~/.samba_credentials * Create Samba mount points: sudo mkdir -p /mnt/helios/alan sudo mkdir -p /mnt/helios/public * Edit /etc/fstab * Add Samba mounts: //helios/alan /mnt/helios/alan cifs noatime,credentials=/home/alan/.samba_credentials,iocharset=utf8 0 0 //helios/public /mnt/helios/public cifs noatime,credentials=/home/alan/.samba_credentials,iocharset=utf8,uid=alan,gid=alan 0 0 * Setup Xorg configuration to remap side button on mouse * http://www.alanbriolat.co.uk/2010/04/remapping-mouse-buttons-on-ubuntu-lucid/ * Enable bitmap fonts * http://www.alanbriolat.co.uk/2009/04/enable-bitmap-fonts-on-ubuntu-jaunty/ ==== Initial Package Set ==== * Important stuff sudo aptitude install smbfs openssh-server * Development essentials sudo aptitude install vim-gnome build-essential git-core gitk subversion git-svn ipython meld * Restricted packages (Flash, media playback, Java) sudo aptitude install ubuntu-restricted-extras non-free-codecs libdvdcss2 * Get rid of the horrible 32-bit flash sudo aptitude purge flashplugin-installer flashplugin-nonfree * Install 64-bit flash * Download from here: http://labs.adobe.com/downloads/flashplayer10_64bit.html * Extract ''libflashplayer.so'' to ''~/.mozilla/plugins/'' * Useful GUI utilities sudo aptitude install xbindkeys xclip quick-lounge-applet timer-applet hamster-applet * "Productivity" sudo aptitude install chromium-browser gnumeric abiword texlive-latex-base texlive-latex-recommended texlive-latex-extra * Install Google Picasa from http://picasa.google.com/linux/ * Development web server sudo aptitude install apache2 libapache2-mod-suphp php5-curl php5-gd php5-imagick php5-json \ php5-ldap php5-mcrypt php5-mhash php5-pgsql php5-sqlite3 php5-mysql * Install VirtualBox (logout and login again for group membership to take effect)sudo aptitude install virtualbox-3.1 sudo gpasswd -a alan vboxusers ==== Setting up graphical environment ==== * Sort out fonts * In GNOME font settings, set font DPI to 75 and subpixel hinting to full * Set all "Sans" fonts to "DejaVu Sans" * http://www.alanbriolat.co.uk/2010/04/fixing-ugly-qt-fonts-in-gnome/ * Install [[http://www.bok.net/MonteCarlo/|MonteCarlo]] font and set it as monospace font * Add ''~/.fonts.conf'' to fix applications that don't obey GNOME's font hinting settings * http://ubuntuforums.org/showthread.php?t=1200992 * Install Wine * Install [[http://www.spotify.com/int/download/windows/|Spotify]] * Set up ''gnome-open'' handler: http://www.spotify.com/uk/help/faq/wine/#opening-spotify-links-in-web-browsers ===== Ubuntu Jaunty (9.04) 64-bit ===== ==== Software Sources ==== * Open System->Administration->Software Sources * Check all package sets on "Ubuntu Software" tab * Check "archive.canonical.com" sources on "Third Party Software" tab * Get correct local mirror lines from [[http://helios/local-ubuntu-mirror.html]] and insert them into ''/etc/apt/sources.list'' * Update, upgrade and reboot * Enable [[https://help.ubuntu.com/community/Medibuntu|Medibuntu]] * Enable VirtualBox repository echo "deb http://download.virtualbox.org/virtualbox/debian jaunty non-free" | sudo tee /etc/apt/sources.list.d/virtualbox.list wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add - sudo aptitude update ==== System configuration ==== * Use static network configuration to avoid Samba-related pause on shutdown; in ''/etc/network/interfaces'' add: auto eth0 iface eth0 inet dhcp * Create a Samba credentials file in ''~/.samba_credentials'': username=alan password= workgroup=WORKGROUP * Make sure it's protected! chmod 600 ~/.samba_credentials * Create Samba mount points: sudo mkdir -p /mnt/helios/alan sudo mkdir -p /mnt/helios/public * Edit /etc/fstab * Comment out all lines starting "''/dev/scd''" (prevents "do not have permission to mount" errors in nautilus) * Add helios samba mounts: //helios/alan /mnt/helios/alan cifs noatime,credentials=/home/alan/.samba_credentials,iocharset=utf8 0 0 //helios/public /mnt/helios/public cifs noatime,credentials=/home/alan/.samba_credentials,iocharset=utf8,uid=alan,gid=alan 0 0 * Setup HAL policy to remap side button to middle button on mouse * http://www.alanbriolat.co.uk/2009/06/mouse-button-remapping-with-hal/ * Setup system-wide pulseaudio * http://www.alanbriolat.co.uk/2009/03/mpd-pulseaudio-ubuntu-intrepid-810/ * Enable bitmap fonts * http://www.alanbriolat.co.uk/2009/04/enable-bitmap-fonts-on-ubuntu-jaunty/ ==== Initial Package Set ==== * Important stuff sudo aptitude install smbfs openssh-server * Development essentials sudo aptitude install vim-gnome build-essential git-core gitk subversion git-svn ipython meld * Restricted packages (Flash, media playback, Java) sudo aptitude install ubuntu-restricted-extrassudo /usr/share/doc/libdvdread4/install-css.sh * Get rid of the horrible 32-bit flash sudo aptitude purge flashplugin-installer flashplugin-nonfree * Install 64-bit flash * http://johnbokma.com/mexit/2008/11/25/64-bit-adobe-flash-ubuntu.html * Useful GUI utilities sudo aptitude install xbindkeys xclip quick-lounge-applet timer-applet hamster-applet * MPD sudo aptitude install mpd mpc ncmpc sonata * "Productivity" sudo aptitude install gnumeric abiword texlive-latex-base texlive-latex-recommended texlive-latex-extra skype * Development web server sudo aptitude install apache2 libapache2-mod-suphp php5-curl php5-gd php5-imagick php5-json \ php5-ldap php5-mcrypt php5-mhash php5-pgsql php5-sqlite3 php5-mysql * Install Google Picasa from http://picasa.google.com/linux/ * Install VirtualBox (logout and login again for group membership to take effect)sudo aptitude install virtualbox-3.0 sudo gpasswd -a alan vboxusers ==== Setting up MPD ==== * Edit ''/etc/mpd.conf'': * Set ''audio_buffer_size'' to ''4096'' (network latency can cause glitching otherwise) * Add ''audio_output'' section: audio_output { type "pulse" name "MPD" } * Give ''mpd'' user pulseaudio access: sudo gpasswd -a mpd pulse sudo gpasswd -a mpd pulse-access sudo gpasswd -a mpd pulse-rt * Make a link to where the music is: sudo rm -r /var/lib/mpd/music sudo ln -s /mnt/helios/alan/public/Music /var/lib/mpd/music ==== Setting up development web server ==== * Enable some modules sudo a2enmod rewrite sudo a2enmod userdir * Modify suphp configuration ''/etc/suphp/suphp.conf'' docroot=/ check_vhost_docroot=false errors_to_browser=true * Restart Apache sudo /etc/init.d/apache2 restart