I decided to try a simple little experiment today.
My laptop is dual boot with both Windows 7 and Linux Mint 11 installed. My little personal challenge was to boot into each, with a target of launching Firefox and visiting a particular website.
The first one to go was Windows 7.
It was slow, but it booted up reasonably well. Soon I had my customised desktop, but then it went through a process of loading some background programmes. It also updated the anti-virus software. As soon as it looked reasonably stable, I double clicked the Firefox icon. Nothing apparently happened, so a short while later I double clicked again. After another pause, two Firefox sessions started! I closed one. I then had to wait while all the tabs in Firefox loaded. Eventually it allowed me type in my chosen address and I accessed the site.
Time taken? 4 minutes 35 seconds.
I then powered down and tried Linux Mint.
It booted up and went through that little unnerving bit where the screen goes totally black. Eventually the desktop appeared and I clicked on the Firefox icon. As soon as the programme had loaded, I typed the target address, and accessed the site.
One of the big problems with Linux is that it has to have its own hard disk, or a section of a hard disk that is dedicated.
The simple reason for this is that Windows runs on a file system called NTFS and Linux doesn’t!
So you want to install Linux onto a machine that already runs Windows, but you are not quite sure how to do it? It is really quite simple.
For the purpose of this demonstration, I am going to install Linux Mint onto a Windows machine, though this should apply equally well to any Ubuntu based Linux.
Before we go any further, BACKUP any essential files to a CD or to another external disk. We are going to be playing around with disk formatting, and in the eventuality of anything going wrong, everything will be lost off the disk. However, I have played around with disk formatting and a failure is rare. It’s best to be on the safe side though.
Insert your Linux DVD and boot up. Strange things seem to happen and in a short while you will see this appear on your screen –
This is a running version of the system, but at the moment it is running purely in memory. It has not been installed yet. Double click on the ‘Install Linux Mint’ icon. After a short while it will ask for your language of choice. Next it checks that there is sufficient space on the disk, whether the computer is plugged in and if it’s connected to the Internet. The first two are essential. If you haven’t enough space then forget it (unless you can archive a few Gigabytes of unused files off the computer). The power connection is very important as if the battery runs down during the installation process you could potentially lose everything.
Now we come to the interesting part. It asks where we want to install Linux. The option to select is the third one – ‘Something else’
A new screen pops up and shows the current state of your disk.
In my example, I have a 51.7 Gb disk, and Windows is installed in the main area – dev/sda2. It is flagged as NTFS and takes up 51.6 Gb but we are only using 6.4 Gb. There is nowhere to install Linux so we will have to make space. Select the large partition and click on the ‘Change’ button. A new window pops up –
Now I want to allocate about half my disk to Linux, so I want to create about 25Gb of free space. Where the box says 51640, I change it to 26640, thereby freeing up 25Gb of space. Do not change anything else on that screen. It will immediately warn you that it is about to do something drastic! It will do a bit of disk checking and then come back with a new screen –
Note how there is now 25Gb of free space, and the NTFS partition has shrunk to the 26640 that we specified. In actual fact, nothing has actually happened yet, so we are still free to abandon the whole process.
Next we want to create the area for Linux to reside.
Basically Linux requires two partitions – one for the actual installation and one called a ‘Swap area’. However we are going to install Linux in three partitions – the Swap area, and area for Linux itself, and an area for all our own files and settings. This makes life a LOT easier when reinstalling Linux at a later stage. It separates Linux from our own files and if Linux goes belly-up, our files are untouched.
Select the line marked ‘free space’ and then click ‘Add…’
The first partition we will create is the Swap area. Enter 2000 (2Gb) in the size box. Change ‘Ext4 journaling file system’ to ‘swap area’. Leave the other two options alone. Your screen should be showing as follows –
Click on OK.
Next we will create the area for Linux. Select the free space again. Select ‘Add…’ and then set the size to around 6000 (6Gb should be enough) . Leave ‘Ext4 journaling file system’ as it is. Change Mount point to ‘/’, and click OK.
Last but not least, we want to set up what is called the Home area for our own files and settings.
Select the free space again. Leave the size as it stands, which means we will grab all the available space. Leave ‘Ext4 journaling file system’ as it is. Change Mount point to ‘/home’, and click OK.
You should now see this –
Note how we now have a swap area and two ext4 areas, and the larger one (marked ‘/home’) is 17Gb. That should be plenty!
Now we reach the stage where we have to commit ourselves. There is no going back once you hit the ‘Install Now’ button, but don’t worry unduly!
Click ‘Install Now’.
That’s it. Linux will resize the old partition and create the new ones. It will ask all the usual questions about Timezones, Usernames, Passwords and the like, but the hard bit is complete.
SOME ADDITIONAL NOTES.
The sizes I have used above are not hard and fast. Some recommend that the Swap size should be around the same as the memory size, while others will say that you need twice that. This machine runs very happily on a 3Gb Swap, while the memory is 4Gb! The root ‘/’ partition can be as low as 3Gb, but some programmes do install in there so it needs a bit of breathing space. Also, some programmes require a lot of temporary files, and they will be written in there, so I tend to give it at least 10Gb to play with. The home ‘/home’ partition can be as big as you like. Mine is currently around 150Gb, but then I use programmes like VirtualBox which can take up a LOT of space.
If you are reinstalling Linux then the above procedures are the same. However there is one vital thing to note –
When you are allocating the partitions, select the root ‘/’ partition and leave it as Ext4, but mark it for formatting. However when it comes to the Home ‘/home’ partition, allocate it as Ext4, using ‘/home’ but DO NOT FORMAT IT. If you format it, it will wipe your files irretrievably. On the other hand if you don’t format it, all your settings and files will remain for future use.
One of the many things I like about Linux is the ability to create partitions for various areas of the OS. The lesson I learned in the past year is that one essential trick is to give /home its own partition. The rest can fend for themselves.
My current setup is an extended partition beside my Windows one. The extended is divided into the Root partition (around 12Gb) and the Home partition (around 90Gb). Some may say that allocating 12Gb to Root is a lot (it will work on a quarter that) but some applications require a lot of temporary space, and the /tmp folder is included in that partition.
As a result of this partitioning, all my personal stuff, from documents and downloads through to program settings and mail accounts are all stuck in the Home partition. The trick then is that when installing (or reinstalling) a new version of the OS, you set the small Root partition to be formatted and set the large Home partition to ‘/home’ but do not set this partition for formatting.
The end result is that the OS is installed in a nice clean partition, but all your files and settings remain intact. Fire up Firefox? There are all your bookmarks, and even the tabs that were open before the installation. Open up Thunderbird? There are all your accounts and mails.
A lovely example of the convenience of this method is that I have VirtualBox installed. I have several virtual machines set up, including one for Windows 7. After the upgrade to the OS, it is a simple matter of reinstalling VirtualBox and voila – there are all my virtual machines just as I left them. I have saved myself the bother of having to restore tens of gigabytes of data.
All in all, from burning the DVD through to having all programmes up and running took less than an hour, and I use quite a few programmes that aren’t on the release DVD. Not bad?
Now I have to play with my new version to see what’s what!
Recently I started messing around with screen captures.
There was no reason for this other than straightforward curiosity, and the belief the the best way to learn anything is through trial and error.
Obtaining a static snapshot of any part of the screen is pure simplicity in Linux. I use Shutter and it does everything I could possibly ask.
Dynamic recording of a desktop (or part thereof) is a little more complex, as I discovered.
I searched around and discovered recordMyDesktop, which on the face of it does precisely what I wanted. I went into my Software Manager and downloaded it along with gtk-recordmydesktop, which is its front end. Both were downloaded form the Linux Mint repository so I didn’t expect any problems. I fired up the programme, selected a portion of the screen and clicked on ‘record’. That was the start of my problems.
Having let the programme record for about fifteen seconds, I told it to stop. Immediately the recordMyDesktop-encoder appeared on my screen with its progress bar and a dire warning that doing anything to it would lose my recording. Two things worried me straight away. The first was a ghost outline of the area I had recorded, which refused to go away, and the second was that the progress bar did absolutely nothing. It steadfastly remained stuck on 0% and that was it. In the end, the only way I could shut the whole lot down was to kill the process using System Monitor.
I searched the Internet, but could find no resolution. After a lot of false trails I decided that recordMyDesktop was just not going to work so I decided to try alternative methods. During my research, I came across one tutorial that talked about command line capture using ‘ffmpeg’. I decided to try that, even though I am not a particular fan of command lines. However, I discovered that ffmpeg is not part of the base install of Linux Mint. No problem – I installed it.
It was at that point I had a thought that maybe that was why recordMyDesktop wasn’t working. I tried it again, and it worked perfectly!
As a test, I recorded a Movie Player visualisation. As I wanted good sound quality, I decided to record just video, and to dub on sound afterwards. Capturing the video went without a hitch, but I ended up with an ‘OGV’ file which could be played in Media Player but that’s all. I wanted to dub the sound on, and had chosen Avidemux as my chosen application, but that didn’t recognise OGV files.
I resorted to the Internet again and found the solution –
n the above, ‘out.ogv’ is the file I wish to process and newfile.avi is the output. This worked perfectly so then it was a simple matter of combining my original video with my original MP3.
The result –
Incidentally, the only reason I chose to work on that particular visualisation is because I like the effect.
Bang it up to full screen, then sit back and relax!
Since switching to Linux, I have played around with a few distributions.
Using my Virtual Box I have installed and run various flavours including Suse and Ubuntu. I wasn’t that happy with Suse at it came across (to me) as being rather clunky. Ubunto was much better but was so similar to Mint that it wouldn’t be worth changing over. Better the devil you know, and all that.
Earlier this wee I heard of a new flavour that promised to be a tad different – Ubuntu Natty Narwhal. I thought I would give it a try.
I had been warned that Natty doesn’t install very well under Virtual Box, so I decided to add it straight to hard disk. I shrunk one of my partitions to create some space and fired off Natty. Here I found a strange quirk – everything went very well up to the very last stage of the install. It had cycled through all the various splash screens and was on the last one that thanked me for installing it. The progress bar had done all its copying, clearing, installing of Grub and the rest and then came to a halt about three quarters way across the screen. I waited for about fifteen minutes and decided there was something wrong. During that fifteen minutes the DVD hadn’t spun up, and the hard disk seemed to pretty quiet as well. I rebooted the machine and tried again, with the same result. This time I left it at its three quarters mark and sat back and waited. This time it installed perfectly but be warned – that ‘sticking’ at three quarters is a false error – it is in fact still installing even though it appears to have stalled.
Natty is different from any other flavour of Linux I have tried before. I will be honest and say that it is not for the beginner as it functions very differently from either KDE or Gnome.
It’s emphasis is very much on using as much of the screen as possible, and therefore there are no such things as menu or status bars, apart from one narrow one at the top of the screen. Whenever an application is opened, its menu automatically appears in the top bar which is a little disconcerting at first. The main menu is also nicely concealed and is activated by shoving the cursor to the top left of the screen.
This is only a Beta release of Natty and I appreciate that it will lack some functions. What I did find very strange was that the Software Centre was quite generous with games, but lacked such items as Skype or VirtualBox. By adding the standard repositories, I was however able to download all the usual suspects.
I have been playing around with it for a couple of days now, and I am impressed. It took a while to get used to the repositioning of a lot of items, but practice makes perfect.
I possibly will transfer my allegiance to Natty once the final release is out. What is even better is the fact that Mint is based on Ubuntu so the two are virtually interchangeable. Therefore when I am finally setting up Natty, I will specify its current partition as Root, but will specify my Mint Home partition as the new Natty Home partition, remembering to specify the old format (Ext4) and NOT formatting it. That way, all my documents and other work don’t have to be transferred as they will already be there in the new Natty Home. I tried this, and it works perfectly, though I have since given Natty its own small Home partition for test purposes.
The only real problem that I have encountered with this new install is that my Grub menu is getting damned cluttered!