<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://marcheimann.de/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Marc's Linux-Wiki (Gentoo, Debian) linux:gentoo-spezifisch</title>
        <description></description>
        <link>http://marcheimann.de/wiki/</link>
        <lastBuildDate>Thu, 09 Apr 2026 22:15:56 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>http://marcheimann.de/wiki/lib/tpl/dokuwiki/images/favicon.ico</url>
            <title>Marc's Linux-Wiki (Gentoo, Debian)</title>
            <link>http://marcheimann.de/wiki/</link>
        </image>
        <item>
            <title>linux:gentoo-spezifisch:encrypted_home_partition_using_luks_pam_mount_and_lvm</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:encrypted_home_partition_using_luks_pam_mount_and_lvm&amp;rev=1373398401&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -1 +1,73 @@
+ ====== Encrypted /home partition using LUKS, pam_mount and LVM ======
  
+ In preparation for yet another cross continent travel plan I finally decided to encrypt my home partition on myX61s laptop. I had to mess a bit with the pam_mount configuration file to make it work so I thought I would share my notes. In the following I will briefly describe how I&amp;#039;m going to use a password protected key stored on an external media to encrypt my home partition. I&amp;#039;ll use the same password used for Xorg login to protect the key. So when you get asked to type in a password in the following examples use your normal user password and we&amp;#039;ll use pam_mount to pass the password to LUKS once you log in.
+ 
+ First start out by preparing a key:
+ 
+ KEY=`tr -cd [:graph:] &amp;lt; /dev/urandom | head -c 79`
+ echo $KEY | openssl aes-256-ecb &amp;gt; verysekrit.key
+ 
+ Then create an LVM volume for the home directory and subsitute home with what you like to name the logical volume:
+ 
+ lvcreate -L30G -nhome vg
+ 
+ Then we initialize the volume with our secret key and LUKS:
+ 
+ openssl aes-256-ecb -d -in verysekrit.key | cryptsetup -v --cipher aes-cbc-plain --key-size 256 luksFormat /dev/vg/home
+ 
+ Now lets test that we can open the encrypted volume and format it:
+ 
+ openssl aes-256-ecb -d -in verysekrit.key | cryptsetup luksOpen /dev/vg/home myh_crypt
+ mkfs.ext3 /dev/mapper/myh_crypt
+ 
+ You can not mount it and sync over your old home like this:
+ 
+ mount /dev/mapper/myh_crypt /mnt/gentoo
+ rsync -va /home/username/* /mnt/gentoo/
+ 
+ Once everything is synced over we&amp;#039;ll close the LUKS volume again:
+ 
+ cryptsetup luksClose myh_crypt
+ 
+ Now unmask and emerge pam_mount:
+ 
+ echo &amp;quot;sys-auth/pam_mount&amp;quot; &amp;gt;&amp;gt; /etc/portage/package.keywords
+ emerge -v pam_mount
+ 
+ Now configure pam_mount to first mount the SD card (/dev/mmcblo0p1) and then use the key to unlock the home partition by editing /etc/security/pam_mount.conf.xml. Note that if you store your secret key somewhere else the first volume statement may be omitted.
+ 
+ &amp;lt;volume user=&amp;quot;username&amp;quot;
+ path=&amp;quot;/dev/mmcblk0p1&amp;quot;
+ mountpoint=&amp;quot;/mnt/mmc&amp;quot;
+ fstype=&amp;quot;auto&amp;quot; /&amp;gt;
+ 
+ &amp;lt;volume user=&amp;quot;username&amp;quot;
+ path=&amp;quot;/dev/mapper/vg-username&amp;quot;
+ mountpoint=&amp;quot;/home/username&amp;quot;
+ fstype=&amp;quot;crypt&amp;quot;
+ options=&amp;quot;data=journal,commit=15&amp;quot;
+ cipher=&amp;quot;aes-cbc-plain&amp;quot;
+ fskeypath=&amp;quot;/mnt/mmc/verysekrit.key&amp;quot;
+ fskeycipher=&amp;quot;aes-256-ecb&amp;quot;
+ fskeyhash=&amp;quot;md5&amp;quot; /&amp;gt;
+ 
+ Then configure PAM to use pam_mount by editing /etc/pam.d/system-auth. Add pam_mount to the auth section like this:
+ 
+ auth required pam_env.so
+ auth optional pam_mount.so
+ auth required pam_unix.so try_first_pass likeauth nullok
+ 
+ And to the sessions section like this:
+ 
+ session required pam_limits.so
+ session required pam_env.so
+ session required pam_unix.so
+ session optional pam_permit.so
+ session optional pam_mount.so
+ 
+ References:
+ 
+ http://en.gentoo-wiki.com/wiki/Booting_encrypted_system_from_USB_stick
+ http://en.gentoo-wiki.com/wiki/DM-Crypt_with_LUKS
+ http://en.gentoo-wiki.com/wiki/Root_on_LVM_or_EVMS_over_dm-crypt/LUKS
+ http://blog.infion.de/archives/2007/05/15/Full-disk-encryption-with-LUKS-on-new-notebook/

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Tue, 09 Jul 2013 21:33:21 +0000</pubDate>
        </item>
        <item>
            <title>linux:gentoo-spezifisch:gcc</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:gcc&amp;rev=1373398401&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -96,37 +96,5 @@
    LDFLAGS=&amp;quot;-Wl,-flto&amp;quot;
  
  ===== 4. Aktuelles =====
  
- ====  4.1 GCC 4.6====
- 
- === 4.1.1 Allgemeines ===
- 
-   * graphite ist insofern &amp;quot;buggy&amp;quot;, als dass sich bei eingeschalteter graphite-Unterstützung des toolchains keine (oder kaum) Pakte mehr mit der alten Version 4.5 kompilieren lassen. Solange diese als &amp;quot;Backup-Lösung&amp;quot; genutzt werden soll, dürfen //während// ihrer Nutzung die entsprechenden CFLAGS nicht aktiviert sein.
- 
- === 4.1.2 Spezielle Pakete ===
- 
- Auf meinem ~amd64-System (Portagetree vom 29.06.2011, overlays: toolchain, gcc-porting, x11, gnome, keruspe)...
- 
- ... **nicht kompilierbare** Pakete:
- 
-   * verifiziert
-     * &amp;lt;del&amp;gt;app-office/libreoffice-3.3.2&amp;lt;/del&amp;gt;
-       * Patch aus Bugzilla
-     * &amp;lt;del&amp;gt;net-libs/xulrunner&amp;lt;/del&amp;gt;
-       * gcc-porting-overlay hat Patches!
-     * &amp;lt;net-analyzer/wireshark-1.6.0_rc1
-       * unmask 1.6.0_rc1
- 
- 
- \\
- ... **fehlerhaft kompilierte** Pakete:
- 
-   * verifiziert
-     * &amp;lt;del&amp;gt;app-portage/eix-0.22.8:&amp;lt;/del&amp;gt;
-       * &amp;lt;del&amp;gt;Speicherzugriffsfehler&amp;lt;/del&amp;gt;
-       * Workaround: USE=&amp;quot;-strong-optimization&amp;quot;
-     * 
- 
-   * unverifiziert
-     * 
  

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Tue, 09 Jul 2013 21:33:21 +0000</pubDate>
        </item>
        <item>
            <title>linux:gentoo-spezifisch:gentoolkit</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:gentoolkit&amp;rev=1373398400&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -1 +1,15 @@
+ ====== Gentoolkit ======
+ 
+ Collection of administration scripts for Gentoo
+ 
+ 
+  * Löschen von nicht mehr benötigten Quellcodearchiven:
+ 
+   # eclean-dist -d
+ 
+  * Löschen von nicht mehr benötigten Binärpaketen:
+ 
+   # eclean-pkg -d
+ 
+ 
  

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Tue, 09 Jul 2013 21:33:20 +0000</pubDate>
        </item>
        <item>
            <title>linux:gentoo-spezifisch:howto_fly</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:howto_fly&amp;rev=1373398400&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -1 +1,29 @@
+ ====== Flying withGentoo ======
  
+ /etc/init.d/localmount 
+ 
+ change: Code:
+   mount -at nocoda,nonfs,noproc,noncpfs,nosmbfs,noshm &amp;gt;/dev/null
+ 
+ for: Code:
+   mount -aFt nocoda,nonfs,noproc,noncpfs,nosmbfs,noshm &amp;gt;/dev/null
+  
+ 
+ 
+ /etc/conf.d/rc 
+ 
+ change: Code:
+   RC_PARALLEL_STARTUP=&amp;quot;no&amp;quot;
+ 
+ 
+ for: Code:
+   RC_PARALLEL_STARTUP=&amp;quot;yes&amp;quot; 
+  
+ 
+ 
+ /etc/sysctl.conf Code:
+   vm.swappiness = 40
+ 
+ 
+ This value can be between 0 and 100. Close to 0 will mean that the kernel should empty some ram, and a higher value close to 100 will tell the kernel to use the swap memory more often. 
+ The default value is 60. I set this to 25 in my laptop, so that i can reduce the disk access. You can use ´free -m´ to see the stats of your memory useage. 

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Tue, 09 Jul 2013 21:33:20 +0000</pubDate>
        </item>
        <item>
            <title>linux:gentoo-spezifisch:krempel</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:krempel&amp;rev=1373398401&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -1,10 +1,6 @@
  ====== Krempel / ToDo ======
  
- 
-   * Write-Cache ausschalten
- 
-   hdparm -W0 /dev/sda
  
    * Binärpakete des Systems erstellen
  
    equery -q list &amp;#039;*&amp;#039; |awk &amp;#039;{printf &amp;quot;=&amp;quot;; print $0}&amp;#039;|xargs quickpkg --include-config=y

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Tue, 09 Jul 2013 21:33:21 +0000</pubDate>
        </item>
        <item>
            <title>linux:gentoo-spezifisch:make.conf</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:make.conf&amp;rev=1373398400&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -59,16 +59,12 @@
  ###################################################################
  ## CFLAGS ########################################################
  ###################################################################
  # really safe:
- #CFLAGS=&amp;quot;-O2 -march=native -pipe&amp;quot;
+ # CFLAGS=&amp;quot;-O2 -march=native -pipe&amp;quot;
+ # -ftree-vectorize -ftree-loop-linear
  
- # AFAIK the short-and-sweet versions:
- #add to USE &amp;quot;graphite&amp;quot;, add to CFLAGS &amp;quot;-floop-interchange -floop-strip-mine -floop-block&amp;quot;
- 
- CFLAGS=&amp;quot;-O2 -march=native -pipe
- -floop-interchange -floop-strip-mine -floop-block
- -ftree-vectorize -ftree-loop-linear&amp;quot;
+ CFLAGS=&amp;quot;-O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block&amp;quot;
  
  CXXFLAGS=&amp;quot;${CFLAGS}&amp;quot;
  
  ###################################################################
@@ -80,33 +76,35 @@
  
  # These are the USE flags that were used in addition to what is provided by the
  # profile used for building.
  USE=&amp;quot;64bit X a52 ace acpi additions alsa bash-completion blksha1 cleartype \
-      clutter consolekit corefonts css dbus device-mapper drm dvd exif \
-      fastbuild fastcgi fat ffmpeg fuse gallium gd gdu gnome gphoto2 graphite \
-      gstreamer gtk gtk3 id3tag introspection jpeg jpeg2k lame laptop libffi \
-      libnotify lto matroska mdns-bundled mmx mp3 mpeg mpeg2 nautilus \
-      networkmanager nntp nsplugin ntfs opengl optimized-qmake pdf pidgin png \
-      policykit pulseaudio quicktime rar real scsi slideshow smp sse sse2 \
-      sse3 svg symlink system-cxx-headers system-sqlite theora threads \
-      truetype twolame type3 udev usb vcd video wicd wma wmf x264 xv xvid \
-      -3dnow -3dnowext -abiword -accessibility -aim -avahi -bluetooth -bonobo \
-      -debug -doc -eds -gecko-mediaplayer -gnome-keyring -guile -ieee1394 \
-      -ipod -ipv6 -joystick -kde -lcms -lirc -mercurial -msn -oss -pm-utils \
-      -qt-bundled -qt3support -qt4 -reiser4 -reiserfs -samba -tcl -totem -v4l \
-      -v4l2 -webdav -webdav-neon -webdav-serf -webkit -xfs -xinerama&amp;quot;
+      consolekit corefonts css dbus device-mapper drm dvd exif fastbuild \
+      fastcgi fat ffmpeg fuse gallium gd gdu gnome gphoto2 graphite gstreamer \
+      gtk gtk3 id3tag introspection jpeg jpeg2k lame laptop libnotify \
+      matroska mdns-bundled mmx mp3 mp4 mpeg mpeg2 nautilus networkmanager \
+      nntp nsplugin ntfs opengl optimization optimized-qmake pdf pidgin png \
+      policykit pulseaudio python3 quicktime rar real scsi slideshow smp sse \
+      sse2 sse3 strong-optimization svg symlink system-cxx-headers \
+      system-sqlite theora threads truetype twolame type3 udev usb v4l v4l2 \
+      vcd video vorbis wicd wma wmf x264 xv xvid -3dnow -3dnowext -abiword \
+      -accessibility -aim -avahi -bluetooth -bonobo -debug -doc -eds \
+      -gecko-mediaplayer -guile -ieee1394 -ipod -ipv6 -joystick -kde -lcms \
+      -lirc -mercurial -msn -oss -pm-utils -python2 -qt-bundled -qt3support \
+      -qt4 -reiser4 -reiserfs -samba -tcl -totem -webdav -webdav-neon \
+      -webdav-serf -webkit -xfs -xinerama -xscreensaver&amp;quot;
  
  ###################################################################
- MAKEOPTS=&amp;quot;-j5&amp;quot;
- EMERGE_DEFAULT_OPTS=&amp;quot;--keep-going --jobs=5&amp;quot;
+ #MAKEOPTS=&amp;quot;-j1&amp;quot;
+ MAKEOPTS=&amp;quot;-j3&amp;quot;
+ EMERGE_DEFAULT_OPTS=&amp;quot;--keep-going --jobs=4&amp;quot;
  
  #GENTOO_MIRRORS=&amp;quot;ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo &amp;quot;
  GENTOO_MIRRORS=&amp;quot;ftp://de-mirror.org/distro/gentoo &amp;quot;
  #GENTOO_MIRRORS=&amp;quot;http://distfiles.gentoo.org &amp;quot;
  
  SYNC=&amp;quot;rsync://rsync.europe.gentoo.org/gentoo-portage&amp;quot;
  
- PORTAGE_NICENESS=15
+ PORTAGE_NICENESS=19
  
  #FEATURES=&amp;quot;parallel-fetch fail-clean&amp;quot;
  FEATURES=&amp;quot;sandbox parallel-fetch fail-clean buildpkg&amp;quot;
  DISTDIR=&amp;quot;/Daten/.distfiles&amp;quot;
@@ -127,10 +125,10 @@
  LINGUAS=&amp;quot;de&amp;quot;
  
  ACCEPT_KEYWORDS=&amp;quot;~amd64&amp;quot;
  
- ACCEPT_LICENSE=&amp;quot;PUEL dlj-1.1 googleearth AdobeFlash-10.1&amp;quot;
+ ACCEPT_LICENSE=&amp;quot;PUEL dlj-1.1 googleearth AdobeFlash-10.1 google-talkplugin skype-eula&amp;quot;
  
  I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS=1
  
  CLOCK=&amp;quot;local&amp;quot;
  &amp;lt;/file&amp;gt;

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Tue, 09 Jul 2013 21:33:20 +0000</pubDate>
        </item>
        <item>
            <title>linux:gentoo-spezifisch:microcode</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:microcode&amp;rev=1462469790&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -1,6 +1,13 @@
  ====== Microcode ======
  
  
  https://wiki.gentoo.org/wiki/Intel_microcode#Early_Microcode
+ 
+ 
+ Microcode generieren:
+ 
+   iucode_tool -S --write-earlyfw=/boot/early-ucode.cpio /lib/firmware/intel-ucode/*
+ 
+ Microcode zum initrd hinzufügen:
  
    cat ucode.cpio /boot/initrd-3.5.0.img &amp;gt; /boot/initrd-3.5.0.ucode.img

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Thu, 05 May 2016 19:36:30 +0000</pubDate>
        </item>
        <item>
            <title>linux:gentoo-spezifisch:patch</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:patch&amp;rev=1574523148&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -1 +1,6 @@
+ ====== user-patches außerhalb portage-tree ======
  
+ Patches für Pakete können an folgenden Orten außerhalb des portage-trees abgelegt zur Anwendung gebracht werden (user-patches:
+ 
+   /etc/portage/patches/dev-qt/qtwayland/
+   /etc/portage/patches/dev-qt/qtwayland-5.13.2-r1/

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Sat, 23 Nov 2019 16:32:28 +0000</pubDate>
        </item>
        <item>
            <title>linux:gentoo-spezifisch:tmpfs</title>
            <link>http://marcheimann.de/wiki/doku.php?id=linux:gentoo-spezifisch:tmpfs&amp;rev=1573666649&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -18,9 +18,9 @@
  ==== tmpfs aktivieren ====
  
  &amp;lt;file - /etc/fstab&amp;gt;
  # portage:
- tmpfs /var/tmp/portage tmpfs rw,nosuid,noatime,nodev,size=4G,mode=775,uid=portage,gid=portage,x-mount.mkdir=775 0 0
+ tmpfs		/var/tmp/portage		tmpfs	size=4G,uid=portage,gid=portage,mode=775,noatime	0 0
  &amp;lt;/file&amp;gt;
  
  ==== per-package-handling ====
  

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
        <category>linux:gentoo-spezifisch</category>
            <pubDate>Wed, 13 Nov 2019 18:37:29 +0000</pubDate>
        </item>
    </channel>
</rss>
