Aus YaCyWiki
Wechseln zu: Navigation, Suche

Set a static IP to a debian server

This is useful after or before you installed YaCy on a debian server to get a unique handle to the YaCy peer in your network. We recommend to use the default address to standardize the access to YaCy 'Appliance' Servers.

To define a static IP in your debian installation, do

  • edit /etc/network/interfaces
  • replace the line
iface eth0 inet dhcp


iface eth0 inet static

If your router is at address - otherwise replace with the address of your router. If you want to use a different address than for your YaCy peer, then replace with your wanted address.

If you installed YaCy with the default port 9080, then your YaCy peer will be available at

Special Setting on Ubuntu

If you are running Ubuntu, then the NetworkManager will ignore these settings until you replace the line "managed=false" with "managed=true" in /etc/NetworkManager/NetworkManager.conf

Set DHCP and a static IP when running debian in VirtualBox

If you are running debian on a VirtualBox, then you can easily have two network interfaces. One of the interfaces can be configured as dhcp connection (over a virtual NAT) to ensure that you will always have a internet connection within your virtual machine while you can also have a second connection which makes it possible to reach your VM with an IP within your intranet (or from the console where you are running the VM).

  • in the VirtualBox manager, open the network configuration and set Adapter 1 to NAT
  • set Adapter 2 to Bridge with name: en1
  • in /etc/network/interfaces, set the configuration to:
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug eth1
iface eth1 inet static

This will enable access to the VM at port Please replace this IP to the value you want.