Difference between pages "Wim42gnu's-setup" and "Test"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
{{#widget:YouTube16x9|playlist=PL2YVrx9jFJOewYI7f15FahwLOZlFCRqjZ|autoplay=1}}


This is for everybody who might have seen my funtoo setup and liked it!
{{#ask: [[Category:News]] [[Publication Status::Published]]
This is also for myself to keep track on my system. I have used most of the Linux distributions out there and I am currently most happy with funtoo.
|
My reasons are:
| order=descending
# Gentoo/Funtoo is a rolling release distribution, meaning you only have to install it once and update it frequently.
| sort=Publication Date
# Gentoo/Funtoo is only what you make out of it, no unnesecary rubish like in Ubuntu, OpenSuse or Fedora will be installed by default. In the mean time being aware that Gentoo/Funtoo is for advanced users not careing that much about GUIs for Settings or Configs.
| format=feed
# Gentoo/Funtoo runs fast due to multiple reasons. (Compiling your own software,USE-Flags,...)
| page=full
# Philosophy, one would think that Slackware would suite me most (KISS,Unix) but the fact is that these distributions require you more energy and time to work with. I want to get my jobs done, not careing to much about the system. It is okay to have tools that do things for you as long they are designed well - like in funtoo.
| title=Funtoo Linux News
| description=Latest Funtoo Linux news
|type=atom
| limit=20
}}


{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='amd64-bulldozer']/@builds}}
;Builds: {{#external_value:builds}}


==1. Install Funtoo (not complete yet - I will update this part when I install funtoo the next time)==
asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf
<div style="align: center;">
[[{{#show: Organization:Brownrice Internet| ?Logo|link=none}}|350px|class=img-orglogo|link=Organization:Brownrice Internet]]<br/>
[[Organization:Brownrice Internet|Learn about Funtoo-friendly organization: Brownrice Internet]]</div>
asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf
{{fullurl:News:The Many Builds of Funtoo Linux}}
{{#widget:AddThis}}


''Follow the install instructions and setup a minimal system.''http://www.funtoo.org/Funtoo_Linux_Installation
I like the {{f|/etc/make.conf}} file, which can also be referred to as {{f|/etc/portage/make.conf}}. It is a groovy file. Another cool file is {{f|/etc/fstab}}.


Notice you will need to create/edit some configs in the installation prozess. Here are some of mine customizations:
=== make.conf mentions ===


a) <code>/etc/portage/make.conf</code>:
{{#ask: [[Mentions file::make.conf]]
  CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
| format=category
  CXXFLAGS="${CFLAGS}"
}}
  CPU_FLAGS_X86="aes avx fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop"


''for the CPU Flags checkout:'' http://www.funtoo.org/News:CPU_FLAGS_X86
{{console|body=
 
# ##i##bluetoothctl
  USE="qt3support theora libkms xa cdr dvd dvdr alsa ffmpeg -gnome gtk -qt4 -kde lm_sensors mp3 mp4 mozilla multilib png python sound udev usb unicode static-libs hddtemp -bluetooth  nvidia X pulseaudio udisks"
[##g##NEW##!g##] Controller 00:02:72:C9:62:65 antec [default]
 
##bl##[bluetooth]##!bl###power on
  EMERGE_DEFAULT_OPTS="--keep-going"
Changing power on succeeded
  FEATURES="-collision-protect ccache"
##bl##[bluetooth]##!bl### ##i##agent on
  CCACHE_SIZE="1G"
Agent registered
  PORTAGE_NICENESS=20
##bl##[bluetooth]##!bl### ##i##scan on
  PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
Discovery started
  #EMERGE_DEFAULT_OPTS="--jobs=12"
##bl##[bluetooth]##!bl### ##i##devices
  MAKEOPTS="-j12" ''<--- Number of CPU cores *2 in my case works best.''
Device 00:1F:20:3D:1E:75 Logitech K760
 
##bl##[bluetooth]##!bl### ##i##pair 00:1F:20:3D:1E:75
  LANG="de_DE.UTF-8"
Attempting to pair with 00:1F:20:3D:1E:75
  LINGUAS="de" 
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: yes
  ACCEPT_LICENSE="* -@EULA"
##r##[agent]##!r## Passkey: 454358
  INPUT_DEVICES="evdev"
##r##[agent]##!r## Passkey: ##i##4##!i##54358
  VIDEO_CARDS="nvidia"
##r##[agent]##!r## Passkey: ##i##45##!i##4358
 
##r##[agent]##!r## Passkey: ##i##454##!i##358
 
##r##[agent]##!r## Passkey: ##i##4543##!i##58
b) <code>/etc/fstab</code>
##r##[agent]##!r## Passkey: ##i##45435##!i##8
 
##r##[agent]##!r## Passkey: ##i##454358##!i##
  # /etc/fstab: static file system information.
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Paired: yes
  #
Pairing successful
  # The root filesystem should have a pass number of either 0 or 1.
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: no
  # All other filesystems should have a pass number of 0 or greater than 1.
##bl##[bluetooth]##!bl### ##i##connect 00:1F:20:3D:1E:75
  #
Attempting to connect to 00:1F:20:3D:1E:75
  # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: yes
  #
Connection successful
  # See the manpage fstab(5) for more information.
##bl##[bluetooth]##!bl### ##i##quit
  #
[##r##DEL##!r##] Controller 00:02:72:C9:62:65 antec [default]
  # <fs> <mountpoint> <type> <opts> <dump/pass>
#
 
}}
  /dev/sda1 /boot ext2 noauto,noatime 1 2
  #/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
  /dev/mapper/vg-swap    none          swap      sw                              0 0
  /dev/mapper/vg-root    /            ext4      noatime,nodiratime,defaults    0 1
  /dev/sr0                /mnt/cdrom    auto      noauto,ro                      0 0
  /dev/mapper/vg-home    /home        ext4      noatime,nodiratime              0 0
''' tmpfs /var/tmp/portage tmpfs uid=portage,gid=portage,mode=0775,size=16048M,noatime 0 0'''
 
for tmpfs see: http://www.funtoo.org/Funtoo_Filesystem_Guide,_Part_3
 
c) Since I have an encrypted LVM, one needs an initramfs. I prefer the genkernel method.
    genkernel --kernel-config=/path/to/your/custom-kernel-config --no-mrproper --makeopts=-j5 --install --lvm --luks all
more here: http://www.funtoo.org/Rootfs_over_encrypted_lvm or use better-initramfs: http://www.funtoo.org/Initramfs
 
d) My Funtoo Profiles:
  eselect profile show
 
  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/audio
  mix-ins: gentoo:funtoo/1.0/linux-gnu/mix-ins/console-extras
  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/X
  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
 
 
==2. Install your WindowManager or DesktopEnviroment==
 
''My favourite Window Manager at the time is i3 followed by xfce and openbox.''
''Details about i3 & funtoo → http://www.funtoo.org/Package:I3_(Window_Manager) ''
'''i3 setup:'''
 
1) install these packages:
<console> emerge --ask i3 i3status dmenu lxappeareance
</console>
'' If you want to know what these packages are research them. I use lxappeareance to install and select gtk-themes.''
 
Config files:
 
==='''1.''' xinitrc at <code>~/.xinitrc </code>===
  exec ck-launch-session i3
''You only need --force-xinerama if you do have a nvidia grafics card that do not work without it. For more <code>startx</code> magic → https://wiki.archlinux.org/index.php/xinitrc''
 
==='''2.'''  <code>~/.i3/config</code>===
 
''specify window colors at the top of the file:''
  # class                border  backgr. text    indicator
  client.focused          #333333 #000000 #ffffff #000000
  client.focused_inactive #333333 #5f676a #ffffff #484e50
  client.unfocused        #333333 #222222 #888888 #292d2e
  client.urgent          #333333 #900000 #ffffff #900000
 
''specify the bar/workspace colors at the bottom of the file:''
 
  bar {
          status_command i3status
          # Bar color settings
          colors{
                  #background #000000
                  #statusline #ffffff
                  #separator  #666666
                  # Type            border  background font
                  focused_workspace  #008fff #007fff #ffffff
                  active_workspace  #333333 #5f676a #ffffff
                  inactive_workspace #333333 #222222 #888888
                  urgent_workspace  #aa0000 #990000 #ffffff
          }
  }
 
 
Do not forget the keymap setting at <code>/etc/X11/xorg.conf</code> otherwise you need to use <code>setxkbmap</code>
  Section "InputClass"
    Identifier        "keyboard-all"
    Driver            "evdev"
    MatchIsKeyboard    "on"
  ''' Option        "XkbLayout" "de"'''
  EndSection
 
==='''3. '''A better status bar===
'' For a more advanced user experience, we can use <code>conky with json</code> instead of <code>i3status</code>
 
====a) using only conky without the advantages of json.====
=====1. create a conky file =====
<code>~/.conkyrc</code>
  ## No output to X <yes/no>
  out_to_x no
 
  ## Create own window to draw <yes/no>
  own_window no
 
  ## Print everything to console?
  out_to_console yes
 
  ## Use double buffering (reduces flicker, not needed for console output)
  double_buffer no
 
  ## Set to yes if you want Conky to be forked in the background
  background no
 
  ## Update interval in seconds
  update_interval 2.0
 
  ## This is the number of times Conky will update before quitting.
  ## Set to zero to run forever.
  total_run_times 0
 
  ## Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
  short_units yes
 
  ## How strict should if_up be when testing an interface for being up?
  ## The value is one of up, link or address, to check for the interface
  ## being solely up, being up and having link or being up, having link
  ## and an assigned IP address.
  if_up_strictness address
 
  ## Add spaces to keep things from moving about?  This only affects certain objects.
  ## use_spacer should have an argument of left, right, or none
  use_spacer left
 
  ## Force UTF8? note that UTF8 support required XFT
  override_utf8_locale no
 
  ## number of cpu samples to average
  ## set to 1 to disable averaging
  cpu_avg_samples 6
 
  ## Sensors examples
  # Top Process: ${top name 1}
  # Root: {fs_used /}/${fs_size /} /home ${fs_free /home} /${fs_size /home}
  # Load: ${loadavg 1} ${loadavg 2} ${loadavg 3}
  # Load: $loadavg
  # Swap: ${swap}/${swapmax} (${swapperc}%)
  # Processes: ${running_processes} / ${processes}
  # CPU: $cpu%
  # HDD: $diskio_read :Read $diskio_write :Write
  # Temp: Core0: ${exec sensors | awk '/Core 0/ {print $3}'} Core1: ${exec sensors | awk '/Core 1/ {print $3}'}
  # Freq: ${freq cpu0}Mhz
  # Uptime: $uptime
  # Kernel:$kernel on $machine
  # Name: $nodename - $sysname
  # Battery: ${battery_percent BAT0}%
 
  ## Stuff after 'TEXT' will be formatted on screen
  TEXT
  /home ${fs_free /home} | \
  /root ${fs_free /root} | \
  ${if_up eth0}eth0 ${addr eth0} | ${endif}\
  ${if_up wlan0}wlan0 ${addr wlan0} | ${endif}\
  CPU ${cpu cpu1}% ${freq_g 1}GHz | \
  RAM ${memperc}% | \
  Load $loadavg | \
  Uptime $uptime | \
  Kernel $kernel on $machine | \
 
make sure the file is executable (you need to be root - use su or sudo).
<console> chmod +x ~/.conkyrc </console>
'' You need to tell i3 to use conky (<code>~/.i3/config</code>):''
  ...
    bar {
        status_command  '''conky -c ~/.conkyrc'''
  ...
 
'' be sure that you have conky installed and then reload i3 ''<code>alt or windows key+shift+r</code>
 
====b) using conky and json for the best experience.====
===== we need a wrapper script to be able to use json =====
<code>~/.i3bar-conky</code> you can copy this 1:1
  #!/bin/sh
  # Send the header so that i3bar knows we want to use JSON:
  echo '{"version":1}'
 
  # Begin the endless array.
  echo '['
 
  # We send an empty first array of blocks to make the loop simpler:
  echo '[],'
 
  # Now send blocks with information forever:
  exec conky -c '''$HOME/.conkyrc'''
 
'' just make sure the .conkyrc path is okay.''
 
make sure the file is executable (you need to be root - use su or sudo).
<console> chmod +x ~/.i3bar-conky </console>
 
' You need to tell i3 to use conky (<code>~/.i3/config</code>):''
  ...
    bar {
        status_command  '''$HOME/.i3bar-conky'''
  ...
 
===== like in a) create now a ~/.conkyrc file =====
'' You only have to change the text after the keyword TEXT to suite JSON''
'' Here my example:''
  ## Stuff after 'TEXT' will be formatted on screen
  TEXT
  [{ "full_text" : "/home ${fs_free /home} " , "color" : "\#ffffff" },
  { "full_text" : "/root ${fs_free /root} " , "color" : "\#ffffff"},
  { "full_text" : "${if_up eth0}eth0 ${addr eth0} ${endif} " ,"separator": false, "color" : "\#ffffff"},
  { "full_text" : "${if_up wlan0}wlan0 ${addr wlan0}  ${endif} " , "color" : "\#ffffff"},
  { "full_text" : "CPU ${cpu cpu1}% ${freq_g 1}GHz  " , "color" : "\#ffffff"},
  { "full_text" : "RAM ${memperc}% " , "color" : "\#ffffff"},
  { "full_text" : "Load $loadavg  " , "color" : "\#ffffff"},
  { "full_text" : "Uptime $uptime  " , "color" : "\#ffffff"},
  { "full_text" : "Kernel $kernel on $machine " , "color" : "\#ffffff"},
  { "full_text" : "${time %H:%M} , ${time %a %d.%m.%y}  " , "color" : "\#ffffff"}
  ],
 
'' be sure you did not miss anything from a) and reload i3 ''<code>alt or windows key+shift+r</code>
 
==='''4. '''Display Power Management Signaling===
 
a) You can either use XScreenSaver(https://wiki.archlinux.org/index.php/XScreenSaver):
  emerge -a xscreensaver
 
and add <code>/usr/bin/xscreensaver -no-splash &</code> to your <code>~/.xinitrc</code> file:
 
  xscreensaver -no-splash &        # starts screensaver daemon
  exec ck-launch-session i3 --force-xinerama
 
or b) modifi your Xorg server (https://wiki.archlinux.org/index.php/Display_Power_Management_Signaling).
 
==='''5. '''Note: ===
 
I login without a login manager using <code>startx</code> to start my Window Manager, you can end/exit your i3 wm via <code>alt or windows key + shift + e</code>
 
==='''6.''' Background Image Viewer===
 
a) Feh
<console> emerge -a feh</console>
<code>~/.xinitrc</code>:
  feh --bg-center <path>/<image>.png
 
''more options → https://wiki.archlinux.org/index.php/Feh#As_a_desktop_wallpaper_manager ''
 
b) Nitrogen(GUI Programm)
<console> emerge -a nitrogen</console>
<code>~/.xinitrc</code>:
  exec --no-startup-id nitrogen --restore
==3. Additional Software:==
 
===1) File Manager:===
<console> emerge --ask thunar </console>
''thunar - filemanager that supports automounting''
''Make sure you create this rule: <code> /etc/polkit-1/rules.d/10-drives.rules</code>
  polkit.addRule(function(action, subject) {
  if (action.id.indexOf("org.freedesktop.udisks2.") == 0){
  return polkit.Result.YES;
  }
  }
  );
 
''Also you should have <code>udisk</code> installed''
 
===2) '''media-video/smplayer:'''===
 
''allow smplayer always to floate, just add''
  for_window [class="smplayer" instance="smplayer"] floating enable
''to your <code>~/.i3/config</code>''
 
===3)''' Internet Browser '''===
''I recommend <code>
www-client/chromium</code> or <code>www-client/google-chrome</code>
''see for more info: http://www.funtoo.org/Funtoo_Linux_Web_Browsers''
  Addons:
  1) Adblock
  2) uMatrix
  3) StayFocused
  4) WebRTC Block
 
===n)''' usefull software '''===
app-arch/file-roller
app-editors/bluefish
app-emulation/wine
app-misc/freemind
app-office/libreoffice
app-portage/eix
mail-client/thunderbird
media-gfx/blender
media-gfx/gimp
media-sound/audacity
media-video/kdenlive
 
 
media-video/vlc
net-analyzer/wireshark
net-ftp/filezilla
sys-apps/lm_sensors
virtual/jre
app-text/evince
app-text/calibre
app-emulation/virtualbox

Revision as of 01:46, February 17, 2015

{{#ask: Publication Status::Published | | order=descending | sort=Publication Date | format=feed | page=full | title=Funtoo Linux News | description=Latest Funtoo Linux news |type=atom | limit=20 }}

Exception parsing XML: String could not be parsed as XML.

Builds

asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf

[[{{#show: Organization:Brownrice Internet| ?Logo|link=none}}|350px|class=img-orglogo|link=Organization:Brownrice Internet]]

Learn about Funtoo-friendly organization: Brownrice Internet

asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf https://www.funtoo.org/News:The_Many_Builds_of_Funtoo_Linux

I like the /etc/make.conf file, which can also be referred to as /etc/portage/make.conf. It is a groovy file. Another cool file is /etc/fstab.

make.conf mentions

{{#ask: Mentions file::make.conf | format=category }}

root # bluetoothctl 
[NEW] Controller 00:02:72:C9:62:65 antec [default]
root ##bl##[bluetooth]##!bl###power on
Changing power on succeeded
root ##bl##[bluetooth]##!bl### agent on
Agent registered
root ##bl##[bluetooth]##!bl### scan on
Discovery started
root ##bl##[bluetooth]##!bl### devices
Device 00:1F:20:3D:1E:75 Logitech K760
root ##bl##[bluetooth]##!bl### pair 00:1F:20:3D:1E:75
Attempting to pair with 00:1F:20:3D:1E:75
[CHG] Device 00:1F:20:3D:1E:75 Connected: yes
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
[CHG] Device 00:1F:20:3D:1E:75 Paired: yes
Pairing successful
[CHG] Device 00:1F:20:3D:1E:75 Connected: no
root ##bl##[bluetooth]##!bl### connect 00:1F:20:3D:1E:75
Attempting to connect to 00:1F:20:3D:1E:75
[CHG] Device 00:1F:20:3D:1E:75 Connected: yes
Connection successful
root ##bl##[bluetooth]##!bl### quit
[DEL] Controller 00:02:72:C9:62:65 antec [default]
root #