{"id":22,"date":"2016-11-10T15:47:56","date_gmt":"2016-11-10T15:47:56","guid":{"rendered":"http:\/\/www.hestben.se\/HestbenTechnical\/?p=22"},"modified":"2016-11-10T15:47:56","modified_gmt":"2016-11-10T15:47:56","slug":"a-noobs-guide-to-installing-gentoo-on-a-core-i5-2500k-part2","status":"publish","type":"post","link":"https:\/\/www.hestben.se\/HestbenTechnical\/?p=22","title":{"rendered":"A noobs guide to installing Gentoo on a core i5 2500K part2"},"content":{"rendered":"<p>So, now I have a bootable system, but starting in text mode is not very useful for normal day activity, so I continued following the guides <a href=\"https:\/\/wiki.gentoo.org\/wiki\/Handbook:AMD64\/Installation\/Finalizing\">final steps <\/a>creating a user.<a href=\"https:\/\/wiki.gentoo.org\/wiki\/Handbook:AMD64\/Installation\/Finalizing\"><br \/>\n<\/a><\/p>\n<p>Then I emerged <code>app-editors\/vim<\/code> (I really missed vim in the chroot system) and <code>sys-apps\/etckeeper<\/code> to keep track of my changes in \/etc.<\/p>\n<p>Next is to install a desktop environment. I&#8217;m choosing XFCE, so I followed the guide <a href=\"https:\/\/wiki.gentoo.org\/wiki\/Xfce\/Guide\">here<\/a>.<\/p>\n<p>Using the instructions to start xfce didn&#8217;t work though, because I have apparently not installed xorg yet. I found the Gentoo guide for Xorg <a href=\"https:\/\/wiki.gentoo.org\/wiki\/Xorg\/Guide\">here<\/a>. There, I\u00a0determined that I need to find out the video card. I have a built in intel graphics card I am using. I found the Gentoo <a href=\"https:\/\/wiki.gentoo.org\/wiki\/Intel\">guide<\/a> for this.<br \/>\nI added the <code>debug<\/code> and <code>dri<\/code> USE flags in <code>\/etc\/portage\/make.conf<\/code>.<\/p>\n<p><b>!!!Note:<\/b>I later found out, that the USE flags are optional, and that you should choose the ones you want. So <code>debug<\/code> was really not useful for me, because all packages were recompiled with that flag.<\/p>\n<p>There are some USE flags that are not showing in <code>emerge --info<\/code> that I added:<br \/>\n<code>dri3 sna uxa xvmc<\/code><br \/>\nI added this line in the <code>\/etc\/portage\/package.use\/intel<\/code>:<br \/>\n<code>x11-drivers\/xf86-video-intel dri3 sna uxa xvmc<\/code><br \/>\nAfter running the command<br \/>\n<code>emerge --ask --changed-use --deep @world<\/code><br \/>\nDuring that, I ran into some strange error complaining about &#8220;econf failed&#8221; and perl module not being found. From <a href=\"https:\/\/forums.gentoo.org\/viewtopic-t-979418-start-0.html\">this forum question<\/a>, I tried the solution <code>perl-cleaner --all<\/code>, and that did the trick.<br \/>\nI added my user to the video group.<br \/>\nI chose the classical way of configuring Xorg, and emerged the x11-drivers\/xf86-video-intel package.<br \/>\nNow, <code>startx<\/code> works, and starts xfce4, as specified in the file <code>~\/.xinitrc<\/code>.<\/p>\n<p>Next, I also want a login manager. So I installed slim according to the instructions in the <a href=\"https:\/\/wiki.gentoo.org\/wiki\/Xfce\/Guide\">Xfce guide<\/a>.<br \/>\nWhen logging in, it didn&#8217;t work though. Only an empty black screen was displayed. I looked at the log in <code>\/var\/log\/slim.log\/<\/code> and saw some complaints about dbus not running. So I looked in the <a href=\"https:\/\/wiki.gentoo.org\/wiki\/SLiM\">Slim guide<\/a>, and added dbus to the default run level with the command:<br \/>\n<code>rc-update add dbus default<\/code><br \/>\nNow, I can log in and it starts up the Xfce-environment.<br \/>\nBut, the keyboard layout is default, and I want a Swedish dvorak layout, so I searched and found this <a href=\"https:\/\/groups.google.com\/forum\/#!topic\/linux.gentoo.user\/4bmAzvh0xwE\">thread<\/a> saying that you need to configure that in Xorg. I looked in the <a href=\"https:\/\/wiki.archlinux.org\/index.php\/Keyboard_configuration_in_Xorg\">Xorg wiki<\/a> and added the file <code>\/etc\/X11\/xorg.conf.d\/00-keyboard.conf<\/code> with the content<br \/>\n<code>Section \"InputClass\"<br \/>\n        Identifier \"system-keyboard\"<br \/>\n        MatchIsKeyboard \"on\"<br \/>\n        Option \"XkbLayout\" \"se\"<br \/>\n        Option \"XkbModel\" \"kinesis\"<br \/>\n        Option \"XkbVariant\" \"dvorak\"<br \/>\nEndSection<\/code><br \/>\nNow, it works like a charm.<br \/>\nNext stop is installing some useful programs, like a web browser. I will cover this in the next part of my journey.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, now I have a bootable system, but starting in text mode is not very useful for normal day activity, so I continued following the guides final steps creating a user. Then I emerged app-editors\/vim (I really missed vim in the chroot system) and sys-apps\/etckeeper to keep track of my changes in \/etc. Next is &hellip; <a href=\"https:\/\/www.hestben.se\/HestbenTechnical\/?p=22\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;A noobs guide to installing Gentoo on a core i5 2500K part2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22"}],"version-history":[{"count":8,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":30,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions\/30"}],"wp:attachment":[{"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hestben.se\/HestbenTechnical\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}