*************************************************************************
X 環境
coLinux 據我所知是沒辦法跑 X Server 的,但是å¯ä»¥è·‘ X client。其實這樣就å¤äº†ï¼Œåªè¦ä½¿ç”¨ä¸€äº›å¯ä»¥åœ¨ Win32 上使用的 X Server å°±å¯ä»¥åŸ·è¡Œå¤§éƒ¨ä»½ X 程å¼ã€‚å¯ä»¥ä½¿ç”¨çš„æ–¹æ¡ˆå¾ˆå¤šï¼Œæˆ‘ç›®å‰ä½¿ç”¨çš„æ˜¯ Xming,使用起來很方便,è¦é¡¯ç¤ºä¸æ–‡ä¹Ÿæ²’å•題 (需è¦è‡ªå·±å®‰è£å—åž‹)。
安è£ä¸Šä¸æœƒæœ‰å•題,但å›ç‚º coLinux è·Ÿ host 算是ä¸åŒæ©Ÿå™¨ï¼Œæ¯”較有å•題的å¯èƒ½æ˜¯ host access list çš„è¨å®šï¼Œä¸è¨å®šçš„話 X client 會è¦å‘Š â€œcan’t open displayâ€ã€‚一般是執行 xhost åŠå…¥å°±å¥½ï¼Œè€Œ Xming 沒辦法這樣åšã€‚找了åŠå¤©æ‰çŸ¥é“,在 Xming 安è£ç›®éŒ„下有個 X0.hosts 檔案,把 coLinux çš„ IP åŠé€²å޻就å¯ä»¥äº†ï¼Œå¤ç°¡å–®äº†å§ã€‚
然後è¨å®šå¥½ DISPLAY 變數就å¯ä»¥äº†ï¼š
export DISPLAY=192.168.0.1:0
列å°
slirpæ–¹å¼çš„è¯export DISPLAY=10.0.2.2:0,就行了。
10.0.2.2是默认的gateway
windows的剪贴æ¿å¤±æ•ˆæš‚时没碰到。
***********************************************************************
在archLinux下安è£ssh CSDN BlogæŽ¨å‡ºæ–‡ç«æŒ‡æ•°æ¦‚å¿µï¼Œæ–‡ç«æŒ‡æ•°æ˜¯å¯¹Blogæ–‡ç«ç»¼åˆè¯„åˆ†åŽæŽ¨ç®—å‡ºçš„ï¼Œç»¼åˆè¯„分项分别是该文ç«çš„点击é‡ï¼Œå›žå¤æ¬¡æ•°ï¼Œè¢«ç½‘摘收录数é‡ï¼Œæ–‡ç«é•¿åº¦å’Œæ–‡ç«ç±»åž‹ï¼›æ»¡åˆ†100ï¼Œæ¯æœˆæ›´æ–°ä¸€æ¬¡ã€‚
#pacman -S openssh
安è£openssh
#vi /etc/hosts.allow
sshd:all â†åœ¨/etc/hosts.allowä¸åŠå…¥é€™è¡Œï¼Œä¸ç„¶æœƒé€£ä¸é€²sshd(æˆ–æ˜¯èªªè¦æ”¹ç‚ºall:all)
#vi /etc/ssh/sshd_config
Protocol 2 â†åŠå…¥é€™è¡Œ
#/etc/rc.d/sshd start
Ok,sshdå°±run起來了,這時您å¯ä»¥å¾žé端利用putty或是一些ssh client登入這部機器了
è¦æ¯æ¬¡é–‹æ©Ÿå¾Œå°‡sshd跑起來,在/etc/rc.confä¸é€™è¡Œ
DAEMONS=(syslogng !hotplug !pcmcia network netfs crond)
åŠå…¥sshd
DAEMONS=(syslogng sshd !hotplug !pcmcia network netfs crond)
**************************************************************************
The simplest way to enlarge the root partition:
There is a tremendous amount of information in this entry, most of which makes something that can be simple far too complex. But here's the simplest way to do it, without doing any math or hijinx with dd, thanks to Gniarf's preformatted filesystems. Of course, if you want a filesystem of a size different than those provided, you'll need to read about the more complex ways below.
1) Download the larger, preformatted filesystem of your choice from http://gniarf.nerim.net/colinux/fs (Remember that 4095Mb is the limit if you are using FAT32 (and not NTFS) on the windows partition where the filesystem will be stored.)
2) Unpack the new filesystem using the bunzip2 program of your choice, such as 7zip [1]
3) Edit your arch.conf config file. Add a line to load that filesystem on an unused cobd device, e.g.
hda3=arch2G.fs
注æ„:å¦‚æžœä½æ˜¯ä»¥serviceæ–¹å¼è¿è¡Œcolinux,ä½è¦åŽ»æŽ‰è¯¥ service,å†é‡æ–°å®‰è£…,使新的arch.conf é…置生效
4) Boot into colinux. Make a mountpoint and mount the new filesystem from the cobd device. E.g.
mkdir /mnt/test
mount /dev/hda3 /mnt/test (that's /dev/cobd/3 on [[GenToo]])
e2fsck /dev/hda3
5) Copy the old filesystem onto the new filesystem using cp ax. Once it finishes, unmount and exit colinux. E.g.
cp ax / /mnt/test
umount /mnt/test
shutdown h now
NB: Under Gentoo Linux you may need to copy the contents of /dev to the new filesystem. Missing this step will cause Gentoo to issue a warning and instructions to fix it on reboot. So copy the contents of /dev before issuing the umount command E.g.
cp a /dev/* /mnt/test/dev/
6) Change your colinux.xml config file to use the new filesystem as root and delete the line referring to the new filesystem you added in a previous step. (You might want to zip up the old filesystem for backup purposes.) E.g.
hda1=arch2G.fs
7) Reboot colinx. You should have a larger filesystem (use "df -h" to check). You're done.