vnc and redhat 8

vnc and redhat 8

Post by Brian R » Sat, 22 Feb 2003 03:38:40



Hi,

I'm using redhat 8.  I think the window manager it starts by default
is gnome.

I installed vnc so that I can connect to this computer from a windows
computer.  

So, I'm running the vncserver on the redhat 8 box.
On the windows computer I login to the vncserver.  Unfortunately, the
window manager that starts is TWM.  I would like it to start gnome
instead.  Is this easy to do?  Can you tell me how to do this or point
me to a site that has the information?

Thank you in advance for your time.

Brian

 
 
 

vnc and redhat 8

Post by Linux Docto » Sat, 22 Feb 2003 13:41:18



Quote:> Hi,

> I'm using redhat 8.  I think the window manager it starts by default
> is gnome.

> I installed vnc so that I can connect to this computer from a windows
> computer.

> So, I'm running the vncserver on the redhat 8 box.
> On the windows computer I login to the vncserver.  Unfortunately, the
> window manager that starts is TWM.  I would like it to start gnome
> instead.  Is this easy to do?  Can you tell me how to do this or point
> me to a site that has the information?

> Thank you in advance for your time.

> Brian

Go into your $home/.vnc/xstartup file and modify as follows:
exec /usr/bin/gnome-session

Neall

--
** Remove NOSPAM from return address when making personal reply **

 
 
 

vnc and redhat 8

Post by georg » Mon, 24 Feb 2003 02:51:12


Also, you may need to start the vncserver as follows: vncserver -geometry
1024x768 (or whatever you want your resolution to be) -depth 16 (or whatever
you want your color depth to be).  When I just started the vncserver without
these qualifiers, I'd always just get a big blank square on my screen with
no icons and it wouldn't resemble my Gnome desktop at all.



> > Hi,

> > I'm using redhat 8.  I think the window manager it starts by default
> > is gnome.

> > I installed vnc so that I can connect to this computer from a windows
> > computer.

> > So, I'm running the vncserver on the redhat 8 box.
> > On the windows computer I login to the vncserver.  Unfortunately, the
> > window manager that starts is TWM.  I would like it to start gnome
> > instead.  Is this easy to do?  Can you tell me how to do this or point
> > me to a site that has the information?

> > Thank you in advance for your time.

> > Brian

> Go into your $home/.vnc/xstartup file and modify as follows:
> exec /usr/bin/gnome-session

> Neall

> --
> ** Remove NOSPAM from return address when making personal reply **

 
 
 

vnc and redhat 8

Post by Keith Ro » Mon, 24 Feb 2003 09:34:22


Your vncserver is probably running during system startup. Therefore,
it will run as root. TWM is the default window manager if you dont
start KDE or Gnome. So when vncserver is starting up during boot time,
it runs using the root account, and loads the window manager specified
for root (which isnt defined - and therefore TWM gets reverted to).

What I do is to not have vncserver start up at boot time... instead, I
SSH into the machine once after it gets rebooted (as my normal user
account), and then I start it manually with "vncserver" from the ssh
session... which will then use my user profile to run the vnc session,
cranking up gnome-session in the process. This fixes the window
manager issue, and also runs vncserver with my user priviledge level
(a good thing), instead or running with root priveledges (a bad
thing).

I suppose you could also alter the /root/.vnc/xstartup file to start
gnome-session automatically... havent tried that, but it might work.
/shrug

hth,
Keith Rome

 
 
 

vnc and redhat 8

Post by Kevin Marti » Wed, 26 Feb 2003 12:21:35



Quote:> Your vncserver is probably running during system startup. Therefore,
> it will run as root.

Bzzt, wrong, but thanks for playing. :-)

Check /etc/sysconfig/vncservers -- the init.d script uses that list and
the su command to start each user's vncserver under the appropriate uid,
not as root.  You do have to set a vncpasswd though, and that probably
means creating the ~username/.vnc directory first.  They seem to have
left that step out.

And oh, yeah, it (now) uses the owner's chosen window manager, not just
twm.

Sorry, I don't mean to be a jerk about it -- it is hard to keep up.  
Let's just say you might be pleasantly surprised if you were to do a
bare-metal install of a recent distro.

 
 
 

vnc and redhat 8

Post by Keith Ro » Sat, 01 Mar 2003 08:35:08




> > Your vncserver is probably running during system startup. Therefore,
> > it will run as root.

> Bzzt, wrong, but thanks for playing. :-)

> Check /etc/sysconfig/vncservers -- the init.d script uses that list and
> the su command to start each user's vncserver under the appropriate uid,
> not as root.  You do have to set a vncpasswd though, and that probably
> means creating the ~username/.vnc directory first.  They seem to have
> left that step out.

> And oh, yeah, it (now) uses the owner's chosen window manager, not just
> twm.

> Sorry, I don't mean to be a jerk about it -- it is hard to keep up.  
> Let's just say you might be pleasantly surprised if you were to do a
> bare-metal install of a recent distro.

Ah, I was not aware of that file. It certainly makes it easier. After
installing vnc, and setting it to autostart using the Services gui
tool, it starts up vncserver as root (and using TWM)... I guess thats
because a fresh install of redhat 8 does not have any uncommented
entries in this config file. I was simply applying my experiences as a
linux noob trying to help another out :) I didnt really expect to get
flamed for it.
 
 
 

vnc and redhat 8

Post by georg » Mon, 03 Mar 2003 03:14:42


Also, the March, 2003 Issue of Linux Magazine contains two articles
regarding VNC.  There is an article on p. 42 re: using XDMCP with VNC (can
make the use of VNC a little less clumsy if you currently ssh in, start the
VNC server, supply the session and all that).  Also there is an introduction
article re: VNC on p. 62.

btw this is not meant as a flame.




> > > Your vncserver is probably running during system startup. Therefore,
> > > it will run as root.

> > Bzzt, wrong, but thanks for playing. :-)

> > Check /etc/sysconfig/vncservers -- the init.d script uses that list and
> > the su command to start each user's vncserver under the appropriate uid,
> > not as root.  You do have to set a vncpasswd though, and that probably
> > means creating the ~username/.vnc directory first.  They seem to have
> > left that step out.

> > And oh, yeah, it (now) uses the owner's chosen window manager, not just
> > twm.

> > Sorry, I don't mean to be a jerk about it -- it is hard to keep up.
> > Let's just say you might be pleasantly surprised if you were to do a
> > bare-metal install of a recent distro.

> Ah, I was not aware of that file. It certainly makes it easier. After
> installing vnc, and setting it to autostart using the Services gui
> tool, it starts up vncserver as root (and using TWM)... I guess thats
> because a fresh install of redhat 8 does not have any uncommented
> entries in this config file. I was simply applying my experiences as a
> linux noob trying to help another out :) I didnt really expect to get
> flamed for it.

 
 
 

vnc and redhat 8

Post by Kevin Marti » Mon, 03 Mar 2003 10:41:35



Quote:> Also, the March, 2003 Issue of Linux Magazine contains two articles
> regarding VNC.  There is an article on p. 42 re: using XDMCP with VNC
> (can make the use of VNC a little less clumsy if you currently ssh in,
> start the VNC server, supply the session and all that).  Also there is
> an introduction article re: VNC on p. 62.

Good magazine (they seem to have gotten over counter-flaming their
subscribers, who flamed them for running MS ads) and those are two
good articles.  Check out their website, too.

Quote:> btw this is not meant as a flame.

Neither was my prior post in this thread.  (Sorry, Keith!  It was dumb of
me to tease someone in Usenet, even in what I thought was a friendly way,
before we've gotten familiar with each other's style.  I try NEVER to
flame, unless I can shed at least as much light as heat.)
 
 
 

1. Ctrl-C in Windows VNC viewer, Redhat VNC server

I've got a redhat box running VNC server on it. I can connect fine w/ a
Windows viewer and most things work fine. Ctrl-C doesn't seem to
interupt though.

$ stty -a
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase =
^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt
echoctl echoke

$ echo ^C|hexdump
0000000 0a03
0000002

Ctrl-Z works fine, but Ctrl-C is not interrupting any programs. I have
to Ctrl-Z out and then kill the process. Ctrl-C works fine from the
local X server. The Ctrl-C seems to be generating the same ASCII 03
from both the VNC viewer and local X server.

Anyone have any ideas?

2. Newbie: Help Network Card Detection/DHCP problem

3. Matrox Mystique ands X.

4. 2.4.20-pre5-ac1: 80pin cable detection wrong?

5. VNC with Redhat and Gnome

6. Slow PPP link (tried asyncmap 0 and crtscts)

7. VNCSERVER on redhat 7.2 and VNC VIEWER on a windows os question?

8. NIS question

9. How to start VNC server at boot (Redhat 7.2)?

10. VNC on Redhat/Sparc

11. VNC on Redhat 6.2

12. VNC/Redhat 6.1: Xlib extension "DPMS" missing...

13. vnc graphical login on redhat 8