Wednesday, June 5, 2013

How to setting a password for Transmission Web UI

Nowadays I am playing with my Raspberry Pi. I'm using it as media stream server (link), NFS server (link1, link2) and recently it is now a P2P file sharing "server" (link1, link2). 

I am using Transmission for enabling my Raspberry Pi as P2P server because it is a versatile program which has command line and web interfaces. 

Transmission's configuration file is located at /etc/transmission-daemon/settings.json and I read a bunch of web pages that helped me to configure it. However, for me was not clear how to set a password for the web interface then here is my recipe:
  1. sudo service transmission-daemon stop
  2. sudo vi /etc/transmission-daemon/settings.json
  3. Find a line beginning with "rpc-password":. Change the string between double quotes for your [clear] password, e.g. "transmission"
  4. sudo service transmission-daemon start
If you left unmodified most of the parameters, your transmission deployment can be accessed from any browser using this URL "192.168.1.4:9091". The IP address could change and reflect your network configuration but the 9091 port is the default TCP port for Transmission. 

Transmission web page will prompt you with for a user name ("rpc-username" : "pi",) and password which is the string that you set in the third item above.