I had to look at an Ubuntu installation the other day that had a problem after it had been upgraded. This problem turned out to be that the friend had previously installed an early version of the Grub boot loader and had not regressed this before the upgrade , an easy mistake to make.
The cure for this is well documented on the web and the solution is to boot your PC with an Ubuntu live CD and mount the harddisk in a chroot jail so we can then play with it and re-install the correct version of Grub. This procedure was taken from the official Ubuntu wiki.
Reinstalling GRUB 2 from LiveCD
If you cannot boot from GRUB 2 and need to reinstall it:
* Boot to the 9.10 Karmic LiveCD Desktop.
* Open a terminal - Applications, Accessories, Terminal.
* Determine your normal system partition - `sudo fdisk -l` (That is a lowercase L)
* If you aren't sure, run `df -Th`. Look for the correct disk size and ext3 or ext4 format.
* Mount your normal system partition:
Code:
sudo mount /dev/sdXX /mnt
o Note: substitue the correct partition: sda1, sdb5, etc.
o Note: GRUB 2 counts the first drive as "0", but the first partition as "1"
* Only if you have a separate boot partition:
o
sudo mount /dev/sdYY /mnt/boot
with sdYY being your /boot partition designation.
* Note: If you have any other system partitions such as "/usr" these should also be mounted in a similar manner.
* Mount devices:
sudo mount --bind /dev/ /mnt/dev
* Chroot into your normal system device:
sudo chroot /mnt
* Reinstall GRUB 2:
sudo grub-install /dev/sdX
*
o Note: Substitute the correct device - sda, sdb, etc. Do ''not'' specify a partition number.
* Verify the install:
sudo grub-install --recheck /dev/sdX
o Note: Substitute the correct device - sda, sdb, etc. Do ''not'' specify a partition number.
* Exit chroot: CTRL-D
* Unmount devices:
sudo umount /mnt/dev
* If you mounted a separate /boot partition:
sudo umount /mnt/boot
* Unmount last device:
sudo umount /mnt
* Reboot.
This procedure had his machine up and running perfectly again in five minutes, but just shows how flexible this live CD is and there are no real limitations to what you can get up to once you have this up and running.
Sunday, 8 November 2009
Thursday, 5 November 2009
Is ranting about Microsoft Windows on a par with being a religious zealot
Having studied evolutionary biology for most of my life, an interest I picked up in school, I have read a lot about many facets of the Theory, and one side junction from this is the concept of Memes. This has been described as a social/cultural equivalent to genetics and has many postive qualities that has helped the progress of Homo Sapians to evolve to our current state.
One simple example of this is the ability of parents to pass on to their children the concept that swimming with crocodiles is not a good idea for the families genetic advancement, but I think you get the picture. This has also been used as an example for the worldwide adoption of many types of religions that get handed down through the ages from parents to children with not an ounce of evidence but just firm beliefs.
This has led me on to thinking about some peoples rabid support for Microsoft Windows when the facts presented to everyone run completely contrary to the evidence. I would argue that it is Memes at play here , and I'm sure that Microsoft use this to their advantage. This post isn't going to bash Windows or put forward Linux per se, I use both and they both have there place. It just facinates me why people can firstly be so "religious" about an operating system - removing Microsofts huge PR campaigns for an instance. I have used Apples MAC OSX and it is a good system, it has some issues, but for a home user it has many advantages. It's one big draw back for me is the cost of the hardware, but thats just personal. I have used BSD, Solaris etc, and they are also good and have there place in the operating system eco system. I use Microsoft XP in a virtual machine for certain non-other-os applications, and it works fine in that role.
I choose to use Linux for many reasons, none of them fanatically idealogical. The first is that it is intellectually interesting to working within a software development environment where you can be actively involved, which I am. I talk regularly to many developers of many systems about issues and bugs, try doing that with Apple or Microsoft. The software that the various communities produce is of a very high standard and can be used in many interesting and diverse scenarios, with everything from running my desktop to type this blog post, to a mutli-million pound cloud infrastructure, all with the same basic building blocks. I also enjoy the freedom that the developers have to create many interesting and complete solutions to web based problems, just look at the most famous open source project of them all Firefox. They can just grab the components they want without worrying about costs or licenses, and I know personally that is a big plus for me.
I feel that people who enjoy the variety that the modern software world has to offer have open minds and are happy to explore new ideas and paradigms, and that the closed minds just follow the hurd into the same old ways of doing things, the Microsoft way. This is my experience and your mileage may vary, but how many MCSE's do you know would install an Apache Tomcat server to just get the job done, instead of trying to stear the entire project to use .NET?
It appears to boil down to one simple fact, that Microsoft got there first and have placed their Memes firmly in place, and like religion , it is going to take one hell of a lot of shifting. I feel with things like Andoid and Maemo people will see on their portable devices how good alterantives can be and this will start to break the mold. I also see Googles OS having a major impact to affect change in peoples minds, but it will not be quick or over night.
One thing is perfectly clear though, Redmond are not going to give in without a fight, and they know how to be extremely dirty when they have to. Anyone see the parallels here to jealous, religious zealots? I certainly do.
One simple example of this is the ability of parents to pass on to their children the concept that swimming with crocodiles is not a good idea for the families genetic advancement, but I think you get the picture. This has also been used as an example for the worldwide adoption of many types of religions that get handed down through the ages from parents to children with not an ounce of evidence but just firm beliefs.
This has led me on to thinking about some peoples rabid support for Microsoft Windows when the facts presented to everyone run completely contrary to the evidence. I would argue that it is Memes at play here , and I'm sure that Microsoft use this to their advantage. This post isn't going to bash Windows or put forward Linux per se, I use both and they both have there place. It just facinates me why people can firstly be so "religious" about an operating system - removing Microsofts huge PR campaigns for an instance. I have used Apples MAC OSX and it is a good system, it has some issues, but for a home user it has many advantages. It's one big draw back for me is the cost of the hardware, but thats just personal. I have used BSD, Solaris etc, and they are also good and have there place in the operating system eco system. I use Microsoft XP in a virtual machine for certain non-other-os applications, and it works fine in that role.
I choose to use Linux for many reasons, none of them fanatically idealogical. The first is that it is intellectually interesting to working within a software development environment where you can be actively involved, which I am. I talk regularly to many developers of many systems about issues and bugs, try doing that with Apple or Microsoft. The software that the various communities produce is of a very high standard and can be used in many interesting and diverse scenarios, with everything from running my desktop to type this blog post, to a mutli-million pound cloud infrastructure, all with the same basic building blocks. I also enjoy the freedom that the developers have to create many interesting and complete solutions to web based problems, just look at the most famous open source project of them all Firefox. They can just grab the components they want without worrying about costs or licenses, and I know personally that is a big plus for me.
I feel that people who enjoy the variety that the modern software world has to offer have open minds and are happy to explore new ideas and paradigms, and that the closed minds just follow the hurd into the same old ways of doing things, the Microsoft way. This is my experience and your mileage may vary, but how many MCSE's do you know would install an Apache Tomcat server to just get the job done, instead of trying to stear the entire project to use .NET?
It appears to boil down to one simple fact, that Microsoft got there first and have placed their Memes firmly in place, and like religion , it is going to take one hell of a lot of shifting. I feel with things like Andoid and Maemo people will see on their portable devices how good alterantives can be and this will start to break the mold. I also see Googles OS having a major impact to affect change in peoples minds, but it will not be quick or over night.
One thing is perfectly clear though, Redmond are not going to give in without a fight, and they know how to be extremely dirty when they have to. Anyone see the parallels here to jealous, religious zealots? I certainly do.
Labels:
Google Android,
Google Chrome OS,
linux,
Microsoft windows,
nokia maemo,
religion
Friday, 30 October 2009
Well Ubuntu 9.10 has officially arrived and it is good
I know this release is getting a lot of very favourable press, and quite rightly. It has delivered on all the promises that we could see taking shape in the early alphas. It boots incredible quickly, and is a real surprise to all those who see it and are used to 2 minutes to a usable desktop. The use of the latest 2.6.31 kernel has enhanced hardware support , and has move Intel graphics support to a new level with kernel mode setting.
As I have documented on this blog I took the opportunity to upgrade with this release to the 64bit version, and I'm really glad I have made the switch on the desktop. The system is unquestionable faster, but then it should be, it was built for a 64bit OS. I have only found one application that is 32bit only currently - the Amazon mp3 downloader - but that is easily fixed by using a great utility called getlibs. I think with the Mac already being 64bit, and Windows slowly moving down that road, that all the barriers to using this will melt away within the next few years.
The new application store just works, and installing software can't get any easier than this without the computer being able to read your mind. The selection of pre-installed applications is first class and are all first class. Installing additional browsers like Google chrome is now very straigt forward, and it will only be a matter of time before that is in the software store.
The introduction of the new cloud based storage option - Ubuntu one - is an extremely useful addition for those users who never get around to backing anything up. Just make sure you pop things you want to keep into that folder, and it is backed up for you. If you are worried about security, encrypt the file first, but it depends on what is in that file.
Network connections and management are just so simple with this version, and once you have told it the passwords for your various WIFI networks it just seemlessly connects. I remember a good friend of mine lent me a Macbook to try and get me to switch to Apple, and I was very impressed with it's seemless WIFI support, but Ubuntu is just as seemless now. The polish on this release just appears from every little corner.
Another point that has constantly been made about Ubuntu was the initial choice of colour schemes and the desktop themes, well this has all been addressed, and with the community themes, you can customise your machine in many different ways. The background pictures are all exceptional and are fun to play with.
Multiple screen management has in the passed been problematic, but this Dell laptop I'm using has an external monitor attached, running at a completely different resolution - 1280x1024 - to the laptop screen - 1280 x 800, and it is completely seemless as I drag applications between my monitor real estate.
I think you would be silly at this point in the software industry to now ignore Linux as a credible alternative in the majority of desktop applications. It is definitely worth your time and effort to download and play with it for a few weeks to see what all the fuss is about.
Get it while it's hot Ubuntu 9.10
As I have documented on this blog I took the opportunity to upgrade with this release to the 64bit version, and I'm really glad I have made the switch on the desktop. The system is unquestionable faster, but then it should be, it was built for a 64bit OS. I have only found one application that is 32bit only currently - the Amazon mp3 downloader - but that is easily fixed by using a great utility called getlibs. I think with the Mac already being 64bit, and Windows slowly moving down that road, that all the barriers to using this will melt away within the next few years.
The new application store just works, and installing software can't get any easier than this without the computer being able to read your mind. The selection of pre-installed applications is first class and are all first class. Installing additional browsers like Google chrome is now very straigt forward, and it will only be a matter of time before that is in the software store.
The introduction of the new cloud based storage option - Ubuntu one - is an extremely useful addition for those users who never get around to backing anything up. Just make sure you pop things you want to keep into that folder, and it is backed up for you. If you are worried about security, encrypt the file first, but it depends on what is in that file.
Network connections and management are just so simple with this version, and once you have told it the passwords for your various WIFI networks it just seemlessly connects. I remember a good friend of mine lent me a Macbook to try and get me to switch to Apple, and I was very impressed with it's seemless WIFI support, but Ubuntu is just as seemless now. The polish on this release just appears from every little corner.
Another point that has constantly been made about Ubuntu was the initial choice of colour schemes and the desktop themes, well this has all been addressed, and with the community themes, you can customise your machine in many different ways. The background pictures are all exceptional and are fun to play with.
Multiple screen management has in the passed been problematic, but this Dell laptop I'm using has an external monitor attached, running at a completely different resolution - 1280x1024 - to the laptop screen - 1280 x 800, and it is completely seemless as I drag applications between my monitor real estate.
I think you would be silly at this point in the software industry to now ignore Linux as a credible alternative in the majority of desktop applications. It is definitely worth your time and effort to download and play with it for a few weeks to see what all the fuss is about.
Get it while it's hot Ubuntu 9.10
Labels:
Chromium,
Google Chrome,
linux,
open source,
ubuntu 9.10
Wednesday, 28 October 2009
The exceptional power of an Ubuntu 9.10 live CD
I have been looking at some strange hardware lately, and one piece of hardware that turned up on my desk was a panel PC, with cables hanging out of the back of it. Many people had tried to install various types of OSes onto the thing with no success, that was until I turned up with an Ubuntu 9.10 x86_64 CD.
We got to a X screen within 10 seconds, while one guy was still explaining to a small group of people that getting X to work on this device would be next to impossible. Needless to say he has kept his mouth shut for over a week now, basically to stop us all wetting ourselves again.
It has many new components including a new Intel graphics chipset, and Ubuntu detected and installed a driver for them all and worked perfectly. It allowed us to test the unit for a specific task that we had, which was all that wa required at this stage.
I'm sure with the correct drivers other OSes could be made to work this unit, but why would you bother when it just works with Ubuntu.
We got to a X screen within 10 seconds, while one guy was still explaining to a small group of people that getting X to work on this device would be next to impossible. Needless to say he has kept his mouth shut for over a week now, basically to stop us all wetting ourselves again.
It has many new components including a new Intel graphics chipset, and Ubuntu detected and installed a driver for them all and worked perfectly. It allowed us to test the unit for a specific task that we had, which was all that wa required at this stage.
I'm sure with the correct drivers other OSes could be made to work this unit, but why would you bother when it just works with Ubuntu.
Labels:
Intel graphics,
internet tablet PC,
linux,
Ubuntu,
ubuntu 9.10
Saturday, 24 October 2009
Cloud storage helps data access across local virtual machines
Another fantastic use for cloud based file storeage is to keep the information in sync between your main machine and all your virtual machines on that host. I have to keep a lot of documents around for the various projects I'm currently working on , and having to duplicate those across several virtual machines would be a complete pain in the backside. So the easy and simple way around this, while also making sure that they are constantly backed up, is to open either an Ubuntu one or Dropbox cloud account , and save your documents there.
I know several people may well advice you that you data isn't safe, or could be looked at by the company staff running the systems, but having read the security documents of these companies, and knowing the reliability of local storage, I believe the potential for undeisred access to your data is far out weighed by the massive advantages you get on the other side, of which this use is but one.
Once the documents are saved into the Ubuntu One or Dropbox folder, you can then share that folder with any virtual machine on your host as this folder is constantly available to you, even while off-line, which is great for working on the move.
I'm currently running the 64bit version of Virtualbox on my Dell XPS laptop, with Ubuntu 9.10 , and using the Dropbox and Ubuntu One cloud areas for my data. I then simple share these using the shared folder utility - see below - and can access my documents easily and securely from any of my many virtual machines which include:
Windows XP
Redhat Enterprise server - several
Fedora 11
Ubuntu 9.10 server - several
Windows 7 - toy, of no practical use

I also have to comment that I'm using Virtualbox considerably more these days on the laptop as it is just faster than VMware workstation and it's open source and free. I still keep VMware around for those virtual machines that need it, but all my new machines are now built with Virtualbox. I do fully expect VMware workstation to at some stage to be made free, as trying to compete with Virtualbox with just VMware player is not going to work as a strategy. VMware has all the other technologies knocked into a cocked hat when it comes to the server management and deployment, but the workstation has moved on.
I know several people may well advice you that you data isn't safe, or could be looked at by the company staff running the systems, but having read the security documents of these companies, and knowing the reliability of local storage, I believe the potential for undeisred access to your data is far out weighed by the massive advantages you get on the other side, of which this use is but one.
Once the documents are saved into the Ubuntu One or Dropbox folder, you can then share that folder with any virtual machine on your host as this folder is constantly available to you, even while off-line, which is great for working on the move.
I'm currently running the 64bit version of Virtualbox on my Dell XPS laptop, with Ubuntu 9.10 , and using the Dropbox and Ubuntu One cloud areas for my data. I then simple share these using the shared folder utility - see below - and can access my documents easily and securely from any of my many virtual machines which include:
Windows XP
Redhat Enterprise server - several
Fedora 11
Ubuntu 9.10 server - several
Windows 7 - toy, of no practical use

I also have to comment that I'm using Virtualbox considerably more these days on the laptop as it is just faster than VMware workstation and it's open source and free. I still keep VMware around for those virtual machines that need it, but all my new machines are now built with Virtualbox. I do fully expect VMware workstation to at some stage to be made free, as trying to compete with Virtualbox with just VMware player is not going to work as a strategy. VMware has all the other technologies knocked into a cocked hat when it comes to the server management and deployment, but the workstation has moved on.
Labels:
cloud computing,
cloud storage,
dropbox,
linux,
ubuntu one,
virtualbox,
virtualization
Thursday, 15 October 2009
Chromium competition has been good for Firefox

It has been said many times that competition is good for the consumer, and it would appear that this is as true of the Linux browser as any other area of computing where competition is allowed to flourish and is not distorted by monopolies. Microsofts Internet Explorer being one of the most visible examples of letting a monopoly position badly service the requirments of the modern web.
Historically , due to many reasons dating all the way back to Netscape navigator, Mozilla firefox has ruled the roost on the Linux platform, and it has served it well, but has of late been made to feel a little long in the tooth due to the new kid on the block, Google Chrome or Chromium. Well this is about to change.
I have been testing the latest trunk build of Mozilla Firefox 3.7 on my Ubuntu 9.10 64bit machines, and it perform's extremely well, and is major improvement over the 3.5 version that now comes pre-installed with Ubuntu 9.10. They have also been watching the competition and have taken a couple of ideas that Google brought to the party, which is opening new tabs for clicked on links next to the original window, rather that at the end of all your open tabs. This is one of the nice features I really like about Chromium, and this does Firefox no harm at all.
I still think the designers for Firefox on Linux version could do a better job with the general layout of tabs and the icons in a default install. The other thing you get with Firefox today is the excellent Mozilla Weave cloud based bookmark/tab store, which makes switching versions simple, and the thousands of extensions and plugins you get with Firefox, which will take Chrome a good many years to replicate.
The one big thing that Chromium still lacks is the build in version check which firefox has had for years. On Linux to some extent this is mitigated by your software repositiories, but if you want to go off piste and test the latest versions, this is a very useful built in feature.
As I said at the top of this post, competition is good, and I'm sure the Chromium developers will deliver on their syncing software, and the extensions are already starting to appear, even if they are still a little basic.
Labels:
Chromium,
firefox,
Firefox 3.7,
Google Chrome,
linux,
open source,
Ubuntu
Wednesday, 14 October 2009
Building a secure bank account access virtual machine with Windows and Ubuntu
If you use your computer for accessing your bank accounts, and you use Microsoft Windows , you should be very worried at this moment in time if any of the following are not upto date:
1) Your Anti-virus
2) You Anti Spyware
3) Your Trojan detection
4) Your firewall software - all of them including zone alarm
5) You Anti-keylogger
If you don't know what any of the above are, then I recommend you immediately turn off you PC and speak to someone who does, as cyber fraud with Microsoft Windows is currently rampent and on the increase.
Having used Unix/Linux for many years, the above problems are massively reduced on that platform, and I therefore thought of a way to keep my Microsoft user friends safe as well.
So without further ado, here is what to do:
Step 1: Go to the following web site and download a piece of software for Windows, that will allow us to run Linux on top of it, without you having to change anything within Windows. You will need to be administrator to install this.
Virtual Box Downloads
Once you have this installed this we can then move onto the next step.
Step 2: Download a copy of Ubuntu Linux from the following web site. This file is of a type "ISO", you don't need to understand what that is, but we are going to use it to install our new "virtual machine". Note exactly where you store this on your machine, as we need this information later
Ubuntu Linux software
Step 3:
Load your virtual box software and click on the new virtual machine box - there are fantastic documents on the virtual box website to help but I will show a quick graphical install here. You can leave all the settings as defaults, just click next, and you can put the files into your My Document folder:





Just click on Finish and you have the bare bones of your new machine.
You now need to click on the settings button for your new virtual machine, as we are going to tell it where to find it - it's where you downloaded it from the Ubuntu web site.

You will be prompted with another screen , and you just need to select your downloaded "ISO" file. Just click on the ADD button and select the location.

Step 4: Lets test what we have.
Click on the Start button, and your new virtual machine will burst into life, just select your language and the try before install option, and that is it. This virtual machine in it's current state can not be written too, so no bad software can be installed, but it also means you would need to install Flash or Java everytime if your bank requires it. See below.


Step 5:
The next decision is upto you. You can either leave it like this and be super safe, but need to do some work each time you need to access the bank , or you can now install it into this new virtual machine and again only use it for your secure on-line communications, and never download anything apart from security updates to it. The beauty of Virtual box is the fast suspend and resume facility, which makes using this software a breeze.
Now I know for some this may seem difficult, but with a little reading and asking around it is not beyond most computer literate people. The question you really have to ask yourself, is what would you do if someone empties your bank account, how much pain would that cause you?
1) Your Anti-virus
2) You Anti Spyware
3) Your Trojan detection
4) Your firewall software - all of them including zone alarm
5) You Anti-keylogger
If you don't know what any of the above are, then I recommend you immediately turn off you PC and speak to someone who does, as cyber fraud with Microsoft Windows is currently rampent and on the increase.
Having used Unix/Linux for many years, the above problems are massively reduced on that platform, and I therefore thought of a way to keep my Microsoft user friends safe as well.
So without further ado, here is what to do:
Step 1: Go to the following web site and download a piece of software for Windows, that will allow us to run Linux on top of it, without you having to change anything within Windows. You will need to be administrator to install this.
Virtual Box Downloads
Once you have this installed this we can then move onto the next step.
Step 2: Download a copy of Ubuntu Linux from the following web site. This file is of a type "ISO", you don't need to understand what that is, but we are going to use it to install our new "virtual machine". Note exactly where you store this on your machine, as we need this information later
Ubuntu Linux software
Step 3:
Load your virtual box software and click on the new virtual machine box - there are fantastic documents on the virtual box website to help but I will show a quick graphical install here. You can leave all the settings as defaults, just click next, and you can put the files into your My Document folder:





Just click on Finish and you have the bare bones of your new machine.
You now need to click on the settings button for your new virtual machine, as we are going to tell it where to find it - it's where you downloaded it from the Ubuntu web site.

You will be prompted with another screen , and you just need to select your downloaded "ISO" file. Just click on the ADD button and select the location.

Step 4: Lets test what we have.
Click on the Start button, and your new virtual machine will burst into life, just select your language and the try before install option, and that is it. This virtual machine in it's current state can not be written too, so no bad software can be installed, but it also means you would need to install Flash or Java everytime if your bank requires it. See below.


Step 5:
The next decision is upto you. You can either leave it like this and be super safe, but need to do some work each time you need to access the bank , or you can now install it into this new virtual machine and again only use it for your secure on-line communications, and never download anything apart from security updates to it. The beauty of Virtual box is the fast suspend and resume facility, which makes using this software a breeze.
Now I know for some this may seem difficult, but with a little reading and asking around it is not beyond most computer literate people. The question you really have to ask yourself, is what would you do if someone empties your bank account, how much pain would that cause you?
Subscribe to:
Posts (Atom)


