Wednesday, November 18, 2009

Print job long startup time! (Solved)

I've upgraded a new PC, but encountered a problem of a long waiting time for a print job!

====================
Hardware:
PC
ASUS P7P55D (BIOS: 0501)
Intel i-5 750

Printer
HP LaserJet 1022
HP PhotoSmart 7450
Kyocera Mita FS-1010

Software:
OS
Windows 7 Home Premium

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

1.When directly connect the printer to PC via the USB port on motherboard:

The following printer had this problem!
HP LaserJet 1022 (Laser) (Have to wait about 2 mins.)
Kyocera Mita FS-1010 (Laser) (Have some problem when adding the printer.)

The following don't have!
HP PhotoSmart 7450 (Ink)

2.But when I connected the HP LaserJet 1022 to the USB port of ASUS WL-520GU,
using ASUS WL-520GU to be the printer server. Printe waiting time lower to about 10~30sec or so.

3.I checked if there're some firmware or driver upgrade!
I upgraded the BIOS version of ASUS P7P55D from 0501 to 0915.
SOLVE the problem!!

BIOS version 0915 of ASUS P7P55D fixed some USB compatibility problems!

Monday, August 31, 2009

Vsftpd configuration - chroot_local_user enable!

1.enable chroot_local_user
#vim /etc/vsftpd.conf

==========
chroot_local_user=YES
==========

2.Let user can access directory outside its root directory
#mount --bind source_dir dist_dir

e.g.

#mount --bind /media/disk1/ /home/vsftpd/ftp/disk1


Ref:
VSFTPD Configuration Help
http://www.linuxquestions.org/questions/linux-software-2/vsftpd-configuration-help-205194/

Thursday, January 1, 2009

ASUS WL-520gU upgrade firmware to Oleg- (PPPoE can't Connect!)

Sometimes PPPoE may not connect!

"ifconfig"-->IP:10.64.64.64

"IP config"-->"WAN&LAN"-->"PPPoE, PPTP or L2TP Account "-->
"Idle Disconnect Time in seconds(option): 1800"
----->change "1800" to "0"


Ref:更新1.9.2.7-10(OLEG)後WAN連不上??wl-500G deluxe~~
http://digiland.tw/viewtopic.php?id=243

Monday, June 23, 2008

無法刪除印表機 (in XP)

今天想要刪除印表機(在其他台電腦的印表機)的時候遭遇困難,因為我依照往常的想要在"印表機與傳真"直接刪除該印表機,但是卻發生無法刪除的情形,無論我試了幾次情況都沒有感善!

後來在Google(關鍵字:xp 無法刪除印表機)找到一篇有幫助的文章,如下:

無法從印表機視窗中刪除列印驅動程式
http://blog.xuite.net/jorgeyen/20050527/11482085

該篇文章是引述HP的一篇解答集。

HP LaserJet 與 Color LaserJet 系列印表機 - 幕後列印程式終止,列印作業無法列印,但是可以列印 Windows 測試頁。 無法從印表機視窗中刪除列印驅動程式
http://h50178.www5.hp.com/support/C3990A/faqs/58431.html

主要的步驟是:
1.關閉(Stop)"Print Spooler"這個服務
2.到"C:\WINDOWS\system32\spool\PRINTERS\"這個資料夾,然後把此資料夾的檔案都刪除
3.啟動(Start)"Print Spooler"這個服務

Friday, May 2, 2008

在VirtualBox(1.5.6)上安裝Ubuntu 8.04 LST - 解決解析度被限制在800x600以下。

下面的網站提供了不錯的建議。

virtualbox虚拟ubuntu全屏问题
http://www.linuxdiyf.com/viewarticle.php?id=85237

我將/etc/X11/xorg.conf改成上面網站的建議值就OK了!


我的步驟如下:
1.把/etc/X11/xorg.conf和下面對應的Section改成如下。
Section "InputDevice"
Identifier "Configured Mouse"
Driver "vboxmouse"
Option "CorePointer"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "vboxvideo"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Modes ""1024x768" "800x600" "640x480" <-- add the resolution you want
EndSubSection
EndSection

2.restart X

3.安裝客端額外功能
#/media/cdrom0/VBoxLinuxAdditions.ru

4.restart

Tuesday, January 15, 2008

文字介面下的BitTorrent Client - RTorrent

在ssh下搭配screen使用會有更加的效果!

1. 安裝screen - 可以把工作放到背景,所以縱使ssh斷線,rtorrent也會繼續工作。
#aptitude install screen


2. 安裝rtorrent
#aptitude install rtorrent


3. 從官方網站copy設定檔(.rtorrent.rc)到家目錄 - 因為原本沒有這個檔案。
http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev=latest
複製到 ~/.rtorrent.rc


4. 設定.rtorrent.rc
下載文件的下載目錄。
# Default directory to save the downloaded torrents.
directory =/mnt/hda_120/Download

指定session的存放目錄。
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session =/mnt/hda_120/Download/session

啟動rtorrent的監視功能,當*.torrent檔案在指定的目錄出現的時候,rtorrent就會開始下載。
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=/mnt/hda_120/Download/watch/*.torrent
schedule = untied_directory,5,5,stop_untied=

設定locale。
encoding_list=UTF-8

完成。


5. 開啟一個screen。
$screen

6. 開啟rtorrent。
$rtorrent
此時,檔案應該已經開始下載了。

7. 把工作丟到背景。
在rtorrent主畫面中
I. crtl+a
II. ctrl+d

8. 想要再進去看看rtorrent。
$screen -r


Note:
目前還沒有解決DHT的問題。


Ref:
[1] 用rtorrent下载bt
http://www.xnux.cn/html/desktop/20070528/10324.html

[2] 綠色工廠 -
rtorrent - linux環境的BT
http://portable.easylife.idv.tw/789

[3]
The libTorrent and rTorrent Project
http://libtorrent.rakshasa.no/

[4] 飛翔部落 - Linux安裝rtorrent
http://blog.pixnet.net/shian0745/post/9121008

[5]
Jamyy's Weblog - Linux Console 下的 BT 操作
http://cha.homeip.net/blog/archives/2006/08/linux_console_b.html

[6] DreamLand - 【推荐】rtorrent | xNix下的BT客户端(非Xwin)
https://dream4ever.org/showthread.php?t=145083

[7] fjufirefox -
[Debian] rtorrent support DHT
http://fjufirefox.blogspot.com/2007/11/debian-rtorrent-support-dht.html