YiBi's Life|Live Log

Problem with pam_radius on Solaris 10

I was implementing pam_radius login for some Solaris 10 servers today and I got this error.

Aug 10 20:41:57 server1 sshd[17846]: [ID 801593 auth.debug] pam_radius_auth: DEBUG: getservbyname(radius, udp) returned 0.
Aug 10 20:41:57 server1 sshd[17846]: [ID 801593 auth.error] pam_radius_auth: Failed looking up IP address for RADIUS server radius2

Weird error. Googled and found all kinds on weird solutions including hacking the source code and stuff.
I took a quick look at the source code and realised something – my server had no knowledge of the radius and radacct ports. And it’s actually in the debug message: getservbyname failed. I was mislead by the “Failed looking up IP address for RADIUS server” error message.

Added the following to /etc/services:

radius  1812/udp
radacct 1813/udp

And voila! Simple as that.

Updating iPhone to iOS 4 in Vmware

While updating my iPhone 3GS to iOS 4, I encountered an error on iTunes saying that my iPhone could not be updated. My phone went into recovery mode after that. This is not the first time I’m doing restore and update with Vmware, so I’m pretty surprise why the update process failed.

A peek into dmesg shows the following -

[52420.444795] usb 2-2: usbfs: interface 2 claimed by ipheth while ‘vmware-vmx’ sets config #4
[52420.460159] usb 2-2: usbfs: process 9345 (vmware-vmx) did not claim interface 2 before use
[52420.460222] usb 2-2: usbfs: process 9345 (vmware-vmx) did not claim interface 2 before use

Linux is now capable of detecting the iPhone over USB natively and automatically via the iPhone for tethering and direct access to the underlying filesystem, so it’s hogging the USB port on the iPhone and denying Vmware of accessing it.

Anyway the solution is simple. Just run

# rmmod ipheth

#  dmesg

[52445.922401] usbcore: deregistering interface driver ipheth
[52445.964038] ipheth 2-2:4.2: Apple iPhone USB Ethernet now disconnected
[52491.228075] usb 2-2: reset high speed USB device using ehci_hcd and address 21
[52491.524073] usb 2-2: reset high speed USB device using ehci_hcd and address 21

Linux releases the iPhone. On Vmware, disconnect and connect the iPhone again.

A Father Taken Hostage By His Baby

I posted this in a separate blog that I created for my daughter. This is amusing and very heart warming, perhaps it’s because I have a baby myself now. This is dedicated to Moms and Dads, who are doing our best for our children.

Ghost – Thai Horror Movie

The Thai folks never fail to amaze (and amuse) me with their creativity and humour.

This video is advertisement. I leave it to you to watch until the end to grasp the punchline and the humour.

Update: Native Tethering To IPhone On Linux

I missed out something important in my previous post on the native tethering on Linux. Turns out my tethering works only after I kick off the tether from Windows (Which resides in a VM on my machine). Further digging led me to the following site.

http://giagio.com/wiki/moin.cgi/iPhoneEthernetDriver

In order to get tethering to work, you need to ‘pair’ the IPhone with your machine. The site above provides the source to the pairing program, which surprisingly isn’t part of any Debian package. Or at least I couldn’t find it. Someone please point me to the right package if there’s one.

Anyway, just follow the instructions on the site to checkout the source from GIT and compile ipheth-pair. Plug in your IPhone and check your dmesg for the following:

[40883.744096] usb 2-1: reset high speed USB device using ehci_hcd and address 10
[40883.905582] ipheth 2-1:4.2: Apple iPhone USB Ethernet device attached

Run ipheth-pair if your IPhone has been picked up and loaded successfully.

Leave the rest to Network Manager. Just connect to wwan0 like connecting to any other devices.

Native IPhone Tethering On Linux (Debian)

For some reason, I can get tethering to work natively on Linux after I did an upgrade on my unstable Debian.

This was not possible previously. Now the kernel detects a new device called ipheth (IPhone USB Ethernet device). This is the magic that made the tethering possible. And the best part is that it works out of the box with Network Manager.

This is really cool. I used to tether from Linux using Bluetooth, but the connection is unstable sometimes.

Screenshots of dmesg output etc. Click for the full size image.

I’m running the unstable distro of Debian, so I’m not sure if this is available on the stable release. It might be possible on Ubuntu, since they get all the cutting edge stuff.

LTA Web Site Working Hours

I can’t think of a reasonable excuse for not running an online service 24×7.

LTA Website Business Hour.png

Or perhaps I should already be glad they didn’t run it only during office hours.

Free Google Voice for Students

“Google Voice for Students

Google Voice gives you more control over your communications with transcribed voicemail sent via email, free SMS and more. Enter your .edu email address below and we’ll send you an invite within 24 hours.”

I’m not sure if this is also applicable in Singapore, but I suggest just giving it a try.

Sign up here

http://www.google.com/googlevoice/students.html

Lunch at Lava Rock

It’s a quick shot, so it’s not very well taken. But I think it still looks enticing.

IMG_0962.jpg

Address: Lava Rock Grill House. Guan Soon Cherng Coffeeshop Blk 681 Hougang Avenue 8 #01-85

Drama Queen

I must not let my baby girl see this next time. :)