vncserver | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

vncserver

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-17-2011
lramsb4u lramsb4u is offline
Registered User
 
Join Date: May 2011
Last Activity: 15 November 2012, 3:17 PM EST
Posts: 56
Thanks: 8
Thanked 2 Times in 2 Posts
vncserver

Hi,

I am trying to install vncserver on a fedora system.
I am wondering how can i get the vncserver rpm to install.
I am not having it in the yum repository. (by the way is vncserver free ?)
How could i download the rpm and install it ?
Please advice me on this.
Thanks in advance!
Sponsored Links
    #2  
Old 05-19-2011
ygemici ygemici is offline Forum Advisor  
sed_shell@LNU
 
Join Date: Feb 2010
Last Activity: 9 October 2014, 9:49 AM EDT
Location: istanbul
Posts: 1,672
Thanks: 2
Thanked 286 Times in 279 Posts
for example you can search vncserver in this site like below eg fedora 10..
(probably it requires xorg-x11-xauth for x11 forwarding to server)
and you can try it with vnc-client.

Code:
http://rpm.pbone.net/index.php3/stat/4/idpl/13677028/dir/fedora_10/com/vnc-server-4.1.3-1.fc10.i386.rpm.html

and then you can look to look Requires : section and then collect another dependencies packages.lastly install all packages and go on

or

directly install from realvnc.com.this rpm has both server and client.

regards
ygemici
Sponsored Links
    #3  
Old 05-20-2011
lramsb4u lramsb4u is offline
Registered User
 
Join Date: May 2011
Last Activity: 15 November 2012, 3:17 PM EST
Posts: 56
Thanks: 8
Thanked 2 Times in 2 Posts
Hi ygemici, thanks for the reply with link.

I tried free edition of vncserver from realvnc and did following.

downloaded vnc-4_1_3-x86_linux[1].tar.gz from realvnc and winscp'ed to fedora box and untar it with following command

Code:
tar -zxvf vnc-4_1_3-x86_linux[1].tar.gz

this created a dir called "vnc-4_1_3-x86_linux[1]"
cd to that dir and ./vncinstall /usr/local/bin
this copied vncserver, vncpasswd,vncconfig etc files to /usr/local/bin
cd to /usr/local/bin and then the following


Code:
[root@testbox bin]# ./vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New testbox.local:1 (root)' desktop is testbox.local:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/testbox.local:1.log
[root@testbox bin]# echo $?
0

But i haven't found /etc/sysconfig/vncservers file to edit.
And rpm -qa |grep vnc doesnt show the installed rpm.
(But it does created .vnc directory in /root )
What went wrong?

Last edited by radoulov; 05-20-2011 at 04:27 PM.. Reason: Code tags.
    #4  
Old 05-22-2011
ygemici ygemici is offline Forum Advisor  
sed_shell@LNU
 
Join Date: Feb 2010
Last Activity: 9 October 2014, 9:49 AM EDT
Location: istanbul
Posts: 1,672
Thanks: 2
Thanked 286 Times in 279 Posts
you dont see rpm list because of you dont install a rpm package..
i guess that packages comes where from realvnc.com does not includes vncservers file.
you must install vnc-server rpm alternative sources for this.

on the other hand you can resume with this package so.
(you should not use vnc for root user.there is may some securiy vulnerabilitys especially while in auth levels.)

firstly on the server start vncpasswd for create a vnc password for test user in server which connect on desktop.


Code:
$ su - test
$ vncpasswd
$ x0vncserver -PasswordFile /home/test/.vnc/passwd

and the on vncclient start vncviewer for example

Code:
# vncviewer -FullColour vncserver -ViewOnly -geometry 1024x768

regards
ygemici

Last edited by ygemici; 05-22-2011 at 04:17 PM..
Sponsored Links
    #5  
Old 05-23-2011
lramsb4u lramsb4u is offline
Registered User
 
Join Date: May 2011
Last Activity: 15 November 2012, 3:17 PM EST
Posts: 56
Thanks: 8
Thanked 2 Times in 2 Posts
Hi ygemici, thanks again.

I tried this


Code:
[vct@console-0124 ~]$ vncpasswd
Password:
Verify:
[vct@console-0124 ~]$ x0vncserver -PasswordFile /home/vct/.vnc/passwd
x0vncserver: unable to open display ""
~ImageCleanup called
[vct@console-0124 ~]$ echo $?
1
[vct@console-0124 ~]$

looks this was not successful.
when i opened vncviewer on windows laptop to connect i got


Code:
VNC viewer error: unable to connect to host: A socket operation was attempted to an unreachable host. (10065)

I still dint find /etc/sysconfig/vncservers file to edit and


Code:
[vct@console-0124 ~]$ vncserver
New 'console-0124.local:1 (vct)' desktop is console-0124.local:1
Starting applications specified in /home/vct/.vnc/xstartup
Log file is /home/vct/.vnc/console-0124.local:1.log

but


Code:
[vct@console-0124 ~]$ service vncserver status
vncserver: unrecognized service

Not sure where is the problem.
Please suggest me a solution to this.
Thanks in advance!

Last edited by Scott; 05-26-2011 at 03:00 PM.. Reason: Code tags, please...
Sponsored Links
    #6  
Old 05-23-2011
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 22 October 2014, 12:44 PM EDT
Location: /dev/ph
Posts: 4,822
Thanks: 64
Thanked 429 Times in 398 Posts
The version of vncserver you installed is not integrated with Fedora 10. it is a standalone version and has to be treated as such. Therefore commands such as

Code:
service vncserver status

will not work.

If you want a Fedora 10 enabled version, download and install the appropriate RPMs from /pub/archive/fedora/linux/releases/10. Look under "Everything/i386/os/Packages".
Sponsored Links
    #7  
Old 05-23-2011
lramsb4u lramsb4u is offline
Registered User
 
Join Date: May 2011
Last Activity: 15 November 2012, 3:17 PM EST
Posts: 56
Thanks: 8
Thanked 2 Times in 2 Posts
Hi fpmurphy,

Thanks for the reply.
I downloaded & installed vnc-server-4.1.2-35.fc10.x86_64.rpm as root.
and made following change in /etc/sysconfig/vncservers file

Code:
VNCSERVERS="1:vct"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

as vct user set vncpasswd
and as root user started vncserver by

Code:
service vncserver start


Code:
root@console-0124 .vnc]# service vncserver start
Starting VNC server: 1:vct
New 'console-0124.local:1 (vct)' desktop is console-0124.local:1
Starting applications specified in /home/vct/.vnc/xstartup
Log file is /home/vct/.vnc/console-0124.local:1.log
[ OK ]

then started vncviewer and tried to connect as console-0124.local:1
then i got error as

Code:
unable to resolve host by name: the requested name is valid and was found in the database, but it does not have the correct associated data being resolved for. (11004)

.

and when i tried to connect via ip address then i got


Code:
unable to connect to host: A socket operation was attempted to an ureachable host (10065)

what is wrong.
Is this because of my old incorrect rpm installations ?
xstart file in /home/vct/.vnc is as follows


Code:
[vct@console-0124 .vnc]$ more xstartup
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

here i did not find following lines to uncomment


Code:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

and xstartup file in roots home dir is also same.
what went wrong.
Thanks in advance!

Last edited by Scott; 05-26-2011 at 03:04 PM.. Reason: (code tags)
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to use vncserver and vncviewer? nsharath Red Hat 4 01-23-2009 06:44 AM
vncserver xlib error karpoand UNIX and Linux Applications 0 11-13-2008 03:43 AM
vncserver on SCo 505 franruiz UNIX for Dummies Questions & Answers 3 01-23-2004 03:54 PM



All times are GMT -4. The time now is 11:25 AM.