Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Will my OSX-VNC-Linux scheme work?

Will my OSX-VNC-Linux scheme work?
Thread Tools
Dedicated MacNNer
Join Date: Jan 2001
Status: Offline
Reply With Quote
Jun 24, 2003, 05:08 PM
 
Ok...I need to build a linux box...for various reasons i wont get in to...


I dont have enough money to buy an LCD, and a CRT monitor wont fit on my desk(really it wont).

So I was thinking of doing the following...

Buying a cheap 15" CRT (used or whatever), and using it to configure the linux box.

Then when the linux box is configured use VNC on my powerbook to control it.
That way I don't need the CRT on my desk...

I could always plug in the CRT if I need to...

Is this feasible?
Am I making sense?

M2
(Last edited by m2bored; Jun 24, 2003 at 07:46 PM. )
     
Addicted to MacNN
Join Date: Aug 2000
Location: Retired
Status: Offline
Reply With Quote
Jun 24, 2003, 05:45 PM
 
Yes, its feasible and it should work fine. I sometimes use my QNX box this way.
Power Macintosh Dual G4
SGI Indigo2 6.5.21f
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Jun 25, 2003, 05:44 AM
 
You don't even need VNC... once the Linux box is installed... monitor removed.... you can simply use ssh to access the box and configure/modify/use it.
If you need a GUI environment you can also use webmin (http://www.webmin.com).
If you want to use GUI apps on the Linux box you can run remote X sessions.

Using VNC for maintaining a local server is like using a Winnebago to cross the street.
-DU-...etc...
     
m2bored  (op)
Dedicated MacNNer
Join Date: Jan 2001
Status: Offline
Reply With Quote
Jun 25, 2003, 10:29 PM
 
I had no idea one could even run remote X-sessions...

I will look into.

Thanks for the replies.


M2
     
Dedicated MacNNer
Join Date: Nov 2002
Location: Rouge River
Status: Offline
Reply With Quote
Jun 27, 2003, 08:24 AM
 
Originally posted by m2bored:
I had no idea one could even run remote X-sessions...

I will look into.

Thanks for the replies.


M2

Couldn't be easier. You simply use ssh with the -X flag. For example, once you have X11 up and running on your mac, you load up xterm and type:

ssh -X -C username@linuxservername

And start enjoying the remote GUI goodness!

Matt
Swimming upstream since 1994.
     
Professional Poster
Join Date: Jan 2002
Location: Why do you care?
Status: Offline
Reply With Quote
Jun 27, 2003, 02:02 PM
 
Originally posted by pimephalis:
Couldn't be easier. You simply use ssh with the -X flag. For example, once you have X11 up and running on your mac, you load up xterm and type:

ssh -X -C username@linuxservername

And start enjoying the remote GUI goodness!

Matt
Thank you, thank you, thank you! I have been wanting to do this for a LONG time.
27" 2.8 GHz Intel Core i7 iMac
13" Late-2010 MacBookAir
     
m2bored  (op)
Dedicated MacNNer
Join Date: Jan 2001
Status: Offline
Reply With Quote
Jun 27, 2003, 06:27 PM
 
Originally posted by pimephalis:
Couldn't be easier. You simply use ssh with the -X flag. For example, once you have X11 up and running on your mac, you load up xterm and type:

ssh -X -C username@linuxservername

And start enjoying the remote GUI goodness!

Matt
wow...lol I didn't know it was that easy...
So it will just be inside the terminal window?

So what's the point of VNC?...this seems much easier.


Thanks,

M2
     
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Jun 28, 2003, 08:47 AM
 
Being able to "sit" in front of your display, 1000 miles away is still a great thing (VNC). I do 90% of my remote work over ssh, but for that last 10% its great to pul up my full desktop, and pretend to be sitting at home.

Mike
     
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Jun 28, 2003, 10:37 AM
 
Originally posted by m2bored:
wow...lol I didn't know it was that easy...
So it will just be inside the terminal window?

So what's the point of VNC?...this seems much easier.
No. When you are sitting at, say, the Mac X-windows must be running on the Mac... then you open an X-terminal (I think one opens by default when you start X on the Mac)... then in the terminal you type:

ssh -X userid@IP.of.linuxbox

the -X is for X11 forwarding and you don't need the -C switch on a local 10Mbit/s or better LAN. The -C switch is useful over a dial-up modem connection and makes it compress everything at both ends. On a LAN -C can actually slow things down.

OK... so now you have a terminal ssh session open to the Linux box... your X-terminal app on the Mac OS X box will look exactly the same as it did before except the prompt will probably be different. You will NOT see the Linux desktop within that terminal... all you will see is the prompt. Then at the prompt you can type the command to start some sort of Linux-X-Windows GUI app... like this:

xcalc

and a separate application window will open as the simple calculator xcalc... only as big as it needs to be... you can stretch it and click in it and use the numeric keypad. It will behave exactly as if you were running it locally.

There is no need to stuff the entire X-windows desktop over the network to be displayed all scrunched up within a window on your Mac OS X desktop. To do so would be very inefficient. You only need to stuff the window the application is actually running in.

If you want to run more than one X-windows app at a time via the ssh session you do something like this:

xcalc &
xeyes &
mozilla &

and so on. When you run something like mozilla and click on the mozilla-mail button in mozilla it will automatically open the mozilla-mail client in a separate window.

X-windows was designed with these capabilities from the ground up about 19 years ago. Its roots are from Project Athena at MIT. The X in the X-windows logo is the same as the Xerox X logo to show where the idea came from.

The advantage to VNC over X is that VNC is truly cross platform... while X requires that both machines be capable of running X or X applications.
Note: On the server side (in this case your Linux box) X does NOT have to be running... it doesn't even need a full installation of X... on the client side (your Mac OS X box) something capable of displaying X applications must be running.
VNC only requires a small VNC server and a very small VNC client (often less than 200K). I can use VNC to display and use Mac OS 9 apps on my Linux box or vice versa. I can use VNC to display and use Wintel apps on my Linux or Mac boxes (or vice versa).

The advantage of X over VNC is that it is much more efficient over the network than VNC (requires less bandwidth). Because of this one can have devices called X-terminals (a piece of hardware) that have NO disk and just enough processing power and RAM to run the display and networking (AKA "thin client")... all the number crunching is done on the server side. The actual applications run/exist on the server. The advantages of this kind of setup are tremendous in a corporate or classroom environment for cost (VERY cheap clients) and maintenance (no moving parts in the clients and software updates only have to be done in one place) and administration.

For more info see:
http://www.uk.research.att.com/vnc/
-DU-...etc...
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:04 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2