1.å¦ä½å®è£
gentoo linux
2.MinDoc 简介
3.delphiè·åMACå°å代ç
å¦ä½å®è£ gentoo linux
ä¸è½½åºæ¬ç³»ç»åæºç å
为äºå å¿«å®è£ é度ï¼ææ¯å å°éè¦ç¨å°çå 个éè±¡å ¨é¨ä¸è½½å°æ¬å°ãæé¡»ä¸è½½çæ件å æ¬ï¼
1ãæå°å®è£ é象å ï¼install-x-minimal-.iso
2ãStage Tarballå¿«ç §å ï¼stage3-i-.tar.bz2
3ãç³»ç»Portageå¿«ç §å ï¼portage-latest.tar.bz2
ç½ç»ç¯å¢æUçåå¤
ä¸è½½å®æä¹åï¼æçåæ³æ¯å°ä¸è¿°2ä¸3两个å æ¾ç½®å°å±åç½çwebä¸ï¼webå°å为ï¼..1.ï¼ï¼å个ç®åç页é¢ï¼ä¾¿äºä¸è½½ä¸è®¿é®ã页é¢ä¸ºï¼index.htmlï¼
页é¢ä¸åªæ两è¡ç®åç代ç ï¼
< a href="stage3-i-.tar.bz2" > stage3< / a >
< br >< a href="portage-latest.tar.bz2" >portage < / a >< br >
å¦æ¤ï¼åå¤å·¥ä½å®æã以ä¸å¼å§å®è£ ï¼
æ使ç¨Linuxæ件系ç»çEXT4æ ¼å¼çUçåæ¾ä»¥ä¸ä¸¤ä¸ªæ件
ååº
ç¨æå°å®è£ é象å install-x-minimal-.isoå¯å¨ç³»ç»ï¼
1ãååç£ç为äºç®åæ¹ä¾¿ï¼è¿æ¯æwikiçæ¹æ³ï¼åªå为ä¸ä¸ªåºï¼
å¦ä¸ï¼
/dev/sda1 å¯å¨ååº
/dev/sda2 交æ¢ååº
/dev/sda3 æ ¹ååº
以ä¸æ¯å ·ä½ååç£çä¸æ¥éª¤ï¼
fdisk /dev/sdaé¦å 建ç«bootååºï¼Command (m for help):
nCommand action e extended p primary partition
(1-4)pPartition number (1-4): 1First cylinder (1-,源码部落冲突网站源码 default 1): ï¼æå车ï¼
Using
default value 1Last cylinder or +size or +sizeM or +sizeK (1-,
default ):
+Mï¼è¿é设å®æ¯wikiä¸ç¨å¤§ä¸äºï¼ä¾¿äºä»å使ç¨å¤ä¸ªå æ ¸ï¼ç±äºè¿ä¸ªååºæ¯å°æ¥çbootï¼æ以éè¦æè¿ä¸ªååºè®¾ç½®æå¯å¯å¨çã
é®å ¥aæ¥ç»ååºæ·»å å¯å¨æ å¿ï¼
ç¶åé®å ¥1ãå¦æä½ å次æpé®ï¼ä½ å°±ä¼æ³¨æå°ï¼
å¨âBootâé£ä¸åæ个*ãä¸é¢å»ºç«swapååºï¼åä¸ï¼
é®å ¥nå建ä¸ä¸ªæ°ååºï¼ç¶åé®å ¥pæ¥åè¯fdiskä½ å建çæ¯ä¸»ååºãæ¥çè¾å ¥2æ¥å建第2个主ååºï¼å¨æ¬ä¾ä¸æ¯/dev/sda2ãå½æ示è¾å ¥ç¬¬ä¸ä¸ªæ±é¢çæ¶åï¼ç´æ¥æ²å车ãå½æ示è¾å ¥æåä¸ä¸ªæ±é¢çæ¶åï¼è¾å ¥+Mæ¥å建ä¸ä¸ªMB大å°çååºãå¨è¿ä¹åï¼é®å ¥tæ¥è®¾ç½®ååºç±»åï¼é®å ¥2éæ©ä½ ååå建çé£ä¸ªååºï¼ç¶ååè¾å ¥ï¼å³æååºè®¾ç½®æäºâLinux
Swapâãä¸é¢ï¼å»ºç«æ ¹ååºï¼åä¸ï¼é®å ¥nå建ä¸ä¸ªæ°ååºï¼ç¶åé®å ¥pæ¥åè¯fdiskä½ å建çæ¯ä¸»ååºãæ¥çè¾å ¥3æ¥å建第3个主ååºï¼å¨æ¬ä¾ä¸æ¯/dev/sda3ãå½æ示è¾å ¥ç¬¬ä¸ä¸ªæ±é¢çæ¶åï¼ç´æ¥æ²å车ãå½æ示è¾å ¥æåä¸ä¸ªæ±é¢çæ¶åï¼ä»ç¶ç´æ¥å车ï¼æç£çä¸çå©ä½ç©ºé´å建ä¸ä¸ªååºãå®æ以ä¸è¿äºæ¥éª¤ä¹åï¼é®å ¥pï¼åºè¯¥æ¾ç¤ºä¸ä¸ªä¸ä¸é¢ç±»ä¼¼çååºè¡¨ï¼
Device Boot Start End Blocks Id
System/dev/sda1 * 1 +
Linux/dev/sda2
Linux swap/dev/sda3
Linux2ã æ ¼å¼åååºå¹¶æè½½ååºæ ¼å¼åååº
mkfs.ext3 /dev/sda1
mkfs.ext4 /dev/sda3
mkswap /dev/sda2
æè½½ååº
swapon /dev/sda2
mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot
å¼å§å®è£ åºæ¬ç³»ç»
é¦å å®è£ Stage Tarballè¿å ¥Gentooçæè½½ç¹#
cd /mnt/gentooææ¯é¢å å°Stageå æ¾å°äºå±åç½å çwebä¸çï¼æ以ç´æ¥ä½¿ç¨links访é®é¡µé¢å¹¶ä¸è½½ï¼
# links mand := chr(NCBENUM);
NCB.ncb_buffer := Pointer(Lenum);
NCB.ncb_length := SizeOf(Lenum);
RetCode := Netbios(NCB);
i := 0;
repeat
Fillchar(NCB^, SizeOf(TNCB), 0);
Ncb.ncb_command := chr(NCBRESET);
Ncb.ncb_lana_num := lenum.lana[I];
RetCode := Netbios(Ncb);
Fillchar(NCB^, SizeOf(TNCB), 0);
Ncb.ncb_command := chr(NCBASTAT);
Ncb.ncb_lana_num := lenum.lana[I];
// Must be
Ncb.ncb_callname := ('*');
Ncb.ncb_buffer := Pointer(Adapter);
Ncb.ncb_length := SizeOf(TAdapterStatus);
RetCode := Netbios(Ncb);
//---- calc _systemId from mac-address[2-5] XOR mac-address[1]...
if (RetCode = chr(0)) or (RetCode = chr(6)) then
begin
_SystemId := IntToHex(Ord(Adapter.adapter_address[0]), 2) + '-' +
IntToHex(Ord(Adapter.adapter_address[1]), 2) + '-' +
IntToHex(Ord(Adapter.adapter_address[2]), 2) + '-' +
IntToHex(Ord(Adapter.adapter_address[3]), 2) + '-' +
IntToHex(Ord(Adapter.adapter_address[4]), 2) + '-' +
IntToHex(Ord(Adapter.adapter_address[5]), 2);
end;
Inc(i);
until (I >= Ord(Lenum.Length)) or (_SystemID <> '-----');
FreeMem(NCB);
FreeMem(Adapter);
FreeMem(Lenum);
GetMacAdress := _SystemID;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
wxymac : String;
begin
wxymac:=GetMACAdress;
end;