Wednesday, 5 March 2008

Knoppix mount smbfs share

This is a bit off topic, but I have spent ages searching around for the correct syntax to mount a smbfs share on my knoppix livecd session, so I am going to write it here so I dont forget again.

***
I have no idea what this does to the share itself (if anything) so dont blindly follow this in case it does something nasty to the data permissions. I will try to understand what the chmod stuff is doing afterwards...
***

sudo mkdir /mnt/smbmount
sudo chmod 777 /mnt/smbmount
sudo mount -t smbfs //10.1.1.1/share /mnt/smbmount -o username=username,dir_mode=0777,file_mode=0777

Thats it - I now have 'read write' access to the file share. If only want read-only access then leave out the chmod bit and the dir_mode and file_mode

Tuesday, 21 August 2007

View logs

Viewing log files from the command line:

tail -f


/var/log/messages : General log messages
/var/log/boot : System boot log
/var/log/debug : Debugging log messages
/var/log/auth.log : User login and authentication logs
/var/log/daemon.log : Running services log to this file
/var/log/dmesg : Linux kernel ring buffer log
/var/log/dpkg.log : All binary package log includes package installation etc
/var/log/faillog : User failed login log file
/var/log/kern.log : Kernel log file
/var/log/lpr.log : Printer log file
/var/log/mail.* : All mail server message log files
/var/log/user.log : All userlevel logs
/var/log/xorg.0.log : X.org log file

Crontab - scheduling jobs

Machine has started hanging every 24hours or so if I leave it running so needed to schedule a reboot as a keep-it-going measure.

sudo crontab -l to list current cron jobs
sudo crontab -e to edit cron jobs

works like a dream...just need to work out what the real problem is now....

VNC over ssh tunnel

VNC over SSH tunnel using putty seems to be a good enough solution. Works quite nicely as can just use terminal session unless I need to use something 'GUI'.

Monday, 23 July 2007

Freenx problems

Well, having used Freenx and the NoMachine client on Windows for a few weeks, I am now looking for an alternative solution for remote control.

Basically the whole machine locks up at random intervals when using remote control and it takes a hard reset to sort it out.

Back to the drawing board!

Friday, 6 July 2007

Remote desktop with experience

Well I can access my Freenx remote desktop remotely across the Internet. It is super fast when it works, but the ubuntu machine locked up after about five mins of use on the first day needing a reboot when I got home. Has done this once since, but worked ok all the time otherwise.

Could do with a remote 'out of band' reboot solution for my server.

Overall impressions - very fast bit of software, but not as reliable as RDP even though I have to say it is quicker.

I am running all my desktop apps on ubuntu now. Getting used to Firefox, Thunderbird and openoffice. No real showstoppers for my Windows -> Linux journey so far..

Monday, 2 July 2007

Remote Desktop

After trotting halfway round the internet and a number of false starts, I finally managed to get FreeNX working - and being really quick.

Follow the install instructions here:

https://help.ubuntu.com/community/FreeNX

and then edit the hosts file on the machine you are installing the FreeNX serve on - replace:
127.0.0.1 localhost
with:
127.0.0.1 localhost unix

and off you go - nx client from nomachine.com works a treat - and really fast!