hpaste

recent | annotate | new

*************************************************************************

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=(syslog-ng !hotplug !pcmcia network netfs crond)
åŠå¥sshd
DAEMONS=(syslog-ng 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.