This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
build:misc [2008/08/16 14:10] 207.150.66.62 Add mtr-tiny, htop, document locales issue. (CMB) |
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> | ||
| Line 238: | 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 258: | 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 ==== | ||