To mount the ISO image file.iso to the mount point /mnt/test use this command:
mount -o loop -t iso9660 file.iso /mnt/test
Friday, October 17, 2008
How to mount iso Image in Linux
Posted by Prabath Ariyarathna at 4:21 PM 0 comments
Wednesday, October 8, 2008
Java Source Code to Change Local IP Address
Hi guys..
Try This code to change your Local IP address.
import java.io.IOException;
import java.lang.Runtime;
public class Chang_Ip {
public static void main(String args[]) throws IOException
{
String str1="192.168.0.201";
String str2="255.255.255.0";
String[] command1 = { "netsh", "interface", "ip", "set", "address",
"name=", "Local Area Connection" ,"source=static", "addr=",str1,
"mask=", str2};
Process pp = java.lang.Runtime.getRuntime().exec(command1);
}
}
Posted by Prabath Ariyarathna at 11:57 AM 0 comments
Thursday, October 2, 2008
How to Add User to Samba Server
There are two steps to creating a user. First we'll run the smbpasswd utility to create a samba password for the user.
sudo smbpasswd -a username
Next, we'll add that username to the smbusers file.
sudo gedit /etc/samba/smbusers
Add in the following line, substituting the username with the one you want to give access to. The format is
username = "username"
Now you can create samba shares and give access to the users that you listed here
Posted by Prabath Ariyarathna at 3:01 PM 0 comments

