We all have fat fingers sometimes and mistype commands, often transposing letters in a word or leaving letters out. When using Bash, you can fix it with the magic carets instead of retyping the whole command. example: [root@pippi opt]# usradd -u 666 -g 100 udergahad bash: usradd: command not found Oops, it should be “useradd”. […]
Stupid Bash Tricks: Magic Carets Correct Munged Commands
Using Samba to Authenticate GNU/Linux Against Active Directory
Samba 3.0 allows Linux to authenticate against Active Directory and access shared resources on a Windows 2000 server. Samba 3.0 is still beta. For info on the status, see the status page at samba.org. This article will detail the procedure to get this running with Red Hat 8.0. First, get the Samba distribution from samba.org. […]
Meet the Amazing Mr. lsof
Buoys and gulls, I’d like to introduce the lsof command. Say that you were moving a whole bunch of files, and there was no indication of what file was currently being moved? lsof shows (lists) open files. For instance, if you were moving a bunch of files from directory sales, you could see exactly what […]
Using Ksysv to Manage System V Run Levels
The System V init scripts are a bear to configure by hand. We discussed using chkconfig in this article. Ksysv, part of KDE, provides an easy to use GUI interface. Just drag the services to the appropriate place. The priority number, K/S prefix, and symlinks will all be set up automatically. Backup up all of […]
Distributed Compile With Distcc
Ever wish you could harness the power of many boxen to compile those large projects like KDE, or the LInux kernel? Well, you can, with distcc. We grabbed version 1.5, and compiled it on srv-33 and srv-34, two machines with P133 processors: # cd /usr/local/src # tar -xzf distcc*.gz # cd dist* distcc-0.15]# ./configure && […]
Setting System and Hardware Time On GNU/Linux
It is daylight savings time again. For those systems that don’t automatically sync their time, you may have to set this manually. If you are in the U.S, you can find the correct time here. Let’s set the system time: root@srv-1 u-1 # date Mon Apr 5 03:45:59 PDT 2004 root@srv-1 u-1 # date 040504142004 […]
Setting Up Logical Volume Manager
Logical Volume Manager (LVM) allows you to combine disks and create a single volume that can be mounted like a regular partition. It also allows you to add and remove storage. Make sure that you have the support for LVM compiled into your kernel. We set CONFIG_BLK_DEV_LVM=y on ours, and that worked well. [Note: Before […]
Extending a Logical Volume
In this article, we set up Logical Volume Manager for GNU/Linux. We created a 12 GB device from 3 4 Gig drives, but only assigned 5 GB for our logical volume. Now, we are going to extend that volume. [Note: Before you do anything involving your partitions or volumes, make a complete backup. Make sure […]
Shrinking a Logical Volume With LVM
In this article, and in this article, we showed how to install and extend logical volumes with LVM. Now, we want to shrink the filesystem we created and the logical volume, so we can remove the drive. [Note: Before you do anything involving your partitions or volumes, make a complete backup. Make sure to set […]
Adding a RAID1 Device to a Volume With LVM
In this article, we freed up a disk from our volume so that we could reconfigure our system. In this article we will create and add a RAID1 device to our volume group. We removed /dev/sdg from our volume group, and /dev/sdh was unused, so let’s create a RAID1 device to add to our volume […]
Upgrading LVM To Version 2 and Patching The Linux Kernel
So far, we have been using a generic 2.4.24 Linux kernel with LVM enabled. We had to compile this ourselves because the stock Red Hat / Fedora kernels don’t support our hard disks. See this article for more details. [Note: Before you do anything involving your partitions or volumes, make a complete backup. Make sure […]
Finish Conversion And Expansion to Two RAID1 Devices With LVM
In this article, we recompiled our software and kernel so we could remove our /dev/sde drive. [Note: Before you do anything involving your partitions or volumes, make a complete backup. Make sure to set up a test system with the same kernel and distribution to see how this stuff works. This article was written using […]
Compiling the Linux Kernel for More than 1GB of RAM
Agatha recently purchased another stick of 512MB RAM. It turns out that by default you need to change the kernel for it to use more than 1GB of RAM. Actually, the cutoff is technically at 960MB. Here is the memory info with 1.5GB of RAM installed, but with high memory support disabled: usr-1@srv-1 proc $ […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 1 – Booting the Install CD
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 2 – Creating the Filesystems
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 3 – Copying Initial System, Portage, and Distfiles
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 4 – Creating the Kernel
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 5 – Getting Silo Installed
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 6 – Initial Logon
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]
Installing Gentoo GNU/Linux 2004.3 on SPARC – Part 7 – Final Configuration
There are 7 parts to this article: Part 1 – Gentoo on SPARC – Booting the Install CD Part 2 – Gentoo on SPARC – Creating the Filesystems Part 3 – Gentoo on SPARC – Copying Initial System, Portage, and Distfiles Part 4 – Gentoo on SPARC – Creating the Kernel Part 5 – Gentoo […]