Search

NTP: be on time, always

November 21st, 2007 edited by Wolfger

Article submitted by Folkert van Heusden. Please help DPOTD by submitting good articles about software you like!

So there you are. You’re an average geek with a nice cluster of Linux systems. All configured to act together in whatever you’re doing with it.

Example 1: Your systems are connected via a fast pipe to the Internet. And since systems on the Internet are cracked on an almost hourly basis, you want your logging on all systems to be correct enabling you to contact the abuse center of the ISP of that script kiddie. For that you want correct timestamps in your logging. You want to know exactly when that cracker started his attacks.

Example 2: Besides being a cluster on the Internet, your cluster also acts as a software-building cluster, all connected via NFS shares and executed using make. For make to do its thing, the time on all nodes of your cluster must be equal or else files will be skipped.

Example 3: You’re a very environment friendly IT expert. You always travel by train to your customers. For this you need to know exactly how late it is so that you can jump on your bicycle and be at the train station just in time for that train.

For all of these examples you could get your watch and try to configure your systems to exactly the same time. That’s a bit of a challenge because typing the time takes time and interpreting the time on your watch (by your brain) takes time as well. Also, when the time is finally set, you’re not there: PCs have notoriously bad CMOS clocks with an enormous drift. That means that in a few days the clock of your system might be way off.

Now, there is a solution for all of these problems. One solution that takes care of it all and even more. The solution is called NTP. NTP stands for Network Time Protocol. An NTP daemon will determine the drift of the clock of your PC and then disciplines it up to the point that you can be sure it won’t be off. Also when connecting multiple systems, the NTP instances on each system can talk to each other (or a central NTP server) so that all of them correct their own time against each other! That solves example 2 and 3, but what about example 1: the problem that you would like to have the time of your PC to be the same as the rest of the Internet? For that, NTP can synchronize itself to time servers on the Internet.

Quite a few ISPs have a system set up in their network connected to a GPS or DCF77 receiver or something similar to which their customers can sync their computers. If your system gets cracked, you know for sure that the timestamps in the logging of your systems is the same as the ones of your ISP and, hopefully, of the ISP of the cracker as well.

If your ISP does not provide time servers (normally you should have between 3 and 6 upstream servers to ensure accurate time), you can let your local NTP daemon synchronize to the NTP pool project as well. The NTP pool project consists of volunteers with a static IP address and an NTP daemon that either synchronizes to steady trustworthy time sources (stratum 1). The NTP daemon included in Debian syncs by default to the NTP pool project.

With all the new Debian (and other Linux distributions) being installed the NTP Pool is under constant pressure to handle more traffic. If you have a static IP address and a stable server, please consider adding your server and help out!

NTP is included in all Debian and Ubuntu releases, and can be enabled or disabled via a checkbox on your Set Date/Time dialog.

Posted in Debian, Ubuntu | 6 Comments »

AMOR: a desktop companion

November 18th, 2007 edited by Wolfger

Article submitted by Christian Haase. We are running out of articles! Please help DPOTD and submit good articles about software you like!

AMOR is a nice toy which is absolutely senseless. It displays a tiny figure on your desktop, running on top of your windows or falling down to the bottom. It is a KDE application, but it should be no problem to use it in Gnome (as I do).

worm on the move

In the package are several figures such as the FreeBSD-Daemon, and Tux (in 2 variations). There are also things like a ghost flown from a castle and some more. Some creatures are only static (the FreeBSD-Daemon, Little Billy, and the classic Tux), but the rest are animated. An list of the available themes is provided here.

ghostcat

If you like to see some tips, AMOR also supplies 2 kinds of speech bubbles for them. The first kind are the KDE-Tips and the second kind are for application related hints. Unfortunately there appear to be no applications making use of this second functionality.

The configuration is very simple. Just catch the creature to open the context-menu and choose to open the configuration-dialog.

Overall, as said by the name too, it is an “Amusing Misuse Of Resources”, but I do like the jumping glyphs while working.

AMOR was written by Martin R. Jones and Gerardo Puga. AMOR is in Debian from oldstable to unstable for the common architectures and in Ubuntu from dapper to hardy for amd64, i386 and powerpc. It depends only on some basic kde-libs (kdelibs4c2a, kdelibs-data, libqt3-mt) which are already installed on many systems. If you want to keep your non-KDE system clean try the “-s”-option of aptitude first and decide for yourself.

Posted in Debian, Ubuntu | 12 Comments »

GPW: generate pronounceable passwords

November 14th, 2007 edited by Tincho

Article submitted by Jared Raddigan. Please help DPOTD by submitting good articles about software you like!

Passwords can be a headache to remember, especially good, long passwords. Well, luckily for us Tom Van Vleck agrees, so he wrote a program to make pronounceable passwords up to 99 characters long.

Where do I primarily use this program? I use this program when trying to come up with WPA2 personal keys. I want the password to be good enough to protect the wireless network, but I don’t want it to be so good that I can never remember or type it in correctly. It’s amazing when you can pronounce something how much easier it is to remember and how much happier your end users are.

You can also use it for your email account, for storing your confidential data and, of course, for your GNU/Linux account! Using gpw is very easy:

$ gpw [number of passwords] [length of passwords]

So to make 5 passwords with the length of 12 characters just do

$ gpw 5 12
proothesside
erieractiver
rlbrentieucc
entednaphysi
ditypagessno

I usually run the command a number of times until I find a password that fits my needs the best.

In high security situations passwords are no longer acceptable, but when a password is needed, this is a good way to get a decent password that’s much better than using your dog’s name or the ever elusive “password” password. If you really want to increase security while still using a password, just change the length to something like 20 characters or above and then you can say that you no longer use passwords and switched to pass phrases and impress all your friends.

You will find gpw in both all versions of Debian and Ubuntu

Update: as mentioned in the comments, you can also check out pwgen. It is another password generator that creates somewhat pronunceable passwords, but can also generate them with symbols and numbers, and doens’t use any dictionary.

Posted in Debian, Ubuntu | 6 Comments »

Debfoster: Remove a package and its dependencies

November 11th, 2007 edited by Wolfger

Article submitted by Alex Chekholko. Please help DPOTD by submitting good articles about software you like!

We recently ran a review on Deborphan. Here is a review on a similar tool: Debfoster. Debfoster exists to tell you which packages are installed on your machine merely as dependencies for other packages. It then gives you the option of removing the package and its dependencies. It also remembers your previous responses so that it does not ask you about the same packages each time.

Debfoster is most useful to keep your system very lean. However, with today’s large disks, it is more of an aesthetic utility.

The use of Debfoster is best illustrated by a simple example. See the manpage for more details. This example assumes that you already ran Debfoster and told it to keep all your existing packages, otherwise it will ask you about all of them.

I will look at the dependencies for a package called munin, then install it (and its dependencies), then use Debfoster to remove it.

$ apt-cache show munin
Package: munin
Priority: optional
Section: universe/net
Installed-Size: 996
Maintainer: Ubuntu MOTU Developers
Original-Maintainer: Munin Debian Maintainers
Architecture: all
Version: 1.2.5-1
Depends: perl (>= 5.6.0-16), perl-modules (>= 5.8.0) |
libparse-recdescent-perl, librrds-perl, libhtml-template-perl,
libdigest-md5-perl, libtime-hires-perl, libstorable-perl, rrdtool,
adduser
Recommends: munin-node, libdate-manip-perl
Suggests: www-browser, httpd

$ sudo apt-get install munin
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libhtml-template-perl librrd2 librrds-perl rrdtool
Suggested packages:
libipc-sharedcache-perl httpd
Recommended packages:
munin-node libdate-manip-perl
The following NEW packages will be installed:
libhtml-template-perl librrd2 librrds-perl munin rrdtool
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.

$ sudo debfoster

munin is keeping the following 4 packages installed:
libhtml-template-perl librrd2 librrds-perl rrdtool
Keep munin? [Ynpsiuqx?], [H]elp: N
Keep librrds-perl? [Ynpsiuqx?], [H]elp: N

rrdtool is keeping the following 1 packages installed:
librrd2
Keep rrdtool? [Ynpsiuqx?], [H]elp: N
Keep libhtml-template-perl? [Ynpsiuqx?], [H]elp: N
Keep librrd2? [Ynpsiuqx?], [H]elp: N
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
libhtml-template-perl* librrd2* librrds-perl* munin* rrdtool*
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.

As you can see, Debfoster can help you clean up the packages that were
installed as dependencies. However, this functionality also exists in
aptitude and synaptic. Current versions of Aptitude or Synaptic will auto-remove the packages that were
installed as dependencies, negating the need for Debfoster. See Google: “aptitude vs apt-get” for more info.

Debfoster in all supported versions of Debian and Ubuntu.

Posted in Debian, Ubuntu | 5 Comments »

timer-applet: a countdown timer applet for the GNOME panel

November 7th, 2007 edited by Alexey Beshenov

Article submitted by Vasiliy Faronov. We are running out of articles! Please help DPOTD and submit good articles about software you like!

When working at my PC, I often forget that I need to do something, say, in ten minutes. Therefore, I need an easy way to set up a reminder and be prodded when the time elapses. timer-applet is a small applet for the GNOME panel that does this.

The applet takes the form of a small button sitting on the panel. When you click it, the timer setup dialog box appears.

The timer setup dialog box

You may just enter the time after which you want to be reminded and click “Start Timer”. You can also set a name for the timer; it will be shown to you when the timer finishes, so you don’t have to painfully recall what you are to do. If your needs are more complex, you can set up multiple timer presets.

After you click “Start Timer”, the countdown begins. The panel button shows the time remaining. Clicking the button will pause the timer; clicking it again will allow you to continue the countdown or start it over.

The timer button displaying the remaining time

Once the chosen time period elapses, the applet notifies you with a bubble, and the button begins to flash.

The timer has finished

timer-applet is actively maintained and has a web site. It has been available in Debian since etch and in Ubuntu since dapper. Ubuntu gutsy features the 2.0 version of timer-applet which has a slightly better user interface.

The obvious downside of timer-applet is that it is only useful in GNOME environments. KDE users might want to check out the package kalarm (from KDE’s PIM suite). Also, the packages teatime and kteatime may be useful if you specifically need a tea timer.

Posted in Debian, Ubuntu | 10 Comments »

« Previous Entries Next Entries »