Showing posts with label installation. Show all posts
Showing posts with label installation. Show all posts

Tuesday, October 14, 2008

How to use VNC server on CentOS

How to use VNC server on CentOS

Assume you have CentOS installed with Gnome. If you want to remotely access the GUI to that machine, you can use vnc-server and a vnc client (like Chicken of the VNC). Here's how:

ssh to the machine. If it is behind a firewall, you might have to set up a tunnel.
Make sure vnc-server is installed:

% sudo yum install vnc-server

Run vnc-server:

% vnc-server

This is just to initially create configs and choose a password. Now Edit the file ~/.vnc/xstartup so it runs a gnome session instead of crappy twm:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
exec gnome-session &

Kill off your vnc server and restart it:

% killall Xvnc
% vnc-server

Connect to your vnc server with host and display number reported with your favorite client. Yay.

Monday, October 13, 2008

install x windows + centos

yum groupinstall "X Software Development" "X Window System"
yum groupinstall “X Window System” “GNOME Desktop Environment”

Tuesday, August 5, 2008

working with package on Open-Source

Freebsd:
Using pkg_tools:
pkg_add -r # fetch from respository and install it
pkg_info # get installed packages's information
pkg_info -L # show everything that are created by pkg's installation
pkg_delete #remove pkg
Using port:
cd /usr/ports
make search name= #specify the path of pkg's port
......
path=/path/to/port/ #path to pkg's port
......
cd /usr/ports/path/to/port/ #change dir to pkg's port
make install clean

ex: update later

Linux:
Using rpm:
rpm -qa #show installed packages
rpm -ivh
rpm -ql # Show everything that are created by pkg's installation
yum update # Update pkg from internet

Using yum:
yum install #install pkg
yum remove #remove pkg

Using zypper:

    zypper search #install pkg
    zypper install  #remove pkg


Using apt-get:
update later