Linux Mint setup and configuration – Part two

Welcome back for Part Two of my Linux Mint install and configuration, this part will including installing the opensource Chromium web browser, Guayadeque media player, Dragon media player, Java, GIMP, Wine, Winetricks, Citrix for Linux, Picasa, and anything else I come across along the way! (in no particular order) Parts of this will be mostly copied from my other older posts; however I am actually performing them as I type this up, so I will be editing and changing as needed also. As on my previous posts, anything in the code boxes can be copied and pasted into a terminal window.

I have decided to make a script file for each of these installs, since some of them can take a while. When I finish them (if it is after I post this) you will find them at the end of each section of this blog post. I will also include a script at the very end of this post that will run all of these back to back, if you want each of these applications installed and don’t feel lilke sitting around all day copying and pasting lines of code.

Part Two

  1. Installing Chromium Browser Beta

  2. sudo add-apt-repository ppa:chromium-daily/beta && sudo apt-get update && sudo apt-get dselect-upgrade && sudo apt-get install --install-suggests chromium-browser

    • This will update linux, something we have not yet done, and should be around 375MB of updates, before installing Chromium. Note that I am using the Chromium Beta repository, something I have been using for two years and only once had any issues.
  3. Building Dependencies – what is needed as prereq’s to build from source
    • Go to the application menu and search for software sources
      • Check all the boxes except unstable from the first tab
      • Under other software check everything except the two archive.getdeb and file:/// options
    • Open a terminal window and enter the following:

    • sudo vi /etc/apt/sources.list

      1. jjyyplla-src {ESC}
      2. jyyplla-src {ESC}
      3. jyyplla-src {ESC}
      4. jyyplla-src {ESC}
      5. :wq! {ENTER}

      The above adds the source repositories to your linux install, the below adds essential files for ANY source building.

      sudo apt-get update && sudo apt-get install --install-suggests gcc gcc+ texinfo linux-kernel-headers build-essential ruby rubygems libzip-ruby1.9.1 scons libxml2-dev libgtk2.0-dev python-dev ruby-dev libdbus-glib-1-dev libnotify-dev libgstreamer0.10-dev libxss-dev libcurl4-openssl-dev git-core dpkg dpkg-dev make cmake autoconf

    • This pulls down 232 packages and ~730MB of data with CinaMint 13 installed I received 357 packages using 969MB of additional space with 373MB needed to download
    • You will get prompted for a Kerberos Realm, enter what you have/would call the network in your home (Windows Workgroup name, or the domain name your computer will be connected to) in ALL CAPS.COM
    • You will then be prompted for a hostname, twice, enter the computer name of the computer you are currently installing all of this on, unless you are on a domain
    • This should finish installing a wee bit after you enter that information
  4. Wine
  5. Just a note, there is a ppa you can add to install the latest version of wine (v1.5 at this time) without going through all of this.

    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get build-dep wine1.5 && sudo apt-get install wine1.5

    if you want, you can follow the below, but I was not able to get it resolved. Some of this will be needed to build other apps from source later.

    mkdir -p ~/build-loc/wine && cd ~/build-loc/wine && sudo apt-get build-deps wine1.4 && wget && chmod +x *.sh

    vi ./install-wine-deps

    • {ESC} 630G {ENTER}
    • {ESC} yypjcwLinux*Mint*13 {ESC} l6x
    • {ESC} 661G {ENTER}
    • {ESC} 4wcw13 {ESC}
    • {ESC} 686G {ENTER}
    • {ESC} 4wcw13 {ESC}
      • for Ubuntu 12.04 type “{ESC} 14wcw12 {ESC}
      • what you are doing is moving to line 630 and copying the ubuntu12.04 line, then changing it to read linuxmint13 then on to line 661 and changing “Linux*Mint*7 to 13 or Ubuntu*8.04 to 12.04, then again on line 686, else you will receive an OS not supported error message

    sudo apt-get install jed-extra && sudo ./

  6. This will install 16 new packages using 9,773KB of additional space and remove 1 package AND install 244 new packages using 244MB of additional space and remove 2 packages AND install 4 new packages using 1,867KB of additional space and remove 0 packages
  7. These next couple of installs take a bit of time, a few are short and quick, one is really long. I recommend running the next two in separate windows at the same time. At the end of this list of commands I have put a link where you can download a text file with all of these commands in them, that you can run as a script to do it all in one shot so you can let it go over night, or while you go do something else. I tried this on Mint 13 and I ran in to the following error:

    aclocal: macro `_LT_DECL_SED' required but not defined
    aclocal: macro `_LT_FUNC_STRIPNAME_CNF' required but not defined
    aclocal: 304: macro `AM_PROG_CC_C_O' not found in library
    autoreconf: aclocal failed with exit status: 1

    The cause is having an older version of automake installed. The default version included with my Mint 13 clean install was 1.7 dated from 2002, there is a new version 1.12 from June 1st 2012 that I install below. (follow the code brackets in order to avoid the errors I received).

    cd ~/build-loc && mkdir automake && cd automake && wget && tar -xf automake-1.12.1.tar.gz && cd automake-1.12.1 && ./configure && make && sudo make install

    After this I try again and I get some new errors… error: possibly undefined macro: AC_PROG_LIBTOOL
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation. error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
    autoreconf2.50: /usr/bin/autoconf failed with exit status: 1

    searching online says you need to install “libtool” well I already did that in one of the above steps, I tried reinstalling it too, no change.

    cd ~/build-loc && mkdir gmp && cd gmp && wget && tar -xf gmp-5.0.5.tar.bz2 && cd gmp-5.0.5 && ./configure && make && sudo make install

    Tried again, still no change. Tried something new on a whim…

    sudo apt-get build-dep gcc-defaults && sudo apt-get install --install-suggests texi2html libgmp3-dev libmpfr-dev

    This downloaded 19 new packages and used 100MB of space including 35.4MB downloaded AND 24 new packages using 347MB of space. And I still got the same errors, but the good news is that the last two steps at least were necessary evils.

    cd ~/build-loc && mkdir gcc && cd gcc && wget && tar -xf gcc-4.7.0.tar.bz2 && cd gcc-4.7.0 && ./contrib/download_prerequisites && mkdir ../make-loc && cd ../make-loc && ~/build-loc/gcc/gcc-4.7.0/configure --prefix=/opt/gcc-4.7.0 && make && sudo make install

    cd ~/build-loc && svn co svn:// mpfr && cd mpfr && autoreconf -f -i && autoreconf -f -i && ./configure && make && sudo make install

    cd ~/build-loc && svn checkout svn:// mpc && cd mpc && autoreconf -f -i && autoreconf -f -i && ./configure && make && sudo make install

    So I found a step that allows you to skip the above, but you need to do one more thing first…

    sudo apt-get install --install-suggests libboost1.46-all-dev binutils libc6-dev

    This installs 250 new packages and downloads 373MB of new data, taking up 1,887MB of disk space! a good number of these are probably not needed by anyone following this guide (including me) and you may want to look into removing them at a later time (such as Tomcat!), but for now the concern is getting these things to build, I am not worried about extra things being installed at this time. I have a good firewall.

    ok, still not working, but I have better news… I have a new error message, a known problem, a patch I can’t find how to install, and a work around…
    Let’s start with the error (something like this, I thought I already had copied it here, then I fixed it and realized I had not, so your error may or may not look like this):

    /usr/bin/ld: error: cannot open crt1.o: No such file or directory
    /usr/bin/ld: error: cannot open crti.o: No such file or directory
    /usr/bin/ld: error: cannot open crtn.o: No such file or directory
    collect2: ld returned 1 exit status
    make: *** [mc] Error 1

    If you have been following along this guide and have done everything from the beginning you will be able to use this work around to fix the build error:

    sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

    If you are interested in the problem, or the correct solution (a patch to the build process for gcc) you can get it from the gcc patches mailing list. The actual problem is described in the references posts, or you can just go to this Debian bug report for some of it, and if you want more, google debian multiarch changes.

    Hopefully you just ran the link command above. now head on down to the next code section and you should be able to build GCC and move on!

    This next step takes a really long time, long enough to go do your weekly grocery shopping, or get a nice nap. (I got my 6 month old into a stroller, went down the street to a neighbors, visited for a while, came back and it was still running… I’ve been home 2.5 hours now and it is still going) So fire away and go take a break! ***Update on this, with the changes in Mint 13/Ubuntu 12.04 that caused me to have to rewrite this entire section and spend 3 days trying to make it work, the build process ended significantly quicker. Hope you have the same luck.

    cd ~/build-loc && svn checkout svn:// gcc-svn && cd gcc-svn && ./contrib/download_prerequisites && ./contrib/gcc_update && export LIBRARY_PATH=/usr/lib/i386-linux-gnu:/usr/lib:/usr/lib/x86_64-linux-gnu && ./configure && make && sudo make install

    Now we can actually install Wine (note this builds a 32bit AND 64bit install for Wine)

    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get update && sudo apt-get install libjack-dev libjack0 gstreamer0.10-plugins-good:i386 ia32-libs ia32-libs-multiarch:i386 libasound2-plugins:i386 libjack-jackd2-0 libjack-jackd2-0:i386 gobject* pthread* xext* lib32bz2-dev libpulse-dev && sudo apt-get install --install-suggests flex bison qt3-dev-tools qt4-qmake && sudo apt-get dselect-upgrade

    You may need to know, the default window manager for mint is “MDM”

    mkdir ~/build-loc/wine/ && cd ~/build-loc/wine && git clone git:// wine-git
    mkdir ~/build-loc/wine/wine64 && cd ~/build-loc/wine/wine64 && ../wine-git/configure --enable-win64 && make && sudo make install
    mkdir ~/build-loc/wine/wine32 && cd ~/build-loc/wine/wine32 && ../wine-git/configure --with-wine64=../wine64 && make && sudo make install

    I get an error message at this point that I have been unable to ~/Down

    cd ~/build-loc && svn checkout winetricks && sudo cp src/winetricks /usr/local/bin/
    chmod +x ~/build-loc/winetricks/src/ && ~/build-loc/winetricks/src/

    • My best guess was that it took 5-10 minutes to get the git source, 30-45 minutes to build and install wine64 and the same again for wine32. Once I get a script uploaded to do this for you, you may wnat to run it instead of entering each line, so you can start it and then go to bed! It will take me a bit to figure out how to code the Vi editing into a script, I know I can do it, but will have to look up the correct syntax, so it might be a while before I get it done.

    None of this is necessary with mint 13, as it ships with this version on vlc installed already. But I’ll leave this here incase someone wants to build it anyway.

  8. VLC video player

    1. mkdir ~/build-loc/vlc && cd ~/build-loc/vlc && sudo apt-get build-deps vlc && wget && tar -xf vlc-2.0.1.tar.xz && cd ..

    2. That should add 93 packages taking up 37.5MB of space. Now you have the source, but you need to do a few more things before it will build
      • In case you have errors that I do not cover you can download all the necessary dependencies from VLC’s homepage<, please note that these may or may not be up to date versions./li>‘

      sudo apt-get install --install-suggests liba52-0.7.4-dev libgcrypt11-dev libflac-dev libgpod-dev libindicate-dev libzvbi-common libzvbi-dev libzvbi0 libwxgtk2.8-dev libtagc0-dev libsqlite3-dev libcurl4-gnutls-dev yasm

      • When prompted, select No, unless you are installing this on a high end system (6+ CPU cores with 8GB+ RAM), else you may have random system lock ups and not know why

      cd ~/build-loc && svn checkout svn:// ffmpeg && cd ffmpeg && ./configure --prefix=~/build-loc/vlc/vlc-2.0.1/contrib
      make install

    3. Now we can start building a fully functional VLC


  9. Citrix
    Update note – June 18th 2013
    I just did this on Linux Mint 15, and all went well, except I did not have the ia32libs installed before I tried it… use this line to get those installed, or you can try anyway if you are not sure if you have already installed them, then install the “missing dependencies” and just start over from step one here and it should go fine. Currently takes approx 60-120 seconds for anything to appear on screen after clicking a citrix app link, much improved, but not perfect :)

    sudo apt-get install --installsuggests ia32-libs lib32z1 lib32z1-dev li32asound2 lib32asound2-dev nspluginwrapper

    that should try to install a massively huge amount of files (I actually just did it in package manager so I am not certain what the output would be from a command prompt.)

      • Download the citrix receiver and the USB .deb files for x64 linux, previously I have not used the ffmpeg source files

      sudo apt-get install --install-suggests motif-clients && sudo mkdir -p /usr/lib/ICAClient/keystore/cacerts && sudo apt-get install -f && sudo dpkg -i ~/Downloads/icaclient*.deb
      sudo vi /var/lib/dpkg/info/icaclient.postinst

      • The last part of the line above will open the VI editor so you can fix the problem with the following commands.
      • {ESC} :%s/”i\[0-9\]86″/-iE “86_64″/ {ENTER}
      • {ESC} :wq! {ENTER}

      after this first line the license agreement will pop up, obviously you have to agree to it.

      sudo dpkg --configure -a && sudo dpkg -i ~/Downloads/ctxusb*.deb
      sudo ln -s /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts
      sudo wget -P /opt/Citrix/ICAClient/keystore/cacerts --no-check-certificate

      • The third line (the wget) is to add the GoDaddy Certificates for Citrix, which my work requires. If you skip this line and then get an SSL 61 error when trying to connect to your citrix and it mentions GoDaddy, come back and run that line then try again. The second line should resolve most non-GoDaddy errors. The GoDaddy errors are caused by GoDaddy changing the filename of their certs, either voluntarily or not. Also, there is no harm in running it now or skipping it and doing it later.
    2. just a note, the first time I set Citrix up on 64 bit Mint 12 it took 3-8 minutes for a click on a citrix app link to open, but it opened EVERY click, so while I was learning this, I clicked maybe 30 times… just an fyi. (seems to be a bit faster now with mint 13, not sure what I did different)

    Not sure I want to do the scripts, as there are so many issues that could happen and it is not that hard to just copy and paste the code from here… will see, I’ll either do it or I won’t. if someone requests it in the comments, then I’ll go ahead and make them.


Leave a Reply

2 visitors online now
0 guests, 2 bots, 0 members
Max visitors today: 8 at 03:16 am UTC
This month: 20 at 10-12-2021 11:13 am UTC
This year: 237 at 03-24-2021 09:01 pm UTC
All time: 1100 at 08-08-2011 08:11 pm UTC