gentooのカーネル設定めも
はじめに
kernelの設定は複雑なのでめもしています。これは、自分の機種X230のメモかつ初心者のメモなので参考にしない方がいいかと思います。また、気になった点があればアドバイスをもらえると嬉しいです。
目次
設定
走っているカーネルからの設定を入手を有効にする
General setup ---> <*> Kernel .config support <*> Enable access to .config though /proc.config.gz
devtmpfsの有効化
Device Drivers ---> Generic Driver Options ---> [*] Maintain a devtmpfs filesystem to mount at /dev [ ] Automount devtmpfs at /dev, after the kernel mounted the rootfs
有線LANドライバの設定
X230では、e1000eであった
lspci -k | grep -A 2 -i ethernet
有効か確認してみると
grep -i e1000e
有効であったので、そのままとする
CPUの設定
CPU情報は
cat /proc/cpuinfo | less
で見れる
初期設定のGeneric-x86-x64から変更することもないので、そのままに
IA-32
Binary Emulations --->
に移動している?ので注意
有効になっていたのでそのままで
UEFI
Processor type and features ---> [*] EFI runtime service support [*] EFI stub support [*] EFI mixed-mode support Firmware Drivers ---> EFI (Extensible Firmware Interface) Support ---> <*> EFI Variable Support via sysfs
USB
[*] USB support ---> <*> xHCI HCD (USB 3.0) support [*] xHCI support for debug capability < > Generic xHCI friver for a platform device
USB3.0のサポートが有効化されてなかったので上のように登録
Filesystemの設定
File systems ---> <*> Second extended fs support [*] Ext2 extended attributes [*] Ext2 POSIX Access Control Lists [*] Ext2 Security Labels <*> The Extended 3 (ext3) filesyste [*] Ext3 POSIX Access Control Lists [*] Ext3 Security Labels -*- The Extended 4 (ext4) filesystem -*- Ext4 POSIX Access Control Lists -*- Ext4 Security Labels [ ] Ext4 Encryption [ ] EXT4 debugging support [ ] JBD2 (ext4) debugging support <*> Reiserfs support [ ] Enable reiserfs debug mode [ ] Stats in /proc/fs/reiserfs [*] ReserFS extended attributes [*] ReiserFS POSIX Access Contorol Lists [*] ReserFS Security Labels <*> JFS filesystem support [*] JFS POSIX Access Control Lists [*] JFS Security Labels [ ] JFS debugging [*] JFS statistics <*> XFS filesystem support [*] XFS Quota support [*] XFS POSIX ACL support [*] XFS Realtime subvolume support [ ] XFS Verbose Warnings [ ] XFS Debugging support <*> GFS2 file system support <*> Btrfs filesystem support [*] Btrfs POSIX Access Control Lists [ ] Btrfs with integrity check tool compiled in (DANGERROUS) (ME [ ] Btrfs will tin sanity tests upon loading [ ] Btrfs debugging support [ ] Btrfs assert support [ ] Btrfs with the ref verify tool compiled in <*> NILFS2 file system support <*> F2FS filesystem support [ ] F2FS Status Information [*] F2FS extended attributes [*] F2FS Access Control Lists [*] F2FS Security Labels [ ] F2FS consistency checking feature [ ] F2FS Encryption [ ] F2FS fault injection facility DOS/FAT/NT Filesystems ---> <*> MSDOS fs support <*> VFAT (Windows-95) fs support Pseudo Filesystems ---> [*] /proc file system support [*] Tmpfs virtual memory file system support (former shm fs)
ファームウェアのインストール
emerge --ask sys-kernel/linux-firmware
fstabの設定
network設定
emerge --ask --noreplace net-misc/netifrc
以下を記載
config_eth0="dhcp"
eth0を各自のネットワークインターフェイスに書き換えて登録
root #cd /etc/init.d root #ln -s net.lo net.eth0 root #rc-update add net.eth0 default
hostsファイルはlocalhostに関して書いてあったのでそのままで
ロケールの変更
nano -w /etc/conf.d/keymaps
keymap変数をjp106に変更
keymap="jp106"
各種システムツールのインストール
ログ関係
emerge --ask app-admin/sysklogd
rc-update add sysklogd default
cronはノートパソコンだとfcronの方がいいようなので、fcronをインストール
emerge -av fcron rc-update add fcron default crontab /etc/crontab ファイルのインデックス作成ツールのインストール
emerge --ask sys-apps/mlocate
ファイルシステム関連ツール
emerge --ask sys-fs/e2fsprogs
DHCPクライアントのインストール
emerge --ask net-misc/dhcpcd
Wi-Fi関連のツール
emerge --ask net-wireless/iw net-wireless/wpa_supplicant
###GRUB2のインストール /etc/portage/make.confに
があることを確認
emerge --ask sys-boot/grub:2
EFIのための処理を行う
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=gentoo_grub /dev/sda mkdir /boot/EFI/boot cp /boot/EFI/gentoo_grub/grubx64.efi /boot/EFI/boot/bootx64.efi grub-mkconfig -o /boot/grub/grub.cfg