Tag: package

Installing a Transmission Daemon on Ubuntu

TransmissionLet’s say you have a computer (could be your home file server) on which you want to install a torrent client as daemon (command line), and manage it through a Web interface. Would be great, right? It’s pretty easy to achieve but there are a couple of details you need to pay attention to.

Note: This tutorial was written for Ubuntu Server 12.04 but it doesn’t mean it can’t be useful for other versions or distros.

Required packages

It’s pretty simple as only a couple of packages need to be installed, and they are already in the repositories. For readability, I’m putting each of them on a different line, but they should all go on the same.

sudo apt-get install transmission-cli
                     transmission-common
                     transmission-daemon

Create folders for Transmission

Even if you could always use the default folders, I like keeping track of everything, the way I want it. So here’s what I’ve done. I think the folder names talk by themselves.

sudo mkdir ~/transmission
sudo mkdir ~/transmission/complete
sudo mkdir ~/transmission/downloading
sudo mkdir ~/transmission/torrents

Permissions

This step isn’t crucial, but it will save you lots of “sudo” commands in the future. By default, Transmission always gives downloaded files permissions to the transmission group (debian-transmission to be more precise). This is why adding your user to this group could be a good idea. Make sure your replace your_user in the following commands:

sudo usermod -a -G debian-transmission your_user

Now you need to set the correct ownership and permissions:

sudo chown -R your_user:debian-transmission ~/transmission
sudo chmod -R 755 ~/transmission

A good configuration file

Now this part is very important. The configuration file must be filled correctly or else you might not be able to access Transmission’s web interface. Many other things could also “go wrong”. But don’t worry, you can edit this file anytime in the future to fix any problem you might encounter.

First thing to do is to stop the daemon. If you don’t, the configuration file will be overridden when Transmission closes the next time.

sudo /etc/init.d/transmission-daemon stop

Use any text editor (I use Nano here) to edit the configuration file.

sudo nano /etc/transmission-daemon/settings.json

You will find all possible settings here: official Transmission wiki.

When you’re done, restart the daemon.

sudo /etc/init.d/transmission-daemon start

Configuration file example

Here’s an example of what I have added or changed from the default configuration file. Don’t forget to change your_favorite_list_url and your_user in the following example.

"blocklist-enabled": true,
"blocklist-updates-enabled": true,
"blocklist-url": "your_favorite_list_url",

"download-dir": "/home/your_user/transmission/complete",

"incomplete-dir-enabled": true,
"incomplete-dir": "/home/your_user/transmission/downloading",

"rpc-authentication-required": false,
"rpc-whitelist-enabled": false,

"watch-dir-enabled": true,
"watch-dir": "/home/your_user/transmission/torrents"

Make sure there’s a comma at the end of each line, except for the last one. The last entry (watch-dir), means every torrent file your copy in that folder will be automatically added by Transmission. Download should start only seconds after that.

Port forwarding

For optimal performance in both download and upload, it is recommended to open/forward Transmission’s default port, 51413. To do that, you will need to access your router’s from your favorite Web browser (usually at http://192.168.0.1 or http://192.168.1.1). If you need help passed that point, I suggest googling for something like “your_router_model port forwarding”. You should find plenty of information.

Access Transmission WebUI

Now that you have stopped the daemon, edited settings.json, and restarted the daemon, you should be able to access the Web interface. Simply navigate to your server/computer’s IP and port 9091 (can be changed in settings.json if it doesn’t suit your needs), which should look something like: http://192.168.1.101:9091.

Last step: show your girlfriend how to add new torrents using WebUI. 😉

Installing Dictionaries in LibreOffice – Ubuntu 12.04

Dictionary-ThesaurusYou just installed or updated to Ubuntu 12.04 (Precise Pangolin), and now you realize you need correction tools for a language that didn’t come by default? Follow these very simple steps, and you’ll be ready to go in a matter of minutes.

Make sure you have sudo access

First, you need to make sure you have administrator (sudo) rights on your system (which you most probably have if you installed it yourself). If you are not sure you have sudo access on your system, try the following:

  • Open a terminal (can be done from the Dash Home menu)
  • Type the command written below (it updates APT’s local package index and is totally inoffensive)
  • The command will ask for the sudo password, enter your usual password
  • If you have sudo access,  you should see a list of package update URLs go through the terminal window
  • If you don’t have access, find who does! (sorry, we can’t really help you here)
sudo apt-get update

Install dictionary packages

Two packages must be installed. The first is the dictionary itself, the second will add correct hyphenation patterns to LibreOffice’s corrector. Examples here are for French, but you only need to change the last part (fr) for the language of your choice. For example: sp for Spanish, or de for German.

sudo apt-get install myspell-fr
sudo apt-get install hyphen-fr

Thesaurus (synonyms and antonyms) for your language

If you are interested in having thesaurus features for your newly installed language, you only need to install one package:

sudo apt-get install mythes-fr

The shortcut to access thesaurus in LibreOffice is CTRL+F7.

Change the default language for all documents

Now that you have installed a new dictionary (and maybe more correction tools), you probably want to change the default language/dictionary for new documents you will create. Here’s how to do that:

  1. Open Writer
  2. From the top menu go to: Tools / Options. A new windows will open
  3. In the left menu of this new window, go to: Language Settings / Languages
  4. Look for Default languages for documents, and just under it, choose your preferred language
  5. Take a look at the other options above if you want to
  6. Close the Options windows
  7. You should see the language you have just selected at the center-left of Writer’s bottom toolbar

Install LibreOffice Dictionaries Under Ubuntu

======

UPDATE: read this article if you’re using Ubuntu 12.04 (Precise Pangolin)

======

Since the arrival of Natty Narwhal (11.04), LibreOffice LogoLibreOffice has become the default productivity suite under Ubuntu. Being a French speaking person, installing the French dictionary turns out be really useful. It may sound stupid, but it took me about an hour of googling before finally finding this page: LibreOffice – Ubuntu Wiki.

Installing the good package

It turns out the only thing you have to do is install the right package for every language you need. For example:

  • French: language-support-writing-fr
  • Spanish: language-support-writing-es
  • Italian: language-support-writing-it

Open Synaptic Package Manager, install the package of your choice, and you’re done!

Installing an OpenOffice extension

For some reason, you might want to install a dictionary as an OpenOffice extension (also works with LibreOffice). In this case, visit this page, and download the extensions (one extension per language) you need. Double click on each downloaded extension file (.oxt) and LibreOffice will do the rest. For most users, I suggest installing the package instead of the extension though.

© 2017 Evil Coding Monkey

Theme by Anders NorenUp ↑