Retour
          Arrière / Back Ships-Bells

A Linux program to strike the bells every half-hour

OVERVIEW
Ships-Bells is a program that, once installed on a computer running Linux, will strike the bell at each turn of the glass, during the watches of the day and night.


INSTALLATION AND CONFIGURATION

This program depends on cron, and on utilities which are part of the alsa-utils package; if this package is not installed on your system, you will first need to install it from your usual repository.

As user, download the latest version of the shipbells archive, and extract it; this will create a
shipbellstmp temporary directory from which you will run the setup script; so open a console, move to the shipbellstmp directory just created in your download directory, and launch the installation with the command sh setup.sh

This in turn will create the ~/Music/shipbells directory, copy there the relevant files, and add the necessary lines to the user's crontab.

During the installation, you will be asked whether you want the bells struck in the US Navy style or the Royal Navy style, and at what level to set the sound volume.
  Those settings can be changed later by running again sh setup.sh in a console from the ~/Music/shipbells directory.

Once the installation is finished,
the shipbellstmp temporary directory will be removed;  the Ship-Bells .tar.gz archive will no longer be needed, and can safely be removed.

Warning: Ship-Bells will not
install as root, it needs to be installed and run as user to avoid complications.

REMOVAL

As user, run sh setup.sh in a console, from the ~/Music/shipbells directory, and answer Y when asked if you want to remove Ship-Bells.
After which you can safely remove
the ~/Music/shipbells directory.

TROUBLESHOOTING

- You may get an error message similar to: "pulseaudio[4645]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: "
Some systems have problems with the aplay program from Alsa-utils; in this case, a possible work-around is to install Sox ("the Swiss-knife of sound manipulation") and edit the strikebells file in
~/Music/shipbells , replacing "aplay" with "play" on line 11.

- Android users should be aware of the fact that Ships-Bells relies on cron and crontab to strike bells at given times; by default Android does not run the crond demon; for information on how to activate cron, see here. (I would appreciate any info on whether Ship-Bells actually runs on Android, as I have no such machine to test under that OS).
Until then you may find  https://play.google.com/store/apps/details?id=org.rathkopf.shipsbells or https://play.google.com/store/apps/details?id=com.machinemode.shipsbell of interest.

PLANNED IMPROVEMENTS

None for now.

CHANGELOG AND DOWNLOAD

You can download here any of the cersions of Ships-Bells
 
0.9.1 
 
2013/11/10    
Original release

0.9.2

2013/11/10
Restores the sound-volume setting after striking bells
Gives a warning if installing under Android (no cron)
Removes temporary directory once the initial setup is finished.

CONTACT

If you have any queries, questions, problems, ideas for improvement, or want to send a huge donation,
I can be reached at renaud@olgiati-in-paraguay.org.

Retour Arrière / Back



Copyright © Renaud Olgiati 2013
Creative Commons License
This work is licensed under the CGPL Version 3 License.



Dernière mise à jour / Last update : 2013/11/11
Mis en page / Published with : Icescape