玄箱HGメモ/Debian/カーネルコンパイルmenuconfig画面
緑文字が入力コマンド。
例としてiptablesを有効化する場合の例を記載します。
Linux Kernel Configuration画面
HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/yesno.o HOSTCC scripts/kconfig/mconf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/mconf scripts/kconfig/mconf arch/ppc/Kconfig
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +--------------------------- Linux Kernel Configuration ----------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +-------------------------------------------------------------------------------+ | | | General setup ---> | | | [*] Enable loadable module support ---> | | | -*- Enable the block layer ---> | | | Processor ---> | | | Platform options ---> | | | Bus options ---> | | | Advanced setup ---> | | | Networking ---> | | | Device Drivers ---> | | | File systems ---> | | | Library routines ---> | | | Kernel hacking ---> | | | Security options ---> | | | -*- Cryptographic API ---> | | | --- | | | Load an Alternate Configuration File | | | Save an Alternate Configuration File | | | | | | | | | | | | | | +-------------------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
Linux Kernel Configuration内共通操作
iptablesを有効にします。
上下キーでNetworkingを選択します。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +----------------------------------- Networking ------------------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +-------------------------------------------------------------------------------+ | | | [*] Networking support | | | Networking options ---> | | | [ ] Amateur Radio support ---> | | | < > CAN bus subsystem support ---> | | | < > IrDA (infrared) subsystem support ---> | | | < > Bluetooth subsystem support ---> | | | < > RxRPC session sockets | | | Wireless ---> | | | < > RF switch subsystem support ---> | | | < > Plan 9 Resource Sharing Support (9P2000) (Experimental) ---> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +-------------------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
上下キーでNetworking optionsを選択します。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +------------------------------- Networking options --------------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +----^(-)-----------------------------------------------------------------------+ | | | <*> Packet socket | | | [*] Packet socket: mmapped IO | | | <*> Unix domain sockets | | | < > Transformation user configuration interface | | | [ ] Transformation sub policy support (EXPERIMENTAL) | | | [ ] Transformation migrate database (EXPERIMENTAL) | | | [ ] Transformation statistics (EXPERIMENTAL) | | | < > PF_KEY sockets | | | [*] TCP/IP networking | | | [ ] IP: multicasting | | | [ ] IP: advanced router | | | [ ] IP: kernel level autoconfiguration | | | < > IP: tunneling | | | < > IP: GRE tunnels over IP | | | [ ] IP: ARP daemon support (EXPERIMENTAL) | | | [ ] IP: TCP syncookie support (disabled per default) | | | < > IP: AH transformation | | | < > IP: ESP transformation | | | < > IP: IPComp transformation | | | <*> IP: IPsec transport mode | | | <*> IP: IPsec tunnel mode | | | <*> IP: IPsec BEET mode | | | < > Large Receive Offload (ipv4/tcp) | | | <*> INET: socket monitoring interface | | | [ ] TCP: advanced congestion control ---> | | | [ ] TCP: MD5 Signature Option support (RFC2385) (EXPERIMENTAL) | | | < > IP virtual server support (EXPERIMENTAL) (NEW) ---> | | | < > The IPv6 protocol | | | [ ] Security Marking | | | [*] Network packet filtering framework (Netfilter) ---> | | | < > The DCCP Protocol (EXPERIMENTAL) ---> | | | < > The SCTP Protocol (EXPERIMENTAL) ---> | | | < > The TIPC Protocol (EXPERIMENTAL) ---> | | | < > Asynchronous Transfer Mode (ATM) | | | < > 802.1d Ethernet Bridging | | | < > 802.1Q VLAN Support | | | < > DECnet Support | | | < > ANSI/IEEE 802.2 LLC type 2 Support | | | < > The IPX protocol | | | < > Appletalk protocol support | | | < > CCITT X.25 Packet Layer (EXPERIMENTAL) | | | < > LAPB Data Link Driver (EXPERIMENTAL) | | | < > Acorn Econet/AUN protocols (EXPERIMENTAL) | | | < > WAN router | | | [ ] QoS and/or fair queueing ---> | | | Network testing ---> | | +----v(+)-----------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
上下キーでNetwork packet filtering framework (Netfilter)を選択します。
スペースキーで選択項目を有効([*])にします。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +----------------- Network packet filtering framework (Netfilter) ------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +-------------------------------------------------------------------------------+ | | | --- Network packet filtering framework (Netfilter) | | | [*] Network packet filtering debugging | | | [*] Advanced netfilter configuration (NEW) | | | Core Netfilter Configuration ---> | | | IP: Netfilter Configuration ---> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +-------------------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
上下キーでNetwork packet filtering debuggingを選択します。
スペースキーで選択項目を有効([*])にします。
上下キーでAdvanced netfilter configuration (NEW)を選択します。
スペースキーで選択項目を有効([*])にします。
Core Netfilter ConfigurationとIP: Netfilter Configurationが表示されます。
上下キーでCore Netfilter Configurationを選択します。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +-------------------------- Core Netfilter Configuration ---------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +----^(-)-----------------------------------------------------------------------+ | | | <M> Netfilter NFQUEUE over NFNETLINK interface | | | <M> Netfilter LOG over NFNETLINK interface | | | <M> Netfilter connection tracking support | | | -*- Connection tracking flow accounting | | | -*- Connection mark tracking support | | | [*] Connection tracking events | | | <M> SCTP protocol connection tracking support (EXPERIMENTAL) | | | <M> UDP-Lite protocol connection tracking support | | | <M> Amanda backup protocol support | | | <M> FTP protocol support | | | <M> H.323 protocol support | | | <M> IRC protocol support | | | <M> NetBIOS name service protocol support | | | <M> PPtP protocol support | | | <M> SANE protocol support (EXPERIMENTAL) | | | <M> SIP protocol support | | | <M> TFTP protocol support | | | <M> Connection tracking netlink interface | | | {M} Netfilter Xtables support (required for ip_tables) | | | <M> "CLASSIFY" target support | | | <M> "CONNMARK" target support | | | <M> "DSCP" and "TOS" target support | | | <M> "MARK" target support | | | <M> "NFQUEUE" target Support | | | <M> "NFLOG" target support | | | <M> "NOTRACK" target support | | | -M- "RATEEST" target support | | | <M> "TRACE" target support | | | <M> "TCPMSS" target support | | | <M> "TCPOPTSTRIP" target support (EXPERIMENTAL) | | | <M> "comment" match support | | | <M> "connbytes" per-connection counter match support | | | <M> "connlimit" match support" | | | <M> "connmark" connection mark match support | | | <M> "conntrack" connection tracking match support | | | <M> "dccp" protocol match support | | | <M> "dscp" and "tos" match support | | | <M> "esp" match support | | | <M> "helper" match support | | | <M> "iprange" address range match support | | | <M> "length" match support | | | <M> "limit" match support | | | <M> "mac" address match support | | | <M> "mark" match support | | | <M> "owner" match support | | | <M> IPsec "policy" match support | | | <M> "multiport" Multiple port match support | | | <M> "pkttype" packet type match support | | | <M> "quota" match support | | | <M> "rateest" match support | | | <M> "realm" match support | | | <M> "sctp" protocol match support (EXPERIMENTAL) | | | <M> "state" match support | | | <M> "statistic" match support | | | <M> "string" match support | | | <M> "tcpmss" match support | | | <M> "time" match support | | | <M> "u32" match support | | | <M> "hashlimit" match support | | +----v(+)-----------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
全選択項目に対して上下キーで選択しながら、スペースキーで選択項目を有効([*]や[M]等)にします。
左右キーで< Exit >を選択して、エンターキーで上位のNetwork packet filtering framework (Netfilter)メニューに戻ります。
上下キーでIP: Netfilter Configurationを選択します。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +--------------------------- IP: Netfilter Configuration ---------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +----^(-)-----------------------------------------------------------------------+ | | | <M> IPv4 connection tracking support (required for NAT) | | | [*] proc/sysctl compatibility with old connection tracking | | | <M> IP Userspace queueing via NETLINK (OBSOLETE) | | | <M> IP tables support (required for filtering/masq/NAT) | | | <M> "recent" match support | | | <M> "ecn" match support | | | <M> "ah" match support | | | <M> "ttl" match support | | | <M> "addrtype" address type match support | | | <M> Packet filtering | | | <M> REJECT target support | | | <M> LOG target support | | | <M> ULOG target support | | | <M> Full NAT | | | <M> MASQUERADE target support | | | <M> REDIRECT target support | | | <M> NETMAP target support | | | <M> Basic SNMP-ALG support | | | <M> Packet mangling | | | <M> ECN target support | | | <M> TTL target support | | | <M> TTL target support | | | <M> CLUSTERIP target support (EXPERIMENTAL) | | | <M> raw table support (required for NOTRACK/TRACE) | | | <M> ARP tables support | | | <M> ARP packet filtering | | | <M> ARP payload mangling | | +----v(+)-----------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
全選択項目に対して上下キーで選択しながら、スペースキーで選択項目を有効([*]や[M]等)にします。
左右キーで< Exit >を選択して、エンターキーで上位のNetwork packet filtering framework (Netfilter)メニューに戻ります。
Core Netfilter ConfigurationとIP: Netfilter Configurationはそれぞれの選択項目によって項目が増減するので、何度か両方のメニューをチェックする必要があります。
Core Netfilter ConfigurationとIP: Netfilter Configurationの全選択項目のチェックが完了したら、Linux Kernel Configurationに戻るまで、< Exit >で上位メニューに戻ることを繰り返します。
SCSIデバイスの確認をします。
上下キーでDevice Driversを選択します。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +--------------------------------- Device Drivers ----------------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +----^(-)-----------------------------------------------------------------------+ | | | Generic Driver Options ---> | | | < > Connector - unified userspace <-> kernelspace linker ---> | | | <*> Memory Technology Device (MTD) support ---> | | | < > Parallel port support ---> | | | [*] Block devices ---> | | | [*] Misc devices ---> | | | <*> ATA/ATAPI/MFM/RLL support ---> | | | SCSI device support ---> | | | < > Serial ATA (prod) and Parallel ATA (experimental) drivers ---> | | | [ ] Multiple devices driver support (RAID and LVM) ---> | | | [ ] Fusion MPT device support ---> | | | IEEE 1394 (FireWire) support ---> | | | < > I2O device support ---> | | | [ ] Macintosh device drivers ---> | | | [*] Network device support ---> | | | < > ISDN support ---> | | | < > Telephony support ---> | | | Input device support ---> | | | Character devices ---> | | | <*> I2C support ---> | | | SPI support ---> | | | < > Dallas's 1-wire support ---> | | | < > Power supply class support ---> | | | <*> Hardware Monitoring support ---> | | | [ ] Generic Thermal sysfs driver ---> | | | [ ] Watchdog Timer Support ---> | | | Sonics Silicon Backplane ---> | | | Multifunction device drivers ---> | | | Multimedia devices ---> | | | Graphics support ---> | | | Sound ---> | | | [ ] HID Devices ---> | | | [*] USB support ---> | | | < > MMC/SD card support ---> | | | < > Sony MemoryStick card support (EXPERIMENTAL) ---> | | | [ ] LED Support ---> | | | < > InfiniBand support ---> | | | [ ] EDAC - error detection and reporting (EXPERIMENTAL) ---> | | | < > Real Time Clock ---> | | | [ ] DMA Engine support ---> | | | Userspace I/O ---> | | +----v(+)-----------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
上下キーでSCSI device supportを選択します。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +------------------------------- SCSI device support -------------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +-------------------------------------------------------------------------------+ | | | < > RAID Transport Class | | | <*> SCSI device support | | | < > SCSI target support | | | [*] legacy /proc/scsi/ support | | | *** SCSI support type (disk, tape, CD-ROM) *** | | | <*> SCSI disk support | | | < > SCSI tape support | | | < > SCSI OnStream SC-x0 tape support | | | < > SCSI CDROM support | | | < > SCSI generic support | | | < > SCSI media changer support | | | *** Some SCSI devices (e.g. CD jukebox) support multiple LUNs *** | | | [ ] Probe all LUNs on each SCSI device | | | [ ] Verbose SCSI error reporting (kernel size +=12K) | | | [ ] SCSI logging facility | | | [ ] Asynchronous SCSI scanning | | | SCSI Transports ---> | | | [*] SCSI low-level drivers ---> | | | | | | | | | | | +-------------------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
以下の選択項目がチェックされていることを確認します。
確認したら、Linux Kernel Configurationに戻るまで、< Exit >で上位メニューに戻ることを繰り返します。
日本語文字セットの確認をします。
上下キーでFile systemsを選択します。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +---------------------------------- File systems -----------------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +----^(-)-----------------------------------------------------------------------+ | | | <*> Second extended fs support | | | [ ] Ext2 extended attributes | | | [ ] Ext2 execute in place support | | | <*> Ext3 journalling file system support | | | [*] Ext3 extended attributes | | | [ ] Ext3 POSIX Access Control Lists | | | [ ] Ext3 Security Labels | | | < > Ext4dev/ext4 extended fs support development (EXPERIMENTAL) | | | < > Reiserfs support | | | < > JFS filesystem support | | | < > XFS filesystem support | | | < > GFS2 file system support | | | < > OCFS2 file system support | | | [*] Dnotify support | | | [*] Inotify file change notification support | | | [*] Inotify support for userspace | | | [ ] Quota support | | | < > Kernel automounter support | | | < > Kernel automounter version 4 support (also supports v3) | | | < > Filesystem in Userspace support | | | CD-ROM/DVD Filesystems ---> | | | DOS/FAT/NT Filesystems ---> | | | Pseudo filesystems ---> | | | Miscellaneous filesystems ---> | | | [*] Network File Systems ---> | | | Partition Types ---> | | | {*} Native language support ---> | | | < > Distributed Lock Manager (DLM) ---> | | +----v(+)-----------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
上下キーでNative language supportを選択します。
エンターキーで決定して下位メニューを表示します。
.config - Linux Kernel v2.6.25 Configuration ---------------------------------------------------------------------------------------- +----------------------------- Native language support -----------------------------+ | Arrow keys navigate the menu. <Enter> selects submenus --->. Highlighted | | letters are hotkeys. Pressing <Y> includes, <N> excludes, <M> modularizes | | features. Press <Esc><Esc> to exit, <?> for Help, </> for Search. Legend: [*] | | built-in [ ] excluded <M> module < > module capable | | +----^(-)-----------------------------------------------------------------------+ | | | --- Native language support | | | (iso8859-1) Default NLS Option | | | <*> Codepage 437 (United States, Canada) | | | < > Codepage 737 (Greek) | | | < > Codepage 775 (Baltic Rim) | | | < > Codepage 850 (Europe) | | | < > Codepage 852 (Central/Eastern Europe) | | | < > Codepage 855 (Cyrillic) | | | < > Codepage 857 (Turkish) | | | < > Codepage 860 (Portuguese) | | | < > Codepage 861 (Icelandic) | | | < > Codepage 862 (Hebrew) | | | < > Codepage 863 (Canadian French) | | | < > Codepage 864 (Arabic) | | | < > Codepage 865 (Norwegian, Danish) | | | < > Codepage 866 (Cyrillic/Russian) | | | < > Codepage 869 (Greek) | | | < > Simplified Chinese charset (CP936, GB2312) | | | < > Traditional Chinese charset (Big5) | | | <*> Japanese charsets (Shift-JIS, EUC-JP) | | | < > Korean charset (CP949, EUC-KR) | | | < > Thai charset (CP874, TIS-620) | | | < > Hebrew charsets (ISO-8859-8, CP1255) | | | < > Windows CP1250 (Slavic/Central European Languages) | | | < > Windows CP1251 (Bulgarian, Belarusian) | | | < > ASCII (United States) | | | <*> NLS ISO 8859-1 (Latin 1; Western European Languages) | | | < > NLS ISO 8859-2 (Latin 2; Slavic/Central European Languages) | | | < > NLS ISO 8859-3 (Latin 3; Esperanto, Galician, Maltese, Turkish) | | | < > NLS ISO 8859-4 (Latin 4; old Baltic charset) | | | < > NLS ISO 8859-5 (Cyrillic) | | | < > NLS ISO 8859-6 (Arabic) | | | < > NLS ISO 8859-7 (Modern Greek) | | | < > NLS ISO 8859-9 (Latin 5; Turkish) | | | < > NLS ISO 8859-13 (Latin 7; Baltic) | | | < > NLS ISO 8859-14 (Latin 8; Celtic) | | | < > NLS ISO 8859-15 (Latin 9; Western European Languages with Euro) | | | < > NLS KOI8-R (Russian) | | | < > NLS KOI8-U/RU (Ukrainian, Belarusian) | | | <*> NLS UTF-8 | | +----v(+)-----------------------------------------------------------------------+ | |-----------------------------------------------------------------------------------| | <Select> < Exit > < Help > | +-----------------------------------------------------------------------------------+
以下の選択項目がチェックされていることを確認します。
確認したら、Linux Kernel Configurationに戻るまで、< Exit >で上位メニューに戻ることを繰り返します。
Linux Kernel Configurationにて、左右キーで< Exit >を選択してエンターキーで決定すると終了します。
.config - Linux Kernel v2.6.25 Configuration~ ----------------------------------------------------------------------------------------| +----------------------------------------------------------+~ | Do you wish to save your new kernel configuration? | | <ESC><ESC> to continue. | |----------------------------------------------------------| | < Yes > < No > | +----------------------------------------------------------+~
左右キーで< Yes >を選択して、エンターキーで決定すると保存して終了します。
< No >を選択して、エンターキーで決定すると保存せずに終了します。
# # configuration written to .config # *** End of Linux kernel configuration. *** Execute 'make' to build the kernel or try 'make help'.
設定作業終了です。
カーネルコンパイルに戻って作業を継続してください。
コメントはありません。 コメント/玄箱HGメモ/Debian/カーネルコンパイルmenuconfig画面?
Online: 1