Asterisk, and other worldly endeavours.

A blog by Leif Madsen

Posts Tagged ‘linux

Brother printer doesn’t print in Fedora 17

Tip: If your Brother printer won’t print after installing the drivers, install glibc.i686

Today ran into an issue with my new Brother MFC-7460DN (which is a really nice laser printer with auto-feed scanner, Scan-to-FTP which creates a PDF file, and other things). I had just recently done a clean install of Fedora 17, and I could install the RPMs (which are i386 files on my x86_64 based system), add the printer to CUPS and all sorts of things that looked fine.

However when I went to print, it wouldn’t error out, but the printer wouldn’t actually print. I tried changing a file per https://bbs.archlinux.org/viewtopic.php?pid=940524#p940524 but it didn’t help.

Then I found this post http://forums.fedoraforum.org/showthread.php?t=280753 which reminded me to install glibc.i686. Wish the Brother drives would just make that a dependency in the RPM.

Written by Leif Madsen

2012/11/24 at 5:06 pm

Posted in Technology

Tagged with , , , ,

Cisco VPN Client on Ubuntu Karmic 9.10

I have a client who I need to connect to via a Cisco VPN, and since I use Ubuntu as my primary OS on my MacBook Pro, I’ve often needed to find some information about how to get the client working.

I had previously found some information about patching on Ubuntu 9.04 and it worked great, but since updating to 9.10 I had the same compile time issues I had before, which makes sense since the kernel is different now.

I found this site: http://joepcremers.nl/wordpress/?p=1699 which had some good instructions for getting it going, but there almost appeared to be a patch missing, at least for my platform. The patch I needed was found on this site here: http://www.painfullscratch.nl/code/vpn/

All the patches for the VPN client appear to have come from the tuxx-home.at forums: http://forum.tuxx-home.at/viewforum.php?f=15

Hopefully that gets you all the information you need to get your Cisco VPN client working on Ubuntu Karmic 9.10!

Update: June 15, 2010

So I’ve been having some problems trying to get the Cisco VPN client working past a certain kernel version update (I think it’s something like 2.6.19-something). I’m currently running 2.6.31-22-generic x86_64. I spent a bit of time trying to figure out why I couldn’t get past that older kernel (and to avoid rebooting). On some kernels it would lock up the system entirely, on other kernels the CPN client just wouldn’t connect.

After some web searching, I came across this blog post dated September 2009: http://ilapstech.blogspot.com/2009/09/cisco-vpn-client-on-karmic-koala.html. It seems to have the patch I needed to get around a compile time option that is described on that blog post. The error I was getting when compiling was:

CC [M]  /usr/src/vpnclient/interceptor.o
/usr/src/vpnclient/interceptor.c: In function ‘add_netdev’:
/usr/src/vpnclient/interceptor.c:284: error: assignment of read-only location ‘*dev->netdev_ops’
/usr/src/vpnclient/interceptor.c: In function ‘remove_netdev’:
/usr/src/vpnclient/interceptor.c:311: error: assignment of read-only location ‘*dev->netdev_ops’
make[2]: *** [/usr/src/vpnclient/interceptor.o] Error 1
make[1]: *** [_module_/usr/src/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic'
make: *** [default] Error 2

After the patch provided on that blog post I was still getting an error like so:

Making module
make -C /lib/modules/2.6.31-22-generic/build SUBDIRS=/usr/src/vpnclient-4.8.02.0030 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-22-generic'
scripts/Makefile.build:49: *** CFLAGS was changed in "/usr/src/vpnclient-4.8.02.0030/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[1]: *** [_module_/usr/src/vpnclient-4.8.02.0030] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".

Oh I’ve seen that error before. I used a patch from a site I mentioned earlier: http://www.painfullscratch.nl/code/vpn/.

Note that I’ve not actually checked to see if I only needed the latter patch, but with a combination of patch with the first site I mentioned in this update followed by the above mentioned sites patch, I was able to get onto my VPN connection for the client I require this for. Hope it helps!

Written by Leif Madsen

2009/11/27 at 8:19 am

Posted in Technology

Tagged with , , , , ,