Linux: July 2004 Archives
一般 linux 的 swap 都是割一塊分割區
其實也可以 swap file 的方式
如: 造一個 500MB 的 swap file in /tmp/swapfile
dd bs=1048576 count=500 if=/dev/zero of=/tmp/swapfile
mkswap /tmp/swapfile
swapon /tmp/swapfile
進一步加到 /etc/fstab
/tmp/swapfile swap swap defaults 0 0
ref. man mkswap
To setup a swap file, it is necessary to create that file before ini-
tializing it with mkswap , e.g. using a command like# dd if=/dev/zero of=swapfile bs=1024 count=65536
Note that a swap file must not contain any holes (so, using cp(1) to
create the file is not acceptable).
console, setleds -D {+|-}num < {tty}
X, numlockx {on|off|switch}
http://ktown.kde.org/~seli/numlockx/
Mandrake has numlockx in /usr/X11R6/bin/enable_X11_numlock
eg.
for tty in /dev/tty[1-8]; do
setleds -D +num < $tty
done
numlockx on
March 2008: Monthly Archives
- March 2008 (1)
- February 2008 (1)
- January 2008 (2)
- October 2007 (6)
- September 2007 (1)
- August 2007 (1)
- May 2007 (1)
- October 2006 (1)
- August 2006 (2)
- May 2006 (1)
- March 2006 (1)
- January 2006 (1)
- November 2005 (1)
- October 2005 (2)
- May 2005 (3)
- February 2005 (2)
- January 2005 (5)
- December 2004 (1)
- November 2004 (2)
- October 2004 (1)
- September 2004 (1)
- August 2004 (3)
- July 2004 (3)
- June 2004 (4)
- April 2004 (4)
- March 2004 (1)
- February 2004 (1)
- January 2004 (1)
- December 2003 (2)
- November 2003 (3)
- October 2003 (2)
- August 2003 (2)
- July 2003 (1)
Categories
Monthly Archives
- March 2008 (1)
- February 2008 (5)
- January 2008 (2)
- November 2007 (4)
- October 2007 (8)
- September 2007 (7)
- August 2007 (3)
- July 2007 (10)
- June 2007 (4)
- May 2007 (5)
- April 2007 (9)
- March 2007 (11)
- February 2007 (7)
- January 2007 (4)
- December 2006 (9)
- November 2006 (14)
- October 2006 (10)
- September 2006 (9)
- August 2006 (6)
- July 2006 (15)
- June 2006 (22)
- May 2006 (17)
- April 2006 (13)
- March 2006 (18)
- February 2006 (10)
- January 2006 (28)
- December 2005 (17)
- November 2005 (15)
- October 2005 (18)
- September 2005 (24)
- August 2005 (39)
- July 2005 (14)
- June 2005 (22)
- May 2005 (32)
- April 2005 (27)
- March 2005 (32)
- February 2005 (20)
- January 2005 (38)
- December 2004 (49)
- November 2004 (38)
- October 2004 (24)
- September 2004 (23)
- August 2004 (38)
- July 2004 (39)
- June 2004 (38)
- May 2004 (17)
- April 2004 (32)
- March 2004 (15)
- February 2004 (6)
- January 2004 (19)
- December 2003 (19)
- November 2003 (15)
- October 2003 (15)
- September 2003 (12)
- August 2003 (20)
- July 2003 (26)
Pages
Search
March 2008
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
About this Archive
This page is a archive of entries in the Linux category from July 2004.
Linux: June 2004 is the previous archive.
Linux: August 2004 is the next archive.
Find recent content on the main index or look in the archives to find all content.