1.先建一個資料庫及一位使用者
2.cp 至public_html
另外兩個 xoop_data xoop_lib 移至public_html 之外
3.設定檔案 mod own
public_html 755
chown -R www-data.www-data uploads/ templates_c/ cache/
chown -R www-data.www-data xoop_data
chmod 777 mainfile.php include/license.php
/modules/system/admin/maintenance/dump
xoops_data
中文打字
2011年10月17日 星期一
安裝krita 及inkscape
1.安裝krita ( 以synaptic 來裝 結果是英文版)
sudo apt-get install krita
sudo apt-get install kde-l10n-zhtw
2.安裝inkscape 以synaptic 來裝是中文版
sudo apt-get install krita
sudo apt-get install kde-l10n-zhtw
2.安裝inkscape 以synaptic 來裝是中文版
2011年9月5日 星期一
ubuntu 1104 開啟 php
etc/apach2/mods-available/php5.conf
以下藍色是要加的(#)
IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
#</IfModule>
</IfModule>
以下藍色是要加的(#)
IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
#</IfModule>
</IfModule>
安裝mysql&phpmyadmin
1.檢查有沒有裝mysql
netstat -lntp 有沒有 port 3306
2.若沒有 port 3306
==>伺服快樂架 或使用
==>卓老師的 enMysql.sh
3. 使用 enMysql.sh
sudo enMysql.sh (設定mysql 的密碼 和安裝phpmyadmin)
4.哇! 要增加phpmyadmin 的存取範圍
/etc/apache2/conf.d/ra-phpmyadmin
<Location /phpmyadmin>
order deny,allow
deny from all
# 可連線區
allow from 127.0.0.1 ::1 0.0.0.0/24 192.168.1.0/24
Options FollowSymLinks MultiViews
</Location>
5.重啟 apache
sudo service apache2 restart
netstat -lntp 有沒有 port 3306
2.若沒有 port 3306
==>伺服快樂架 或使用
==>卓老師的 enMysql.sh
3. 使用 enMysql.sh
sudo enMysql.sh (設定mysql 的密碼 和安裝phpmyadmin)
4.哇! 要增加phpmyadmin 的存取範圍
/etc/apache2/conf.d/ra-phpmyadmin
<Location /phpmyadmin>
order deny,allow
deny from all
# 可連線區
allow from 127.0.0.1 ::1 0.0.0.0/24 192.168.1.0/24
Options FollowSymLinks MultiViews
</Location>
5.重啟 apache
sudo service apache2 restart
2011年8月29日 星期一
ubuntu 裝 KompoZer及中文化
1. 使用 synaptic 套件管理程式 ==>搜寻 KompoZer
2.安装中文化 下载 http://kompozer.net/download.php
==>Dictionaries and Language Packs
3. 开启 KompoZer ==> tools==>add-ons ==>Extentions ==> install... ==>
kompozer-0.8b3.zh-TW.xpi
2.安装中文化 下载 http://kompozer.net/download.php
==>Dictionaries and Language Packs
3. 开启 KompoZer ==> tools==>add-ons ==>Extentions ==> install... ==>
kompozer-0.8b3.zh-TW.xpi
2011年8月25日 星期四
ubuntu 新建置後增root pwd
sudo passwd root
===========
還是寫一下好了 今天重灌ubuntu 要新增root 密碼
打成 su passwd root ==>結果給我的回應是 未知的id passwd
最後還是找谷溝大神 原來是sudo 而不是su
唉!!!
===========
還是寫一下好了 今天重灌ubuntu 要新增root 密碼
打成 su passwd root ==>結果給我的回應是 未知的id passwd
最後還是找谷溝大神 原來是sudo 而不是su
唉!!!
2011年8月22日 星期一
ip 擴充 準備事項
ip擴充倒數
由於是使用新的作業系統 所以提前先裝DNS server
安裝流程如下
1.找一下汰換掉的電腦裝 ubuntu11.4
2.裝一下 flashplayer gcin
3.伺服器快樂架
先從網路介面設定 ==>networkmanager
按下去後出現 網路連線介面 =>加入
先從ipv4 設定 在來設定ipv6
4.電腦的網路卡 設定完後 在按server 管理的
啟動dns server
=================以上基本上就安裝好DNS server 了但是只有 .1有正反解所以其他電腦的正反解只能 從
正解檔 /etc/bind/db.dn2es.tnc.edu.tw
反解檔 /etc/bind/db.163.26.142
做完後 在重新啟動 service bind restart
========上面都做完了 可以收工了嗎??? 還沒
還要開 80 port 因為.1有轉址的服務 只好在 /var/www 加東西(已知有二個 index.php /bogi/index.htm)
在來還有 架在.1 的資料庫 和 /home 內的網頁也要轉移
由於是使用新的作業系統 所以提前先裝DNS server
安裝流程如下
1.找一下汰換掉的電腦裝 ubuntu11.4
2.裝一下 flashplayer gcin
3.伺服器快樂架
先從網路介面設定 ==>networkmanager
按下去後出現 網路連線介面 =>加入
先從ipv4 設定 在來設定ipv6
4.電腦的網路卡 設定完後 在按server 管理的
啟動dns server
=================以上基本上就安裝好DNS server 了但是只有 .1有正反解所以其他電腦的正反解只能 從
正解檔 /etc/bind/db.dn2es.tnc.edu.tw
反解檔 /etc/bind/db.163.26.142
做完後 在重新啟動 service bind restart
========上面都做完了 可以收工了嗎??? 還沒
還要開 80 port 因為.1有轉址的服務 只好在 /var/www 加東西(已知有二個 index.php /bogi/index.htm)
在來還有 架在.1 的資料庫 和 /home 內的網頁也要轉移
2011年7月27日 星期三
ssh 來備份
1.產生key)ssh-keygen (都按enter <==此臺為clinet 端)
2.要到server 的機器 建 .ssh
cd (按enter)
mkdir .ssh
3.在clinet 端 執行 (將key送至server端)
cat ~/.ssh/id_rsa.pub | ssh -l root 192.168.1.64 "cat - >> ~/.ssh.authorizd_keys"
4.在來是 ssh 備份 (/opt/tools)
修改ensshRsync.sh的內容(see 卓老師的講義http://kawsing.blogspot.com/)
修改:gedit ensshRsync.sh,把以下的紅字的部份改為適合自己的參數
#本地端要備份的目錄
backuplist="/var/www /srv/ftp"
#遠端備份主機的IP OR DomainName
remote="192.168.1.64"
#備份的目錄名稱
remoteDIR="/root/backup"
5. ./ensshRsync.sh (在client端)
2.要到server 的機器 建 .ssh
cd (按enter)
mkdir .ssh
3.在clinet 端 執行 (將key送至server端)
cat ~/.ssh/id_rsa.pub | ssh -l root 192.168.1.64 "cat - >> ~/.ssh.authorizd_keys"
4.在來是 ssh 備份 (/opt/tools)
修改ensshRsync.sh的內容(see 卓老師的講義http://kawsing.blogspot.com/)
修改:gedit ensshRsync.sh,把以下的紅字的部份改為適合自己的參數
#本地端要備份的目錄
backuplist="/var/www /srv/ftp"
#遠端備份主機的IP OR DomainName
remote="192.168.1.64"
#備份的目錄名稱
remoteDIR="/root/backup"
5. ./ensshRsync.sh (在client端)
webmin 的設定
/etc/init.d/webmin start
https://localhost:10000
若自建的fw有擋到則 ==>
則要啟動fw==> 加入 進階 from 192.168.1.0/24
to 100000
https://localhost:10000
若自建的fw有擋到則 ==>
則要啟動fw==> 加入 進階 from 192.168.1.0/24
to 100000
2011年7月26日 星期二
ubuntu 裝 ooo3.3
資料來源:==>http://foolfitz.blog124.fc2.com/blog-entry-100.html
一、如果你之前有裝OpenOffice的話,記得要先把OO.o移除掉:
二、把Libr 1Office加入Ubuntu的第三方軟體來源:
四、自動安裝LibreOffice
一、如果你之前有裝OpenOffice的話,記得要先把OO.o移除掉:
sudo apt-get purge openoffice*.*
二、把Libr 1Office加入Ubuntu的第三方軟體來源:
sudo add-apt-repository ppa:libreoffice/ppa
三、重新整理PPA源
sudo apt-get update
四、自動安裝LibreOffice
2011年7月25日 星期一
ubuntu 11.4 製作nat
資料來源 http://myip.tw/itsmw/index.php/
基本:
1.python3.1.x, python3-tk(8.5以上)
2.兩張網卡 先設定好
3.下載 yhtools
wget http://myip.tw/download/yhtools.tar.gz
wan 163.26.142.11
255.255.255.128
163.26.142.126
lan 192.168.1.254
255.255.255.0
按esc 後 會產生 一個檔案 rc.local
4. 再將產生的rc.local 把 /etc/rc.local 覆蓋住
5. service rc.local start
基本:
1.python3.1.x, python3-tk(8.5以上)
- apt-get update
- apt-get install python3 python3-tk
2.兩張網卡 先設定好
3.下載 yhtools
wget http://myip.tw/download/yhtools.tar.gz
tar xzvf yhtools.tar.gz
./fw4nat.pyw ==>會出現一個視窗 wan 163.26.142.11
255.255.255.128
163.26.142.126
lan 192.168.1.254
255.255.255.0
按esc 後 會產生 一個檔案 rc.local
4. 再將產生的rc.local 把 /etc/rc.local 覆蓋住
5. service rc.local start
2011年7月18日 星期一
ubuntu11 的samba 設定
剛建好ubuntu 如何建好samba
1.卓老師的伺服器快樂架 ==> 先把資料設定 正確填好 在來按NetWorkManager設定網路介面
選取要使用的網路連線 (還是選固定虛擬ip 192.168.1.12)
參考資料 http://myip.tw/itsmw/index.php/
大量建帳號 (參考資料 http://myip.tw/itsmw/index.php/)
下載yhtools 按照說明即可
每次批次增減帳號samba時 最好是 /etc/init.d/smbd stop
增減完後 在 /etc/init.d/smbd start
1.卓老師的伺服器快樂架 ==> 先把資料設定 正確填好 在來按NetWorkManager設定網路介面
選取要使用的網路連線 (還是選固定虛擬ip 192.168.1.12)
參考資料 http://myip.tw/itsmw/index.php/
大量建帳號 (參考資料 http://myip.tw/itsmw/index.php/)
下載yhtools 按照說明即可
每次批次增減帳號samba時 最好是 /etc/init.d/smbd stop
增減完後 在 /etc/init.d/smbd start
- 供 maccount.sh 使用的帳號密碼表「passwd.txt」,務必要先使用 dos2unix 指定轉換成 unix/linux 斷行符號的格式後,再繼續操作。
root@dns:~# dos2unix passwd.txt
root@dns:~# ./maccount.sh add passwd.txt (以大量新增帳號為例) - reference from ==> http://myip.tw/itsmw/index.php/YHTools
2011年7月12日 星期二
2011年6月1日 星期三
dns建置記實
1. 163.26.142.1 gateway 163.26.142.126 網段 163.26.142.0/25
2001:288:75BF::1 gateway 2001:288:75BF::???? 網段 2001:288:75BF::/64
2.網域 dn2es.tnc.edu.tw
dnps.tn.edu.tw
3.進入ubuntu 以其他使用者進入 來進行dns設定
sudo ./endns.sh
4.進行正反解修改(/etc/bind9)
5.檢查dns伺服器是否有開
netstat -lntp | grep 53
最後 rcconf (勾選bind)
相關ipv6網址
2001:288:75BF::1 gateway 2001:288:75BF::???? 網段 2001:288:75BF::/64
2.網域 dn2es.tnc.edu.tw
dnps.tn.edu.tw
3.進入ubuntu 以其他使用者進入 來進行dns設定
sudo ./endns.sh
4.進行正反解修改(/etc/bind9)
5.檢查dns伺服器是否有開
netstat -lntp | grep 53
最後 rcconf (勾選bind)
相關ipv6網址
2011年4月27日 星期三
2011年4月15日 星期五
ubuntu firefox 改成firefox4
sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get install firefox ubufox
https://addons.mozilla.org/zh-tw/firefox/addon/locale-switcher/
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/4.0/win32/xpi/zh-TW.xpi
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/4.0.1/win32/xpi/zh-TW.xpi
source from http://www.mobile01.com/topicdetail.php?f=512&t=2072275
firefox 12
http://forum.moztw.org/viewtopic.php?f=43&t=27672
然後地址欄輸入about:config
尋找general.useragent.locale
將原本的en-US修改為zh-TW
重啟後就變成中文介面
sudo apt-get update
sudo apt-get install firefox ubufox
https://addons.mozilla.org/zh-tw/firefox/addon/locale-switcher/
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/4.0.1/win32/xpi/zh-TW.xpi
source from http://www.mobile01.com/topicdetail.php?f=512&t=2072275
firefox 12
http://forum.moztw.org/viewtopic.php?f=43&t=27672
然後地址欄輸入about:config
尋找general.useragent.locale
將原本的en-US修改為zh-TW
重啟後就變成中文介面
2011年4月5日 星期二
TWubuntu_MiniServer 簡易記要
1.安裝 sudo ubiquity
2.手動分割 主分割區 置換空間swap
主分割區 ext4 掛載點 /
3.裝完後 轉成root身分
sudo passwd root
==>設定完後在登出 以root 登入
4.設成固定ip
/etc/network/interfaces
設dns
/etc/resolv.conf
重新啟動 /etc/init.d/networking restart
===========================
若重新開機 則 apache2 ftp 要重啓動
=======================
1.啓動apache
1)rcconf
2) /etc/init.d/apache2 start
目錄在 /var/www
3)啟用個人網頁模組
a2enmod userdir
4)重新啟動 Apache2
service apache2 restart
=================
1.啓動ssh
rcconfg 選ssh
2. /etc/init.d/ssh restart
3.查詢有無啓動
netstat -lntp | grep 22
===================
FTP服務
vi /etc/vsftpd.conf 取消# chroot_local_user=YES 取消# write_enable=YES
在重新啓動 ftp /etc/init.d/vsftpd start
================
xrdp的遠端桌面連線服務
===================
DNS服務
sudo /opt/tools/Server/endns.sh
netstat -ant | grep 53 (查dns 有無運作)
dig @192.168.1.103 up.test.edu.tw (在 .103 查up.test.edu.tw)
測試時 up.test.edu.tw (要先設置dns 是192.168.1.103)
===================
DHCP服務
===================
samba服務(139 445)
/etc/init.d/smbd start
建立smb帳號
1.必先要 有linux 帳號(adduser)
2.pdbedit -au username
公用資料夾在 /opt/samba
==================
php 執行
vi /etc/apache2/mods-available/php5.conf
(把以下的設定comment起來)
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
#</IfModule>
/etc/init.d/apache2 restart
===========================
Mysql + phpmyadmin
要在其他使用身份來做 不要以root 身份來做
sudo /otp/tools/Server/enMysql.sh
啓動mysql
service mysql start
使用nestat命令查看3306埠狀態:
~# netstat -an | grep 3306
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
從結果可以看出3306埠只是在IP 127.0.0.1上監聽,所以拒絕了其他IP的訪問。
==================================
解壓縮問題
1. RAR 是屬於 non-free 的套件, 所以預設 apt 是找不到的.
2最簡單的方法就是到 WinRAR 的官方網站下載 Linux 版本的 unrar 就可以囉
3method (reference from
http://blog.longwin.com.tw/2008/08/debian-ubuntu-linux-unrar-rar-2008/)
2.手動分割 主分割區 置換空間swap
主分割區 ext4 掛載點 /
3.裝完後 轉成root身分
sudo passwd root
==>設定完後在登出 以root 登入
4.設成固定ip
/etc/network/interfaces
設dns
/etc/resolv.conf
重新啟動 /etc/init.d/networking restart
===========================
若重新開機 則 apache2 ftp 要重啓動
=======================
1.啓動apache
1)rcconf
2) /etc/init.d/apache2 start
目錄在 /var/www
3)啟用個人網頁模組
a2enmod userdir
4)重新啟動 Apache2
service apache2 restart
=================
1.啓動ssh
rcconfg 選ssh
2. /etc/init.d/ssh restart
3.查詢有無啓動
netstat -lntp | grep 22
===================
FTP服務
vi /etc/vsftpd.conf 取消# chroot_local_user=YES 取消# write_enable=YES
在重新啓動 ftp /etc/init.d/vsftpd start
================
xrdp的遠端桌面連線服務
===================
DNS服務
sudo /opt/tools/Server/endns.sh
netstat -ant | grep 53 (查dns 有無運作)
dig @192.168.1.103 up.test.edu.tw (在 .103 查up.test.edu.tw)
測試時 up.test.edu.tw (要先設置dns 是192.168.1.103)
===================
DHCP服務
===================
samba服務(139 445)
/etc/init.d/smbd start
建立smb帳號
1.必先要 有linux 帳號(adduser)
2.pdbedit -au username
公用資料夾在 /opt/samba
==================
php 執行
vi /etc/apache2/mods-available/php5.conf
(把以下的設定comment起來)
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
#</IfModule>
/etc/init.d/apache2 restart
===========================
Mysql + phpmyadmin
要在其他使用身份來做 不要以root 身份來做
sudo /otp/tools/Server/enMysql.sh
啓動mysql
service mysql start
使用nestat命令查看3306埠狀態:
~# netstat -an | grep 3306
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
從結果可以看出3306埠只是在IP 127.0.0.1上監聽,所以拒絕了其他IP的訪問。
==================================
解壓縮問題
1. RAR 是屬於 non-free 的套件, 所以預設 apt 是找不到的.
2最簡單的方法就是到 WinRAR 的官方網站下載 Linux 版本的 unrar 就可以囉
3method (reference from
http://blog.longwin.com.tw/2008/08/debian-ubuntu-linux-unrar-rar-2008/)
- wget http://www.rarlab.com/rar/rarlinux-3.8.b4.tar.gz
- tar zxvf rarlinux-3.8.b4.tar.gz
- cd rar ; cp rar /usr/bin; cp unrar /usr/bin
- 測試: unrar x xxx.rar
訂閱:
文章 (Atom)
