Fresh install of CentOS 5.4 (and my first experience with CentOS). Following install, the first thing I did was enable desktop sharing so that I can control this new 1U box from my Mac workstation.
The VNC client sees this as "Warren's remote desktop" but I'd like it to be more meaningful, as I have other remote desktops. Where in the user settings/prefs do I change the way this VNC server identifies itself? I'd like it to show the host name.
Since this installation will eventually go on line as a LAMP Internet server, I'd like my VNC sessions to be encrypted. I saw no place in the account settings for remote desktop to specify this.
Finally, I'd like VNC to be functional at boot, before I have logged in, so that I can log in to my user account via VNC. Once configured, this server will be located remotely. Can the VNC server be made to run at loot, rather than at log-in of my account?
Can these things be done with the existing standard VNC server or do I have to install something else via yum or some such?
On Mon, 2010-02-01 at 11:58 -0700, Warren Michelsen wrote:
user settings/prefs do I change the way this VNC server identifies itself? I'd like it to show the host name.
I'd like my VNC sessions to be encrypted. Finally, I'd like VNC to be functional at boot,?
Can these things be done with the existing standard VNC server or do I have to install something else via yum or some such?
You can accomplish all of these things by following the instructions here:
http://wiki.centos.org/HowTos/VNC-Server
On Mon, Feb 1, 2010 at 11:27 AM, Frank Cox theatre@sasktel.net wrote:
You can accomplish all of these things by following the instructions here:
One thing that has bitten me when configuring the VNC server as describe there, is that "service vncserver restart" invokes each user's shell to start the server, in such a way that the shell believes it is a login shell. Depending on the shell and the user's configuration, this may cause interactive commands to be executed which will hang or otherwise interfere with the restart.
On 2/1/2010 1:27 PM, Frank Cox wrote:
On Mon, 2010-02-01 at 11:58 -0700, Warren Michelsen wrote:
user settings/prefs do I change the way this VNC server identifies itself? I'd like it to show the host name.
I'd like my VNC sessions to be encrypted. Finally, I'd like VNC to be functional at boot,?
Can these things be done with the existing standard VNC server or do I have to install something else via yum or some such?
You can accomplish all of these things by following the instructions here:
You might also like to try freenx with the NX client(s) from www.nomachine.com. It is better in a lot of ways, especially if you run a separate session instead of trying to control the console session.
At 1:27 PM -0600 2/1/10, Frank Cox sent email regarding Re: [CentOS] VNC Questions:
On Mon, 2010-02-01 at 11:58 -0700, Warren Michelsen wrote:
user settings/prefs do I change the way this VNC server identifies itself? I'd like it to show the host name.
I'd like my VNC sessions to be encrypted. Finally, I'd like VNC to be functional at boot,?
Can these things be done with the existing standard VNC server or do I have to install something else via yum or some such?
You can accomplish all of these things by following the instructions here:
I tried these instruction last week and each time I tried:
service vncserver start
I got the error that the command 'service' was not found.
I can try again, but I suspect this fresh re-install will act the same.
At 1:27 PM -0600 2/1/10, Frank Cox sent email regarding Re: [CentOS] VNC Questions:
On Mon, 2010-02-01 at 11:58 -0700, Warren Michelsen wrote:
user settings/prefs do I change the way this VNC server identifies itself? I'd like it to show the host name.
I'd like my VNC sessions to be encrypted. Finally, I'd like VNC to be functional at boot,?
Can these things be done with the existing standard VNC server or do I have to install something else via yum or some such?
You can accomplish all of these things by following the instructions here:
I tried these instruction last week and each time I tried:
service vncserver start
I got the error that the command 'service' was not found.
I can try again, but I suspect this fresh re-install will act the same.
You *did* do it as root, yes? If sudo, you might have to do /sbin/service...
mark
At 2:48 PM -0500 2/1/10, m.roth@5-cent.us sent email regarding Re: [CentOS] VNC Questions:
I tried these instruction last week and each time I tried:
service vncserver start
I got the error that the command 'service' was not found.
I can try again, but I suspect this fresh re-install will act the same.
You *did* do it as root, yes? If sudo, you might have to do /sbin/service...
Yes. In fact, I just tried again (after su'ing to root). I tried to create a new user using the 'useradd' command and was told the command was not found. I was logged in via ssh at the time, does that make a difference? It'd be strange if it did...
Last login: Mon Feb 1 12:42:53 2010 from 10.0.1.225 [warren@supermicro ~]$ su Password: [root@supermicro warren]# useradd mickey bash: useradd: command not found [root@supermicro warren]#
Am 01.02.2010 20:59, schrieb Warren Michelsen:
Yes. In fact, I just tried again (after su'ing to root). I tried to create a new user using the 'useradd' command and was told the command was not found. I was logged in via ssh at the time, does that make a difference? It'd be strange if it did...
Last login: Mon Feb 1 12:42:53 2010 from 10.0.1.225 [warren@supermicro ~]$ su Password: [root@supermicro warren]# useradd mickey bash: useradd: command not found [root@supermicro warren]#
It makes a difference if you run "su" or "su -". "su -" gives you a login shell with root's environment hence having all admin tools in $PATH.
Rainer
On Mon, 2010-02-01 at 12:41 -0700, Warren Michelsen wrote:
I got the error that the command 'service' was not found.
The /sbin directory is not on the standard path for normal users.
Use this command:
/sbin/service vncserver start
Or use "su -" instead of "su" when switching to the root user and you will get root's environment, which includes /sbin on the path.
At 1:53 PM -0600 2/1/10, Frank Cox sent email regarding Re: [CentOS] VNC Questions:
On Mon, 2010-02-01 at 12:41 -0700, Warren Michelsen wrote:
I got the error that the command 'service' was not found.
The /sbin directory is not on the standard path for normal users.
Use this command:
/sbin/service vncserver start
Or use "su -" instead of "su" when switching to the root user and you will get root's environment, which includes /sbin on the path.
Ah! This is something I've not run across before. Using "su -" did the trick.
http://wiki.centos.org/HowTos/VNC-Server
RE: 2.6.1 Testing with a java enabled browser My java enabled browser (Safari) cannot connect.
RE: 2.6.2. Testing with a vnc client I have vnc client 'Chicken of the VNC' which can connect but only to display 0 and then the response back from the CentOS box is glacial. From My Mac workstation, I can see my CentOS GUI desktop and note that the on-screen pointer follows the Mac mouse quickly, albeit jerkily, but the view in my remote desktop viewer on my workstation takes 30-40 seconds to catch up with what happens on the CentOS box screen. I'm guessing it's a configuration issue.
Meanwhile, Mac OS's built-in Remote Desktop client connects just fine and the response is good.
RE: 3. VNC encrypted through an ssh tunnel I have added the -localhost option to the VNCSERVERARGS in /etc/sysconfig/vncservers.
I cannot test the vncviewer as stated because it requires a viewer to use "vncviewer -via name@[IP_Address] localhost:1" and neither viewer that I have has anywhere to enter "-via" or "localhost:1".
When I connect using Apple's built-in screen sharing, I am warned: The computer "Warren's Remote Desktop" is running a VNC server that does not support Screen Sharing keystroke encryption. Do you want to continue connecting anyway?
This sounds like encryption is not in fact being used. Aside from adding the -localhost option to the VNCSERVERARGS in /etc/sysconfig/vncservers and restarting the vnc server, is anything else required to get ssh tunneling working?
On Mon, 1 Feb 2010, Warren Michelsen wrote:
You can accomplish all of these things by following the instructions here:
I tried these instruction last week and each time I tried:
service vncserver start
I got the error that the command 'service' was not found.
Please try again.
I have amended the writeup, to address the fact that you may not have used a method that ensures 'root''s PATH is properly set
You may wish to read 'man su' and pay close attention to the '-' option
-- Russ herrold