First install vncserver as user root
#yum install vnc-server
then add user who runs vncserver
#adduser vncuser
Now setup VNC Password for this user
#su - vncuser
vncserver
It ask password 2 times. You need this password to connect with VNC Viewer.
Now kill the VNC Server
$vncserver -kill :1
:1 is display number. Mostly it will be 1.
Type exit to go back to root shell.
Now edit /etc/sysconfig/vncservers
#vi /etc/sysconfig/vncservers
Add following content to the file, save and exit.
VNCSERVERS="1:vncuser"
VNCSERVERARGS[1]="-geometry 1024x768"
Now start VNC Server
# service vncserver start
Now you will be able to connect to the server with SERVER-IP:1
To start VNC Server on boot
#chkconfig vncserver on
Tuesday, November 29, 2011
Tuesday, November 8, 2011
Installing PostgreSQL 9.1 on Ubuntu 11.04
first install python-software-properties:
sudo apt-get install python-software-properties
now add repository and update apt.
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
now instal postgresql
sudo apt-get install postgresql-9.1 libpq-dev
Now change the postgres user password (still running as root):
su postgres
psql -d postgres -U postgres
alter user postgres with password 'a';
\q
To install GUI client pgsql
sudo apt-get install pgadmin3
sudo apt-get install python-software-properties
now add repository and update apt.
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
now instal postgresql
sudo apt-get install postgresql-9.1 libpq-dev
Now change the postgres user password (still running as root):
su postgres
psql -d postgres -U postgres
alter user postgres with password 'a';
\q
To install GUI client pgsql
sudo apt-get install pgadmin3
Saturday, November 5, 2011
Install Ubuntu Desktop on Ubuntu server 11.04
First you nee to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file once you have enable you need to use the following command to install GUI
sudo apt-get update
sudo apt-get install ubuntu-desktop
The above command will install GNOME desktop
If you wan to install a graphical desktop manager without some of the desktop addons like Evolution and OpenOffice, but continue to use the server flavor kernel use the following command
sudo apt-get install --no-install-recommends ubuntu-desktop
If you want to install light weight desktop install xfce using the following command
sudo apt-get install xubuntu-desktop
If you want to install KDE desktop use the following command
sudo apt-get install kubuntu-desktop
Wednesday, November 2, 2011
Install Sun java 6 jre/jdk from PPA in Ubuntu 11.04
Sun Java packages for Ubuntu 11.04 Natty has not yet available in the official repository. However, there’s an easy way to get sun-java-jre, sun-java-jdk, and sun-java-jre-plugin by adding a third-party ppa.
Open up a terminal window under Application -> Accessories -> Terminal, adding the ppa by:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
Then, install java jre:
sudo apt-get install sun-java6-jre sun-java6-jre-plugin
Install Jdk by the command:
sudo apt-get install sun-java6-jdk
Open up a terminal window under Application -> Accessories -> Terminal, adding the ppa by:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
Then, install java jre:
sudo apt-get install sun-java6-jre sun-java6-jre-plugin
Install Jdk by the command:
sudo apt-get install sun-java6-jdk
Now check java version
java -version
Subscribe to:
Posts (Atom)