UBUNTU 10.04上安装和使用HAMACHI

Posted 奔流聚海

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UBUNTU 10.04上安装和使用HAMACHI相关的知识,希望对你有一定的参考价值。

1. Install Hamachi for Linux

    • - Install the dependancies
      • sudo apt-get install lsb

      - Go to http://secure.logmein.com/us/labs 
      - Click Show More for Linux Command Line Version
      - Select the correct download for your OS (for 64 bit Ubuntu it is the 64 bit .deb file)
      - Double click the downloaded file to install Hamachi (follow the prompts in the window that opens) 

    • 2. Install Haguichi

    • This is to give GUI control of Hamachi and avoid terminal commands

      • - Open a terminal window, type/paste the following lines, pressing enter after each

        • sudo add-apt-repository ppa:webupd8team/haguichi 
          sudo apt-get update && sudo apt-get install haguichi 

        - Agree to any prompts
        - Haguichi will be installed and appear in your desktop menu under Internet or Applications, depending on what UI you use 

       3. Run Haguichi

      • - Click Haguichi in the menu (it will run Hamachi invisibly in the background)
        - The first time you run Haguichi you should obey any prompt to click "Configure"
        - Click Client > Connect
        - Click Client > Join Network (or Create Network)
        - Enter your Network ID & Password (found & set on the Hamachi website)

      You can now interact with Hamachi via the Haguichi GUI, and can connect to Hamachi networks with other people, regardless of whether they are using Linux or Windows.

    • https://secure.logmein.com/CN/,经过笔者使用,非常不错。

      官网上有windows版本和linux版本,其中linux版本是没有图形化界面的。

      1.下载和安装

      官网上有deb文件下载,下载后双击安装。

      2.使用

      2.1.登录

      安装完成后,执行hamachi可以看到版本等信息


      [email protected]:~$ sudo hamachi
      version : 2.0.0.11
      pid : 1012
      status : offline
      client id : xxx-xxx-xxx
      address : 5.191.253.67
      nickname : jim-laptop
      lmi account:

      [email protected]:~$

      2.2.登录

      修改昵称


      [email protected]:~$ sudo hamachi set-nick jim //将昵称修改成Jim
      Setting nickname .. ok
      [email protected]:~$

      登录网络


      [email protected]:~$ sudo hamachi login
      Logging in .......... ok
      [email protected]:~$

      2.2.创建网络


      [email protected]:~$ sudo hamachi create jimvv1 123
      Creating jimvv1 .. ok
      [email protected]:~$

      成功创建了一个名为 jimvv1的网络,密码是123

      网络创建以后,你已经在这个网络里了。

      2.3.加入现有网络

      接下来需要把对方也加入到这个网络里,假设对方也装的是hamachi for linux版,执行如下命令


      [email protected]:~$ sudo hamachi join jimvv1 123
      join jimvv1 .. ok
      [email protected]:~$

      2.4.查看对方的IP和自己的IP地址

      对方的IP地址


      [email protected]:~$ sudo hamachi list
      [jimvv1]
      084-598-580 tank 5.10.223.52

      [email protected]:~$

      好友tank的ip地址是5.10.223.52

      查看自己的IP地址很简单,只要ifconfig一下就可以了


      [email protected]:~$ ifconfig
      ......
      ham0 Link encap:以太网 硬件地址 e6:6e:ff:38:40:a5
      inet 地址:5.191.253.67 广播:5.255.255.255 掩码:255.0.0.0
      UP BROADCAST RUNNING MULTICAST MTU:1200 跃点数:1
      接收数据包:0 错误:0 丢弃:0 过载:0 帧数:0
      发送数据包:271 错误:0 丢弃:0 过载:0 载波:0
      碰撞:0 发送队列长度:500
      接收字节:0 (0.0 B) 发送字节:40464 (40.4 KB)
      ......

      自己的IP是5.191.253.67。

      3.ping对方电脑


      [email protected]:~$ ping 5.10.223.52
      PING 5.10.223.52 (5.10.223.52) 56(84) bytes of data.
      64 bytes from 5.10.223.52: icmp_seq=1 ttl=64 time=0.062 ms
      64 bytes from 5.10.223.52: icmp_seq=2 ttl=64 time=0.055 ms
      64 bytes from 5.10.223.52: icmp_seq=3 ttl=64 time=0.056 ms
      64 bytes from 5.10.223.52: icmp_seq=4 ttl=64 time=0.056 ms
    • 参考:
    • https://help.ubuntu.com/community/Hamachi
    • http://it.zhaozhao.info/archives/44436

以上是关于UBUNTU 10.04上安装和使用HAMACHI的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu10.04桌面版,网络设置经常无法生效。有稳定的解决办法吗?

Larbin简介,及其在Ubuntu10.04下的编译安装

Larbin简介,及其在Ubuntu10.04下的编译安装

在 ubuntu 10.04 上面临一些关于 tomcat 启动和关闭的问题

如何在 Ubuntu 上安装和构建 OpenSSL 1.0.0?

如何在 Ubuntu 上安装和构建 OpenSSL 1.0.0?