About  Categories  Archives  Links  Contact  RSS

liyi.freeshell.org

Sharing ADSL internet connection using wireless card

Requires: ADSL modem (x 1); Wireless card (x 2).

1. Host computer

1.1 Sharing ADSL connection

"Control Panel" - "Network Connections" - your ADSL connection - "Properties" - "Advanced" - "Internet Connection Sharing" - "Allow other network users to connect through this computer's Internet connection" (Check the box)

1.2 Building wireless network

"Control Panel" - "Network Connections" - "Wireless Network Connection" - "Properties"

"General"(Tab) - "This connectin uses the following items:" - "Internet Protocol (TCP/IP)"

IP address: 192.168.0.1
Subnet mask: 255.255.255.0
Default gateway: _._._._ [1]
DNS server addresses: _._._._ [2]
Alternate DNS server: _._._._ [3]

1.3 Adding wireless network

1.3.1 Setting up a new wireless network

"Control Panel" - "Network Connections"

Double click "Wireless Network Connection"

"Set up a wireless network for a home or small office" - "Next" - "Set up a new wireless network"

1.3.2 Adding SSID

"Control Panel" - "Network Connections" - "Wireless Network Connection" - "Properties"

"Wireless Networks"(Tab) - "Use Windows to configure my wireless network settings" (Check the box)

"Wireless Networks"(Tab) - "Preferred networks:" - "Add" - "SSID" (YourNetworkID) - ...

Please note that you should set a wireless network key.

"Wireless Networks"(Tab) - "Advanced" - "Computer-to-computer (ad hoc) networks only" (Check the box)

2. Guest computer

2.1 TCP/IP settings for wireless network

"Obtain an IP address automatically" (Check the box)

2.2 Adding wireless network

"Control Panel" - "Network Connections" - "Wireless Network Connection" - "Properties"

"Wireless Networks"(Tab) - "Preferred networks:" - "Add" - "SSID" (YourNetworkID) - ...

_____________
[1] Leave blank;
[2] ibid.;
[3] ibid.

Category: /computer | Permalink

ThinkPad T61 安装 Windows XP 的设置

ThinkVantage 帮助文档中有一个方法 (Access Help --> Advanced configuration --> Installing a new OS --> Installing Windows XP)。 把 CMOS 设置成 AHCI 模式,先安装南桥芯片组驱动,再安装 Windows XP 操作系 统,因为 Windows XP 安装 CD 中没有 SATA 硬盘接口驱动。帮助文档建议从 SCSI 控制器或 RAID 卡安装,否则安装过程中会出现蓝屏。实际上,在 BIOS 中把 SATA 设置成Compatibility 模式,可以绕过缺 SATA 驱动的限制。

关键步骤:

  1. 进 BIOS --> Config,把 Serial ATA(SATA) 设置为 Compatibility 模式 (默认为 AHCI 模式);
  2. 依次安装:
  3. 开机,进 BIOS --> Config,把 Serial ATA(SATA) 改回 AHCI 模式;
  4. 安装其他驱动……

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

有几个链接不错:

http://www.lenovoservicetraining.com/ (Lenovo 各种机型分类介绍,有图片、视频)

http://forum.notebookreview.com/ (人气很旺的笔记本论坛)

http://thinklenovo.spaces.live.com/ (一位 Lenovo Think 中国工程师的 Blog)

Category: /computer/laptop | Permalink

两个小工具

(for Microsoft Windows)

1. AddMyNote (70K): 给 Microsoft Word 文档的脚注标号加方括号。

MD5 (AddMyNote.exe) = 2542224692558d7c04a3c536af50b867

中文文档中脚注标号的数字一般要求用方括号括住,而 Microsoft Word 默认脚注 标号不带括号。这个小工具提供的宏和模板可以给脚注标号加(或去掉)方括号。 安装这个插件后会出现新菜单,可以批量转换,使用很方便。其前身是 AddMyFootnote。

安装过程中不必改变默认路径,解压后出现安装文件夹 AddMyNote_Setup/,可在 安装成功后删除。

2. notice-ins (21K): 定时提醒,功能简单,挺好用的。

MD5 (notice-ins.zip) = 5fa0d3675559133394be551350ba45ea

Category: /computer | Permalink

vim-latexsuite citation completion

Q: Why can't I use \ref{ <F9> or \cite{ <F9> completion in vim-latexsuite on Windows?

A: It is mainly because of the spaces in the path or filename, that's Windows style. Just add an environment variable named $HOME with no spaces in the path.

ATTENTION: 1. This would affect other relative applications. 2. I have installed Python, as the latexsuite manual recommends.

Category: /computer/tex | Permalink

Acroread for Debian

Acroread is the linux branch of the Adobe Acrobat Reader. Anyone can get the tar ball from Adobe. The deb package (current version: 7.08) can be found here. The additional font packages can be downloaded via this page.

Category: /computer/debian | Permalink

Two slides: 7 habits and pythonic Douban

1. Bram Moolenaar: "Seven habits of effective text editing, 2.0" (2007/02/13)

[PDF slides | Google Video]

2. 阿北:“豆瓣和Python" (2006/03/26)

[PDF slides | MP3]

Category: /computer | Permalink

LaTeX render test

|x^{*} - x^{k}| \leqslant \frac{1}{2^{k+1}}(b-a)

Category: /computer/tex | Permalink

`listings' conflicts with `CJK'

`listings' (v1.3) conflicts with `CJK' (v4.7.0) in teTeX 3.0.

The solution is to add

\lstset{extendchars=false}

to the preamble of your LaTeX source file.

See: Debian Bug report logs - #348636

Category: /computer/tex | Permalink

配置 SCIM

环境:Debian (3.1, sarge): Xorg (1:7.1.0-11); GNOME (1:2.14.3.5); SCIM (1.4.4-7)。

1. 设置 locale

# dpkg-reconfigure locales

选择 locales,如 en_US.UTF-8, zh_CN.UTF-8, zh_CN.GBK。

2. 安装 SCIM

# apt-get install scim scim-gtk2-immodule scim-modules-socket \
> scim-modules-table scim-pinyin scim-tables-zh

3. 修改 /etc/gtk-2.0/gtk.immodules

- "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh" 
+ "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh:en" 
- "scim" "SCIM Input Method" "scim" "/usr/share/locale" ""
+ "scim" "SCIM Input Method" "scim" "/usr/share/locale" "zh:en"

4. 重启 X

中、英文环境下都可以输入中文。

Category: /computer/debian | Permalink

硬盘安装 Debian

1. 下载安装文件

Debian 镜像列表 中选择镜像,下载以下三个文件,存放到 C:/debian/ 目录下:

  • debian-31r4-i386-netinst.iso (112M)
  • vmlinuz (798K)
  • initrd.gz (2.9M)

第一个文件在镜像的 /debian-cd/3.1_r4/ 目录中;

后两个文件在 /debian/dists/Debian3.1r4/main/installer-i386/current/images/hd-media/ 目录中。

2. 安装 Grub4DOS

下载 Grub for DOS,按提示安装到 Windows 的 C: 盘。实际上只需把二进制文件 grldr 拷贝到 C: 盘根目录。

编辑 C:/boot.ini ,添加:

C:\GRLDR="Start GRUB"

3. 安装基本系统

重启,进入 Grub 启动菜单,选择 Boot Grub,在 Grub 命令行依次输入以下三行:

grub> kernel (hd0,0)/debian/vmlinux root=/dev/ram \
> ramdisk_size=512000 devfs=mount,all
grub> initrd (hd0,0)/debian/initrd.gz
grub> boot

即开始安装基本系统。

注:

A. 分区基本原则:

  • 必须有主分区 / 和 swap,用户目录 /home 最好单独分区,如果用来做数据库或服务器,分区应当更细;
  • swap 分区的大小:当内存小于 256M 时,swap 分区大小为内存大小的二倍;当内存大于 512M 时,分给 swap 分区约 512M。

B. 桌面环境及其它软件包

在安装基本系统时,按提示设置好网络和 sources.list ,安装好基本系统以后,用 APT 安装桌面系统及其它软件包。

Category: /computer/debian | Permalink

[ 1 | 2 ] next >>