Skip to main content

ubuntu in nutshell 4

sudo apt-get install squid
/etc/squid/squid.conf
acl biz_network src 10.1.42.0/24
acl biz_hours time M T W T F 9:00-17:00
http_access allow biz_network biz_hours
sudo /etc/init.d/squid restart
sudo apt-get install tomcat6
sudo apt-get install tomcat6-admin
sudo apt-get install tomcat6-docs
sudo apt-get install tomcat6-examples
sudo apt-get install tomcat6-user
tomcat6-instance-create my-instance
/etc/tomcat6/tomcat-users.xml
sudo chgrp -R tomcat6 /etc/tomcat6
sudo chmod -R g+w /etc/tomcat6
sudo apt-get install python-moinmoin
sudo apt-get install mediawiki php5-gd
sudo ln -s /var/lib/mediawiki /var/www/mediawiki
http://localhost/mediawiki/config/index.php
sudo apt-get install vsftpd
/etc/vsftpd.conf
sudo /etc/init.d/vsftpd start
sudo apt-get install nfs-kernel-server
/etc/exports
sudo /etc/init.d/nfs-kernel-server start
sudo mount example.hostname.com:/ubuntu /local/ubuntu
sudo apt-get install nfs-common
/etc/fstab
example.hostname.com:/ubuntu /local/ubuntu nfs rsize=8192,wsize=8192,timeo=14,intr
sudo apt-get install cupsys
/etc/cups/cupsd.conf
/etc/cups/cups.d/ports.conf
sudo /etc/init.d/cupsys restart
sudo apt-get install postfix
sudo dpkg-reconfigure postfix
/etc/postfix/main.cf
sudo postconf -e 'home_mailbox = Maildir/'
sudo postconf -e 'smtpd_sasl_type = dovecot'
sudo postconf -e 'smtpd_sasl_path = private/auth-client'
sudo postconf -e 'smtpd_sasl_local_domain ='
sudo postconf -e 'smtpd_sasl_security_options = noanonymous'
sudo postconf -e 'broken_sasl_auth_clients = yes'
sudo postconf -e 'smtpd_sasl_auth_enable = yes'
sudo postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination'
sudo postconf -e 'inet_interfaces = all'
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
chmod 600 smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr
sudo openssl x509 -req -days 365 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
openssl rsa -in smtpd.key -out smtpd.key.unencrypted
mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
sudo mv smtpd.key /etc/ssl/private/
sudo mv smtpd.crt /etc/ssl/certs/
sudo mv cakey.pem /etc/ssl/private/
sudo mv cacert.pem /etc/ssl/certs/
sudo postconf -e 'smtpd_tls_auth_only = no'
sudo postconf -e 'smtp_use_tls = yes'
sudo postconf -e 'smtpd_use_tls = yes'
sudo postconf -e 'smtp_tls_note_starttls_offer = yes'
sudo postconf -e 'smtpd_tls_key_file = /etc/ssl/private/smtpd.key'
sudo postconf -e 'smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt'
sudo postconf -e 'smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem'
sudo postconf -e 'smtpd_tls_loglevel = 1'
sudo postconf -e 'smtpd_tls_received_header = yes'
sudo postconf -e 'smtpd_tls_session_cache_timeout = 3600s'
sudo postconf -e 'tls_random_source = dev:/dev/urandom'
sudo postconf -e 'myhostname = mail.example.com'
/etc/postfix/main.cf
sudo /etc/init.d/postfix restart
sudo apt-get install dovecot-common
etc/dovecot/dovecot.conf
sudo /etc/init.d/dovecot restart
sudo postconf -e 'smtpd_tls_loglevel = 4'
sudo postconf -e 'debug_peer_list = problem.domain'
sudo /etc/init.d/postfix reload
sudo /etc/init.d/dovecot reload
sudo apt-get install exim4
sudo dpkg-reconfigure exim4-config
/etc/exim4/update-exim4.conf.conf
sudo update-exim4.conf
/var/lib/exim4/config.autogenerated
sudo /etc/init.d/exim4 start
sudo /usr/share/doc/exim4-base/examples/exim-gencert
/etc/exim4/conf.d/main/03_exim4-config_tlsoptions
/etc/exim4/conf.d/auth/30_exim4-config_examples
sudo update-exim4.conf
sudo /etc/init.d/exim4 restart
sudo apt-get install sasl2-bin
sudo adduser Debian-exim sasl
sudo /etc/init.d/saslauthd start
sudo apt-get install dovecot-imapd dovecot-pop3d
/etc/dovecot/dovecot.conf
sudo /etc/init.d/dovecot restart
sudo apt-get install mailman
sudo cp /etc/mailman/apache.conf /etc/apache2/sites-available/mailman.conf
sudo a2ensite mailman.conf
sudo postconf -e 'relay_domains = lists.example.com'
sudo postconf -e 'transport_maps = hash:/etc/postfix/transport'
sudo postconf -e 'mailman_destination_recipient_limit = 1'
sudo postmap -v /etc/postfix/transport
/etc/exim4/conf.d/main/
/etc/exim4/conf.d/transport/
/etc/exim4/conf.d/router/
sudo /etc/init.d/mailman start
sudo /usr/sbin/newlist mailman
http://hostname/cgi-bin/mailman/
http://hostname/cgi-bin/mailman/admin
http://hostname/cgi-bin/mailman/listinfo
sudo apt-get install amavisd-new spamassassin clamav-daemon
sudo apt-get install dkim-filter python-policyd-spf
sudo apt-get install pyzor razor
sudo apt-get install arj cabextract cpio lha nomarch pax rar unrar unzip unzoo zip zoo
/etc/default/spamassassin
sudo /etc/init.d/spamassassin start
sudo adduser clamav amavis
/etc/amavis/conf.d/15-content_filter_mode
/etc/amavis/conf.d/20-debian_defaults
/etc/amavis/conf.d/50-user
sudo /etc/init.d/amavis restart
/etc/amavis/conf.d/40-policy_banks
sudo postconf -e 'content_filter = smtp-amavis:[127.0.0.1]:10024'

Comments

Popular posts from this blog

spring 2.0 bean scope

singleton Scopes the bean definition to a single instance per Spring container (default). prototype Allows a bean to be instantiated any number of times (once per use). request Scopes a bean definition to an HTTP request. Only valid when used with a web capable Spring context (such as with Spring MVC). session Scopes a bean definition to an HTTP session. Only valid when used with a webcapableSpring context (such as with Spring MVC). global-session Scopes a bean definition to a global HTTP session. Only valid when used in a portlet context.

Crocs sandals

Suddenly one special looking sandals get popular. The brand is Crocs. It even opens a brand store at Marina Square. The design idea is from Dutch wooden shoes, I guess. A pair of Crocs sandals is sold at around SGD 50. The price is justified for what it is made of - Croslite. Based on Crocs website, "Croslite™, a proprietary Closed Cell Resin (PCCR) which is NOT plastic NOR rubber. Croslite™ is closed-cell in nature and anti-microbial, which virtually eliminates odor. it is an extraordinary impact absorbing resin material developed for maximum cushioning. its closed cell properties resist odor, inhibits bacterial and fungal growth and are non toxic. this versatile material can be worn next to skin and be cleaned with just soap and water." However, it really looks like made of plastic or rubber, and the design is unique. Replica comes. they are sold at SGD 20, SGD 10, SGD 5 depending on quality.

Singapore Girl Sex Clip Posted Online

A couple days ago, a sex video clip about a female Chinese graduate student Wang Ting Ting (王婷婷) was posted on the internet. Just as it is about to cool down, another sex video clip pops. It is a sex clip of a Singapore Nanyang Polytechnic student . The video clip was stored on her cell phone. Someone stole it and posted the video clip on the Internet. This is a breaking news. It is even reported on major Singapore and Malaysia newspapers. Now we have so many cool gadgets. It is a breeze to shoot photos/videos, and share them on the internet. Everyone, even dog, is on the internet waiting for breaking news. Be careful when you do something secret or stupid. It may appear all over the world, live!

No smoking sign

Watch out this sign before you light the cigarette up. SGD 1000 fine! However, I wonder if someone had really paid so much for violation.

Prostitutes in Singapore

Singapore is very realistic about this issue. Prostitution is legal. The famous red light zone is Geylang area. I heard Hong Kong officials are considering to legalize this business in HK also. Singaporeans are not allow to work as prostitute. Maybe also SPR. The prostitutes are mainly foreign workers from poor countries in SEA area, such as Indonesia, Thailand, India, Malaysia, not from China. They come under special 2-year working pass, and must pass the health exam, yes, to prevent STD such as HIV, AIDS and so on. The brothels are mixed with normal resident houses. The brothel's house number is red lighted. The price is ranged from SGD 50 to SGD 200. Illegal sex workers are also around, and in some massage clinics. A very recent fatal case and newly effective government policy make a special social group - Chinese accompanying mom for studying kids a hot media buzz again.