More notes on Gentoo install (cheatsheet stuff)…

When I last wrote about my process for getting my machine up and running I was getting the system updated to the latest version of software.  That was a while ago.  But there are a few more things that need to be done before the computer really is bootable, though I have found the order is probably somewhat less important than the documentation suggests.

Continuing on

There are a few steps that are still needed.  Setting up timezone is next on the list I have, then setting up locale, setting up fstab, and there is where my notes get really fuzzy…  But GRUB is what I next have notes on, and that ended up being messy…  That will be a separate post…  But at the end of this, I have a few additional packages that I found I had to install.

Timezone Setup

ls /usr/share/zoneinfo
echo "America/Vancouver" > /etc/timezone

This first line points to where the timezones are defined. The second how to set it (though this itself doesn’t set it right now). The example is what I have used.

Setting Locale

This sets a bunch of different things, it needs to be set, so you need to go through a bit of a process.

vi /etc/locale.gen
source /etc/profile
export PS1="(chroot) $PS1"

The first is editing the locale.gen file, which says what you are running for locale on the system. Then you run locale-gen to create it. The remaining commands are getting you into the newly created locale settings.

Kernel stuff

Creating and installing a kernel is needed to get your system working. Complete instructions for setting this up will require at least one other post. There are a few commands that will get you started for setting up your kernel.

emerge --ask sys-kernel/gentoo-sources
ls -l /usr/src
emerge --ask sys-aps/pciutils

The first command gets you the kernel sources, there are other options for this, but this is the recommended one. The next line checks to see if you have your symbolic link (symlink) set correctly. Then you install the pciutils which gives you the command lspci which can help you to identify your hardware which you’ll need support for.

After you have that information you need to make your new kernel. To do so you will need to go through the process that I have listed as:

make menuconfig
make modules_install
make install

This is a very brief list of commands to go through, but the figuring out what you need to do with the configuration in make menuconfig is probably the hardest part of it. Also, there may be other steps, for example I need to mount my /boot partition before the make install stage.

Setting up fstab

The next thing you need to do is setup fstab. I don’t have any notes here, but you need to have your partitions that you need to run the system listed so they get properly mounted. I do not mount /boot as I mostly don’t need it, and changes that happen there can be a problem, but I still put an entry in for it, because then I can do mount /boot when I need to do that.

Setting up GRUB

Setting up grub should be fairly easy. You need to install the grub package, then install grub to boot, and then create your grub.cfg file.

This was not what happened for me. I will write a post about how I ended up setting up grub, it could be coming shortly. Also, I will need to write something up about setting up the new video card. That was an adventure too.

Useful basic function packages

There are a few packages that I think are important and rather helpful that I installed manually.

  • vim
  • gentoolkit
  • mate-terminal
  • kterm
  • lm_sensors
  • dmidecode
  • pciutils
This entry was posted in Computer Support, Linux and tagged , , , , . Bookmark the permalink. Both comments and trackbacks are currently closed.