[linux]用shell script安裝swfed

在上一篇[flash lite 2.0 & php]在flash lite中動態換圖片中說到swfed這個好東西

不過在使用前還是要先在server上安裝好
如果只有一台也就算了
偏偏這次的手機遊戲總共包括了30台前端server跟兩台DB還有一台admin&test server
即使扣掉DB也夠讓兩個工程師裝到眼花花了

這時就不得不讚嘆一下shell script的方便拉
下載後解壓縮到各server的相同路徑下(/var/www/html/app/dl/swfed-0.20/src/)
參考官網做好shell檔(setup.sh):
繼續閱讀

在centOS上安裝ec-cube

把WWW SERVER跟MYSQL設定好後很愉快的要來安裝測試用的ec-cube
還以為靠著在IIS上安裝過的經驗應該要很順利
卻卡了一個晚上才解決…
小小的再來筆記一下吧

  1. 下載EC-CUBE
  2. 用tar zxvfp eccube-2.3.3.tar.gz解壓縮
    那個”P”很重要
    不然等一下就要一個個的資料夾調整權限
  3. “完整”的設定好MYSQL
    • yum install php-mbstring
    • yum install php-mcrypt
    • 新建一個資料表
  4. 可以正常開始安裝了~

如果沒有啟動mbstring跟mcrypt
會在複製檔案那一步就變成全白的畫面…..
而之下的步驟有需要的話就參考一下ec-cube安裝流程

CentOS 5.2(Linux)上設定SAMBA Serevr

samba是LINUX為了要與WINDOWS可以再NETWORK(網路的芳鄰)共享檔案的服務
參考了鳥哥的文章
先確定

  1. samba
  2. samba-common
  3. samba-client

三個套件都已經裝了
之後因為我是剛裝完就先裝SAMBA
所以原本應該先設定的/etc/sysconfig/i18n就現在一起設定:

1
2
3
4
LANG="zh_TW.UTF-8"
SUPPORTED="zh_HK.UTF-8:zh_HK
zh_SG:zh:zh_TW.UTF-8:zh_TW:z
SYSFONT="latarcyrheb-sun16"

再來是主要的設定檔/etc/samba/smb.conf:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[global]
        workgroup = workgroup
        netbios name = justC5
        server string = Just samba server
        unix charset = utf8
        display charset = utf8
        dos charset = cp950
        log file = /var/log/samba/%m.log
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = no
        template shell = /bin/false
        winbind use default domain = no
 
        security = user
        encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd
 
        name resolve order = lmhosts bcast host
 
[homes]
        comment = Home directories
        browseable = no
        writeable = yes
        valid users = %S
        create mask = 0664
        directory mask = 0775
[share]
        comment = the user groups work directory
        path = /share
        guest ok = yes
        writeable = yes
[temp]
        comment = Temporary file space
        path = /tmp
        writeable = yes
        guest ok = yes

繼續閱讀