User Tools

Site Tools


build:misc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
build:misc [2008/08/16 14:10]
207.150.66.62 Add mtr-tiny, htop, document locales issue. (CMB)
build:misc [2009/05/23 11:10]
4.245.73.62
Line 238: Line 238:
  
 ===== General Customization ===== ===== General Customization =====
- 
 ==== motd ==== ==== motd ====
  
-Replace ​symbolic link from ''/​etc/​motd''​ to ''/​var/​run/​motd'' ​with 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 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 262:
 </​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 ====
build/misc.txt · Last modified: 2011/05/21 10:11 by SLUUG Administration