TopicNavigationUser login |
General LinuxBasic LAMP Performance TuningLinux: sysctl -w vm.swappiness=20 echo "vm.swappiness = 20" >> /etc/sysctl.conf A Practical Introduction to Bash ScriptingThe class is available as a pdf or an rtf. All examples and exercise solutions can be found in the scripts tarball. When I have time, I'll get a decently-formatted HTML version together and put that up here :)
Submitted by jkelly on Wed, 2007-06-20 20:11. categories [ General Linux | Redhat Linux | Tutorial ]
3 attachments
Creating a loopback swap partitiondd if=/dev/zero of=swapfile bs=1M count=1024 note: replace count with the appropriate size mkswap swapfile swapon swapfile edit /etc/fstab to include the appropriate entry e.g. /root/swapfile swap swap defaults 0 0
Submitted by jkelly on Wed, 2007-06-20 19:43. categories [ Brief | General Linux | Redhat Linux ]
Process accountingMore to come up2date psacct chkconfig psacct on service psacct start cd /usr/local/bin wget wackyfunster.com/leet/sa-analysis wget wackyfunster.com/leet/sa-report chmod +x sa-*
Submitted by jkelly on Fri, 2006-09-15 01:53. categories [ Article | General Linux | Redhat Linux ]
Extracting files from an RPMIn order to perform operations on a .rpm file, we use the rpm2cpio and cpio utilities. In order to list the files in an rpm: rpm2cpio (rpm name) |cpio -itv To extract an individual file from an rpm (into the current directory): rpm2cpio (rpm name) |cpio -idv (filename) And to extract all files from the rpm (once again, into the current directory): rpm2cpio (rpm name) |cpio -idv
Submitted by jkelly on Fri, 2006-08-18 06:48. categories [ Article | General Linux | Redhat Linux ]
read more
Changing the system's timezoneIn order to change the timezone, you need to link /etc/localtime to the appropriate timezone file in /usr/share/zoneinfo... e.g. to change the time to CST, you would do: rm -f /etc/localtime ln -s /usr/share/zoneinfo/CST6CDT /etc/localtime date Sun Aug 13 01:18:21 CDT 2006 In Redhat, you also need to edit the /etc/sysconfig/clock file (specifically the ZONE= line) to reflect the appropriate timezone. This will be set to the corresponding file in /usr/share/zoneinfo, e.g.
Submitted by jkelly on Sun, 2006-08-13 01:20. categories [ Brief | General Linux | Redhat Linux ]
read more
Remaking ext3 journalsSometimes, ext3 journals go bad. Typically this will be evident in journal or dma errors in dmesg (I'll provide some examples next time I come across one of these). In order to resolve it, perform the following:
Submitted by jkelly on Fri, 2006-08-11 10:37. categories [ Brief | General Linux ]
read more
|
Linux JournalSlashdot |