[gentoo-user] Does anyone have Gentoo running on a ThinkPad x13 AMD (Ryzen 7 Pro 6850U)?
I've re-loaded stage3 adm64 tarballs for a few weeks, keep failing due to SIGILL running tar & bzip2. If I build the tools by hand the seem to work. At this point I've tried installing from stage3-amd64-openrc-20230521T160357Z.tar.xz and the prior three builds. Looking to get a copy of a working /usr/src/linux/.config file and any information on kwikhaks to get around the install issues. Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[solved] [gentoo-user] Completed installing ... into /tmp/portage/app-emulation/virt-manager-4.0.0
> stable (on amd64) uses “gtk”[1], testing uses “gui”[2]. Upgraded to 4.1 & added "gui", got it installed. Thank you -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Completed installing ... into /tmp/portage/app-emulation/virt-manager-4.0.0
On Sat, 18 Feb 2023 17:10:44 +0100 tastytea wrote: > Do you have the gtk USE-flag on app-emulation/virt-manager? Double-checking the module, I don't see it using gtk: https://packages.gentoo.org/packages/app-emulation/virt-manager USE flags Local Use Flags policykit sasl Global Use Flags gui test python_single_target (Use Expand) python3_9 python3_10 python3_11 -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Completed installing ... into /tmp/portage/app-emulation/virt-manager-4.0.0
On Sat, 18 Feb 2023 17:10:44 +0100 tastytea wrote: > Do you have the gtk USE-flag on app-emulation/virt-manager? Does > `qlist app-emulation/virt-manager` show installed files? No, but the previous version was working without it. > […] > > >>> Completed installing app-emulation/virt-manager-4.0.0 into > > >>> /tmp/portage/app-emulation/virt-manager-4.0.0/image > > > > * Final size of build directory: 22080 KiB (21.5 MiB) > > * Final size of installed tree: 7420 KiB ( 7.2 MiB) > > That is normal. it is installed into ${PORTAGE_TMPDIR} and then merged > into ${EROOT}/ to make it less likely that the filesystem is getting > messed up. The other packages on the system get installed in the root after being collected in the temp dir. I cannot find this package getting installed anywhere further: >>> Completed installing app-emulation/virt-manager-4.0.0 into /tmp/portage/app-emulation/virt-manager-4.0.0/image qlist shows some files in /usr/share, look left over from the previous install. The only remaining executables are: /usr/bin/virt-xml /usr/bin/virt-install /usr/bin/virt-clone notice the lack of virt-manager. Full qlist output: https://pastebin.com/LNqczQnc Build info: app-emulation/virt-manager-4.0.0::gentoo was built with the following: USE="-gtk -policykit -sasl -test" PYTHON_SINGLE_TARGET="python3_10 -python3_9" FEATURES="distlocks assume-digests userfetch binpkg-docompress qa-unresolved-soname-deps usersandbox network-sandbox ipc-sandbox preserve-libs merge-sync config-protect-if-modified multilib-strict binpkg-logs sfperms binpkg-dostrip protect-owned usersync parallel-install fixlafiles xattr pid-sandbox buildpkg-live userpriv unmerge-logs unmerge-orphans parallel-fetch binpkg-multi-instance sandbox unknown-features-warn strict clean-logs news ebuild-locks" -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] Completed installing ... into /tmp/portage/app-emulation/virt-manager-4.0.0
First time I've ever seen a package install into PORTAGE_TMPDIR... Q: What am I missing? The rest of last nights "emerge --update" went into places like /usr/bin... where you'd expect. After the upgrade I noticed that virt-manager wasn't there. Tried emerging it alone to see what had happened. # emerge ... app-emulation/virt-manager; # which virt-manager; which: no virt-manager in (/opt/bin:/opt/sbin:/bin:/usr/bin:/sbin:/usr/sbin) $ less /var/log/portage/app-emulation\:virt-manager-4.0.0\:20230218-151519.log changing mode of /tmp/portage/app-emulation/virt-manager-4.0.0/image/usr/bin/virt-xml to 755 changing mode of /tmp/portage/app-emulation/virt-manager-4.0.0/image/usr/bin/virt-install to 755 changing mode of /tmp/portage/app-emulation/virt-manager-4.0.0/image/usr/bin/virt-clone to 755 changing mode of /tmp/portage/app-emulation/virt-manager-4.0.0/image/usr/bin/virt-manager to 755 >>> Completed installing app-emulation/virt-manager-4.0.0 into >>> /tmp/portage/app-emulation/virt-manager-4.0.0/image * Final size of build directory: 22080 KiB (21.5 MiB) * Final size of installed tree: 7420 KiB ( 7.2 MiB) Full emerge: /usr/bin/emerge --deep --backtrack=128 --with-bdeps y --complete-graph y --autounmask-write --verbose-conflicts --jobs --load-average 60 --verbose-conflicts See also: https://pastebin.com/76x7AdB9 Full emerge log https://pastebin.com/EmyLJsyM emerge --info -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508 * Package:app-emulation/virt-manager-4.0.0:0 * Repository: gentoo * Maintainer: virtualizat...@gentoo.org * USE:abi_x86_64 amd64 elibc_glibc kernel_linux python_single_target_python3_10 userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Using python3.10 to build >>> Unpacking source... >>> Unpacking virt-manager-4.0.0.tar.gz to /tmp/portage/app-emulation/virt-manager-4.0.0/work >>> Source unpacked in /tmp/portage/app-emulation/virt-manager-4.0.0/work >>> Preparing source in /tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0 ... * Applying virt-manager-4.0.0-setuptools-61-fix.patch ... [ ok ] * Non-PEP517 builds are deprecated for ebuilds using plain distutils. * Please migrate to DISTUTILS_USE_PEP517=setuptools. * Please see Python Guide for more details: * https://projects.gentoo.org/python/guide/distutils.html >>> Source prepared. >>> Configuring source in /tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0 ... python3.10 setup.py configure --default-graphics=spice running configure Generated /tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0/virtinst/build.cfg >>> Source configured. >>> Compiling source in /tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0 ... python3.10 setup.py build -j 64 running build Generating /tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0/build/virt-install Generating /tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0/build/virt-clone Generating /tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0/build/virt-xml Generating /tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0/build/virt-manager Generating man/virt-xml.1 Generating man/virt-manager.1 Generating man/virt-install.1 Generating man/virt-clone.1 Generating build/bash-completion/virt-install Generating build/bash-completion/virt-clone Generating build/bash-completion/virt-xml running build_i18n msgfmt po/zh_TW.po -o build/mo/zh_TW/LC_MESSAGES/virt-manager.mo msgfmt po/zh_CN.po -o build/mo/zh_CN/LC_MESSAGES/virt-manager.mo msgfmt po/uk.po -o build/mo/uk/LC_MESSAGES/virt-manager.mo msgfmt po/tr.po -o build/mo/tr/LC_MESSAGES/virt-manager.mo msgfmt po/te.po -o build/mo/te/LC_MESSAGES/virt-manager.mo msgfmt po/ta.po -o build/mo/ta/LC_MESSAGES/virt-manager.mo msgfmt po/sv.po -o build/mo/sv/LC_MESSAGES/virt-manager.mo msgfmt po/s...@latin.po -o build/mo/sr@latin/LC_MESSAGES/virt-manager.mo msgfmt po/sr.po -o build/mo/sr/LC_MESSAGES/virt-manager.mo msgfmt po/sk.po -o build/mo/sk/LC_MESSAGES/virt-manager.mo msgfmt po/si.po -o build/mo/si/LC_MESSAGES/virt-manager.mo msgfmt po/ru.po -o build/mo/ru/LC_MESSAGES/virt-manager.mo msgfmt po/ro.po -o build/mo/ro/LC_MESSAGES/virt-manager.mo msgfmt po/pt_BR.po -o build/mo/pt_BR/LC_MESSAGES/virt-manager.mo msgfmt po/pt.po -o build/mo/pt/LC_MESSAGES/virt-manager.mo msgfmt po/pl.po -o build/mo/pl/LC_MESSAGES/virt-manager.mo msgfmt po/pa.po -o build/mo/pa/LC_MESSAGES/virt-manager.mo msgfmt po/or.po -o build/mo/or/LC_MESSAGES/virt-manager.mo msgfmt po/nl.po -o build/mo/nl/LC_MESSAGES/virt-manager.mo msgfmt po/nb.po -o build/mo/nb/LC_MESSAGES/virt-manager.mo msgfmt po/ms.po -o build/mo/ms/LC_MESSAGES/virt-manager.mo msgfmt po/mr.po -o build/mo/mr/LC_MESSAGES/virt-manager.mo msgfmt po/ml.po -o build/mo/ml/LC_MESSAGES
Re: [gentoo-user] libreoffice fails to build, cannot download non-existant ~scarabeus/lpsolve-5.5.2.0.tar.xz ???
On Mon, 21 Feb 2022 20:35:23 +0100 Daniel Pielmeier wrote: > https://bugs.gentoo.org/614866 Bug doesn't address it, but shouldn't using the alternate lp library via "coinmp" sidestep the issue? -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] [OT] mounting screws
On Sun, 20 Feb 2022 17:24:44 + Peter Humphrey wrote: > Hello list, > > This has nothing to do with Gentoo, but I don't know where else to > ask. > > I have a couple of vertically mounted easy-swap disk caddies in the > back of my workstation, and I'm having trouble finding screws to > mount the disk in the caddy. Clearance is nil, so the screws must be > countersunk so they aren't proud of the surface. They seem to be m3 > perhaps 5mm long. Sanity check: Do you have at least one of the screws? The threads will be defined by your disk drives, which means they are possibly imperial threads (vs. SI). Many of the same sorts of screws are used on autombiles; you might find that a local parts store can dig up a pitch guage that'll at least tell you what you're looking for. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] libreoffice fails to build, cannot download non-existant ~scarabeus/lpsolve-5.5.2.0.tar.xz ???
e toggled independently) - - vulkan : Enable Vulkan usage via the skia library (clang recommended) (3) "dev.gentooexperimental.org" seems not to exist? Which seems to make sense: "packages.gentooexperimental.org", resolves in DNS and firefox but "dev.gentooexperimental.org" does not. I've wandered around the site.. infinte construction doesn't seem to include "dev." or anything like lpsolve. Checking packages.../repoman-checks/sci-mathematics.txt gives me a not-so-good feeling about lpsolve due to "deprecated": repo.eapi.deprecated sci-mathematics/lpsolve/lpsolve-5.5.2.0.ebuild: 4 # emerge --fetchonly app-office/libreoffice; Calculating dependencies... done! >>> Downloading 'http://dev.gentooexperimental.org/~scarabeus/lpsolve-5.5.2.0.tar.xz' --2022-02-21 12:48:01-- http://dev.gentooexperimental.org/~scarabeus/lpsolve-5.5.2.0.tar.xz * Resolving dev.gentooexperimental.org... failed: Unknown host. * wget: unable to resolve host address ‘dev.gentooexperimental.org’ * !!! Couldn't download 'lpsolve-5.5.2.0.tar.xz'. Aborting. * Fetch failed for 'sci-mathematics/lpsolve-5.5.2.0' >>> Failed to emerge sci-mathematics/lpsolve-5.5.2.0 -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] emerge failes due to no valid source for pythonexec-2.2 when I have pythonexec-2.4 installed???
# emerge --info <https://pastebin.com/M54kvhg1> I spend more time maintaining a language I don't actually use lately... Emerge fails becuase python-exec-2.2 doesn't have its expected Pytnon version. Catch is that it appears that the current version is 2.4, which seems to be installed: dev-lang/python-exec Latest version available: 2.4.8 Latest version installed: 2.4.8 This showed up when I added a new use flag "fuse" and tried to run emerge: emerge --update --ask --changed-use @world; emerge: there are no ebuilds built with USE flags to satisfy ">=dev-lang/python-exec-2:2/2=[python_targets_python3_6]". !!! One of the following packages is required to complete your request: - dev-lang/python-exec-2.4.8::gentoo (Missing IUSE: python_targets_python3_6) (dependency required by "sys-devel/clang-9.0.1::gentoo" [installed]) (dependency required by "@selected" [set]) (dependency required by "@world" [argument]) My current package.use files include: */* PYTHON_TARGETS: python3_8 python3_9 python3_10 #*/* PYTHON_SINGLE_TARGET: python3_10 Previously I had to have the single target in place to update one of the packages, removing the PYTHON_TARGETS LINE leaves me with: # emerge --update --ask --newuse @world; !!! Problem resolving dependencies for dev-python/backports-zoneinfo from @selected ... done! !!! The ebuild selected to satisfy "dev-python/backports-zoneinfo" has unmet requirements. - dev-python/backports-zoneinfo-0.2.1-r2::gentoo USE="-test" ABI_X86="(64)" PYTHON_TARGETS="(-pypy3) -python3_8" The following REQUIRED_USE flag constraints are unsatisfied: any-of ( python_targets_pypy3 python_targets_python3_8 ) I thought I'd seen news to the effect that the system was standardizing on 3.8 at least, let alone 3.6. Q: What is a reasonable range of Python versions to specify for a current running system? Q: Is there any combination of use flags, make settings, or rain dances that will leave the system in an updatable state going forward? Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Apparently 2.4 is not >= 2.2?
On Tue, 21 Dec 2021 20:21:17 -0500 Jack wrote: > I may well be wront, but it looks like the problems are not due to > version, but to python-target mismatches. You may need to rebuild > some stuff first, such as pytest-runner and mako. You are probably right: I've spent more time playing with PYTHON*TARGET variables and succesive rebuilds on this machine than actually doing any work for about a year. Annoyance is that I don't do anything else with Python here so it's only for the package manager. This is for a fresh build from a recent stage3. It shouldn't be this painful to just start a new system. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Re: Apparently 2.4 is not >= 2.2?
Sorry for the delay. > Post the output of: > > emerge --info dev-lang/python-exec https://pastebin.com/5kQPpRsb -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] Apparently 2.4 is not >= 2.2?
Before I spend a lot of time backtracking all of this... Q: Are either of these issues well-known pathologies of emerge? Recently built a new Gentoo system by creating a new LV, extracting stage3-amd64-openrc-20211205T170532Z.tar.xz and going through the handbook stages to get a running sytem. I then installed a variety of packages I have on the current system like fonts, claws-mail. Catch is that I cannot update the sytem: # $emerge --update --fetchonly @world; Calculating dependencies... done! The following packages are causing rebuilds: (x11-base/xorg-server-1.20.14:0/1.20.14::gentoo, ebuild scheduled for merge) causes rebuilds for: (x11-drivers/xf86-input-synaptics-1.9.1:0/0::gentoo, ebuild scheduled for merge) (x11-drivers/xf86-input-evdev-2.10.6:0/0::gentoo, ebuild scheduled for merge) emerge: there are no ebuilds to satisfy ">=dev-lang/python-exec-2:2/2=[python_targets_python2_7(-),python_targets_python3_6(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]". (dependency required by "dev-python/pytest-runner-4.2::gentoo" [installed]) (dependency required by "@selected" [set]) (dependency required by "@world" [argument]) It seems that I have a recent enough python-exec installed: 2.4 >= 2.2. # emerge --search dev-lang/python-exec [ Results for search key : dev-lang/python-exec ] Searching... * dev-lang/python-exec Latest version available: 2.4.8 Latest version installed: 2.4.8 Size of files: 81 KiB Homepage: https://github.com/mgorny/python-exec/ Description: Python script wrapper License: BSD-2 I'm having a similar issue with firefox-bin: # $emerge firefox-bin; Calculating dependencies... done! emerge: there are no ebuilds to satisfy ">=dev-python/markupsafe-0.9.2[python_targets_python3_6(-),python_targets_python3_7(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]". (dependency required by "dev-python/mako-1.1.3::gentoo" [installed]) (dependency required by "media-libs/mesa-20.1.0::gentoo" [installed]) (dependency required by "x11-libs/gtk+-3.24.29::gentoo[X]" [ebuild]) (dependency required by "www-client/firefox-bin-95.0.1::gentoo" [ebuild]) (dependency required by "firefox-bin" [argument]) But I also seem to have a recent markupsafe, if 2.0.1 >= 0.9.2?? # emerge --search dev-python/markupsafe [ Results for search key : dev-python/markupsafe ] Searching... * dev-python/markupsafe Latest version available: 2.0.1 Latest version installed: 2.0.1 Size of files: 19 KiB Homepage: https://pypi.org/project/MarkupSafe/ Description: Implements a XML/HTML/XHTML Markup safe string for Python License: BSD -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
> > Q: Is there no way to have a consistent version of Python on > >the system? > > Yes, make sure PYTHON_TARGETS and your chosen version of python match. Q: How do I know which verson of python is suitable? I never deal with the language... last I saw was some news that turn off the targets would be preferable. Is there some real advantage to targets vs target (i.e., at this point is it reasonable to just have a single target)? I'm still not sure, however, why a module installed with python 3.8 would leave portage disfunctional if that version were selected. Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
On Sun, 07 Mar 2021 19:30:21 + Michael wrote: > eselect python cleanup > emerge --depclean -v -p > emerge @preserved-rebuild -v -a cleanup doesn't seem to change anything. depcleand doesn't remove anything. @preserved-rebuild failes due to lack of an already-installed python library. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
On Sun, 7 Mar 2021 22:04:39 + Neil Bothwick wrote: > But you have chosen a different default version of Python. That leaves > you two choices: > > 1) use eselect to set your default python to 3.8 > 2) Add python_39 to PYTHON_TARGETS > 3) Explicitly call python38 in the shebang line of the affected > script. So, I go back and eselect 3.8. I then try to perform some basic maintainence which fails for lack of a python module I think is installed for python 3.8. Q: Is there no way to have a consistent version of Python on the system? # eselect python list; Available Python interpreters, in order of preference: [1] python3.8 [2] python3.6 [3] python3.9 [4] python3.7 (fallback) [5] python2.7 (fallback) # emerge dev-python/chardet; writing byte-compilation script '/tmp/portage/dev-python/chardet-4.0.0/temp/tmp591yrh90.py' * /usr/bin/python3.8 /tmp/portage/dev-python/chardet-4.0.0/temp/tmp591yrh90.py removing /tmp/portage/dev-python/chardet-4.0.0/temp/tmp591yrh90.py writing byte-compilation script '/tmp/portage/dev-python/chardet-4.0.0/temp/tmp9vcif_en.py' * /usr/bin/python3.8 /tmp/portage/dev-python/chardet-4.0.0/temp/tmp9vcif_en.py removing /tmp/portage/dev-python/chardet-4.0.0/temp/tmp9vcif_en.py >>> Installing (1 of 1) dev-python/chardet-4.0.0::gentoo >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. !!! existing preserved libs: >>> package: dev-libs/icu-68.2 * - /usr/lib64/libicudata.so.67 * - /usr/lib64/libicudata.so.67.1 * - /usr/lib64/libicui18n.so.67 * - /usr/lib64/libicui18n.so.67.1 * used by /usr/bin/js60 (dev-lang/spidermonkey-60.5.2_p0-r4) * used by /usr/lib64/libmozjs-60.so (dev-lang/spidermonkey-60.5.2_p0-r4) * - /usr/lib64/libicuuc.so.67 * - /usr/lib64/libicuuc.so.67.1 * used by /usr/bin/js60 (dev-lang/spidermonkey-60.5.2_p0-r4) * used by /usr/lib64/libmozjs-60.so (dev-lang/spidermonkey-60.5.2_p0-r4) Use emerge @preserved-rebuild to rebuild packages using these libraries * python3_8: running distutils-r1_run_phase distutils-r1_python_install_all # $emerge @preserved-rebuild These are the packages that would be merged, in order: Calculating dependencies... done! * emerge: there are no ebuilds to satisfy ">=dev-python/chardet-3.0.2[python_targets_python3_6(-),python_targets_python3_7(-),python_targets_python3_8(-),-python_single_target_pypy3(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]". # emerge --search dev-python/chardet; [ Results for search key : dev-python/chardet ] Searching... * dev-python/chardet Latest version available: 4.0.0 Latest version installed: 4.0.0 # emerge --info dev-python/chardet; * Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.32-r3, 5.9.1-gentoo-af x86_64) * dev-lang/python: 2.7.18-r6::gentoo, 3.6.12-r2::gentoo, 3.7.9-r2::gentoo, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo * USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 python3_8 (-pypy3) -python3_9" See <https://pastebin.com/JbKXEptz> for details of --info. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
Checking my environment, I'd expect that "python" is 3.9.1, I think? # which python /usr/bin/python # ls -al /usr/bin/python lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python -> python-exec2c # /usr/bin/python --version; Python 3.9.1 (ins)root@dizzy ~ # eselect python list; Available Python interpreters, in order of preference: [1] python3.9 [2] python3.6 [3] python3.8 (fallback) [4] python3.7 (fallback) [5] python2.7 (fallback) Yet when I "emerge pyyaml" it seems to prefer 3.8 (see ? below): (cmd)root@dizzy ~ # emerge pyyaml Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/pyyaml-5.4.1::gentoo * pyyaml-5.4.1.gh.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking pyyaml-5.4.1.gh.tar.gz to /tmp/portage/dev-python/pyyaml-5.4.1/work >>> Source unpacked in /tmp/portage/dev-python/pyyaml-5.4.1/work >>> Preparing source in /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ... * Applying pyyaml-5.1-cve-2017-18342.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ... ? * Using python3.8 in global scope ? * python3_8: running distutils-r1_run_phase python_configure_all >>> Source configured. ^C Exiting on signal 2 >>> Compiling source in /tmp/portage/dev-python/pyyaml-5.4.1/work/pyyaml-5.4.1 ... ^Csandbox:stop caught signal 2 in pid 8217 Sandboxed process killed by signal: Interrupt * The ebuild phase 'die_hooks' has been killed by signal 2. * Messages for package dev-python/pyyaml-5.4.1: * Log file: /var/log/portage/dev-python:pyyaml-5.4.1:20210307-183833.log Q: Is it reasonable to simply remove everything other than 3.9 and some version of 2.7? Trying to build 3.9 for one of my co-workers was hell, we ended up using 3.8. Would it make more sense to remove 3.9? Not entirely sure why I have so many versions of python left behind by upgrades. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
> While eselect python is still available the OP can run: > > eselect python update > eselect python cleanup # eselect python update Switching to python3.9 # eselect python cleanup # eselect python list; Available Python interpreters, in order of preference: [1] python3.9 [2] python3.6 [3] python3.8 (fallback) [4] python3.7 (fallback) [5] python2.7 (fallback) Sanity check: Is this something I should be doing with every python update (don't use python for anything myself so if it works for system updates only I'm fine). Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
On Sun, 7 Mar 2021 00:09:47 +0100 David Haller wrote: > Hello, > > On Sat, 06 Mar 2021, Steven Lembark wrote: > >Question then is why "python-exec2c" dispatched via a symlink from > >"python3" would fail to see the installed copy of pyyaml (or how > >should I check with modules are avalable via "python3")? > [..] > >I think that pyyaml is installed: > > > >* dev-python/pyyaml > > Latest version available: 5.4.1 > > Latest version installed: 5.4.1 > > Size of files: 170 KiB > > Homepage: https://pyyaml.org/wiki/PyYAML > > https://pypi.org/project/PyYAML/ https://github.com/yaml/pyyaml > > Description: YAML parser and emitter for Python License: > > MIT > > Check with 'eix dev-python/pyyaml' or 'equery uses dev-python/pyyaml' > for what python versions that module is actually installed for and > compare that with the default python3 version (check 'python3 > --version') I believe there isn't any PYTHON_TARGET-ish setting on the system: $ grep PYTHON_TARGET /etc/portage/make.conf /etc/portage/package.use/* /etc/portage/make.conf:#PYTHON_TARGETS="python3_7 python2_7" /etc/portage/package.use/dizzy:#*/* PYTHON_TARGETS: python3_6 python3_7 /etc/portage/package.use/dizzy~:#*/* PYTHON_TARGETS: python3_6 python3_7 > You probably need to re-emerge dev-python/pyyaml if PYTHON_TARGETS has > changed. You probably have it installed just for one target (which is > not your current default python3). > $ equery uses dev-python/pyyaml > [..] > + + python_targets_python3_7 : Build with Python 3.7 > + + python_targets_python3_8 : Build with Python 3.8 > - - python_targets_python3_9 : Build with Python 3.9 > [..] > > So I have it installed for python 3.7.x and 3.8.x ... > > HTH, > -dnh > $ equery uses dev-python/pyyaml [ Legend : U - final flag setting for installation] [: I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for dev-python/pyyaml-5.4.1: U I - - examples : Install examples, usually source code + + libyaml : enable support for C implementation using libyaml - - python_targets_python3_7 : Build with Python 3.7 + + python_targets_python3_8 : Build with Python 3.8 - - python_targets_python3_9 : Build with Python 3.9 - - test : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently) (ins)lembark@dizzy ~ $ eselect python list Available Python interpreters, in order of preference: [1] python3.9 [2] python3.6 [3] python3.8 (fallback) [4] python3.7 (fallback) [5] python2.7 (fallback) $ python3 --version; Python 3.9.1 Q: If don't have PYTHON_TARGETS set Given that I installed it yesterday when the makefile told me about pyyaml not being installed, there aren't any TARGETS set (both commented), python3 appears to be python-3.9... Q: Why would emerge pyyaml install the pacakge for a non-target python version that isn't the one linked via python3? Q: Is this related to the fact that I'm not actually checking python but a wrapper named "python-exec2c": $ ls -l /usr/bin/python3 lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python3 -> python-exec2c i.e., could the wrapper be mis-diagnosing the correct python version at install time? Q: Is there any reasonable way to have a single version of python installed so that I get out of this maze? Previous python target advice left me with one machine being re-installed and I'd rather not have my server disabled at this point. Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] Q: What is "python-exec2c"? Why would "python3" dispatched through it not see an installed copy of pyyaml?
Question then is why "python-exec2c" dispatched via a symlink from "python3" would fail to see the installed copy of pyyaml (or how should I check with modules are avalable via "python3")? e.g., is there the equivalent of "perl -MYAML -d -E 0" that would allow me to check what it is that python thinks is installed? I think that pyyaml is installed: * dev-python/pyyaml Latest version available: 5.4.1 Latest version installed: 5.4.1 Size of files: 170 KiB Homepage: https://pyyaml.org/wiki/PyYAML https://pypi.org/project/PyYAML/ https://github.com/yaml/pyyaml Description: YAML parser and emitter for Python License: MIT Running make for a program blows up with: PYTHON species-data.h Traceback (most recent call last): *File "/scratch/Build/crawl/crawl-ref/source/util/species-gen.py", line 23, in * import yaml # pip install pyyaml ModuleNotFoundError: No module named 'yaml' make: *** [Makefile:1741: species-data.h] Error 1 make -C rltiles all ARCH=x86_64-pc-linux-gnu NO_PKGCONFIG= TILES=y make[1]: Entering directory '/scratch/Build/crawl/crawl-ref/source/rltiles' make[1]: Leaving directory '/scratch/Build/crawl/crawl-ref/source/rltiles' make: Target 'all' not remade because of errors. make: Leaving directory '/scratch/Build/crawl/crawl-ref/source' $ head -n1 /scratch/Build/crawl/crawl-ref/source/util/species-gen.py #!/usr/bin/env python3 $ which python3 /usr/bin/python3 $ ls -ld $(which python3) lrwxrwxrwx 1 root root 13 Oct 20 10:46 /usr/bin/python3 -> python-exec2c Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Going through these one by one.
On Sun, 14 Feb 2021 10:56:03 + Neil Bothwick wrote: > ~java-config-2.2.0 isn't in the portage tree, the only version is > 2.3.1. > > > [installed]) (dependency required by > > "sys-devel/gettext-0.20.2::gentoo" > > Also not in the tree. > > I'd start by unmerging these two, quickpkg them first, and running a > deep world update. # emerge --unmerge ~java-config-2.2.0 * This action can remove important packages! In order to be safer, use * `emerge -pv --depclean ` to check for reverse dependencies before * removing packages. dev-java/java-config selected: 2.2.0-r4 # emerge --unmerge ~sys-devel/gettext-0.20.2 * This action can remove important packages! In order to be safer, use * `emerge -pv --depclean ` to check for reverse dependencies before * removing packages. sys-devel/gettext selected: 0.20.2 OK, that seemed to work: picked a single version each time. Checking java-config it's at 2.3.1 in the repository, trying "emerge --pretend java-config" failes with a long list of conflicts, most of which appear to include python versions. Ditto sys-devel/gettext. Attempting the world-merge: # /usr/bin/emerge --deep --with-bdeps y --complete-graph y \ --autounmask-write --verbose-conflicts --jobs --load-average 4 \ --keep-going --update @world 2>&1 | tee /tmp/b ; * IMPORTANT: config file '/etc/portage/package.use/zz_autoconfigure' needs updating. # git diff zz_autoconfigure ._cfg_zz_autoconfigure diff --git a/zz_autoconfigure b/._cfg_zz_autoconfigure index 22069a3..86e9b33 100644 --- a/zz_autoconfigure +++ b/._cfg_zz_autoconfigure @@ -272,3 +272,7 @@ media-libs/gegl cairo # required by @selected # required by @world (argument) >=app-crypt/pinentry-1.1.1 gnome-keyring +# required by media-video/cheese-3.34.0-r1::gentoo +# required by @selected +# required by @world (argument) +>=media-libs/gst-plugins-base-1.16.3 theora # mv ._cfg_zz_autoconfigure diff zz_autoconfigure; Second pass: # /usr/bin/emerge --deep --with-bdeps y --complete-graph y \ --autounmask-write --verbose-conflicts --jobs --load-average 4 \ --keep-going --update @world 2>&1 | tee /tmp/b ; !!! Multiple package instances within a single package slot have been pulled !!! into the dependency graph, resulting in a slot conflict: dev-python/idna:0 (dev-python/idna-3.1:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)" PYTHON_TARGETS="python3_8 -pypy3 -python3_7 -python3_9" pulled in by (no parents that aren't satisfied by other packages in this slot) (dev-python/idna-2.10-r1:0/0::gentoo, ebuild scheduled for merge) USE="" ABI_X86="(64)" PYTHON_TARGETS="python3_8 -pypy3 -python3_7 -python3_9" pulled in by Full output at: <https://pastebin.com/qhyhW0mx> At this point the various targets I've tried are all commented out (whitespace added): # grep PYTHON /etc/portage/make.conf /etc/portage/package.use/steamer ; /etc/portage/make.conf:... #PYTHON_TARGETS="python3_6 python3_7 python3_8 python3_9" #PYTHON_SINGLE_TARGET="python3_9" /etc/portage/package.use/steamer:.. #*/* PYTHON_TARGETS="-python2_7 python3_6 python3_6" #*/* PYTHON_SINGLE_TARGET="python3_7" Q: Is there any combination of targets that would suffice to get things cleaned up to the point where I could eventuall remove them? I've tried this with an initially empty local & zz_autoconfig just moving the generated autoconfig's in place as they are generated but that didn't work either. After zeroing zz_autoconfig and running a few emerges I get a autoconfig file that hits a brick wall. Thank you -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] glibc fails to compile for lack of stddef.h that is present
Oddity: I have multiple gentoo systems here happily using the kernel headers, including stddef.h. One of them, screwed up in a variety of other ways, blows up building glibc for lack of an extant header file: # ls -l /usr/include/linux/stddef.h; -rw-r--r-- 1 root root 131 Sep 12 22:40 /usr/include/linux/stddef.h i.e., the header is there. Checking, I've built glibc before: # emerge --search sys-libs/glibc [ Results for search key : sys-libs/glibc ] Searching... * sys-libs/glibc Latest version available: 2.32-r6 Latest version installed: 2.32-r1 Size of files: 21,811 KiB Homepage: https://www.gnu.org/software/libc/ Description: GNU libc C library License: LGPL-2.1+ BSD HPND ISC inner-net rc PCRE [ Applications found : 1 ] But emerge blows up: root@steamer:package.use # emerge =sys-libs/glibc-2.32-r1; Calculating dependencies... done! emerge: there are no ebuilds to satisfy "=sys-libs/glibc-2.32-r1". root@steamer:package.use # emerge sys-libs/glibc; Calculating dependencies... done! >>> Verifying ebuild manifests >>> Running pre-merge checks for sys-libs/glibc-2.32-r6 * Checking general environment sanity. make -j4 glibc-test CC=x86_64-pc-linux-gnu-gcc x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -Wl,-O1 -Wl,--as-needed glibc-test.c -o glibc-test In file included from glibc-test.c:1: ? /usr/include/unistd.h:226:10: fatal error: stddef.h: No such file or directory ?226 | #include ?| ^~ ? compilation terminated. make: *** [: glibc-test] Error 1 emake failed So far as I know /usr/include/linux is on the standard -I path, or am I missing something? # emerge --info sys-libs/glibc; Portage 3.0.1 (python 3.6.12-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.32-r1, 5.6.13-gentoo.av x86_64) = System Settings = System uname: Linux-5.6.13-gentoo.av-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-gentoo-2.7 KiB Mem:16060584 total, 1608000 free KiB Swap: 33425404 total, 33425404 free Timestamp of repository gentoo: Sun, 14 Feb 2021 16:00:01 + Head commit of repository gentoo: 4ceda2219fdacd7a7095774c7485ffe378f8d550 sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p4) 2.34.0 app-shells/bash: 5.0_p18::gentoo dev-lang/perl:5.30.3-r1::gentoo dev-lang/python: 2.7.18-r2::gentoo, 3.6.12::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo, 3.9.0_beta1::gentoo dev-util/cmake: 3.17.3::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7-r1::gentoo sys-apps/openrc: 0.41.2::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc:9.2.0-r3::gentoo, 9.3.0::gentoo sys-devel/gcc-config: 2.3.2::gentoo sys-devel/libtool:2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="rsync://rsync.us.gentoo.org/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive
Re: [gentoo-user] Re: Going through these one by one.
On Sun, 14 Feb 2021 17:26:03 - (UTC) Martin Vaeth wrote: > emerge -NaDu --with-bdeps=y @world Normally I use: /usr/bin/emerge --deep --backtrack=128 --with-bdeps y \ --complete-graph y --autounmask-write --verbose-conflicts \ --jobs --load-average 4 --keep-going --update @world; This gets me the same failures, with a bit more information. The output of your command above is: !!! Multiple package instances within a single package slot have been pulled !!! into the dependency graph, resulting in a slot conflict: sys-libs/binutils-libs:0 (sys-libs/binutils-libs-2.35.1-r1:0/2.35.1::gentoo, ebuild scheduled for merge) USE="nls -64-bit-bfd (-cet) -multitarget -static-libs" ABI_X86="32 (64) (-x32)" pulled in by (no parents that aren't satisfied by other packages in this slot) (sys-libs/binutils-libs-2.34-r2:0/2.34::gentoo, installed) USE="nls -64-bit-bfd -multitarget -static-libs" ABI_X86="32 (64) (-x32)" pulled in by sys-libs/binutils-libs:0/2.34=[abi_x86_32(-),abi_x86_64(-)] required by (x11-libs/cairo-1.16.0-r4:0/0::gentoo, installed) USE="X glib svg (-aqua) -debug (-gles2-only) -opengl -static-libs -utils -valgrind" ABI_X86="32 (64) (-x32)" <https://pastebin.com/r7Qe4yUf> Running it with a loop moving ._cfg00_autoconfig and re-running emerge eventually brick walls into the same result. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Going through these one by one.
On Sat, 13 Feb 2021 20:59:08 -0800 cal wrote: > Did you run emerge --sync before emerge -1vUD @world? A cron job here runs "emerge --sync && emerge --update --fetchonly" every day at 0300. > The Python 3.7 change is old news -- by now it's already migrated to > 3.8 on my system. This system has been fried ever since 2020-04-22-python3-7 Title Python 3.7 to become the default target AuthorMichał Górny Posted2020-04-22 Revision 1 On 2020-05-06 (or later), Python 3.7 will replace Python 3.6 as one of the default Python targets for Gentoo systems. The new default values will be: Followed those instructions -- don't use python for anything here and the local copies of what I actually use are in /opt/perl, /opt/postgresql, etc, built from git checkouts. At this point I've added and removed python single and multiple target entries from make.conf & package.use/local, with various sets of values and exclusions. A bare sync tells me there is a new version of portage available, installing it fails, however with: # emerge --sync; Action: sync for repo: gentoo, returned code = 0 * An update to portage is available. It is _highly_ recommended * that you update portage now, before any other packages are updated. * To update portage, run 'emerge --oneshot sys-apps/portage' now. # emerge --oneshot sys-apps/portage 2>&1 | tee a; Calculating dependencies ... done! [ebuild N ] dev-lang/python-exec-conf-2.4.6 PYTHON_TARGETS="python3_8 -pypy3 -python3_7 -python3_9" [ebuild N ] acct-group/portage-0 [ebuild U ] dev-lang/python-exec-2.4.6-r4 [2.4.6-r1] USE="native-symlinks%*" PYTHON_TARGETS="(python3_8%*) (python3_9%*)" [ebuild N ] acct-user/portage-0 [ebuild U ] dev-python/certifi-10001-r1 [10001] PYTHON_TARGETS="python3_8*" [ebuild U ~] dev-python/setuptools-53.0.0 [44.0.0] PYTHON_TARGETS="python3_8* -python3_9%" [ebuild U ~] dev-python/setuptools_scm-5.0.1 [4.1.2] PYTHON_TARGETS="python3_8*" [ebuild U ] dev-python/chardet-4.0.0 [3.0.4] PYTHON_TARGETS="python3_8* -python3_9%" [ebuild U ] dev-python/idna-2.10-r1 [2.8] PYTHON_TARGETS="python3_8* -python3_9%" [ebuild U ] dev-python/PySocks-1.7.1-r1 [1.6.8] PYTHON_TARGETS="python3_8* -python3_9%" [ebuild U ~] dev-python/urllib3-1.26.3-r1 [1.24.2] USE="-brotli%" PYTHON_TARGETS="python3_8%* -python3_9%" [ebuild U ] dev-python/requests-2.25.1-r1 [2.21.0-r1] USE="-test%" PYTHON_TARGETS="python3_8%* -python3_9%" [ebuild U ~] app-crypt/gnupg-2.2.27 [2.2.20] USE="-scd-shared-access%" [ebuild U ] app-portage/gemato-16.2 [14.3] PYTHON_TARGETS="python3_8* -python3_7* -python3_9%" [ebuild U ~] sys-apps/portage-3.0.14 [3.0.1] USE="-test%" PYTHON_TARGETS="python3_8* -python3_7*" [blocks B ] <=dev-lang/python-2.7.18-r3:2.7 ("<=dev-lang/python-2.7.18-r3:2.7" is blocking dev-lang/python-exec-2.4.6-r4) [blocks B ] =dev-lang/python-exec-2:=[python_targets_pypy3(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_pypy3(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)] required by (dev-python/chardet-4.0.0:0/0::gentoo, ebuild scheduled for merge) USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python3_8 -pypy3 -python3_7 -python3_9" >=dev-lang/python-exec-2:=[python_targets_pypy3(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_pypy3(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)] required by (dev-python/setuptools-53.0.0:0/0::gentoo, ebuild scheduled for merge) USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python3_7 python3_8 -pypy3 -python3_9" Full output at: <https://pastebin.com/mEJg3N7N> Q: Is there any way to clean up python at this point without a full re-install? thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Going through these one by one.
On Sat, 13 Feb 2021 21:42:12 -0700 Dan Egli wrote: > On 2/13/2021 2:41 PM, Steven Lembark wrote: > > [snip] > > Bumps into not having sys-apps/portage-::gentoo: > > # $emerge dev-db/pgmodeler > > Calculating dependencies... done! > > > > !!! All ebuilds that could satisfy > > "sys-apps/portage[python_targets_python2_7(-),python_targets_python3_6(-),-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]" > > have been masked. !!! One of the following masked packages is > > required to complete your request: > > - sys-apps/portage-::gentoo (masked by: missing keyword) > > Portage- is risky since it's VERY MUCH still developmental. BUT, > if you really want it, add this to your package.accept_keywords: > sys-apps/portage ** No. All I want is to get the regular portage working. I have been following a variety of suggestiions since the system stopped upgrading around the python 2-3 idiocy. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Going through these one by one.
On Mon, 25 Jan 2021 19:01:36 + Neil Bothwick wrote: > On Mon, 25 Jan 2021 13:04:26 -0500, Steven Lembark wrote: > > > 20 years I've been using Gentoo, I'm about to remove it because I > > have not been able to maintain it since the whole python 2.7 > > deprecation process started. > > > > Given my /usr/portage/package.accept_keywords is down to a > > single line: > > > > */* ~amd64 > > So you're basically running an ~arch system, why not set in in > make.conf? Because I'm not normally running an arch system. I am desparate after months of being able to install or upgrade anything on this machine. Runing ~amd64 was one of the straws I grasped at during the process. > > At this point pretty much anything I try to update bumps into: Bumps into not having sys-apps/portage-::gentoo: # $emerge dev-db/pgmodeler Calculating dependencies... done! !!! All ebuilds that could satisfy "sys-apps/portage[python_targets_python2_7(-),python_targets_python3_6(-),-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]" have been masked. !!! One of the following masked packages is required to complete your request: - sys-apps/portage-::gentoo (masked by: missing keyword) (dependency required by "dev-java/java-config-2.2.0-r4::gentoo" [installed]) (dependency required by "sys-devel/gettext-0.20.2::gentoo" [installed]) (dependency required by "dev-perl/Locale-gettext-1.70.0::gentoo" [installed]) (dependency required by "sys-apps/help2man-1.47.16::gentoo[nls]" [installed]) (dependency required by "sys-devel/automake-1.16.3-r1::gentoo" [ebuild]) (dependency required by "sys-devel/libtool-2.4.6-r6::gentoo" [installed]) (dependency required by "sys-libs/zlib-1.2.11-r2::gentoo[minizip]" [installed]) (dependency required by "dev-lang/perl-5.30.3-r1::gentoo" [installed]) (dependency required by "sys-devel/autoconf-2.69-r5::gentoo" [installed]) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Going through these one by one.
You've made the mistake of appearing knowlegable :-) 20 years I've been using Gentoo, I'm about to remove it because I have not been able to maintain it since the whole python 2.7 deprecation process started. Given my /usr/portage/package.accept_keywords is down to a single line: */* ~amd64 At this point pretty much anything I try to update bumps into: I have tried various combinations in package.use/local (i.e., separate from zz_autoconfig) of: nada. */* PYTHON_TARGETS="-python2_7" */* PYTHON_SINGLE_TARGET="python3_6" */* PYTHON_TARGETS="-python2_7 python3_6" */* PYTHON_SINGLE_TARGET="python3_6" followed by a combinatorial product of -python2_7 python3_{456789} for the PYTHON_TARGETS and each of the alternatives as PYTHON_SINGLE_TARGET. I've tried setting these in /etc/portage/make.conf also. One oddity I notice is that emerge and eselect seem out of sync on the version of python installed: # eselect python list; Available Python interpreters, in order of preference: ?[1] python3.7 ?[2] python3.6 ?[3] python2.7 (fallback) root@steamer:package.use # emerge --search dev-lang/python; [ Results for search key : dev-lang/python ] Searching... * dev-lang/python ?Latest version available: 3.10.0_alpha4 ?Latest version installed: 3.9.0_beta1 Size of files: 18,279 KiB Homepage: https://www.python.org/ Description: An interpreted, interactive, object-oriented programming language License: PSF-2 Q: If you have a working Gentoo system, what version of python do you have installed? What does eselect show you? What are you using for PYTHON_TARGETS & PYTHON_TARGETS? Thank you. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Anyone have experience, good or bad, with s6?
> You mean [ init system sys-apps/s6 ] ? It is still been marked > test yellow > > flag. I think most of users are using openrc and systemd, > Be carefull > > to use it, seems maybe no enough support to solve problems. It's supported pretty well at s6, from what I've seen. Basic idea makes sense: Avoids systemd's overboard approach, does solve issues with pidfiles and logic races. I've written similar things for Docker so the basic idea seems workable. Not sure if I've missed anything in their description that makes it hell to actually use, however :-) -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] Anyone have experience, good or bad, with s6?
Seems like a reasonable idea, wondering if anyone has seen particularly good or bad results from trying to use it (on gentoo or anything else). Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] Going through these one by one.
Based on: 2020-04-22 Python 3.7 to become the default target I'd have thought that using: PYTHON_TARGETS="python2_7 python3_7" PYTHON_SINGLE_TARGET="python3_7" and emerge --depclean; emerge -1vUD @world; emerge --depclean; should have updated my system. I'd done a fairly recent "emerge @world" and it completed so I'd have thought that everything was up to date. The depclean step gave me: * Have you forgotten to do a complete update prior to depclean? The * most comprehensive command for this purpose is as follows: * * emerge --update --newuse --deep --with-bdeps=y @world At this point pretty much anything I update runs into: !!! All ebuilds that could satisfy "sys-apps/portage[python_targets_python2_7(-),python_targets_python3_6(-),-python_single_target_python2_7(-),-python_single_target_python3_5(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]" have been masked. !!! One of the following masked packages is required to complete your request: - sys-apps/portage-::gentoo (masked by: missing keyword) -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] elogind conversion, loginctl user-status fails.
On Tue, 27 Oct 2020 15:31:22 + Michael wrote: > loginctl should look into the directory '/run/systemd/sessions/' > # ls -la /run/systemd/sessions/ > total 8 > drwxr-xr-x 2 root root 120 Oct 27 12:31 . > drwxr-xr-x 7 root root 140 Oct 27 12:11 .. > -rw-r--r-- 1 root root 276 Oct 27 12:31 2 Hmmm... # ls -al /run/systemd/sessions/ total 0 drwxr-xr-x 2 root root 40 Nov 19 11:57 . drwxr-xr-x 6 root root 120 Nov 19 11:57 .. i.e., nada. $ ps aux | grep login; root 22153 0.0 0.0 3680 2260 ? S 11:57 0:00 elogind-daemon i.e., elogin is out there, just not creating the session data? I don't use a graphical login, just command line. Don't know if that makes a difference. I've noticed that booting a runtime system w/ systemd & graphical login has no problems logging me in; running xinit from the command line is where I run into tty permission issues. That may be a symptom of something not right here also. > I don't know of any documentation to point you towards. It could be > a permissions problem, in the first instance I would start with > /run/systemd/ sessions/ which should be owned by root. > > PS. If you converted your system to run with elogind recently, did > you set up the requisite USE flag and re-emerged @world with > '--newuse'? $ grep login /etc/portage/make.conf; USE="... elogind -consolekit -systemd"; After that I simply did an "emerge @world" (gcc had been updated, etc, seemed like a nice time to sync it all up). At this point I no longer can due to python issues, but the world we re-emerged at that time. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] elogind conversion, loginctl user-status fails.
One more elogind update question: $ loginctl user-status; Could not get properties: is a directory Q: Anyone have any idea of what item might be a directory? strace doesn't show me anything obvious (which doesn't always mean anything). <https://pastebin.com/78F14s8P> Q: Is there any documentation anyone knows about that describes this error? Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] Q: Where does elogind get "--keeptty" set?
After conversion to elogind I cannot start X11. I've re-emerged PAM, though the ._cfg_system-auth tried to remove elogind.so, oddly enough. At this point my Xorg.0.log includes: systemd-elogind: Logind integration requires -keeptty and -keeptty was not provided, disabling elogind integration. Looking for -keeptty I find: <https://bugs.gentoo.org/599470> I found 74 packages installed on my system with at least one systemd reference in them. Most only install service files. Some make use of systemd-journal. Only 10 make use of libsystemd-login, and I have now submitted all of them but x11-base/xorg-server. The latter has to be started with "-keeptty" to add systemd-login/elogind integration, and that argument is strictly for debugging. Q: Any suggestions as to where or how I might avoid this or supply -keeptty? thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] X11 fails to start up after elogind emerge
On Fri, 23 Oct 2020 13:48:53 +0200 netfab wrote: > Try to reemerge sys-libs/pam and sys-auth/pambase, and update any > pam-related configuration : > > https://forums.gentoo.org/viewtopic-t-1116632.html Checking /etc/pam.d/system-auth: authrequiredpam_env.so authrequiredpam_unix.so try_first_pass likeauth nullok authoptionalpam_permit.so authrequiredpam_faillock.so preauth authsufficient pam_unix.so nullok try_first_pass auth[default=die] pam_faillock.so authfail account requiredpam_unix.so account optionalpam_permit.so account requiredpam_faillock.so passwordrequiredpam_passwdqc.so config=/etc/security/passwdqc.conf passwordrequiredpam_unix.so try_first_pass use_authtok nullok sha512 shadow passwordoptionalpam_permit.so -sessionoptionalpam_libcap.so session requiredpam_limits.so session requiredpam_env.so session requiredpam_unix.so session optionalpam_permit.so -sessionoptionalpam_elogind.so it is there, I don't think the posisiton (last) is an issue. dbus & elogind are both running: $ ps aux | grep dbus message+ 1294 0.0 0.0 3952 2376 ?Ss 09:19 0:00 /usr/bin/dbus-daemon --system root 1323 0.0 0.0 3880 3136 ?S09:19 0:00 elogind-daemon One odd thing: If I log in with ssh in then "loginctl list" shows my session as: SESSION UID USER SEAT TTY c2 1024 lembark pts/0 i.e., allocated pts but no "seat". It does not show anything for the console logins via root or my userid. Running "loginctl list" as myself or su gets nothing with only console logins. The problem may be here: # loginctl user-status; Could not get properties: Is a directory. Q: Anyone know what the path checked for user-status would be? Looking at the strace output everything opened was ENOENT or a symlink/file (vs. directory) (see paste, below). Running "loginctl user-status" in a session opened by ssh gets me: $ loginctl user-status; lembark (1024) Since: Mon 2020-10-26 09:45:43 CDT; 7s ago State: active Sessions: *c3 Linger: no Unit: user-1024.slice (ins)lembark@duke:~ $ logind seems to be running, just not for console sessins Any suggestions appreciated. emerge-info:<https://pastebin.com/KuGDsWBL> Xorg.0.log: <https://pastebin.com/1b0Wn1D0> strace loginctl:<https://pastebin.com/78F14s8P> -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
[gentoo-user] X11 fails to start up after elogind emerge
Starting with: <2020-04-14 Desktop profile switching USE default to elogind> <https://www.gentoo.org/support/news-items/2020-06-24-xorg-server-dropping-default-suid.html> I've updated my USE with: elogind -consolekit -systemd Did an "emerge --update --changed-use @world", rebooted, logged in, had problems starting X11, did an "emerge @x11-module-rebuild", reboot, login, failed starting X11, did an "emerge @world" [which succeeded, strangely enough], reboot, login, failed starting X11. At this point I reboot, log in and validate the elogind but get: $ logincel user-status; Could not get properties: Is a directory Using strace shows the last open was looking at /proc/self/stat, which most definately is a file. The last thing logind was doing is a ppoll & recvmsg with the nastygram: <https://pastebin.com/vZzWCHKL> Another thing is that using "startx", Xorg.log includes the line: systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration. Not sure if this is related to the properties error or something else blowing up. emerge --info: <https://pastebin.com/Y0FVLLve> emerge --verbose --info: <https://pastebin.com/LDfH4wz5> Running startx as SU does not solve the issue, the user is already in tty and input groups (i.e., has access to /dev/tty* and /dev/input/{event,mouse}*). Q: Any suggestions on what I might do to get X11 starting again? Thanks -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Local mail server
Dovecot works well enough, catch is that it has some security issues. My fix is to have it run on localhost and ssh tunnel local ports into 143 & 25 on the in-house server. At that point postfix + dovecot work fine for me. -- Steven Lembark Workhorse Computing lemb...@wrkhors.com +1 888 359 3508
Re: [OBORONA-SPAM] Re: [gentoo-user] Is Gentoo dead?
> portage must be in C and statically linked. Seems to argue in favor of a statically-linked dynamic language: The runtime compiler can be static with install scripts being a bit more malleable. Main issue I can see with C is that most people today don't know how to manage memory; not enough of us left who really understand how malloc works :-) -- Steven Lembark 5725 Aylesboro Ave Workhorse ComputingPittsburgh PA 15217 lemb...@wrkhors.com+1 888 359 3508
Re: [gentoo-user] Gentoo Tinderboxes?
> Is there any kind of QA tool that normal end users can contribute CPU > cycles to? Given the massive combinatorial explosion of package > configurations that can be installed using Gentoo, one might imagine > that there's some value in simply installing programs with different > USE combinations and running the self-tests for those programs. The Perl community has had CPAN::Reporter for a while and a set of smoke-test machines that run it. Normal Perl installs run "make test" as part of the normal install, the reporter feeds back test results to the authors -- I get a daily report of what failed and where. The smoke-test servers run CPAN::Reporter on whatever gets checked in each day. In today's world it's rather easy to set this up with docker, using Gentoo and some temp volumes (e.g., example using Gentoo for smoke- testing CPAN: https://www.slideshare.net/lembark/smoking-docker). Adding a Reporter-ish layer to a new version of Portage or a smoke- testing option that does a "emerge --install" into a temp layer in Docker, reports the outcome, and discards the results shouldn't be all that hard. I'd be happy to work on something like this. -- Steven Lembark 5725 Aylesboro Ave Workhorse ComputingPittsburgh PA 15217 lemb...@wrkhors.com+1 888 359 3508
Re: [gentoo-user] Is Gentoo dead?
On Tue, 21 Apr 2020 22:01:45 +0300 Consus wrote: > Yeah, mgorny likes to do some provocative stuff like forking Portage. Why the hell not? Once you have a source-based distro the package manager can be a matter of choice also -- so long as it accepts the existing package constructs as input. As pointed out earlier, Gentoo hasn't forked often, it's configurable enough that noone needs to fork it to have the results meet their needs. Pretty much the only thing we all have to have in common is the portage source packages; after that there could easily be mutliple installers. If you use an offball product you'd have to rely on whomever hacked it to get support -- vs. hitting up the usual gentoo list for help -- but if satisfies your needs using "frobnicate install..." why would having second package manager be all that bad? -- Steven Lembark 5725 Aylesboro Ave Workhorse ComputingPittsburgh PA 15217 lemb...@wrkhors.com+1 888 359 3508
Re: [gentoo-user] Is Gentoo dead?
On Tue, 21 Apr 2020 20:49:42 -0500 Dale wrote: Aside: > It made one glad that > they could only use keyboards instead of dueling pistols. Then they > created moderators with people to enforce some rules. It got better. > Actually, a lot better. Still, every once in a while, someone feels > someone else's foot on their toes and it gets a little tense. Q: What part of the entirety of human history have you *not* described? Put it another way: Q: Why should anyone ever expect Gentoo to somehow not reflect the fact that H. Sapiens are its perpetrators? -- Steven Lembark 5725 Aylesboro Ave Workhorse ComputingPittsburgh PA 15217 lemb...@wrkhors.com+1 888 359 3508
Re: [gentoo-user] Is Gentoo dead?
> Still you have to manually configure things. And I know that Gentoo is > about choice, but configuring kernel is hard. Actually, it's less difficult than finding out half-way through a three-day execution cycle that you have the wrong kernel config. "make menuconfig" is blindingly simple on its own. Discovering which hardware your machine actally has is difficult, which drivers are appropriate can be a True Pain (tm); but actually configuring the kernel is blindingly easy -- if admittedly rahter boring [I've found a moderate quantity of decent beer helps the process along quite nicely]. Q: What is it about configuring a kernel that you are finding most difficult? I may be able to provide some poitners to simplify it. -- Steven Lembark 5725 Aylesboro Ave Workhorse ComputingPittsburgh PA 15217 lemb...@wrkhors.com+1 888 359 3508
Re: [gentoo-user] scanner problem
> Since then, I've updated my kernel & some other pkgs. You build your own kernel or rely on modules to handle it all? Any idea what modules you've rebuilt since the last use of the scanner? As a sanity check you might want to take a look at VueScan. Hamerick does a nice to of just making things work. Might give some better error messages -- it's also a nice package, worth a few bucks to have something that Just Works and also helps support someone who actually releases software for Linux. Depending on which syslogger you use, create /var/log/debug with debug-level output (no idea how to do this with systemd), zero the log, and tail -f it while you plug in the scanner, try to use it. I normally keep /var/log/messages w/ *.info, auth.none and have logrotate switch it out frequently (daily) at 1MiB. You only need it once to make it worth the disk space :-) Try: ( strace sane /var/tmp/sane.strace.out 2>&1; and see what it's trying to open when it fails to get the file. It might not be the device itself that is botching the process but a secondary file that got stepped on. Try: find /etc -name '._cfg*'; any of them affect scanning, dbus, usb (anything else that might be used by sane)? -- Steven Lembark 1505 National Ave Workhorse Computing Rockford, IL 61103 lemb...@wrkhors.com+1 888 359 3508
[gentoo-user] Xen fails to build with gcc warnings as errors.
Q: Anyone seen a fix for this? Looking up the error hasn't gotten me anywhere. x86_64-pc-linux-gnu-gcc ... compat/arch-x86_32.c :0:0: error: "__OBJECT_FILE__" redefined [-Werror] :0:0: note: this is the location of the previous definition :0:0: error: "__OBJECT_LABEL__" redefined [-Werror] :0:0: note: this is the location of the previous definition cc1: all warnings being treated as errors Pointer to relevant doc or workaround would be appreciated. emerge --info & -pqv output: <https://pastebin.com/7QTYwT4r> build log: <https://pastebin.com/UMbpPDxJ> -- Steven Lembark 1505 National Ave Workhorse Computing Rockford, IL 61103 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Grub2 boot problem
On Mon, 5 Feb 2018 22:00:39 +0100 Magnus Johansson <gen...@rnd.se> wrote: From my grub.cfg: insmod gzio insmod part_msdos insmod diskfilter insmod mdraid1x insmod raid5rec insmod lvm insmod xfs Sanity check that you have all of the necessary modules installed (e.g., "mdraid*" "raid5rec"). -- Steven Lembark 1505 National Ave Workhorse Computing Rockford, IL 61103 lemb...@wrkhors.com+1 888 359 3508
[gentoo-user] Q: pp requires --uesr option t hat doesn't exist?
This should have been simple: Install AWS client command line tools. Catch: Installing it with AWS' example tells me to use the "--user" option, though not why, and supplying --user with or without an argument tells me there is no such switch. I'd prefer not maintaining this stuff as SU, rather set up a group with access to the necessary libarary areas in Python. $ pip install awscli ERROR: (Gentoo) Please run pip with the --user option to avoid breaking python-exec $ pip --user install awscli Usage: pip [options] no such option: --user $ pip --user=lembark install awscli Usage: pip [options] no such option: --user Examining the output from "pip --help" gives me lots of no "--user" in the output, which makes sense if there are no users. Using "--verbose" didn't tell me anything useful either. Say I want users in the "adm" group to maintain the Python libs, I'll need to ( find | xargs chgrp adm; find -type d | xargs chmod 02775; find -type f | xargs chmod g+w ). Q: Whare are the python lib's stored? Python itself only tells me: $ python -V Python 3.4.5 not the paths. Or, for that matter, does anyone know how to avoid the "--user" requirement using pip? thanks -- Steven Lembark 1505 National Ave Workhorse Computing Rockford, IL 61103 lemb...@wrkhors.com+1 888 359 3508
Re: [gentoo-user] LVM not accessible after reboot
On Mon, 10 Aug 2015 13:06:55 +0200 Marko Weber | 8000 we...@zbfmail.de wrote: Are the partitions typed as raid auto-detect (fd)? Or are you expecting an initrd to assemble the RAID from config data? May be an issue with timing in the initrd if the latter. Also try making sure that all of the components required to access the boot volume are compiled into the kernel (e.g., drivers, RAID, LVM, filesystem). This avoids dependency timing issues pulling in the modules. Might be worth using unetbootin to put a minimal install image onto a thumb drive and see whether the kernel is reliably building the RAID for you. If booting the install consistently shows your RAID built at boot time then the problem is either in your kernel configs or LVM. If nothing else, having the thumb around makes dealing with hardware failures a helluva lot easier. -- Steven Lembark 3646 Flora Pl Workhorse Computing St Louis, MO 63110 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Re: grub-2 update
Solution that works for me: - Compile the kernel with everything built-in leaving modules for the few things that really need to be reloadable. Turn everything in the bloody thing off. This avoids the need for a kernel-specific filestem in the initrd. - This since you don't need any modules in the initrd a simple, static solution with busybox and init something like: #!/bin/busybox sh /bin/busybox --install -s; sync; mount -t proc none /proc; mount -t sysfs none /sys; /sbin/mdadm --verbose --assemble --scan; /sbin/vgscan--verbose; /sbin/vgchange --verbose -a y /dev/vg00/root; mount /dev/vg00/root /mnt/root; mount; exec /sbin/switch_root /mnt/root /sbin/init; Add whatever you need for encryped filesytems, but it won't have to change over time unless you change the boot requirements. Add a copy of busybox, switch_root, init, a static copy of lvm into something like /boot/standard-init.cpio.gz. Mine is in /usr/src/initrd with two sub's standard and rescue differing only in the init script. A second initrd the last line commented out as /boot/rescue-init.cpio.gz for cases where switch_root gets unhappy. #!/bin/bash --login cd $(dirname $0); for i in */init; do dir=$(dirname $i); name=$(basename $dir); ( cd $dir; kleenfilz; find . | cpio -o -Hnewc | gzip -9v /boot/$name.cpio.gz) done wait; ls -lt /boot; exit 0; builds and installs the initrd's easily enough (kleenfilz is a shell sub that removes editor cruft, no reason to leave *~ files :-). - Add /etc/grub.d/09_custom (i.e., into the config *before* the junk that 10 adds in) like the one below. Note that this uses the symlink /boot/vmlinuz with the static init. The current portion comes from a second vmlinuz.stable symlink I curate manually to the last kernel that lived for a while and never, ever caused problems [not that I've ever botched a config siwtch. no, really...]. The standard link and fixed init-script allow a static copy of the grub config file with /boot/vmlinuz and /boot/standard.cpio.gz hardwired. #!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry 'current standard' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e18157fe-1330-4cbb-8374-125d9c26e360' { load_video if [ x$grub_platform = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_msdos insmod xfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 e18157fe-1330-4cbb-8374-125d9c26e360 else search --no-floppy --fs-uuid --set=root e18157fe-1330-4cbb-8374-125d9c26e360 fi echo'Loading Linux ...' linux /boot/vmlinuz root=/dev/sdc1 ro echo'Loading initrd ...' initrd /boot/standard.cpio.gz } menuentry 'current rescue' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e18157fe-1330-4cbb-8374-125d9c26e360' { load_video if [ x$grub_platform = xefi ]; then set gfxpayload=keep fi insmod gzio insmod part_msdos insmod xfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 e18157fe-1330-4cbb-8374-125d9c26e360 else search --no-floppy --fs-uuid --set=root e18157fe-1330-4cbb-8374-125d9c26e360 fi echo'Loading Linux ...' linux /boot/vmlinuz root=/dev/sdc1 ro echo'Loading initrd ...' initrd /boot/rescue.cpio.gz } - Run grub2-mkconfig once. - Never touch the grub.cfg file ever again (unless you switch the boot filesystem type). If I went from XFS - btrfs for the root filesystem I'd have to hack the insmod xfs entries, nothing more. -- Steven Lembark 3646 Flora Pl Workhorse Computing St Louis, MO 63110 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Any UPS recommendations?
On Tue, 8 Jan 2013 08:01:47 -0500 Walter Dnes waltd...@waltdnes.org wrote: I think my UPS is dying. Time to get a new one. It's been years, so there may be new tech out there I don't know about. My normal usage is * 1 LCD monitor 24 * 1 (sometimes 2) desktop PCs connected to the monitor * 1 ADSL router/modem What brand and VA rating would people recommend. The stuff I'm concerned about is he 2 or 3 times a year I get power flickers, or a short outage. And also, if power is out for more than 5 minutes, and the battery is running low, I want the PC to be able to sense that and execute /usr/sbin/hibernate I've had good luck with Refurbished UPS http://www.refurbups.com. They rebuild APC units, have decent prices with full warranty. Short of a full outage, a line conditioner works equall well (APC makes several good dones, 1250VA being more than enough for most PC's). After that you can get a Smart UPS, which is basically a line conditioner and a battery in one box. This solves your flicker problems. A Smart-UPS 750 will probably handle anything you need for a desktop and L[CE]D screen, for two of them you can get a 1.5KVA that will give you plenty of time for shutdown even with two machines. For a home unit, your best bet is to size the thing for a reasonable shutdown period rather than try to keep everything running through a potential blackout. Reboots don't take that long and the cost+overhead of running an oversize unit adds up. You have a different calculation for servers or racks, where uptime is more of an issue. The bigger ones also weigh a helluva lot more, which doesn't sound like anything until you break a desk or warp some shelves unnecessarly :-) -- Steven Lembark 3646 Flora Pl Workhorse Computing St Louis, MO 63110 lemb...@wrkhors.com+1 888 359 3508
Re: [gentoo-user] umask 002 in /etc/profile
What with usergroups being the default behavior, do you think it's quite reasonable to use 002 as a default umask? Most group-sharing use-cases I've encountered have people that are sharing groups share files as read-write anyways, and by default, users have their own private group which nobody else is a member of; i.e. g+rw still won't allow others to write them. That was the idea, RH did it that way a dozen years ago for exactly the reason you mention: dir mods of 02770 make it easy to share files but require 002 umask. Fix was to set the per-user group, allowing private dir's (largely $HOME) to have tighter mods with files below them group readable by a single-user group. The scheme works rather nicely in nearly every situation (POSIX ACL's play hell with the scheme, but, then, they are supposed to). enjoi -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Grep question
Adam Carter wrote: I need to select all the lines between string1 and string2 in a file. String1 exists on an entire line by itself and string2 will be at the start of a line. What's the syntax? I cant use -A as there is a variable number of lines. Perl will handle this easily enough for you. Assuming you want to print string1 and string2: perl -n -e 'print if /string1/ ../string2/'; The '..' notation behaves sort of like a triac (flip-flop?): it is false until the first test is true and true until the second passes, at which point it stays false again. for example: $ cat a abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd foo -- /foo/ true here asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf bar -- /bar/ true here fdsa fdsa fdsa $ perl -n -e 'print if /foo/ .. /bar/'; foo asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf bar -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] When did bzImage move?
But that would only allow you to have two kernels laying around. Right now I have these: r...@smoker / # ls /boot/bzImage-2* -rw-r--r-- 1 root root 2355440 Jan 31 18:52 /boot/bzImage-2-28-r8-1 -rw-r--r-- 1 root root 2460088 Jan 2 20:13 /boot/bzImage-2.6.23-r8-7 -rw-r--r-- 1 root root 2288336 Dec 30 07:49 /boot/bzImage-2.6.27-r7-1 In the general config you can add a suffix. I use a two-letter extension that goes up with each installed version on the specific machine (never reached past 26**2 but I could go to three letters). That leaves you with bzImage-2.6.27.aa, bzImage-2.6.27.ab, bzImage-2.6.28.ac, etc. At that point you can either put them all into your menu.lst or just hack the command line in grub to get an older kernel. Q: How often do you really need to go back more than one kernel? If you have one especially clean, stable kernel for disaster recovery just name it stable and have two hard-wired entries for the vmlinuz and 'stable'. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Re: Gentoo's advantage: optimized for your system -- huh?
A downside is that you'll need fast machines to comfortably build packages. I wouldn't use it on my Pentium 3 800Mhz for example. That would take ages to compile system/world with recent GCC versions. I guess GCC was much faster in the 2.x versions back then? How painful is it, really, to run the job when you are asleep or away from the machine? Cron the update or use at to get the changes you want when you are away from the console. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Gentoo's advantage: optimized for your system -- huh?
Where did that bit of apocrypha come from, and why is it parroted by so many people? snip Depending on what you do with the system it still can be quite true. For example, there is a known bug in the RH distro of Perl that leaves it running 10x slower than a locally compiled version. There are also quite a few packages that still come compiled with '-g', or depend on 15 shared object lib's that you don't use but now cannot turn off. If you are trying to squeeze performance out of a box then any kind of cruft will slow you down. You can also look at library-dependency hell as a form of performance hit: if you spend X hours trying to work around the library glitches it's that much dead time on the box you aren't using. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Tips/Tricks for Gentoo on low-spec computer?
I'm in the process of installing Gentoo on a rather old machine. It's an old HP Pavilion with a 450MHz Celeron Mendocino and 256MB of PC133 SDRAM. I'm using an nVidia PCI FX6200 video board instead of the i810 on-board chip, and it's got a decent hard drive (160GB). I was wondering if there were any particular tips/tricks for getting the best performance out of such a machine. It's to be used for basic word processing and a few games. Hopefully the nVidia 6200 will allow OpenGL to run fast enough for something like TuxRacer. I chose XFCE for the desktop along with both Abiword and OpenOffice. I probably should have installed OOo from a binary package, but I decided to build it just to see how long it would take (so far it's at about 26 hours and counting). Fvwm is lightweight. Make a point of compiling the kernel without anything you don't need; if you might need something then make it a module. Don't run daemon's you don't really need. For example, log into the command line and use startx or xinit rather than having the thing boot into an X11 login. Use a large amount of swap compared to ram (with your drive maybe 2G) and avoid tmpfs for working storage. If all you're using the thing for is surfing or basic development then it should work fine. The old standard for using X11 was a minimum 12MB of core and 40MB disk. For a long time that was difficult, then IDE came along and big disks got cheaper :-) -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Tips/Tricks for Gentoo on low-spec computer?
I believe he means that generally speaking, trying to build OO from source on a low-end (and especially low RAM) machine is ill-advised and can often be the cause of build failures as OO is well known to require a lot of RAM and hdd space while it compiles. He has plenty of disk. It may use a lot of virtual memory, but with sufficient swap it will [eventually] get done. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Tips/Tricks for Gentoo on low-spec computer?
OK folks, all have a seat please. I ran a full blown KDE on a 133Mhz machine with 256Mbs of ram. A friend if mine played Solitaire on it and it worked well. It even had sound on it. I started running fvwm on a 486 w/ 16MB of core and a pair of 20MB disk drives (one RLL one MFM). Face it: we've all become addicted to amounts of RAM that didn't even exist on the planet 25 years ago, let alone disk :-) -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Any good instructions for creating a Live CD?
In Google Books I found something called Linux Live CDs:Building and Customizing Bootables. It had the following link which is dead. Did it move somewhere? I cannot find it yet. The book does a decent job of describing how to use gentookit to get a working CD -- they worked for me. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] Re: Why isn't sshd blocking repeated failed login attempts?
How can I accomplish this?: Use a non-standard port for yourself (e.g., , 34567). A port entry in your .ssh/config will handle that. With that back door you can set up any remaining rules on port 22. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lemb...@wrkhors.com +1 888 359 3508
Re: [gentoo-user] [OT] suggest not-net-hungry Linux
Gentoo is only net-hungry on the install and on updates.If you can do the install before he goes net-free, then your fine, glsa-check should cover you for the updates I would assume that in most cases source tarballs will be smaller than binaries to download too :) If you can download the runtime image + portage beforehand onto a thumb drive or DVD's the Gentoo install isn't even all that net hungry. You might find that Damn Small Linux is, well, damn small and doesn't take that much bandwidth to download. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508
Re: [gentoo-user] Non-case sensitive alphabetical sorting
Mark David Dumlao wrote: When ordering items by name, a separate and distinct sequence is scene for A-Z before the sequence for a-z. This is the expected behavior. What might i need to look up to intermix [Aa]-[Zz]? Schwartzian Transform is the perlish version of a technique from LISP: create a compound structure with the output as payload: my @sorted = map { $_-[-1] } sort { $a-[0] cmp $b-[0] } map { my $sortval = uc $_; [ $sortval, $_ ] } @unsorted_text; You can use the basic technique to sort anything (multi-level sorts, numeric, whatever). Same basic process works in other languages that support anon arrays or structs. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508
Re: [gentoo-user] Uwe Thiem
Mick wrote: On Wednesday 16 July 2008, Steven Lembark wrote: Uwe Thiem [Gentoo User 080119] : He hit the nail on the finger. Suggest adding that to fortune. The least we could do in his memory. May he rest in peace. He even did us the favor of providing a rather worthwhile quote. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508
Re: [gentoo-user] Uwe Thiem
Uwe Thiem [Gentoo User 080119] : He hit the nail on the finger. Suggest adding that to fortune. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] My last words on cryptology and cryptography.
I submit that brute forcing an AES key of reasonably length is currently impossible in an amount of time that would matter to the human race. On average yes. As already pointed out, however, there is nothing to prevent the first guess from matching a key and cracking one particular example of the cipher in 0.0001 seconds. Therefore, brute forcing an AES key of any length is quite possible, even if it is unlikely. q.e.d. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Oddity installing 2007.0 amd64 onto shuttle w/ athlon64
If it's a newer chipset, it might be worth trying the 2008.0 beta to do the install... Always one more gotcha :-) Now that the b2 is out for x86_64 I guess it's worth a shot... that or building a bootable with the stock minimal CD and an updated kernel. Q: Have you ever tried assembling a new minimal CD? Seems like it wouldn't be all that difficult, just a matter of grafting the new kernel into place and burning it. thanx -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Oddity installing 2007.0 amd64 onto shuttle w/ athlon64
Steven Lembark wrote: Using install-amd64-minimal-2007.0.iso the thing boots and tells me the kernel is linux livecd 2.6.24-gentoo-r5 smp, i686 amd athlon 64 x2 dual core processor authentic AMD. Extracting the stage3 tarball from Partial answer: Installing from a mis-labeled x86 minimal install CD bypasses issues with mdev hanging Question now is why mdev would hang booting the amd64 minimal install... this may be due to the nVidia MCP67 controller chip; maybe not... -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: tar a brand new Gentoo install to a USB drive for safe keeping?
tar xvfp SYSTEM.tar.bz2 To extract bzip2 files with tar, you need to add the j option. That hasn't been needed for a long time. Tar is able to detect bzip2 and gzip compression and handle it automatically. That's only true for GNU tar. If you're also dealing with other systems where you might not have GNU tar, you might be surprised to find that tar xvf file.tgz doesn't work. Hence I think, that it is a good idea to keep on using z or j. Not all of them speak any squish factor, leaving: gzip -dc blah.tar.gz | tar xvf -; (or bzip/bzip2) as the most portable route. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] back up gentoo system
If you're using 'dd' does that mean you're copying the entire filesystem and not just the files? I believe that can run you into some issues if the FS isn't read-only... What kind of issues? The idea is to copy the whole filesystem to another disk and keep it sync. And in case of crisis use dd from the backup to the original disk. dd does no error checking and is not usually suitable for backups of any kind unless you validate the output. find / -xdev | cpio -ov, *dump, or mkisofs -R would all be better ways to store recovery data than dd. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Garbage in /tmp or /var/tmp
Due to disk space restrictions I've decided to make /tmp a symlink to /var/tmp instead of reserving space for both. Maybe it would have been wiser to make /tmp a symlink to a dedicated directory in /var/tmp but now it's too late. I'd suggest not symlinking /tmp since it is part of the system startup. If you want to reserve a single space just mount it under both /tmp and /var/tmp. That avoids issues with not having any tmp space at all (or symlink /var/tmp - /tmp if you want to use a symlink). -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Garbage in /tmp or /var/tmp
Volker Armin Hemmann wrote: On Sonntag, 13. April 2008, Neil Bothwick wrote: On Sun, 13 Apr 2008 18:38:31 +0200, Florian Philipp wrote: Due to disk space restrictions I've decided to make /tmp a symlink to /var/tmp instead of reserving space for both. Why not use tmpfs for /tmp? It usually requires very little space, and will use swap if memory is tight. I second that, tmpfs for /tmp is great: tmpfs 512M 12K 512M 1% /tmp Catch: You loose it all on reboot. Since things like vi keep their in-work backups there, loosing the entire contents of /tmp after a crash can be painful. If you can redirect anything making in-work copies to, say, /scratch or ~ then this works nicely (given that you have enough core not to strangle on it). -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: Emergency shutdown, how to?
I agree that your script is nice and simple, and hence less prone to errors. I coded mine in c++ because I use it not only for a machine type watchdog, but also a task based watchdog that reboots the machine based on certain tasks living or not. Each task has to register with the watchdog server and continually tell the server they're alive, or reboot! But that's a story for another thread... #!/path/to/perl use strict; use Sys::Syslog; open my $fh, '', '/dev/watchdog' or die /dev/watchdog: $!; # if any of these go away we need to notice it. # ok... you'll notice the first one anyway. my @watchz = qw ( init ntpd apache /opt/sybase/ASE-12_5/bin/dataserver ); # wd timeout / 2, or 1 for minimum sleep # (avoid usleep: too much overhead). my $cycle = 15; # get the syslog handle openlog blah blah blah or die 'Et tu, syslog?'; CYCLE: for(;;) { sleep ( $cycle - ( time % $cycle ) ); # split and args vary by O/S, this works on linux. my @procz = map { split /\s+/, $_, 6 )[5] } qx( ps a ); my %chechz = (); @chechz{ @watchz } = (); delete @chechz{ @procz }; if( %chechz ) { # oops, current proc's don't include the # list of processes being watched. # # this can happen twice in a w/d interval # before the system goes down. my $nastygram = join \t, 'Missing proc's:', join \t, keys %chechz syslog LOG_CRIT | LOG_FOO, $nastygram; next CYCLE # alternative here is to close $fh here and # bounce the system immediately, the # approach of looping allows an # intentional restart of the service # (in less than 1 w/d cycle) w/o bouncing the box. } # if the proc check got this far then the w/d # file gets poked and we live for another loop. print $wd \n; } # this isn't a module 0 __END__ -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: Emergency shutdown, how to?
Iain Buchanan wrote: On Sat, 2008-04-05 at 12:42 -0400, Steven Lembark wrote: I tried ALT + SysRq + EISUB today on my MythTV backend server which has been crashing lately. Unfortunately it's crashing so badly that even at the server's keyboard this didn't work. I guess my weekend fate of building a new server is sealed... Have fun. Check out motherboards with watchdog capability and enable it in the kernel. watchdogs are nice, and linux makes them ultra-easy to program, but of course if your watchdog task dies, then the machine effectively hits the reset button for you - no nice shutdown whatsoever! (Which is what you want in a hard lock-up, but not if your programming skills are the cause of the problem :) - Have the system turn off the watchdog if the file is closed. - After that just open it and poke a bit out now and then. - Make a point of closing the file on exit. #!/usr/bin/perl use strict; open my $fh, '', '/path/to/watchdog/file' or die Failed opening watchdog file: $!; # watchdog is now watching... select $fh; for(;;) { print \n; sleep 1;# watchdog timeout / 2 } my $graceful_exit = sub { close $fh; exit 0 }; for sig in ( qw( TERM QUIT INT __DIE__ ) ) { $SIG{ $sig }= $graceful_exit; } for sig in ( qw( HUP ) ) { $SIG{ $SIG }= 'IGNORE'; } __END__ -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Emergency shutdown, how to?
Main thing that speeds up the AMD box is using 320MB scsi's for near-term storage. They are hugely faster than [S]ATA or IDE used on most equipment these days. what R/W speeds can you expect? Operations on SCSI run 2-3 times faster for large-ish file transfers (say 1MB or more). For example GIMP runs without noticeable pauses on most operations with my 2GHz opteron using the SCSI's as storage and scratch space; on the same machine with the SATA's it bogs down to the point of annoyance, with things like saves taking seconds to complete. The only difference being which drives I'm using for tiles and data. Bonnie gets upset validating the scsi space on this box since it has 8GB of core and I don't have 16GB free on the device so I can't give you any specific numbers. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: Emergency shutdown, how to?
I tried ALT + SysRq + EISUB today on my MythTV backend server which has been crashing lately. Unfortunately it's crashing so badly that even at the server's keyboard this didn't work. I guess my weekend fate of building a new server is sealed... Have fun. Check out motherboards with watchdog capability and enable it in the kernel. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Emergency shutdown, how to?
Dale wrote: Steven Lembark wrote: Well, this one takes longer. Just the foldingathome takes about 20 seconds or more to shutdown. It can take over 60 seconds at times. That service for some reason has to completely shutdown before the others start to shutdown. The others will shutdown in parallel like I have set up. Then there is all the other services that have to stop. Quite literally, I only had seconds to shutdown since the P/S was stinking like a skunk. I just needed to umnount the file systems and power off as fast as possible. I didn't want to just pull the plug but I needed a shutdown that fast. Hackint the shutdowns to background the shutdown op and return is usually pretty simple -- don't know why more app's don't do that by default. 'halt' will get you down with little typing if you want to bypass the init scripts; so will kill -TERM 1. Add a 'sync' before either of them and you'll probably be able to come up with minimal trouble. What's the difference between halt command and shutdown? I thought they were basically the same thing. Also, in case you missed it. I have a service, foldingathome, that takes a while to stop and no other service can be stopped in parallel with this one. That is one of my key sticking points with the shutdown. Most of the others are pretty fast. I just needed the quickest *clean* shutdown I could get. Thanks I have four FAH jobs running on my compute server. I can kill -TERM fah6 in about 0.70 sec here, they start up again and just keep going. FAH is pretty robust when it comes to restarts; again if you crash the proc's then it won't be any worse than the outcome of loosing power: FAH will have to pick up its pieces and keep going. At least with halt -f you'll get the kernel space cleaned up. Halt will stop the O/S (see note from manpage, below). In this case a 'halt -f' would get the system down about as quickly as possible without just hitting the reset button. NOTES Under older sysvinit releases , reboot and halt should never be called directly. From release 2.74 on halt and reboot invoke shutdown(8) if the system is not in runlevel 0 or 6. This means that if halt or reboot cannot find out the current runlevel (for example, when /var/run/utmp hasn't been initialized correctly) shutdown will be called, which might not be what you want. Use the -f flag if you want to do a hard halt or reboot. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Emergency shutdown, how to?
In most cases you'll find that 'shutdown -h now' takes only a few seconds. you must have nice hardware :) He must have. I have a AMD 2500+ CPU with 1Gb of ram. It's not the slowest but not the fastest either. Pair of dual-PIII VA Linux machines, one compute server with twin dual-core opterons. Main thing that speeds up the AMD box is using 320MB scsi's for near-term storage. They are hugely faster than [S]ATA or IDE used on most equipment these days. -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Emergency shutdown, how to?
I learned a lot with this ordeal. One thing is that the P/S's protection circuit must have worked very well. My mobo is doing just fine so no damage outside of the P/S itself. I also learned that the halt -f -p command should be really fast if this happens again. Keep those thoughts coming. poweroff -f; NAME halt, reboot, poweroff - stop the system. SYNOPSIS /sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h] /sbin/reboot [-n] [-w] [-d] [-f] [-i] [-k] /sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h] -- Steven Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Emergency shutdown, how to?
Basically, this is not intended to be used to shutdown a puter on a regular basis, unless you burn out P/S's on a daily basis. O-o Just didn't want someone to be using this on a regular basis and then wondering why their system has a new nickname, FUBAR. :'( In most cases you'll find that 'shutdown -h now' takes only a few seconds. If you're typing againsed the clock and don't to it every day then the SysReq tecnhique is somewhat error prone. In most cases the stuff that can't handle a crash tends to live at higher runlevels anyway and gets stopped when you exit rl 3; stuff that gets started at boot time are more likely service daemons that can easily handle a reset. Even if your shutdown croaks halfway through the stuff, chances are that got shut down first was the most fragile anyway (e.g., databases that had to flush cache) and you got whatever you could cleaned up however fast you could do it and you live with the rest on restart. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Emergency shutdown, how to?
Well, this one takes longer. Just the foldingathome takes about 20 seconds or more to shutdown. It can take over 60 seconds at times. That service for some reason has to completely shutdown before the others start to shutdown. The others will shutdown in parallel like I have set up. Then there is all the other services that have to stop. Quite literally, I only had seconds to shutdown since the P/S was stinking like a skunk. I just needed to umnount the file systems and power off as fast as possible. I didn't want to just pull the plug but I needed a shutdown that fast. Hackint the shutdowns to background the shutdown op and return is usually pretty simple -- don't know why more app's don't do that by default. 'halt' will get you down with little typing if you want to bypass the init scripts; so will kill -TERM 1. Add a 'sync' before either of them and you'll probably be able to come up with minimal trouble. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: Re: Nvidia drivers
Maybe hell will also freeze over on that day. More likely pigs will floss... -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Emergency shutdown, how to?
Liviu Andronic wrote: On Fri, Mar 28, 2008 at 10:07 AM, Dale [EMAIL PROTECTED] wrote: By the way the safest and recommended command, although a bit longish should be ALT+SysRq(or print)+S(ync)+U(mount)+B(Reboot). Since I wanted to shutdown instead of reboot, it would be ALT + SysRq + S + U + O then correct? Are there any potential harms to the hardware / system in case one tends to abuse (i.e. use more often than necessary) of this command? It's so often so tempting to shut down your system fast. Short of a serious emergency (e.g., UPS with 30-sec lag and no input power) stick with 'shutdown -fh now'. The main problem is that you bypass the stop phase of all the app's started up via init.d; very little short of just hitting the reset switch or yanking the power. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Clone a running gentoo machine onto another machine
Now, correct me if I'm wrong, but I had read that if you don't copy the files in /dev, udev won't mount properly on the machine you're cloning to and all hell will break lose. Also, iirc, I believe I tarred a running machine (including /dev, excluding /sys) and the clone was successful. Any thoughts? One other way: mirror the boot/root/install devices (maybe a single partition). You can make, sync, and drop the mirror, install grub on the new mbr and have a clone of the system (basically you'd be in the same situaiton as if the primary drive of a mirrored setup croaked). -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Laptop keeps freezing
Grant wrote: My Gentoo laptop keeps freezing. It will stay up for about 30 minutes and then stop responding altogether. I've checked the logs but there is nothing informative there. I'm all up to date with packages. How do you troubleshoot something like this? There's a decent troubleshooting HOWTO on the wiki for stability. I'm not where I had it bookmarked but try to locate the thing and if you can't I'll send back the link. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
I am starting to wonder why am I so attached to my root password being strong.. :) Becuase I can crack a simple password from outside of the box. Hacking in w/ a CD or the init=blah approach requires physical access and a reboot, both of which are fairly noticable and preventable. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
If it is possible to have sufficient access to be able to remove the hard drive, then an encrypted filesystem is essential. Any computer that isn't nailed down behind a locked door should have this, unless it contains and has access to absolutely nothing of value. Which setup does anyone out there use for the encfs? -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
them. Things have indeed changed since 1978 Unless you include the time in 1972 that some of my friends broke into the computer room, hacked the PDP-11, and inserted Panther, Pink into every class in the highschool. They have remained hugely the same :-) -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
On the grub menu, edit the entry of the system you want to boot and on the kernel line, add init=/bin/bash without the quotes. Boot that modded boot instructions sequence. After kernel loads, you'll have a bash. Type: mount -o rw,remount / Make sure that your bash is statically linked, otherwise you can run into problems with this approach. It's acutally a good idea to keep a static bash and just put this into grub as the 'shell-init' or 'rgh' entry (it's in their example config). -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Recovering root password
It's probably better to use a shell designed for rescue work, like sash or busybox instead of bash, especially if /usr is on a separate filesystem. The statically linked bash acutally works rather well for this. The main advantage I've found using it for recovery situations is that I'm used to it: sourceing root's .bash_profile is enough to give a familiar environment. -- Steven Lembark +1 888 359 3508 Workhorse Computing 85-09 90th St [EMAIL PROTECTED] Woodhaven, NY 11421 -- gentoo-user@lists.gentoo.org mailing list