Showing posts with label OS. Show all posts
Showing posts with label OS. Show all posts

Desktop Screen has Gone Changed Direction | 改變桌面方向

Sometime, the desktop screen has gone changed its direction. Maybe it has changed by software or our motion without the desire or intention. At the time, we can change it to be normal.

Ctrl + Alt + arrow key(left、right、up、down)

-------------------------------------------

有時候開機時會發現,桌面換了個方向,往左或往右,也許往上;恢復正常的方法很簡單:

Ctrl + Alt +方向鍵

就可以調整桌面的方向到想要的位置了。



Ubuntu in 2.5" USB External Drive

閒來無事,看到桌上放著久未使用的USB隨身碟(80GB),因為知道裡面有壞軌,所以不太想用這顆隨身碟,但突然心血來潮,最近在更新電腦教室的Ubuntu,我想是不是能夠把Ubuntu裝在這顆隨身碟上。想到就做。

燒了一片Ubuntu 8.04 LTS Desktop Edition,然後步驟大概如下:
1.拔掉PC上硬碟(如果很確定自己可以分辨就不用拔)。
2.接上USB隨身碟
3.使用SPFDisk來分割USB隨身碟:我切了三個Partition,均為主分割,一個給Ubuntu(1GB以上),一個給Swap(我也是1GB以上),剩下的全部放置資料檔案用(NTFS)。
4.調整主機板BIOS,讓PC能使用光碟片開機。
5.放入Ubuntu,使用光碟開機,選擇繁體中文語系之後,直接進入第二個選項安裝
6.安裝分割區時,請選擇"手動",下一步。
7.把 / 裝再分割好的Partition,Swap也是,剩下的可以先不用管它,下一步。
備註:請先記得 / 的磁碟機代號,像我的就是/dev/sda1,每個人情況或許不同。
8.鍵入該輸入的帳號密碼,下一步。
9.最後一個步驟,先別急著定生死,右下角有個"進階",選它,然後修改開機選單的分割區,我是把它裝在 /目錄上(對我,也就是/dev/sda1),確定。
10.安裝好就可以重開機了,大功告成!

接下來可以拿到別台PC上去試試看,但請記得,先確定該台PC有支援USB開機並調整USB開機為最先,本機硬碟可以不用拔。

謝謝指教!^^

Start using Administrator on Vista | 在Vista上啟用Administrator帳戶

Start-->On "Computer" icon, use right-key of mouse and choose "manage"


開始-->在"電腦"的ICON上按滑鼠右鍵,選擇"管理"



At computer manage, double-click "local user and group"
在電腦管理下點選"本機使用者和群組"



Double-click "User"
選擇"使用者"


On Administrator, right-click "Content"
在Administrator帳戶上以滑鼠右鍵選擇"內容"

Disable "Stop account"
將"帳戶已停用"的勾勾取消


Last, reset the password of Administrator
最後,重設Administrator的密碼即可。

Windows Vista Ultimate X64 and X86

Help a friend today installed on his notebook by Windows Vista Ultimate, as it is 64-bit, so I chose installed Windows Vista Ultimate X64. The process all the best equipment, but later found that the installation of other software, many applications do not support the 64-bit. As this result, work very inconvenient. Then installed changing Windows Vista Ultimate X86 that is 32-bit systems. After the installation of software on the comparison did not encounter a problem.
-------
今天幫朋友的NoteBook裝上Windows Vista Ultimate,因為它是64位元的,所以我選擇裝Windows Vista Ultimate X64。裝的過程一切順利,不過到後來安裝其他軟體時發現,很多應用軟體並沒有支援到64位元。這樣一來,工作就很不方便。於是就重裝一次,改成Windows Vista Ultimate X86,就是32位元的系統。之後安裝軟體就比較沒有遇到問題了。

Postfix+Cyrus-sasl(saslauthd)+F-prot+MailScanner+Spamassassin

在Fedora Core6上重裝Mail Server

參考文章:http://ftp.tn.edu.tw/Study/student_server/mail2.htm

基本上我都是照著這個網頁上的步驟做的,不過也遇到了幾個問題。文章我就不引用了,只列出我遇到的問題:

Q1:saslauthd認證失敗:

#/usr/sbin/testsaslauthd -u username -p 'password'

0: NO "authentication failed"

A1:本來是以為cyrus-sasl少裝了什麼套件,因為cyrus-sasl一共有九種套件(cyrus-sasl-devel、cyrus- sasl-lib、cyrus-sasl、cyrus-sasl-sql、cyrus-sasl-plain、cyrus-sasl-ntlm、 cyrus-sasl-ldap、cyrus-sasl-md5、cyrus-sasl-gssapi)。找不出原因之下,查了以前裝的mail server有哪些套件,才發現我是imap沒裝,於是我裝了uw-imap-utils-2006g及uw-imap-2006g就OK了。 真是=.=!!!

Q2:F-prot更新時(check-updates)失敗了,顯示:

Error: Unable to include perl module: 'HTTP::Request'.
Please install this module and try re-running this script.
(Hint: man CPAN)

Fatal error. Exiting...

A2:這個問題是HTTP::Request模組沒有安裝,只要安裝perl-libwww-perl這個相關版本的套件即可。

Q3:在maillog裡出現

fatal: open database /etc/postfix/access.db: No such file or directory

A3:這是沒有access.db檔,只要下

#postmap hash:/etc/postfix/access

即可!

Sendmail+Mailscanner+ClamAV | Until The Twelve of Never

E-mail is a kind of ways to exchange messages that many people use now . But it s an undisputable fact that e-mail become the shortcut of the virus dissemination , and advertise letter is also a severe problem with the most internet users currently.

The MailScanner is a free and well-known mail anti-virus software and is also the tool that defends the advertisement letter mail.It supports various anti-virus softwares, including ClamAV etc..
The ClamAV is also a free E-mail anti-virus software, and then provides an on-line immediately real time service. It can detect more than 40,000 kinds of viruses, worms, the Trojan programs. ClamAV has a set of anti-virus experts who distribute in the world everywhere currently and renew for 24 hours and safeguard the virus database. If anyone finds the suspicious virus can also make contact with them at any time and them renew the virus yard immediately to be the latest protection action in cutty time.

Install:(Suppose you have already installed sendmail.)

Step 1:

Install MailScanner

Download from offical website:http://www.mailscanner.info/

Download Stable version:Version 4.54.6-1 for RedHat, Fedora and Mandrake Linux (and other RPM-based Linux distributions)

this version for Fedora Core.

And command

#tar zxvf MailScanner-4.56.8-1.rpm.tar.gz
#cd MailScanner-4.56.8-1

#./install.sh

Installing............(Come some coffee ^.^)

When process be down. Then check the content in this file

/etc/MailScanner/MailScanner.conf

Max Children = 5

//How many MailScanner processes do you want to run at a time?

Virus Scanning = yes

//Open the anti-virus function.

Virus Scanners = clamav

//Which Virus Scanning package to use.
  Use SpamAssassin = yes

//Do you want to find spam using the "SpamAssassin" package?

//You must install spamassassin before.

Save it.

Step 2:

Install ClamAV

You must add account for clamav before install clamav.

#groupadd clamav

#useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav

#cd /usr/local/src

Download ClamAV tarball package from http://www.clamav.net/stable.php

#wget http://nchc.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.6.tar.gz

#tar zxvf clamav-0.88.6.tar.gz

#cd clamav-0.88.6

#./configure --sysconfdir=/etc

#make

#su -c "make install"

..........wait line......... ....

#vim /etc/clamd.conf

1.Add a # front the word "Example" (disable Example)

2.Alter "User clamav" to be "User root" and enable.(Remove #)

#vim /etc/freshclam.conf

1.Disable the "Example".

2.Enable the "Check=24".

Step 3:

Restart MailScanner

#service MailScanner stop

#chkconfig sendmail off

(Hereafter will be started sendmail by MailScanner. We must prohibit sendmail to run

at a time)
#killall sendmail

(Kill all sendmail process in the memory.)
#service MailScanner start

Installing is well done. ^^

The reference website:

http://cha.homeip.net/blog/archives/2005/01/sendmail_mailsc.html

http://www.neo.com.tw/archives/000323.html


E-mail是現在許多人使用的一種傳遞訊息的方式,但是變成病毒散播的捷徑卻是不爭的事實,而且廣告信也是也是目前許多網際網路使用者最頭痛的問題。

MailScanner是一個免費且著名的郵件掃毒軟體,也是防廣告信郵件的工具。它支援多種防毒軟體,包含ClamAV等。

ClamAV也是免費的電子郵件防毒軟體,又提供線上即時更新的服務。目前可以偵測超過40,000 種病毒、蠕蟲、木馬程式,並且有一組分佈在世界各地的病毒專家,24小時更新及維護病毒資料庫,任何人發現可疑病毒也可以隨時跟他們取得聯繫,立刻更新病毒碼,在極短的時間內完成最新的防護動作。

步驟1:(假設Sendmail已安裝完成)

安裝MailScanner

從官方網站下載Stable的版本

Version 4.54.6-1 for RedHat, Fedora and Mandrake Linux (and other RPM-based Linux distributions)

然後

#tar zxvf MailScanner-4.56.8-1.rpm.tar.gz

#cd MailScanner-4.56.8-1

#./install.sh

等待......

接著修改/etc/MailScanner/MailScanner.conf裡的幾個設定

Max Children = 5

//這表示你開機時要執行多少個MAilScanner子程序,主記憶體在64MB以下建議設為1

Virus Scanning = yes

//開啟防毒功能

Virus Scanners = clamav

//您要使用的防毒軟體為何,這裡設為ClamAV
  Use SpamAssassin = yes

# 如果你要使用SpamAssassin才開啟,但是你之前必須先安裝。

儲存

步驟 2:

安裝ClamAV

安裝之前先建立clamav帳號

#groupadd clamav

#useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav

#cd /usr/local/src

下載ClamAV 穩定版本 http://www.clamav.net/stable.php

或直接下載下面的連結的版本

#wget http://nchc.dl.sourceforge.net/sourceforge/clamav/clamav-0.88.6.tar.gz

#tar zxvf clamav-0.88.6.tar.gz

#cd clamav-0.88.6

#./configure --sysconfdir=/etc

#make

等待.......

#su -c "make install"

等待....

編輯Clamav的設定檔

#vim /etc/clamd.conf

1.在 Example 之前加個# (disable Example)

2.修改 "User clamav" to 為 "User root" 然後 enable.(Remove #)

再編輯freshclam設定檔

#vim /etc/freshclam.conf

1.一樣在 Example 前加上#.

2.拿掉 Check=24 前的#。可以修改數字,此為24小時更新一次。

步驟 3:

重起MailScanner

#service MailScanner stop

#chkconfig sendmail off

(停止sendmail在開機時自動執行的設定)
#killall sendmail

(刪除所有sendmail可能存在記憶體的process)
#service MailScanner start

安裝完成 ^^

參考網站:

http://cha.homeip.net/blog/archives/2005/01/sendmail_mailsc.html

http://www.neo.com.tw/archives/000323.html

Tuesday, August 23, 2005

At last I restore my server again. I change the OS Fedora Core 3 for Fedora Core 4. Use it, there are only several differences between FC3 and FC4. FC4 likes almost FC3, yet I like some additions of softwares of FC4 that is JAVA and Tomcat. They let me to learn JSP quickly when I setup the environment.
Now, I just want to install samba server, proftd server and DNS server. Today, I finish the samba server and proftpd server. But When configure DNS server's named.conf I have some problem because it can't work successfully. Wait me and I will slove the problem before long.^^