⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linux-x-remote.html

📁 Linus guide, Linus guide, Linus guide,
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><TITLE>Josh's Linux Guide - Remote X</TITLE></HEAD><LINK REL="stylesheet" TYPE="text/css" HREF="default.css"><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#7F007F"><H2><A NAME="0">Remote X</A></H2><FONT SIZE="-1"><B>Created May 28, 1998</B></FONT><BR><FONT SIZE="-1"><B>Last updated June 18, 2000</B></FONT><BR><FONT SIZE="-1"><B>Development stage: Alpha</B></FONT><H3><A NAME="1">Summary:</A></H3><OL><LI>Set DISPLAY variable (<TT>set DISPLAY=&quot;some.host:0&quot;</TT>)</LI><LI>Allow hosts to connect to your X server (<TT>xhost +other.host.com</TT>)</LI><LI>Start up a font server on the server side by typing <B>xfs &amp;</B>.</LI><LI>If you need to, set the address of the font server on the client side.</LI><LI>On a terminal (telnet, ssh, rsh) on the remote host, type in the name of the program you want to run (gimp, netscape, and xv are a few).</LI></OL><P>This page is going to help you run X programs on another computer,but display it on your X session. This is especially helpful if youhave a slow machine on your LAN or want to display X applications on aWindows machine.</P><P>I've been bugged and bugged and bugged by people who cry out aboutthe security problems with this, from problems with xhost to lack ofencryption--but note that this is intended for a home network. I willtry to point out what you should do if you are very concerned aboutsecurity even in a home environment.</P><H3><A NAME="2">Client Side (X Server Side) Configuration</A></H3><P>On your client side (the computer you want to display and use theprogram) you need something that allows the display of X programs. Ona Linux/Unix machine you'll probably just need to have something likeXFree86 or MetroX; any standard X server will do, as long as itdisplays and starts up fine on your computer. If it's a Windowsmachine, you need to download an X server. Two that I know of are <AHREF="http://www.starnet.com/docs/xwin32.html"TARGET="_top">XWin32</A> and <AHREF="http://www.microimages.com/freestuf/mix/download.htm"TARGET="_top">MI/X</A>. You can look for more at <AHREF="http://www.tucows.com">Tucows</A>, under server daemons, Ithink.</P><P>You should allow connections from the server side so that theprograms can display. If you're using Unix/Linux on the client side,that can be done by typing <B>xhost +server.side</B>, to allow thehostname &quot;server.side&quot; to connect. You'll probably need tochange the hostname to whatever the hostname of your Linux boxis. With <A HREF="http://www.ssh.fi/">ssh</A> you can justconnect to the server and type the name of the program <B>without</B>setting xhost or $DISPLAY.  I <I>think</I> it works by exporting theDISPLAY variable and automatically setting xhost to allow applicationsto be run from the server side. If $DISPLAY isn't set on the clientside, I don't think it will be exported to the server side so thatapplications display on your screen. Thanks to <AHREF="http://www.clarkson.edu/~cohentl/">Todd Cohen</A> for pointingthis out. If anyone can provide more information on this please <AHREF="mailto:jgo@local.net">let me know</A>.</P><P>If you're using XWin32 you need to set <I>Options -> XHost</I> tothe IP address of the machine with the X applications in XUtil32. WithMI/X I don't recall having to set the host but my memory isn'tfresh.</P><H4><A NAME="3">Font Setup</A></H4><P>If the fonts that came with your X server don't work or you want touse the server side fonts, then set the font server to be the hostnameof the server on port 7100. In XWin32 it's in XUtil32's <I>Fonts ->Path</I> dialog box; click on &quot;Add Font Server&quot; and in placeof &quot;xfs&quot; use the hostname or IP address of the fontserver. For me I had the font server point to 192.168.0.1 on port7100. If you're using a Linux/Unix box as your client, I'm not surebut I think you can use the command line <B>xset +fp192.168.0.1:7100</B>, if 192.168.0.1 is the font server. If thatcommand works for anybody, <A HREF="mailto:jgo@local.net">letme know</A>.</P><P>A font server must be running on the server side. Read on to findout how to start it up.</P><P><A HREF="mailto:jgo@local.net">Let me know</A> if you findsomething useful to add to the information here.</P><H3><A NAME="4">Server Side Configuration</A></H3><P>While on the server side (the machine that has the programs that youwant to run), set and export the $DISPLAY variable by typing <B>exportDISPLAY=&quot;client.side:0&quot;</B>. You can get into the server machineusing telnet, rsh, or ssh.</P><P>If you're using a shell other than &quot;bash&quot; on the server side,set the variable accordingly. Most standard Linux distributions now use&quot;bash&quot;.</P><H4><A NAME="5">Fonts</A></H4><P>To have the fonts that are on your X server be used on the client side,you should start up a program called <B>xfs</B> as root. That's the X fontserver.</P><P>To have the X font server started up everytime you boot up your system,just put the path to the <B>xfs</B> executable in<TT>/etc/rc.d/rc.local</TT>. On my system, <B>xfs</B> is in<TT>/usr/X11R6/bin/xfs</TT>, so I have the line &quot;/usr/X11R6/bin/xfs&amp;&quot; in <TT>/etc/rc.d/rc.local</TT>. The ampersand(&quot;&amp;&quot;) makes it a background process so that it doesn't tieup the server side by running in the foreground and preventing other tasksfrom being done.</P><H3><A NAME="6">Running the Program</A></H3><P>After the client and server side setup, you should be able to run anyprogram for X. You can try programs such as &quot;xv&quot;,&quot;xbill&quot;, or &quot;netscape&quot;. They should run and display onthe client side.</P><H3><A NAME="7">Author's Notes</A></H3><P>Running remote X sessions through a standard dialup connection to theInternet is very slow. It will still work, but it's just way too slow.</P><P>MI/X seems to have trouble with fonts on my brother's Windows 95system. It is missing some fonts that are commonly used, so&quot;xgalaga&quot; and &quot;gimp&quot; (as well as other Gtk+applications) won't run. Instead, I just use XWin32, although that takes awhile to start up and is crippleware (2 hour session limit). You alsocan't use it on more than one machine (node) on your network at the sametime.</P><P>When saving files, you have to save them on the server side.</P><H3><A NAME="8">Related Pages</A></H3><UL><LI><A HREF="linux-X-config.html">Configuring and Troubleshooting X</A></LI><LI><A HREF="linux-X-upgrade.html">Installing and Upgrading X</A></LI><LI><A HREF="linux-X-multiple.html">Running Multiple X Sessions</A></LI></UL><HR><P>Comments, questions, suggestions, complaints? Send them all to <AHREF="mailto:jgo@local.net">jgo@local.net</A> using either youre-mail client, the <A HREF="guestbook.html">guestbook</A>, or the <AHREF="help.html">help form</A>.</P><HR><P><B><FONT SIZE="-1">Copyright &copy; 1997-2000 <AHREF="mailto:jgo@local.net">Joshua Go (jgo@local.net)</A>. Allrights reserved. Permission to use, distribute, and copy this document ishereby granted. You may modify this document as long as credit to me isgiven.</FONT></B></P></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -