2008-06-30

2008-06-28

256 color terminals

  • PuTTY 0.60: Settings > Window > Colours > Allow terminal to use xterm-256color mode
  • Ubuntu 6.06: apt-get install ncurses-term
  • Set TERM=xterm-256color
  • Compile screen: configure --enable-colors256
  • Edit .screenrc:
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
  • Start screen: screen -T xterm-256color
References: 256 color emacs + putty, 256 color xterm (including some 256 color schemes for vim)

Sources for Time Zone and Daylight Saving Time Data

Sources for Time Zone and Daylight Saving Time Data

`expect -D 1' works for 5.41

Expect 5.42.1 和 5.43 的 -D 1 参数一直不能正常工作, 郁闷很久, 找了一个 5.41 编译了一下, 却是好的, 看来是 5.41 之后的修改有问题吧.

Red Hat Liberation Fonts - Free

在 WinXP 上, Liberation Mono (and Bold) 10 号字体跟 Windows 的 Fixedsys 大小相当.

2008-06-27

Webmin

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely. See the standard modules page for a list of all the functions built into Webmin, or check out the screenshots.

2008-06-25

PIDs Littler Than 300 Reserved?

在 ubuntu 6.06.2 上试验了一下, pid 长到 32767 之后, 新的 pid 并不是从 1 开始分配的, 而是从 300 开始, 貌似系统给自己预留了一些 :-)

2008-06-13

[Ubuntu] Packages being kept back

# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
openssh-client openssh-server
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
# apt-get install openssh-client openssh-server
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
openssh-blacklist
Suggested packages:
rssh
The following NEW packages will be installed:
openssh-blacklist
The following packages will be upgraded:
openssh-client openssh-server
2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2909kB of archives.
After unpacking 4280kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com dapper-updates/main openssh-blacklist 0.1-1ubuntu0.6.06.1 [2125kB]
Get:2 http://us.archive.ubuntu.com dapper-updates/main openssh-server 1:4.2p1-7ubuntu3.4 [207kB]
Get:3 http://us.archive.ubuntu.com dapper-updates/main openssh-client 1:4.2p1-7ubuntu3.4 [577kB]
Fetched 2909kB in 45s (63.6kB/s)
Preconfiguring packages ...
Selecting previously deselected package openssh-blacklist.
(Reading database ... 93922 files and directories currently installed.)
Unpacking openssh-blacklist (from .../openssh-blacklist_0.1-1ubuntu0.6.06.1_all.deb) ...
Preparing to replace openssh-server 1:4.2p1-7ubuntu3.3 (using .../openssh-server_1%3a4.2p1-7ubuntu3.4_i386.deb) ...
Unpacking replacement openssh-server ...
Preparing to replace openssh-client 1:4.2p1-7ubuntu3.3 (using .../openssh-client_1%3a4.2p1-7ubuntu3.4_i386.deb) ...
Unpacking replacement openssh-client ...
Setting up openssh-blacklist (0.1-1ubuntu0.6.06.1) ...
Setting up openssh-client (4.2p1-7ubuntu3.4) ...

Setting up openssh-server (4.2p1-7ubuntu3.4) ...
* Restarting OpenBSD Secure Shell server... [ ok ]

#

2008-06-06

Quick Reference Cards

Quick Reference Cards - http://www.digilife.be/

How to uninstall Apps in Mac OS X

-- apple mac os x uninstall --

[Ubuntu 6.06] Disable IPv6

系统启动到 IPv6 over IPv4 tunneling driver 时候 hang 住了

2008-06-05

Hex Editors

  • apt-cache search -n hex
  • apt-get install hexedit
  • apt-get install hexer
  • apt-get install hexcurse
  • apt-get install ncurses-hexedit
--
hex edit editor

2008-06-04