Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Funtoo Linux First Steps"

From Funtoo
Jump to navigation Jump to search
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{fancynote|Help us improve this page by adding your favorite post-install first steps!}}
If you are brand new to Gentoo Linux or Funtoo Linux, this page will help you to get familiar with your new system, and how it works.


After booting into a new Funtoo Linux installation, you are ready to explore the full capabilities of your system.
== Intro to Emerge: Installing an Editor ==
 
=== Accurate System Time (NTP) ===
 
It's important that your Funtoo Linux system has an accurate clock. NTP (network time protocol) can ensure your clock is accurate at all time.
 
My favorite and recommended NTP client/server is <tt>net-misc/chrony</tt>. It is recommended for Funtoo systems:
 
<console>
# ##i##emerge chrony
# ##i##rc-update add chronyd default
</console>
 
Use something like the following for your <tt>/etc/chrony/chrony.conf</tt>:
 
<pre>
server time.apple.com
maxupdateskew 100
driftfile /etc/chrony/chrony.drift
keyfile /etc/chrony/chrony.keys
commandkey 1
dumponexit
dumpdir /var/log/chrony
initstepslew 10 time.apple.com
logdir /var/log/chrony
log measurements statistics tracking
logchange 0.5
mailonchange me@emailprovider.com 0.5
rtcfile /etc/chrony/chrony.rtc
rtconutc
sched_priority 1
lock_all
</pre>
 
Chronyd can then be started immediately by running <tt>rc</tt> to start all new services:
 
<console>
# ##i##rc
</console>
 
Because Funtoo Linux starts network daemons without waiting for an Internet connection to become available, and because chrony will attempt to synchronize the clock over the Internet when it first starts, you must manually configure chronyd to be dependent on whatever method you use to enable your outbound network connectivity. For example, if using <tt>dhcpcd</tt>, add the following to <tt>/etc/conf.d/chronyd</tt>:
 
<pre>
rc_need=dhcpcd
</pre>
 
You should notice a marked improvement in your system clock's accuracy. If your system time was off by a significant amount, <tt>chronyd</tt> will gradually correct your clock while the system runs.
 
== Installing an Editor ==


By default, Funtoo Linux has the <tt>nano</tt> and <tt>vi</tt> editors installed. <tt>nano</tt> is the default editor.
By default, Funtoo Linux has the <tt>nano</tt> and <tt>vi</tt> editors installed. <tt>nano</tt> is the default editor.


If you are new to Funtoo Linux, you have probably heard about <tt>emerge</tt>, the Funtoo and Gentoo Linux command for installing packages from the Portage tree. Funtoo Linux has a git-based Portage tree, which is located at <tt>/usr/portage</tt> by default. It contains scripts called ''ebuilds'' that describe how to build and install packages from source. <tt>emerge</tt> is used to run these scripts and install packages, as follows:
If you are new to Funtoo Linux, you have probably heard about <tt>[[emerge]]</tt>, the Funtoo and Gentoo Linux command for installing packages from the Portage tree. Funtoo Linux has a git-based Portage tree, which is located at <tt>/usr/portage</tt> by default. It contains scripts called ''ebuilds'' that describe how to build and install packages from source. <tt>emerge</tt> is used to run these scripts and install packages, as follows:


<console>
<console>
Line 97: Line 49:


Note that <tt>package.use</tt> can also be a file if you prefer. However, using an <tt>/etc/portage/package.use</tt> directory is recommended as it keeps things better organized. The filenames you use inside the <tt>package.use</tt> directory do not impact Portage behavior and can be named whatever is convenient for you. You might want to put the settings above in a file called <tt>/etc/portage/package.use/editors</tt> if you have several USE settings that you use for editors.
Note that <tt>package.use</tt> can also be a file if you prefer. However, using an <tt>/etc/portage/package.use</tt> directory is recommended as it keeps things better organized. The filenames you use inside the <tt>package.use</tt> directory do not impact Portage behavior and can be named whatever is convenient for you. You might want to put the settings above in a file called <tt>/etc/portage/package.use/editors</tt> if you have several USE settings that you use for editors.
See the [[emerge]] page for more information on various emerge command-line options and best practices.


==== Default editor ====
==== Default editor ====
Line 123: Line 77:
</console>
</console>


=== Changing profile ===
=== Profiles ===
 
You may have heard that Funtoo Linux and Gentoo Linux are metadistributions, which means that rather than being a one-size-fits-all kind of Linux, they allow you to customize your system to your liking. We have already taken a look at <tt>USE</tt> variables, and there are also various other settings that can affect the features that are installed when you emerge a package.
 
In Funtoo Linux, we have a system of ''profiles'' which can be used to enable various useful settings at once. In fact, a number of profiles are already enabled on your system. For example, on my desktop system, typing <tt>eselect profile show</tt> produces the following output:
 
<console>
# ##i##eselect profile show
 
##g##Currently set profiles:
    arch: gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
  build: gentoo:funtoo/1.0/linux-gnu/build/current
  flavor: gentoo:funtoo/1.0/linux-gnu/flavor/desktop
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/gnome
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/hardened
 
 
##g##Automatically enabled profiles:
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/print
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/X
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/audio
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/dvd
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/media
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/console-extras
</console>
 
In case you're curious, these various profile settings live within <tt>/usr/portage/profiles</tt> -- in the listing above, the <tt>gentoo:</tt> prefix refers to this portage profile directory. You can find the profile settings for <tt>gentoo:funtoo/1.0/linux-gnu/mix-ins/X</tt> by looking in <tt>/usr/portage/profiles/funtoo/1.0/linux-gnu/mix-ins/X</tt>, for example.
 
Under the list of <tt>Currently set profiles</tt>, you'll see that I have an <tt>x86-64bit</tt> arch profile. In Funtoo Linux, ''all'' systems have a single arch profiled defined, and this is where settings specific to your system architecture are defined. In addition, I have a build profile of ''current''. All Funtoo Linux systems have a single build profile defined, and this tells Portage what masks to apply to the Portage tree -- in other words, what selection of packages you will have available to emerge. If you are using funtoo-stable, your build profile will be ''stable'' and you will have a more limited set of packages that you can merge by default -- the stable set.
 
You will also see that I have a ''flavor'' profile. Unlike the ''arch'' and ''build'' profiles, which should not be changed, you can choose another flavor if you want. In fact, we encourage you to do so. The ''flavor'' is used to define the general type of system you are creating. You can only have one flavor profile enabled, and since this command was run on a desktop-type system, I have enabled the ''desktop'' flavor. This enables a variety of settings, primarily USE flags, suitable for desktop systems.
 
You'll also see that I have a couple of ''mix-ins'' enabled. In Funtoo Linux, you can have zero or more mix-ins enabled -- I have ''gnome'' enabled, which sets various settings that are optimal for the use of the [[GNOME First Steps|GNOME]] desktop environment, and then I am also using the ''hardened'' mix-in, since I have set up a so-called "hardened" system with various protections against malicious attacks.
 
{{Tip|Funtoo Linux now [[News:New_Media_Mix-ins|has enhanced Media mix-ins]] to help you easily get the level of media support you want for your system.}}
 
Then there's a list of automatically-enabled profiles. This shows you any profiles that are pulled in by the main profiles and mix-ins that are already enabled. As you can see, the ''print'', ''X'', ''audio'', ''dvd'', ''media'' and ''console-extras'' have been enabled, likely by the ''desktop'' flavor.
 
For now, it is not necessary to get too deep into profiles, but if you are creating a desktop system, I suggest you set the ''desktop'' flavor. To do this, type <tt>eselect profile list</tt> and find the number to the left of <tt>funtoo/1.0/linux-gnu/flavor/desktop</tt>. Then, type the following command as the root user:
 
<console>
# ##i##eselect profile set-flavor 99
</console>
 
(Replace "99" with the number from the list)


The [[Funtoo_1.0_Profile]] uses a new multi profile approach which allows way more flexibility and customization. Instead of having to remove what you don't want, now you'll be able to add in just the parts that you do want and leave out the rest.
You will now have the ''desktop'' flavor set for your system. Type <tt>eselect profile show</tt> to see your new settings.


=== Updating your system ===
=== Updating your system ===
Line 190: Line 188:
<console>
<console>
# ##i##emerge -auDN vim emacs
# ##i##emerge -auDN vim emacs
</console>
== System Services: Installing a logger ==
It's a good idea to install a system logging daemon, and then enable it. This will ensure that any important system messages are logged to text files in <tt>/var/log</tt>.
Metalog is a popular lightweight logger:
<console>
# ##i##emerge metalog
# ##i##rc-update add metalog default
# ##i##rc
* Starting metalog ...
</console>
Above, we used the <tt>rc-update</tt> helper command to add the <tt>metalog</tt> initialization script to the <tt>default</tt> runlevel. The <tt>default</tt> runlevel, defined at <tt>/etc/runlevels/default</tt>, contains symbolic links to all system initalization scripts to run by default.
The <tt>rc</tt> command will tell OpenRC to ensure that all services in the current runlevel are running, and if they are not, to start them. Since we added <tt>metalog</tt> to the default (current) runlevel, but did not start it, running <tt>rc</tt> will cause <tt>metalog</tt> (and any other scripts that need to start) to be started.
If you need to stop a service manually, you can run its initialization script directly from <tt>/etc/init.d</tt>:
<console>
# ##i##/etc/init.d/metalog stop
* Stopping metalog ...   
</console>
== System Services: Installing a cron daemon ==
Another useful system service present on most systems is the cron daemon, which allows you to configure certain tasks to be automatically run at certain times. More importantly, some other packages assume you have a cron daemon and may try to set up cron jobs, so it is a good idea to have a cron daemon installed even if you don't anticipate using it manually yourself. Packages that might want to set cron jobs include <tt>sys-apps/man-db</tt>, <tt>sys-apps/mlocate</tt>, <tt>app-portage/pfl</tt>, and other programs that keep some kind of database that needs to be updated from time to time.
There are various different implementations of cron which have different properties, but the one we recommend for Funtoo is <tt>sys-process/fcron</tt>.
The process for setting up the cron daemon is similar to how we set up the system logger just now:
<console>
# ##i##emerge fcron
# ##i##rc-update add fcron default
# ##i##rc
* Starting fcron ...
</console>
</console>


Line 244: Line 203:
;<tt>app-misc/mc</tt>: GNU Midnight Commander is a text based file manager --- some will recall <tt>MS-DOS XtreeGold</tt>
;<tt>app-misc/mc</tt>: GNU Midnight Commander is a text based file manager --- some will recall <tt>MS-DOS XtreeGold</tt>
;<tt>app-text/wgetpaste</tt>: Command-line interface to various pastebins; very useful in providing info along with bugs reports  
;<tt>app-text/wgetpaste</tt>: Command-line interface to various pastebins; very useful in providing info along with bugs reports  
;<tt>net-irc/irssi</tt>: A modular textUI IRC client with IPv6 support; a powerfull tool to get help from Funtoo Community on IRC channel. Nice companion to <tt>app-text/wgetpaste</tt>
;<tt>net-irc/irssi</tt>: A modular textUI IRC client with IPv6 support; a powerful tool to get help from Funtoo Community on IRC channel. Nice companion to <tt>app-text/wgetpaste</tt>


<console>
<console>
# ##i##emerge --jobs app-misc/screen sudo htop eix gentoolkit app-misc/mc wgetpaste net-irc/irssi
# ##i##emerge --jobs app-misc/screen sudo htop eix gentoolkit app-misc/mc wgetpaste net-irc/irssi
# ##i##eix-update
</console>
</console>
Then use `eix-sync` for syncing portage.


=== Creating a user account ===
=== Creating a user account ===
Line 271: Line 227:
Unlike most operating systems, Funtoo does not ship with a GUI pre-installed. If you've used Windows or Mac OS, you'd also know that their interfaces cannot be replaced easily. With Linux, the opposite is true -- you are free to choose from a huge selection of GUIs. From window managers such as Blackbox, IceWM, and xmonad, to fully-featured desktop environments like GNOME and KDE, the possibilities are vast in number.
Unlike most operating systems, Funtoo does not ship with a GUI pre-installed. If you've used Windows or Mac OS, you'd also know that their interfaces cannot be replaced easily. With Linux, the opposite is true -- you are free to choose from a huge selection of GUIs. From window managers such as Blackbox, IceWM, and xmonad, to fully-featured desktop environments like GNOME and KDE, the possibilities are vast in number.


=== X.Org ===
The first step in setting up a graphical environment is to set up the [[X Window System]]. Then, you will be able to install the graphical environment of your choice. [[GNOME First Steps|GNOME]] is a popular option for new users.
 
In order to use a graphical environment it's necessary to install X.Org Server. Before we start it's a good idea to make sure that your system is configured correctly. If you've installed your kernel using the <tt>binary</tt> USE flag, chances are that your video card is already supported.
 
In order for Portage to know which video card(s) you want to support, you'll need to add a line to your <tt>make.conf</tt>.
<console>
# ##i##nano -w /etc/portage/make.conf
...
VIDEO_CARDS="intel"
</console>
 
In the example above we're using Intel integrated graphics drivers. Examples of valid entries include <tt>radeon</tt> for AMD Radeon cards, and <tt>nouveau</tt> or <tt>nvidia</tt> for NVIDIA cards. If you haven't yet switched to the <tt>desktop</tt> profile it's a good idea to [[#Changing profile|do it now]].
 
Next comes the actual installation:
<console>
# ##i##emerge xorg-x11
</console>
 
Now we need to test to make sure X.Org is working properly. To test it we will install twm, a simple window manager which has traditionally served as the standard window manager for X.Org. In Funtoo Linux it is included in the core X.Org meta-package <tt>x11-apps/xinit</tt>, but is not installed by default.
 
It is possible to install twm directly by merging <tt>x11-wm/twm</tt> but for the sake of this tutorial we will install the meta-package, which includes a few extra utilities which may come in handy. There are two ways to do this depending on whether you want it to be installed temporarily or permanently. If you just want it to test X.Org use the following command:
<console>
# ##i##USE="-minimal" emerge -1 xinit
</console>
 
The <tt>minimal</tt> USE flag is used in some ebuilds to install the bare minimum needed to get a working system. By passing <tt>USE="-minimal"</tt> to the command line before <tt>emerge</tt>, we are telling Portage to disable the flag and install the complete package. The <tt>-1</tt> (<tt>--oneshot</tt>) following <tt>emerge</tt> tells Portage not to add the package to [[#Updating your system|<tt>world</tt>]]. This is useful when installing packages which are automatically pulled in as dependencies by other packages.
 
If you want the package installed permanently you will need to add a line to <tt>package.use</tt>:
<console>
# ##i##mkdir -p /etc/portage
# ##i##echo x11-apps/xinit -minimal >> /etc/portage/package.use
</console>
 
Next we reinstall <tt>x11-apps/xinit</tt>:
<console>
# ##i##emerge -1N xinit
</console>
 
Once that's done, we're able to finally test X.Org:
 
<console>
# ##i##startx
</console>
 
If everything is well, a simple GUI along with an analog clock and a terminal will appear.
 
=== Troubleshooting ===
 
ToDo:  Add basic steps to check if things go wrong and X does not start.
 
* x11-drivers
* /etc/portage/make.conf
** VIDEO_CARDS=""
** INPUT_DEVICE=""
** evdev
** mouse, keyboard
* /etc/X11/xorg.conf
* /etc/conf.d/xdm


[[Category:HOWTO]]
[[Category:HOWTO]]
[[Category:Install]]
[[Category:Install]]
[[Category:Featured]]
[[Category:Featured]]

Revision as of 19:28, January 12, 2015

If you are brand new to Gentoo Linux or Funtoo Linux, this page will help you to get familiar with your new system, and how it works.

Intro to Emerge: Installing an Editor

By default, Funtoo Linux has the nano and vi editors installed. nano is the default editor.

If you are new to Funtoo Linux, you have probably heard about emerge, the Funtoo and Gentoo Linux command for installing packages from the Portage tree. Funtoo Linux has a git-based Portage tree, which is located at /usr/portage by default. It contains scripts called ebuilds that describe how to build and install packages from source. emerge is used to run these scripts and install packages, as follows:

root # emerge vim

You can also see what packages would be installed, but not actually install them, by using the -p, or --pretend option:

root # emerge -p vim

Another equally handy option is the -a, or --ask option, which will display the packages to be merged, and then ask for confirmation from you before continuing:

root # emerge -a emacs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-admin/eselect-emacs-1.13 
[ebuild  N     ] net-libs/liblockfile-1.09 
[ebuild  N     ] app-emacs/emacs-common-gentoo-1.3-r1  USE="-X -emacs22icons" 
[ebuild  N     ] app-editors/emacs-23.4-r1  USE="alsa gif gpm jpeg png tiff xpm -X -Xaw3d (-aqua) -athena -dbus -gconf -gtk -gzip-el -hesiod -kerberos -livecd -m17n-lib -motif -sound -source -svg -toolkit-scroll-bars -xft" 
[ebuild  N     ] virtual/emacs-23 

Would you like to merge these packages? [Yes/No]  y

In the above emerge output, you can see some text beginning with USE= on the app-editors/emacs line. This means that this package has a number of optional build-time features which can be controlled using Portage USE variables. These USE variables can be set globally by adding a line such as this to /etc/make.conf:

USE="gif jpeg png tiff xpm"

If you go ahead and make these changes, and then run emerge -a emacs again, you will notice that several more dependencies will be pulled into the list of packages to be merged. You can control the footprint of your Funtoo Linux system (and avoid bloat) by enabling only the USE variables you need.

Above, we enabled several USE variables globally in /etc/make.conf. It is also possible to enable USE variables on a per-package basis, and often times this is the best approach. If you wanted to enable gtk for emacs only, you would create the /etc/portage/package.use directory, and create an emacs file in it that contained the following:

app-editors/emacs gtk

Note that package.use can also be a file if you prefer. However, using an /etc/portage/package.use directory is recommended as it keeps things better organized. The filenames you use inside the package.use directory do not impact Portage behavior and can be named whatever is convenient for you. You might want to put the settings above in a file called /etc/portage/package.use/editors if you have several USE settings that you use for editors.

See the emerge page for more information on various emerge command-line options and best practices.

Default editor

Funtoo Linux also has a special meta-command called eselect, which can be used to set many default system settings. One of the things it is used for is to set the default editor used by things like crontab -e, etc that will automatically start an editor when run. Here is how to use eselect to change the default system editor:

root # eselect editor list
Available targets for the EDITOR variable:
  [1]   /bin/nano
  [2]   /bin/ed
  [3]   /usr/bin/ex
  [4]   /usr/bin/vi
  [ ]   (free form)
root # eselect editor set 4
Setting EDITOR to /usr/bin/vi ...
Run ". /etc/profile" to update the variable in your shell.

After logging in again, or typing source /etc/profile in the current shell, the new system editor will be active.

Note that if you want to use vim instead of a vi through busybox you also need to run:

root # eselect vi set vim

Profiles

You may have heard that Funtoo Linux and Gentoo Linux are metadistributions, which means that rather than being a one-size-fits-all kind of Linux, they allow you to customize your system to your liking. We have already taken a look at USE variables, and there are also various other settings that can affect the features that are installed when you emerge a package.

In Funtoo Linux, we have a system of profiles which can be used to enable various useful settings at once. In fact, a number of profiles are already enabled on your system. For example, on my desktop system, typing eselect profile show produces the following output:

root # eselect profile show

root ##g##Currently set profiles:
    arch: gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
   build: gentoo:funtoo/1.0/linux-gnu/build/current
  flavor: gentoo:funtoo/1.0/linux-gnu/flavor/desktop
 mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/gnome
 mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/hardened


root ##g##Automatically enabled profiles: 
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/print 
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/X 
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/audio 
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/dvd 
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/media 
mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/console-extras

In case you're curious, these various profile settings live within /usr/portage/profiles -- in the listing above, the gentoo: prefix refers to this portage profile directory. You can find the profile settings for gentoo:funtoo/1.0/linux-gnu/mix-ins/X by looking in /usr/portage/profiles/funtoo/1.0/linux-gnu/mix-ins/X, for example.

Under the list of Currently set profiles, you'll see that I have an x86-64bit arch profile. In Funtoo Linux, all systems have a single arch profiled defined, and this is where settings specific to your system architecture are defined. In addition, I have a build profile of current. All Funtoo Linux systems have a single build profile defined, and this tells Portage what masks to apply to the Portage tree -- in other words, what selection of packages you will have available to emerge. If you are using funtoo-stable, your build profile will be stable and you will have a more limited set of packages that you can merge by default -- the stable set.

You will also see that I have a flavor profile. Unlike the arch and build profiles, which should not be changed, you can choose another flavor if you want. In fact, we encourage you to do so. The flavor is used to define the general type of system you are creating. You can only have one flavor profile enabled, and since this command was run on a desktop-type system, I have enabled the desktop flavor. This enables a variety of settings, primarily USE flags, suitable for desktop systems.

You'll also see that I have a couple of mix-ins enabled. In Funtoo Linux, you can have zero or more mix-ins enabled -- I have gnome enabled, which sets various settings that are optimal for the use of the GNOME desktop environment, and then I am also using the hardened mix-in, since I have set up a so-called "hardened" system with various protections against malicious attacks.

   Tip

Funtoo Linux now [enhanced Media mix-ins] to help you easily get the level of media support you want for your system.

Then there's a list of automatically-enabled profiles. This shows you any profiles that are pulled in by the main profiles and mix-ins that are already enabled. As you can see, the print, X, audio, dvd, media and console-extras have been enabled, likely by the desktop flavor.

For now, it is not necessary to get too deep into profiles, but if you are creating a desktop system, I suggest you set the desktop flavor. To do this, type eselect profile list and find the number to the left of funtoo/1.0/linux-gnu/flavor/desktop. Then, type the following command as the root user:

root # eselect profile set-flavor 99

(Replace "99" with the number from the list)

You will now have the desktop flavor set for your system. Type eselect profile show to see your new settings.

Updating your system

Sometimes, you may want to update the packages on your system. Often, this is done after you run emerge --sync, which will grab Portage tree updates from the main Funtoo Linux Portage tree:

root # emerge --sync

>>> Starting git pull...
remote: Counting objects: 1791, done.        
remote: Compressing objects: 100% (206/206), done.        
remote: Total 980 (delta 811), reused 931 (delta 764)        
Receiving objects: 100% (980/980), 185.04 KiB, done.
Resolving deltas: 100% (811/811), completed with 754 local objects.
From git://github.com/funtoo/experimental-mini-2011
   7a17140..b836bc8  funtoo.org -> origin/funtoo.org
Updating 7a17140..b836bc8
Fast-forward
>>> Git pull in /usr/portage successful

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

root # 

You may also want to update your system after you have changed USE flag settings. To take advantage of the USE flags you have just enabled, it's necessary to recompile everything that includes them.

Below, you'll find a recommended emerge command for updating your entire system. The -a option will cause emerge to prompt you for confirmation before starting the merge:

root # emerge -auDN world

-u tells emerge to update any already-installed but out-of-date packages that we specify on the command-line. The -D option tells emerge to perform a deep dependency tree graph, so it will include sub-dependencies of packages that we have specified on the command line as well. This allows emerge to perform as thorough an update of your system as possible.

The -N (--newuse) option tells Portage to check for any new USE flags that have been enabled or disabled, and rebuild packages so that all USE flags are set as currently defined in /etc/make.conf and /etc/portage/package.use.

world is a "meta-package" or "package set" which includes every package that you have manually installed plus all packages in the system set. It's important to note that whenever you ask emerge to install anything, such as metalog or vim, those packages will be automatically added to the world package set. In this way, emerge learns what packages you care about and want to keep updated. If you want to see what's in your world package set, take a look at /var/lib/portage/world:

root # cat /var/lib/portage/world
app-editors/vim
app-portage/eix
app-portage/gentoolkit
dev-vcs/git
net-misc/bridge-utils
net-misc/dhcpcd
net-misc/keychain
sys-apps/gptfdisk
sys-apps/pciutils
sys-devel/bc
sys-fs/reiserfsprogs
sys-kernel/vanilla-sources

Also note that some packages may have been added to the world set by Metro when your stage3 tarball was built.

Updating a few packages

If we simply wanted to rebuild a few packages to reflect updated USE flag settings, we could specify it instead of world. Be sure to include the -N option:

root # emerge -auDN vim emacs

Useful applications for daily usage

Here are some other packages you may want to consider installing via emerge:

app-misc/screen
Allows you to have persistent login sessions.
app-misc/tmux
Similar to screen -- some people prefer it.
app-admin/sudo
Grant root privileges to selected users and command combinations.
sys-process/htop
Colorful and informative text-based process list.
sys-process/glances
Similar to htop, includes disc I/O and network I/O in display.
app-portage/eix
Quick portage package search
app-portage/gentoolkit
Portage utils
app-misc/mc
GNU Midnight Commander is a text based file manager --- some will recall MS-DOS XtreeGold
app-text/wgetpaste
Command-line interface to various pastebins; very useful in providing info along with bugs reports
net-irc/irssi
A modular textUI IRC client with IPv6 support; a powerful tool to get help from Funtoo Community on IRC channel. Nice companion to app-text/wgetpaste
root # emerge --jobs app-misc/screen sudo htop eix gentoolkit app-misc/mc wgetpaste net-irc/irssi

Creating a user account

It's a good idea to create a normal user account that you can use for general Linux tasks. Before rebooting, create a user account for everyday use. Adjust the groups in the example below to match your needs. Some of them may not exist yet on your system. Replace "<user_name>" with the name you're going to use for your everyday user. The "-m" option instructs useradd to create a home directory for your user. See man useradd for more info.

root # useradd -m -g users -G audio,video,cdrom,wheel <user_name>

Don't forget to set a password for your new user:

root # passwd <user_name>

Installing a graphical environment

If you intend on using your Funtoo Linux installation for more than system administration, chances are you're going to want to have a GUI (graphical user interface). In the past, setting one up involved wading through text files and man pages. Thanks to modern tools like udev this is no longer the case.

Unlike most operating systems, Funtoo does not ship with a GUI pre-installed. If you've used Windows or Mac OS, you'd also know that their interfaces cannot be replaced easily. With Linux, the opposite is true -- you are free to choose from a huge selection of GUIs. From window managers such as Blackbox, IceWM, and xmonad, to fully-featured desktop environments like GNOME and KDE, the possibilities are vast in number.

The first step in setting up a graphical environment is to set up the X Window System. Then, you will be able to install the graphical environment of your choice. GNOME is a popular option for new users.