Howto: change andLinux network configuration
Contents
[hide]<script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
Abstract
andLinux is configured with two network interfaces by default, eth0and eth1. The eth1 is used to communicate to the Windows host via theTAP-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. TheTAP-Colinux interface operates as a router, so from the Windows hostyou can ping the eth1 interface and access the various network servicesyou 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 willretain 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 thisfile 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 properlywith their Windows counterpart we need to edit the /etc/profile filescontent 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 ofandLinux, 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 yourandLinux installation. Within the directory you'll find the X0.hostsfile. This file controls which hosts on the network will able toconnect to the Xming server so we need to tell it about the new ipaddress we've assigned. Open it and add the ip address you've assignedandLinux. You can remove the existing ip address as it is no longerrequired.
localhost 169.254.28.150
Conclusion
After restarting andLinux your launcher will connect to the network services providing access to binary files.