Biella Coleman: Mike Daisy on Facebook
but not it). Anyone have it or pointers to where it might be?
In the spirit of Thomas Limoncelli's Time Management for System Administrators, this is my checklist for setting up a new Debian system. I have added a few notes to the original list to justify their existence and to provide some background information.
Whilst you should avoid performing repetitive interactive configuration and defer to the multitude of tools designed for this task, constructing and sharing a checklist can still be an instructive step. It can also be useful in situations where a machine has already been partly configured for you.
/etc/apt/sources.list
Disable installation of Recommends:
echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/90recommends
Ensure we are up to date security-wise:
apt-get update && apt-get dist-upgrade
Setup and configure locales first to avoid annoying Perl warnings. Don't choose All locales; you almost certainly don't want that.
apt-get install locales dpkg-reconfigure -plow locales
Install some essential utilities:
apt-get install vim-nox ntp openssh-server screen most tree bzip2 unzip moreutils dnsutils htop pwgen telnet manpages manpages-dev vrms acl gawk strace curl tcpdump
Before we create any real users, we configure PAM to reject weak passwords. Custom banned passwords can be added to the dictionary by editing /usr/share/dict/cracklib and running update-cracklib.
apt-get install libpam-cracklib sed -i -e 's ^password # \0 ' /etc/pam.d/common-password echo 'password required pam_cracklib.so retry=3 minlen=6 difok=3' >> /etc/pam.d/common-password echo 'password required pam_unix.so use_authtok nullok md5' >> /etc/pam.d/common-password(Edit: Please read this response from Steve Langasek regarding this modification on squeeze and Ubuntu 8.10)
Configure sudo. I prefer to create a new group instead of re-using adm as that is already used by logfiles.
addgroup rootusers adduser myuser adduser myuser rootusers apt-get install sudo echo 'User_Alias ROOTUSERS = %rootusers' >> /etc/sudoers echo 'ROOTUSERS, root ALL=(ALL) ALL' >> /etc/sudoers
First, install the mail packages:
apt-get install exim4-daemon-light bsd-mailx dpkg-reconfigure exim4-config
During the Exim configuration, choose Internet site and follow all the defaults, ensuring that you only listen on 127.0.0.1 and you are not relaying mail for any other domains.
We then configure forwarding to another email address so we don't have to continually poll this machine for issues:
echo 'root: you@example.com' >> /etc/aliases newaliases
Finally, we test mail delivery:
echo "Test 1 from $(hostname)" mail root -s "Test 1 from $(hostname)"
Stop Emacs creating backup files everywhere:
mkdir -p /etc/emacs/site-start.d echo '(setq backup-inhibited t)' > /etc/emacs/site-start.d/10no-backup.el
Configure Munin:
apt-get install munin-node echo 'allow ^123\.123\.123\.123$' >> /etc/munin/munin-node.conf /etc/init.d/munin-node restartFor baroque network configurations, you can generate the regular expression line with this script.
Configure molly-guard, a tool for preventing accidental shutdowns. As molly-guard cannot detect shutdowns initiated within a combination of GNU screen and SSH, we configure it to always query the hostname:
apt-get install molly-guard echo "ALWAYS_QUERY_HOSTNAME=true" >> /etc/molly-guard/rc
Monitor disk S.M.A.R.T. attributes:
apt-get install hddtemp smartmontools sed -i 's ^#start_smartd=yes start_smartd=yes ' /etc/default/smartmontools /etc/init.d/smartmontools start
Setup backups - I'm quite partial to backupninja because it automates most of the tedious SSH configuration. I adjust the time of the backup to when I'm likely to be around to fix issues and cut down on email noise by not reporting successful backups:
apt-get install backupninja hwinfo debconf-utils rdiff-backup sed -i -e 's ^when = everyday at 01:00 when = everyday at 9:30 ' /etc/backupninja.conf sed -i -e 's ^reportsuccess = yes reportsuccess = no ' /etc/backupninja.conf ninjahelper
Filesystems
Reboot. You should be prompted by molly-guard before your computer restarts.
So, the latest buzz on the web is all about Google Wave. I would urge everyone developing stuff for the Internet and technological people depending on the Internet for their daily work, to watch that introductory video. The concept is frankly mind-blowing. If this is done right and embraced by all the right people, Google Wave could be the new platform concept that could be used to create new generation of email, instant messaging, collaboration software (CMS, wiki, Sharepoint, workflow, ), blogging software and forum software and do all that while integrating back with current technologies, like Twitter and RSS feeds.
It remains to be seen what parts will be open source and federated and what parts will remain Google-only services. For example, I am convinced that Spelly the spellchecker bot and Rozy the automatic translation bot will be hard to impossible to federate. This being Google, it is practically a given that the code will be good, but a bit hard to understand and contribute to. Management of the free software community and proprietary community relations will likely be the key to the success of this technology.
I love the technology itself - imagine that you have a web blog. The blog software makes each your blog post a wave. When people leave comments on the post, these comments show up in your email inbox. You can reply to people right from there. By default your replies will show up on your blog and also show up in the email inboxes of the commenter, but you also have the option to mark your reply private and only send it to the commenter. Also it looks to be possible to choose to host all the data yourself or to make Google host all your blog and comment data and make your blog just be a frame where this data is displayed in, possibly allowing you to use very, very minimal system resources to maintain the blog even in a case of Slashdotting. I hate blogs without comments, let s replace them all.
I would also love to see replacements to Microsoft Exchange and Microsoft Sharepoint be built using Wave technology with a full support to ODF if possible. Imagine collaborative document editing in OpenOffice using this technology in the backend. It would be one huge project, but it should be possible. Companies currently pay hundreds of thousands of dollars to set up MS Exchange+Sharepoint+Active Directory to be able to simply share documents in their Intranet and see who edited a document (no live editing, no change tracking). It is possible to make a much better product with ODF and Google Wave and it is possible to earn a bunch of money supporting such a product for companies that need support contracts. If it would be possible to licence spellchecking and translation services from Google in a way where a box is installed in customers data centre and the data to be spellchecked and translated never leaves that data centre, then I believe that people would be willing to pay for this superior spellchecking and translation experience.
We need open source products that people can depend on. We also need ways for business people to sell services with an easily visible added value so that they can make money and contribute their developer work hours back to the open source projects. We (the free software community) have great ways to get a positive feedback loop with users that can develop software, but when our users have no interest in developing anything, the feedback loop breaks and free software growth slows down. There is a lot of untapped potential in this area - we just need to find a way to convert needs and demands of non-developers into code.
I m gonna stop this rant before it diverges even further off topic, but the main point is - go watch the Google Wave demo, read the tech specs and think how you could integrate that into your free software project.
Useful wave discussions (will update as I find more):
Did you know that most pan makers recently were forced to increase their prices because their pan lids (covers?) have the handle on the upper side? The reason is that the maker of our recently purchased pan lid has patented the innovative this side down technique and is now busy collecting license fees from pan lid makers who didn't previously have this idea.
(Yeah, sorry, the picture is crap, I didn't pay enough for my mobile phone. But if you doubt me, please have a coffee at my house and admire this high-tech implement.)
Last night, I heard a Spanish pun that I particularly liked, having to do with my sister s dog, Shorty who is an odd creature (being a mix of Pit Bull, which is for certain, and legend goes, Chihuahua) will be as of the end of the day > sinbolico. I bet the Spanish speakers know what is happening to Shorty today. Anyone want to take a guess?
Puns, I would say, represented a human being s pent-up need for ambiguity. That a word could signify two things at once! And these double meanings could be simultaneously understood! What a relief from the flat-line understanding of a programmer s conversation with the machine! p. 59
Last night, I heard a Spanish pun that I particularly liked, having to do with my sister s dog, Shorty who is an odd creature (being a mix of Pit Bull, which is for certain, and legend goes, Chihuahua) will be as of the end of the day > sinbolico. I bet the Spanish speakers know what is happening to Shorty today. Anyone want to take a guess?
Puns, I would say, represented a human being s pent-up need for ambiguity. That a word could signify two things at once! And these double meanings could be simultaneously understood! What a relief from the flat-line understanding of a programmer s conversation with the machine! p. 59
If you want to get a croud clap effect then you not only need to multilpy a clap, but also make a Gaussian distribution of timing and loudness variation. The tighter the distribution, the more organised will the clapping be. With a very wide deviations you will get a natural white noise clapping.
Trying to clap.
I've tried making a 'crowd claps' kind of sound.
I recorded myself clapping, 12 times, and mixed the sound with ecasound:
ecasound $(for A in $(seq 1 12); do echo -a $A -i "$A.wav" -y $(( A / 5 )).$(( A % 5 * 2 )); done ) -a 1,2,3,4,5,6,7,8,9,10,11,12 -o alsahw,0,0,0
However, it doesn't sound quite right, it is too sparse.
I tried mixing the same sound 12 multiple times, but it seems to make the sound stiffer but not in the way I wanted. Delay and echo doesn't get me the right tone. Hmmm..
ecasound $(for A in $(seq 1 3); do echo -a $A -i "hakushu.wav" -y $(( A / 5 )).$(( A % 5 * 2 ))$(( A % 2 * 2 )); done ) -a 1,2,3 -o hakushu2.wav
Now being an official Debian developer I ve the possibility to use $DEBEMAIL=mika@debian.org for my Debian packages. But whereas I want to use that for all my official Debian packages I still want to use $DEBEMAIL=mika@grml.org for my grml related packages. I m a lazy sysadmin and don t want to manually adjust my changelogs depending on the type of package (especially since this might be error-prone) so I needed a generic solution. Grml s Zsh configuration (Debian package grml-etc-core >=0.3.71) provides a solution for Zsh (version 4.3.3 or later): based on directories you can set your own profiles. Demonstration:
% cd /grml/git-grml chpwd(): Switching to profile: grml % echo $DEBEMAIL mika@grml.org % cd /grml/git-debian chpwd(): Switching to profile: debian % echo $DEBEMAIL mika@debian.orgThe configuration is pretty simple:
# define profiles based on directories: zstyle ':chpwd:profiles:/grml/git-grml( / /*)' profile grml zstyle ':chpwd:profiles:/grml/git-debian( / /*)' profile debian zstyle ':chpwd:profiles:/home/mika/Customers( / /*)' profile customers # configuration for profile 'grml': chpwd_profile_grml() [[ $ profile == $ CHPWD_PROFILE ]] && return 1 print "chpwd(): Switching to profile: $profile" export DEBEMAIL=mika@grml.org export GIT_AUTHOR_EMAIL="mika@grml.org" export GIT_COMMITTER_EMAIL="mika@grml.org" # configuration for profile 'debian': chpwd_profile_debian() [[ $ profile == $ CHPWD_PROFILE ]] && return 1 print "chpwd(): Switching to profile: $profile" export DEBEMAIL=mika@debian.org export GIT_AUTHOR_EMAIL="mika@debian.org" export GIT_COMMITTER_EMAIL="mika@debian.org" # configuration for profile 'customers': chpwd_profile_customers() [[ $ profile == $ CHPWD_PROFILE ]] && return 1 print "chpwd(): Switching to profile: $profile" export TELEPHONE=[...] export MAIL=[...]Kudos to Frank for implementing this lovely feature in grml s zshrc. Look for chpwd_profiles() in grml s zsh config for further documentation on this feature.
With grub2 you can directly boot an (iso9660) ISO using its loopback option. This is great because it provides another nice rescue scenario - for example when using grml (the Debian based Linux Live-CD for sysadmins). You no longer need to extract kernel and initrd from the ISO to be able to boot it using the isofrom bootoption. All you need to do is put a plain grml ISO to your harddisk.
I ve tested it with grml-small 2008.11 and grml-small 2009.05-rc1 using grub2 from Debian/unstable (1.96+20090317-1). In the following example the ISO file grml-small_2008.11.iso is available in directory grml on device /dev/sda1. You can boot it from the interactive grub shell using:
loopback loop (hd0,1)/grml/grml-small_2008.11.iso linux (loop)/boot/grmlsmall/linux26 isofrom=/dev/sda1/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt initrd (loop)/boot/grmlsmall/initrd.gz bootSo if you are using grub2 already consider adding an entry like the following to your grub config (/boot/grub/grub.cfg):
menuentry "grml-rescue system from harddisk (ISO = grml-small_2008.11.iso)" loopback loop (hd0,1)/grml/grml-small_2008.11.iso linux (loop)/boot/grmlsmall/linux26 isofrom=/dev/sda1/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt initrd (loop)/boot/grmlsmall/initrd.gzThis entry gives you the option to boot grml from your harddisk even if you don t have the possibility to boot via CD/USB/PXE/ . Tip: starting with grml 2009.05(-rc1) you can also use findiso=/path/to/grml.iso instead of isofrom=/dev/sdX/path/to/grml.iso. findiso is a dynamic version of isofrom as it looks for the specified ISO file on all disks where it usually looks for the .squashfs file (so you don t have to know the device name compared to isofrom= ). The above configuration using findiso is even easier to set up and would look like this:
menuentry "grml-rescue system from harddisk (ISO = grml-small_2008.11.iso)" loopback loop (hd0,1)/grml/grml-small_2008.11.iso linux (loop)/boot/grmlsmall/linux26 findiso=/grml/grml-small_2008.11.iso boot=live quiet vga=791 noeject noprompt initrd (loop)/boot/grmlsmall/initrd.gz
I m on vacation the 1rst two weeks of June in Manerba del Garda at Lago di Garda. If some dudes are around for beering / chatting / keysigning, feel free to contact me til Friday.
I've successfully upgraded my primary web/mail/misc host from Debian Etch to Debian Lenny. There were a few minor problems, but on the whole the upgrade was as painless as I've come to expect.
In the past I'd edited my Exim4 configuration to add quite a few ACL checks, for example rejecting mails based upon spoofed/bogus HELO identifiers, and rejecting messages that didn't contain "Subject" or "Date" headers.
The Debian Exim4 configuration may be split into multiple files (which is how I prefer it on the whole). The idea that you just add new files into the existing hierarchy and they'll magically appear in the correct location when a real configuration file is generated. On the whole this works well, but sometimes editing files in-place is required, and it was these local edits that caused me pain.
Fixing things up was mostly not a challenge, primarily it was a matter of removing ACLs until exim4 started without errors - all my spam checking is handled ahead of exim4 these days, except for the last-ditch spam filtering with a combination of procmail-fu and the crm114 classifier package.
Taking a hint from Bubulle's weblog I decided to nuke my CRM114 spam database to avoid any possible version-mismatch issues so now I'm having to classify a lot of "unsure" messages. Happily my memory of doing this last time round is that the initial training of spam/ham takes a day or so to complete.
Anyway now I can start looking to advantage of the things new to Lenny. But probably not until I'm sure things have calmed down and upgraded correctly.
steve@skx:~$ uptime 05:00:31 up 260 days, 14:23, 2 users, load average: 0.95, 0.51, 0.31 steve@skx:~$ cat /etc/issue Debian GNU/Linux 5.0 \n \lObFilm: Bill & Ted's Excellent Adventure
Next.