1月 31
Hello world! 哈囉!
icon1 ken666 | icon2 未分類 | icon4 01 31st, 2008 @ 07:01 pm| icon3沒有留言 »

Welcome to Blog.24reader.com. This is your first post. Edit or delete it, then start blogging!

1月 15

FTP Quick install guide for Fedora / CentOS

- yum install vsftpd

- edit /etc/sysconfig/iptables-config
IPTABLES_MODULES=”ip_conntrack_netbios_ns ip_nat_ftp”

- #service iptables restart

- create useraccount e.g. ftpuser

- edit /etc/vsftpd/vsftpd.conf
anonymous_enable=NO # anonymouse access ? no way !
userlist_deny=NO # add this line
chroot_local_user=YES #add this line

- edit /etc/vsftpd/user_list
remove all other user
add user that can ftp in the list e.g. ftpuser

- #service vsftpd start ; chkconfig vsftpd on

1月 12
selinux non standard port how to
icon1 ken666 | icon2 未分類 | icon4 01 12th, 2008 @ 03:01 am| icon3沒有留言 »

Q: I want to run a daemon on a non standard port but SELinux will not allow me. How do get this to work?

A: You can use the semanage command to define additional ports. So say you want httpd to be able to listen on port 8082. You could enter the command.

semanage port -a -p tcp -t http_port_t 8082

1月 3
SRPM How to
icon1 ken666 | icon2 未分類 | icon4 01 3rd, 2008 @ 05:01 am| icon3沒有留言 »

For example, if I have a package named:

netatalk-1.6.1-2rh7.i386.rpm

and an rpm of sources for this rpm:

netatalk-1.6.1-2rh7.src.rpm (or .srpm)

then, the command should be:

rpmbuild –rebuild netatalk-1.6.1-2rh7.src.rpm

then install the rpm in commond rpm path
/usr/src/redhat/RPMS/i386