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
Next revision
Previous revision
build:misc [2007/05/31 15:54]
71.10.176.218 Added SSL/cert support packages here. (CMB)
build:misc [2011/05/21 10:11] (current)
SLUUG Administration Install lsb on CentOS. (CMB)
Line 3: Line 3:
 Here's where we'll document the installation of miscellaneous small software packages. Here's where we'll document the installation of miscellaneous small software packages.
  
 +Note that some of these packages may get installed during the installation of the OS, depending on the revision and the options selected. Packages that we've seen get installed include ''​mailx'',​ ''​lsof'',​ ''​less'',​ ''​w3m'',​ ''​telnet'',​ ''​bc'',​ and ''​at''​.
  
 ===== 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 25: Line 35:
 <code rootshell>​ <code rootshell>​
 apt-get install openssl ssl-cert ca-certificates apt-get install openssl ssl-cert ca-certificates
 +</​code>​
 +
 +The ''​psmisc''​ package includes some useful tools, including ''​pstree'',​ ''​killall'',​ and ''​fuser''​.
 +<code rootshell>​
 +apt-get install psmisc
 +</​code>​
 +
 +The ''​lsof''​ program list files (and sockets) that are open, and which processes are using them.
 +<code rootshell>​
 +apt-get install lsof
 +</​code>​
 +
 +The ''​htop''​ program is an enhanced version of ''​top''​.
 +<code rootshell>​
 +apt-get install htop
 +</​code>​
 +
 +==== mail command line utility ====
 +The "​mail"​ comand line utility was not installed which caused several scripts thet rely on that command to fail. It is part of the mailx package.
 +<code rootshell>​
 +apt-get install mailx
 </​code>​ </​code>​
  
Line 53: Line 84:
 apt-get install -y curl apt-get install -y curl
 apt-get install links apt-get install links
-apt-get install lynx+apt-get install ​lynx-cur ​ # Newer release of lynx
 apt-get install ncftp apt-get install ncftp
 +apt-get install lftp
 apt-get install rsync apt-get install rsync
 #apt-get install elinks #apt-get install elinks
 #apt-get install w3m #apt-get install w3m
 </​code>​ </​code>​
 +
  
 ===== Network Tools ===== ===== Network Tools =====
Line 71: Line 104:
 <code rootshell>​ <code rootshell>​
 apt-get install telnet apt-get install telnet
 +</​code>​
 +
 +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>​
 +apt-get install lrzsz
 </​code>​ </​code>​
  
Line 85: Line 128:
 apt-get install gdb apt-get install gdb
 apt-get install patch apt-get install patch
-apt-get install build-essential dpkg-dev ​+apt-get install build-essential dpkg-dev
 apt-get install diff-doc apt-get install diff-doc
 +</​code>​
 +
 +===== Revision Control =====
 +These are various source code management (SCM) packages.
 +<code rootshell>​
 +apt-get install cvs
 apt-get install -y subversion subversion-tools db4.4-util apt-get install -y subversion subversion-tools db4.4-util
 sed -i -e 's/^# global-ignores.*$/​global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store/'​ \ sed -i -e 's/^# global-ignores.*$/​global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store/'​ \
     /​etc/​subversion/​config     /​etc/​subversion/​config
 +apt-get install -y git-core git-doc git-svn gitweb
 </​code>​ </​code>​
  
Line 96: Line 146:
 <code rootshell>​ <code rootshell>​
 apt-get install perl-doc apt-get install perl-doc
 +apt-get install libcompress-zlib-perl ​ # Compress::​Zlib
 +</​code>​
 +
 +
 +===== Shells =====
 +Install ksh93, tcsh, and csh using apt-get. Add sym links for path variations and add to /etc/shells if not done automatically.
 +<​code>​
 +apt-get install ksh
 +apt-get install tcsh
 +apt-get install csh
 +ln -s /bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /​usr/​local/​bin
 +ln -s /bin/bash /bin/csh /bin/sh /usr/bin
 +ln -s /​usr/​bin/​perl ​ /​usr/​local/​bin
 +ln -s /​usr/​bin/​perl ​ /bin
 </​code>​ </​code>​
  
Line 145: Line 209:
 ===== Security ===== ===== Security =====
 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.
-<code rootshell>​ + 
-</​code>​+
  
 ===== Documentation ===== ===== Documentation =====
Line 158: Line 222:
 </​code>​ </​code>​
  
-Mike Knight requested ​''​bc''​ for doing simple math.+''​bc''​ for doing simple math.
 <code rootshell>​ <code rootshell>​
 apt-get install bc apt-get install bc
 </​code>​ </​code>​
 +
 +Deferred execution scheduler to supplement cron:
 +<code rootshell>​
 +apt-get install at
 +</​code>​
 +
 +Gary requests "​elm",​ the user mail agent as we have on Michelob.
 +3 problems:
 +1. elm uses mbox and we are using maildir on bud & budlight. ​ We would have to movemail from gnu
 +or fetchmail to move the mail.
 +2. elm WAS the most used mail agent in the early 90s and the default for Debian. ​ But in 1999, Debian switched
 +to Mutt.  There is no longer a apt-get Debian installable for elm.   I moved the latest (2.5.8 in Aug '05)
 +and untarred it in /usr/src for possible future use if we get around issues 1 & 3.
 +3. We are intending users to be on shell access on budlight but mail to be on bud.
 +We would need to NFS mount the mail directories or use fetchmail to get the IMAP from bud to budlight.
 +
 +===== General Customization =====
 +==== motd ====
 +
 +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>​
 +mv /​etc/​motd.tail /​etc/​motd.tail.orig ​
 +cat > /​etc/​motd.tail << EOD
 +*******************************************************************************
 +* St. Louis UNIX Users Group XXXXXXXX server running Debian Etch              *
 +* For use by our paying members. ​ Rules of conduct must be followed. ​         *
 +*                                                                             *
 +* For system information,​ see:                                                *
 +*     ​http://​www.sluug.org/​members/​accounts/ ​                                 *
 +*                                                                             *
 +*******************************************************************************
 +EOD
 +chmod a+r /etc/motd
 +</​code>​
 +
 +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 ====
 +
 +The ''/​etc/​issue*''​ files are customized in the [[ssh#​configuration|ssh configuration]] procedure.
  
 ===== Credits ===== ===== Credits =====
Line 170: Line 289:
  
 ===== TODO ===== ===== TODO =====
- 
build/misc.1180644858.txt.gz · Last modified: 2007/05/31 15:54 by 71.10.176.218