Difference between pages "Install/Configuring" and "Test"

(Difference between pages)
(/etc/fstab)
 
 
Line 1: Line 1:
<noinclude>
+
__TOC__
{{InstallPart|the process of configuring your Funtoo Linux system}}
+
</noinclude>
+
=== Configuring your system ===
+
As is expected from a Linux distribution, Funtoo Linux has its share of configuration files. The one file you are absolutely required to edit in order to ensure that Funtoo Linux boots successfully is <code>/etc/fstab</code>. The others are optional. Here are a list of files that you should consider editing:
+
{{TableStart}}
+
<tr class="active"><th>File</th>
+
<th>Do I need to change it?</th>
+
<th>Description</th>
+
</tr><tr  class="danger">
+
<td><code>/etc/fstab</code></td>
+
<td>'''YES - required'''</td>
+
<td>Mount points for all filesystems to be used at boot time. This file must reflect your disk partition setup. We'll guide you through modifying this file below.</td>
+
</tr><tr>
+
<td><code>/etc/localtime</code></td>
+
<td>''Maybe - recommended''</td>
+
<td>Your timezone, which will default to UTC if not set. This should be a symbolic link to something located under /usr/share/zoneinfo (e.g. /usr/share/zoneinfo/America/Montreal) </td>
+
</tr><tr>
+
<td><code>/etc/make.conf</code> (symlink) - also known as:<br/><code>/etc/portage/make.conf</code></td>
+
<td>''Maybe - recommended''</td>
+
<td>Parameters used by gcc (compiler), portage, and make. It's a good idea to set MAKEOPTS. This is covered later in this document.</td>
+
</tr><tr>
+
<td><code>/etc/conf.d/hostname</code></td>
+
<td>''Maybe - recommended''</td>
+
<td>Used to set system hostname. Set the <code>hostname</code> variable to the fully-qualified (with dots, ie. <code>foo.funtoo.org</code>) name if you have one. Otherwise, set to the local system hostname (without dots, ie. <code>foo</code>). Defaults to <code>localhost</code> if not set.</td>
+
</tr><tr>
+
<td><code>/etc/hosts</code></td>
+
<td>''No''</td>
+
<td> You no longer need to manually set the hostname in this file. This file is automatically generated by <code>/etc/init.d/hostname</code>.</td>
+
</tr><tr>
+
<td><code>/etc/conf.d/keymaps</code></td>
+
<td>Optional</td>
+
<td>Keyboard mapping configuration file (for console pseudo-terminals). Set if you have a non-US keyboard. See [[Funtoo Linux Localization]].</td>
+
</tr><tr>
+
<td><code>/etc/conf.d/hwclock</code></td>
+
<td>Optional</td>
+
<td>How the time of the battery-backed hardware clock of the system is interpreted (UTC or local time). Linux uses the battery-backed hardware clock to initialize the system clock when the system is booted.</td>
+
</tr><tr>
+
<td><code>/etc/conf.d/modules</code></td>
+
<td>Optional</td>
+
<td>Kernel modules to load automatically at system startup. Typically not required. See [[Additional Kernel Resources]] for more info.</td>
+
</tr><tr>
+
<td><code>/etc/conf.d/consolefont</code></td>
+
<td>Optional</td>
+
<td>Allows you to specify the default console font. To apply this font, enable the consolefont service by running rc-update add consolefont.</td>
+
</tr><tr>
+
<td><code>profiles</code></td>
+
<td>Optional</td>
+
<td>Some useful portage settings that may help speed up intial configuration.</td>
+
</tr>
+
{{TableEnd}}
+
  
If you're installing an English version of Funtoo Linux, you're in luck as most of the configuration files can be used as-is. If you're installing for another locale, don't worry. We will walk you through the necessary configuration steps on the [[Funtoo Linux Localization]] page, and if needed, there's always plenty of friendly, helpful support. (See [[#Community portal|Community]])
+
<h2>foobar</h2>
  
Let's go ahead and see what we have to do. Use <code>nano -w <name_of_file></code> to edit files -- the "<code>-w</code>" disables word-wrapping, which is handy when editing configuration files. You can copy and paste from the examples.
 
  
{{fancywarning|It's important to edit your <code>/etc/fstab</code> file before you reboot! You will need to modify both the "fs" and "type" columns to match the settings for your partitions and filesystems that you created with <code>gdisk</code> or <code>fdisk</code>. Skipping this step may prevent Funtoo Linux from booting successfully.}}
+
{{#gravatar_md5:drobbins@funtoo.org}}
 +
{{filepath:Awesome.jpg|64}}
 +
{{filepath:File:Awesome.jpg|128}}
 +
{{#Widget:NewsDisplay|user=Drobbins|gravatar_url=http://www.gravatar.com/avatar/7490f23fe709b41d3be4f79549a679f8?s=80&d=retro&r=g|title=This is a news item!|format=Short|body=
 +
blahasl adslfkas flasf lasdfksad lfasdlkf dsalfk dslfkasd lfdsakf als sadlfdsal f}}
 +
{{#Widget:NewsDisplay|user=Drobbins|gravatar_url=http://www.gravatar.com/avatar/7490f23fe709b41d3be4f79549a679f8?s=80&d=retro&r=g|title=This is a news item!| body=
 +
blahasl adslfkas flasf lasdfksad lfasdlkf dsalfk dslfkasd lfdsakf als sadlfdsal f}}
  
==== /etc/fstab ====
+
== News Items ==  
  
<code>/etc/fstab</code> is used by the <code>mount</code> command which is ran when your system boots. Statements of this file inform <code>mount</code> about partitions to be mounted and how they are mounted. In order for the system to boot properly, you must edit <code>/etc/fstab</code> and ensure that it reflects the partition configuration you used earlier:
+
{{#ask: [[Category:News]] [[Publication Status::Published]]
 +
| ?#-
 +
| ?Publication Date
 +
| ?News Category
 +
| ?Summary
 +
| ?Author # -
 +
| ?Gravatar MD5
 +
| ?Icon # -
 +
| ?News Format
 +
| order=descending
 +
| sort=Publication Date
 +
| format=template
 +
| template=NewsDisplay
 +
| limit=10
 +
| mainlabel=-
 +
}}
  
<console>
+
== Other Stuff ==
(chroot) # ##i##nano -w /etc/fstab
+
</console>
+
  
You can use arrow keys to move around and hit Control-X to exit. If you want to save your changes, type "<code>Y</code>" when asked if you want to save the modified buffer, or hit Control-O before closing <code>nano</code>. Otherwise your changes will be discarded.
+
{{Package|sys-apps/portage}}
  
<pre>
+
== Badabing ==
# The root filesystem should have a pass number of either 0 or 1.
+
# All other filesystems should have a pass number of 0 or greater than 1.
+
#
+
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
+
#
+
# See the manpage fstab(5) for more information.
+
#
+
# <fs>     <mountpoint>  <type>  <opts>        <dump/pass>
+
  
/dev/sda1    /boot        ext2    noauto,noatime 1 2
+
{{#ask: [[Category:People]]
/dev/sda2    none          swap    sw            0 0
+
| limit=20
/dev/sda3    /            ext4    noatime        0 1
+
| order=random
#/dev/cdrom  /mnt/cdrom    auto    noauto,ro      0 0
+
| format=template
</pre>
+
| template=GravatarDisplay
 +
| link=none
 +
| searchlabel=
 +
}}
  
{{Note|If you're using UEFI to boot, change the <code>/dev/sda1</code> line so it says <code>vfat</code> instead of <code>ext2</code>. Similarly, make sure that the <code>/dev/sda3</code> line specifies either <code>xfs</code> or <code>ext4</code>, depending on which filesystem you chose at filesystem-creation time.}}
+
== Table test ==
 +
<div class="table-responsive"><table class="table"><tr><td>Hello</td></tr><tr><td>Hello</td></tr><tr><td>Hello</td></tr></table></div>
  
==== /etc/localtime ====
+
== Testing error on Show ==
  
<code>/etc/localtime</code> is used to specify the timezone that your machine is in, and defaults to UTC. If you would like your Funtoo Linux system to use local time, you should replace <code>/etc/localtime</code> with a symbolic link to the timezone that you wish to use.
+
* {{#show:User:JanZhou|?full name}}
 +
* {{#show:User:Drobbins|?full name}}
  
<console>
 
(chroot) # ##i##ln -sf /usr/share/zoneinfo/MST7MDT /etc/localtime
 
</console>
 
  
The above sets the timezone to Mountain Standard Time (with daylight savings). Type <code>ls /usr/share/zoneinfo</code> to see what timezones are available. There are also sub-directories containing timezones described by location.
+
{{DISPLAYTITLE:Bob Boblaw}}
 +
[[Category:Test]]
  
==== /etc/make.conf ====
+
Adding some text
  
MAKEOPTS can be used to define how many parallel compilations should occur when you compile a package, which can speed up compilation significantly. A rule of thumb is the number of CPUs (or CPU threads) in your system plus one. If for example you have a dual core processor without [[wikipedia:Hyper-threading|hyper-threading]], then you would set MAKEOPTS to 3:
+
== Testing External Data ==
  
<pre>
 
MAKEOPTS="-j3"
 
</pre>
 
  
If you are unsure about how many processors/threads you have then use nproc to help you.
+
{{#get_web_data:url=http://auth.funtoo.org:9093/static/members.xml|format=xml|use xpath|data=ircnick=/members/user/ircnick,fullname=/members/user/fullname}}
<console>
+
(chroot) # ##i##nproc
+
16
+
</console>
+
  
Set MAKEOPTS to this number plus one:
+
{{#display_external_table:template=MemberDisplay|data=ircnick,fullname}}
  
<pre>
+
Daniel Robbins:drobbins:bdfl
MAKEOPTS="-j17"
+
</pre>
+
  
USE flags define what functionality is enabled when packages are built. It is not recommended to add a lot of them during installation; you should wait until you have a working, bootable system before changing your USE flags. A USE flag prefixed with a minus ("<code>-</code>") sign tells Portage not to use the flag when compiling.  A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the [http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=2&chap=2 Gentoo Handbook].
+
{{file|name=foobar|lang=python|desc=foobarosity|body=
 +
import system
 +
}}
  
LINGUAS tells Portage which local language to compile the system and applications in (those who use LINGUAS variable like OpenOffice). It is not usually necessary to set this if you use English. If you want another language such as French (fr) or German (de), set LINGUAS appropriately:
+
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=
 +
# /etc/host.conf:
 +
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $
  
<pre>
+
# The  file /etc/host.conf contains configuration information specific to
LINGUAS="fr"
+
# the resolver library.  It should contain one configuration keyword  per
</pre>
+
# line,  followed by appropriate configuration information.  The keywords
 +
# recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.
  
==== /etc/conf.d/hwclock ====
 
If you dual-boot with Windows, you'll need to edit this file and change the value of '''clock''' from '''UTC''' to '''local''', because Windows will set your hardware clock to local time every time you boot Windows. Otherwise you normally wouldn't need to edit this file.
 
<console>
 
(chroot) # ##i##nano -w /etc/conf.d/hwclock
 
</console>
 
  
==== Localization ====
 
  
By default, Funtoo Linux is configured with Unicode (UTF-8) enabled, and for the US English locale and keyboard. If you would like to configure your system to use a non-English locale or keyboard, see [[Funtoo Linux Localization]].
+
# This keyword specifies how host lookups are to be performed. It
 +
# should be followed by one or more lookup methods, separated by
 +
# commas.  Valid methods are bind, hosts, and nis.
 +
#
 +
order hosts, bind
 +
 
 +
 
 +
# Valid  values are on and off. If set to on, the resolv+ library
 +
# will return all valid addresses for a host that appears  in  the
 +
# /etc/hosts  file, instead  of  only  the first.  This is off by
 +
# default, as it may cause a substantial performance loss at sites
 +
# with large hosts files.
 +
#
 +
multi on
 +
}}

Latest revision as of 23:48, November 18, 2014

foobar


7490f23fe709b41d3be4f79549a679f8 http://www.funtoo.org/images/thumb/c/cf/Awesome.jpg/64px-Awesome.jpg

Drobbins

This is a news item!

blahasl adslfkas flasf lasdfksad lfasdlkf dsalfk dslfkasd lfdsakf als sadlfdsal f
Drobbins

This is a news item!

blahasl adslfkas flasf lasdfksad lfasdlkf dsalfk dslfkasd lfdsakf als sadlfdsal f

News Items

Drobbins

Modular Install Guide Parts

The Install Guide is now modular. Learn how it works, and how you can use it to create your own customized Install Guides.
12 November 2014 by Drobbins
Dantrell

GNOME 3.14 Unleashed

GNOME 3.14 is now unmasked and stabilized. Enjoy!
4 November 2014 by Dantrell
Dantrell

Testing GNOME 3.14

GNOME 3.14 is now available in Funtoo, masked for testing. Help us test it!
22 October 2014 by Dantrell
Drobbins

Boot-update-1.7.0 released, masked for testing

This new version of boot-update contains serial terminal support and lilo fixes.
16 October 2014 by Drobbins

Other Stuff

Portage (Funtoo)

Badabing

User:Pedrox86User:GentoovortexUser:JcadamUser:RomikBUser:FearedblissUser:Duncan.brittonUser:AjchemistUser:MoesasjiUser:MgornyUser:SchentuuUser:MofmUser:AliceinwireUser:EduvinUser:Thiago.faioliUser:AdoUser:PYRATSUser:EmarskUser:AlfredChenUser:ArfreverUser:Palica

Table test

Hello
Hello
Hello

Testing error on Show

  • Daniel Robbins

Adding some text

Testing External Data

Daniel Robbins:drobbins:bdfl

foobar: foobarosity (python source code)
import system
/etc/foo.conf: My foo.conf file
# /etc/host.conf:
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $

# The  file /etc/host.conf contains configuration information specific to
# the resolver library.  It should contain one configuration keyword  per
# line,  followed by appropriate configuration information.  The keywords
# recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.



# This keyword specifies how host lookups are to be performed. It
# should be followed by one or more lookup methods, separated by
# commas.  Valid methods are bind, hosts, and nis.
#
order hosts, bind


# Valid  values are on and off.  If set to on, the resolv+ library
# will return all valid addresses for a host that appears  in  the
# /etc/hosts  file,  instead  of  only  the first.  This is off by
# default, as it may cause a substantial performance loss at sites
# with large hosts files.
#
multi on