These are Rough Notes for how I installed Ubuntu Studio 14.04 as a replacement for Mint 13 Xfce on my Production Workstation. As I continue to Install this LTS version of Ubuntu for others, the information in these notes will continue to expanded and evolve.
To create the LVM partitions and then to install Ubuntu, use the Ubuntu Studio 14.04 live boot (The top “Try Ubuntu Studio without installing” option in the menu.)
GParted → to create the /boot & Physical LVM partitions
lvm2 pv
partition → Partition » Deactivateswap
partition → Partition » Swap offext2
Primary Partition (to be used by /boot)lvm2 pv
partition using the remainder of the drive space. (pv01
is a suggested Label for this.)Terminal Commands → to create the LVM volumes
The below is assuming that at least a 320GB hard drive is used for this. Also, with how LVM works, leaving any remaining space unused – to permit resizing (enlarging) LVM Volumes as needed, creating other “purpose specific” Logical Volumes, etc.– is very desirable.
$ sudo -i # blkid # to confirm LVM2_member is on /dev/sda2 # vgcreate lts14 /dev/sda2 # lvcreate -L 100G -n root lts14 # lvcreate -L 16G -n swap lts14 # lvcreate -L 200G -n home lts14 # exit $ exit
/dev/sda1
→ Ext2 … /boot/dev/mapper/lts14-root
→ Ext4 … //dev/mapper/lts14-swap
→ swap area/dev/mapper/lts14-home
→ Ext4 … /homelts14-home
is UNCHECKED to preserve the user files– including any per-user system/program configuration files– during the reinstall.
Terminal Commands ←to put the Squid Deb Proxy data on it's own LVM partition
$ sudo -i # lvcreate -L 50G -n debproxy lts14 # mkfs -t ext4 /dev/mapper/lts14-debproxy # mkdir /mnt/squid-deb-proxy # chown proxy:proxy /mnt/squid-deb-proxy # nano /etc/fstab # add the following line to this file
/dev/mapper/lts14-debproxy /mnt/squid-deb-proxy ext4 defaults 0 2
# exit $ sudo reboot
Terminal Commands Continued ←finish the squid-deb-proxy setup
$ sudo -i # mkdir /mnt/squid-deb-proxy/log # mkdir /mnt/squid-deb-proxy/cache # ln -s /mnt/squid-deb-proxy/log /var/log/squid-deb-proxy # ln -s /mnt/squid-deb-proxy/cache /var/cache/squid-deb-proxy # exit $ sudo apt-get install squid-deb-proxy $ cd /etc/squid-deb-proxy/mirror-dstdomain.acl.d $ sudo mv 10-default 10-default.old $ sudo nano 10-default # copy & paste the following into this empty file
# /etc/squid-deb-proxy/mirror-dstdomain.acl.d/10-default # # network destinations that are allowed by this cache # linux distro archives .linuxmint.com uberstudent.net archive.ubuntustudio.org repo.linuxliteos.com packages.medibuntu.org # Medibuntu repository no longer exits ... permit Internet DNS error # launchpad personal package archives ppa.launchpad.net # system & development package archives .mate-desktop.org download.bitdefender.com download.virtualbox.org dlc-cdn.sun.com download.opensuse.org nginx.org dl.hhvm.com # additional mirror domains mega.nz mega.co.nz linux.dropbox.com deb.torproject.org dl.google.com deb.opera.com repo.steampowered.com archive.getdeb.net mirrors.dotsrc.org
$ sudo apt-get install squid-deb-proxy-client $ sudo reboot
LVM Partition Terminal Commands ← to create a Public Drive on it's own LVM partition
$ sudo lvcreate -L 200G -n public lts14 $ sudo mkfs -t ext4 /dev/mapper/lts14-public $ sudo mkdir /home/public $ sudo chown 1000:100 /home/public # 1000 => 1st user account 100 => users $ sudo chmod 0775 /home/public $ sudo nano /etc/fstab # add the following line to this file
/dev/mapper/lts14-public /home/public ext4 defaults 0 2
$ sudo reboot
User Account Terminal Commands ← do this for each [user] added to system
$ sudo usermod -a -G users [user] $ sudo rmdir Public $ ln -s /home/public /home/[user]/Public $ ls -l # notice how Public is listed in the [user] home directory $ exit
Script to set group in ~/Public/ to “users”
The below will create a script “allSameGroup.sh” in ~/Public/ – which when double-clicked in the file manager, will open up a Terminal window to prompt for the users Password, then recursively change the group for all folders & file in ~/Public/ to “users”. That with how ~/Public/ was setup, the default group permissions are: rwx for directories, and rw files. Thus with all user accounts added to the “users” group, this script ensures full access to the Public folder.
$ nano Public/allSameGroup.sh # copy & paste the following into this empty file
#!/bin/bash # Change the group for everything in ~/Public to users xfce4-terminal -x bash -c "sudo -s chgrp -R users ~/Public/*" exit
$ chmod 0755 Public/allSameGroup.sh
$ sudo apt-get update $ sudo /usr/share/doc/libdvdread4/install-css.sh # to enable playing purchased DVDs $ sudo apt-get install xubuntu-artwork xfce4-artwork xubuntu-community-wallpapers $ sudo ln -s /usr/share/xfce4/backdrops/ 'Pictures/System Wallpaper' # make above easy to find $ sudo apt-get remove xscreensaver xscreensaver-data $ sudo apt-get install light-locker $ sudo nano /etc/X11/xorg.conf # copy & paste the following into bottom of the file
Section "ServerFlags" Option "BlankTime" "0" Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "0" Option "DontZap" "false" EndSection
$ sudo nano /Fix_Xfce_Desktop.sh # copy & paste the following into this empty file
#!/bin/bash # Fix the Xfce 4.10 Desktop "Behaves Badly" xfwm4 --replace exit
$ sudo chmod +x /Fix_Xfce_Desktop.sh $ sudo apt-get install gksu # Gtk+ frontend to su & sudo $ sudo apt-get install cryptsetup # support for Linux encrypted drives $ sudo apt-get install cifs-utils # needed to mount network drives $ sudo apt-get install libav-tools # missing due to unchecked options $ sudo reboot
Desktop Menus
itemsRemovable Devices
Mount removable drives when hot-plugged
mount removable media when inserted
Play audio CDs when Inserted
Command:
audacious cdda:// ← to auto-play Audio CDs when insertedPlay video CDs and DVDs when inserted
Command:
vlc -f dvd:///dev/sr0 ← to auto-play DVDs (full-screen) when inserted$ sudo apt-get install libreoffice-style-sifr
Conky
conky system monitor
conky -p 30
$ sudo add-apt-repository ppa:jeffreyratcliffe/ppa $ sudo apt-get update $ sudo apt-get install gscan2pdf libsane-perl