[gentoo-user] postfix: /etc/postfix/aliases or /etc/mail/aliases ?
I have an old log warning I want to clean up, and am assuming that the aliases and aliases.db file would typically be in the same directory. When the postfix service starts at boot; postfix/postalias[607]: fatal: open /etc/postfix/aliases.db: Read-only file system The location is currently configured in main.cf; # postconf alias_maps alias_maps = hash:/etc/postfix/aliases And looks like the installer puts the original alias file there too, so I assume my config is per the default config; # qlist postfix | grep aliases /etc/postfix/aliases But this; # grep aliases /lib/systemd/system/postfix.service ExecStartPre=-/usr/bin/newaliases ReadWritePaths=-/etc/mail/aliases.db Suggests that /etc/mail is the correct location, so i'm wondering if i missed an update to postfix.service. Can a postfix user please check their ReadWritePaths to see if it's /etc/mail/aliases.db or /etc/postfix/aliases.db ? Cheers.
Re: [gentoo-user] Re: Inquiry about gentoo kernel configuration
On Sun, 2021-07-11 at 21:17 +0800, Dongliang Mu wrote: > On Sun, Jul 11, 2021 at 1:54 AM Nikos Chantziaras > wrote: > > > > On 10/07/2021 12:15, Dongliang Mu wrote: > > > Hi Gentoo users, > > > > > > I am a newbie to Gentoo. For Debian, I can get configuration > > > files > > > from Debian packages. I wonder if possible to get the kernel > > > configuration files of Gentoo. > > > > You can use the one shipped in the sys-kernel/gentoo-kernel-bin > > package. > > > > Thanks. There is only a file - *.ebuild file in this package. From > the > package, I did not find out what .config file it uses. It seems this > script uses the config file of current system. > > > > sys-kernel/gentoo-kernel/gentoo-kernel-5.10.38.ebuild suggests that gentoo-kernel-bin is based off of fedora's kernel config. Hayley
Re: [gentoo-user] libbpf? BTF? blinking urxvt/fish?
On Sunday, July 11th, 2021 at 13:11, Nils Freydank wrote: > Hi caveman, > > you should really train your search skills :-P lel. more like train my cognition. > (1) Just searching for "libbpf" and then for "bpf BTF" gives plenty webpages > and > > links. In short: > > BPF: Berkeley packet filter, e.g.: > https://en.wikipedia.org/wiki/Berkeley_Packet_Filter > > libbpf: a library to use it, e.g.: https://github.com/libbpf/libbpf > > BPF Type Format (BTF) https://www.kernel.org/doc/html/v5.9/bpf/btf.html i did this before asking here, but didn't fully get it. wiki seems to say that it's for speeding up packer filtering by having apps supply a filtering program into the kernel, so that the whole thing is done inside the kernel for speed. but i also read elsewhere that it's being used to generally run any apps inside the kernel, ultimately making linux to slowly become into some kind of a micro-kernel design. didn't fully get it. but either way, this feature sort of freaks me. is it harming my security? how can i know which app is running its code inside my kernel? also, which apps would benefit from this? and why did i end up having it? e.g. any idea which app brought this feature? or did gentoo generally go to ship BTF by default? without any app needing it? > (2) "urxvt text blink ANSI": https://bbs.archlinux.org/viewtopic.php?id=150531 fixed it by enabling 24-bit-color USE flag.
Re: [gentoo-user] Inquiry about gentoo kernel configuration
Yes, but the image does not need to be up-to-date, since you only use it temporarily; everything else is done in a chroot environment. One thing to mention, though: The LiveDVD can be booted from UEFI, which you will need to finalise[2] the Gentoo installation on a UEFI system. As William already mentioned, you can boot from almost any Linux live media and install Gentoo[1] from there. -Ramon [1] https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation [2] See important note: https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Booting_the_installation_media On 11/07/2021 15:11, Dongliang Mu wrote: On Sun, Jul 11, 2021 at 1:23 AM Ramon Fischer wrote: In addition to this: I did some further research about this, since I actually never thought about getting the Kernel sources without having an installed Gentoo system: You may take a look at one of the HTTP mirrors[1], preferably one in your country and navigate to "/releases//". There you will find a Live DVD image - "livedvd-amd64-multilib-20160704.iso" for example - from which you could boot from; either virtually in VirtualBox or other virtualisation solutions or directly from hardware. Click on "Login" to login and get the Kernel sources from "/usr/src/linux/.config". Thanks for your effort. But it seems such livecd is not maintained anymore. The latest version is 20170118 [1], right? [1] http://mirrors.kernel.org/gentoo/releases/amd64/20170118/ -Ramon [1] https://www.gentoo.org/downloads/mirrors/ On 10/07/2021 14:24, William Kenworthy wrote: On 10/7/21 7:40 pm, Ramon Fischer wrote: Hello Dongliang, you could retrieve kernel configuration files from a "Minimal Installation CD"[1] of Gentoo. Mount it and look for "/boot/gentoo-config". But I guess, you want a untouched version, don't you? -Ramon Hi, to expand on this - Gentoo doesn't really have a standardised kernel config - the nearest to that is the above install CD, or the default generic catchall "genkernel" one - most people seem to manually configurate and tune/customise a .config and then copy it from system to system. There are a few bin(ary) kernels in portage/sys-kernel/* that might work for you but I have never tried them. You can boot almost any linux live media on your target hardware and extract the config (sysrescuecd is a good one) and use their sources, or build the kernel using their config on top of Gentoo's vanilla-sources, or gentoo-sources. Or grab another distros boot directory (containing the kernel, initrd and config files), the matching /lib/modules directory and boot that instead of building your own (I do this often on uboot based arm systems and raspberry pi's.) Or ask on the list if someone has a config that matches your target (occasionally it comes up). BillK [1] https://www.gentoo.org/downloads/ On 10/07/2021 11:15, Dongliang Mu wrote: Hi Gentoo users, I am a newbie to Gentoo. For Debian, I can get configuration files from Debian packages. I wonder if possible to get the kernel configuration files of Gentoo. If this question is invalid, please let me know. [1] http://ftp.debian.org/debian/pool/main/l/linux/linux-config-5.10_5.10.46-1_amd64.deb -- My best regards to you. No System Is Safe! Dongliang Mu -- GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF -- GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF OpenPGP_signature Description: OpenPGP digital signature
Re: [gentoo-user] Re: Inquiry about gentoo kernel configuration
Am Sonntag, den 11.07.2021 um 21:17:50 Uhr +0800 schrieb Dongliang Mu : > [...] > Thanks. There is only a file - *.ebuild file in this package. From the > package, I did not find out what .config file it uses. It seems this > script uses the config file of current system. Hi, look here: https://github.com/mgorny/gentoo-kernel-config In names of gentoo "packages" the -bin suffix indicates that it is a pre-built, binary package, so the maintainers use a configuration, build the kernel and upload everything as a binary package. Portage than installs the binary package when you would call 'emerge --ask gentoo-kernel-bin'. Some hints for reading ebuilds and finding stuff: The ebuilds are basically bash scripts, and to find functions called inside each ebuild you can search in the eclasses dir in https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass while you can find (most) of the eclass names from the line starting with 'inherit'. To find e.g. the link to the config I used the following workflow. Maybe it'll be of usage for you, too: https://packages.gentoo.org -> gentoo-kernel -> Git repository browser -> choose the package version -> link below: https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-kernel/gentoo-kernel/gentoo-kernel-5.12.15.ebuild#n20 Kind regards, Nils
Re: [gentoo-user] Re: Inquiry about gentoo kernel configuration
On Sun, Jul 11, 2021 at 1:54 AM Nikos Chantziaras wrote: > > On 10/07/2021 12:15, Dongliang Mu wrote: > > Hi Gentoo users, > > > > I am a newbie to Gentoo. For Debian, I can get configuration files > > from Debian packages. I wonder if possible to get the kernel > > configuration files of Gentoo. > > You can use the one shipped in the sys-kernel/gentoo-kernel-bin package. > Thanks. There is only a file - *.ebuild file in this package. From the package, I did not find out what .config file it uses. It seems this script uses the config file of current system. >
Re: [gentoo-user] Inquiry about gentoo kernel configuration
On Sun, Jul 11, 2021 at 1:23 AM Ramon Fischer wrote: > > In addition to this: > > I did some further research about this, since I actually never thought > about getting the Kernel sources without having an installed Gentoo system: > > You may take a look at one of the HTTP mirrors[1], preferably one in > your country and navigate to "/releases//". There you > will find a Live DVD image - "livedvd-amd64-multilib-20160704.iso" for > example - from which you could boot from; either virtually in VirtualBox > or other virtualisation solutions or directly from hardware. > > Click on "Login" to login and get the Kernel sources from > "/usr/src/linux/.config". Thanks for your effort. But it seems such livecd is not maintained anymore. The latest version is 20170118 [1], right? [1] http://mirrors.kernel.org/gentoo/releases/amd64/20170118/ > > -Ramon > > [1] https://www.gentoo.org/downloads/mirrors/ > > On 10/07/2021 14:24, William Kenworthy wrote: > > On 10/7/21 7:40 pm, Ramon Fischer wrote: > >> Hello Dongliang, > >> > >> you could retrieve kernel configuration files from a "Minimal > >> Installation CD"[1] of Gentoo. Mount it and look for > >> "/boot/gentoo-config". > >> > >> But I guess, you want a untouched version, don't you? > >> > >> -Ramon > > Hi, to expand on this - Gentoo doesn't really have a standardised kernel > > config - the nearest to that is the above install CD, or the default > > generic catchall "genkernel" one - most people seem to manually > > configurate and tune/customise a .config and then copy it from system to > > system. There are a few bin(ary) kernels in portage/sys-kernel/* that > > might work for you but I have never tried them. > > > > You can boot almost any linux live media on your target hardware and > > extract the config (sysrescuecd is a good one) and use their sources, or > > build the kernel using their config on top of Gentoo's vanilla-sources, > > or gentoo-sources. > > > > Or grab another distros boot directory (containing the kernel, initrd > > and config files), the matching /lib/modules directory and boot that > > instead of building your own (I do this often on uboot based arm systems > > and raspberry pi's.) > > > > Or ask on the list if someone has a config that matches your target > > (occasionally it comes up). > > > > BillK > > > > > > > > > >> [1] https://www.gentoo.org/downloads/ > >> > >> On 10/07/2021 11:15, Dongliang Mu wrote: > >>> Hi Gentoo users, > >>> > >>> I am a newbie to Gentoo. For Debian, I can get configuration files > >>> from Debian packages. I wonder if possible to get the kernel > >>> configuration files of Gentoo. > >>> > >>> If this question is invalid, please let me know. > >>> > >>> [1] > >>> http://ftp.debian.org/debian/pool/main/l/linux/linux-config-5.10_5.10.46-1_amd64.deb > >>> > >>> -- > >>> My best regards to you. > >>> > >>>No System Is Safe! > >>>Dongliang Mu > >>> > > -- > GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF > >
Re: [gentoo-user] libbpf? BTF? blinking urxvt/fish?
Hi caveman, you should really train your search skills :-P (1) Just searching for "libbpf" and then for "bpf BTF" gives plenty webpages and links. In short: BPF: Berkeley packet filter, e.g.: https://en.wikipedia.org/wiki/Berkeley_Packet_Filter libbpf: a library to use it, e.g.: https://github.com/libbpf/libbpf BPF Type Format (BTF) https://www.kernel.org/doc/html/v5.9/bpf/btf.html (2) "urxvt text blink ANSI": https://bbs.archlinux.org/viewtopic.php?id=150531 Kind regards, Nils Am Samstag, den 10.07.2021 um 12:44:15 Uhr + schrieb caveman رَجُلُ الْكَهْفِ 穴居人 : > i have 2 odd isuses that i observe: > > (1) i get this error when i reboot my kernel: > > > libbpf: failed to find valid kernel BTF > > libbpf: error loading vmlinux BTF: -3 > > libbpf: failed to load object 'iterators_bpf' > > libbpf: failed to load BPF skeleton 'iterators_bpf': -3 > > Failed load could be due to wrong endianness > > (2) plus all white texts are blinking in my > urxvt/fish terminal > > any idea what are these things? never heard of > BTF. never seen terminals blink like this. > what's going on? > > ty, > cm. >
Re: [gentoo-user] Inquiry about gentoo kernel configuration
On Sat, Jul 10, 2021 at 8:26 PM William Kenworthy wrote: > > > On 10/7/21 7:40 pm, Ramon Fischer wrote: > > Hello Dongliang, > > > > you could retrieve kernel configuration files from a "Minimal > > Installation CD"[1] of Gentoo. Mount it and look for > > "/boot/gentoo-config". > > > > But I guess, you want a untouched version, don't you? > > > > -Ramon > > Hi, to expand on this - Gentoo doesn't really have a standardised kernel > config - the nearest to that is the above install CD, or the default > generic catchall "genkernel" one - most people seem to manually > configurate and tune/customise a .config and then copy it from system to > system. There are a few bin(ary) kernels in portage/sys-kernel/* that > might work for you but I have never tried them. I see, thanks for your explanation. Gentoo people seem to build everything for their systems, including the underlying Linux kernel. For the installation CD, it plays a role as a temporary system to install the real Gentoo Linux. So there should be no default kernel configuration files. It depends on the Gentoo user, right? > > You can boot almost any linux live media on your target hardware and > extract the config (sysrescuecd is a good one) and use their sources, or > build the kernel using their config on top of Gentoo's vanilla-sources, > or gentoo-sources. > > Or grab another distros boot directory (containing the kernel, initrd > and config files), the matching /lib/modules directory and boot that > instead of building your own (I do this often on uboot based arm systems > and raspberry pi's.) > > Or ask on the list if someone has a config that matches your target > (occasionally it comes up). > > BillK > > > > > > [1] https://www.gentoo.org/downloads/ > > > > On 10/07/2021 11:15, Dongliang Mu wrote: > >> Hi Gentoo users, > >> > >> I am a newbie to Gentoo. For Debian, I can get configuration files > >> from Debian packages. I wonder if possible to get the kernel > >> configuration files of Gentoo. > >> > >> If this question is invalid, please let me know. > >> > >> [1] > >> http://ftp.debian.org/debian/pool/main/l/linux/linux-config-5.10_5.10.46-1_amd64.deb > >> > >> -- > >> My best regards to you. > >> > >> No System Is Safe! > >> Dongliang Mu > >> > > >
Re: [gentoo-user] Problems with LyX and xetex-2021
Hi Stefano, I couldn't reproduce your error with xelatex at all. I took your example/MWE and just executed "xelatex test.tex" and it generated me a single page PDF. A quick and dirty idea: Move ~/.texlive (e.g. to ~/.texlive-bak) and let texlive regenerate files there. In my worldfile I have app-text/texlive, dev-tex/biber and dev-tex/latexmk, everything else are just deps. Interestingly it works even with USE="-xetex" for texlive which in turn has only the following USE flags enabled: "X extra graphics luatex metapost music png pstricks science truetype" Hope that helps you, Nils Am Sonntag, den 16.05.2021 um 19:58:32 Uhr +0200 schrieb Stefano Crocco : > Hello to everyone, > since upgrading my ~arch system to TeXLive-2021 I'm having problems using > XeLaTeX to compile LyX documents. Has someone else experienced this issue? > I'd > like to file a bug report about it, but before doing so I'd like to be sure > that there isn't something wrong with my system. > > Below you'll find the details of my problem. > > Thanks in advance > > Stefano > > DETAILS > > When I use LyX to create a PDF using XeLaTeX from the attached test.lyx file > (using the default LaTeX (XeTeX) -> PDF (XeTeX) converter), I get an error > dialog with the following text: > > The external program > xelatex > finished with an error. It is recommended you fix the cause of the external > program's error (check the logs). > > As far as I can see, the log (attached as log_from_lyx) don't mention any > error, except for the generic (at least to my eyes) line > "Error 256 (driver return code) generating output;" > near the end. > > Trying to obtain a better error message, I exported the LyX file as a XeLaTeX > file using the File/Export LaTeX (xetex) menu entry and run xelatex on it. Of > course, it failed, but this time the log (in the log_from_xelatex attachment) > contains a more meaningful message: > "xdvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF > output..." > > Unfortunately, I'm not expert enough in the inner works of (xe)latex to > understand this message. I tried searching google for it but didn't find > anything useful. However, looking at the tex file generated by LyX (the > test.tex attachment), I noticed the line > > \usepackage[T1]{fontenc} > > which seemed strange to me, as I thought that the fontenc package shouldn't > be > used with XeLaTeX. Indeed, after commenting this line, xelatex successfully > created the correct PDF. > > This problem has almost certainly been caused by switching texlive and the > related packages from 2020 to 2021, since on another computer where I masked > the 2021 version of app-text/texlive-core, app-text/texlive and all packages > in category dev-texlive, everything works correctly. > This is XeTeX, Version 3.141592653-2.6-0.93 (TeX Live 2021 Gentoo Linux) > (preloaded format=xelatex 2021.5.8) 16 MAY 2021 19:29 > entering extended mode > restricted \write18 enabled. > %&-line parsing enabled. > **test.tex > (./test.tex > LaTeX2e <2020-10-01> patch level 4 > L3 programming layer <2021-02-18> > (/usr/share/texmf-dist/tex/latex/base/article.cls > Document Class: article 2020/04/10 v1.4m Standard LaTeX document class > (/usr/share/texmf-dist/tex/latex/base/size10.clo > File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option) > ) > \c@part=\count175 > \c@section=\count176 > \c@subsection=\count177 > \c@subsubsection=\count178 > \c@paragraph=\count179 > \c@subparagraph=\count180 > \c@figure=\count181 > \c@table=\count182 > \abovecaptionskip=\skip47 > \belowcaptionskip=\skip48 > \bibindent=\dimen138 > ) (/usr/share/texmf-dist/tex/latex/base/fontenc.sty > Package: fontenc 2020/08/10 v2.0s Standard LaTeX package > LaTeX Font Info:Trying to load font information for T1+lmr on input line > 11 > 2. > (/usr/share/texmf-dist/tex/latex/lm/t1lmr.fd > File: t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern > )) (/usr/share/texmf-dist/tex/latex/geometry/geometry.sty > Package: geometry 2020/01/02 v5.9 Page Geometry > (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty > Package: keyval 2014/10/28 v1.15 key=value parser (DPC) > \KV@toks@=\toks15 > ) (/usr/share/texmf-dist/tex/generic/iftex/ifvtex.sty > Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead. > (/usr/share/texmf-dist/tex/generic/iftex/iftex.sty > Package: iftex 2020/03/06 v1.0d TeX engine tests > )) > \Gm@cnth=\count183 > \Gm@cntv=\count184 > \c@Gm@tempcnt=\count185 > \Gm@bindingoffset=\dimen139 > \Gm@wd@mp=\dimen140 > \Gm@odd@mp=\dimen141 > \Gm@even@mp=\dimen142 > \Gm@layoutwidth=\dimen143 > \Gm@layoutheight=\dimen144 > \Gm@layouthoffset=\dimen145 > \Gm@layoutvoffset=\dimen146 > \Gm@dimlist=\toks16 > ) (/usr/share/texmf-dist/tex/latex/setspace/setspace.sty > Package: setspace 2011/12/19 v6.7a set line spacing > ) (/usr/share/texmf-dist/tex/generic/babel/babel.sty > Package: babel 2021/03/03 3.55 The Babel package >