LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-24-2004, 06:11 PM   #1
enzominator
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
TightVNC


I'm pretty much BRAND new to Linux - I installed Mandrake 10 and as part of that I installed TightVNC. I hope after this question is answered I'll be busy learning linux and won't be asking a question everyday....

I'm used to haveing a VNC server control panel and a VNC Viewer Aplication... it seems that all I have is a TightVNV icon in linux.

When I click it I get a shell (looks like dos to me) - And an 'X' window that is titled ServerDialog

No matter what I put in that box I get a response of: Konsole Shell Exited with a status of 1

I guess this is as good a time as any to ask another question - MAN pages - Are they really that painful to read? or am I missing some application that runs them? they certainly apear to contain some kind of formating info but they always just come up in a notepad type app.

Is there somewhere I can go to learn about VNC in Linux? this first step is pretty crucial to me as I'd like to be able to VNC into my Linux box as well as VNC to windows boxes from my linux box...
 
Old 07-25-2004, 06:41 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
IIRC you have to put the IP address of the remote box in that little dialog box. With VNC the remote box you want to run on your box is the "server" and you are the "client". You can use the regular VNC settings window to set everything up for TightVNC with mandrake and then just put in the IP of the remote box when you run Tight VNC. You should be prompted for your password that you set up in VNC after you enter the IP then you should be home free.
 
Old 07-25-2004, 07:18 AM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
You don't open man pages with a text editor.

Open a command prompt and type "man foo" or whatever you want the manpage for.

I believe there is also a program (xman) which will display the pages in X for you.
 
Old 07-25-2004, 12:02 PM   #4
enzominator
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by kilgoretrout
IIRC you have to put the IP address of the remote box in that little dialog box. With VNC the remote box you want to run on your box is the "server" and you are the "client". You can use the regular VNC settings window to set everything up for TightVNC with mandrake and then just put in the IP of the remote box when you run Tight VNC. You should be prompted for your password that you set up in VNC after you enter the IP then you should be home free.
OK got it halfway working - I was trying to put in my machine name- not the IP, put in the IP and it 'works'

Oh and can't use the number pad enter button.

Linux can't broadcast for a machine name? - or it's not setup that way by default?

Second half - I'd like to VNC *into* my linux box - but I can't seem to find the server portion of VNC?

Thanks for the help!
 
Old 07-25-2004, 12:02 PM   #5
enzominator
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by frob23
You don't open man pages with a text editor.

Open a command prompt and type "man foo" or whatever you want the manpage for.

I believe there is also a program (xman) which will display the pages in X for you.
Yeah there... that's better! let the learning begin!
 
Old 07-25-2004, 12:17 PM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Quote:

Linux can't broadcast for a machine name? - or it's not setup that way by default?

You need to run nmbd ( a component of Samba) in order to get Linux to respond to netbios name resolution broadcasts.
Alternatively you can use the hosts/lmhosts file in Windows.
Quote:

Second half - I'd like to VNC *into* my linux box - but I can't seem to find the server portion of VNC?

you need to launch it using the command line, eg
Code:
vncserver :1

Last edited by Demonbane; 07-25-2004 at 12:19 PM.
 
Old 08-25-2004, 01:25 PM   #7
bhtooefr
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 10.0 Community
Posts: 19

Rep: Reputation: 0
I'm not exactly a Linux n00b (however, I have a LOT to learn), but I'm going to bump this, and ask a question. I'm using Mandrake 10 Community, and I try to run that vncserver script, but there's one thing that I HATE about it. I can't elect to run a different WM (say, IceWM or Fluxbox - I think some people that would prefer Ice will be using it, but I use Flux) than KDE. This box is WAY too old to run KDE (I've tried - it's an old P233MMX, with 96MB RAM). FWIW, here's my ~/.vnc/xstartup:
Code:
#!/bin/sh

# Mandrake Linux VNC session startup script
exec /etc/X11/xinit/xinitrc
/etc/X11/xinit/xinitrc:
Code:
#!/bin/sh
# (c) 2000-2002 MandrakeSoft
# $Id: xinitrc-xinitrc,v 1.2 2002/09/10 05:53:43 flepied Exp $

# Set a background here because it's not done anymore
# in Xsesion for non root users
if [ "`whoami`" != root ]; then
    xsetroot -solid "#21449C"
fi

exec /etc/X11/Xsession $*
/etc/X11/Xsession:
Code:
#!/bin/sh
# Modification for Mandrake Linux by Chmouel Boudjnah <chmouel@mandraksoft.com>
#
# $Id: Xsession,v 1.44 2004/02/05 10:48:48 flepied Exp $

# read the user (~/.i18n) or system-wide (/etc/sysconfig/i18n) i18n settings
. /etc/profile.d/10lang.sh

if [ -z "$GDMSESSION" ]; then
    # redirect errors to a file in user's home directory if we can
    for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
	do
	if ( cp /dev/null "$errfile" 2> /dev/null )
	    then
	    chmod 600 "$errfile"
	    exec > "$errfile" 2>&1
	    break
	fi
    done
fi

# Mandrake default background
if [ "`whoami`" = root ]; then
    xsetroot -solid "#B20003"
    IS_ROOT=1
else
    IS_ROOT=
    # Load the color only when not called from gdm/kdm
    if [ -z "$1" ]; then
	xsetroot -solid "#21449C"
    fi
fi

xsetroot -cursor_name watch

AGENT=$(type -p ssh-agent)
if [ -x "$AGENT" -a -z "$SSH_AUTH_SOCK" ]; then
    if [ -r $HOME/.ssh/identity -o -r $HOME/.ssh2/identification -o -r $HOME/.ssh/id_dsa -o -r $HOME/.ssh/id_rsa ]; then
	SSH_AGENT="$AGENT --"
    fi
fi    

# clean up after xbanner
if [ -f /usr/X11R6/bin/freetemp ]; then
    freetemp
fi

userresources=$HOME/.Xresources 
userresources2=$HOME/.Xdefaults
sysresources=/etc/X11/Xresources 

# merge in defaults and keymaps 
if [ -f $sysresources ]; then 
    xrdb -merge $sysresources 
fi 
 
if [ -f $userresources ]; then 
    xrdb -merge $userresources 
fi 

if [ -f $userresources2 ]; then 
    xrdb -merge $userresources2
fi 

if [ -x /etc/X11/xinit/fixkeyboard ]; then
    /etc/X11/xinit/fixkeyboard
fi

if [ -z "$BROWSER" ] ; then
	# we need to find a browser on this system
	BROWSER=`which mozilla 2> /dev/null`
	if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
	# not found yet
		BROWSER=
	fi
fi

if [ -z "$BROWSER" ] ; then
	# we need to find a browser on this system
	BROWSER=`which netscape 2> /dev/null`
	if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
	# not found yet
		BROWSER=
	fi
fi

if [ -z "$BROWSER" ] ; then
	# we need to find a browser on this system
	BROWSER=`which lynx 2> /dev/null`
	if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
	# not found yet
		BROWSER=
	else
		BROWSER="xvt -e lynx"
	fi
fi
export BROWSER

export HELP_BROWSER="$BROWSER"

# now, we see if xdm/gdm/kdm has asked for a specific environment
if [ $# = 1 ]; then
    DESKTOP=$1
else
    # use default DESKTOP from config file
    # users may want to choose their own desktop
    # even when x-session is started by startx command.
    # -- Jaegeum --
    if [ -f $HOME/.desktop ]; then
        . $HOME/.desktop >/dev/null 2>&1
    elif [ -f /etc/sysconfig/desktop ]; then
	. /etc/sysconfig/desktop >/dev/null 2>&1
    fi
fi

# fix .qtrc for Japanese
if [ "$LANG" = ja_JP ]; then
    [ ! -d $HOME/.qt ] && mkdir $HOME/.qt

    if [ ! -r $HOME/.qt/qtrc ] || ! grep -q '[General]' $HOME/.qt/qtrc; then
	cat >> $HOME/.qt/qtrc <<EOF
[General]
XIMInputStyle=Over The Spot
EOF
    elif ! grep -q XIMInputStyle $HOME/.qt/qtrc; then
	rm -f $HOME/.qt/qtrc.$$
	sed "s/\[General\]/[General]\nXIMInputStyle=Over The Spot/" < $HOME/.qt/qtrc > $HOME/.qt/qtrc.$$
	mv -f $HOME/.qt/qtrc.$$ $HOME/.qt/qtrc
    fi
fi

### Launch an XIM input server if needed
# it must be after definition of DESKTOP variable; but before any
# program that may want user input
if [ -x /etc/X11/xinit/XIM ]; then
    . /etc/X11/xinit/XIM
fi

### Launch first time wizard if needed
if [ -z "$IS_ROOT" -a ! -e $HOME/.drakfw ] && type drakfw > /dev/null 2>&1 && touch $HOME/.drakfw > /dev/null 2>&1; then
    if [ -x /etc/X11/xinit.d/numlock ]; then
	/etc/X11/xinit.d/numlock
    fi
    xsetroot -cursor_name left_ptr
    exec $SSH_AGENT drakfw
fi

# run scripts in /etc/X11/xinit.d
for i in /etc/X11/xinit.d/* ; do
    [ -d $i ] && continue
    # Don't run ??foo.{rpmsave,rpmorig,rpmnew,~} scripts
    [ "${i%.rpmsave}" != "${i}" ] && continue
    [ "${i%.rpmorig}" != "${i}" ] && continue
    [ "${i%.rpmnew}" != "${i}" ] && continue
    [ "${i%\~}" != "${i}" ] && continue

    if [ -x $i ]; then
	if [ "${DESKTOP}" = default ]; then
	    SESSION=$(/usr/sbin/chksession -F)
	else
	    SESSION=${DESKTOP}
	fi
	if grep -q "# to be sourced" $i; then
	    . $i "${SESSION}"
	else
	    $i "${SESSION}" &
	fi
    fi
done

if [ -n "$DESKTOP" ]; then
    case $DESKTOP in
    	failsafe)
        xsetroot -cursor_name left_ptr
	type -p rxvt > /dev/null >& 2 && exec $SSH_AGENT rxvt -geometry 80x24-0-0
	type -p xterm > /dev/null >& 2 && exec $SSH_AGENT xterm -geometry 80x24-0-0
	type -p xvt > /dev/null >& 2 && exec $SSH_AGENT xvt
	type -p twm > /dev/null >& 2 && exec $SSH_AGENT twm
	;;
	default)
	;;
	*)
	if type -p "$DESKTOP" > /dev/null; then
	    exec $SSH_AGENT /bin/sh -c "$DESKTOP"
	else
	    exec $SSH_AGENT /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
	fi
	;;
    esac
fi

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
        xsetroot -cursor_name left_ptr
	exec $SSH_AGENT "$HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
        xsetroot -cursor_name left_ptr
	exec $SSH_AGENT "$HOME/.Xclients"
fi

# We may try with chksession
if [ -x /usr/sbin/chksession ];then
#get the first available
	SESSION=$(/usr/sbin/chksession -F)
	[ -n "$SESSION" -a "$SESSION" != Default ] && exec $SSH_AGENT sh -c "$(/usr/sbin/chksession -x=$SESSION)"
fi

# Argh! Nothing good is installed. Fall back to icewm
if [ -x /usr/X11R6/bin/icewm ];then
	exec $SSH_AGENT /usr/X11R6/bin/icewm
else
	# gosh, neither icewm is available; 
	# fall back to failsafe settings
        xsetroot -cursor_name left_ptr
	xclock -geometry 100x100-5+5 &
	xvt -geometry +0+50 &
	if [ -x "$BROWSER" -a -f /usr/doc/HTML/index.html ]; then
	    $BROWSER /usr/share/doc/HTML/index.html &
	fi
	if [ -x /usr/X11R6/bin/icewm-light ];then
	    exec $SSH_AGENT icewm-light
	elif [ -x /usr/X11R6/bin/twm ];then
	    exec $SSH_AGENT twm
	else
	    exec $SSH_AGENT xsm
	fi
fi
 
  


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
tightvnc help greenmeanie Mandriva 5 12-12-2004 11:01 AM
Help with TightVNC McKnight Linux - Newbie 6 06-25-2004 01:30 PM
tightvnc+X tsitras Linux - Software 2 03-24-2004 04:23 PM
Tightvnc len Linux - Software 11 06-24-2003 04:31 PM
TightVNC jeffer Linux - Software 1 05-22-2003 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:24 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