Search Windows and Linux Networking

Thursday, October 4, 2012

Installing VNC Server in Linux (CentOS)

How to install VNC server in CentOS


Install Required Packets using yum

# yum install vnc-server gnome-desktop xorg-x11-xinit xterm gnome-applets gnome-session gnome-themes gnome-panel gdm firefox dbus-x11

Set Password for VNC server user

# vncpasswd



Type new password and confirm it for accessing vnc server

Note:- To set password to user you must login with that user to create vnc password.

# vi /etc/sysconfig/vncservers

VNCSERVERS="1:root"
VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”


#service vncserver start
#service vncserver stop

#vi .vnc/xstartup

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


# service vncserver start

It done. Now connect to vnc server from vncviewer with <IP_Address>:1


Wednesday, July 25, 2012

How to Map (Mount) NFS Share in Windows

If you wanted to use Linux NFS Share from Windows system to mount as drive. You can do it using mount command for that you need to install NFS Client for windows.

Installing NFS Client :-

If you are windows7 , Vistra, or Windows 2008 user then you can install NFS Client from Add/Remove Software wizard in the Control Panel.

If you are Windows 2000, Windows 2000 Service Pack 3, Windows 2000 Service Pack 4, Windows Server 2003, Windows XP user then you can download client from following location.
http://www.microsoft.com/en-us/download/confirmation.aspx?id=274






And the select Finish

After installation check if NFS service is running or not from service MMC

Start -> Run -> Services.msc




If require service is running on your system you can now Map (Mount) NFS share from command line using mount command:

mount servername:\Share_Name Drive_Letter

For Example: your server name is FileServer and you have NFS export /home/share and you wanted map this drive as Z: in your My computer, then command look like this:



Start -> Run -> CMD -> OK -> Mount FileServer:\home\share Z:


Mount FileServer:\home\share Z:

It will map your NFS Share in your system and it ready to access as disk drive from you my computer.

Note:- If your NFS share required Authentication you can provide it with mount command.