為了玩beryl...
所以,把小黑的FC5給f掉....
到義守大學的ftp抓了fc6...
已經餵小黑吃fc6了...
之前的fc5的解析度..沒有現在fc6那麼清楚...(現在抓到正常的1280*800....之前的fc5是800*600 -.-)
現在用pcmanx看起來好清楚...
不像在fc5...眼睛看了都會酸...
 
 
最近都沒有在fc5玩其他東西..一方面工作也比較忙...
倒是為了備份專研中心的軟體派送主機..而把drbl裝在小黑上...
改天再來補一篇drbl-server的"架設"..:P
^^
 
 

shlin 發表在 痞客邦 留言(0) 人氣()


 
(本篇節錄自 http://140.111.152.5/plog/index.php?op=ViewArticle&articleId=1302&blogId=1 )
 
windows下可以用winamp來聽mp3...
那在Linux下..就可以用xmms來聽mp3...
兩者的界面差不多..
 
# yum -y install xmms xmms-mp3 xmms-wma  這一行下了,就裝好了~
 
-------------------------------------------------------------------------------------------------------------------------------------------------
xmms 是一套老字號的 mp3 音樂檔播放程式,它的界面很像 Windows 平台上的 Winamp,而且也支援 Winamp 的 Skin,所以我記得它是當時聽 mp3 的不二選擇。不過由於它是 base on gtk1 的程式,在現在的 Fedora Core 5 上跑起來問題很多,一般人大概都會建議安裝 bmp(Beep Media Player)來取代它,因為 bmp 也可以支援 Winamp 的 Skin,但有一點是我特別喜歡 xmms 而 bmp 無法取代它的,那就是 xmms 可以設定在每次播放不同的歌曲時,隨機更換 Skin,感覺很炫!
在 Fedora Core 5 下安裝 xmms,系統必須要有 extras 和 freshrpms 套件庫
安裝完成的執行畫面
 
發現選單全變成亂碼!
後來在網路上搜尋了一下,找到一篇解決的方法:http://inse2005.spaces.msn.com/blog/cns!F384BBC6107C1D3F!340.entry
原來是系統中沒有安裝 taipeifonts 字形,所以只要安裝了 taipeifonts 字形,應該就可以解決這個問題!
我重新編譯了 taipeifonts,讓它安裝到正確的路徑,因為原來安裝的路徑是 /usr/X11R6/lib/X11/fonts,而正確的路徑應該是 /usr/share/X11/fonts,安裝完成請重新開機,這時候再執行 xmms 畫面就正常了!
 
不過解決了選單亂碼的問題,播放 mp3 時,無法顯示正確的中文檔名的問題,還是找不到解決的方法,仍在苦惱中!
下載 taipeifonts-1.2-23.noarch.rpm
安裝方式
rpm -Uvh taipeifonts-1.2-23.noarch.rpm
安裝完成之後,記得要重新啟動一下電腦,不是登出再重新登入喔!
PS:後記 2006/10/07 已解決亂碼問題
選項/喜好設定/字形
播放清單:-taipei-*-medium-r-normal--*-*-*-*-*-*-big5-0
使用 X 字形:-taipei-*-medium-r-normal--*-*-*-*-*-*-big5-0

shlin 發表在 痞客邦 留言(0) 人氣()

 
先打球去...等等回來再補...
 
21:20  回來了..繼續補...
 
按照下列方式,就可以安裝成功,並且,馬上就在可以linux下聽廣播囉 ^_^
---------------------------------------------------------------------------------
在Linux下,聽線上廣播,可以參考這裡 ( http://freesf.tnc.edu.tw/modules/news/article.php?storyid=2787 )   PcMan大已經寫好了...
 
自由軟體 : Linux 桌面下播放 Hinet 電台的便利工具

發表人 PCMan 於 2006/8/20 14:55:31 (1938 人讀取)


Hinet Radio http://radio.hinet.net/ 上面有不少網路電台可以聽
但因為網站是 IE only,使用 ActiveX,使得 linux 使用者難以利用
而電台的網址經過重重轉址,還會經常變更,無法直接抓出網址存入書籤
所以之前有些前輩,寫出方便自動抓網址呼叫 mplayer 播放的 script
雖然可以用,但是使用上總還是有些不便,於是
小弟我就用 gtk+ 2 寫了個非常小的程式,常駐在系統列
按下圖示就拉出選單,裡面是各種可選的 hinet 電台
點選就直接呼叫 mplayer 播放,不聽的時候也隨時可以停止或換台
這樣就可以輕鬆的在 linux 下聽 hinet radio 的各個電台了
程式下載網址:
http://pcman.sayya.org/hinet_radio.tar.bz2
以 root 權限執行 make install 就可以安裝完成 (要確認已經有gcc了,不然會無法make install哦,   yum install gcc)
編譯本程式需要 libgtk2-dev 和 mplayer套件 (各 distro 套件名稱可能不同)
執行 hinet_radio 後,可以看到系統列多出一個三角形圖示
用滑鼠點下去即可拉出選單,選擇想要的電台播放
程式非常輕巧 (主要花資源的是 mplayer),可以開機啟動或常駐在系統列。

shlin 發表在 痞客邦 留言(1) 人氣()


在Linux下,有個跟outlook express很像的工具...叫做thunderbird...中文叫"雷鳥"?!
界面用起來..跟OE大同小異..
安裝步驟如下:
(1) yum install thunderbird
這樣就裝起來了..(版本是1.5.0.9)
(2) 裝起來之後,在"應用程式"->"網際網路"..會看到 thunderbird mail ,就可以開起來了
(3) 你會看到,怎麼都是簡體字...
所以,下一個步驟,教你怎麼變它變繁體中文
(4) 參考這裡 http://forum.moztw.org/viewtopic.php?t=17092
1. 先下載Locale Switcher正體中文套件,然後,在"工具"->"擴充套件",再點選"安裝"........把剛剛下載的兩個東西給裝進來



2. 重開 TB , 按 tools > Other Languages > Chinese (Taiwan)

3. 會彈出對話盒, 按下確定

4. 再重開 TB, 就有中文版的 TB 了.


shlin 發表在 痞客邦 留言(0) 人氣()

 
在FC5裡面,要使用FTP...可以用gftp
 
(1)安裝gftp
yum install gftp
這樣就好了
 
(2)會在選單看到gftp的圖示
使用的方法,跟cuteftp差不多
 
(3)在連上Big5的站台時,會有出現亂碼的狀況,可以這樣解決
gedit /usr/bin/gftp
 
然後,在 #!/bin/sh 的後面
加上 export LANG=zh_TW
之後,存檔
 
(4)這樣子,連上ftp後,看到的資料夾名稱,就不會出現亂碼了

shlin 發表在 痞客邦 留言(0) 人氣()

 
samba server的架設,小弟是參考鳥哥網站裡面的設定(http://linux.vbird.org/linux_server/0370samba.php)
前言:
這一篇主要主要就是讓 Linux 與 Windows 主機之間能彼此透過『網路上的芳鄰』這個方式來分享檔案。
為何叫samba(森巴)呢?! (節自鳥哥內的samba server的段落)
既然寫成了軟體,想一想,總是需要註冊一下商標吧!因此 Tridgwell 就去申請了 SMBServer (Server Message Block 的簡寫) 這個名字來做為他撰寫的這個軟體的商標,可惜的是,因為 SMB 是沒有意義的文字,因此沒有辦法達成註冊。既然如此的話,那麼能不能在字典裡面找到相關的字詞可以做為商標來註冊呢? 翻了老半天,呵呵!這個 SAMBA 剛好含有 SMB , 又是熱情有勁的拉丁舞蹈的名稱,不然就用這個名字來做為商標好了! 這成為我們今天所使用的 SAMBA 的名稱由來啦! ^_^
我只有架起來,測試幾個功能而已,沒有像鳥哥的網站裡面,那麼的詳細.(也一併附上smb.conf檔給各位參考)
(1) yum install smb
(2) 套件裝好之後,接著就要去config這個檔smb.conf
   gedit /etc/samba/smb.conf
在這裡,我是參考鳥哥網站裡面的設定,只是修改一下小地方
(3)用 testparm 查閱 smb.conf 的語法設定正確性
直接在終端機下 # testparm
(4)沒問題之後,將samba啟動
   /etc/init.d/smb start

(5)記得要將防火牆裡面的samba打勾勾喲,不然的話,你從client端再怎麼弄,都看不到samba server哦
---------------------------------------------------------附上smb.conf----------------------------------------------------------------------
[global]
        workgroup     = workgroup
        netbios name  = FC5-Samba
        server string = This is shlin's 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
 
        #與安全性有關
         hosts allow = 140.96.36.27
         smb ports = 139
        # 與密碼有關的設定項目,包括密碼檔案所在與加密與否喔!
        security = user
        encrypt passwords = yes
        smb passwd file = /etc/samba/smbpasswd
        # 與 NetBIOS name 名稱解析有關的設定
        name resolve order = lmhosts bcast host
#[printers]
#     comment = This is printer
#     printable = yes
#        browsable = yes
#         public = yes
#         valid users = @users administrator
#         path = /var/spool/samba
#         printer admin = administrator
# 新增的每個使用者家目錄及群組用戶哩!
[homes]
        comment = Home directories
        browseable = no
        writable = yes
        valid users = %S
        create mode = 0664
        directory mode = 0775
[public]
        comment = the user groups work directory
        path = /home/public
        public = yes
        writable = yes
        read only = no      
[temp]
        comment   = Temporary file space
        path      = /tmp
        read only = yes
        public    = yes

shlin 發表在 痞客邦 留言(0) 人氣()


在FC5,灌好之後的預設輸入法是SCIM...
但是,在我的小黑裡面的openoffice.org中文加強版,要叫輸入法都叫不出來...
所以..就想說把輸入法改為gcin
(1)首先,先安裝gcin套件
yum install gcin
(2)再來,安裝切換輸入法的引擎
yum install system-switch-im
(3)再來,切換
im-switch -s gcin
(4)登出
(5)再重新登入之後,就變成gcin了~~
(6)在openoffice.org裡面測試,可以叫出輸入法了 ^^
(7)若要改為SCIM ,也是可以,只要在第(3)步驟將gcin改為scim就可以(im-switch -s scim)
有需要的,請參考!!
後記:
在gcin下的行列輸入法 比 在scim下的行列輸入法 .....好用 ^_^

shlin 發表在 痞客邦 留言(0) 人氣()


最近,麗婷姐的朋友在試架FTP Server..似乎架不起來..
我先在我的小黑測一測..架看看..
由於他是用vsftpd架的..而我在PTT看到,大家也都用vsftpd,所以,就用這個來玩看看..
= = = = = = = = = = = = = = = = = = = = = = = = = = = = =
1. 首先,使用 yum install vsftpd 這樣就把vsftpd裝起來了..
2. 接著,小弟參考鳥哥的網站(http://linux.vbird.org/linux_server/0410vsftpd.php),
當vsftpd裝起來之後,接著就是調校vsftpd.conf的設定
gedit /etc/vsftpd/vsftpd.conf
3. 參考鳥哥所寫的,調整適當的值.(與主機較相關的設定值、與實體用戶較相關的設定值、匿名者登入的設定值、關於系統安全方面的一些設定值),有些不需要的...就不用設了...
4. 當然,當人家來存取您的FTP,可以show一下歡迎訊息給人家看。這邊,我是把歡迎訊息放在檔案上(/etc/vsftpd/banner.txt),所以我的/etc/vsftpd/vsftpd.conf 裡面會有 banner_file=/etc/vsftpd/banner.txt 這一行
5. 設定好了之後,記得存檔哦^^
6. 接著,我們就準備啟動vsftpd
/etc/init.d/vsftpd start
7. 大致上,啟動後,就可以連了(我是設定無法匿名存取,我把anonymous關掉)
8. 基本上,只要在Server本身有的帳號,就可以登入了!!
9. 下面附上我的/etc/vsftpd/vsftpd.conf (可以參考看看)
10. 另外,"安全等級與防火牆",裡面的"防火牆選項"..在信任的服務,裡面的FTP把它打勾哦,不然,再怎麼連都連不上哦!
(下面範例中,我是使用528 port,所以我得把528 port打開...不然,是沒辦法連進來的哦..)
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=002
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=NO
#
# You may change the default value for timing out an idle session.
idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
data_connection_timeout=300
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
nopriv_user=nobody
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
##與主機較相關的設定值##
listen_port=528
message_file=.message
pasv_enable=YES
use_localtime=YES
connect_timeout=60
accept_timeout=60
max_clients=2
max_per_ip=2
pasv_max_port=0
banner_file=/etc/vsftpd/banner.txt
##與實體用戶較相關的設定值##
guest_enable=NO
local_max_rate=0
##匿名者登入的設定值##
anon_world_readable_only=YES
anon_other_write_enable=NO
##關於系統安全方面的一些設定值##
one_process_model=NO
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

shlin 發表在 痞客邦 留言(0) 人氣()

 
在Windows裡面有Nero..
那在Fedora Core 5裡面就有K3b...
 
在Windows裡面的Nero很好上手..
那在Fedora Core 5裡面的K3b也是一樣很好上手..
 
終端機上  yum install k3b 
就安裝好了..
 
以前的Fedora Core 1、Fedora Core 3的K3b都還要調校...不然燒出來就會出現"亂碼" > <
Fedora Core 5的K3b..我目前是只有試光碟對拷..
還ok..
 
下次試試燒檔案看看..^^
 
 
 

shlin 發表在 痞客邦 留言(0) 人氣()


BBS可以上了之後...
想聽聽mp3...
所以..就想說裝mplayer吧...

想用mplayer來播mp3、wmv、mpg、甚至rmvb...

yum install mplayer
 

 
960105備註:
因為直接在桌面上點開來播放時..字幕都會變成 ___________,目前找到的解法為:
mplayer -vo x11 /home/shlin/16/16.avi -sub /home/shlin/16/16.srt \-subcp cp950 -subfont-text-scale 5 \-font /usr/share/fonts/chinese/TrueType/ukai.ttf


也就是直接在終端機模式下執行...但 ukai.ttf(楷書)或是uming.ttf(細明體)要放在/usr/share/fonts/chinese/TrueType/的目錄下
這樣..就可以看到字幕了.^_^.
 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
960116 將mplayer 移除後,再重新安裝mplayer,並處理srt字幕會出現亂碼的情形
 
#yum remove mplayer
#刪除 ~/.mplayer 所有東西
重開機
#yum install mplayer
接著,處理亂碼的問題..
 
一般AVI檔案會附加一個srt字幕檔,預設的MPlayer在讀取srt檔時會發生無法載入或顯示亂碼的問題,解決方法如下:
1.在MPlayer上點滑鼠右鍵,選擇「Preferences」。
2.選擇「Subtitle & OSD」標籤。
3.在下面「Subtitle/Encoding」項目中,選擇「Traditional Chinese charset (BIG5)」。
4.將「Unicode subtitle」打勾
5.選擇「Font」標籤。
6.在「Font:」中選擇一個繁體字型,如”/usr/share/fonts/zh_TW/TrueType/bsmi00lp.ttf”,每一種Linux套件的位置及內容可能都不同。
7.在「Encoding:」項目中,選擇「Unicode」。
8.按下「OK」套用參數後,這樣就可以正常讀取AVI的srt字幕檔了,MPlayer真是超好用的,可以讀MPEG、DAT、AVI、RM...等多種檔案格式。

 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
960119
在firefox裡面,像是去瀏覽無名,若網友有在裡面放歌,則要裝mplayerplug-in
fc5的可以在這下載 http://sourceforge.net/project/downloading.php?group_id=71239&use_mirror=jaist&filename=mplayerplug-in-3.31-fc5.src.rpm&6846073
下載好之後,
# rpm -ivh mplayerplug-in-3.31-fc5.src.rpm
就裝好了..^_^..
 
 

shlin 發表在 痞客邦 留言(0) 人氣()

 
有線網路、無線網路都沒問題之後...
就先來裝個pcmanX...這樣才能上BBS嘛...
 
上了 http://pcman.ptt.cc/  而下載了這個版本...
 



軟體名稱:PCMan X (Open Source 支援多平台)

軟體原作者:洪任諭 (未來應該會有其他人,這是開放原始碼專案)
軟體性質:自由軟體,開放原始碼 (Open-Source Free Software)
作業系統:多平台 Windows/Linux/FreeBSD/Mac OS X(不確定)
更新日期:2004/07/25


※軟體簡介:

全新發起的開放原始碼計畫,重新開始研發,透過 wxWidgets 程式庫,計畫建立各種平台上方便的 BBS 連線軟體。目前已經支援 Windows 和 Linux,未來有希望可以支援 Mac OS X,這是完全重寫的程式,歡迎下載測試,有能力的話,歡迎一起加入開發,PCMan X Project徵求開發人員共襄盛舉,在Linux和Mac等其他作業系統上,打造一個和原 PCMan Windows 版一樣便利的BBS操作環境。



 
可是..裝好之後..開啟pcmanX...
卻是像這樣..
都是亂碼...
這樣要怎麼玩 > <
 

 
只好再去找google大師...
 
 
在這裡..(http://phorum.study-area.org/viewtopic.php?t=42146&view=previous&sid=d27f131213921685e458e5d92c1d711a )
( rpm -Uvh http://pcmanx.csie.net/release/pcmanx-gtk2-0.3.5-1_FC5.i386.rpm )
就ok了~^^
 
 

shlin 發表在 痞客邦 留言(0) 人氣()


當然...
若是FC5這條路很好走的話...那應該就不會有那麼多人臨陣脫逃吧(包括我...)

在做完yum update後...
首先,我想..除了有線網路外,我也想讓無線網路也能work..

在網路的組態中,看不到這個Intel 2200BG 無線網卡...所以..還是得靠google大師來協助..
 

fc5 無線網路
nb fc5 無線網路
按了搜尋..馬上跑出一ㄇㄟ...

這是我所參考的~~
 
一旦在網路組態中..在新增網路時..看到 Intel 2200BG 後..
其他的設定..就跟WinXP的無線網路設定一樣...

當然..我把小黑帶回住處...一樣可以使用...
(不過,設定檔好像只能設一個...不像NB一樣....可以設好幾個組態..............)(試了好久...同時只能存在一個設定檔 > < )
p.s 我的小黑要下載ipw2200-fw-3.0.tgz才行..但只要解開之後..把檔案放到 /lib/firmware 就可以了 ^_^










回答者:Brian 的咖啡館 ( 初學者 4 級 )
回答時間:2006-08-21 22:27:18

[ 檢舉 ]



Fedora Core 5只將它自動設定成乙太網路卡 eth1,但是這是錯誤的設定不能成功的啟動它
以我們可以依照下列步驟去設定及啟動這個Intel 2200BG 無線網卡:


STEP 1:先到下列網頁去下載 ipw2200-fw-2.4.tgz 這個 firmware (http://ipw2200.sourceforge.net/firmware.php)解壓縮後,將所有檔案複製到 /lib/firmware這個資料夾內(tar xvzf ipw2200-fw-2.4.tgz與mv ipw2200-fw-2.4.tgz /lib/firmware)


STEP 2:再執行下列指令,就完成了這個 firmware的安裝(rmmod ipw2200/modprobe ipw2200)


STEP 3:利用 Fedora Core 5去安裝及啟動這個Intel 2200BG 無線網卡要是能夠順利的去新增一個無線網路的連線並成功的啟動它


STEP 4:此時查看上方面板中的“網路監察器”(沒有的話就自己新增加一個吧!),還是顯示出連線中斷而沒有任何訊號的樣子要啟動下列二個服務才能使無線網卡接收到網路訊號service NetworkManager star/t與service NetworkManagerDispatcher start 這二個服務啟動成功後,在螢幕桌面的右上角面板會出現下列圖示去點擊右邊圈圈的那個小圖示即可設定無線網卡的訊號來訊及輸入密碼,完成後就可以能夠在 LINUX環境中使用Intel(R) PRO/Wireless 2200BG 無線網卡此時查看上方面板中的“網路監察器”,就會是顯示出正在連線而且收得到訊號的樣子,但是鍵盤上的WIRELESS的燈還是不會亮,不過我們己經可以正常的經由無線網路卡來上網


參考資料 對Linux版本的經驗與實際安裝過系統後的想法與認知

shlin 發表在 痞客邦 留言(0) 人氣()

1 2
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。