发信人: autoclave (五花肉), 信区: Linux 标 题: x11 forward 发信站: BBS 未名空间站 (Fri May 16 16:19:57 2008) 我有个问题, 现在用着windows,在学校里,没有vpn进不来。 我在windows上装了 cygwin/X. 家里有个linux在router后面。家里的linux得ssh_config已经设置了ForwardX11 yes. 我在windows得cygwin/X里的xterm里ssh家里的linux,怎么运行./opera告诉我找不到 DISPLAY? 不是应该自动forward到我现在的cygwin/Xserver吗? -- ※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 128.230.]
发信人: magicfat (魔法胖子), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 16:46:52 2008) ssh_config or sshd_config? Also you did "ssh -X", did you? -- ※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 205.143.]
发信人: autoclave (五花肉), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 16:49:09 2008) in linux box, it is ssh_config, should I modify sshd? I didn't do ssh -X, :), will do it. 【 在 magicfat (魔法胖子) 的大作中提到: 】 : ssh_config or sshd_config? : Also you did "ssh -X", did you? -- ※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 128.230.]
发信人: autoclave (五花肉), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 16:55:58 2008) I modifed ssh_config: ForwardX11 yes Modifed sshd_config: X11Forwarding yes then restart sshd in linux box. then from windows cygwin/X, ssh -X linuxbox, ./opera still tells me "can't connect to X server"......... >>I forgot to mention, windows box is on campus, need vpn if i want to access, I don't know if this has anyting to do. 【 在 magicfat (魔法胖子) 的大作中提到: 】 : ssh_config or sshd_config? : Also you did "ssh -X", did you? -- ※ 修改:·autoclave 於 May 16 16:57:09 2008 修改本文·[FROM: 128.230.]
发信人: magicfat (魔法胖子), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 17:04:27 2008) 【 在 autoclave (五花肉) 的大作中提到: 】 : I modifed ssh_config: : ForwardX11 yes : Modifed sshd_config: : X11Forwarding yes : then restart sshd in linux box. : then from windows cygwin/X, ssh -X linuxbox, : ./opera still tells me "can't connect to X server"......... : >>I forgot to mention, windows box is on campus, need vpn if i want : to access, I don't know if this has anyting to do. Might be the case... maybe you need a different ip or something set in your $DISPLAY. What's in $DISPLAY now after "ssh -X"? -- ※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 205.143.]
发信人: magicfat (魔法胖子), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 17:05:47 2008) Oh another thing you might want to try is use xming instead of cygwin/X. I have always had problems with getting cygwin/X to work, but never with xming. 【 在 autoclave (五花肉) 的大作中提到: 】 : I modifed ssh_config: : ForwardX11 yes : Modifed sshd_config: : X11Forwarding yes : then restart sshd in linux box. : then from windows cygwin/X, ssh -X linuxbox, : ./opera still tells me "can't connect to X server"......... : >>I forgot to mention, windows box is on campus, need vpn if i want to access, I don't know if this has anyting to do. -- ※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 205.143.]
发信人: autoclave (五花肉), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 17:07:16 2008) the $DISPLAY is empty after ssh -X. Actually this windows box is also connected back through vpn, so one of its ip is internal ip 192.168.2.2. Is there anything I can do to bypass that campus vpn thing? 【 在 magicfat (魔法胖子) 的大作中提到: 】 : Might be the case... maybe you need a different ip or something set in your : $DISPLAY. What's in $DISPLAY now after "ssh -X"? -- ※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 128.230.]
发信人: magicfat (魔法胖子), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 17:20:32 2008) 【 在 autoclave (五花肉) 的大作中提到: 】 : the $DISPLAY is empty after ssh -X. Try manually set it to "localhost:10.0" or something. Or try xming like I said. It takes care of all this crap for you. 8-) : Actually this windows box is also connected back through vpn, so one of its : ip is internal ip 192.168.2.2. Is there anything I can do to bypass that : campus vpn thing? -- ※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 205.143.]
发信人: theds (tds), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 17:34:34 2008), 转信 r u sure you're running xwin under cygwin? and how about ssh -Y? 【 在 autoclave (五花肉) 的大作中提到: 】 : 我有个问题, : 现在用着windows,在学校里,没有vpn进不来。 : 我在windows上装了 cygwin/X. : 家里有个linux在router后面。家里的linux得ssh_config已经设置了ForwardX11 yes. : 我在windows得cygwin/X里的xterm里ssh家里的linux,怎么运行./opera告诉我找不到 : DISPLAY? : 不是应该自动forward到我现在的cygwin/Xserver吗? -- ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 69.26.]
发信人: suan (cc), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 17:44:01 2008), 转信 use nx. it's faster, and it takes care of this forwarding for you. 【 在 autoclave (五花肉) 的大作中提到: 】 : 我有个问题, : 现在用着windows,在学校里,没有vpn进不来。 : 我在windows上装了 cygwin/X. : 家里有个linux在router后面。家里的linux得ssh_config已经设置了ForwardX11 yes. : 我在windows得cygwin/X里的xterm里ssh家里的linux,怎么运行./opera告诉我找不到 : DISPLAY? : 不是应该自动forward到我现在的cygwin/Xserver吗? -- ※ 修改:·suan 于 May 16 17:44:09 修改本文·[FROM: 71.107.] ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 71.107.]
发信人: autoclave (五花肉), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 18:10:47 2008), 转信 好些软件windows是不让装的,因为我不是管理员,比如exceed,xwin32。。。 这个cygwin/X我启动的时候好像还告诉我windows把啥啥給block了,只有管理员能 unblock。 回头试试xming. 【 在 magicfat (魔法胖子) 的大作中提到: 】 : Oh another thing you might want to try is use xming instead of cygwin/X. I : have always had problems with getting cygwin/X to work, but never with xming. : access, I don't know if this has anyting to do. -- ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 69.202.]
发信人: autoclave (五花肉), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 18:14:06 2008), 转信 nx要在linux上装xserver吧,我不像增加服务器负担。不装任何xwindows的东西。 其实我要作的也很简单,因为linux是ehternet连到router上,所以如果我的wireless 被我调坏了(比如昨天改成了wep key的死活不给我分ip,怪异),我可以从别的地方 ssh到linux上运行个firefox或opera到http://192.168.1.1去改改。 【 在 suan (cc) 的大作中提到: 】 : use nx. : it's faster, and it takes care of this forwarding for you. -- ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 69.202.]
发信人: suan (cc), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 18:19:58 2008), 转信 【 在 autoclave (五花肉) 的大作中提到: 】 : nx要在linux上装xserver吧,我不像增加服务器负担。不装任何xwindows的东西。 : 其实我要作的也很简单,因为linux是ehternet连到router上,所以如果我的 wireless : 被我调坏了(比如昨天改成了wep key的死活不给我分ip,怪异),我可以从别的地方 : ssh到linux上运行个firefox或opera到http://192.168.1.1去改改。 没看明白。 -- ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 71.107.]
发信人: qiuxing (球星), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 20:16:47 2008), 转信 elinks一般就够了,用不着起X。不过你那个case的确不应该,和vpn是没多少 关系的,肯定还是哪里有问题。试试看ssh -Y, 手动设置DISPLAY等等。 【 在 autoclave (五花肉) 的大作中提到: 】 : nx要在linux上装xserver吧,我不像增加服务器负担。不装任何xwindows的东西。 : 其实我要作的也很简单,因为linux是ehternet连到router上,所以如果我的 wireless : 被我调坏了(比如昨天改成了wep key的死活不给我分ip,怪异),我可以从别的地方 : ssh到linux上运行个firefox或opera到http://192.168.1.1去改改。 -- ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 128.151.]
发信人: DreamDreams (梦回吹角联营), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 20:48:25 2008), 转信 Use NX, perfect for you. No more ssh config. Linux server and windows client are both free 【 在 autoclave (五花肉) 的大作中提到: 】 : 我有个问题, : 现在用着windows,在学校里,没有vpn进不来。 : 我在windows上装了 cygwin/X. : 家里有个linux在router后面。家里的linux得ssh_config已经设置了ForwardX11 yes. : 我在windows得cygwin/X里的xterm里ssh家里的linux,怎么运行./opera告诉我找不到 : DISPLAY? : 不是应该自动forward到我现在的cygwin/Xserver吗? -- 不需要回头 ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 96.233.]
发信人: DreamDreams (梦回吹角联营), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 20:49:07 2008), 转信 不装X的东西你以为就能跑X的程序了? 【 在 autoclave (五花肉) 的大作中提到: 】 : 标 题: Re: x11 forward : 发信站: BBS 未名空间站 (Fri May 16 18:14:06 2008), 转信 : : nx要在linux上装xserver吧,我不像增加服务器负担。不装任何xwindows的东西。 : : 其实我要作的也很简单,因为linux是ehternet连到router上,所以如果我的 wireless : 被我调坏了(比如昨天改成了wep key的死活不给我分ip,怪异),我可以从别的地方 : ssh到linux上运行个firefox或opera到http://192.168.1.1去改改。 : : : 【 在 suan (cc) 的大作中提到: 】 : : use nx. : : it's faster, and it takes care of this forwarding for you. : : : : -- : : ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 69.202.] -- 不需要回头 ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 96.233.]
发信人: blackmars (blackmars), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 21:24:36 2008) CSH SETENV DISPLAY (LOCALIP):0.0 -- ※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 71.230.]
发信人: autoclave (五花肉), 信区: Linux 标 题: Re: x11 forward 发信站: BBS 未名空间站 (Fri May 16 23:10:52 2008), 转信 正在编译elinks,不成。elinks不支持jscript,一般netgear的router设置网页都是 javascript的。。 我看对x11 forwording的Xserver端也有设置,好像是 sshd_config里 allowX11forwarding yes. 但是我在cygwin/X里面每找到这个sshd_config,没有/etc目录就。 我装的是openssh-server/client. 【 在 qiuxing (球星) 的大作中提到: 】 : elinks一般就够了,用不着起X。不过你那个case的确不应该,和vpn是没多少 : 关系的,肯定还是哪里有问题。试试看ssh -Y, 手动设置DISPLAY等等。 : wireless -- ※ 修改:·autoclave 于 May 16 23:15:26 修改本文·[FROM: 69.202.] ※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 69.202.]