Tuesday, 18 September 2012

getting original xbox dvd dongle to work with Ubuntu 12.04

This guide is mostly copied and pasted from these two fantastic posts:  http://ubuntuforums.org/showpost.php?p=11422009&postcount=19 and http://forum.xbmc.org/showthread.php?tid=98348

Just follow the instructions and input the lines of code into a terminal...

...got it going, I just compiled the xbox driver rather than all of lirc

sudo gedit /etc/modprobe.d/blacklist.conf
add 'blacklist xpad' without the quotes to the bottom of the file

sudo update-initramfs -u
sudo apt-get build-dep lirc
sudo apt-get install git dialog automake autoconf libtool
git clone git://lirc.git.sourceforge.net/gitroot/lirc/lirc
wget http://old.nabble.com/attachment/31787507/0/lirc_0.9.1_lirc_xbox_driver.patch
cd lirc/
patch -p1 <../lirc_0.9.1_lirc_xbox_driver.patch
gedit drivers/lirc_xbox/lirc_xbox.c
remove (i.e., delete the whole line or this will mess things up) the line

#include <linux smp_lock.h="smp_lock.h">

./configure -with-driver=userspace
cd drivers/lirc_xbox/
sudo make install
sudo apt-get install lirc
 sudo gedit /etc/lirc/hardware.conf
 to use lirc_xbox as the remote module so it looks like this:
# /etc/lirc/hardware.conf
#Chosen Remote Control
REMOTE="Windows Media Center Transceivers/Remotes (all)"

#Chosen IR Transmitter

#Enable lircd

#Don't start lircmd even if there seems to be a good config file

#Try to load appropriate kernel modules

# Default configuration files for your hardware if any

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
- Backup /etc/lirc/lircd.conf
sudo gedit /etc/lirc/lircd.conf
and replace with this:

# brand: Microsoft Xbox DVD Receiever (also works with generic)
# remote control: Xbox remote or any remote using RCA DVD player codes

begin remote

  name  XboxDVDDongle
  bits            8
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          163983
  toggle_bit_mask 0x0

      begin codes
          LEFT                     0xA9
          UP                       0xA6
          RIGHT                    0xA8
          DOWN                     0xA7
          SELECT                   0x0B
          1                        0xCE
          2                        0xCD
          3                        0xCC
          4                        0xCB
          5                        0xCA
          6                        0xC9
          7                        0xC8
          8                        0xC7
          9                        0xC6
          0                        0xCF
          MENU                     0xF7
          DISPLAY                  0xD5
          REWIND                   0xE2
          FFWD                     0xE3
          PLAY                     0xEA
          PAUSE                    0xE6
          STOP                     0xE0
          SKIP-                    0xDD
          SKIP+                    0xDF
          TITLE                    0xE5
          INFO                     0xC3
          BACK                     0xD8
      end codes

end remote

Tuesday, 14 June 2011

Links to Useful Web Dev Resources

'Would you like to display your own icon on the browser address bar and browser tabs when visitors view your web pages?

'Now it's easy to create icons and marquees for your web pages with FavIcon from Pics. Simply select a picture, logo or other graphic (of any size/resolution) for the "Source Image" and click "Generate FavIcon.ico'

Thinking Web: Voices of the Community - free to download PDF book.

"The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem."

rose is so lovely

Wednesday, 12 January 2011

XBOX DVD IR Remote, Ubuntu 10.10 and irxevent

Get the Xbox DVD IR reciver and remote working on Ubuntu - follow this post: http://forum.xbmc.org/showpost.php?p=688677&postcount=32

The remote should now work with XBMC. To get the Remote working with other applications...

1) Install irxevent

- System> Administration> Synaptic Package Manager> lirc-x

2) Create the irxevent confic file in home folder

- Create a new document in home folder and rename it .lircrc
- Right click on the file and in Permissions tab tick the allow executable tick box.
- Open the file with the text editor and paste the following in the file, then save and close.

prog = irxevent
button = SELECT
repeat = 0
config = Key KP_Enter CurrentWindow
prog = irxevent
button = MENU
repeat = 3
config = Key Tab CurrentWindow
prog = irxevent
button = BACK
repeat = 0
config = Key alt-Left CurrentWindow
prog = irxevent
button = LEFT
repeat = 2
config = Key Left CurrentWindow
prog = irxevent
button = RIGHT
repeat = 2
config = Key Right CurrentWindow
prog = irxevent
button = UP
repeat = 2
config = Key Up CurrentWindow
prog = irxevent
button = DOWN
repeat = 2
config = Key Down CurrentWindow

- Run the command irxevent -d in the Terminal (to restart run killall irxevent
and then irxevent -d)

Map more buttons by checking sudo gedit /etc/lirc/lircd.conf to find out the button label (ie. button = DOWN) and then map it to a keyboard key (ie. the Enter key KP_Enter). More info here: http://tv-true.org/how-to/configuring-lirc.html and here: http://www.youtube.com/watch?v=e9O6Qm5nWwo

To start irxevent whenever Firefox is started create a script and then a new Firefox short that uses the script to start Firefox.

- Create a new file called ffir.bin and copy the script text:

irxevent -d

- Save the script (remember to make the file make executable).
- Right click on the new Firefox short-cut and open Properties and then change the Command field to Desktop/ffir.bin.

Thursday, 16 December 2010

Getting PHP mail function to work on localhost (my computer)

I set up Apache and installed PHP 5 on my laptop computer running Linux/Ubuntu 10.10, but I couldn't get locally (localhost) run scripts to send emails. Following both the links below (bits from both) got things working. NOTE: for the root email I put my usually email, ie. smith@gmail.com.



Tuesday, 30 November 2010

QMU Edinburgh Remote Desktop - Ubuntu 10.10 Citrix Client

How to access remote desktop on the Queen Margaret University Edinburgh network with Ubuntu (10.10) and Citrix client.

Install the Citrix client through the Ubuntu Software Centre - Applications>Ubuntu Software Centre

Now, follow the instructions here: http://www.qmu.ac.uk/it/certificates/IntRootCertLinux.PDF linked to from this page: http://www.qmu.ac.uk/it/certificates.htm

Copy the crt file to...


To move the crt file to the right location you have to open the file manager with root permissions. Open a terminal Applications>Acessories>Terminal and type

gksudo nautilus

enter your password and copy the file from where ever youb saved it (likely to be your desktop of hom/downloads folder) a copy it to the location mentioned above. finally, make sure the permissions of the file are correct. It has to be owned by Root. Right click on the crt file and under the Permissions tab change the owner and group to Root - see the screenshot below.

Saturday, 27 November 2010

Convert iTunes M4A files to MP3 on Linux

Convert iTunes M4A files to MP3 on Linux
http://pragmattica.wordpress.com/2008/01/17/convert-itunes-m4a-files-to-mp3-on-linux/Recursive conversion - so easy and makes me so happy :)

The command... will copy all files that are already mp3s in the iTunes library in to the new folder as well...good by iTines... you will not be missed!

./ConvertToMP3.py /home/itunes /home/mp3s --copymp3s