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 [...]
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
- Installing Chromium Browser Beta
- 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.
- 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:
- jjyyplla-src {ESC}
- jyyplla-src {ESC}
- jyyplla-src {ESC}
- jyyplla-src {ESC}
- :wq! {ENTER}
This pulls down 232 packages and ~730MB of datawith 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
- Wine
- {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
- 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
- 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.
- VLC video player
- 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>‘
- 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
- Now we can start building a fully functional VLC
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
sudo vi /etc/apt/sources.list
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
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 http://winezeug.googlecode.com/svn/trunk/install-wine-deps.sh && chmod +x *.sh
vi ./install-wine-deps
sudo apt-get install jed-extra && sudo ./install-wine-deps.sh
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: configure.ac: 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 http://ftp.gnu.org/gnu/automake/automake-1.12.1.tar.gz && 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…
configure.ac:110: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:220: 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 http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.bz2 && 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 http://ftp.gnu.org/gnu/gcc/gcc-4.7.0/gcc-4.7.0.tar.bz2 && 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://scm.gforge.inria.fr/svn/mpfr/trunk mpfr && cd mpfr && autoreconf -f -i && autoreconf -f -i && ./configure && make && sudo make install
cd ~/build-loc && svn checkout svn://scm.gforge.inria.fr/svn/mpc/trunk 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.gnu.org/svn/gcc/trunk 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://source.winehq.org/git/wine.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 resolve.cd ~/Down
cd ~/build-loc && svn checkout http://winetricks.googlecode.com/svn/trunk/ winetricks && sudo cp src/winetricks /usr/local/bin/
chmod +x ~/build-loc/winetricks/src/install-gecko.sh && ~/build-loc/winetricks/src/install-gecko.sh
—————————————————————————————
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.
mkdir ~/build-loc/vlc && cd ~/build-loc/vlc && sudo apt-get build-deps vlc && wget http://download.videolan.org/pub/vlc/2.0.1/vlc-2.0.1.tar.xz && tar -xf vlc-2.0.1.tar.xz && cd ..
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
cd ~/build-loc && svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg && cd ffmpeg && ./configure --prefix=~/build-loc/vlc/vlc-2.0.1/contrib
make install
cd ~/build-loc/vlc/vlc-2.0.1 && ./bootstrap && ./configure --enable-x11 --enable-xvideo --enable-sdl --enable-avcodec --enable-avformat --enable-swscale --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-live555 --with-live555-tree=/usr/lib/live--enable-caca --enable-skins --enable-skins2 --enable-alsa --enable-qt4 --enable-ncurses
make && sudo make install
------------------------------------------------------------------------------
- https://www.citrix.com/English/SS/downloads/details.asp?downloadId=2323812&productId=1689163
- Download the citrix receiver and the USB .deb files for x64 linux
- 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}
- 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.
- 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)
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
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 https://certs.godaddy.com/repository/gd-class2-root.crt https://certs.godaddy.com/repository/gd_intermediate.crt https://certs.godaddy.com/repository/gd_cross_intermediate.crt
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.
How I setup and configure a new Linux desktop/laptop OS build, step by step from downloading the .iso through daily use.
This is more for me than for you, to assist me is remembering…
Linux Mint version 13 should [...]
How I setup and configure a new Linux desktop/laptop OS build, step by step from downloading the .iso through daily use.
This is more for me than for you, to assist me is remembering…
Linux Mint version 13 should be out this weekend, and I am writing these instructions with Linux Mint 12, as I do the installation. After I complete this (or maybe in the middle, depending on if I finish this weekend or next week on writing this up) I will update it with Mint 13 notes if anything changes (Mint 13 release could also be delayed… you never know).
Part One
Installation
- Let’s start by downloading the Linux Mint DVD
- I am using the standard Mint install, not Cinnamon nor any other flavor.
- After the download completes, burn the disk at a minimal speed
- For DVDs I always use 8x to burn, a slower speed gives a successful issue free disc more often than high speeds will, not saying that burning at high speeds causes issues, but issues are more common when doing so, and with an OS install you want as few issues on teh disc as possible!
- Since most of my systems are Mint based now, I used Brassero to burn the DVD, it auto detected that the .iso file was a disc image and did not try to burn it as a data disc with one file, thankfully.
- I like to do a pre-burn test as well
- Boot the DVD to the Live Desktop
- Connect to your wifi if you are using wifi
- Open Gparted from the application menu
- Configure your hard drive partitions
- Set the partition table to GPT
- Under the advanced button when selecting new partition table
- Create a 48MB partition
- Set 1MB preceding
- Align the partition the MB
- Set the partition label to “EFI”
- This will be partition sda1
- Create a 61440MB partition
- Align to the MB
- Set the label to “root”
- This will be partition sda2
- Create a 128000MB partition
- Align to the MB
- Set the label to “home”
- This will be partition sda3
- Create a partition with the remaining space
- Align to the MB
- Set the label to “VM” if you are going to have Virtual Machines, or “NTFS” if you wish to have a windows readable partition on the drive, I use it for VMs
- This will be partition sda4
- Apply the changes using the edit pull down menu
- Set the partition flags on sda1 to “boot”
- Exit Gparted
- Start the installation by clicking on the install icon on the desktop
- Setup your drives to match the previous configuration
- Set sda1 to fat32
- This is the EFI boot partition, without it you cannot boot or install linux on a GPT disk
- Set sda2 to ext4
- Set the mount point as root “/”
- Check the format box, Gparted uses a massive amount of space on the partition after formating
- Set sda3 to ext4
- Set the mount point as “/home”
- Check the format box, same reason as above
- Set sda4 to ext4
- Set the mount point to “/home/{username}/VM”
- Enter the primary user account ID that you will be using daily
- I prefer all CAPS for VM as it is an abbreviation, you will note I primarily use lower case all the time
- Follow the installation guide
- Make sure you set the user ID the same as the one used in the above mount point
- At the end of the install process remove the DVD when prompted and reboot
- Congratulations, you just installed Linux Mint on your system!
- To note, I did this on a Dell Latitude Laptop with an i7 mobile CPU and 4GB of Ram
- with the intent on running at least one VM nearly constantly
If you were paying attention, you will notice I did not setup a swap partition, nor a /tmp ext2 partition. I am planning on running those as tmpfs partitions (RAMDisk), as neither needs to be constantly accessing the HDD with a VM running off the same HDD on a laptop. I will configure a job to keep the /tmp partition sync’d periodically incase of a crash (power failures not likely as it is a laptop and a new one at that).
Blogroll
programming
Tech Websites
- a good coder I found on CodeProject
- Barebones HTML coding chart
- Code Project
- Extreme Overclocking
- FreeBSD blog
- Legit Reviews – Tech Hardware Review
- Linuxtopia
- Notion Ink – homepage
- Plug Computing web site and forums
- Tablet Roms – used to be – Notion Ink Hacks
- Ubuntu Forums post on the mount command and fstab file
- VMWare ESX blogger
- Wikipedia.org main page
- ZDNet's blog pages

