Metauser

How deep does the rabbit hole go?

Only as you do know yourself can your brain serve you as a sharp and efficient tool. Know your own failings, passions, and prejudices so you can separate them from what you see. -- Bernard M. Baruch

Home Photos

June 3, 2008

Cisco VPN Client on Ubuntu 8.04 64-bit

mitch @ 9:06 am on June 3, 2008

Last night i decided that running the server kernel for the PAE mods isn’t really a good fix on my new ThinkPad T61, so I installed the 64bit version of Ubuntu.

I had a few issues with getting the Cisco VPN client installed but found these instructions to help.

1. Untar the VPN Client
# tar xzf vpnclient-linux-4.8.01.0640-k9.tar.gz

2. Download the patch #1
# wget -q http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-2.6.24-final.diff

3. Download the patch #2
# wget -q http://projects.tuxx-home.at/ciscovpn/patches/cisco_skbuff_offset.patch

4. Change to the vpnclient diretory
# cd vpnclient

5. Apply the patch #1
# patch <../vpnclient-linux-2.6.24-final.diff
patching file GenDefs.h
patching file interceptor.c

6. Apply the patch #2
# patch <../cisco_skbuff_offset.patch
patching file frag.c
patching file interceptor.c
Hunk #1 succeeded at 646 (offset 16 lines).
Hunk #2 succeeded at 685 (offset 16 lines).
Hunk #3 succeeded at 807 (offset 16 lines).
patching file linuxcniapi.c
patching file linuxkernelapi.c

7. Open your "Makefile" and rename the CFLAGS line to EXTRA_CFLAGS

8. Now the patches have been applied and you can safely install the client
#./vpn_install

Linux· UbuntuNo Comments

April 13, 2008

Hibernate on Lenovo 3000 n100

mitch @ 8:42 am on April 13, 2008

I’ve been shutting down and booting my laptop since the day I got it, and to be honest, the one thing I like the most about the mac is its ability to hibernate, and just “be there” when you want to use it, otherwise you can shut the lid and leave it for hours or days without plugging it in.

Well, I was up at 3:30 this morning not able to sleep and I thought about it, as I had immediately grabbed the macbook instead of my Lenovo 3000 n100. Even when I was getting up to read more of the online version of the Django book, I knew I wouldn’t be doing any actual testing or playing with any django code, unless I installed it on this web server and “tested” it from here. The reason I find it interesting is because I’ve yet to like to do any form of coding on the Mac, other than the couple times I’ve played with the new iPhone development tools in XCode. So, I ask myself… why?

I find the reason is simply that it was more convenient, I could take the MBP and open it up, launch firefox (3 beta 5 - its awesome!) and be reading in 10-15 seconds. Instead of having to wait for my lenovo to boot.

after I had read a couple pages worth of django, it made me curious, because I haven’t looked for any information about hibernate for my laptop for a long time. Everything else works (well, that I use anyway, I’ve yet to test the modem, and I don’t much care about the finger print scanner.. that will probably be my next quest or possibly fixing the stupid alsa drivers for the sound)

And sure enough, I found an Ubuntu wiki post about my specific laptop, and to get hibernate working all I had to change was add one line to my grub config and reboot. Heres what I changed:

from the file /boot/grub/menu.lst
# defoptions=quiet splash
to this:
# defoptions=quiet splash locale=en_US i8042.reset

sudo grub-update

and reboot.

apparently the part that makes it work is the i8042.reset line, not sure what the locale has to do with it, but the poster on the ubuntu wiki had his locale set as well, so I figured it couldn’t hurt.

Sure enough it works and I updated my power setting to start putting my laptop in hibernate mode when I shut the lid.

On that page, it also has the information about fixing the alsa drivers, as well as the much annoying touchpad while typing fixes, which I’ve also applied. I’ve yet to experience any issues with random grazes of the touchpad like I used to when I was typing, so I believe it has worked, but it rarely happened at home and was usually while I was at work for some reason so we’ll see on that one.

Linux· Technology· UbuntuNo Comments

April 7, 2008

to dual boot my mac or not

mitch @ 10:41 pm on April 7, 2008

Well, I’ve had the macbook pro for a couple weeks now, and while I personally don’t have a problem with Mac OS X… its just not Linux. I like mac fine and all… When I’m using it however… I miss my ubuntu laptop. Browsing the web and doing email works just fine on the mac… also I generally would prefer the mac when doing movie stuff, however it was a pita to get xvid working. (it only took me 20 minutes or so, but that was still way to long, my “aptitude install gstreamer-*” works much nicer) And ports on the mac… what a joke, its an even bigger pita. It attempts to be like linux’s package managers, however, you have to install all the xcode tools before you can even run those, and that took 45 minutes or so. Over all… the Mac interface is definately nice, thats not my complaint, its just I like my open source tools, and the mac is just to proprietary for me to really work on. So..

I believe I will be repartitioning this mac… or maybe, i’ll try out the partition resizer built in… don’t really care if I corrupt the data on it… By this time tomorrow hopefully, I’ll be abe to dual boot the latest ubuntu 8.04 (yes, i know currently still beta)

Apple· UbuntuNo Comments