Linux Desktop Setup

I’ve tried a few flavors of linux, and had issues with each as a desktop.  Recently I got  a new laptop so I decided to try it again.

My favorite distro is Mint, just be cause it doesn’t overload things with a bunch of effects that make it harder to find what you are looking for.  My only issue is, Mint couldn’t see my wifi card.  So.. I used ubuntu, and placed Cinnammon on top.  First, thanks to Marin Todorov, he’s got a great tutorial on how to set this up.  I’m going to put the essence here since I hate it when things disappear from the web.

  1. Install Ubuntu 16.04 LTS
  2. Install Cinnamon (apt install cinnamon)
  3. Install Numix
    1. add-apt-repository ppa:numix/ppa
    2. apt-get update
    3. apt-get install numix-gtk-theme
      
    4. apt-get install numix-icon-theme-circle
  4. Install Conky
    1. apt-add-repository -y ppa:teejee2008/ppa
    2. apt-get update
    3. apt-get install conky-manager
  5. Install Plank
    1. add-apt-repository ppa:ricotz/docky
    2. apt-get update
    3. apt-get install plank
    4. Inside the manager I turned on “Gotham, CPU Panel, Network Panel, and Process Panel”
    5. I’m including here my configs I placed in the .conky directory for my settings.
  6. Install Skype following instructions from here
    1. add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
      
    2. dpkg --add-architecture i386
    3. apt-get update
    4. apt-get install skype
    5. cp /usr/share/applications/skype.desktop /home/<homedir>/.config/autostart/

Handbrake Compile

Compiling HandBrake on Linux

These instructions are for building the *released* version of HandBrake. If you are building SVN, see the instructions in the source tree doc/BUILD-Linux.

Install Dependencies

What you need depends on your distribution.

The GTK UI introduces some significant extra build requirements. If you intend to disable building the GUI with `configure –disable-gtk’ you will not need many of these packages installed.

For Ubuntu you need:

  • subversion (cli/gui)
  • yasm (cli/gui)
  • build-essential (cli/gui)
  • autoconf (cli/gui)
  • libtool (cli/gui)
  • zlib1g-dev (cli/gui)
  • libbz2-dev (cli/gui)
  • libxml2-dev (cli/gui)
  • libogg-dev (cli/gui)
  • libtheora-dev (cli/gui)
  • libvorbis-dev (cli/gui)
  • libsamplerate-dev (cli/gui)
  • libfribidi-dev (cli/gui)
  • libfreetype6-dev (cli/gui)
  • libfontconfig1-dev (cli/gui)
  • libass-dev (cli/gui)
  • intltool (gui)
  • libglib2.0-dev (gui)
  • libdbus-glib-1-dev (gui)
  • libgtk2.0-dev (gui)
  • libgudev-1.0-dev (gui)
  • libwebkit-dev (gui)
  • libnotify-dev (gui)
  • libgstreamer0.10-dev (gui)
  • libgstreamer-plugins-base0.10-dev (gui)
  • libappindicator-dev (gui)

To install these packages:

sudo apt-get install subversion yasm build-essential autoconf libtool \
zlib1g-dev libbz2-dev libogg-dev libtheora-dev libvorbis-dev \
libsamplerate-dev libxml2-dev libfribidi-dev libfreetype6-dev \
libfontconfig1-dev libass-dev intltool libglib2.0-dev libdbus-glib-1-dev \
libgtk2.0-dev libgudev-1.0-dev libwebkit-dev libnotify-dev \
libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libappindicator-dev

For Fedora you need the following package groups:

  • Development Tools
  • Development Libraries
  • X Software Development (gui)
  • GNOME Software Development (gui)

To install these package groups:

sudo yum groupinstall "Development Tools" "Development Libraries" \
"X Software Development" "GNOME Software Development"

Also for Fedora you need the following additional packages:

  • yasm (cli/gui)
  • zlib-devel (cli/gui)
  • bzip2-devel (cli/gui)
  • libogg-devel (cli/gui)
  • libtheora-devel (cli/gui)
  • libvorbis-devel (cli/gui)
  • libsamplerate-devel (cli/gui)
  • libxml2-devel (cli/gui)
  • fribidi-devel (cli/gui)
  • freetype-devel (cli/gui)
  • fontconfig-devel (cli/gui)
  • libass-devel (cli/gui)
  • dbus-glib-devel (gui)
  • libgudev1-devel (gui)
  • webkitgtk-devel (gui)
  • libnotify-devel (gui)
  • gstreamer-devel (gui)
  • gstreamer-plugins-base-devel (gui)

To install these packages:

sudo yum install yasm zlib-devel bzip2-devel libogg-devel libtheora-devel \
libvorbis-devel libsamplerate-devel libxml2-devel fribidi-devel \
freetype-devel fontconfig-devel libass-devel dbus-glib-devel \
libgudev1-devel webkitgtk-devel libnotify-devel \
gstreamer-devel gstreamer-plugins-base-devel

QuickStart Build Instructions

  • apt-get -y install libmp3lame-dev lame libjansson4 libjansson-dev x264 libx264-142 libx264-dev libgtk-3-dev
svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk
cd hb-trunk
./configure --launch

Or if you want HandBrakeCLI only:

svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk
cd hb-trunk
./configure --launch --disable-gtk

If there are errors at this stage, you’re missing some prerequisite.

Assuming that all goes well, you should now have a HandBrakeCLI binary in the build directory and a ghb binary in the build/gtk/src directory. You can execute it in place or copy it wherever you like.

You may also want to install, run:

cd build
sudo make install

This will install the binary and add a HandBrake option to your “Applications->Sound & Video” menu.

Full Compiling Guide

This is just a simple quick-start guide. For the real meat and potatoes, see the latest Linux build documentation. Topics covered there include:

  • Running configuration and build commands on subsequent compiles (hint, do it from the build/ directory, not the trunk)
  • Configuring options like 64-bit builds and cross-compilation
  • Cleaning build files
  • Tweaking contrib libraries

Ubuntu 12.10 Build

Xrdp issues – first couldn’t get a desktop, then I couldn’t press ‘d’ while in xrdp

  1. apt-get install compizconfig-settings-manager (fix found here)
  2. ccsm (no sudo)
  3. In the compiz config manager: General (left side) -> General Options (right side) -> Key bindings (tab) -> Show Desktop (with the keyboard icon) -> Click the “X” icon (on the far right) This sets the default of <Control><Primary><Super>d.
  4. Click on the key binding <Control><Primary><Super>d.
  5. Click “Grab key combination”
  6. Press ALT+D (or whatever other key combo you want to bind to the “show desktop” option).
  7. Do the same for the Maximize and Minimize window as they are linked to the super key as well.
  8. Click OK, Back, Close
  9. Restart your xrdp session
  10. Prerequisite packages:
  11. Setup perl:
    1. locale-gen en_US en_US.UTF-8 hu_HU hu_HU.UTF-8
    2. dpkg-reconfigure locales
  12. apt-get install php5 php5-mysql php5-sqlite php5-recode php5-snmp php5-cgi  php5-cli php5-curl php5-dbg php5-dev
  13. Setup Apache
    • a2ensite default-ssl
    • a2enmod ssl
    • a2enmod rewrite
  14. Setup Mysql
    • CREATE USER ‘USERNAME’@’*’ IDENTIFIED BY ‘PASSWORD-HERE’;
    • GRANT ALL PRIVILEGES ON *.* TO ‘USERNAME’@’10.10.1.0/255.255.255.0’ WITH GRANT OPTION
  15. Install Cakephp: http://nerdviral.wordpress.com/2012/10/02/install-the-latest-cakephp-on-ubuntu-server-12-04-lts/
  16. postfix using maildir:  postconf -e “home_mailbox= Maildir/” ; service postfix restart
  17. Sync with dropbox: https://www.dropbox.com/install?os=lnx

Ubuntu 13.10 Build

x264 installation

  • git clone git://git.videolan.org/x264.git
  • cd 264
  • ./configure –prefix=/usr/local
  • make
  • mv x264 /usr/lib/
  • mv libx264.a /usr/lib/
  • mv x264.h /usr/include

handbrake installation

  • svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk
  • cd hb-trunk
  • ./configure –launch –disable-gtk
  • apt-get -y install gnome-session-fallback
  • apt-get -y install xfce4-terminal
  • apt-get install xfce
  • echo xfce4-session >~/.xsession
  • service xrdp restart

 

Document it here

Vmware Workstation Installation

Handbrake installation

xrdp

Apache/Mysql

beast 10.10 server build notes

Ubuntu 10.10 Base install:
Basics of apt-get syntax

Hardcode server ip address:
iface eth0 inet static
address
netmask
gateway

Download and install interconn for running software behind a proxy.  The instructions are easy to follow.

Packages to install:

  1. zsh
  2. subversion
  3. samba
  4. smbclient
  5. samba-doc
  6. nfs-common
  7. lrzsz
  8. mailutils
  9. synaptic = the kubuntu package updater has a bug that doesn’t allow it to become root
  10. gopchop = mpeg2 video editing without re-encoding
  11. kdenlive = nice video editing suite for kde, but does encoding after the edit
  12. mysql-server
  13. wajig, then wajig hold vpnc
  14. php5-mysql

Install Cross Over Office:
crossover-pro_9.2.0-1_i386.deb and crossover-games-demo_9.2.0-1_i386.deb

DVDFab for the occasional DVD Image:

  1. apt-get -y install wine1.2
  2. You can only use DVDFab7090.exe, since all newer versions don’t have the copy feature.  Apparently only the root user can run DVDFab for some reason.  It will work under wine or crossover office.
  3. As the user you will be ripping with run:  wine <dvdfab downloaded executable>

Handbrake – follow the instructions on the wiki, but it should say install the following:

apt-get install subversion yasm build-essential 
autoconf libtool zlib1g-dev libbz2-dev intltool libglib2.0-dev 
libdbus-glib-1-dev libgtk2.0-dev libgudev-1.0-dev 
libwebkit-dev libnotify-dev libgstreamer0.10-dev 
libgstreamer-plugins-base0.10-dev x264


svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk
cd trunk
./configure --launch
cd build
make install

Create the SVN Repository:

  1. useradd -m -s /bin/zsh -c “SVN Repository” -d /home/svn svn
  2. Create the script create_repos.sh with the code provided below.
    DateAmountDescription
    Initial Purchase
    Dryer outlet installation in garage
  3. echo “/usr/bin/svnserve -d -r /home/svn” >> /etc/rc.local