LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-09-2003, 10:11 PM   #1
dopper
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Muppy 006 (puppy 2.12 derivative) & Ubuntu 6.06 LTS Dapper Drake, ipcop 1.4.13
Posts: 52

Rep: Reputation: 15
VNC in SuSE 8.2 & Redhat 9.0


I'm running both SuSE 8.2 and Redhat 9.0 on seperate machines and using the preinstalled VNC software.

When I connect to the redhat machine I get a full xwindows desktop display in 16 bit color and everything works wonderfully.

When I connect to the SuSE machine all I get is a bash shell window which doesn't make sense because I'd just connect via SSH if all I wanted was a commandline. I tried downloading and installing VNC just using the defaults to see if that would make it display properly but it rendered the same results.

Any ideas on what is configured differently or how I can configure it properly so I can connect to my SuSE gui desktop the same way I can connect to my redhat machine's gui desktop?
 
Old 06-09-2003, 11:55 PM   #2
bruce1271
Member
 
Registered: Apr 2003
Location: Dallas, TX
Posts: 122

Rep: Reputation: 15
look in ~/.vnc and there should be an xstartup file..your redhat probably has it and your suse is missing it. Then just add it to suse machine.
 
Old 06-10-2003, 12:03 AM   #3
dopper
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Muppy 006 (puppy 2.12 derivative) & Ubuntu 6.06 LTS Dapper Drake, ipcop 1.4.13
Posts: 52

Original Poster
Rep: Reputation: 15
They both have the xstartup file in ~/.vnc
 
Old 06-10-2003, 12:14 AM   #4
dopper
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Muppy 006 (puppy 2.12 derivative) & Ubuntu 6.06 LTS Dapper Drake, ipcop 1.4.13
Posts: 52

Original Poster
Rep: Reputation: 15
visuals of the differences between the two

Here's my redhat desktop via VNC
http://www.citationce.com/temp/redhatvnc.jpg

Here's my suse desktop via VNC
http://www.citationce.com/temp/susevnc.gif
 
Old 06-10-2003, 11:26 AM   #5
dopper
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Muppy 006 (puppy 2.12 derivative) & Ubuntu 6.06 LTS Dapper Drake, ipcop 1.4.13
Posts: 52

Original Poster
Rep: Reputation: 15
I see what you mean now

oh I see now, xstartup is a script file and they're different in both redhat and suse. I just noticed that it was executable so I assumed it was like a windows binary executable file and that both xstartup files were the same in redhat and suse.

It appears the xstartup script is comparable to a windows batch file as opposed to a binary file and this is where I got confused. Excuse my linux newbishness.

Last edited by dopper; 06-10-2003 at 11:27 AM.
 
Old 06-13-2003, 08:43 AM   #6
dopper
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Muppy 006 (puppy 2.12 derivative) & Ubuntu 6.06 LTS Dapper Drake, ipcop 1.4.13
Posts: 52

Original Poster
Rep: Reputation: 15
Thumbs down xstartup file

I tried copying my xstartup file and all the files it links to from my redhat machine to my suse machine but it still gives me the same results :/
 
Old 06-13-2003, 11:57 AM   #7
dopper
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Muppy 006 (puppy 2.12 derivative) & Ubuntu 6.06 LTS Dapper Drake, ipcop 1.4.13
Posts: 52

Original Poster
Rep: Reputation: 15
Talking I figured it out!

I got it working calling! Thank you for your suggestion bruce1271!

Here is what I did to make VNC work in SuSE 8.2 the same way it does in redhat 9.

I copied the following files from my redhat machine to my SuSE machine using the same directory structures:
/root/.vnc/xstartup
/root/.vnc/passwd
/etc/X11/xinit/xinitrc/Xclients
/etc/X11/xinit/xinitrc/xinitrc
/etc/X11/xinit/xinitrc/xinitrc.d

At this point it still wasn't working. I messed around with ita bit and looked through all the scripts to see if there was anything I was missing. Eventually I figured out what that the problem was I didn't add the proper permissions to the files. To rectify the problem I added the proper permissions to the files so it matched the file permissions on the redhat machine. (I didn't realize execute permissions don't get copied with the file. Coming from a windows background I usually forget about this step)

# chmod +rwx /root/.vnc/xstartup
# chmod +rw /root/.vnc/passwd
# chmod +rwx /etc/X11/xinit/xinitrc/Xclients
# chmod +rwx /etc/X11/xinit/xinitrc/xinitrc
# chmod +rwx /etc/X11/xinit/xinitrc/xinitrc.d

To complete the setup I created a vnc startup script saved as vncserver.sh in my home directory with the following command line in it:

# vncserver :99 -name DoppersVNCserver -depth 16 -geometry 992x560

The command I specified also allows me to connect to my vnc server remotely through the the java client at http://dopperscomputer:5899/ It fits perfectly in my webbrowser window without having to scroll or resize windows when I run the client machine at 1024x768 resolution in 16 bit color in my mozilla webbrowser.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference Between Suse & Redhat pakuson Linux - General 17 12-03-2013 11:53 AM
A very strange Disk change in Redhat & SuSE sgzlit Red Hat 1 03-20-2005 08:54 PM
need VNC to allow 'logout/login' from Gnome (gnome & VNC runs fine) spudler Linux - Networking 3 11-14-2004 10:02 AM
Please help - Redhat/Suse & cable modem problem MrMors Linux - Networking 5 05-13-2004 02:13 PM
RedHat 9 & Suse 8.2 - Which one? gitarted Linux - Newbie 3 09-09-2003 01:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration