This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
build:misc [2008/05/08 23:07] 4.245.76.155 |
build:misc [2011/05/21 10:11] (current) SLUUG Administration Install lsb on CentOS. (CMB) |
||
---|---|---|---|
Line 6: | Line 6: | ||
===== System ===== | ===== System ===== | ||
+ | The ''lsb_release'' command tells us what Linux distribution we're running, as well as the version. Debian comes with it pre-installed, but we have to manually install it on CentOS: | ||
+ | <code> | ||
+ | sudo yum install redhat-lsb | ||
+ | </code> | ||
+ | |||
The ''locate'' program is great for finding files on the system, without ''find'' having to search through a bunch of directories. | The ''locate'' program is great for finding files on the system, without ''find'' having to search through a bunch of directories. | ||
<code rootshell> | <code rootshell> | ||
apt-get install slocate | apt-get install slocate | ||
/etc/cron.daily/slocate & | /etc/cron.daily/slocate & | ||
+ | </code> | ||
+ | |||
+ | This resolves some issues with Perl complaining about ''LC_ALL''/''LANG''/''LANGUAGE'' when using ''en_US.UTF-8'' encoding. | ||
+ | <code rootshell> | ||
+ | apt-get install locales locales-all | ||
</code> | </code> | ||
Line 35: | Line 45: | ||
<code rootshell> | <code rootshell> | ||
apt-get install lsof | apt-get install lsof | ||
+ | </code> | ||
+ | |||
+ | The ''htop'' program is an enhanced version of ''top''. | ||
+ | <code rootshell> | ||
+ | apt-get install htop | ||
</code> | </code> | ||
Line 91: | Line 106: | ||
</code> | </code> | ||
- | ZModem isn't used much any more, but it can be used to send files across an existing SSH (or any other pty) connection. The lrzsz package supports ZModem -- use the ''rz'' command to receive a file. KDE's Konsole provides good ZModem upload support. | + | The ''mtr'' program is an enhanced version of ''traceroute'', with some additional features. We want the "tiny" version, which does not require X11. |
+ | <code rootshell> | ||
+ | apt-get install mtr-tiny | ||
+ | </code> | ||
+ | |||
+ | ZModem isn't used much any more, but it can be used to send files across an existing SSH (or any other pty) connection. The ''lrzsz'' package supports ZModem -- use the ''rz'' command to receive a file. KDE's Konsole provides good ZModem upload support. | ||
<code rootshell> | <code rootshell> | ||
apt-get install lrzsz | apt-get install lrzsz | ||
Line 190: | Line 210: | ||
GNU Privacy Guard is a clone of PGP. The command-line utility is called ''gpg''. It's now installed by default. | GNU Privacy Guard is a clone of PGP. The command-line utility is called ''gpg''. It's now installed by default. | ||
- | ==== Logging ==== | ||
- | Edit ''/etc/logrotate.conf'' to change the ''rotate'' option for ''/var/log/wtmp'' from ''1'' to ''25'', and ''/var/log/btmp'' from ''1'' to ''13''. | ||
- | |||
- | This step logically belongs on the [[logging]] or [[security]] pages, but [[logging]] hasn't be updated in three years and is not being used on installations, and [[security]] is mostly dealing with SSL keys. So put it here for now. | ||
===== Documentation ===== | ===== Documentation ===== | ||
Line 227: | Line 243: | ||
===== General Customization ===== | ===== General Customization ===== | ||
- | |||
==== motd ==== | ==== motd ==== | ||
- | Replace symbolic link from ''/etc/motd'' to ''/var/run/motd'' with a file that has the information we want. | + | On Debian, you can't edit ''/etc/motd'' directly and expect it to stay |
+ | because ''/etc/motd'' is just a symbolic link to ''/var/run/motd'' and the | ||
+ | symbolic link is likely to be recreated by future patches from Debian. | ||
+ | ''/etc/init.d/bootmisc.sh'' rebuilds ''/var/run/motd'' on every reboot, using | ||
+ | /etc/motd.tail. So to make a permanent change on Debian systems, | ||
+ | edit ''/etc/motd.tail'', instead of ''/etc/motd'', to put in the information we want. | ||
<code> | <code> | ||
- | mv /etc/motd /etc/motd.orig | + | mv /etc/motd.tail /etc/motd.tail.orig |
- | cat > /etc/motd << EOD | + | cat > /etc/motd.tail << EOD |
******************************************************************************* | ******************************************************************************* | ||
* St. Louis UNIX Users Group XXXXXXXX server running Debian Etch * | * St. Louis UNIX Users Group XXXXXXXX server running Debian Etch * | ||
Line 247: | Line 267: | ||
</code> | </code> | ||
- | Edit the new motd to fill in the server name and change anything needed to match this syste. | + | Edit the new ''/etc/motd.tail'' to fill in the server name and change anything needed to match this system. |
+ | |||
+ | To make the change to ''/var/run/motd'' without a reboot, do the same thing that | ||
+ | ''/etc/init.d/bootmisc.sh'' does: | ||
+ | |||
+ | <code> | ||
+ | uname -snrvm > /var/run/motd | ||
+ | cat /etc/motd.tail >> /var/run/motd | ||
+ | </code> | ||
==== issue ==== | ==== issue ==== |