Installing TinyPM agile project management software on Ubuntu


  1. Download TinyPM war for tomcat 6.x from here
  2. Install tomcat 6.x  and mysql-server (5.x)
    sudo apt-get install tomcat6 mysql-server
  3. Download mysql connector / j from mysql website (5.x)
  4. Go to /usr/share/tomcat6/lib copy the files in the dependency folder of the tinypm zip file downloaded in step 1. Copy the MySQL connector jar file here.
  5. Create a database using the following commands
    CREATE DATABASE tinypmdb CHARACTER SET = 'utf8' COLLATE = 'utf8_general_ci';
  6. Create a user with SELECT, UPDATE, INSERT, LOCK TABLES and DELETE rights:
    GRANT SELECT, UPDATE, INSERT, LOCK TABLES, DELETE ON tinypmdb.* TO 'username'@'localhost' IDENTIFIED BY 'password';
    FLUSH PRIVILEGES;
  7. Run scripts to create the tinyPM database schema and data (instructions provided here are for MySQL console application):
    u tinypmdb
    . %PATH_TO_INSTALL_FOLDER%/sql/mysql/create_schema-2.x.sql
    . %PATH_TO_INSTALL_FOLDER%/sql/mysql/create_data-2.x.sql
  8. Create search index using commands
    sudo mkdir /var/search_index /var/search_index/tinypm
    sudo chown -R tomcat6:tomcat6 /var/search_index/tinypm
  9. Create /var/lib/tomcat6/webapps/tinypm, extract the contents of the war file into this folder.
  10. Edit /var/lib/tomcat6/webapps/tinypm/WEB-INF/classes/hibernate.properties and enter the MySQL db details. uncomment the last line
    #hibernate.search.default.indexBase = /var/search_index/tinypm
  11. Restart tomcat with sudo service tomcat6 restart, visit http://localhost:8080/tinypm (default credentials are admin/admin)

How to install FreeNX server and client on Ubuntu


  1. Add the FreeNX team repo
      sudo add-apt-repository ppa:freenx-team
  2. Install FreeNX
    sudo apt-get update && sudo apt-get install freenx
  3. Apply Patch
    wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz && tar xvf nxsetup.tar.gz && sudo cp nxsetup /usr/lib/nx
  4. Setup NoMachine keys
      sudo /usr/lib/nx/nxsetup --install --setup-nomachine-key
  5. Import public key for server
    sudo cp /usr/NX/etc/keys/node.localhost.id_dsa.pub /tmp/node.localhost.id_pub.save
    sudo /usr/NX/bin/nxnode --keyadd /tmp/node.localhost.id_pub.save
    sudo  nx:root /usr/NX/bin/nxserver --keygen
    sudo chown nx:root /usr/NX/home/nx/.ssh/authorized_keys2
    sudo chmod 0644 /usr/NX/home/nx/.ssh/authorized_keys2
    sudo mv /usr/NX/home/nx/.ssh/authorized_keys2 /usr/NX/home/nx/.ssh/autohriazed_keys --
  6.  Add new user using useradd, then add this username to /etc/ssh/sshd_config under AllowedUsers (multiple usernames can be specified with spaces separating the names)
  7.  check if the user is ableto login to NXServer bu uisng command
    sudo /usr/NX/bin/nxserver --usercheck
  8. Add the following  shell script to /usr/NX/bin/nxwrapper
    #!/bin/bash
    nxnode=${ps -o ppid= -p $PPID}
    nxagent=${pgrep -p $nxnode -u $USER -x nxagent}
    ${1+"$@"}
    exec kill $nxagent
  9.   Import the key in /usr/NX/keys/rsa_id.pub.key on to client. use custom for desktop manager specify path to nxwrapper and specify startfluxbox

Fix for "Cannot shutdown using power button" on Ubuntu


After my recent upgrade to ubuntu, pressing the power button to shut down stopped working. I had to remap the script mapped to the power button by

  1. Editing  /etc/acpi/events/powerbtn using the command
       sudo gedit  /etc/acpi/events/powerbtn
  2. Commenting line shown below by adding a # to the beginning  of the line
       action=/etc/acpi/powerbtn.sh
  3. adding a new line
       action=/sbin/poweroff
  4. Saved and exited Gedit. Tested to make sure the functionality is restored by pressing the  power button to shut down

Installing LIRC & Irxevent


  1. sudo apt-get install lirclirc-x mythbuntu-lirc-generator
  2. Select stream zap PC remote when asked.
  3. Do not select any IRblaster
  4. start lircd
  5. start irw and see if it detects any key presses
  6. Copy the attached Lircmap.xml file into ~/.xbmc
  7. startxbmc and check if the remote works
  8. run mythbuntu-lirc-generator
  9. edit .lircrc and append ~/.lirc/common to the end of the file
  10. paste the attached common file in ~/.lirc/

Mapping marble mouse buttons in ubuntu (custom configuration)


I recently purchased a marble mouse but soon found out that the mouse buttons do not function as expected on Ubuntu. This was soon remedied with the following tweaks to the Edit the locate xorg.conf.d directory using command

locate xorg.conf.d | grep d$

edit the 50-marblemouse.conf in the xorg.conf.d, replace the inputClass with the section below

### START FILE SNIPPET ###

Section "InputClass"
      Identifier "Marble Mouse"
      MatchProduct "Logitech USB Trackball"
      MatchIsPointer "on"
      MatchDevicePath "/dev/input/event*"
      Driver "evdev"
      Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
      Option "EmulateWheel" "true"
      Option "EmulateWheelButton" "9"
      Option "ZAxisMapping" "4 5"
      Option "XAxisMapping" "6 7"
      Option "Emulate3Buttons" "false"
EndSection

### END FILE SNIPPET ###

Button numbers

1 – Large left button

8- Small left button

3 – Large right button

9 – Small left button

Setting up mediatomb using ffpstick on a Zyxcel NSA210


  1. Download FFPStick 0.5 from here
  2. Format a USB stick with FAT16, extract the contents of the FFPStick Archive you downloaded on the the root of the USB stick.
  3. Shutdown the NSA210, Plug in the USB stick and reboot
  4. wait for 2 minutes and then login to the box via telnet
  5. change root password, delete account called “user”
  6. start ssh with
    chmod a+x /ffp/start/sshd.sh
    /ffp/start/sshd.sh start
  7. logout from telnet and log back in via ssh, login as root with the newly changed password.
  8. stop telnet and then disable telnet service using commands
    chmod -x /ff/start/telnetd.sh
    /ffp/start/telnet.sh stop
  9. Start mediatomb to create the initial config file by using the command
    chmod -x /ff/start/mediatomb.sh
    /ffp/start/mediatomb.sh start
  10. Wait for 30 seconds and then issue the stop command to stop mediatomb
    /ffp/start/mediatomb.sh stop
  11. Customize the /ffp/var/mediatomb/config.xml file
  12. Start mediatomb again, navigate to http://cerberos:49152 and begin adding media to database.
  13. To remove the listing for PC directory add the following line under <server>
    <pc-directory upnp-hide=”yes”/>
  14. Verify that the upnp server is reachable using the client on a droid or using enna or moovida.

Mounting a drive in fstab so that it gets auto mounted on boot


  1. In a terminal type blkid, this shows the drive name to UUID mapping. note down the UUID of the drive you want mounted at boot.
  2. As root create a folder called Local Backup in /media
  3. change ownership of the folder created in the step above to the user that logs in (IRIS9)
  4. edit /etc/fstab and paste the line below after modifying the appropriate UUID and paths to the folders
     UUID=xxxxxxxxxxxxxxxxxxxxxx /media/Local40Backup ntfs defaults 0 2
  5. space in path top folders can be escaped by using 40
  6. save the file and then type sudo mount -a. check if the drive is mounted.