份额从笔记本电脑上网beaglebone黑色,然后通过VNC服务器访问 [英] Share the internet access from laptop to beaglebone black and then access it through VNC server

查看:347
本文介绍了份额从笔记本电脑上网beaglebone黑色,然后通过VNC服务器访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的笔记本电脑beaglebone黑共享上网。这里是我试过至今 -

I am trying to share the internet with the beaglebone black from my laptop. Here is what I tried till now-


  1. 我连beaglebone黑到我的笔记本电脑上运行,通过USB连接线的Windows 8。于是,我去了网络和共享中心。然后,我想分享的网络,我与Beaglebone(它说本地连接)分享。现在,我到beaglebone的盖特瓦SSH,写了 - 平www.google.com。但它说:未知主机。

  1. I connected beaglebone black to my laptop running windows 8 via USB cable. Then, I went to network and sharing center. Then, the network which I want to share, I shared it with the Beaglebone(It says Local Area Connection). Now, I went to the Gate one SSH on beaglebone and wrote - "ping www.google.com". But it said "Unknown Host".

现在,因为上面没有制定出来,连接了beaglebone黑色与标准以太网电缆,并试图再次分享我的网络,但管理单元,它没有再工作。

Now, since the above didn't worked out, I connected the beaglebone black with the standard ethernet cable and again tried sharing my network, but snap, it didn't worked again.

下面是我试图做 -
如果我能够连接到互联网,我想成立VNC服务器,并通过我想要加载Linux的GUI我的笔记本电脑。

Here is what I am trying to do- If I am able to connect to internet, I want to set up VNC server and through that I want to load the GUI of linux on my laptop.

任何帮助将大大AP preciated。如果有任何其他的方法来做到这一点,请告诉我这件事。我已经试过大多数互联网上的教程,但没成功。

Any help will be greatly appreciated. If there is any other method to accomplish this, please tell me about it. I have tried most of the tutorial on internet, but didn't succeed.

感谢您。

推荐答案

下面是详细的答案,长长的等待后,我终于想通了如何在BBB共享网络连接。这个问题是被人看到至少10次每天等我,虽然我要我自己的回答。 (还这么给了我这个问题的人气徽章!)

Here is the detailed answer, after long long waiting I finally figured out how to share internet on BBB. This question is being seen at least 10 times everyday so I though I should answer it by my own. (Also SO gave me Popular question badge for this!)

我想第一件事情是:

连接了BBB(运行埃)笔记本电脑(运行Windows 8)。笔记本电脑识别该设备,我能够通过腻子SSH它。

I connected the BBB(running angstrom) to laptop (running windows 8). The laptop recognized the device and I was able to SSH it through putty.

现在,我试图平我的电脑背面,其IP地址 192.168.7.1 ..这一步从来没有为我工作,我BBB从来没有能够ping通我的计算机回,但,我是能够通过提供的IP是 192.168.7.2 (这是显而易见的)

Now, I tried to ping my computer back whose IP address is 192.168.7.1 .. This step never worked for me, my BBB was never able to ping my computer back but, I was able to ping the beaglebone itself through the provided IP that is 192.168.7.2 (which is obvious)

我到处搜寻互联网上,并想尽一切办法克服这种故障,如:

I searched everywhere on internet and did everything to overcome this glitch such as:

我取得了BBB默认网关 192.168.7.1

I made the default gateway in BBB to 192.168.7.1

/sbin/route add default gw 192.168.7.1

但也没有工作。

我previously认为有必要对我来说,平192.168.7.1 ,以获得BBB互联网。

I previously thought that it is necessary for me to ping 192.168.7.1 in order to get the internet on BBB.

由于没有什么是工作,我决定跳过这一步。

Since nothing was working I decided to skip this step.

我简单地连接BBB,然后去为网络和共享中心窗口 8,并从那里,我分享了我的wifi连接到beaglebone互联网连接

I simply connected the BBB, and then went to network and sharing center in windows 8 and from there, I shared the internet connection from my wifi connection to the beaglebone.

正如你会做这个,你会看到BB将失去从腻子其连接(如果你的网络共享之前启动腻子),这是因为计算机分配一个IP给BB,你必须更改为获取IP automatially

As you will do this, you will see that BB will loose its connection from the putty (if you started putty before network sharing), This is because computer assigns an IP to the BB which you have to change to 'Obtain the IP automatially'

要做到这一点右击并转到BB连接的属性,然后从列表中选中 IPV4 TCP / IP 并进入其属性。在那,你会看到选项自动获得IP

To do this right click and go to properties of the BB connection and then from the list select the IPV4 tcp/IP and go to its properties. In that, you will see the option 'Obtain IP automatically'

现在重新启动腻子(如previous连接将被终止),你会看到BB是能够连接。

Now again start putty (as previous connection will get terminated) and you will see that BB is able to connect.

现在只需添加默认网关正如我上面显示,然后你就可以ping通8.8.8.8或任何其他IP地址。现在,只需添加域名服务器是这样的:

Now simply add the default gateway as I showed above and then you will be able to ping 8.8.8.8 or any other IP address. Now, simply add the nameserver like this:

cd /etc
more resolv.conf
nano resolv.conf 

和下面添加域名服务器127.0.0.1这一行

nameserver 8.8.8.8

和保存它,你就能平google.com

现在到了VNC服务器部分。对于这种情况下,我也错了。要连接到VNC服务器则不需要在BBB互联网连接。是的,你将需要安装在其上的VNC服务器而不是事后。在BB一旦安装,你必须简单的做到这一点:

Now comes the VNC server part. For that case also I was wrong. To connect to VNC server you do not need internet connection on the BBB. Yes, you will need that for installing the VNC server on it but not afterwards. Once it is installed, you have to simple do this in BB:

x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/gdm/auth-for-gdm*/database -display :0  -forever

和preSS输入和BB将回复与VNC开始在端口5900

and press enter and BB will reply with VNC started at port 5900

多数民众赞成它,现在复出的窗口和启动VNC服务器,添加地址 192.168.7.2 ,你可以看到屏幕上的图形用户界面。我还可以冲浪互联网上beaglebone。

Thats it, now comeback to windows and start VNC server, add the address 192.168.7.2 and you can see the GUI on the screen. I am also able surf internet on the beaglebone.

感谢大家的支持,如果我错在这里是我的问题,那么请通知我。
此外,如果您有任何疑问,请请参阅本真棒视频我的德里克·莫洛伊:他已经解释得很好,记得跳过侦测回192.168.7.1,如果它不工作的步骤

Thank you for the support and if I am wrong here in my question then please notify me. Also if you have any doubt, refer to this awesome video my derek molloy: He has explained it very well and remember to skip the step of pinging back 192.168.7.1 if it is not working.

我还没有想通了。一旦我得到它,我会编辑的答案。

I have not yet figured it out. I will edit the answer once I get it.

这篇关于份额从笔记本电脑上网beaglebone黑色,然后通过VNC服务器访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆