1.install comile tools
#apt-get install build-essential fakeroot dpkg-dev
2.make a folder and get source code and independent packages
#make build
#cd build
#apt-get source squid3
#apt-get build-dep squid3
3.unpack the source code
#dpkg-source -x squid3_3.0.STABLE19-1ubuntu0.2.dsc
4.just compile package
#cd squid3-3.0.STABLE19/
#dpkg-buildpackage -rfackroot -b
5.if you want to use customize parameters, you can use
#DEB_BUILD_OPIONS="--enable-xxx " fackroot debian/rules binary
6.install packages
#cd ..
#dpkg -i squid3_3.0.STABLE19-1ubuntu0.2_amd64.deb
2012年3月27日 星期二
install subversion on ubuntu 10.04
1.install subversion package
#apt-get install subversion libapache2-svn
2.if you don't have apache2 packeage installed, run this command to install it
#apt-get install apache2
3.start apache2 service
#/etc/init.d/apache2 start
4.create subversion repository
#cd /var/www/
#svnadmin create subversion
#apt-get install subversion libapache2-svn
2.if you don't have apache2 packeage installed, run this command to install it
#apt-get install apache2
3.start apache2 service
#/etc/init.d/apache2 start
4.create subversion repository
#cd /var/www/
#svnadmin create subversion
2012年3月23日 星期五
install nessus scanner software
1.download nessus software
2.install nessus software use dpkg -i command
#dpkg -i Nessus-5.0.0-ubuntu910_amd64.deb
3.start nessuse service
#/etc/init.d/nessusd start
4.go to webpage to login and initial account
enter name: root
enter twice password: abc123
5.go to http://www.nessus.org/register/ to obtain an Activation Code.
select home feed and enter your email address and name
6.go to your email box and paste the activation code into the textbox
7.download plugins
it needs some minutes to get the lasted plunigs
8.get adobe flash12
untar the package you will find usr folder and one file libflashplayer.so
#cp libflashplayer.so /usr/lib/mozilla/plugins/
#cp -r bin/* /usr/bin/
#cp -r lib64/ /usr/lib
#cp -r share/* /usr/share/
9.login web page
https://localhost:8843
2.install nessus software use dpkg -i command
#dpkg -i Nessus-5.0.0-ubuntu910_amd64.deb
3.start nessuse service
#/etc/init.d/nessusd start
4.go to webpage to login and initial account
enter name: root
enter twice password: abc123
5.go to http://www.nessus.org/register/ to obtain an Activation Code.
select home feed and enter your email address and name
6.go to your email box and paste the activation code into the textbox
7.download plugins
it needs some minutes to get the lasted plunigs
8.get adobe flash12
untar the package you will find usr folder and one file libflashplayer.so
#cp libflashplayer.so /usr/lib/mozilla/plugins/
#cp -r bin/* /usr/bin/
#cp -r lib64/ /usr/lib
#cp -r share/* /usr/share/
9.login web page
https://localhost:8843
2012年3月22日 星期四
how to install navicat 10.10 on ubunut 10.04
1.download nuvicat 10.10 package for linux distribution
http://www.navicat.com/en/download/download.html
2.untar the file into your folder
#tar zxvf navicat100_permium_en.tar.gz
3.install wine runtime environment
#apt-get install wine
4.run nuvicat and register it
#cd nuvicat100
#./start_nuvicat
http://www.navicat.com/en/download/download.html
2.untar the file into your folder
#tar zxvf navicat100_permium_en.tar.gz
3.install wine runtime environment
#apt-get install wine
4.run nuvicat and register it
#cd nuvicat100
#./start_nuvicat
install openvpn integrated with mysql authentication
1.install openvpn server
#apt-get install openvpn sasl2-bin libpam-mysql libssl-dev openssl
2.install mysql server
#apt-get install mysql-server mysql-client
3.create database vpn and add one table name vpnuser
----- mysql command ------
create database vpn;
use vpn;
create table vpnuser(name char(20) not null primary key,password char(128) not null,
active int(10) not null default 1);
insert into vpnuser(name,password) values('vpn','vpn');
grant all on vpn.* to 'openvpn'@'%' identified by 'openvpn';
flush privileges;
4.add one file name openvpn on /etc/pam.d/
#vim /etc/pam.d/openvpn
auth sufficient pam_mysql.so user=openvpn passwd=openvpn host=127.0.0.1 db=vpn
table=vpnuser usercolumn=name passwdcolumn=password where=active=1 sqllog=0 crypt=0
account required pam_mysql.so user=openvpn passwd=openvpn host=127.0.0.1 db=vpn
table=vpnuser usercolumn=name passwdcolumn=password where=active=1 sqllog=0 crypt=0
5.testing pam module for mysql
#saslauthd -a pam
if no output means ok
#testsaslauthd -u vpn -p vpn -s openvpn
0: OK "Success."
6.make dir to openvpn,copy sample file and grant permission on the directory
#mkdir /etc/openvpn/easy-rsa/
#cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/
#chown -R root /etc/openvpn/easy-rsa/
#cd /etc/openvpn/easy-rsa/
#ln -s openssl-1.0.0.cnf openssl.cnf
7.modify some paramenters on /etc/openvpn/easy-rsa/vars
#vim /etc/openvpn/easy-rsa/vars
export KEY_COUNTRY="TW"
export KEY_PROVINCE="TW"
export KEY_CITY="TAIPEI"
export KEY_ORG="CSP_Company"
export KEY_EMAIL="tommy@csp.com"
8.generate certificate keys
#cd /etc/openvpn/easy-keys
#source vars
#./clean-all
#./bulid-dh
#./pkitool --initca
#./pkitool --server vpnc3
#apt-get install openvpn sasl2-bin libpam-mysql libssl-dev openssl
#apt-get install mysql-server mysql-client
3.create database vpn and add one table name vpnuser
----- mysql command ------
create database vpn;
use vpn;
create table vpnuser(name char(20) not null primary key,password char(128) not null,
active int(10) not null default 1);
insert into vpnuser(name,password) values('vpn','vpn');
grant all on vpn.* to 'openvpn'@'%' identified by 'openvpn';
flush privileges;
4.add one file name openvpn on /etc/pam.d/
#vim /etc/pam.d/openvpn
auth sufficient pam_mysql.so user=openvpn passwd=openvpn host=127.0.0.1 db=vpn
table=vpnuser usercolumn=name passwdcolumn=password where=active=1 sqllog=0 crypt=0
account required pam_mysql.so user=openvpn passwd=openvpn host=127.0.0.1 db=vpn
table=vpnuser usercolumn=name passwdcolumn=password where=active=1 sqllog=0 crypt=0
5.testing pam module for mysql
#saslauthd -a pam
if no output means ok
#testsaslauthd -u vpn -p vpn -s openvpn
0: OK "Success."
6.make dir to openvpn,copy sample file and grant permission on the directory
#mkdir /etc/openvpn/easy-rsa/
#cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/
#chown -R root /etc/openvpn/easy-rsa/
#cd /etc/openvpn/easy-rsa/
#ln -s openssl-1.0.0.cnf openssl.cnf
7.modify some paramenters on /etc/openvpn/easy-rsa/vars
#vim /etc/openvpn/easy-rsa/vars
export KEY_COUNTRY="TW"
export KEY_PROVINCE="TW"
export KEY_CITY="TAIPEI"
export KEY_ORG="CSP_Company"
export KEY_EMAIL="tommy@csp.com"
8.generate certificate keys
#cd /etc/openvpn/easy-keys
#source vars
#./clean-all
#./bulid-dh
#./pkitool --initca
#./pkitool --server vpnc3
2011年10月19日 星期三
install dart language in ubuntu 10.04 LTS
1.install all required packeages
#apt-get install bison fakeroot flex g++ g++-multilib gperf libapache2-mod-php5 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev libsqlite3-dev libxslt1-dev libxss-dev mesa-common-dev ttf-mscorefonts-installer patch perl pkg-config python python-dev rpm subversion libcups2-dev libgnome-keyring-dev libcurl4-gnutls-dev libelf-dev ttf-indic-fonts
2.mkdir dart folder to install depot_tools
#mkdir /dart
#cd /dart
#svn co http://src.chromium.org/svn/trunk/tools/depot_tools
#export PATH=$PATH:`pwd`/depot_tools
3.install lib_ssl package
#apt-get install libssl-dev
4.get all source,make a folder without root permission
#cd /home/tommy/
#gclient config http://dart.googlecode.com/svn/trunk/deps/all.deps
#gclient sync
5.change /home/tommy/dart/third_party/gsutil/20110627/
#gsutil config
and use browser to access the url to archieve the authentication code
than reinstall use step 4 procedure
#apt-get install bison fakeroot flex g++ g++-multilib gperf libapache2-mod-php5 libasound2-dev libbz2-dev libcairo2-dev libdbus-glib-1-dev libgconf2-dev libgl1-mesa-dev libglu1-mesa-dev libglib2.0-dev libgtk2.0-dev libjpeg62-dev libnspr4-dev libnss3-dev libpam0g-dev libsqlite3-dev libxslt1-dev libxss-dev mesa-common-dev ttf-mscorefonts-installer patch perl pkg-config python python-dev rpm subversion libcups2-dev libgnome-keyring-dev libcurl4-gnutls-dev libelf-dev ttf-indic-fonts
2.mkdir dart folder to install depot_tools
#mkdir /dart
#cd /dart
#svn co http://src.chromium.org/svn/trunk/tools/depot_tools
#export PATH=$PATH:`pwd`/depot_tools
3.install lib_ssl package
#apt-get install libssl-dev
4.get all source,make a folder without root permission
#cd /home/tommy/
#gclient config http://dart.googlecode.com/svn/trunk/deps/all.deps
#gclient sync
5.change /home/tommy/dart/third_party/gsutil/20110627/
#gsutil config
and use browser to access the url to archieve the authentication code
than reinstall use step 4 procedure
訂閱:
文章 (Atom)