I’m fed-up with forgetting the simple syntax for this!
useradd -c “<comment about user>” -d <home_directory> -m -s /bin/bash -g <primary_group> -G <secondary_groups, comma delimited> <user_id>
This probably only applies to gnu tar…
To exclude a set of files from the tar (and zip it), do the following:
tar cvfz <tar_file>.tar.gz –exclude=*.out –exclude=*.log <directory_to_be_tarred>
If you need to install Sun’s java on Debian (or ubuntu, presumably), you have to add the non-free repository to your list. This will only work for Java 1.5 or greater as far as I know.
cd /etc/apt
vi sources.list
Check that the non-free repository is in there e.g:
deb http://ftp.us.debian.org/debian/ etch main contrib non-free
Then it’s the usual:
apt-get update
apt-get [...]