更改 CentOS 7 的網路卡代號

CentOS 7 的網路卡代號捨棄了原本熟悉的 ethx
# ls -l /etc/sysconfig/network-scripts/ifcfg-*
-rw-r–r–. 1 root root 326  7月 10 19:24 /etc/sysconfig/network-scripts/ifcfg-eno16777736
-rw-r–r–. 1 root root 254  4月  2 23:30 /etc/sysconfig/network-scripts/ifcfg-lo

網路卡設定
# cat /etc/sysconfig/network-scripts/ifcfg-eno16777736
HWADDR=”00:0C:29:A6:22:15″
TYPE=”Ethernet”
BOOTPROTO=”dhcp”
DEFROUTE=”yes”
PEERDNS=”yes”
PEERROUTES=”yes”
IPV4_FAILURE_FATAL=”no”
IPV6INIT=”yes”
IPV6_AUTOCONF=”yes”
IPV6_DEFROUTE=”yes”
IPV6_PEERDNS=”yes”
IPV6_PEERROUTES=”yes”
IPV6_FAILURE_FATAL=”no”
NAME=”eno16777736″
UUID=”7e2c54c0-a09d-45ca-a074-7ed5d5d8ed32″
ONBOOT=”yes”[@more@]修改方式:參考 Change default network name to old “eth0″ on RHEL 7 / Fedora 19 above | eSuarez Notes
修改 /etc/default/grub
GRUB_CMDLINE_LINUX 後加上 net.ifnames=0 biosdevname=0
# vim /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=”$(sed ‘s, release .*$,,g’ /etc/system-release)”
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT=”console”
GRUB_CMDLINE_LINUX=”rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us rhgb quiet net.ifnames=0 biosdevname=0
GRUB_DISABLE_RECOVERY=”true”

產生新的 grub 設定檔
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file …
Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img
Warning: Please don’t use old title `CentOS Linux, with Linux 3.10.0-123.el7.x86_64′ for GRUB_DEFAULT, use `Advanced options for CentOS Linux>CentOS Linux, with Linux 3.10.0-123.el7.x86_64′ (for versions before 2.00) or `gnulinux-advanced-caeda11c-71b9-4cc4-961b-b4541b247804>gnulinux-3.10.0-123.el7.x86_64-advanced-caeda11c-71b9-4cc4-961b-b4541b247804′ (for 2.00 or later)
Found linux image: /boot/vmlinuz-0-rescue-07f9be0c0fc843ce885a7539150c8e55
Found initrd image: /boot/initramfs-0-rescue-07f9be0c0fc843ce885a7539150c8e55.img
done

直接把 ifcfg-enoxxx 改成 ifcfg-eth0
# mv /etc/sysconfig/network-scripts/ifcfg-eno16777736 /etc/sysconfig/network-scripts/ifcfg-eth0

修改網路卡代號
# sed -i ‘s/eno16777736/eth0/g’ /etc/sysconfig/network-scripts/ifcfg-eth0

NAME=eth0 
DEVICE=eth0

重新開機
# sync;sync;sync;sync;shutdown -r

網路卡代號已更改
# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.109  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::20c:29ff:fea6:2215  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:a6:22:15  txqueuelen 1000  (Ethernet)
        RX packets 128  bytes 12595 (12.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 125  bytes 16864 (16.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

關閉或啟用 CentOS 7 上的 Service

以 postfix 為例
關閉 postfix
# service postfix stop
Redirecting to /bin/systemctl stop  postfix.service

預設不啟用 postfix
# chkconfig postfix off
注意:正在轉送請求至「systemctl disable postfix.service」。
rm ‘/etc/systemd/system/multi-user.target.wants/postfix.service’

啟動 postfix
# service postfix start
Redirecting to /bin/systemctl start  postfix.service

預設啟用 postfix
# chkconfig postfix on
注意:正在轉送請求至「systemctl enable postfix.service」。
ln -s ‘/usr/lib/systemd/system/postfix.service’ ‘/etc/systemd/system/multi-user.target.wants/postfix.service’
由上面可以發現 CentOS 7.x 和之前的 CentOS 6.x/5.x 處理方式有些不同[@more@]使用 service 時已經改用 systemctl 來做處理
使用 chkconfig 時,是把在 /usr/lib/systemd/system 目錄下的 service 服務名稱 在 /etc/systemd/system/multi-user.target.wants 目錄之下做建立連結或刪除連結

直接使用 systemctl 來做處理

啟動 postfix
# systemctl start postfix
# systemctl start postfix.service

關閉 postfix
# systemctl stop postfix
# systemctl stop postfix.service

預設啟用 postfix
# systemctl enable postfix
# systemctl enable postfix.service
ln -s ‘/usr/lib/systemd/system/postfix.service’ ‘/etc/systemd/system/multi-user.target.wants/postfix.service’

預設不啟用 postfix
# systemctl disable postfix
rm ‘/etc/systemd/system/multi-user.target.wants/postfix.service’
# systemctl disable postfix.service
rm ‘/etc/systemd/system/multi-user.target.wants/postfix.service’

列出所有 service 的啟用狀態
# systemctl list-unit-files
UNIT FILE                                   STATE
proc-sys-fs-binfmt_misc.automount           static
dev-hugepages.mount                         static
dev-mqueue.mount                            static
proc-fs-nfsd.mount                          static
proc-sys-fs-binfmt_misc.mount               static
sys-fs-fuse-connections.mount               static
sys-kernel-config.mount                     static
sys-kernel-debug.mount                      static
tmp.mount                                   disabled
var-lib-nfs-rpc_pipefs.mount                static
brandbot.path                               disabled
systemd-ask-password-console.path           static
systemd-ask-password-plymouth.path          static
systemd-ask-password-wall.path              static
session-1.scope                             static
session-2.scope                             static
session-4.scope                             static
abrt-ccpp.service                           enabled
abrt-oops.service                           enabled
abrt-pstoreoops.service                     disabled
abrt-vmcore.service                         enabled
abrt-xorg.service                           enabled
abrtd.service                               enabled
arp-ethers.service                          disabled
atd.service                                 enabled
auditd.service                              enabled
autovt@.service                             disabled

CentOS 7.x 第三方套件庫

RPMForge
http://pkgs.repoforge.org/
http://packages.sw.be/
x86_64 – http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

安裝方式:
下載 rpmforge-release 套件
# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

安裝 DAG 的 GPG 金鑰
# rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt

安裝套件
# rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
# sed -i ‘s/enabled = 1/enabled = 0/g’ /etc/yum.repos.d/rpmforge.repo[@more@]

EPEL 全名叫做 Extra Packages for Enterprise Linux,有許多可以安裝的套件
http://fedoraproject.org/wiki/EPEL

CentOS 7.x
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
# rpm –import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
# rpm -ivh epel-release-7-5.noarch.rpm
# sed -i ‘s/enabled=1/enabled=0/g’ /etc/yum.repos.d/epel.repo

ELRepo http://elrepo.org/tiki/tiki-index.php
# rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

Remi:http://rpms.famillecollet.com/
CentOS 7.x
要先安裝 EPEL
# rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm

# wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# rpm -ivh remi-release-7.rpm

列出支援的套件庫
# yum repolist
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.isu.edu.tw
 * epel: ftp.cuhk.edu.hk
 * epel-debuginfo: ftp.cuhk.edu.hk
 * epel-source: ftp.cuhk.edu.hk
 * extras: ftp.isu.edu.tw
 * rpmforge: mirrors.digipower.vn
 * rpmforge-extras: mirrors.digipower.vn
 * rpmforge-testing: mirrors.digipower.vn
 * updates: ftp.isu.edu.tw
repo id                                                                                           repo name                                                                                                                            status
base/7/x86_64                                                                                     CentOS-7 – Base                                                                                                                      8,465
epel/x86_64                                                                                       Extra Packages for Enterprise Linux 7 – x86_64                                                                                       4,715
epel-debuginfo/x86_64                                                                             Extra Packages for Enterprise Linux 7 – x86_64 – Debug                                                                               1,154
epel-source/x86_64                                                                                Extra Packages for Enterprise Linux 7 – x86_64 – Source                                                                                  0
extras/7/x86_64                                                                                   CentOS-7 – Extras                                                                                                                       30
rpmforge                                                                                          RHEL 7 – RPMforge.net – dag                                                                                                            245
rpmforge-extras                                                                                   RHEL 7 – RPMforge.net – extras                                                                                                          10
rpmforge-testing                                                                                  RHEL 7 – RPMforge.net – testing                                                                                                          4
updates/7/x86_64                                                                                  CentOS-7 – Updates                                                                                                                     326
repolist: 14,949

systemctl 指令

之前使用 CentOS 時,安裝伺服器套件後,大部分都是使用 chkconfig 來啟動預設要啟動的服務,或是直接到 /etc/init.d 目錄之下,去啟動要使用的服務,可是安裝 CentOS 7 之後,發現 /etc/init.d 目錄下的檔案非常的少,似乎新版本的 CentOS 服務,都不是使用這樣的啟動方式。
# ls /etc/init.d
functions  iprdump  iprinit  iprupdate  netconsole  network  README

後來在網路搜尋了一下,才發現好像是改用 systemctl 指令來做控制。[@more@]systemctl 指令參數
# systemctl –help
systemctl [OPTIONS…] {COMMAND} …

Query or send control commands to the systemd manager.

  -h –help           Show this help
     –version        Show package version
  -t –type=TYPE      List only units of a particular type
     –state=STATE    List only units with particular LOAD or SUB or ACTIVE state
  -p –property=NAME  Show only properties by this name
  -a –all            Show all loaded units/properties, including dead/empty
                      ones. To list all units installed on the system, use
                      the ‘list-unit-files’ command instead.
     –reverse        Show reverse dependencies with ‘list-dependencies’
  -l –full           Don’t ellipsize unit names on output
     –fail           When queueing a new job, fail if conflicting jobs are
                      pending
     –irreversible   When queueing a new job, make sure it cannot be implicitly
                      cancelled
     –ignore-dependencies
                      When queueing a new job, ignore all its dependencies
     –show-types     When showing sockets, explicitly show their type
  -i –ignore-inhibitors
                      When shutting down or sleeping, ignore inhibitors
     –kill-who=WHO   Who to send signal to
  -s –signal=SIGNAL  Which signal to send
  -H –host=[USER@]HOST
                      Show information for remote host
  -P –privileged     Acquire privileges before execution
  -q –quiet          Suppress output
     –no-block       Do not wait until operation finished
     –no-wall        Don’t send wall message before halt/power-off/reboot
     –no-reload      When enabling/disabling unit files, don’t reload daemon
                      configuration
     –no-legend      Do not print a legend (column headers and hints)
     –no-pager       Do not pipe output into a pager
     –no-ask-password
                      Do not ask for system passwords
     –system         Connect to system manager
     –user           Connect to user service manager
     –global         Enable/disable unit files globally
     –runtime        Enable unit files only temporarily until next reboot
  -f –force          When enabling unit files, override existing symlinks
                      When shutting down, execute action immediately
     –root=PATH      Enable unit files in the specified root directory
  -n –lines=INTEGER  Number of journal entries to show
  -o –output=STRING  Change journal output mode (short, short-monotonic,
                      verbose, export, json, json-pretty, json-sse, cat)
     –plain          Print unit dependencies as a list instead of a tree

Unit Commands:
  list-units                      List loaded units
  list-sockets                    List loaded sockets ordered by address
  start [NAME…]                 Start (activate) one or more units
  stop [NAME…]                  Stop (deactivate) one or more units
  reload [NAME…]                Reload one or more units
  restart [NAME…]               Start or restart one or more units
  try-restart [NAME…]           Restart one or more units if active
  reload-or-restart [NAME…]     Reload one or more units if possible,
                                  otherwise start or restart
  reload-or-try-restart [NAME…] Reload one or more units if possible,

啟動 vsftpd FTP Server
# systemctl start vsftpd

顯示 vsftpd FTP Server 狀態
# systemctl status vsftpd
vsftpd.service – Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled)
   Active: active (running) since 四 2014-07-10 20:34:41 CST; 41s ago
  Process: 34160 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 34161 (vsftpd)
   CGroup: /system.slice/vsftpd.service
           └─34161 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

 7月 10 20:34:41 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon…
 7月 10 20:34:41 localhost.localdomain systemd[1]: Started Vsftpd ftp daemon.

關閉 vsftpd FTP Server
# systemctl stop vsftpd

列出 vsftpd FTP Server 啟動狀態
# systemctl list-unit-files | grep vsftpd
vsftpd.service                              disabled
vsftpd@.service                             disabled
vsftpd.target                               disabled

開機時啟動 vsftpd FTP Serve
# systemctl enable vsftpd
ln -s ‘/usr/lib/systemd/system/vsftpd.service’ ‘/etc/systemd/system/multi-user.target.wants/vsftpd.service

檢查是否有設定成功
# systemctl list-unit-files | grep vsftpd
vsftpd.service                              enabled
vsftpd@.service                             disabled
vsftpd.target                               disabled

# systemctl is-active vsftpd
inactive

開機時關閉 vsftpd FTP Serve
# systemctl disable vsftpd
rm ‘/etc/systemd/system/multi-user.target.wants/vsftpd.service’

檢查是否有設定成功
# systemctl list-unit-files | grep vsftpd
vsftpd.service                              disabled
vsftpd@.service                             disabled
vsftpd.target                               disabled

顯示目前系統預設運作層級
# systemctl get-default
multi-user.target

切換運作層級至 GUI 模式(runlevel 5)
# systemctl isolate graphical.target

切換運作層級至文字模式(runlevel 3)
# systemctl isolate multi-user.target

設定開機啟動至文字模式(runlevel 3)
# systemctl set-default multi-user.target

設定開機啟動至 GUI 模式(runlevel 5)
# systemctl set-default graphical.target

列出可用的層級
# systemctl list-units –type target
UNIT                  LOAD   ACTIVE SUB    DESCRIPTION
basic.target          loaded active active Basic System
cryptsetup.target     loaded active active Encrypted Volumes
getty.target          loaded active active Login Prompts
local-fs-pre.target   loaded active active Local File Systems (Pre)
local-fs.target       loaded active active Local File Systems
multi-user.target     loaded active active Multi-User System
network-online.target loaded active active Network is Online
network.target        loaded active active Network
nss-lookup.target     loaded active active Host and Network Name Lookups
paths.target          loaded active active Paths
remote-fs.target      loaded active active Remote File Systems
slices.target         loaded active active Slices
sockets.target        loaded active active Sockets
sound.target          loaded active active Sound Card
swap.target           loaded active active Swap
sysinit.target        loaded active active System Initialization
timers.target         loaded active active Timers

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

17 loaded units listed. Pass –all to see loaded but inactive units, too.
To show all installed unit files use ‘systemctl list-unit-files’.

試裝 CentOS 7.0.1406 版

光碟開機畫面,選擇 Install CentOS 7
[@more@]選擇 中文語系,然後按 繼續

安裝來源設定

支援網路安裝

選擇安裝的軟體

視需求安裝所需軟體

最後按 完成

硬碟分割

硬碟分割畫面

網路設定

網路設定畫面

選擇 開始安裝

設定 root 密碼

root 密碼設定畫面

安裝完成,按 重新開機

感覺新版本的 CentOS 7 和之前的版本相差很多,整個安裝方式,雖然還是使用 anaconda,但覺得很難用,尤其是軟體安裝的部分,沒有自定安裝的部分,資料庫部分改成了 MariaDB資料庫。
安裝完成之後,可能還要花一些時間移除一些不須要的程式,和加裝一些自己習慣的程式。

CentOS 7.0.1406 版

CentOS 7.0.1406 版,目前只有 x86_64 版本
CentOS 官方網站:https://www.centos.org/
更多關於 CentOS 7 的介紹:CentOS 7 首个版本发布——Docker强势来袭
[@more@]
點選 DVD ISO

下載網站
http://ftp.nsysu.edu.tw/CentOS/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso
http://ftp.tc.edu.tw/Linux/CentOS/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso
http://mirror01.idc.hinet.net/CentOS/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso
http://ftp.isu.edu.tw/pub/Linux/CentOS/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso
http://ftp.stu.edu.tw/Linux/CentOS/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso
http://ftp.stust.edu.tw/pub/Linux/CentOS/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso

Clipbucket 2.7-Beta 版

Clipbucket 2.7-Beta 版釋出,更詳細的說明,請參考官方網站:http://clip-bucket.com/

Clipbucket 2.7-Beta 下載:
# wget http://downloads.sourceforge.net/project/clipbucket/Clipbucket%20V2.7/Clipbucket%20V2.7-Beta-REV2454.zip
[@more@]安裝方式:
1. 解壓縮
# unzip Clipbucket V2.7-Beta-REV2454.zip -d /var/www/html

2. 搬移網頁目錄到網頁根目錄
# cd /var/www/html/Clipbucket V2.7-Beta-REV2454
# mv Upload ../Clipbucket27b

3. 刪除不必要的目錄
# rm -rf “/var/www/html/Clipbucket V2.7-Beta-REV2454”

4.開始安裝
請參考:頭城國小資訊組 | 在 CentOS 6.x 上安裝 ClipBucket

稍微試用了一下,感覺最大的不同是影片上傳的介面稍有不同

選擇要上傳的是 Video or Photo

可以用拖曳或按下方的 Select Videos

上傳完的介面

但要觀看上傳好的影片時,出現錯誤訊息

後來檢查了一下,影片上傳的目錄,發現似乎是檔案沒有轉換成功,在最後的目錄中找不到轉換成功的檔案
在新版中可以轉換失敗

在舊版中可以轉換成功

但同樣的影片檔,在 Clipbucket 2.6 版上卻沒有問題,所以目前還是先使用舊的版本。

在 ClipBucket 網站中上傳影片

1. 首先先登入網站,選擇右上角的 Upload video

2. 系統會自動亂數產生一個 key 值,請點選 key 值
[@more@]3. 選擇要上傳的影片,並按 開啟

4. 輸入影片的相關資訊,並最後點選 儲存資料

5. 在我的影片頁面中可以看到目前正在轉檔中

6. 轉檔成功

7. 按 VIEW 即可觀看影片

8. 觀看成果

ClipBucket 增加中文語系

ClipBucket 中文語系下載

登入管理後台後,選擇 Status And Configurations
[@more@]選擇 Language Settings

在 Add New Language 中,選擇 瀏覽

選擇已經下載並解壓縮的 xml 檔

選擇 Add Language

畫面中會多出現 繁體中文

點選 繁體中文,把預設的語系改成繁體中文

這時畫面大部分也會顯示中文,有少部分仍要手動修改

在 CentOS 6.x 上安裝 ClipBucket

ClipBucket 是一套 OpenSource 的影音平台網站,可以讓使用者上傳影片,做為分享及交流使用。
ClipBucket SoureForge 官方網站:http://sourceforge.net/projects/clipbucket/

底下是在 CentOS 6.x x64 下進行安裝
本篇文章參考:
Garry’s 筆記: CentOS 6 安裝 ClipBucket 2.6
clipbucket教學

1. 安裝編繹套件
# yum groupinstall ‘Development Tools’ -y

2. 安裝 zlib-devel 套件
# yum install zlib-devel[@more@]3. 安裝 ffmpeg 套件
# yum install ffmpeg –enablerepo=rpmforge

4. 安裝 flvtool2 套件
# yum install flvtool2 –enablerepo=rpmforge

5. 安裝 mplayer 套件
# yum install mplayer –enablerepo=rpmforge

6. 安裝 mod_flvx 套件
# yum install mod_flvx –enablerepo=epel

7. 安裝 yasm 套件
# yum install yasm –enablerepo=rpmforge

8. 安裝 MP4Box 安裝 0.4.5 版或 0.5.0 版
下載
# wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.5.0.tar.gz
# wget http://downloads.sourceforge.net/gpac/gpac-0.5.0.tar.gz
解壓縮
# tar xvzf gpac-0.5.0.tar.gz
# tar xvzf gpac_extra_libs-0.5.0.tar.gz
下載
# wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.4.5.tar.gz
# wget http://downloads.sourceforge.net/gpac/gpac-0.4.5.tar.gz
解壓縮
# tar -zxvf gpac-0.4.5.tar.gz
# tar -zxvf gpac_extra_libs-0.4.5.tar.gz
切換目錄
# cd gpac
複製檔案及目錄
# cp -r ../gpac_extra_libs/* extra_lib/
更改檔案權限
# chmod 755 configure
進行編譯及安裝
# ./configure
# make lib
# make apps
# make install
# cp bin/gcc/libgpac.so /usr/lib
# ldconfig
# cp /usr/local/bin/MP4* /usr/bin/

9. 下載 ClipBucket 及安裝
# cd /var/www/html
# wget http://downloads.sourceforge.net/project/clipbucket/ClipBucket%20v2/clipbucket-2.6-r738-security-fixed.zip
# unzip clipbucket-2.6-r738-security-fixed.zip
# mv clipbucket-2.6-r738-security-fixed/upload clipbucket

10. 更改檔案及目錄權限
# chmod 777 clipbucket/includes
# chmod 777 clipbucket/files
# chmod 777 clipbucket/files/conversion_queue
# chmod 777 clipbucket/files/logs
# chmod 777 clipbucket/files/original
# chmod 777 clipbucket/files/temp
# chmod 777 clipbucket/files/thumbs
# chmod 777 clipbucket/files/photos
# chmod 777 clipbucket/files/videos
# chmod 777 clipbucket/files/mass_uploads
# chmod 777 clipbucket/files/temp/install.me
# chmod 777 clipbucket/images
# chmod 777 clipbucket/images/avatars
# chmod 777 clipbucket/images/backgrounds
# chmod 777 clipbucket/images/collection_thumbs
# chmod 777 clipbucket/images/category_thumbs
# chmod 777 clipbucket/images/groups_thumbs
# chmod 777 clipbucket/includes/langs/en.lang
# chmod 777 clipbucket/cache
# chmod 777 clipbucket/cache/comments
# chmod 777 clipbucket/cache/userfeeds
# chmod 777 clipbucket/cb_install

# wget http://dinno.blog.phc.edu.tw/files/2012/05/cb_lang_zh_tw.zip
# unzip cb_lang_zh_tw.zip
# mv cb_lang_zh_tw.xml clipbucket/includes/langs
# chmod 777 clipbucket/includes/langs/cb_lang_zh_tw.xml

11. 建立 ClipBucket 資料庫
# /usr/bin/mysqladmin -u root -p create ClipBucket

12. 修改 /etc/php.ini
# vim /etc/php.ini
max_execution_time = 300
max_input_time = 600
memory_limit = 512M
post_max_size =1024M
upload_max_filesize=1024M
# 開啟這項才能看到 ClipBucket安裝畫面
short_open_tag = On
date.timezone = “Asia/Taipei”

重新啟動 Apache Web Server
# service httpd restart

13. 進行安裝

14. 系統環境檢測
PHP Shield 未安裝,不過這一項設定可以暫不用設定

15. 目錄及檔案的權限檢查

16. 資料檔名稱、管理者帳號及密碼設定

17. 如果之前沒有先建立資料庫,則會出現錯誤訊息

18. 設定管理者的帳號及密碼

19. ClipBucket 站台的相關設定

20. 站台註冊

21. 為了系統安全,安裝完成後,請刪除 clipbucket/cb_install 目錄
# rm -rf /var/www/html/clipbucket/cb_install

22. 按 Continue to Admin Area 可以到管理後台

23. 按 Continue to Clipbucker v2 可以到 ClipBucker 的前台

24. 輸入管理者的帳號及密碼

25. ClipBucket 的管理後台

26. ClipBucket 的前台