Wednesday, August 29, 2012

How to start VNC server for GUI interface in Linux


How to start VNC server for GUI interface-
1.       Login into the Linux box
2.       Type the following command in the prompt- tightvncserver :1
Success message for e.g. is displayed.
New 'X' desktop is xxxxsrv.yyyy.zzzz:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/xxxxsrv.yyyy.zzzz:1.log
Apt install iceweasel
apt-get install libtest-www-selenium-perl

Search-   apt-cache search <package name>
Install-   apt-get install <package name>
Type in Command Prompt-
1.  perl -MCPAN -e shell;
2. install HTML::Template
 
Start VNC Server in Linux:-
1. Start -  tightvncserver :1
2. Stop -  tightvncserver -kill :1

Start Firefox profile in Linux:-
firefox –no-remote -Profilemanager

Installation of new application in 5 easy steps
3.       Download
a)      Download the release from the official channels page:
b)      This how-to supposes that the downloaded file is saved in the "Downloads" directory situated in your home directory.
c)       Extract
d)      The downloaded file is a compressed .tar.bz2 archive.
e)      To extract this archive, open the Downloads directory. Look for a file named for e.g. firefox-8.0.tar.bz2, right-click on it and select "extract here".
f)       Alternatively, you can extract the archive from the command line:
g)      cd ~/Downloads/
h)      tar xjf firefox-8.0.tar.bz2
i)        For those interested, here are the tar  arguments used in the command:
x : extract
j : deal with bzipped file
f : read from a file (rather than a tape device)
j)        The .tar.bz2 archive can now be deleted.
k)  tar -zxvf HTML-Template-2.8.tar.gz 

3. Move to /opt

External programs like LibreOffice, Google Chrome, Adobe reader, ... are all installed in the /opt directory. If you want more info about why, check out these two links:
Where to install my products on linux?
Filesystem Hierarchy Standard
If you already had a previous Firefox version installed in the /opt directory, remove it with the following command:
sudo rm -r /opt/firefox
Now move the firefox directory – which was created in your Downloads folder during extraction – to /opt:
sudo mv firefox /opt/firefox8

4. Set up symbolic links

Depending on you usage pattern, follow the instructions for case 1 OR for case 2.
Case 1: you want to use Firefox 8 as you default browser:
"Backup" the old Firefox launcher:
sudo mv /usr/bin/firefox /usr/bin/firefox-old
Create a symbolic link pointing to the new Firefox version:
sudo ln -s /opt/firefox8/firefox /usr/bin/firefox
No need to update your icons/shortcuts, they should now launch the new version of Firefox.
Your old Firefox version is still installed. If you want to use it, run firefox-old in a terminal or create shortcuts/icons referring to firefox-old.

Case 2: you want to keep using your "old" Firefox by default:
Create a symbolic link pointing to the new Firefox version:
sudo ln -s /opt/firefox8/firefox /usr/bin/firefox8
Launch the newly installed Firefox by running firefox8 in a terminal, or create shortcuts/icons referring to firefox8.

No comments:

Post a Comment