What is xhost ?
The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server.
bash-2.05# which xhost
% which xhost
What is Xserver ?
Example for Xserver: Xvnc
X is the generic name for the X Window System display server. It is frequently a link or a copy of the appropriate server binary for driving the most frequently used server on a given machine.
An X server is a server of connections to X terminals in a distributed network that uses the X Window System. From the terminal user's point-of-view, the X server may seem like a server of applications in multiple windows. Actually, the applications in the remote computer with the X server are making client requests for the services of a windows manager that runs in each terminal. X servers (as part of the X Window System) typically are installed in a Unix-based operating system in a mainframe, minicomputer, or workstation.
The X server may be compared to Microsoft's terminal server product except that the latter is running on a Windows-based operating system. However, there are X servers designed to run on a Microsoft Windows-based operating system.
What is Xterminal ?
An X terminal is typically a disk less computer especially designed to provide a low-cost user interface for applications that run in a network X server as part of a distributed X Window System. Typically, X terminals are connected to a server running a Unix-based operating system on a mainframe, minicomputer, or workstation.
X terminals (and the X Window System) appear to have been the forerunner for what is now generally called "network computers" or thin clients. The X Window System and X terminals continue to offer an alternative to Microsoft's terminal server product and their NetPCs.
Example : putty
- Using a xterminal, telnet to a server.(say using root user) Ex : server1
- Start the Xserver application say VNC on server1
- Now Xserver(vncserver) is running on this server1 exports all Display stuff to a particular port(say port number 2).
- User(root) who started this vncserver can now able to see all his display related stuff by exporting DISPLAY environmental variable.
- Using xterminal new user say user1 has telnet to the server1.
- Now user1 wants to use the same VNC server for his dispaly stuff.
- He just exported DISPLAY variable as follows
- When we try launching a window it may not happen ...
So solution for this is to run a command on server1 ....
Xhost accepts the following command line options described below. For security, the options that effect access control may only be run from the "controlling host". For workstations, this is the same machine as the server. For X terminals, it is the login host.
Prints a usage message.
The given name (the plus sign is optional) is added to the list allowed to connect to the X server. The name can be a host name or a user name.
The given name is removed from the list of allowed to connect to the server. The name can be a host name or a user name. Existing connections are not broken, but new connection attempts will be denied. Note that the current machine is allowed to be removed; however, further connections (including attempts to add it back) will not be permitted. Resetting the server (thereby breaking all connections) is the only way to allow local connections again.
Access is granted to everyone, even if they aren't on the list (i.e., access control is turned off).
Access is restricted to only those on the list (i.e., access control is turned on).
If no command line arguments are given, a message indicating whether or not access control is currently enabled is printed, followed by the list of those allowed to connect. This is the only option that may be used from machines other than the controlling host.
To get the proper display for VNC sessions ?
Go to /.vnc
And find the file xstartup
make the file look like below and start a new vnc session.
bash-2.05# cat xstartup
#xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
0 comments to "xhost , Xserver, Xterminal ..."
Powered by WidgetsForFree
- ► 2013 (19)
- ► 2011 (18)
- ► 2010 (35)
- ► 2009 (73)
- Java Lessons Learned - Eclipse Shortcuts
- Week-end Time Pass
- one crore dollars for your 'idea'
- xhost , Xserver, Xterminal ...
- Being a root also , Not able to install when ur bu...
- Gutsy Indian Women - Smoking
- Looking for Invisible mode on G-Talk ????
- Blogger of the Day(BOTDA)
- Word of Farewell !!! @ BlueSpice
- Contact !!
- Who am I ?
- Chintakayala Ravi .. SWE
- Blogs I watch
- Transport Information System
- wherefore for me!!!
- Skandagiri - Trecking to the top of clouds
- Bike captions...
- Traffic Rules & Regulations - Bangalore(100 % lega...
- Google's Chrome, ready to Rule the browsers world ...
- Search and Repalce a particular word in VI Editor(...
- Java Preparation for interviews
- ▼ September (25)
My Blog List
- Airtel and vodafone GPRS settings for pocket PC phones
- Andhra 2 America
- Ayyappa Deeksha required things
- Blogs I watch !
- Captions for your bike
- DB2 FAQs
- Deepavali Vs The Goddes of sleep
- ETV - Dhee D2 D3
- Evolution of smoking in India Women
- How to make credit card payments?
- Java-J2EE interview preparation
- My SQL FAQs
- My Travelogues
- Old is blod - New is italic
- Online pay methids for credit cards
- Oracle FAQs
- Smoking in Indian Women
- Technology Vs Humans
- Twitter feeds for all Telugu stars on single page.
- Unix FAQs
- Unix best practices
- init 0, init 1, init 2 ..
- mCheck Application jar or jad download