User:Garbanzo

My Gentoo install notes. These are some of the problem I had following the handbook.

(chroot) livecd / # emerge --ask sys-kernel/genkernel

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

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

Calculating dependencies... done! [ebuild N     ] app-arch/cpio-2.12-r1  USE="nls" [ebuild N     ] sys-kernel/linux-firmware-20180730  USE="-savedconfig" [ebuild N     ] virtual/libudev-232  USE="-static-libs -systemd" ABI_X86="(64) -32 (-x32)" [ebuild  R    ] sys-apps/util-linux-2.32-r4  USE="static-libs* udev*" [ebuild N     ] sys-kernel/genkernel-3.5.3.3  USE="firmware -cryptsetup (-ibm) (-selinux)"

The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) >=sys-apps/util-linux-2.32-r4 static-libs
 * 1) required by sys-kernel/genkernel-3.5.3.3::gentoo
 * 2) required by sys-kernel/genkernel (argument)

Would you like to add these changes to your config files? [Yes/No] n (chroot) livecd / #

Ran it again, said Yes and then:

dispatch-conf

That fixed genkernel

And it built!

(chroot) livecd / # genkernel all
 * Gentoo Linux Genkernel; Version 3.5.3.3
 * Running with options: all

patching file console-tools/openvt.c Hunk #1 succeeded at 147 (offset 23 lines). patching file modutils/modprobe.c Hunk #1 succeeded at 444 (offset 31 lines). Hunk #2 succeeded at 492 (offset 32 lines). patching file util-linux/mdStart.c patching file libbb/u_signal_names.c Hunk #1 succeeded at 76 (offset 10 lines). Hunk #2 succeeded at 100 (offset 10 lines).
 * Using genkernel.conf from /etc/genkernel.conf
 * Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
 * Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
 * Linux Kernel 4.14.61-gentoo for x86_64...
 * .. with config file /usr/share/genkernel/arch/x86_64/generated-config
 * kernel: Using config from /usr/share/genkernel/arch/x86_64/generated-config
 * kernel: >> Running mrproper...
 * >> Running oldconfig...
 * kernel: >> Cleaning...
 * >> Compiling 4.14.61-gentoo bzImage...
 * >> Not installing firmware as requested by configuration FIRMWARE_INSTALL=no...
 * >> Compiling 4.14.61-gentoo modules...
 * >> Installing 4.14.61-gentoo modules (and stripping)
 * >> Generating module dependency data...
 * Copying config for successful build to /etc/kernels/kernel-config-x86_64-4.14.61-gentoo
 * busybox: >> Applying patches...
 * - 1.18.1-openvt.diff
 * - busybox-1.20.2-modprobe.patch
 * - busybox-1.26.0-mdstart.patch
 * - busybox-1.7.4-signal-hack.patch
 * busybox: >> Configuring...
 * busybox: >> Compiling...
 * busybox: >> Copying to cache...
 * initramfs: >> Initializing...
 * >> Appending devices cpio data...
 * >> Appending base_layout cpio data...
 * >> Appending auxilary cpio data...
 * >> Copying keymaps
 * >> Appending busybox cpio data...
 * >> Appending modules cpio data...
 * >> Appending blkid cpio data...
 * >> Appending modprobed cpio data...
 * >> Appending linker cpio data...
 * >> Deduping cpio...
 * >> Compressing cpio data (.xz)...
 * Kernel compiled successfully!
 * Required Kernel Parameters:
 * root=/dev/$ROOT
 * Where $ROOT is the device node for your root partition as the
 * one specified in /etc/fstab
 * If you require Genkernel's hardware detection features; you MUST
 * tell your bootloader to use the provided INITRAMFS file.
 * one specified in /etc/fstab
 * If you require Genkernel's hardware detection features; you MUST
 * tell your bootloader to use the provided INITRAMFS file.
 * tell your bootloader to use the provided INITRAMFS file.


 * WARNING... WARNING... WARNING...
 * Additional kernel cmdline arguments that *may* be required to boot properly...
 * With support for several ext* filesystems available, it may be needed to
 * add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

(chroot) livecd / # ls -l /boot total 16392 -rw-r--r-- 1 root root 7598596 Aug 14 21:32 initramfs-genkernel-x86_64-4.14.61-gentoo -rw-r--r-- 1 root root 6156848 Aug 14 21:26 kernel-genkernel-x86_64-4.14.61-gentoo drwx-- 2 root root  12288 Aug 14 19:13 lost+found -rw-r--r-- 1 root root 3016305 Aug 14 21:26 System.map-genkernel-x86_64-4.14.61-gentoo

This magically fixed networking touch /etc/udev/rules.d/80-net-name-slot.rules

Stuff to get chroot from the live cd mount /dev/nvme0n1p3 /mnt/gentoo swapon /dev/sda1 mount --types proc /proc /mnt/gentoo/proc mount --rbind /sys /mnt/gentoo/sys mount --make-rslave /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev mount --make-rslave /mnt/gentoo/dev

chroot /mnt/gentoo /bin/bash source /etc/profile export PS1="(chroot) ${PS1}"

XOrg Problems
Took awhile to get X working. Had help from the DE Fourm 'Problems with getting X to work'. Fixed it by using Kernel 14.18.5

Mouse USB setting needed to be changed in the Kernel too

Printing Problems
hplip can't find my ppd file automatically - picked it manually

dbus and cups were not starting automatically

lp: Error - No default printer.

hp-setup -g -i

Please enter a name for this print queue (m=use model name:'HP_ColorLaserJet_MFP_M278-M281'*, q=quit) ? Using queue name: HP_ColorLaserJet_MFP_M278-M281 Locating PPD file... Please wait. hp-setup[22620]: debug: Matching PPD list to model color_laserjet_mfp_m278-m281... hp-setup[22620]: debug: [] hp-setup[22620]: debug: No PPD found for model color_laserjet_mfp_m278-m281 using new algorithm. Trying old algorithm... hp-setup[22620]: debug: 1st stage edit distance match hp-setup[22620]: debug: Determining edit distance from color_laserjet_mfp_m278-m281 (only showing edit distances < 4)... hp-setup[22620]: debug: Min. dist = 9223372036854775807 hp-setup[22620]: debug: {} hp-setup[22620]: debug: [] hp-setup[22620]: debug: [] error: No PPD found for model color_laserjet_mfp_m278-m281 using old algorithm. error: Unable to find an appropriate PPD file.

Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y

-ps.ppdenter the full filesystem path to the PPD file to use (q=quit) :/usr/share/ppd/HP/hp-color_laserjet_mfp_m278-m281- Description for the file: HP ColorLaserJet MFP M278-M281 Postscript (recommended)

Use this file (y=yes*, n=no, q=quit) ? y Enter a location description for this printer (q=quit) ? Enter additonal information or notes for this printer (q=quit) ?

Adding print queue to CUPS: Device URI: hp:/net/HP_ColorLaserJet_MFP_M278-M281?ip=x.x.x.x Queue name: HP_ColorLaserJet_MFP_M278-M281 PPD file: /usr/share/ppd/HP/hp-color_laserjet_mfp_m278-m281-ps.ppd Location: Information: hp-setup[22620]: debug: addPrinter('HP_ColorLaserJet_MFP_M278-M281', 'hp:/net/HP_ColorLaserJet_MFP_M278-M281?ip=x.x.x.x', , '/usr/share/ppd/HP/hp-color_laserjet_mfp_m278-m281-ps.ppd', , '') hp-setup[22620]: debug: addPrinter returned (1, successful-ok-ignored-or-substituted-attributes) hp-setup[22620]: debug: {} error: Printer queue setup failed. Error : successful-ok-ignored-or-substituted-attributes

more /var/log/cups/error_log E [09/Sep/2018:00:31:06 -0700] Unsupported character set "iso-8859-1" E [09/Sep/2018:00:31:06 -0700] [Client 2] Returning IPP client-error-bad-request for CUPS-Get-PPDs (ipp://localhost/printers /officejet_4100) from localhost E [09/Sep/2018:00:31:43 -0700] Unsupported character set "iso-8859-1" E [09/Sep/2018:00:31:43 -0700] [Client 2] Returning IPP client-error-bad-request for CUPS-Add-Modify-Printer (ipp://localhos t/printers/HP_ColorLaserJet_MFP_M278-M281) from localhost

Printing is still not working. Not sure if it is Kernel, CUPS, or driver issues. I haven't gotten it to work on KDE Neon either, though for different reasons. On KDE the HPLIP versions I need conflicts with other packages, on Gentoo, I can get HPLIP but something is wrong.

Removed iso-8859 from locale, not sure why it was there. Now it gets:

E [09/Sep/2018:01:28:36 -0700] [CGI] Unable to execute ippfind utility: No such file or directory W [09/Sep/2018:01:29:17 -0700] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.Colo rManager was not provided by any .service files W [09/Sep/2018:01:29:17 -0700] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.Colo rManager was not provided by any .service files W [09/Sep/2018:01:29:17 -0700] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.Color Manager was not provided by any .service files

The ippfind problem was fix by building cups with zeroconf (Bug 610086). Now jobs can be added to the print queue, but they still don't print. The HP utilities say it is a device communication error.

I hooked the printer up through USB and got it to work.

Desktop stuff
Somehow I managed to break KDE while trying to get the printer working (I think it is the print icon in the tray but not sure)

Been playing with other desktops. Fluxbox, Awesome and i3. Fluxbox seems straight forward. i3 would take some time to get used to. On Awesome at the moment. They were all easy to set up though something isn't right in i3.