好冷...我很怕冷..> <..
這種天氣最適合窩在暖暖的被窩裡面了.^_^.
放上一首 范曉萱&王力宏 帶來的 "雪人"
 
冷冷的天氣裡...慢慢欣賞吧. ^_^ .
 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
 
       雪人 
 
      作詞:許常德 作曲:季忠平 女聲:范曉萱    男聲:王力宏
 
       (女)(男)好冷 雪已經積得那麼深
           Merry Christmas to you 我深愛的人
        好冷 整個冬天在你家門
              (女)Are you my snowman?
              (男)Am I your snowman?
                    我痴痴痴痴地等
(女)(男)(合)雪一片一片一片一片 拼出你我的緣份
              我的愛因你而生 你的手摸出我的心疼
              雪一片一片一片一片 在天空靜靜繽紛
              眼看春天就要來了 而我也將 也將不再生存 
 
 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
 

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


最近,麗婷姐的朋友在試架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) 人氣()

 
一眨眼...8個月過去了...

想當初的四月、五月、六月...甚至七月...

還口口聲聲的說一定會赴約...

 

是惰性?!是個性?!使然...

 

雖然一直爽約...

但是一直掛念在心中...

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


 
拖了好久...
拖到不能再拖了...
 
只好利用今天休假的時候去換証...
 
身分證、印章、照片...都帶齊了...出門去...
騎著騎著...看到"和美X政事務所"的指標...就順著指標騎了過去...
奇怪...指標上面寫著650m...可是,我已經騎到底了..怎麼還沒看到...> <...
又繞回來,終於看到了...
 
結果一進去...順手抽了號碼牌....
由於是中午休息時間...辦事員只有兩三隻....看到我抽號碼牌...一臉迷惑樣...-.-
然後,有一位辦事員走了過來....
 
我就直接跟他說"我要換身份証".....
 
辦事員:「..................."這裡不能換....這裡是地政事務所...不是戶政事務所哦".......」
 
"這裡是地政事務所...不是戶政事務所哦"......."這裡是地政事務所...不是戶政事務所哦"........"這裡是地政事務所...不是戶政事務所哦"...........囧rz..
 
糟糕.....整個丟臉了...   (心裡想,總覺得怪怪的...戶政事務所,印象中是跟鎮公所連在一起的...。果然以前的印象是對的...沒有看清楚指標是錯的 > < )
 
戶政...地政...傻傻分不清楚.....戶政....地政...傻傻分不清楚....
 
 
一到戶政事務所....
整個人很多....
而....雖然外面寫著"中午照常辦理"....但是...卻只有一個辦事員在處理...
 
不過..有個好心的辦事員,不是值班的辦事員..
她說"看那麼多人在等"...我來幫忙好了
 
還好有她...不然....等到2點都還踏不出大門呢 > <
等的時間好久...不過,把印章、照片、身分證交給好心辦事員後,再簽個名字...
 
不到5分鐘....新身分證出爐了...^^

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


 
原本九點半要起床...
結果..把手機的鬧鐘關掉了...
一睡就睡到十一點...
想到那張12:03的車票...
想也知道來不及了...
 
既然來不及..那就慢慢來吧...^_^...已經不是第一次了......
 
到了火車站...剛好來了班莒光號..
這下要站回彰化了..
 
不過..到了苗栗站時..車長來驗票了..
這下得補錢了...拿復興坐莒光...
補了個30塊...
(我說..我這張是有坐位的復興...車長你收了30塊....是不是該幫我找個空位啊..)
 
 
車子不知快到豐原還是台中..
感覺心臟好像快收縮了...
接著....
以時速160的速度開始加速...
感覺呼吸快停止似的...
整個很不舒服...
 
我知道又開始心律不整了...(問題是...我只是在坐火車啊...我沒有很緊張啊..)
去裝了杯茶...
喝了幾口...
 
還好也快到彰化了...
而時速也降下來了...
 
話說六七年前...
還在念二技時...
發現到自已有這個狀況...
當時候想說,畢業之後,應該也準備要當兵了...
若去檢查..確定有心律不整,就免役了...
 
在彰基測了兩次的24小時心電圖..
(當時候好像為了要讓 心律不整 "復發"...就在太陽還很大的時候...去跑操場 > <...現在想起來,真蠢..)
當然..這兩次測下來,都顯示正常 (真不知道該高興還是難過...)
 
當然..我不死心...還跑到台中國軍總醫院再去看診...
當然...也失敗了...
 
最後...我選擇了替代役...
 
而這幾年來...心律不整的狀況..也很少出現了...
 
我想...或許我這個人很容易緊張..也有關係吧?!

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


 
 
如畫面所示, 要切開變成2個表格時...
該怎麼做呢?!
 
Ans:
可以把游標移到"紅色"的地方..
按住 Ctrl + Shift 後, 再按一下 Enter 鍵
就可以切開了 ^^

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

 
很有趣的台語版的Jingle Bells~~
點進連結前,記得開一下喇叭哦 .^_^.
 
 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
 
 
連結在這...  http://www.wretch.cc/blog/Jimmylin92&article_id=2656169
 
 
 ~~~~~歡喜聖誕節~~~~~王金選作
北風呼呼吹,誰人對遮過,
聖誕老阿伯,禮物揹一大袋;
也有運動鞋,也有尪仔冊,也有糖仔佮番麥,
實在有夠濟~~~‧
緊來提,緊來提,一人有一個;
樓頂樓跤茨邊頭尾,逐家歡喜做伙,
也唱歌,也泡茶,也有講笑詼;
上重要的就愛感謝~~~
聖誕老阿伯

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

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) 人氣()

 
冬天裡的陽光...就像夏天裡的冰棒...
一個很暖...一個很涼...
 
冬天裡的陽光...很溫和...不會曬傷...
夏天裡的冰棒...很清涼...多多益善...
 
我愛夏天裡的冰棒...
更愛冬天裡的太陽...
 
冰棒是冰棒...
太陽是太陽...
 
兩個互不侵犯...也互不相干...
 
但卻是人們的好伙伴...
 

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



接連幾天的冷天氣...
還伴隨著不大、不小的雨...
整個空氣是濕濕冷冷的..
愈來愈有冬天的味道了..
今年似乎是暖冬..都12月中了..大家都還是穿短袖的衣服..
今天是資料採礦班的 "期末報告"..(說期末也不算期末..連續六個星期六的課程..在今天的報告中告一段落)
現在學員正在進行報告..
小弟我現在除了要攝影之外..還要兼計時員...
不過..學員似乎沒有看到我舉"剩三分鐘"的牌..> <..哈哈..

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) 人氣()

Blog Stats
⚠️

成人內容提醒

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

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