Linux Terminal Server for Home Media PCs 03.18.06
Posted by wimac in *nix.add a comment
Guide to setup a Linux Terminal Server Project (LTSP) on Ubuntu Dapper (optionally within VMWare) to remotely boot a diskless Linux Media PCs running Freevo. Useful for people who plan to manage 2 or more Media PCs in the house. Also works as a regular terminal server with sound and local media (such as USBs & CD/DVD-ROMs)
A concise apt-get / dpkg primer for new Debian or Ubuntu users 03.18.06
Posted by wimac in *nix.add a comment
Here is an excellent concise guide to master how to use apt-get to manage your linux machine and keep it up-to-date. A truly informative read.
Linux Hostnames 03.13.06
Posted by wimac in *nix.add a comment
Checking your Linux host name
First, see if your host name is set correclty using the following commands:
uname -n hostname -a hostname -s hostname -d hostname -f hostname
If the above commands return correctly with no errors then all may be well; however, you may want to read on to verify that all settings are correct.
Configuring /etc/hosts
If your IP address is assigned to you by a DHCP server, then /etc/hosts is configured as follows:
127.0.0.1 mybox.mydomain.com localhost.localdomain localhost mybox
If you have a static IP address, then /etc/hosts is configured as follows:
127.0.0.1 localhost.localdomain localhost 192.168.0.10 mybox.mydomain.com mybox
Setting the Host Name using “hostname”
After updating the /etc/hosts file correctly, the “hostname” command should be run as follows to set your hostname:
hostname mybox.mydomain.com
Checking /etc/HOSTNAME (if present)
You may or may not have the file /etc/HOSTNAME:
mybox.mydomain.com
Checking /etc/sysconfig/network
If you have a static IP address, then /etc/sysconfig/network is configured as follows:
NETWORKING=yes HOSTNAME="mybox.mydomain.com" ...
If your IP address is assigned to you by a DHCP server, and you wish to update the local DNS server through Dynamic DNS, then /etc/sysconfig/network is configured as follows:
NETWORKING=yes
HOSTNAME="mybox.mydomain.com"
DHCP_HOSTNAME="mybox.mydomain.com"
...
It makes more sense to move this “DHCP_HOSTNAME” variable into /etc/sysconfig/network-scripts/ifcfg-eth0 (or appropriate NIC cfg file). So the above section has been moved, see below. If you have only 1 NIC, then the above struck section works fine, but with more than 1 NIC it makes no sense. Maybe this is true for the “‘HOSTNAME” line too, maybe that line should be moved into /etc/sysconfig/network-scripts/ifcfg-eth0 as well. I will investigate further. By default RHL places HOSTNAME=localhost.localdomain in /etc/sysconfig/network.
Checking /proc/sys/kernel/hostname
This is checked with the following command:
cat /proc/sys/kernel/hostname
If you need to set this file, you can either reboot or set it now with the following command:
echo mybox.mydomain.com > /proc/sys/kernel/hostname
Dynamic DNS – Updating the local DNS server with your host name and DHCP IP
For Red Hat Linux if you receive your IP address from a DHCP server, you may update the local DNS server by adding the following line to the correct ifcfg file in /etc/sysconfig/network-scripts, such as ifcfg-eth0 or ifcfg-eth1:
DHCP_HOSTNAME="mybox.mydomain.com"
or if running Debian, edit /etc/network/interfaces as follows (adding the hostname line):
iface eth0 inet dhcp
hostname mybox.mydomain.com
Updated information about ddns:
Kill the dhclient process (“killall dhclient”) – make sure it is gone
Then restart networking – “service network restart”
Updated information for ddns on Gentoo:
killall dhclient
Edit /etc/conf.d/net
uncomment and modify the line as follows:
dhcpcd_eth0=”-h yourhostname”
reboot or restart your network subsystem
Thanks to Jack for the Gentoo information!
For more info in Debian, see “man interfaces” and scroll down to”The dhcp Method”.
WINS – Updating the local WINS server with your host name and IP
If you wish to update the local WINS server, then use SAMBA, and configure it to point to the local WINS server. samba.html i.e. update the /etc/samba/smb.conf “wins server = ” entry with the WINS server addresses for your network – be sure not to enable “wins support = yes” as that will make Linux a WINS server.
Changing the hostname while in X-Windows
Changing the hostname while in X-Windows can be problematic. Most often, new windows cannot be opened. Either
1. change the hostname while the X-Windows is not running or
2. in X-Windows change the hostname, then restart X-Windows.
SSH Tutorial for Linux 03.03.06
Posted by wimac in *nix.add a comment
This document covers SSH on the Linux Operating System and other OSes that use Openssh. If you use Windows, please read the document SSH Tutorial for Windows If you use Mac OS X, you should already have openssh installed and can use this document as a reference.
This is one of the top tutorials on SSH on the Internet. It was originally written back in 1999 and was completely revised in 2006 to include new and more accurate information. It has been used by over 115,000 people and consistently appears at the top of Google’s search results for SSH and Linux.
Funny Unix csh/sh commands: 03.02.06
Posted by wimac in *nix, computing.add a comment
% cat “food in cans”
cat: can’t open food in cans
% nice man woman
No manual entry for woman.
% rm God
rm: God nonexistent
% ar t God
ar: God does not exist
% ar r God
ar: creating God
% “How would you rate Quayle’s incompetence?
Unmatched “.
% Unmatched “.
Unmatched “.
% [Where is Jimmy Hoffa?
Missing ].
% ^How did the sex change operation go?^
Modifier failed.
% If I had a ( for every $ the Congress spent, what would I have?
Too many (’s.
% make love
Make: Don’t know how to make love. Stop.
% sleep with me
bad character
% got a light?
No match.
% man: why did you get a divorce?
man:: Too many arguments.
% !:say, what is saccharine?
Bad substitute.
% %blow
%blow: No such job.
% \(-
(-: Command not found.
$ PATH=pretending! /usr/ucb/which sense
no sense in pretending!
$ drink matter
matter: cannot create
Tux-shaped computer runs Linux 03.02.06
Posted by wimac in *nix.add a comment
I want one! This makes me a little worried :p
“Acme Systems is shipping a Penguin-shaped case for a tiny SBC (single-board computer) powered by an innovative MCM (multi-chip module) that runs Linux. The 6.7-inch tall, 30-Euro “Tux Case” houses the company’s “Acme Fox,” a 2.6 x 2.8-inch, 100-Euro, RISC-based board with Ethernet and dual-USB interfaces, and surface-mount connectors for other I/O. ”
Speeding Up Debian Boot Process 02.25.06
Posted by wimac in *nix.add a comment
My MTA (exim4) was taking about 10-20 seconds to start, holding back the boot process so I’ve tried this simple hack: Make Debian boot faster
Edit the startup script /etc/init.d/rc.
Changing the line:startup $i start
to the following:
startup $i start &
Launching the startup scripts in parallel rather than waiting for each to complete first before running the next could cause problems with dependencies but on a vanilla 3.1 install it hasn’t caused any trouble (so far) and the system boots noticeably faster.
Reiser Driver for Windows 02.25.06
Posted by wimac in *nix.add a comment
This is the driver to mount your ReiserFS file system under Windows. Very useful when exchanging files between partitions.
Hacking a $70 PMP with Linux 02.25.06
Posted by wimac in *nix.add a comment
Another defenseless gadget has fallen prey to the relentless march of the Penguinistas. With some skill, you can build a cartridge lets you boot an unmodified Mattel JuiceBox teen-targeted portable media player into Linux.
Howtoforge: Quality Linux Tutorials 02.25.06
Posted by wimac in *nix.add a comment
My first encounter with Howtoforge began with “The Perfect Setup” for Debian Sarge by Falko Timme. I found a site loaded with fundamentally sound and easy to follow setups for Linux administration. This is a location on the WEB that people needing to administer Linux should bookmark. But then there’s more.