If you are looking for a graphical VPN client for Ubuntu, check out pptpconfig. Here’s a post on the Ubuntu forum that tells you how to install.
Category: Linux
Testdisk saved my Ubuntu bacon
Last week I got my Dell D820 running Windows XP set up to be dual-booted to Ubuntu. I used Ubuntu 5.10 (Breezy Badger) because that’s what I had handy. I was following Mathew J. Miller’s excellent instructions on how to do it.
My only problem came when it was time to install the boot loader. I had forgotten (or chose to ignore) the little partition that Dell puts on their hard drives. That meant that my Linux partition was actually number 2 (the third partition) instead of partition number 1 (the second partition) which is, unfortunately, where I told it to put the boot loader. Partition number 1 is my Windows XP partition–exactly where I did not want the boot loader written to.
And neither did Windows XP. On restart I got the dreaded “Missing operating system” error. “Thanks for the new laptop. Look what I did!”
I had used the Ubuntu Live CD to run QTParted to successfully partition my hard drive so I thought it might be able to get me out of the jam. But after the erroneous boot record write, QTParted didn’t want to have anything to do with that partition. It just threw up its hands.
I booted to the Windows XP Recovery Console and ran fixmbr as well as fixboot but neither of those were effective.
Fortunately, for times like these, there’s testdisk. Testdisk is a wonderful little utility freely-available under the GPL that can recover Windows, Mac, and Linux partitions. I booted into my Ubuntu Live CD, used apt-get to install testdisk (sudo apt-get install testdisk) and fired it up. I then disabled the “bootable” flag on the Linux partition and made my Windows XP partition bootable-primary. When I restarted, Windows XP was alive and well again.
I thought about leaving well enough alone–I was leaving for a client site the next day–but my success bolstered my partition recovery confidence. I formatted the Linux partition and re-did the Ubuntu install paying closer attention to the boot loader step. That time everything went off without a hitch.
I’m still getting used to Ubuntu. It’s a bit different than RHEL but overall I think it’s going to work out.
My LAMP VMWare image is rocking
Everything’s working great on my LAMP VMWare image. This evening I went through the IBM LAMP Tutorial. The good news is it doesn’t take too long to whip through it (about half an hour). The bad news, at least for those that lack previous programming knowledge, is that the examples are really sloppy. It’s better to follow the tutorial as a rough guide and then do your own thing than try to follow it verbatim. You would think someone would have worked through the tutorial before they put it online.
I’m definitely ready for some beefier examples. After playing with it for a few hours, I can see the attraction to PHP over the other “P” languages, at least for working with web applications. Having all of the presentation and business logic intermingled kind of makes me feel dirty, though. Hopefully, there’s a way to separate the two.
LAMP progress
Got PHP compiled and smoke tested last night. After the initial make/compile, the mod_php5.so library didn’t get compiled and my apache config file, httpd.conf, didn’t get updated with the LoadModule/AddModule entry. So I re-ran the make/compile and it worked. Weird. This weekend I’ll test the whole LAMP setup together.
Revisiting book: Setting Up Lamp
I’m re-visiting a book I got a while back called Setting Up Lamp: Getting Linux, Apache, MySQL, and PHP Working Together, by Eric Rosebrock, et al. The book serves as a nice punch list for getting everything installed and configured.
Anyway, per the recommendation in the book I was removing Apache from my Linux install so I could manually compile and install Apache 1.3 and I couldn’t get past the make step. It was complaining that it couldn’t find some statically linked shared objects. I tracked it down to a problem with libdl.so.2. I thought maybe my glibc or gcc install was bad or maybe I got over zealous in my removal of Apache and some of the packages that depend on it.
As it turned out, I had some broken links in my /usr/lib caused (I think) a while back when I had to relocate /usr/lib to a different mount point. As soon as I fixed the broken links the compile worked like a charm.
Bugzilla up-and-running
I got Bugzilla installed locally over the weekend. It was pretty straightforward, especially with this great step-by-step doc, although I had problems getting Apache to compile the Bugzilla Home Page(index.cgi) page. As it turned out, when I gave my Apache account rights to the Bugzilla directory, I had neglected to tell Windows to propogate those rights to all sub-directories. That kept Perl from finding the bugzilla/Constants.pm file.
My goal was to compare Bugzilla to Scarab. Unfortunately, I didn’t thoroughly RTFM before I upgraded my local MySQL installation. Apparently Scarab is picky about only running on MySQL 4.0.x. Now I’ve either got to revert to the old version if I want to take a look at Scarab but I may skip it.
Samba Success
My frustration level with Samba on my VMWare Linux guest OS had reached the tipping point last night when I finally had a breakthrough.
Installing the samba-client and samba-swat packages helped a bit. I used samba-client to validate that my Linux box could connect to its own shares. I used samba-swat to validate my config and get context-sensitive help on some of the smb.conf parameters.
But my Windows host OS still couldn’t see the linux shares. The host and guest could ping each other so I knew I had a base level of connectivity. Then I noticed that my Windows box couldn’t telnet to the Linux guest. That’s when I started suspecting a firewall problem on the Linux box.
I fired up the security level configuration dialog in Gnome and noticed that “eth0” was not a trusted device. As soon as I checked the box to make eth0 trusted I was able to map the shares to the host Windows box.
Linux learnings
Bash scripting help
Novell acquires SUSE, IBM invests in Novell
Novell acquires SUSE, IBM invests in Novell
http://www.novell.com/news/press/archive/2003/11/pr03069.html