安裝相關套件:
# 必要套件
sudo apt-get install gcc build-essential g++ rpm
# this is only required on 64bit Ubuntu/Debian systems
sudo apt-get install ia32-libs
# For use the Intel IDB graphical debugger
sudo apt-get install openjdk-6-jre-headless
Ubuntu 9.10後改用libstdc++6,而Install Intel C++ Compiler需要libstdc++5,所以要另外安裝。先到http://packages.debian.org/stable/base/libstdc++5下載adm64的版本用dpkg安裝,再下載i386解開,並取出函式庫
# 下載並adm64的版本
wget http://debian.linux.org.tw/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-18_amd64.deb
sudo dpkg -i libstdc++5_3.3.6-18_amd64.deb
# 下載i386並解開
wget http://debian.linux.org.tw/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-18_i386.deb
dpkg --extract libstdc++5_3.3.6-18_i386.deb ./
# 出函式庫
cd usr/lib
sudo cp libstdc++.so.5.0.7 /usr/lib32
cd /usr/lib32
sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5
然後就可進入Install Intel C++ Compiler的安裝了,裝完之後把下面指令加入到.bashrc即可直接使用icc
source /opt/intel/Compiler/11.1/069/bin/iccvars.sh intel64
參考資料:Using Intel Compilers for Linux with Ubuntu
Lazybuntu 懶人包
先去下載最新版本,抓回來解開執行就對了
我只多勾了 網路應用=>IE4Linux
其他的視情況而定,不過預設選項就差不多ok了
選完之後按下套用就會自動開始安裝了
過程會有跳出幾個視窗會問是否套用到全部使用者等等…
還有java的license要按個OK
其他的就是等他跑囉!
上面跑完會出現 Lazybuntu 安裝完畢的藍色字樣
接著執行我自己的Ubuntu Installation
wget http://blog.gclin.org/wp-content/uploads/2008/11/ubuntu_installation_v02.tgz
tar -zxf ubuntu_installation_v02.tgz
sudo ./ubuntu_installation_v0.2/install.sh
# 等跑完記得看一下setting.txt檢查是否有要改的設定
What is AWStats
AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. It uses a partial information file to be able to process large log files, often and quickly. It can analyze log files from all major server tools like Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar, IIS (W3C log format) and a lot of other web, proxy, wap, streaming servers, mail servers and some ftp servers.
閱讀全文…
ubuntu_installation_v0.2
wget http://blog.gclin.org/wp-content/uploads/2008/11/ubuntu_installation_v02.tgz
tar -zxf ubuntu_installation_v02.tgz
sudo ./ubuntu_installation_v0.2/install.sh
閱讀全文…
Categories: Linux, 未分類 Tags: Apache, Installation, Linux, MySQL, PHP, postfix, ProFTP, sendmail, Ubuntu, vim-full, vsftp
先放上來改天再整理
ubuntu_installation_v01
sudo apt-get install unzip wget
wget http://blog.gclin.org/wp-content/uploads/2008/10/ubuntu_installation_v01.zip
unzip ubuntu_installation_v01.zip
chmod a+x ubuntu_installation_v0.1/install.sh
sudo ./ubuntu_installation_v0.1/install.sh
# 接下來呢~基本上一路yes就可以了
# 印象中好像會要設定MySQL密碼跟postfix
# 等install.sh跑完,再照著setting.txt去設定
閱讀全文…
安裝相關套件及建立guest帳號
sudo apt-get install vsftpd mysql-server-5.0 libpam-mysql
sudo useradd web_edit
[/shell]
先建立vsftpd這個資料庫,然後建立users這個資料表
[sql]CREATE TABLE `users` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`username` VARCHAR( 30 ) NOT NULL ,
`password` VARCHAR( 50 ) NOT NULL ,
UNIQUE (`username`)
) ENGINE = MYISAM ;
INSERT INTO `users` (`username` ,`password`) VALUES ('user', PASSWORD('pass'));
[/sql]
修改/etc/pam.d/vsftpd
<!--more-->
[bash]sudo vi /etc/pam.d/vsftpd
# 原先的設定全註解掉
auth required pam_mysql.so user=vsftpd passwd=bWrRDD host=localhost db=vsftpd table=users usercolumn=username passwdcolumn=password crypt=2
account required pam_mysql.so user=vsftpd passwd=bWrRDD host=localhost db=vsftpd table=users usercolumn=username passwdcolumn=password crypt=2
修改/etc/vsftpd.conf
sudo vi /etc/vsftpd.conf
guest_enable=YES
write_enable=YES
guest_username=web_edit
local_root=/home/ftp_users/$USER
user_sub_token=$USER
virtual_use_local_privs=YES
user_config_dir=/etc/vsftpd_user_conf
sudo /etc/init.d/vsftpd restart
Ubuntu常用命令與技巧
sudo apt-get install 軟體名 安裝軟體命令
sudo nautilus 打開文件(有root權限)
su root 切換到“root”
閱讀全文…