`
yangzb
  • 浏览: 3506729 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Howto: change andLinux network configuration

阅读更多

Contents

[hide ]

<script type="text/javascript"> if (window.showTocToggle) { var tocShowText = &quot;show&quot;; var tocHideText = &quot;hide&quot;; showTocToggle(); } </script>

Abstract

andLinux is configured with two network interfaces by default, eth0 and eth1. The eth1 is used to communicate to the Windows host via the TAP-Colinux network interface.

The Windows interface is configured with ip address 192.168.11.1, and the Linux eth1 adapter is configured with 192.168.11.150. The TAP-Colinux interface operates as a router, so from the Windows host you can ping the eth1 interface and access the various network services you have configured.

What needs to be changed?

In order to change the network ip addresses you need to modify the following configuration items:

  • andLinux eth1 ip address and subnet
  • andLinux /etc/hosts file
  • andLinux /etc/profile configuration file
  • TAP-Colinux ip address and subnet
  • andLinux launcher registry configuration
  • add the new ip address to the Xming allowed hosts file

Step-by-step

In this example we will change the network to be 169.254.28.0/24. The Windows host will keep the host address 1, andLinux eth1 will retain the host id 150.

andLinux eth1 ip address configuration

The eth1 static ip configuration is stored in the '/etc/network/interfaces' config file. So we are going to edit this file to reflect the following information:

iface eth1 inet static
address 169.254.28.150
netmask 255.255.255.0

andLinux /etc/hosts file

The hosts file is used to resolve windows-host used in mounting the host smb share.

169.254.28.1   windows-host

andLinux /etc/profile configuration

In order to ensure that the andLinux components interact properly with their Windows counterpart we need to edit the /etc/profile files content as shown here:

# set DISPLAY env variable
export DISPLAY=169.254.28.1:0.0
export ESPEAKER=169.254.28.1:16001
export PULSE_SERVER=169.254.28.1

TAP-Colinux ip address configuration

Change the TAP-Colinux network interface from 192.168.11.1 to 169.254.28.1.

andLinux launcher configuration

Add the following registry key, which is not present by default:

[HKEY_LOCAL_MACHINE\SOFTWARE\andLinux\Launcher]
"IP"="169.254.28.150"
"Port"=dword:00000821

Note: In andLinux Beta 2 the default launcher port changed from 81 (hex: 51) to 2081 (hex: 821). So, if you are using older versions of andLinux, you'll need 51 instead of 821 in the registry setting above.

Xming Configuration on the windows host

Edit the X0.hosts file located in the Xming directory of your andLinux installation. Within the directory you'll find the X0.hosts file. This file controls which hosts on the network will able to connect to the Xming server so we need to tell it about the new ip address we've assigned. Open it and add the ip address you've assigned andLinux. You can remove the existing ip address as it is no longer required.

localhost
169.254.28.150

Conclusion

After restarting andLinux your launcher will connect to the network services providing access to binary files.

分享到:
评论

相关推荐

    linux howto中文合集

    这个是合集~一般是这里最全的了 另外加的 PDF是英文的 .为 GCC4.1的HOWTO &lt;br&gt;目录 &lt;br&gt;ADSM-Backup-html&lt;br&gt;Advocacy&lt;br&gt;Automount-html&lt;br&gt;Battery-Powered-html&lt;br&gt;BootPrompt-HOWTO&lt;br&gt;Bridge-......

    Linux中文HOWTO

    Linux中文HOWTO Linux中文HOWTO Linux中文HOWTO

    Linux Howto 中文文档

    Linux HOWTO(中文版) BootPrompt-HOWTO (28KB) 启动提示说明 CDROM-HOWTO (27KB) 如何安装, 设定及使用光驱,同时列出支援的硬体. Chinese-HOWTO (39KB) 如何在 Linux 的系统上使用中文?/TD&gt; Config-...

    Learn CentOS Linux Network Services

    This book teaches you to set up the latest CentOS Linux network services including DNS, DHCP, SSH and VNC, Web, FTP, Mail, Firewall, and LDAP, enabling you to provide these services on your own ...

    How to Cheat at Securing a Wireless Network

    including Penetration Tester's Open Source Toolkit (ISBN: 1-5974490210), Stealing the Network: How to Own an Identity (ISBN: 1597490067), InfoSec Career Hacking (ISBN: 1597490113), and OS X for ...

    Chinese-Linux-HOWTO

    《Chinese-Linux-HOWTO》是一份详细的指南,专注于在中文环境下配置和使用Linux操作系统。这份文档深入到源码级别,旨在帮助用户理解和解决在安装、配置和使用中文Linux时遇到的各种问题。它不仅适用于初学者,也对...

    Practical Packet Analysis: Using Wireshark to Solve Real-World Network Problems

    Practical Packet Analysis, 3rd Edition will show you how to make sense of your PCAP data and let you start troubleshooting the problems on your network. This third edition is updated for Wireshark ...

    Linux Howto 中文版完整版.zip

    Linux Howto 中文版完整版.zip

    Linux HOWTO 中文版(全)

    《Linux HOWTO 中文版(全)》是一个包含多种Linux技术指南的综合资源,对于Linux用户和管理员来说,这是一个极具价值的学习和参考材料。这些HOWTO文档覆盖了从基础操作到高级配置的各种主题,旨在帮助用户更好地理解...

    linux高级路由和流量控制HOWTO中文版(牛老师译)

    这篇文档“Linux高级路由和流量控制HOWTO中文版”由牛老师翻译,为读者提供了深入理解这些概念的宝贵资源。以下是对其中核心知识点的详细解读: 1. **基本路由**:在Linux中,路由是指指导数据包通过网络到达目的地...

    Linux HOWTO 中文版

    Linux HOWTO 中文版是一份全面的指南,旨在帮助初学者和有经验的用户更好地理解和操作Linux操作系统。这份文档详细地介绍了Linux系统的基础知识、安装过程、常用命令、系统管理以及一些高级主题。以下是这份资源中...

    Secure Programming for Linux and Unix HOWTO.rtf

    Secure Programming for Linux and Unix HOWTO by David A. Wheeler v3.010 Edition Published v3.010, 3 March 2003 Copyright ? 1999, 2000, 2001, 2002, 2003 by David A. Wheeler This book provides a set of ...

    This code shows you how to creat a local network chat room s

    This code shows you how to creat a local network chat room so that you and your friends can have a chat room which nowone else can enter

    Linux for Beginners: An Introduction to the Linux Operating System

    Exactly how permissions work and how to decipher the most cryptic Linux permissions with ease. How to use the nano, vi, and emacs editors. Two methods to search for files and directories. How to ...

Global site tag (gtag.js) - Google Analytics