Showing posts with label Debian. Show all posts
Showing posts with label Debian. Show all posts

Friday, August 27, 2010

Very short about using transmission-daemon

The transmission-daemon program is a daemon-based Transmission session that can be controlled via IPC commands by transmission-remote(1) [1]. This program is used by default in FreeNAS, and maybe you want to use it on Linux box. It's very likely you distribution come with transmission by default. In that case, you need to install transmission-daemon only:

# apt-get install transmission-daemon


Configuration file is /var/lib/transmission-daemon/info/settings.json (it's quiet safe to add *.*.*.* to rpc-whitelist option). After editing (user, password, paths, etc), we need to reload the daemon itself:

# /etc/init.d/transmission-daemon reload

Using remote client was discussed before [2].
Note: transmission-daemon configuration is very well documented on this web site. You are recommended to read (at least to feel the power of FreeNAS's web interface).

1. man transmission-daemon
2. Cross-platform transmission-remote-gui

Saturday, March 28, 2009

How a non-root user can use apt-get download-only feature?

Some time all you need is just getting required *.deb files to install some programs, for example, to another system that don't have Internet connection. Of course, under root you can use --download-only parameter as:

# apt-get --download-only install wesnoth

(or on Ubuntu $ sudo apt-get --download-only install wesnoth)

Then copy downloaded files from /var/cache/apt/archives. But even if you don't have root permissions the following pipe gives you desired result:

$ apt-get --yes --print-uris install wesnoth | grep --regex 'tp://.*deb' | cut -d ' ' -f1 | sed "s/^'//g;s/'$//g" | wget -i -

As you can see, wget accept URL from input (stdin) with -i option.

Thursday, January 22, 2009

Stardict 3.0.1 does not pronounce in Debian

Some knows that Stardict can pronounce English words contained as wav files in the WyabdcRealPeopleTTS.tar.bz2 package, if untar the last to /usr/share. On my Debian system, the dictionary program stops pronounce when I upgraded stardict to 3.0.1 version. And when upgrading I noticed the appearance of some new packages such as festival, espeak, which suppose to do the same thing. Saying faithfully, I'm still not familir with these programs, so I was looking for other solution. In Stardict's sound configuration command for playing wav files by default is play. It could not be found by whereis. Insteed, aplay was found. So I changed play to aplay, and suprisedly it works!
Give it a try if you have the same problem.