Archive for the ‘Ubuntu’ Category
Thursday, November 16th, 2006
The Marvell Yukon Gigabit onboard NIC coming with my ASUS motherboard had some problem hooking up with the DLink router. You would think, when both devices are 100baseT by default, the auto link speed negotiation ought to have been a mere formality. But, everytime after the system just boot up, it would take anywhere between 5 seconds to 30 minues for the two to shake hands and achieve a viable link. The visible symptom is the DHCP requests kept getting ignored, and in turn no IP can be obtained from the router for the system.
In Windows, I had to go to the driver configuration, disable the "auto sensing", and explicitly set the NIC to 100baseT. In Ubuntu, this is done by adding the following script to /etc/network/if-pre-up.d:
CODE:
-
#!/bin/sh
-
-
ETHTOOL=/usr/sbin/ethtool
-
-
if [ ! -x $ETHTOOL ]; then
-
exit 0
-
fi
-
-
if [ "$IFACE" = "eth0" ]; then
-
echo disabling $IFACE auto negotiation
-
$ETHTOOL -s $IFACE autoneg off
-
fi
Everytime when the network interfaces are initialized, this script (along with everything else in that if-pre-up.d directory) is executed before dhcpclient is involved.
Update:
Use sudo ifdown -a to bring down all interfaces, and sudo ifup -a to bring them back up.
Posted in LAMP, Ubuntu | 1 Comment »
Wednesday, November 15th, 2006
I'll catch up later the couple of "episodes" which I'm skipping over and jumping to the Java set up part. Ubuntu comes with gcj and other GNU-based java facilities, which mostly are still only equivalent to JDK 1.4.x. So they needed to get chucked right away, and replaced with the Sun JDK 5. It's pretty straightforward to install JDK 5, Eclipse, and the rest of the arsenal I work with on the daily basis. The only part involving manual setting was when enabling the Java Plugin and Web Start in Firefox. Here's The Plugin Portion of it. more...
Posted in Ubuntu | Tags: configuration, debian, java, linux, Ubuntu| No Comments »
Saturday, November 11th, 2006
Prev: Pilot
Installing Ubuntu 6.1 ("Edgy Eft") was smooth. I have 3 NTFS partitions on the harddrive. One of them was deleted to make room for Ubuntu. It's about 24GB. Made 2 partitions - 2GB for swap, and the rest for /. I know it'd be better to have things like /var and /home in separate partitions, but there can only be up to 4 patitions on one harddrive, so that's that.
As for the other two NTFS partitions, the installer discovered them and offered to mount them to the linux file system. The default root mount point for them was a little strange to be called "/media". So I changed them to, well, /win/c, and /win/e. Later on I'm planning on converting E: to FAT32 or FAT32+ext3, so the duo can safely share files. For now, though, the first thing after booting into my new Ubuntu installation was changing /etc/fstab, and replacing the "defaults" in options for those two mount points to "ro". That makes them read-only.
Posted in LAMP, Ubuntu | 1 Comment »
Saturday, November 11th, 2006
I have decided to gradually migrate my main work environment to Linux, and only keep Windows for gaming and other MS proprietary things. It's something I have been wanting to do for the past decade, I would give it a try about every two years and see that Linux wasn't "quite there yet", and give up. The dedicated server I rent for digiZen (i.e. the one serving you all this babbling of mine right now) has been running Fedora Core for over a year. I've been happy both using and maintaining it. On the other hand, none of the Linux distros (including a home-made one starting with me building from the kernel source) had been satisfactory and up to par as a day-to-day desktop environment.
Well, about a couple months ago, the "Genuine Windows" update notification popup finally got on my nerve, to the point of "ok, it's that time again." After playing around a Ubuntu installed in VMWare, I got confident enough to take it one step further into the typical dual-boot setup. A couple of nights later, I am happy to report that I'm working in an environment capable of supporting about 90% of my daily tasks. And I'm pretty confident that, with more googling and tweaking, and the great wine as the last resort, I'll be pushing that number to very close to 100%.
That's not to say, everything went as smooth as I would have liked it. I'm starting this series to keep some notes on the pitfalls and (usually unpleasant) surprises.
Next: Installation
Posted in LAMP, Ubuntu | 1 Comment »