[ Main Page ]

coLinux tips

¥Ç¥£¥¹¥¯¥µ¥¤¥º³ÈÄ¥

dd for windows¤Èresize2fs¤òÍøÍѤ¹¤ì¤Ð¡¢ Èæ³ÓŪ´Êñ¤Ë¥Ç¥£¥¹¥¯¥µ¥¤¥º¤òÁý²Ã¤µ¤»¤é¤ì¤Þ¤¹¡£¤â¤È¤Î¥µ¥¤¥º¤¬1024*1024*1024=1073741824(1GB)¤Ç¡¢ 1024*1024*(1024+512)=1610612736(1.5GB)¤Ë³ÈÄ¥¤¹¤ë¾ì¹ç¡¢°Ê²¼¤Î¤è¤¦¤Ë¤Ç¤­¤Þ¤¹¡£ ¤¿¤À¤·¡¢¤Û¤«¤Î¥µ¥¤¥º¤ÇŬÍѤ¹¤ë¾ì¹ç¤Ï¡¢¤è¤¯¹Í¤¨¤Æ¥³¥Þ¥ó¥É¤òÆþ¤ì¤Ê¤¤¤È¡¢¥Ç¡¼¥¿¤òÇ˲õ¤·¤Þ¤¹¡£ °Ê²¼¤Ç»ÈÍѤ¹¤ëZEROFILE¤ÏŬÅö¤Ê¥Õ¥¡¥¤¥ë¤Ç¹½¤¤¤Þ¤»¤ó¡£

C:\Program Files\coLinux>dd if=ZEROFILE of=Ubuntu-9.04.ext3.1gb.fs seek=1610612735 bs=1 count=1
rawwrite dd for windows version 0.5.
Written by John Newbigin <jn@it.swin.edu.au>
This program is covered by the GPL. See copying.txt for details
0+1 records in
0+1 records out

NTFS¤Ç¤Ï¥¹¥Ñ¡¼¥¹¥Õ¥¡¥¤¥ë¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢seek¤·¤Æ1¥Ð¥¤¥È½ñ¤­¹þ¤á¤Ð Îɤ¤¤ï¤±¤Ç¤¹¡£¤¢¤È¤Ï¡¢¥ª¥ó¥é¥¤¥ó¥ê¥µ¥¤¥º¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ì¤Ð¡¢ coLinux¾å¤Ç¥ê¥µ¥¤¥º¤¹¤ì¤Ð´°Î»¤Ç¤¹¡£

root@colinux:~# resize2fs /dev/cobd0

¥µ¥¦¥ó¥É½ÐÎÏ (PulseAudio)

coLinux¤«¤é³°¸þ¤±¤Ë¥Ñ¥±¥Ã¥È¤òÈô¤Ð¤¹¤Î¤Ç¡¢slirp¤Ç¤â»ÈÍѤϲÄǽ¤À¤È»×¤ï¤ì¤Þ¤¹¡£

¥Û¥¹¥ÈWindows¾å
[colinux.conf]
# ¥Ö¥ê¥Ã¥¸¿ä¾©
#eth0=slirp
eth0=tuntap
eth1=pcap-bridge,"Local Area Connection"
# ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤«¤éõ¤»¤ì¤ÐOK
exec0=pulseaudio\pulseaudio.exe
[pulseaudio\default.pa]
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16 ¼õ¿®¤Ç¤­¤ì¤Ð¤è¤¤
load-module module-esound-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/16
load-module module-detect
coLinux¾å
[/etc/pulse/client.conf]
default-server = 192.168.2.100 ¥Û¥¹¥ÈWindows¤Î¥¢¥É¥ì¥¹

Debian/Ubuntu¤À¤Èlibpulse0¥Ñ¥Ã¥±¡¼¥¸¤¬É¬ÍפǤ¹¡£

PulseAudio + ALSA

Debian/Ubuntu¤À¤Èlibasound2-plugins¥Ñ¥Ã¥±¡¼¥¸¤¬É¬ÍפǤ¹¡£

coLinux¾å
[/etc/asound.conf]
pcm.!default { type pulse }
ctl.!default { type pulse }
pcm.pulse { type pulse }
ctl.pulse { type pulse }

Samba/CIFS

Debian/Ubuntu¤À¤È¾¯¤Ê¤¯¤È¤âsmbfs¥Ñ¥Ã¥±¡¼¥¸¤¬É¬ÍפǤ¹¡£ smbclient¥Ñ¥Ã¥±¡¼¥¸¤Ï¿ä¾©¤Ç¤¹¡£Æþ¤Ã¤Æ¤¤¤Ê¤¤¤È¡¢°Ê²¼¤Î¤è¤¦¤Ê¥¨¥é¡¼¤¬½Ð¤Þ¤¹¡£

CIFS VFS: cifs_mount failed w/return code = -6
smbfs: mount_data version 1919251317 is not supported
Ross: Hi Dr. Greene. So, uh, how's everything in the uh, vascular surgery
….game?

Mr. Greene: It's not a game Ross, a woman died on my table today.

Ross: I'm sorry. See that's the good thing about my job. All the dinosaurs on
my table are already dead.

    -- David Crane & Marta Kauffman
    -- "Friends" (T.V. Show) ( http://en.wikipedia.org/wiki/Friends )

     <rindolf>  sleeper: why are people obsessed with one-liners?
     <rindolf>  It takes 3 lines - OMG what a disaster!
       <Botje>  rindolf: newline prices went up again
     <rindolf>  Botje: I buy my newlines in the black market
 <dabreegster>  Botje: again? drat.
             *  Botje reports rindolf to the newline police
 <dabreegster>  Botje: I know about an... (underground) operation going on
                to pirate newlines.
     <rindolf>  Botje: I bribed a few cops in the newline police, but nice
                try.
 <dabreegster>  Botje: Some crazy guys are trying to free newlines from
                patents! They want to rid the market!
             *  cursor gets called up to serve in the newline jury
     <rindolf>  I think we need to start a campaign to lift all
                restrictions off newlines.
 <dabreegster>  rindolf: La Resistance lives on!\n
       <Botje>  I already stockpiled millions of newlines
 <dabreegster>  Botje: We can have the one-liners destroyed by sundown
 <dabreegster>  Not destroyed, but... TURNED INTO TWO-LINERS! Mwuhahaha!

    -- The Cost of Newlines
    -- #perl, Freenode


Powered by UNIX fortune(6)
[ Main Page ]