Click to See Complete Forum and Search --> : Like pc-anywhere


yogee
12-16-2000, 02:06 PM
How can i get to my linux network server in a pc-anywhere type interface so i can edit as if i was doing on the box itself?

cs25x
12-16-2000, 02:19 PM
Choices i can think of:
telnet into your server and then use mc.
you need an account on your server to do this, and telnetd has to be running, you might have to edit your server's /etc/inittab

Use nfs and an entry in your fstab to mount your server's / or some other part of the tree.
connect with minicom, never tried it myself.

Some people wont like some of this from security aspect.

0000000000000000000000000000000000

Strike
12-16-2000, 03:08 PM
I'd recommend using ssh to log in remotely, for a secure connection. And if you NEED a GUI, then just use a remote X session (you can search these forums fo phrases like "X forwarding", "remote X session", and come up with plenty). Of course, this requires that you be running an X server on the machine you are sitting at, and there's not a good free one that I've found for Win32. But, obviously, there is for Linux.

Another alternative is to use VNC if you need a graphical environment.

mdwatts
12-17-2000, 02:16 AM
If you are going from Linux to Linux then try this command.

Xnest :1 -query xxx.xxx.xxx.xxx &

Replace with the ip address of the Xserver you want to connect to.

Or if you want Win32 and other platform support then try VNC. Do a search for it at freshmeat.net

ph34r
12-17-2000, 01:52 PM
Yah, either setup ssh/sshd and do console only OR export your X session (listing of win32 Xservers at www.tucows.com) (http://www.tucows.com)) or get VNC.

twist
12-17-2000, 01:54 PM
Funny no one mentioned VNC. Just like pcanywhere. Remote X sessions, from what I've heard, can be a burden on a slow network link.

Check out VNC, it's pretty darn cool:
http://www.uk.research.att.com/vnc/

Linux and win32 clients.

yogee
12-17-2000, 02:05 PM
Originally posted by twist:
Funny no one mentioned VNC. Just like pcanywhere. Remote X sessions, from what I've heard, can be a burden on a slow network link.

Check out VNC, it's pretty darn cool:
http://www.uk.research.att.com/vnc/

Linux and win32 clients.

Yes ive checked this out and it looks great but i am so clueless on how it is installed. I has instructions for windows but linux instalation seems to be missing or better yet im missing it.

twist
12-17-2000, 02:10 PM
Well, to be honest, I've never tried the Linux version. I sometimes use the win32 version at work.. but never had the need to run the linux version here at home, I just know that it exists.

Is there a README or an INSTALL file in the directory holding the downloaded files?

yogee
12-17-2000, 02:19 PM
VNC 3.3.3r2 Binary Distribution for Unix platforms
==================================================

VNC is Copyright (C) AT&T Laboratories Cambridge. All Rights Reserved.
This software is distributed under the GNU General Public Licence as published
by the Free Software Foundation. See the file LICENCE.TXT for the conditions
under which this software is made available. VNC also contains code from other
sources. See the Acknowledgements section below, and the individual files for
details of the conditions under which they are made available.


There are five programs here:

vncviewer - this is the VNC viewer, or client, program for X.

vncserver - this is a wrapper script which makes starting an X VNC
server (i.e. desktop) more convenient. It is written in
Perl, so to use the script you need that.

vncpasswd - this program allows you to change the password used to
access your X VNC desktops. The vncserver script uses
this program when you first start a VNC server.

vncconnect - this program tells a running instance of Xvnc to connect
to a listening VNC viewer (normally the connection is made
the other way round i.e. the viewer connects to Xvnc).

Xvnc - this is the X VNC server - it is both an X server and a VNC
server. You normally use the vncserver script to start Xvnc.


You should copy these programs to some directory which is in your PATH
environment variable, such as /usr/local/bin:

% cp vncviewer vncserver vncpasswd vncconnect Xvnc /usr/local/bin

If you want to use the Java VNC viewer, you should copy the class files from
the classes directory to some suitable installation directory such as
/usr/local/vnc/classes:

% mkdir -p /usr/local/vnc/classes
% cp classes/* /usr/local/vnc/classes

We recommend that you use the vncserver script to run Xvnc for you. You can
edit the script as appropriate for your site. Things you may need to change
include:

* The location of Perl - if Perl is not installed in /usr/bin you'll need
to edit the "#!/usr/bin/perl" first line of vncserver.

* $vncClasses - this specifies the location of the Java classes for
the VNC viewer applet. The default is /usr/local/vnc/classes.

* Xvnc's font path and color database. If you have an installation of
X which is not in the standard place you may need to add arguments to the
Xvnc command line to set these. These should be appended to the $cmd
variable at the comment "# Add font path and color database...".


Customising vncviewer
---------------------

The file Vncviewer contains the same resource settings as the "fallback
resources" embedded in the vncviewer executable. You don't need this file -
vncviewer will work happily without it. However, if you wish to customise
vncviewer on a particular machine, you can copy this file into
/usr/lib/X11/app-defaults (or equivalent e.g. /usr/openwin/lib/app-defaults)
and edit it as you wish. Details of the resources you can set are in the X
vncviewer documentation (http://www.uk.research.att.com/vnc/xvncviewer.html).

How X programs like vncviewer get their resources can be quite complex. See
the X window system documentation for more details if you're having trouble.

ACKNOWLEDGEMENTS

yogee
12-17-2000, 10:43 PM
HELP

mdwatts
12-18-2000, 01:46 AM
Just install vncserver on the server you want to connect to and vncviewer on the client. Just follow the install instructions. I did and it works fine although if you want to connect from Linux to Unix/Linux, then it's just as easy to use Xnest.

Strike
12-18-2000, 06:16 AM
Originally posted by twist:
Funny no one mentioned VNC.
Ha, it's funny how mdwatts, ph34r, and I all mentioned it before you, actually ... http://www.linuxnewbie.org/ubb/biggrin.gif



[This message has been edited by Strike (edited 18 December 2000).]

mdwatts
12-18-2000, 12:44 PM
You noticed that too... http://www.linuxnewbie.org/ubb/rolleyes.gif

twist
12-18-2000, 05:29 PM
hehe...

i'm a 80% reader... i read 80% of what's in front of me to get the idea...

foo on me i guess..

mdwatts
12-18-2000, 06:05 PM
Ahhhh it's Christmas, so all is forgiven http://www.linuxnewbie.org/ubb/smile.gif

yogee
12-18-2000, 07:48 PM
Originally posted by mdwatts:
Just install vncserver on the server you want to connect to and vncviewer on the client. Just follow the install instructions. I did and it works fine although if you want to connect from Linux to Unix/Linux, then it's just as easy to use Xnest.

JUST! lol, thats funny. All kidding aside, thoes directions are way beyond my capabilities. Im sure i can put the server where it says and edit for The location of perl but thats about all i understand. I would like it to run on startup too so i can take off the monitor and log through my browser.

yogee
12-19-2000, 12:52 AM
finaly i got it workingbut i get this error and i only see the grey screen with a terminal..............Bottom is the fix but need help here.

<!-- index.vnc - default html page for Java VNC viewer applet. On any file
ending in .vnc, the HTTP server embedded in Xvnc will substitute the
following variables when preceded by a dollar: USER, DESKTOP, DISPLAY,
APPLETWIDTH, APPLETHEIGHT, WIDTH, HEIGHT, PORT. Use two dollar signs
($) to get a dollar sign in the generated html. -->

<HTML>
<TITLE>
root's X desktop (ool-18bf29f8.dyn.optonline.net:1)
</TITLE>
<APPLET CODE=vncviewer.class ARCHIVE=vncviewer.jar
WIDTH=1024 HEIGHT=800>
<param name=PORT value=5901>
</APPLET>
</HTML>


I connected to my Unix VNC server and I just see a grey desktop with a cursor.

After the vncserver script has started the Xvnc server, it then runs your ~/.vnc/xstartup script. By default this will try to start the twm window manager, but if twm isn't on your path, or if you prefer something else, you can edit xstartup. The log file may also give you clues about what is happening

Could this be the problem? http://www.helixcode.com/desktop/


[This message has been edited by yogee (edited 18 December 2000).]

mdwatts
12-19-2000, 01:38 AM
It has been a while since I installed VNC and I will not be back in the office until Wednesday. Time permitting, I will have a look at my configuration.

I just followed the procedures from the website and also from a couple of posts here on VNC.

mdwatts
12-19-2000, 01:39 AM
IF you are just connecting from Xserver to Xserver (Unix/Linux), then why not try Xnest as I mentioned earlier. Works perfectly...

yogee
12-21-2000, 08:10 PM
Reinstalled redhat last night and i still just get a grey screen with a terminal window.
Will any other info be needed? I realy need to get this going. It sux workin on it in 640x480. Had a 100 dpi fonts error but with reinstall i took care of that. Any ideas?

21/12/00 06:44:19 Xvnc version 3.3.3r2
21/12/00 06:44:19 Copyright (C) AT&T Laboratories Cambridge.
21/12/00 06:44:19 All Rights Reserved.
21/12/00 06:44:19 See http://www.uk.research.att.com/vnc for information on VNC
21/12/00 06:44:19 Desktop name 'X' (**********.**********:2)
21/12/00 06:44:19 Protocol version supported 3.3
21/12/00 06:44:19 Listening for VNC connections on TCP port ****
21/12/00 06:44:19 Listening for HTTP connections on TCP port ****
21/12/00 06:44:19 URL http://*******.*****:****
xrdb: No such file or directory
xrdb: can't open file '/root/.Xresources'

I have this file /etc/X11/xdm/Xresources
It also wont run on startup after i deleted the logs


[This message has been edited by yogee (edited 21 December 2000).]

mdwatts
12-22-2000, 07:22 AM
Try copying or creating the file .Xresources in your home directory or check the VNC config file and adjust the path to point to your normal Xresources.

I will try to remember to check at work today. Won't be leaving for another 45 minutes.

mdwatts
12-22-2000, 09:17 AM
Have you checked the FAQ's here http://www.uk.research.att.com/vnc/faq.html ?

They are also installed on your system.

/usr/doc/vnc-3.3.3r1/html

Nailz
12-22-2000, 09:39 AM
Give me a V !!
Give me an N !!
Give me a C !!

Sorry... got carried away. Great utility. Don't even have a monitor on my linux server at home. Just telnet into it, start vncserver and use the viewer from any of my clients (linux or windows).

------------------
$> cd /pub
$> more beer

yogee
12-22-2000, 04:51 PM
Originally posted by mdwatts:
Try copying or creating the file .Xresources in your home directory or check the VNC config file and adjust the path to point to your normal Xresources.

I will try to remember to check at work today. Won't be leaving for another 45 minutes.

Thanx for the help.
Still a no go. I have a Xresources but its no a (dot).Xresources. Makes a differance you think? And if I edit the startup file to point to anything other than what the default is (for X) VNC creats a new file with the defaults in the same directory I edited the first one in. Beyond me.....
ALSO...check this out. http://www.tridiavnc.com/install/
I got tridiaVNC installed but getting same errors.

mdwatts
12-22-2000, 05:59 PM
Lets go back to the beginning.

What exactly do you want to connect TO and FROM? Linux to Linux? Win to Linux?

Maybe we can figure out the best way to do this by the answer you give.

I'll check back later tonight or tomorrow morning.

yogee
12-22-2000, 06:12 PM
Originally posted by mdwatts:
Lets go back to the beginning.

What exactly do you want to connect TO and FROM? Linux to Linux? Win to Linux?

Maybe we can figure out the best way to do this by the answer you give.

I'll check back later tonight or tomorrow morning.

I have redhat 6.2 as network server, soon to be 7 tonight if i can get network going on it. 2 nic's in it, hub'd out to 2 windows pc's using dhcp from server to gain what they need. I would like to get VNC working on the redhat box so i can see it on the windows machine just like pc-anywhere. VNC or that other one is what will do this. If i install vnc it works but i get those errors in the log and i see a grey screen with a terminal window i can type in. Thank alot for your help and happy holidays.

yogee
12-22-2000, 09:12 PM
Well i got redhat 7 installed and serving the network. Interesting enough, VNC installs with version7 but i still get the same errors. I copied .Xresources to /home/ and its still a no go. In /root i have a .xsessions-errors file with a bunch of info. Would anyone like to see it and maybe be make some sense of it since i cant?

mdwatts
12-22-2000, 09:21 PM
Don't know if this will help or not. Follow the instructions here http://support.calderasystems.com/caldera/solution?11=001208-0011&130=0976297188&14=14&2715=&15=0&2716=&57=faq&58=&2900=e6553zBtFJ&25=6 to update your Xaccess config file that allows remote access to your Xserver. I had to uncomment the line in the config file to allow eXceed, VNC or whatever to work. Not sure how distro specific it is though.

I know that I had a few problems getting VNC to work correctly on mine, but for the life of me I cannot remember what I had to do to get it working. Seems like I just kept reading the FAQ's over and over again until I understood and finally got it to work. Mine is a little different though, I installed VNC server on my IBM/TSM test NT server as a service and then used VNC viewer on Linux or through Netscape to connect to it. Very simple this way.

I also tried VNC for Linux to Linux, but eventually used the Xnest server from Xfree86.

Anyways, let me know if you get anywhere.

yogee
12-23-2000, 03:36 AM
Thanx for all the help guys. You'll never guess what? Well i did quite a bit or reading through a search here and i guess, well i now know, i should have typed in "gnome-session". I even added it to the startup file for vnc server and all is well. I thank you all and opoligize for my stupidity. Happy holidays to you all.

mdwatts
12-23-2000, 10:41 AM
Never thought that you wouldn't have it running.

Anyways, glad to hear all is well and Best of the Season to you.