SSブログ

gentoo linux 2018 [その他linux,パソコン・物欲]

Gentoo linux
相も変わらずlinuxで遊んでいます。
Gentoo linuxを新しめのパソコンにインストールした。

Gentoo linuxはローリング・リリースされている。
あたらしいstage3-amd64-----tar.xzを入手してインストールすることができる。
今回の私のパソコン環境  gentoo linux  lxdeデスクトップ
cpu7700k-i7 
マザーボードROG STRIX Z270F GAMING 
グラフィックカードGeForce GT 730




参考サイトさま  私の去年のgentooの記事
以下の準備はこのパソコンのマルチブートされているubuntu linuxで行った。
gentooのインストールもubuntu linuxの端末を利用しfirefoxを見ながらコペパでインストールした。
準備 stage3-amd64-20180524T214502Z.tar.xz ハードディスクの用意 sda1 ext2   500mbくらい sda2 ext4 50GBくらい /usr/src/linux-4.9.95-gentoo/.config-------私の場合の.config
このファイルのおく場所をあらわしています。
make menuconfig
を実施した時に作成されるファイルです。
カーネルの設定済みです。
make && make modules_installmake installは通常どおり行う。 /etc/portage/make.conf-------私の場合のmake.conf
このファイルのおく場所をあらわしています。
設定していればすぐにemergeが利用できる。 以下は私のインストールの記録です。端末の#は省略している。
sda1boot用、sda2gentoo用になっています。 mount /dev/sda2 /mnt/ mkdir -pv /mnt/gentoo mount /dev/sda2 /mnt/gentoo cd /mnt/gentoo tar Jxfv stage3-amd64-20180524T214502Z.tar.xz mkdir /mnt/gentoo/etc/portage/repos.conf cp /mnt/gentoo/usr/share/portage/config/repos.conf
/mnt/gentoo/etc/portage/repos.conf/gentoo.conf
 
cp -L /etc/resolv.conf /mnt/gentoo/etc/ 
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
/etc/portage/make.conf
emerge --sync
emerge --depclean
emerge -1vUD @world
emerge --depclean
eselect profile list
eselect profile set [番号]
eselect profile list
私の場合以下の設定をした。
eselect profile list
星マークを確認。

default/linux/amd64/17.0/desktop (stable) *
nano /etc/locale.gen
ja_JP.UTF-8 UTF-8
locale-gen
eselect locale list
eselect locale set 3
eselect locale list
eselect locale set [番号]  
nano /etc/portage/make.conf
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
echo "Asia/Tokyo" > /etc/timezone
emerge --config sys-libs/timezone-data
emerge gentoo-sources
cd /usr/src/linux
make menuconfig
/usr/src/linux-4.9.95-gentoo/.config
make && make modules_install
make install
nano /etc/fstab

ls /sys/class/net
eth0 lo tunl0
cd /etc/init.d

ln -s net.lo net.eth0
rc-update add net.eth0 default
emerge --ask net-misc/dhcpcd
rc-update add dhcpcd default
passwd
New password : ********

nano /etc/conf.d/keymaps
"jp"
nano /etc/locale.gen
locale-gen
ja_JP.UTF-8

nano /etc/portage/make.conf
USE="multislot"
nano /etc/lvm/lvm.conf
use_lvmetad = 0
emerge --ask --newuse --deep sys-boot/grub:2

emerge --ask --newuse sys-boot/os-prober

mkdir -pv /boot
mount /dev/sda1 /boot
mkdir /boot/grub
私の環境ではgrub2と入力しなくては動かなかった。
gruberrorではまった。
lvmのスタート
https://wiki.gentoo.org/wiki/LVM/ja#Emerge
grub2-mkconfig -o /boot/grub/grub.cfg
grub2-install /dev/sda
exit
cd
reboot


再起動後、lxdeデスクトップにする。
useradd -m -G audio,video,cdrom,wheel,users satou
passwd satou
emerge xorg-drivers xorg-server

emerge lxde-meta
nano /home/satou/.xinitrc
exec startlxde

emerge gentoolkit
emerge leafpad
emerge vlgothic
emerge ibus-anthy kasumi
nano /home/satou/.xprofile
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
ibus-daemon --config=/usr/libexec/ibus-dconf -drx
$equery uses www-client/firefox
emerge firefox -ja
emerge setxkbmap
emerge sudo
emerge baekmuk-fonts
emerge media-plugins/alsa-plugins
emerge --ask media-sound/alsa-utils
emerge media-sound/pnmixer
$equery uses media-gfx/gimp
emerge --ask media-gfx/gimp
emerge --ask app-doc/gimp-help
USE="matroska"
emerge mplayer

emerge media-sound/aqualung
emerge --ask sys-block/gparted
emerge --ask scrot
nano -w /etc/env.d/02locale
LANG="ja_JP.UTF-8"
emerge lxdm
nano -w /etc/conf.d/xdm
DISPLAYMANAGER="lxdm"
rc-update add xdm default


# eselect news read はまめに読むようにしよう。問題解決の早道です。
新しめのi7-7700kパソコンでもgentoo linuxは動きました。
はじめはだめかもと思うくらい失敗しています。何せ素人なので。 以下参考画像
 

ebuildのインストール
https://wiki.gentoo.org/wiki/Basic_guide_to_write_Gentoo_Ebuilds
33.jpg
screenfetchの画像




22.jpg
/etc/fstabの画像 UUID=は # blkid を見て修正しなくてはならない


44.jpg
/usr/src/linux-4.9.95-gentoo/.configの画像

55.jpg
emerge --ask --newuse --deep pulseaudio
etc-update
-5
pulseaudioインスト~ル成功
これで最新のfirefox60.01が動く


11.jpg
正義のセ

タグ:gentoo linux
nice!(1)  コメント(0) 
共通テーマ:パソコン・インターネット

nice! 1

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。