This error message happens after I did an upgrade to Debian 5.0 (lenny)
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
dpkg-reconfigure locales
Then choose en_US.UTF-8 and it's fixed.
In my configuration, my server's network is 10.1.1.0 and my VPN is 10.1.10.0, in order to access the server side networks, you need to enable the forwarding and masquerading, here's the steps:
$echo 1 > /proc/sys/net/ipv4/ip_forward
$iptables -t nat -A POSTROUTING -s 10.1.10.0/24 -o eth0 -j MASQUERADE
*Assuming your nic is eth0 and your vpn network is 10.1.10.0
deb http://http.us.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib Somebody skipped step 3 and also works fine. Now your server is running Lenny. In my case, I don't even have to reboot the machine.
While running apt-get update, I found one of the source repository debian.cn99.com is not responding, so I checked the Debian mirror page, there's another repository "www.anheng.com.cn" good enough in China, so I decide to switch my repository to it. Here's the steps:
When open a virtual machine created with vmware server 1.0 with vmware workstation 6.0, which is running debian 4.0r0,
the eth0 won't start by reporting the following error:
linuxvm1:/etc/network# ifup eth0
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
The solution:
1. run ifconfig -a
1. apt-get install atftpd atftp
2. mkdir /tftpboot
3. chmod 777 /tftpboot
4. /etc/init.d/atftpd start
notice:
1. I prefer it start as a standalone server instead requires inetd
2. if atftpd isn't start, you'll need to check if it set USE_INETD=true in 2 files: /etc/default/atftpd and /etc/init.d/atftpd
just commend out that 2 line and it shall able to start.
3. the log file is /var/log/syslog
Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer