This is a tutorial on how to assign a static IP for Deki Wiki VMware Certified Virtual Appliance or source running off of Debian.
1. Start up Deki Wiki
2. Once Deki Wiki boots you will see the boot screen in the VM player with the chance to Login. Click your mouse on the VM player screen and login using the credentials:

username: root
password: password
*When you type in password it will not show the characters as you type, so make sure you type it out correctly, this is a security measure.
3. Once you are logged in you want to type out the following command:
nano /etc/network/interfaces
Example screen of how the code is typed in
4. After you type in the above command hit Enter and you will be presented with the following screen:
5. Type out your network settings so that it matches the following format:
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.1.90 gateway 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255
*Note: address is the Static IP address that you want to assign the Deki Wiki
6. The following screen shows my network configuration as it needs to be edited for my Deki Wiki to have a static IP.
Tips:
7. Once you have verified that your settings are accurate then exit out of the editor by hitting CTRL X on your keyboard
8. You will be prompted to save the file to do so type Y

9. Hit Enter at the screen below and your changes will be applied to the file:

10.After you have saved restart your Deki Wiki by clicking the VMplayer button at the top of the screen ->Troubleshoot->Reset
11. On restart the screen should display the IP address that you set for your static IP, if it only shows http:// then go back through the tutorial as there was probably an error somewhere.
If you would like help configuring settings like this you can purchase a MindTouch Support Plan and we will help you configure your Deki WIki.
If you want to run Deki Wiki via NAT, you will need to make a quick change. When you connect to Deki Wiki, PHP inherits the hostname and uses it to contact the API. This works wonderfully when the hostname is resolvable by both the browser and the VM. However, that's generally not the case in NAT scenarios. To configure Deki Wiki to work in NAT do the following:
Open 'LocalSettings.php' usually found in '/var/www/dekiwiki' (or '/var/www/deki-hayes' for older setups) and add the following line:
$wgDreamServer = "http://localhost";
Alternatively, if you're using hostnames (e.g. 'http://mywiki') to reach your wiki site, you can also add this hostname to your VM so that it will resolve it correctly when it sees it, but you'll need to do so for each wiki hostname.
Where I seem to go wrong is in the interfaces file there seems to be two IP's that I am unable to match up with anything in my windows ipconfig. The "network" and the "broadcast" IP's don't seem to have anything that is obvious to me to match up from my windows IP config setting.
Interface File Settings:
address 10.56.15.171
gateway 255.255.255.0
netmask 255.255.255.0
network ?
broadcast ?
Windows ipconfig /all settings:
Ethernet adapter Team #0 - Adapter Fault Tolerance Mode:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Advanced Network Servil Adapter
Physical Address. . . . . . . . . : 00-11-25-AB-ED-C2
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.56.15.171
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.56.15.1
DNS Servers . . . . . . . . . . . : 10.0.12.120, 10.6.32.111
Primary WINS Server . . . . . . . : 10.6.7.1
Secondary WINS Server . . . . . . : 10.0.0.25
Any help would be appreciated.
Luke Morrison
edited 14:03, 24 Aug 2007
The IP address isn't the one it gives you in the IPconfig as that is the IP address that is assigned to the computer you are on. I'd recommend checking with whoever manages the network where you are demoing to get the Static Range for their IPs.
Network and broadcast is the range that the IP falls in
ie.
Network: 10.56.15.0
Broadcast: 10.56.15.255
This is important information because VmWare + Linux + Wireless NICs don't play nicely. I had to use VmWare NAT/port mapping (available through C:\Program Files\VMware\VMware Player\vmnetcfg.exe) and you info finished off my puzzle. edited 05:44, 31 Aug 2007
I found that I had to use eth1 (eth0 didn't work). I also had to add a "ServerName = mywiki.domain.com" line in /etc/apache2/apache2.conf (as apache wouldn't start)
I found out that you don't have to reboot your server to have the new settings take effect, you can simply do a
# /etc/init.d/networking force-reload
or a
# /etc/init.d/networking restart
# ifdown eth0
# ifup eth0
Help!
my problem is similar to Luke's one. My Windows XP configuration is the following one:
DHCP aktiviert. . . . . . . . . . : Nein
IP-Adresse. . . . . . . . . . . . : 139.27.198.151
Subnetzmaske. . . . . . . . . . . : 255.255.254.0
Standardgateway . . . . . . . . . : 139.27.198.1
Can you tell me, how i have to configure VMPlayer?
What i am wondering about, is, that after installing VMPlayer i got to new network connections: VMnet1 and VMnet8. But for both connections the VM Bridge Protocol was disabled! Is that correct??
Thanks in advance,
Christian