LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to use VNC on Mandriva One 2008 and cannot get vncserver to run once ready... (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-use-vnc-on-mandriva-one-2008-and-cannot-get-vncserver-to-run-once-ready-633201/)

zurkeyon 04-05-2008 02:27 AM

OK More Questions At the Bottom.... LoL
 
Hello Linux peoples !!!

I have a Samba server set up on an IBM Eserver xSeries 225 tower. Its for some large and fast windows network shares and mapped drives.

I wish to admin the system from afar and I cannot get vnc to run properly. After setting password and starting the service I get the following.....

[root@localhost /]# vncserver
Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
05/04/08 01:52:37 Xvnc version TightVNC-1.3.9
05/04/08 01:52:37 Copyright (C) 2000-2007 TightVNC Group
05/04/08 01:52:37 Copyright (C) 1999 AT&T Laboratories Cambridge
05/04/08 01:52:37 All Rights Reserved.
05/04/08 01:52:37 See http://www.tightvnc.com/ for information on TightVNC
05/04/08 01:52:37 Desktop name 'X' (localhost:2)
05/04/08 01:52:37 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
05/04/08 01:52:37 Listening for VNC connections on TCP port 5902
05/04/08 01:52:37 Listening for HTTP connections on TCP port 5802
05/04/08 01:52:37 URL http://localhost:5802
_FontTransSocketUNIXConnect: Can't connect: errno = 2
failed to set default font path 'unix/:7100'
Fatal server error:
could not open default font 'fixed'
Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'
05/04/08 01:52:38 Xvnc version TightVNC-1.3.9
05/04/08 01:52:38 Copyright (C) 2000-2007 TightVNC Group
05/04/08 01:52:38 Copyright (C) 1999 AT&T Laboratories Cambridge
05/04/08 01:52:38 All Rights Reserved.
05/04/08 01:52:38 See http://www.tightvnc.com/ for information on TightVNC
05/04/08 01:52:38 Desktop name 'X' (localhost:2)
05/04/08 01:52:38 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
05/04/08 01:52:38 Listening for VNC connections on TCP port 5902
05/04/08 01:52:38 Listening for HTTP connections on TCP port 5802
05/04/08 01:52:38 URL http://localhost:5802
Font directory '/usr/X11R6/lib/X11/fonts/misc/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Type1/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/75dpi/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring

Fatal server error:
could not open default font 'fixed'

Please help me, O mighty Uber ones!!!

/ || \
/-Zurkeyon-\
\ /
\ /

zurkeyon 04-05-2008 03:11 AM

Please Help Me Linux People...

I'm stumped and the web is not offering the usual assistance.

Any suggestions at all ?

Thanks in advance :-)

{BBI}Nexus{BBI} 04-05-2008 05:26 AM

Quote:

Originally Posted by zurkeyon (Post 3111441)
Please Help Me Linux People...

I'm stumped and the web is not offering the usual assistance.

Any suggestions at all ?

Thanks in advance :-)

Did you edit your /home/username/.vnc/xstartup script to assign a window manager?

zurkeyon 04-05-2008 05:40 AM

Ok another quick one...

I made the mistake of typing in telinit 3 and now cannot get X working again....


Any suggestions ?

PLEASE

{BBI}Nexus{BBI} 04-05-2008 05:44 AM

Quote:

Originally Posted by zurkeyon (Post 3111519)
Ok another quick one...

I made the mistake of typing in telinit 3 and now cannot get X working again....


Any suggestions ?

PLEASE

try telinit 5.

zurkeyon 04-05-2008 05:47 AM

Nope... I cannot get back to X I am on fullscreen tty1...

I am so stupid....

I cannot get X still. Mandriva 2008

It fails to start rpc.statd now as well.
Not sure if that means anything...

{BBI}Nexus{BBI} 04-05-2008 05:49 AM

Just reboot it. As root type: reboot.

zurkeyon 04-05-2008 05:49 AM

It reboots without X now also

{BBI}Nexus{BBI} 04-05-2008 07:35 AM

Either type startx or to have X start automatically as root type: XFdrake. Reselect your graphics card, look under options and make sure you have a checkmark against Automatically start graphical interface, if you don't then select it, then save your settings. If X doesn't startup once you've done this, simply reboot again.

zurkeyon 04-05-2008 03:00 PM

none of this is working for me. I guess its a 12 hour reconfigure....


Thank you for the suggestions

{BBI}Nexus{BBI} 04-05-2008 06:50 PM

Try setting it up using the config in #4 of this thread: http://www.linuxquestions.org/questi...nc#post3097002

zurkeyon 04-06-2008 05:31 PM

Is this method ok ? Its working so far =-)
 
Thank you for all the help on this. I had toasted the driver install and could not get x to work, because none of the devel environments or kernel-devel were installed. I have started to use the package manager to insure that all available libs and devel/compilers, are installed prior to trying to install anything else.

Is that a good method ?

I am trying to finetune my install for mandriva as a multi-function fileserver. I am just getting started again with linux, after getting frustrated years ago when it was still 90% command line.

I will list my whole cheat sheet, and if any of you have the time, maybe you could apply pointers and additional steps to get right the hacks and workaround methods I am likely using.

Yes, I know I am ther King of run-on sentences :-)

ok...Here it is...


MY MANDRIVA INSTALL METHOD FOR MULTI-FUNCTION FILESERVER - PRIVATE NETWORK - BEHIND CORPORATE FIREWALL...
IBM eServer x225, dual 1.8 Xeon, 1280 ram, geforce4 mx440 PCI, 1.1 Terabyte SATA RAID (Striped 320g drives, and a solo 120g for OS), x2 Intel Extreme Gigabit Ethernet NIC, USING REMOTE DESKTOP and WEBMIN to ADMIN REMOTELY.

My Setup in detail (Kind of)...

MAKE Mandriva Install CD 2008 (or current)

Boot to CD

Perform Live Install and allow reboot. Removing the CD when Prompted.

Set IP and get internet up using the Mandriva System Config tool or using command line to set up etho and eth1

Install all possible devel, communication, compilers etc ( Several gig total )

Perform update several times until all possible packages are installed.

-------console stuff.....-------

shorewall clear - clears out firewall and opens all ports for server

Disable Shorewall by editing shorewall.conf and setting "Startup = no"

urpmi samba - installs samba

urpmi kernel-devel - installs kernel development package to allow nvidia driver install.

stopx

sh the nvidia driver and install it. driver install still partially fails but allows continued use of X

reboot

Drakconfig to re-setup screens

reboot

setup samba and shares for windows workgroup (Methods can be found online - I am using webmin to get it working for ease of use and remote admin of the system later on)

reboot


insure samba services start with - chkconfig smb on

reboot

Update system using Mandriva config tool to properly install drivers as most installs fail this tool corrects them and makes work the drivers. ( I think LoL :-P )

Reboot

Attempt VNC setup. Using software manager – uninstall current VNC and reinstall tightvnc for use and configure. Possible that all will need to be pulled and reinstalled. (Tightvnc still not working correctly)

x11vnc from a terminal works best (so far)

Command = x11vnc –passwd (Password)

Still need this to open and run in a command line on startup
-------------------------------------------------------------------------------------------------------------------------------

Investigate Webmin as a remote solution....
Results...

FOUND POSTING QUOTE - SOURCE UNKNOWN
I have Mandriva 2006, I can access webmin locally using https://localhost:10000 and even by https://server01:10000. However, if I try connecting from any other computer I get "The operation timed out when attempting to contact server01". I can get to http://server01 and https://server01 remotely just fine. I liked at webmin settings, it is set to allow all IPs, I do have shorewall, so I checked it, and it had 80, and a few other ports that it accepted, but it did not have 10000 so I added 10000 to the list but I still get the same error when accessing webmin remotely. What could possibly be stopping it? Can someone help me figure this out?

Thanks.

The most secure way is using
ssh -L 10001:localhost:10000 youruserhere@server01

this will open an ssh connection to server01 using username yourusername.
after you logged in, your local port 10001 is forwared through the ssh connection to server01 (localhost on the other end...) port 10000.

now you can open your browser and type https://localhost:10001
for server01 this will look like you connect from localhost to port 10000.
END QUOTE


Set up IP vs servername for use remotely. Works fine… Change IP for new environment



setup virtualbox and other tools as needed....


Still to do - - -

Set up ssh tunnel and dyndns for xvnc and make startup of xvnc server

Get Shares Completed

Get virtualbox to work

Anti virus ?


Anything you guys would do differently or any pointers you feel like offering ?

nronksr 10-08-2008 12:28 PM

Mandriva & VNC, Please set correct fontPath problem.
 
FYI: The actual problem is that in Mandriva 2007 and upward is that the default font paths have changed.

They use to be located under the X11R6/lib/X11 directory and they moved to /usr/share/fonts.

The vncserver script has not been updated to accomodate this. You can either update the script to include the new font path (I believe it is around line 134ish in the vncserver script), or run the following two commands to place symlinks, so the vncserver script can find the font and xserver path.

Quick solution:

ln -s /usr/share/fonts /usr/X11R6/lib/X11/fonts
ln -s /usr/lib/xserver /usr/X11R6/lib/X11/xserver


All times are GMT -5. The time now is 10:26 PM.