Saturday, November 29, 2008

Upgrading from Fedora 9 to Fedora 10 with yum

Fedora 10 is out and once again it is time to upgrade. Here are the steps you need to do the upgrade from Fedora 9 to Fedora 10.

Before I go on about doing this by hand you should know that you can use PreUpdate once it populates with the latest update.

  1. yum update
  2. yum clean all
  3. I like to repeated update and clean all a second time to make sure everything got updated
  4. Run the following command to update the yum repo on your box:
    rpm -Uhv http://mirror.liberty.edu/pub/fedora/linux/releases/10
    /Fedora/i386/os/Packages/fedora-release-10-1.noarch.rpm http://mirror.liberty.edu/pub/fedora/linux/releases/10
    /Fedora/i386/os/Packages/fedora-release-notes-10.0.0-1.noarch.rpm
  5. Next I had to do a "yum clean all" again before it picked up the change
  6. Next do a yum -y update
  7. After a couple hours or so it was ready for a reboot.
  8. I always have to recompile my NVIDIA driver when I do a kernel update so this was no different. This was really the only thing that I needed to do to finish the upgrade.

They have the upgrade down pat now. I'm surprised at how easy it is to do this by hand even.

I also figured I would try PreUpgrade on a Fedora 9 system while I was at it. I did a "yum install preupgrade" and then ran preupgrade from the command line. The only problem was that it didn't list any available updates. I'll try again in a couple days and see if it shows up eventually.


Friday, November 28, 2008

Fedora 10 released with new features


Fedora 10 codenamed "Cambridge" has been released. This new version
of the community oriented, Red Hat backed Linux distribution comes with new features which enhance the end user experience.

Fedora 10 is built on Linux kernel version 2.6.27. It comes with improved support for a choice of webcams, improved infrared remote support, better Bluetooth support which incorporates a new, easier to use wizard for setting up keyboards, mice, and other supported Bluetooth devices, A new improved graphical boot system called Plymouth, OpenOffice 3, Firefox 3.0.4, GNOME 2.24, KDE 4.1, LXDE, GIMP 2.6, you got it all in Fedora 10.

The underlying audio system in Fedora is PulseAudio. In Fedora 10, the bugs found in PulseAudio have been fixed, thus making it glitch free. The audio system also consumes relatively less power.

In most Linux distributions including prior versions of Fedora, the graphical X loads in virtual terminal 7 (VT7) - which you can navigate using Ctrl + Alt + Function keys (1-7). But in Fedora 10, the developers have shifted the graphical boot to virtual terminal 1 which has helped make the transition from bootup to displaying a full fledged GUI, smooth and flicker free. The graphical boot process has itself speeded up because of the improved graphical boot system (Plymouth) which replaces the old Red Hat graphical boot.

For the developers and system administrators, Fedora 10 features an improved RPM which can stream components which are required to run already installed software - for example, a video or audio codec required to run a file in the video or audio player. And secondly, Fedora 10 comes with improved support for remote, hands off installation and management.

The new version of Network Manager utility in Fedora 10 now features built-in support for Internet connection sharing.

Fedora developers Adam Jackson and Ray Strobe have been interviewed at Fedora Magazine blog, where they reveal the nitty gritty details of Fedora 10's improved startup. Read what they have to say.

You can download Fedora 10 as a GNOME LiveCD or KDE LiveCD from the Official Fedora website. Also read the full Fedora 10 release notes to get a broader picture of what it offers.

Linux Server with Embedded Display


Old Gateway PC transformed into a Linux server with embedded display

Old Gateway PC transformed into a Linux server with embedded display, which is a hacked portable B&W TV driven directly by the VGA card.

Thursday, November 27, 2008

WOL Wakeonlan Guide: Turn On Servers Remotely Without Physical Access

This is a guest post written by SathiyaMoorthy.

Wakeonlan (wol) enables you to switch ON remote servers without physically accessing it. Wakeonlan sends magic packets to wake-on-LAN enabled ethernet adapters and motherboards to switch on remote computers.

By mistake, when you shutdown a system instead of rebooting, you can use Wakeonlan to power on the server remotely. Also, If you have a server that don’t need to be up and running 24×7, you can turn off and turn on the server remotely anytime you want.

This article gives a brief overview of Wake-On-LAN and instructions to set up Wakeonlan feature.

Overview of Wake-On-LAN

  • You can use Wakeonlan when a machine is connected to LAN, and you know the MAC address of that machine.
  • Your NIC should support wakeonlan feature, and it should be enabled before the
    shut down. In most cases, by default wakeonlan is enabled on the NIC.
  • You need to send the magic packet from another machine which is connected to the same network ( LAN ). You need root access to send magic packet. wakeonlan package should be installed on the machine.
  • When the system crashes because of power failure, for the first time you cannot switch on your machine using this facility. But after the first first boot you can use wakeonlan to turn it on, if the server gets shutdown for some reason.
  • WakeonLan is also referred as wol.

Check whether wol is supported on the NIC

Execute the following ethtool command in the server which you want to switch ON from a remote place.

# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg [ Note: check whether flag g is present ]
Wake-on: g [ Note: g mean enabled. d means disabled ]
Current message level: 0×00000001 (1)
Link detected: yes

If Supports Wake-on is g, then the support for wol feature is enabled on the NIC card.

Enabling wol option on the Ethernet Card

By default the Wake-on will be set to g in most of the machines. If not, use ethtool to set the g flag to the wol option of the NIC card as shown below.

# ethtool -s eth0 wol g

Note: You should execute ethtool as root, else you may get following error message.

$ /sbin/ethtool eth0
Settings for eth0:
Cannot get device settings: Operation not permitted
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0×000000ff (255)
Cannot get link status: Operation not permitted

Install wakeonlan package on a different machine

Install the wakeonlan package in the machine from where you need to send the magic packet to switch on your server.

# apt-get install wakeonlan

Note down the MAC address of the remote server

Note down the MAC address of the server that you wish to switch on remotely.

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:k5:64:A9:68 [ Mac address ]
inet addr:192.168.6.56 Bcast:192.168.6.255 Mask:255.255.255.0
inet6 addr: fe80::216:17ff:fe6b:289/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3179855 errors:0 dropped:0 overruns:0 frame:0
TX packets:2170162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3832534893 (3.5 GB) TX bytes:390304845 (372.2 MB)
Interrupt:17

Finally, Switch ON the machine remotely without physical access

When the server is not up, execute the following command from another machine which is connected to the same LAN. Once the magic packet is sent, the remote system will start to boot.

# wakeonlan 00:16:k5:64:A9:68


This article was written by SathiyaMoorthy, developer of enterprise postgres query analyser, an efficient tool for parsing postgresql log to generate html report, which can be used for fine tuning the postgres settings, and sql queries. The Geek Stuff welcomes your tips and guest articles.