Path: liyi.freeshell.org » computer

硬盘安装 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

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. 安装其他驱动……

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

列几个链接参考:

Category: /computer/laptop | Permalink

Embed video into PDF

%% filename: embed-video.tex
%%
%% 1. Compile TeX source with pdflatex.
%% 2. Put a video file (e.g. sample.avi) in the same directory
%%    with the PDF file.
%% 3. View PDF with Acrobat Reader.

\documentclass{beamer}
\usepackage{multimedia}
\begin{document}

\begin{frame}
\frametitle{frame title}

text

\movie[label=s1,width=160pt,height=120pt,poster]{sample}{sample.avi}
\hyperlinkmovie[start=2s,duration=10s]{s1}{\beamerbutton{show 2--12s}}
\end{frame}

\end{document}

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

Timezone

1. Set "UTC=no" in "/etc/default/rcS".

2. Set as your own location in "/etc/timezone".

3. Load hardware clock to system. ("hwclock -s")

$ man date
$ man hwclock

Category: /computer/debian | 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

tabbing environment example

\begin{tabbing}
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\=          \=   the longest span \kill
P. O. Box xxxx, Beijing,         \>\` Phone: \>\` (xxx) xxx-xxx \\
1000xx P. R. China               \>\` Email: \>\` {\tt xxx@xxx.xxx}
\end{tabbing}

Category: /computer/tex | Permalink

Abbreviated \today

\newcommand{\abbrtoday}{\ifcase\month\or%
Jan.\or Feb.\or Mar.\or Apr.\or May\or Jun.\or%
Jul.\or Aug.\or Sep.\or Oct.\or Nov.\or Dec.\fi%
\space\number\day, \number\year}

Category: /computer/tex | Permalink

LaTeX render test

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

Category: /computer/tex | Permalink

How to install font symbols' packages (like ifsym) in teTeX?

It's so easy to generate and set up a new .sty file.

But how can we install a font/symbol package like ifsym ?

Is this a general method ?

  1. create a directory $TEXMF/fonts/sources/public/ifsym
  2. copy all the *.mf *.gen to this directory
  3. create a directory $TEXMF/tex/latex/ifsym
  4. copy all the *sty *.fd to this directory
  5. Add the following lines to the file: $TEXMF/fontname/special.map
    ifsym public ifsym
    ifgeo public ifsym
    ifwea public ifsym
    ifclk public ifsym
  6. update the TeX file database by running texhash or whatever your Tex imprementation provides.
  7. create a document:
    \documentclass{article}
    \usepackage[geometry]{ifsym}
    \begin{document}
    \Circle
    \SquareShadowA
    \end{document}
  8. Run LaTeX, if everything is fine, you should see a dvi that has a big circle and a big square shaded with a simple line at bottom and right of the square.

(See: http://www.tug.org/pipermail/tugindia/2001-August/000056.html)

Category: /computer/tex | Permalink

Page 1 of 2: 1 2