Tuesday, October 20, 2009

Frikkin' file permission

I always thought I was pretty good at this linux stuff, there's usually nothing I can't work out how to do or at least get semi-working. But now I come to something thats screwing with my head. I know why its happening, I just can't be bothered screweing with it to fix it....


I use hellanzb now to download files, thats no big deal
When the file finishes the download it goes into a folder on the root partition.

Problem is, when its placed in the folder its not given high enough permissions so that its world readable as I want it to be.

I've currently taken the lazy way out and run a crontab every 15 mins to set this specific folder to chmod -R 777 every time it runs, but this isn't good enough
hellaNZB should be able to save th efile to this folder and not have me need to .......... wait a min.... add both to the same group and inherit premissions from that.... Well done me.. I'm a genious.... and yes i know.... one who can't spell worth shit.

Didn't work - Down with MythTV

After agnosing with the mySQL side of MythTV due to me wanting the database to bascially be the better mousetrap, I finally gave in, reinstalled the lot and tried to get a channel... guess what.. here in aus, for some reason the lil driver that could jsut can't get a dvb-t channel through the usb stick. Oh well strike that job from narnia, onwards and upwards to find something else for the little tyke to do.

Getting USB DVB TV to work FINALLY

So after aaaaaaaaaages of fiddling with this and that i finally got the usb tv card to appear in linux
Still dont know if it will get a channel, but i know at leas the device is installed.


# First we build v4l (Video 4 linux)
apt-get install mercurial
mkdir src
cd src
hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dbv
make && sudo make install
sudo depmod -a

# Now we build the drivers/modules
cd ..
hg clone http://linuxtv.org/hg/~anttip/ec168/
cd ec168
make && sudo make install
sudo depmod -a
sudo modprobe dbv-usb-ec168

# Next we need some firmware for the card
wget http://palosaari.fi/linux/v4l-dvb/firmware/ec168/dvb-usb-ec168.fw
sudo cp dvb-usb-ec168.fw /lib/firmware
sudo depmod -a

restart the pc as sudo /etc/init.d/udev restart caused things to error.
And boom.. working usbtv adapter.

The Lion, The Witch, and the.. .... god damn it!!!

Why god damn I hear you ask??? (Yeah i know, no bugger reads this so i dont hear crap) well I finally got around to installing my server into the wardrobe.
I ended up calling it poison - as in it will no doubt poison my time while i constantly play with it. However considering its new home, i should have called in narnia... bugger it thats what i'll do.. pls hold.....

right after a quick hostname change and an update to dns/dhcp servers all is now good.

So onward and upwards.

So far I have installed the following

  • HellaNZB <-- Usenet NZB downloader
  • ZussaWeb <-- Web interface to HellaNZB
  • Transmission <-- Torrent downloader
  • WebMin <-- Figured I'd whack it on and play with it
  • Asterisk <-- Who doesn't want a home PABX
  • The drivers for my usbtv adapter <-- What a pain in the ass this was to install hence the guide to come
  • Apache Web Server
  • PHP
  • MySQL
  • OpenSSH <-- My favorite kind of access
  • NoMachine NX Server <-- Remote access kind of like vnc, however its ssh so again i like it.. NERD!!!
So how did I go about installing all this, most if not all were easy as a quick apt-get so for fullness here goes.
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install webmin transmission hellanzb asterisk openssh-server screen mysql-server apache2 mythtv-backend samba

I didn't really do the dist-upgrade, however if i ever come back to this in the future it probably wont hurt to do.

Go make a cup o coffee while that all installs and come back a little later.