Archive for October, 2007 Page 2 of 10



Eject/Close CD or DVD media with shell command

cuckoo clockShell command eject that is available by default in most of Linux distributions, allows to open and sometimes close removable media tray (usually it’s CD-ROM or DVD media).

To eject media:

eject /dev/cdrom

or

eject cdrom

As you see the name of device can be a device file or mount point, either a full path or with the leading “/dev”, “/media” or “/mnt” omitted. If no name is specified, the default name “cdrom” is used. With -c option a CD slot can be selected from an ATAPI/IDE CD-ROM changer.

To close tray:

eject -t cdrom

Dear reader, I hope you know what use eject command for if you came here, but let me suggest one more application. You can use this command to make your own cuckoo clock! :)

Just put little shell script opening and closing cdrom or dvd tray into cron…

Get uptime/loading/logins information remotely

There are two utilities available in Linux and Unix that provide information about remote user logins. These are rusers and rwho, which are backed up by corresponding daemons, rusersd and rwhod. These daemons share login information over the network allowing sysadmins to monitor login activity on different hosts.

Once the daemons are installed and running (sudo apt-get install rwho rusers -y in Ubuntu, yum install rwho rusers in Fedora and etc.) at different hosts across the network, you can use several tools to get login information about all of these hosts. One of them is rwho that is the remote and network-enabled version of the well known who tool.

viper@viper-laptop:~$ rwho
tesadmin tes1000_v203_1322_tst0:pts/1 Oct 24 10:25
viper viper-laptop:pts/0 Oct 24 10:24
viper viper-laptop:pts/1 Oct 24 10:26 :01
viper viper-laptop:pts/2 Oct 24 10:25
viper viper-laptop:tty7 Oct 24 09:11

Another one is rusers tool that broadcasts over the network for the rusersd daemon on the other hosts to return the information about the users currently logged in:

viper@viper-laptop:~$ rusers
Sending broadcast for rusersd protocol version 3...
192.168.0.1 tesadmin
viper-laptop. viper viper viper viper

Another tool available when rwhod is running is ruptime that outputs the loading and uptime information for all servers running rwhod in the LAN.

viper@viper-laptop:~$ ruptime
tes1000_v203 up 14+19:00, 1 user, load 0.59, 0.47, 0.46
viper-laptop up 1:39, 4 users, load 0.40, 0.52, 0.45

This is really nice tool to monitor status of servers without need to log in to them.

You can read more information about these tools and related ones here (IBM’s doc).

Fun: new distro Yoda Linux [pic]

Continue reading…

Download or Upgrade Ubuntu at highest speed

As we know Ubuntu Gutsy Gibbon is released already and as this OS is extremely popular most of mirror servers we can download or upgrade Ubuntu from are overwhelmed by huge amounts of downloads. In my case I tried to upgrade my Feisty several times but there was no luck (downloading stuck at different points).

But thanks to Ubuntu developers there is nice feature that allows to set server you have the fastest peer to as a source of apt packages (and as the result, upgrade source). Just go to System -> Administration -> Software Sources and select “Other…” at drop-down list named as “Download from:”. At the next window you’ll see the list of all mirrors available and the button “Select Best Server” that you need to press on. After several tests performed you’ll be suggested to select best server to get packages from. Now enjoy new speed!

select best server

If you’re new Ubuntu user the fastest way to get Ubuntu Gutsy ISO these days is to download it from this torrent.

Enjoy Ubuntu! :)

Information Improvisation: With every passing day technology is improving and companies are able to provide better web hosting services. The digital divide has reduced and backup facilities are common on servers. These can be done efficiently with broadband connectivity. Companies now require more professional people than before, here certifications like 70-270 provides required knowledge and skills. Organizations now depend on professionals who have certifications like 70-297. Companies these days face stronger competition and rely more on firms that provide affiliate marketing for their business on internet.

Evolution RSS Reader Plugin

gnome evolution logoLuci Langa’s Evolution RSS Reader Plugin enables support for feeds in the Gnome Evolution mail reader.The newest version (0.0.6) of this plugin has the following changes against previous ones…

Continue reading…




Pages: Prev 1 2 3 4 5 6 7 8 9 10 Next
Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››