Sunday, February 17, 2008

Fix Open office missing text in PDF export

Open open office

Tools->Options
Language settings->Languages
User interface English(USA)
Locale English(USA)

Sunday, February 10, 2008

Creating a samba server

apt-get install samba smbfs
sudo vi /etc/sambasmbusers

root = Administrator

sudo smbpasswd -a

sudo vi /etc/samba/smb.conf

[homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes

[qemu]
comment = Files to share with qemu
path = /home/djohnson/qemu_share
force group = users
create mask = 0660
directory mask = 0771
writeable = yes
guest ok = yes


/etc/init.d/samba restart

Monday, February 04, 2008

Building tunnels for my camera

I bought a silly camera that uses activeX controls and needs ports 80,5000,5001 to function properly

Our wireless network only allows port 80,22 into the CSIR so I had to build some tunnels

On my machine I wrote a script called makecameratunnels

#!/bin/sh

ssh -L 80:meshy:11000 djohnson@meshy
ssh -L 5000:meshy:11001 djohnson@meshy
ssh -L 5001:meshy:11002 djohnson@meshy


On the machine: mechy, I wrote a script called camera-socat

#!/bin/sh

su
socat TCP4-LISTEN:11000,fork,reuseaddr TCP4:146.64.28.13:80 &
socat TCP4-LISTEN:11001,fork,reuseaddr TCP4:146.64.28.13:5000 &
socat TCP4-LISTEN:11002,fork,reuseaddr TCP4:146.64.28.13:5001 &


Then I looged into the camera by opening this site on my webbrowser

http://localhost

An behold all worked!

Friday, February 01, 2008

DVD Playback on Ubuntu Gutsy