Tuesday, August 28, 2007

Guide : Mount a linux directory from windows

From windows right click on the folder you want to share with your VMWare Web Server and share this as 'www' you will want to create a user and password within windows, I normally run with the username as 'linux' and password as 'linux'

NOTE: NTFS drives are only read only when mounted from Linux, alternatively create a FAT partition and use this so that you can write files to your windows machine from Linux.

Open up your fstab file in linux

'vi /etc/fstab'

then press '*' then 'a' to start editing

add a line at the bottom as follows

share a directory including a username and password for the user

//192.168.79.1/www /mnt/www cifs rw,user=linux,password=linux 0 0

Guide : Change hosts file in windows

Browse to

c:/windows/system32/drivers/etc


open in notepad/wordpad

hosts


add under 127.0.0.1 localhost

ipaddressofvmwareserver webserver(or name of development domain)


reboot windows for changes to take affect

Tuesday, August 21, 2007

T3G Sierra 580 Wireless Card connecting with Ubuntu 7.04

This guide is for users of Ubuntu Feisty Fawn 7.04 on the Telecom New Zealand network

first plug in your Sierra Wireless 580 T3G Data Card
then install kppp
sudo apt-get install kppp

then start kppp
kppp

click on configure and add a new account call it 'telecom', add the phone number as '#777' and the authentication as 'PAP'.

Then add a new modem call it 'telecom' and select '/dev/tty/USB0'.
You are now ready to connect the username is 'mobile@jamamobile' (same for all users) and the password is 'telecom'(same for all users) and click on connect

Saturday, August 18, 2007

Connect to a remote NFS Server

Enter the following commands on the server you want to share
sudo gedit /etc/exports

Then enter the following replacing the ipaddress I have below with your own, you can remove the last digits of your ipadress an replace with a 0 for anyone to access from that ip range
/pathtoshare 172.16.197.0/255.255.255.0(ro,sync)

Reload the Exports File
sudo exportfs -r

On the client machine set up a directory up to mount to
sudo mkdir /mnt/www

Then edit your fstab file
sudo gedit /etc/fstab

and add
172.16.197.1:/pathtoshareremote /pathtosharelocal nfs rsize=8192,wsize=8192,timeo=14,intr

Friday, August 17, 2007

Guide : Installing Skype on Ubuntu Feisty

sudo gedit /etc/apt/sources.list

add the following line
deb http://download.skype.com/linux/repos/debian/ stable non-free

sudo apt-get update

sudo apt-get install skype

Guide : Install VMWare Server on Ubuntu Feisty

sudo gedit /etc/apt/sources.list

add the line

deb http://archive.canonical.com/ubuntu feisty-commercial main

sudo apt-get update

sudo apt-get install vmware-server vmware-tools-kernel-modules

Wednesday, August 8, 2007

Guide : Ubuntu and Backing up to Amazon S3

I have been looking for a good method to back up to Amazon's S3 service. I have used the 'S3 Firefox Organizer' although this seems a bit cumbersome at times and does not give much feedback.

I have since installed s3sync

you need to have ruby installed as well as openssl-ruby, so using aptget I installed these

sudo apt-get install ruby

sudo apt-get install libopenssl-ruby


Extract s3sync somewhere on your computer and then create a file in this directory called s3config.yml and put your key and secret key that you have obtained from Amazon in this file, there is an example file in the directory to help out here.

You will need to create a bucket (somewhere to save your files) on your AmazonS3 Service so browse to the newly extracted folder and run the commands below to list the buckets in your account and also create a bucket

s3cmd.rb listbuckets

s3cmd.rb createbucket BucketName


You can then backup to AmazonS3 service with a command such as

s3sync.rb -r directory bucketname:nameofbackup


There are some other useful commands which can be obtained in the readme files.

Wednesday, August 1, 2007

Guide : Starting Eclipse using a different Java Version

The following shortcuts are on Ubuntu Feisty

Create a shortcut with the path as follows

/usr/bin/eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/java


or in the eclipse.ini file add the following

-vm
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/java