This blog documents random Linux computing tidbits I've found useful. Feel free to contact me if you find them useful or have a better way: ed@braaten-family.org.
I did the following things to setup auto-logout/timed user-sessions for my son on our home computer running Linux (Ubuntu 11.04):
login|gdm;*;toby;MoTuWeThFr1700-2000|MoTuWeThFr0800-1500This limits the user "toby" to login only on weekdays between the specified times.
account required pam_time.so
0 15 * * 1-5 /usr/bin/zenity --warning --text='Logging Toby off in 5 minutes!' --display=:0.0The zenity command is used to display a warning dialog in the Gnome session for the user "toby" five minutes before the killall command abruptly kills all running programs and the gnome session.
5 15 * * 1-5 /usr/bin/killall -s KILL -u toby
0 20 * * 1-5 /usr/bin/zenity --warning --text='Logging Toby off in 5 minutes!' --display=:0.0
5 20 * * 1-5 /usr/bin/killall -s KILL -u toby
xhost + >& /dev/nullThis will allow the zenity command write to the user's session (see crontab entries).
This is the printer setup for the Brother HL-2070N under CUPS on Ubuntu 11.04:
dpkg -i brhl2070nlpr-2.0.1-1.i386.deb
dpkg -i cupswrapperHL2070N-2.0.1-2.i386.deb
Note that these are 32-bit packages. They can be installed on a 64-bit system (i86_64) by using the --force-architecture and --force-depends options to dpkg.
I purchased a Garmin Nuvi 2460LMT GPS device and was unable to complete the product registration on Garmin's web site using my Linux netbook. Garmin's web site requires the GPS device to be connected to the computer during the registration process by way of a custom browser plugin which communicates with the GPS. As of December 2011, Garmin's official plugin support was limited to computers running the proprietary Microsoft and Apple operating systems.
I used the following three commands at a command prompt to install a Linux compatible browser plugin from Andreas Diesner. This plugin allowed me to register my new Garmin Nuvi 2460LMT GPS device using a Linux netbook running the Linux version of Firefox.
sudo set-apt-repository ppa:andreas-diesner/garminplugin
sudo apt-get update
sudo apt-get install garminplugin
I found the overlay scrollbar feature difficult to use on my netbook. It is easily removed from Ubuntu with the following command (followed by a reboot):
sudo apt-get remove overlay-scrollbar liboverlay-scrollbar-0.1-0
This problem is fixed by rebuilding the apt lists directory in /var/lib/apt:
apt-get clean
cd /var/lib/apt
mv lists lists.old
mkdir -p lists/partial
apt-get clean
apt-get update
Copyright (C) 2011-2012 by Ed
Braaten. All rights reserved.
Last update: Thu, 09 Feb 2012 at 19:51.
http://braaten-family.org/ed/