2012年1月17日
English_Learning_remind
remind词义:提醒;使想起,使记起
remind常见词形:
时 态:re·mind·ed, re·mind·ing, re·minds
名 词:re·mind'er
remind的用法:
常接宾语从句或用于remind sb. about sth.结构;也可表示“使某人想起/回忆起…..”,常用于remind sb. of sth. /sb 结构. mention(提到、提及)和memorize(记住)都不能用于“v + sb. +of sth, / sb”结构;inform sb. of sth 表示“通知某人某事”.
1.put in mind of 提醒, 使想起
I must put you in mind of your promise. 我得提醒你答应的事。
You put me in mind of your grandmother. 你使我想起你的祖母
You put me in mind of my brother. 你使我想起了我的弟弟。
2.remind 提醒, 使想起
Thanks for reminding me. 谢谢你提醒我。
You can have reminded me! 你就不能提醒我吗!
3.remind of
You may have reminded me of that. 这事你本可以提醒我的。
2011年5月22日
GRUB2 Problems
Grub2 - error: no argument specified
press any key to continue
Edit "/boot/grub/grub.cfg"
Find:
search --no-floppy --fs-uuid --set 857d5af9-23cd-4d9b-908b-cc075e866758
Fix:
search --no-floppy --fs-uuid --set=root 857d5af9-23cd-4d9b-908b-cc075e866758
Ref:http://ubuntuforums.org/showthread.php?t=1662142
Grub2 ls: cannot access /var/lib/os-prober/mount/boot doesn't see Win7
When I type sudo update-grub
Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.31-19-generic Found initrd image: /boot/initrd.img-2.6.31-19-generic Found linux image: /boot/vmlinuz-2.6.31-17-generic Found initrd image: /boot/initrd.img-2.6.31-17-generic Found memtest86+ image: /boot/memtest86+.bin ls: cannot access /var/lib/os-prober/mount/boot Boot: No such file or directory done
Just rename one file in the windows partition
Step1. mount /dev/sdaX (windows partition)
Step2. rename the file "/boot"
Step3. sudo update-grub
Done
Ref: http://sourceforge.net/apps/mediawik...ore_On_Windows
Change Booting order
sudo update-grub
sudo vi /etc/default/grub
find this line
GRUB_DEFAULT= 0
change "0" to the partition you liked
save
sudo update-grub
2011年4月28日
synchronize Time and date with NTP
or
apt-get install ntp ntpdate
Ref: http://www.debianadmin.com/ntp-server-and-client-configuration-in-debian.html
2011年4月26日
Install gcin in debian system
sudo apt-get install gcin gcin-qt3-immodule im-switch
Description -
gcin - the main modules of gcin
gcin-qt3-immodule - Unknow
im-switch - switch different input
Set gcin as a default input -
$ im-switch -s gcin
Ref: Miraculist's Blog
Disable IPv6 in Debian system
Step 1.
# vi /etc/modprobe.d/aliases
or
# vi /etc/modprobe.d/aliases.conf
Step 2.
find
alias net-pf-10 ipv6
Replace with
alias net-pf-10 off
alias ipv6 off
Ref:http://www.cyberciti.biz/tips/linux-how-to-disable-the-ipv6-protocol.html
2011年4月8日
配置/etc/apt/source.lists
- deb http://debian.cn99.com/debian/ stable main non-free contrib
- deb http://debian.cn99.com/debian-non-US/ stable/non-US main contrib non-free
#apt-get update
#apt-get install apt-spy
- # mv sources.list sources.list.bak // 備份老大源列表
- #man apt-spy // 獲取詳細的使用方法
- // 更新您的鏡像列表文件 /var/lib/apt-spy/mirrors.txt
- # apt-spy update
- // 在亞洲尋找速度最快的stable版鏡像, 並生成sources.list文件
- # apt-spy -d stable -a Asia
- # cp /etc/apt/sources.list.d/apt-spy.list /etc/apt/sources.list
註:實際上經過上述搜索找到的是ftp.tw.debian.org,但是我ping了一下,發現需要37.*ms左右,比debian99.cn要慢。估計是apt-spy不一定能找到所有的source.
- // 更新源:
- # apt-get update
-------------------------------------------------------------------------------------------------
記下這個應該不是太難吧,路徑就在/etc/apt/
deb http://ftp.de.debian.org/
保存一下,以後就用這個啦 apt-spy
雖然才幾百K大小的工具,但是可別小看了它。
可以根據我們的設置,自動生成一份速度最快的sources.
具體用法可以man一下 man apt-spy
NAME
apt-spy – program to generate a /etc/apt/sources.list file
SYNOPSIS
apt-spy -d distribution [ -a area ] [ -c config ] [ -e number ] [ -f file ] [ -i file ] [ -m mirror-list ] [ -o output-
file ] [ -p proxy ] [ -s country-list ] [ -t time ] [ -u update-URL ] [ -w file ] [ -n number ] [ -h ] [ -v ] [ update ]
-d 指的是什麼版本, -a是area也就是地區,-t時間選項 -e指定服務器的數量
其他的-p代理 -i -什麼的沒去試。用的時候如果忘記了man一下得了。
記得先備份一下你自己的sources.list這個文件,
apt-spy -d stable -a asia -t 1
2011年2月27日
ADSL
- 安裝 pppoeconf
# apt-get install pppoeconf
- 執行 pppoeconf
在console下打pppoeconf,輸入你的相關adsl設定資訊,最後回到終端機,再用pon dsl-provider,相信就可以連線adsl了。
- 簡單的啟動 script
建立一個內容如下的 script 檔案,我們姑且就取名為 adsl:
#!/bin/bash
編寫完畢之後將它放到 /etc/init.d 底下,以後想要啟動 adsl 時就下以下指令:
case "$1" in
start)
echo "starting ADSL service"
/usr/bin/pon dsl-provider
;;
stop)
echo "stop ADSL connection"
/usr/bin/poff dsl-provider
;;
restart)
echo "Stop && Starting ADSL connetion"
$0 stop
$0 start
;;
esac
# /etc/init.d/adsl start
1. http://people.debian.org.tw/~moto/debian/DebianLessPain/Debian-Install-Guide-15.html
2.http://jonny.ubuntu-tw.net/2008/08/networkpppoe-adsl.html
3.http://jonny.ubuntu-tw.net/2009/10/manual-pppoe-on-debian.html
2011年2月18日
Install JAVA in Debian system
install java plugin to iceweasel(http://www.java.com/en/download/help/linux_install.xml#enable):
- Create a symbolic link to the
libjavaplugin.sofile in the browser plugins directory- Go to the plugins sub-directory under the Firefox installation directory
cd/plugins
(such as /usr/lib/iceweasel/plugins/)
- Create the symbolic link
ln -s/plugin/i386/ ns7/libjavaplugin_oji.so
In thelncommand line above, usens7-gcc29if Firefox was compiled with gcc2.9.
If you install Firefox 1.5 or later, you can enable the Java Console menu item in the Tools menu. Change directories to the Firefox extensions directory, then unzip ffjcext.zip there.cd /usr/lib/firefox-1.4/extensionsunzip /usr/java/jre1.6.0/lib/deploy/ffjcext.zip - Go to the plugins sub-directory under the Firefox installation directory
2011年2月17日
Add chinese-cht & other related softwares
http://isis.poly.edu/~qiming/chinese-debian-mini-howto.html
1.Run dpkg-reconfigure locales, and choose the following items.
* en_US ISO-8859-1
* zh_CN GB2312
* zh_CN.GBK GBK
* zh_CN.UTF-8 UTF-8
* zh_TW BIG5
* zh_TW.UTF-8 UTF-8
2.
apt-get install ttf-arphic-gbsn00lp ttf-arphic-gbsn00lp
----------------------------------------------------------
安裝中文字型
中文點陣字型(文泉驛字型)
debian5 # aptitude install xfonts-wqy
中文向量字型(文鼎明、楷體)
debian5 # aptitude install ttf-arphic-bkai00mp ttf-arphic-uming
安裝中文輸入法
debian5 # aptitude install gcin gcin-qt3-immodule im-switch
gcin OFFICIAL Web:http://cle.linux.org.tw/trac/wiki/GcinInstallBoshiamyRef: http://blog.yam.com/wjyaries/article/20436703
2011年2月13日
為vim加顏色
apt-get install -y vim
然後編輯vim 的設定檔
vim /etc/vim/vimrc
"syntax on
"set background=dark
↑把前面的"號拿掉
set ignorecase
"↑設定搜尋時英文不分大小寫
set hlsearch
"↑將搜尋到的字加hilight
highlight Search term=reverse ctermbg=4 ctermfg=7
"↑將搜尋到的字由土黃色變成深藍色
Debian安裝筆記
ASUS RT-N12 刷tomato / dd-wrt
在已設定「有線等位私密性」(WEP) 或「暫時性金鑰整合通訊協定」(TKIP) 加密的情形下,用戶端裝置的 Wi-Fi 資料傳輸率將不會超過 54 Mbps。
解決方法:
- 如需下載最新的韌體版本或取得支援高輸送量之特定機型的詳細資訊,請洽詢您的 Wi-Fi 存取點 (AP) 或路由器製造商。
- 停用 AP 或路由器上可能已啟用的「封包突增」或類似的功能。
- 將 Wi-Fi 用戶端裝置的設定檔配置為使用「Wi-Fi 保護的存取」* (WPA2-AES 或 WPA2-TKIP)。您也可以選擇配置一個不安全的設定檔,但不建議使用這個選項。
- 將 AP 或路由器設定為符合用戶端設定檔的內容。
[Ref]正確清空 DD-WRT/Tomato 路由器中 NVRAM 的方法。
1. 用 Telnet 命令登陸路由器(要注意一點,用戶名一定要寫 root,哪怕你自定義過用戶名,但在這裡也還是要用 root 才可以)。2. 輸入 mtd -r erase nvram (當打完指令後,Telnet 會提示和路由器切斷連線,因為路由找不到 NVRAM 了。路由這時會自動重啟系統去建立新的 NVRAM,這時候千萬別切斷電源,靜等幾分鐘,直到可以用 Telnet 重新登陸上路由器為止。特別注意:如果在此期間切斷了電源,路由會由於沒有正確的 NVRAM 而變磚,甚至用 RESET 鍵也都無法恢復)。
3. 輸入 nvram commit (執行完上面一步後,因為新建的 NVRAM 只是暫時保存在內存中,如果不用本命令的話,一旦你切斷了電源,路由會由於沒有正確的 NVRAM 而變磚,甚至用 RESET 鍵也都無法恢復。為了保險起見,該命令執行完成後請靜待10秒再執行下步)。
4. 輸入 reboot 重啟路由。
好了,NVRAM 就被徹底清空了。
PS: 若遇到刷完dd-wrt要換刷tomato則要將NVRAM先清空再刷tomato,否則帳號密碼無法進入tomato
[RT-N12 刷機 tomato / dd-wrt]
韌體下載:
tomato:
ftp://dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/04-16-10-r14289/broadcom_K26/
下載 dd-wrt.v24-14289_NEWD-2_K2.6_mini_RT-N12.trx (3.3MB)
dd-wrt: http://www.dd-wrt.com/site/support/router-database
輸入型號查詢
把你的電腦網路位址設定成固定位址 192.168.1.10/255.255.255.0 (網卡)
先裝好你的ASUS Firmware Restoration Utility(download from asus or CDROM)
切記:請用有線網路去刷且AP後面的開關撥到Router模式
在刷機過程步驟6以後千萬別中斷電源
1.N12電源拔掉
2.拿筆之類的工具按住後方的RESET黑色小按鈕不放(機器後面有兩個 別搞錯歐 不是凸出來紅色那個按鈕)
3.插上電源
4.等五秒 放開黑色小按鈕
5.開啟瀏覽器網址http://192.168.1.1 會看到華碩的救援模式<<要確定看到後再刷韌體 如果沒看到 請重複上面的1~5動作。 6.1 執行ASUS Firmware Restoration Utility程式,選擇要刷進去的firmware (???.trx) 先選好上傳檔案,"切記不要上傳"
6.2 執行- "cmd" - ping 192.168.1.1 -t
6.3 N12電源拔掉 - 按住後方的RESET黑色小按 - 看到 reply ... 馬上放開reset將檔案上傳
7.耐心等待Firmware Restoration utiltiy跑完
8.請再有耐心等待AP上面的燈號
9.連線至http://192.168.1.1 等待DD-wrt設定畫面出現
PS: tomato刪除NVRAM方法
Ref - dd-wrt刷法
http://www.mobile01.com/topicdetail.php?f=110&t=1502771&p=2
Ref- tomato刷法
http://www.play01.com/topicdetail.php?f=110&t=1662350&p=1
2011年2月12日
測試自己的FON基地台是否正常的判準
1.可以從MyPlace登入私人網路且順利連外上網;
2.可以從FON_AP登入公用網路且順利連接到http://tw.fon.com/登入畫面。
用2.而無法順利連外而只能連FON的話,請詳讀:http://blog.yam.com/twfon/article/7341978
「...既然在家,就用MyPlace好好玩,因為機器是註冊成你的,你用FON會員帳號密碼進去是哪裡都不能去的,用會員密碼進去會被當成是要「重新設置個人與基地台資訊」...」
上述兩項均正常的話,即表示您的FON基地台是正常的~
Fon AP-Reset 方法
2011年2月10日
mount ISO
mount -o loop -t iso9660 /path/to/the/iso/image /path/where/you/want/to/mount/it
[轉貼]忘記 Debian root password
http://blog.verycd.com/zipalpha/showentry=31973
現在我們一般使用grub作為系統的引導程式,而lilo進入單用戶的方法很簡單,這裏就不提了。
對於一些版本的OS(如redhat)來說,編輯grub,在後面加上“single”即可進入單用戶模式。
但是對於debian來說,這種方式是無效的,因為debian進入單用戶模式也需要你輸入root用戶的密碼。
下面介紹一個在所有版本linux的grub上均可以使用的方法:
1、在Grub的引導裝載程式功能表上,選擇你要進入的條目,鍵入 “e” 來進入編輯模式。
2、在第二行(類似於kernel /vmlinuz-2.6.15 ro root=/dev/hda2 ),鍵入”e”進入編輯模式;
3、在句末加上”init=/bin/bash”,回車;
4、按“b”啟動系統。
這樣我們即可獲得一個bash的shell。
進入shell後,根分區的掛載模式默認是唯讀,我們要將其改為可寫,否則不能更改root密碼:
mount -no remount,rw /
passwd root
sync
mount -no remount,ro /
reboot
這樣即可成功更改debian的root用戶的密碼。
2010年11月21日
Mount extend partition - LVM using Knoppix LiveCD
- Burned a Knoppix LiveCD - version 5.1.1 (Newest:6.2)
(it has lvm-tools available)
- Booted the PC with Knoppix Live CD
- Started a Terminal
$ su
# lvm vgchange --ignorelockingfailure -P -a y
Code:
Partial mode. Incomplete volume groups will be activated read-only.
2 logical volume(s) in volume group "ubuntu" now active
It shows the name of the "volume group"
# lvm lvs
Code:
LV VG Attr LSize Origin Snap% Move Log Copy%
root ubuntu -wi-a- 142.92G
swap_1 ubuntu -wi-a- 5.89G
# mkdir /vg_mnt
# mount /dev/ubuntu/root /vg_mnt
# ls /vg_mnt/
Code:
bin cdrom etc initrd lib media proc sbin sys usr vmlinuz
boot dev home initrd.img lost+found opt root srv tmp var
# ls /vg_mnt/home/satimis/
all my work displayed here.
Inserted an USB pendrive and copied all my work on it.
# umount /vg_mnt
Now I have my work saved on the USB pendrive. Then I successfully copied my files on another PC.
2010年7月21日
修改GRUB開機順序
2. sudo gedit /boot/grub/menu.lst 開啟menu.lst檔案
3.找出default 0
4.把0改成windows開機的次序(注意:看windows是第幾個,若是是第3個則改成2-因為由0開始數)
5.存檔..重開機..
2010年6月3日
Fix Failed to execute child process "xscreensaver" in Solaris 10
/usr/dt/config/Xinitrc.tjds
/usr/dt/config/Xinitrc.jds
and log out
you will find this problem is fixed
2010年6月2日
solaris 10 加裝中文字體(繁體+簡體)
Solaris 10以後,用localeadm來添加語言,例如添加Japanese:
# localeadm -a ja -d
其它語言:zh_TW, zh_HK, hi_IN, th_TH, ko_KR, ja..etc.
Listing All of the Locales and Codesets
#localeadm -lc
Listing the Regions Available on a Solaris CD or DVD
#localeadm -ls -d /cdrom/cdrom0