Page 1 of 1

Ubuntu 12.04 server - installations & configurations

Posted: Sunday, 15.09.2013 21:49
by geohei
Static IP

Original file(s): /etc/network/interfaces.backup
Modified file(s): /etc/network/interfaces

Code: Select all

root@io:/etc/network# cat interfaces.backup
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
# This is an autoconfigured IPv6 interface
iface eth0 inet6 auto
root@io:/etc/network# cat interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.123
        netmask 255.255.255.0
        gateway 192.168.1.1
        dns-nameservers 192.168.1.1

# This is an autoconfigured IPv6 interface
iface eth0 inet6 auto
vsftpd

Original file(s): /etc/ftpusers.backup /etc/vsftpd.conf.backup
Modified file(s): /etc/ftpusers /etc/vsftpd.conf
Permit write access.
Permit root to access.

Code: Select all

root@io:~# apt-get update
...
root@io:~# apt-get install vsftpd
...
root@io:~# cat /etc/vsftpd.conf.backup
...
#local_enable=YES
#write_enabled=YES
...
root@io:~# cat /etc/vsftpd.conf
...
local_enable=YES
write_enabled=YES
...
root@io:~# cat /etc/ftpusers.backup
...
root
...
root@io:~# cat /etc/ftpusers
...
#root
...