django on apache2 with mod_wsgi

Reference: https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/ Sitename: vkrm Location: /work/vkrm 1. Install mod_wsgi (and Apache if not already). I had both already installed (I checked for mod_wsgi by running “yum install mod_wsgi”). If not, follow instructions on: http://code.google.com/p/modwsgi/wiki/InstallationInstructions 2. Enable “mod_wsgi” and httpd.conf su -c vi /etc/httpd/conf/httpd.conf Add line: LoadModule wsgi_module modules/mod_wsgi.so 3. Create a static directory in your site. Inside the directory that contains “manage.py”, run: mkdir static 4. Copy admin static files python manage.py collectstatic mv admin …

Read moredjango on apache2 with mod_wsgi

Configuring headless transmission (torrent) client on Fedora 17

su yum install transmission yum install transmission-daemon make sure transmission-daemon service is not running service stop transmission-daemon edit configuration file to enable rpc and disable whitelist (or allow addresses in whitelist) vi /var/lib/transmission/.config/transmission/settings.json start transmission-daemon service start transmission-daemon Note: if you modify settings while transmission-daemon is running, changes won’t be saved! Therefore, first stop the service

Installing Webmin on Ubuntu 12.04

Edit the /etc/apt/sources.list file on your system and add the lines : deb http://download.webmin.com/download/repository sarge contrib   deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib You should also fetch and install GPG key with which the repository is signed, with the commands : cd /root wget http://www.webmin.com/jcameron-key.asc   apt-key add jcameron-key.asc You will now be able to install with the commands : apt-get update apt-get install webmin All dependencies should be resolved automatically. Reference: http://www.webmin.com/deb.html

Building a Linux HTPC

It’s been a while since I have blogged not beacuse of laziness but because I am working towards having my own website where I could continue this blog and start many more interesting things. For this purpose, I have been learning Ruby on Rails as I think I want to build something on a new technology not PHP which I am not very interested in. I am also not wanting to use any CMS software. …

Read moreBuilding a Linux HTPC

Adding a user to the sudo file

Configuring SUDO1. Open a terminal.2. In the terminal enter the following: su –login -c ‘visudo’ 3. Press enter, at the password prompt enter the password for root, then press enter.4. A display similar to the following will be displayed: # sudoers file.## This file MUST be edited with the ‘visudo’ command as root.## See the sudoers man page for the details on how to write a sudoers file.## Host alias specification# User alias specification# Cmnd …

Read moreAdding a user to the sudo file