Re: [gentoo-user] Suspend problem.
kirimaks kirim...@yahoo.com writes: Hi! I have a problem, when my laptop just stands it freezes after some time. Maybe completely unrelated, but have you turned off security chip[1] in BIOS? [1] https://wiki.gentoo.org/index.php?title=Suspend_and_hibernateredirect=no#Can_not_resume_after_suspend -- Zesen Qian (钱泽森)
Re: [gentoo-user] pdf viewer
lee l...@yagibdah.de writes: Hi, what do you as PDF viewer? Most of the time, I was using xpdf, and that doesn't seem to be available in Gentoo. I compiled it from source and found out that it cannot display PDFs so well and gives error messages about not being able to find fonts. Pdfpc isn't a good alternative. Most of the time I use app-test/zathura, whose default key-binding is vim-style. But recently I found app-test/llpp a better choice, at least the speed of fulltext search is very-very-very fast. But I 'm still wondering if there 's some better one. -- Zesen Qian (钱泽森)
Re: [gentoo-user] Disable IPv6 on specific interface
Mick michaelkintz...@gmail.com writes: On Tuesday 30 Dec 2014 03:27:34 Zesen Qian wrote: Hello list, Sorry for hijacking Rich's thread, resend here. I want to disable IPv6 on an certain interface, a simple google tell me to add one line to /etc/sysctl.d/local.conf net.ipv6.conf.enp4s0.disable_ipv6=1 Simple enough, but the problem I have is that both ipv6 and the dirver of the network card(tg3) is loaded by modules. They 're not loaded when the service sysctl is started, so there's no entry named net.ipv6.conf.enp4s0, which make sysctl not working. So my question is that, is there any way to disable IPv6 on specific interface, as early as I can? I want to make it early because I don't want to receive any RA to mess up my route table. I guess just adding sysctl to preup() in /etc/conf.d/net should do the trick, but may I make it earlier? Any comment is appreciated. Unless the kernel knows of the enp4s0 interface and therefore lists it under sysctl, I can't see how it can be disabled. You could try disabling IPv6 altogether in the kernel, but this may not be what you want to achieve. Alternatively, have a look with modinfo in the module options in the unlikely chance that the module has some option which disables IPv6 functionality. Hello Mick, The module ipv6 has only three parameters, each of which is disable ipv6, disable ipv6 on all interfaces, disable autoconf on all interfaces, none of these is what I want to achieve. Module tg3 has only on parameters which control the debug level. Currently I just call sysctl net.ipv6.conf.enp4s0.disable_ipv6=1 in preup(), which works just fine. I 'm just wondering if there 's some more proper way to do it. Since in my opinion, this should be done at the first moment when the interface is present, not when the interface is up. -- Zesen Qian (钱泽森)
Re: [gentoo-user] Disable IPv6 on specific interface
cov...@ccs.covici.com writes: Mick michaelkintz...@gmail.com wrote: On Tuesday 30 Dec 2014 03:27:34 Zesen Qian wrote: Hello list, Sorry for hijacking Rich's thread, resend here. I want to disable IPv6 on an certain interface, a simple google tell me to add one line to /etc/sysctl.d/local.conf net.ipv6.conf.enp4s0.disable_ipv6=1 Simple enough, but the problem I have is that both ipv6 and the dirver of the network card(tg3) is loaded by modules. They 're not loaded when the service sysctl is started, so there's no entry named net.ipv6.conf.enp4s0, which make sysctl not working. So my question is that, is there any way to disable IPv6 on specific interface, as early as I can? I want to make it early because I don't want to receive any RA to mess up my route table. I guess just adding sysctl to preup() in /etc/conf.d/net should do the trick, but may I make it earlier? Any comment is appreciated. Unless the kernel knows of the enp4s0 interface and therefore lists it under sysctl, I can't see how it can be disabled. You could try disabling IPv6 altogether in the kernel, but this may not be what you want to achieve. Alternatively, have a look with modinfo in the module options in the unlikely chance that the module has some option which disables IPv6 functionality. You may be able to use the feature of modprobe that executes a command when the module loads and that way disable the ipv6 interface. I have not tried this myself. Hello Covici, Yes, there's a rule named install modulename [command..] in modprobe, but aren't they only applied to modprobe itself? I mean, in my case the ipv6 and tg3 is loaded automatically(maybe by udev?), not by running modprobe ipv6. is this kind of module loading also affected by modprobe rule(in /etc/modprobe.d/*.conf)? -- Zesen Qian (钱泽森)
[gentoo-user] Disabling IPv6 on specific interface
Hello list, I want to disable IPv6 on an certain interface, a simple google tell me to add one line to /etc/sysctl.d/local.conf net.ipv6.conf.enp4s0.disable_ipv6=1 Simple enough, but the problem I have is that both ipv6 and the dirver of the network card(tg3) is loaded by modules. They 're not loaded when the service sysctl is started, so there's no entry named net.ipv6.conf.enp4s0, which make sysctl not working. So my question is that, is there any way to disable IPv6 on specific interface, as early as I can? I want to make it early because I don't want to receive any RA to mess up my route table. I guess just adding sysctl to preup() in /etc/conf.d/net should do the trick, but may I make it earlier? Any comment is appreciated. -- Zesen Qian (钱泽森)
Re: [gentoo-user] Disabling IPv6 on specific interface
Peter Humphrey pe...@prh.myzen.co.uk writes: On Tuesday 30 December 2014 09:47:27 Zesen Qian wrote: Hello list, I want to disable IPv6 on an certain interface, a simple google tell me to add one line to /etc/sysctl.d/local.conf net.ipv6.conf.enp4s0.disable_ipv6=1 Simple enough, but the problem I have is that both ipv6 and the dirver of the network card(tg3) is loaded by modules. They 're not loaded when the service sysctl is started, so there's no entry named net.ipv6.conf.enp4s0, which make sysctl not working. So my question is that, is there any way to disable IPv6 on specific interface, as early as I can? I want to make it early because I don't want to receive any RA to mess up my route table. I guess just adding sysctl to preup() in /etc/conf.d/net should do the trick, but may I make it earlier? Any comment is appreciated. Please do not hijack someone else's thread. Oh sorry, I just wanted to save typing the address. It seems that I forget to delete some fields in the origin header. My apologies if it makes confusion. Do I need to re-send the mail in a new thread? -- Zesen Qian (钱泽森)
[gentoo-user] Disable IPv6 on specific interface
Hello list, Sorry for hijacking Rich's thread, resend here. I want to disable IPv6 on an certain interface, a simple google tell me to add one line to /etc/sysctl.d/local.conf net.ipv6.conf.enp4s0.disable_ipv6=1 Simple enough, but the problem I have is that both ipv6 and the dirver of the network card(tg3) is loaded by modules. They 're not loaded when the service sysctl is started, so there's no entry named net.ipv6.conf.enp4s0, which make sysctl not working. So my question is that, is there any way to disable IPv6 on specific interface, as early as I can? I want to make it early because I don't want to receive any RA to mess up my route table. I guess just adding sysctl to preup() in /etc/conf.d/net should do the trick, but may I make it earlier? Any comment is appreciated. -- Zesen Qian (钱泽森)
[gentoo-user] [Permission]Cannot emerge [sys-libs/libcap-ng-0.7.4]
Hi list, I 'm trying to emerge net-analyzer/tcpdump-4.6.2, to debug some ICMPv6 problem I recently encountered. So, I type: Riaqn-Laptop ~ # emerge -av tcpdump These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sys-libs/libcap-ng-0.7.4 USE=-python -static-libs PYTHON_TARGETS=python2_7 python3_3 -python3_4 0 KiB [ebuild N ] net-analyzer/tcpdump-4.6.2 USE=drop-root ipv6 ssl -samba -smi -suid {-test} 0 KiB Total: 2 packages (2 new), Size of downloads: 0 KiB Would you like to merge these packages? [Yes/No] yes Verifying ebuild manifests Emerging (1 of 2) sys-libs/libcap-ng-0.7.4::gentoo * libcap-ng-0.7.4.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] Unpacking source... Unpacking libcap-ng-0.7.4.tar.gz to /var/tmp/portage/sys-libs/libcap-ng-0.7.4/work Source unpacked in /var/tmp/portage/sys-libs/libcap-ng-0.7.4/work Preparing source in /var/tmp/portage/sys-libs/libcap-ng-0.7.4/work/libcap-ng-0.7.4 ... * ACCESS DENIED: open_wr: /proc/sys/net/ipv6/conf/enp4s0/autoconf * ACCESS DENIED: open_wr: /proc/sys/net/ipv6/conf/enp4s0/accept_ra * Running eautoreconf in '/var/tmp/portage/sys-libs/libcap-ng-0.7.4/work/libcap-ng-0.7.4' ... * Running libtoolize --install --copy --force --automake ... * ACCESS DENIED: open_wr: /proc/sys/net/ipv6/conf/enp4s0/autoconf * ACCESS DENIED: open_wr: /proc/sys/net/ipv6/conf/enp4s0/accept_ra [ ok ] Riaqn-Laptop ~ # cat /var/tmp/portage/sys-libs/libcap-ng-0.7.4/temp/autoconf.out * autoconf * * PWD: /var/tmp/portage/sys-libs/libcap-ng-0.7.4/work/libcap-ng-0.7.4 * autoconf sysctl: permission denied on key 'net.ipv6.conf.enp4s0.autoconf' sysctl: permission denied on key 'net.ipv6.conf.enp4s0.accept_ra' However, the permission looks quite right, I(root) can even write to it: Riaqn-Laptop ~ # ls -l /proc/sys/net/ipv6/conf/enp4s0/autoconf -rw-r--r-- 1 root root 0 12月 9 22:58 /proc/sys/net/ipv6/conf/enp4s0/autoconf Even if I emerge with FEATURES=-userpriv doesn't help, same output. I don't know if it's related, but as far as I noticed, dhcpcd will set these two values to 0, to disable the kernel configuring the IPv6 address.(I checked dhcpcd source) Any comment is appreciated! Regards, -- Zesen Qian (钱泽森)