AZhu's Home
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