You are hereDebian
Debian
Setup Postfix with SMTP Auth
- Install Postfix and SASL
apt-get install postfix sasl2-bin - edit /etc/default/saslauthd, change the following:
START=yes
- Start saslauthd:
/etc/init.d/saslauthd start - test if saslauthd is working:
testsaslauthd -u username -p password - Stop saslauthd:
/etc/init.d/saslauthd stop - Create file /etc/postfix/sasl/smtpd.conf:
pwcheck_method: saslauthd
- edit /etc/postfix/main.cf :
perl: warning: Setting locale failed
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.
Configure OpenVPN on Debian Lenny
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
Upgrade Debian Etch to Debian Lenny in 4 steps
- change /etc/apt/sources.list , replace etch to lenny. here's my example:
deb http://http.us.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib - apt-get install apt dpkg aptitude
- apt-get update ; apt-get upgrade
- apt-get dist-upgrade
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.
Switching Debian repository
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:
Install flash plugin on Debian 4.0
- download install_flash_player_9_linux.tar.gz from www.adobe.com
- extract to a folder, close your browser, then run ./flashplayer-installer
- when asking installation path of the Mozilla, Netscape, or Opera browser, typein /usr/lib/iceweasel
- start browser, in the address type in about:plugins
Migrate virtual machine from vmware server 1.0 to vmware workstation 6.0
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
Setup atftpd on debian
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
Install PDO, PDO_SQLITE, PDO_DBLIB, PDO_MYSQL
The server is running Debian 3.1r3
- apt-get install php5-dev php5-mysql php5-sybase php5-sqlite libmysqlclient-dev freetds-dev
- apt-get install make
- pecl install PDO
- pecl install PDO_SQLITE
- pecl install PDO_MYSQL
- pecl install PDO_DBLIB
pear/PDO_DBLIB requires PHP extension "pdo" (version >= 1.0)
No valid packages found
install failed


