Step 1: you can type ip addr
from either computer to get its IP. If they are on the same link (both inside the router) and you have avahi on both, you can refer to them as <short-hostname>.local instead of using an ip.
Step 2 is installing openssh-server
on one machine, step 3 is running scp from the other. The Nautilus file manager has ssh/scp integration if you like; you can use the “connect to server” menu for that.
Another option is installing gnome-user-share
on the server, configuring it from the menus or gnome-file-share-properties
, and finding the server from the other computer in Nautilus's network folder.
Follow the instructions:
- You have to download required jdk version from the site: http://java.sun.com/javase/downloads/index.jsp
Put the downloaded jdk into your required folder,
Here, I am creating a new folder as a java inside the /etc
folder and placing my jdk
inside the /etc/java
folder. It will look like /etc/java/jdk-6u21-linux-i586.bin
Now change the permission of your file through chmod
to accessing installer.txt file while extracting it. Change the permission by typing the following command on your terminal. sudo chmod +x jdk-6u21-linux-i586.bin
Now execute
the file by typing this command on your terminal like sudo ./jdk-6u21-linux-i586.bin
It will create a folder inside the /etc/java/
and it will looks like /etc/java/jdk1.6.0_21
And our java is install now we our going to setting the class path of our java for this what we have to do is. Just type this command on your terminal sudo gedit ~/.bashrc
and it will open a editor, and now we have to put export JAVA_HOME=/etc/java/jdk1.6.0_21
at the last line of our editor and after it we have to do is export PATH=$PATH:$JAVA_HOME/bin
It will looks like : export JAVA_HOME=/etc/java/jdk1.6.0_21export PATH=$PATH:$JAVA_HOME/bin
Now save it and close it. And restart your system or type it in your terminal source ~/.bashrc
Finally, our java is ready just type java -version on your terminal and it will return java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
Best Answer
Using the handy pm-utils package, you can issue commands to suspend and hibernate without echo'ing values to the system. For example: