Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Friday, October 24, 2008

Create an iso file from a cd,dvd or folder

This post will show you how to create an iso file from a cd, dvd or a folder.

Create .iso from CD - DVD


Step 1:
Now we move to the creation of the .iso file. The following command will create the iso file named test.iso.
dd if=/dev/cdrom of=test.iso bs=1024
Now wait for the command to finish. This may take some time depending on the size of the data on the disc.


Create .iso from a folder

Step 1:
In order to create an iso from a folder we need to install the program mkisofs. Just type:
sudo apt-get install mkisofs
Step 2:
Now we create the iso file (test.iso) from a folder in our system.
mkisofs -r -o test.iso /path_to_folder/
Step 3:
It is suggested to create an MD5 checksum from the iso file so we can validate the integrity of the file in the future. This is done with the following command:
md5sum test.iso > test.iso.md5


Read more...

Wednesday, October 22, 2008

Open desktop environment througth ssh

This post will show you a very simple way to open a desktop environment such as gnome, kde or xfce through ssh. This way has been tested on Ubuntu and Kubuntu.



Step 1:
You need to install open ssh client and server
sudo apt-get install openssh-client openssh-server

Step 2:
On the client machine you need to open a new screen. In order to do this press Ctrl+Alt F2 (or any f2-f6) and login.

Step 3:
When you are logged in run following command to open a new X Session in screen 1 (you can open it in other screens ex. 2. If you want to go to another screen press Ctrl+Alt f8 - f12)
xinit /usr/bin/xterm -- :1
When the session is opened you will only see a terminal.

Step 4:
On that terminal you will execute this command to open an ssh connection.
ssh -X username@host_ip
or
ssh -Y username@host_ip
The difference between the above commands is that the first one is subjected to X11 SECURITY extension restrictions by default. The second is not. So it is advised to use it with caution.

Now you have to enter your password (from your account on the server) in order to login.

Step 5:
When you are logged in the remote computer according to the X environment it has installed you have to enter the following to run it.

For machines with Ubuntu usaly:
gnome-session
or if you have KDE installed type :
startkde
For machines that have XFCE installed type:
startxfce4



Read more...

Installing (SUN) java v6

0. Description
Installing (SUN) java v6 on Ubuntu (the APT way)



1. Installation
# apt-get install sun-java6-*



2. Configuring
$ update-alternatives --config java
/usr/lib/jvm/java-6-sun/jre/bin/java
$ update-alternatives --config javac
/usr/lib/jvm/java-6-sun/jre/bin/java



3. Testing Installation
$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
$ javac -version
javac 1.6.0_07



Read more...