[gentoo-user] Re: Anyone familiar with virt-manager?
On 02/11/2015 03:38 AM, Nicolas Sebrecht wrote: On Tue, Feb 10, 2015 at 04:56:13PM -0800, walt wrote: Thanks, Nicolas. I also have a qemu guest win7 image, and the mouse capture works as expected when I run it with virt-manager. No idea why winXP behaves differently, though. Did you check the devices? I haven't yet figured out how to display the devices with virsh. I'm still experimenting :) How did you imported the winXP image into virt-manager? Clicked on File menu and chose New Virtual Machine which offers an import option. I notice that virt-manager runs qemu without the -enable-kvm flag, and win7 runs significantly slower because of that. Is there some way to convince virt-manager to use the -enable-kvm option? libvirt set the ,accel=kvm command line option, here. Yes, I see the same. I wonder if you have a recent declared ABI. Here it is pc-1.1, hvm: os type arch='x86_64' machine='pc-1.1'hvm/type ... /os Same here, except machine='pc-i440fx-2.3' I have no idea where that value comes from. Thanks
[gentoo-user] systemd not starting wpa_supplicant after last update
Yesterday I updated both systemd (218-r3) and wpa (2.3-r2) and discovered the systemd unit files are not as easy to understand as they were. journalctl says: Job wpa_supplicant@multi-user.service/start failed with result 'dependency'. (And doesn't say what the 'dependency' is.) That's confusing because there is no unit file with that name. systemd is apparently inserting strings like @multi-user in the middle of real unit file names to create that log message. wpa_supplicant now installs more unit files than before: #systemctl list-unit-files | grep wpa wpa_supplicant-nl80211@.service enabled wpa_supplicant-wired@.service disabled wpa_supplicant.service disabled wpa_supplicant@.service disabled #cat /usr/lib64/systemd/system/wpa_supplicant-nl80211\@.service [Unit] Description=WPA supplicant daemon (interface- and nl80211 driver-specific version) Requires=sys-subsystem-net-devices-%i.device After=sys-subsystem-net-devices-%i.device [Service] Type=simple ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I [Install] Alias=multi-user.target.wants/wpa_supplicant-nl80211@%i.service Now, if I type that ExecStart command from a bash prompt it works perfectly, so why is systemd failing to start wpa_supplicant? I dunno. I'm assuming the %I stands for wlan0, so that's the way I named the conf file: /etc/wpa_supplicant/wpa_supplicant-nl80211-wlan0.conf but maybe I'm wrong about that? Thanks for any clues.
[gentoo-user] Re: Anyone familiar with virt-manager?
On Wed, Feb 11, 2015 at 08:14:52AM -0800, walt wrote: On 02/11/2015 03:38 AM, Nicolas Sebrecht wrote: On Tue, Feb 10, 2015 at 04:56:13PM -0800, walt wrote: Did you check the devices? I haven't yet figured out how to display the devices with virsh. I'm still experimenting :) virsh edit name How did you imported the winXP image into virt-manager? Clicked on File menu and chose New Virtual Machine which offers an import option. You might want to try by avoiding this option. Copy the disk image and just create a new VM. While asking for a disk, provide the copy of the image. I wonder if you have a recent declared ABI. Here it is pc-1.1, hvm: os type arch='x86_64' machine='pc-1.1'hvm/type ... /os Same here, except machine='pc-i440fx-2.3' I have no idea where that value comes from. It comes from the import but I wonder if default value hurts the guest. You have to check what is pc-i440fx-2.3 by yourself or ask the libvirt mailing list. Here is the background about ABI: https://www.berrange.com/posts/2010/02/15/stable-guest-machine-abi-pci-addressing-and-disk-controllers-in-libvirt/ -- Nicolas Sebrecht
Re: [gentoo-user] systemd + openvpn
On Wed, Feb 11, 2015 at 1:58 PM, Joseph syscon...@gmail.com wrote: How do I start and stop systemd services, I would imagine systemd works the same across all distros. You run systemd start service - that is the same on all distros (well, if they're not writing fancy wrappers around it or whatever - Gentoo follows upstream). My openvpn server is running on Gentoo but client openvpn I setup on Fedora 21 (as the computer is old and slow). Normally I would create configuration files in /etc/openvpn/ and run: /etc/init.d/ln -s openvpn.client1 openvpn /etc/init.d/openvpn.client1 start But on Fedora when I do systemctl enable openvpn@eeepc.service I ended up having to add the following to my unit: ExecStartPre=-/bin/mkdir -p /dev/net ExecStartPre=-/bin/mknod /dev/net/tun c 10 200 I forget if that is reported somewhere, fixed upstream, etc. It has been a while since I studied tap/tun so it might also not be necessary in some configurations. -- Rich
[gentoo-user] systemd + openvpn
How do I start and stop systemd services, I would imagine systemd works the same across all distros. My openvpn server is running on Gentoo but client openvpn I setup on Fedora 21 (as the computer is old and slow). Normally I would create configuration files in /etc/openvpn/ and run: /etc/init.d/ln -s openvpn.client1 openvpn /etc/init.d/openvpn.client1 start But on Fedora when I do systemctl enable openvpn@eeepc.service I get: Failed to execute operation: No such file or directory. -- Joseph
[gentoo-user] Switching off some linguas variables
What is the elegant way to switch off all but one linguas variables for a given package. I have tried all obvious solutions but they seem to do not work. For example, I have tried to put the following line into /etc/portage/package.use file: www-client/chromium -nls -linguas* linguas_en linguas_pl So far I am afraid to recompile everything with global -nls USE flag and LINGUAS=en in /etc/portage/make.conf. So, trying to cut the cat's tail by parts. :)
[gentoo-user] Re: attn Old farts (gopher server?)
On 2015-02-11, James wirel...@tampabay.rr.com wrote: Ah this ought to take many of you old farts for a trip down memory lane Remember gopher from U Minsesota [1] ? You bet. Back in days of yore, the group I worked in had its own internal intranet gopher server. It wasn't too long before http/html came along and we set up a parllel internal web site. They co-exsted for a while, and in the beginning there were plenty of gopher://whatever/ links on many of the web pages. -- Grant Edwards grant.b.edwardsYow! I feel like a wet at parking meter on Darvon! gmail.com
Re: [gentoo-user] systemd + openvpn
On 02/11/15 14:16, Rich Freeman wrote: On Wed, Feb 11, 2015 at 1:58 PM, Joseph syscon...@gmail.com wrote: How do I start and stop systemd services, I would imagine systemd works the same across all distros. You run systemd start service - that is the same on all distros (well, if they're not writing fancy wrappers around it or whatever - Gentoo follows upstream). My openvpn server is running on Gentoo but client openvpn I setup on Fedora 21 (as the computer is old and slow). Normally I would create configuration files in /etc/openvpn/ and run: /etc/init.d/ln -s openvpn.client1 openvpn /etc/init.d/openvpn.client1 start But on Fedora when I do systemctl enable openvpn@eeepc.service I ended up having to add the following to my unit: ExecStartPre=-/bin/mkdir -p /dev/net ExecStartPre=-/bin/mknod /dev/net/tun c 10 200 I forget if that is reported somewhere, fixed upstream, etc. It has been a while since I studied tap/tun so it might also not be necessary in some configurations. -- Rich I have tried xubuntu on this old eeepc 1GB of ram only and I was able to make the openvpn to work but freenx would not work, I only need client on the laptop. nomachine installed on xubuntu but they disabled ssh connection on the free download version the only free protocol is nx and it doesn't work with nxserver-freenx. x2go I make it to work but the fonts are unreadable, complete gibberish. So, I've tried Fedora just to get stuck on EVIL systemd :-/ I could install Gentoo on this laptop via distcc but it would take a long time. Besides I like the way the network works on those new laptop, it switches seamlessly between cable eth0 and wifi. -- Joseph
[gentoo-user] attn Old farts (gopher server?)
Ah this ought to take many of you old farts for a trip down memory lane Remember gopher from U Minsesota [1] ? I ran across one of my old gopher servers, a company still uses, but are trying to hide (so I cannot divulge the source). But, I was kicking around setting one of for a phd egg_head scientist friend. He is convinced it is the best tool for what he needs. After installation it'll be interesting if he benchmarks it against something like postgresql or (an even faster solution?). What features he thinks gopher has (the protocol) to provides this advantages, he will not divulge, yet. So in portage (I'm lazy) we have: net-misc/gofish, net-misc/geomyidae, kde-misc/kio_gopher (a kde front end?) and net-misc/sgopherd. I looking for something very, very fast, written in C and small enough to keep the gopher-engine in ram (less than 8gig). Any discussion, comments or suggestions are most welcome. James [1] http://ils.unc.edu/callee/gopherpaper.htm
Re: [gentoo-user] systemd not starting wpa_supplicant after last update
On Wed, Feb 11, 2015 at 11:14 AM, walt w41...@gmail.com wrote: Yesterday I updated both systemd (218-r3) and wpa (2.3-r2) and discovered the systemd unit files are not as easy to understand as they were. journalctl says: Job wpa_supplicant@multi-user.service/start failed with result 'dependency'. (And doesn't say what the 'dependency' is.) That's confusing because there is no unit file with that name. systemd is apparently inserting strings like @multi-user in the middle of real unit file names to create that log message. wpa_supplicant now installs more unit files than before: #systemctl list-unit-files | grep wpa wpa_supplicant-nl80211@.service enabled wpa_supplicant-wired@.service disabled wpa_supplicant.service disabled wpa_supplicant@.service disabled #cat /usr/lib64/systemd/system/wpa_supplicant-nl80211\@.service [Unit] Description=WPA supplicant daemon (interface- and nl80211 driver-specific version) Requires=sys-subsystem-net-devices-%i.device After=sys-subsystem-net-devices-%i.device [Service] Type=simple ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I [Install] Alias=multi-user.target.wants/wpa_supplicant-nl80211@%i.service Now, if I type that ExecStart command from a bash prompt it works perfectly, so why is systemd failing to start wpa_supplicant? I dunno. I'm assuming the %I stands for wlan0, so that's the way I named the conf file: /etc/wpa_supplicant/wpa_supplicant-nl80211-wlan0.conf but maybe I'm wrong about that? The unit files with @ in them are templates which you can instantiate with (usually) devices. For example, you could do: systemctl enable wpa_supplicant-nl80211@wlp3s0.service systemctl enable wpa_supplicant-wired@enp2s12.service And only then the %i inside the unit file becomes wlp3s0 or enp2s12. This is explained in man 5 systemd.unit, search for @. In the same man page, in the section SPECIFIERS, you can find what specifiers (besides %i) you can use. I use NetworkManager for wireless connections, and systemd-networkd for static ethernet, so I don't use wpa_supplicant directly. However, I would suggest to simply enable wpa_supplicant@your-wireless-device.service. Regards. -- Canek Peláez Valdés Profesor de asignatura, Facultad de Ciencias Universidad Nacional Autónoma de México
[gentoo-user] Re: Both ssh and nfs.mount are sending an obsolete ip address [SOLVED]
On 02/10/2015 05:45 PM, walt wrote: To be specific: nfs.mount is claiming that its clientaddr is the old address, and ssh is claiming that its rhost is also the same old address. So, how are these two different packages claiming the same, obsolete, ip address? Where are they getting it? It must be cached somewhere on the older machine, but where? Turns out to be dhcpcd, which was renegotiating an old lease but actually getting a new and different ip address. It was assigning both the old and new addresses to the same wlan0 interface, which seems impossible to me but ip addr shows the interface with both of them, although ifconfig shows only the new one. Beats me. After updating wpa_supplicant I now have an even bigger problem getting systemd to start the damned wpa_supplicant service, but I'll start a new thread for that.
Re: [gentoo-user] systemd not starting wpa_supplicant after last update
On Wed, 11 Feb 2015 13:22:13 -0600, Canek Peláez Valdés wrote: I use NetworkManager for wireless connections, and systemd-networkd for static ethernet, so I don't use wpa_supplicant directly. However, I would suggest to simply enable wpa_supplicant@your-wireless-device.service. I have it set up like this % cat /etc/systemd/network/20-wlan0.network [Match] Name=wlan0 [Network] Description=Wireless network DHCP=yes % ls -l /etc/systemd/system/systemd-networkd.service.wants/ systemd-resolved.service - /usr/lib/systemd/system/systemd-resolved.service wpa_supplicant@wlan0.service - /usr/lib64/systemd/system/wpa_supplicant@.service -- Neil Bothwick Puritanism: The haunting fear that someone, somewhere may be happy. pgp8lzqX6zu8n.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Switching off some linguas variables
On Wednesday 11 Feb 2015 19:09:44 Gevisz wrote: What is the elegant way to switch off all but one linguas variables for a given package. I have tried all obvious solutions but they seem to do not work. For example, I have tried to put the following line into /etc/portage/package.use file: www-client/chromium -nls -linguas* linguas_en linguas_pl So far I am afraid to recompile everything with global -nls USE flag and LINGUAS=en in /etc/portage/make.conf. So, trying to cut the cat's tail by parts. :) Set your desired LINGUAS in make.conf and when you recompile a package that has this variable, e.g. chromium, only the language you have specified should be built. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: systemd not starting wpa_supplicant after last update
On Wed, Feb 11, 2015 at 5:37 PM, walt w41...@gmail.com wrote: Yes, thank you! Did you use systemctl to make all the symlinks? I just did it all manually and it works, but I'm not sure how I would have done it using systemctl. systemctl enable service That looks in the unit's install section to see what target it should be associated with. This is actually a nice feature - with openrc it wasn't always obvious when things should go in the boot vs default runlevel, etc. But, all that command does is create the symlinks in the target.wants directory, so you can just create those yourself if you want to. That actually works for anything - you can effectively add a dependency to a unit by creating a directory of the appropriate name and symlinking the dependency inside. -- Rich
Re: [gentoo-user] Re: systemd + openvpn
On 02/11/15 15:26, walt wrote: On 02/11/2015 02:38 PM, Joseph wrote: On 02/11/15 13:52, walt wrote: On 02/11/2015 10:58 AM, Joseph wrote: on Fedora when I do systemctl enable openvpn@eeepc.service I get: Failed to execute operation: No such file or directory. You need to escape the @ by typing openvpn\@eeepc.service, which is not clear from the error message. I'm still getting the same failed error message. systemctl start openvpn\@eeepc.service Yes, I see the same, which I feel is a systemd bug. The escaping trick works only with the 'enable' command, not stop or start. Dumb. As an experiment you might try systemctl start openvpn\* or even openvpn[@]eeepc in case regexps might work. BTW the .service is optional, systemd assumes it as the default. Thanks for trying to help. I'm getting the same error message :-/ Trying to install Gentoo on it will take me 1-2 weeks :-/ so I was looking for an alternative. -- Joseph
[gentoo-user] automatic network connection between eth and wifi
I've noticed that on the newer distribution (binary, xubuntu fedora) the network connection is automatic whenever someone connects the cable or if cable is disconnected it switches to wife. Is it the function of the new systemd or it is a new program? I'm still using rc -- Joseph
Re: [gentoo-user] automatic network connection between eth and wifi
If I recall, several distros were using ifplugd ( http://0pointer.de/lennart/projects/ifplugd/), or just network-manager out of the gnome project, but it's been a while since I've had to deal with hotplugging ethernet. On Wed, Feb 11, 2015 at 6:59 PM, Joseph syscon...@gmail.com wrote: I've noticed that on the newer distribution (binary, xubuntu fedora) the network connection is automatic whenever someone connects the cable or if cable is disconnected it switches to wife. Is it the function of the new systemd or it is a new program? I'm still using rc -- Joseph
[gentoo-user] Re: systemd + openvpn
On 02/11/2015 10:58 AM, Joseph wrote: on Fedora when I do systemctl enable openvpn@eeepc.service I get: Failed to execute operation: No such file or directory. You need to escape the @ by typing openvpn\@eeepc.service, which is not clear from the error message.
Re: [gentoo-user] netbook connects to Internet automatically, desktop doesn't
150211 thegeezer wrote: i vaguely recall that openrc started it's own version of dhcp client http://wiki.gentoo.org/wiki/Network_management_using_DHCPCD/OpenRC_message https://groups.google.com/forum/#!topic/linux.gentoo.dev/D_sFyfaQl2Y Yes, that says all you need is '+newnet' for Openrc it will use its own DHCP to connect to the I/net. However, my netbook has '-newnet -netifrc' still connects automatically ! Below are the 2 versions, which show no significant difference I can see. So I still want to know why Netbook connects automatically would welcome any further advice, so I can bring the Desktop into line. As to the earlier queston re re-plugging the I/net connection, there seems to have been an unannounced change in default c 2013 . IIRC in 2012, when I built the Desktop machine, for both machines I had to shut down Dhcpcd via 'dhcpcd -k' restart via 'dhcpcd' before/after un/plugging the physical connection. In /etc on the Desktop I have a file 'dhcpcd-dft.conf', which is dated 120907, ie when I started installing Gentoo in it, which I renamed after creating the revised version I wanted : that file ends with 2 lines : # dhcpcd ebuild requested no zeroconf noipv4ll The comment is typically obscure to any normal user (wry smile). Both machines' dhcpcd.conf files lack those lines today. Desktop : dft runlevel root:510 etc cd runlevels/default/ root:511 default ls -l total 0 lrwxrwxrwx 1 root root 17 Dec 15 2013 cupsd - /etc/init.d/cupsd lrwxrwxrwx 1 root root 16 Sep 11 2012 dbus - /etc/init.d/dbus lrwxrwxrwx 1 root root 17 Jun 21 2012 local - /etc/init.d/local lrwxrwxrwx 1 root root 20 Jun 21 2012 netmount - /etc/init.d/netmount lrwxrwxrwx 1 root root 16 Sep 9 2012 ntpd - /etc/init.d/ntpd lrwxrwxrwx 1 root root 20 Sep 9 2012 sysklogd - /etc/init.d/sysklogd lrwxrwxrwx 1 root root 22 Sep 9 2012 vixie-cron - /etc/init.d/vixie-cron root:512 default Desktop : rc.log rc default logging started at Wed Feb 11 10:42:56 2015 * Starting D-BUS system messagebus ... [ ok ] * sysklogd - start: syslogd ... [ ok ] * sysklogd - start: klogd ... [ ok ] * Starting cupsd ... [ ok ] * Mounting network filesystems ... [ ok ] * Starting ntpd ... [ ok ] * Starting vixie-cron ... [ ok ] * Starting local ... [ ok ] rc default logging stopped at Wed Feb 11 10:42:57 2015 Desktop : /etc/rc.conf (comments deleted) #rc_parallel=NO rc_interactive=YES rc_shell=/sbin/sulogin #rc_depend_strict=YES rc_hotplug=* rc_logger=YES #rc_log_path=/var/log/rc.log #rc_verbose=no #rc_env_allow=VAR1 VAR2 #rc_start_wait=100 #rc_nostop= #rc_crashed_stop=NO rc_crashed_start=YES #rc_nocolor=NO unicode=YES #rc_fuser_timeout=60 #extra_net_fs_list= #SSD_NICELEVEL=-19 #rc_ulimit=-u 30 #rc_config=/etc/foo #rc_need=openvpn #rc_use=net.eth0 #rc_after=clock #rc_before=local #rc_provide=!net #rc_foo_config=/etc/foo #rc_foo_need=openvpn #rc_foo_after=clock #rc_foo_bar_config=/etc/foo-bar #rc_foo_bar_need=openvpn #rc_foo_bar_after=clock #rc_net_tap0_provide=!net #rc_sys= rc_tty_number=12 #rc_controller_cgroups=YES # rc_cgroup_cpu= # cpu.shares 512 # #rc_cgroup_blkio= #rc_cgroup_cpu= #rc_cgroup_cpuacct= #rc_cgroup_cpuset= #rc_cgroup_devices= #rc_cgroup_memory= #rc_cgroup_net_prio= # rc_cgroup_cleanup=NO Desktop : openrc root:516 etc eix ^openrc$ [I] sys-apps/openrc Available versions : 0.12.4{tbz2} 0.13.8{tbz2} 0.13.9{tbz2} ** {audit debug ncurses +netifrc newnet pam prefix selinux static-libs tools unicode ELIBC=glibc KERNEL=FreeBSD linux} Installed versions : 0.13.9{tbz2} ( [2015-02-07 11:18:46] ) (ncurses unicode -debug -netifrc -newnet -pam -prefix -selinux -static-libs -tools ELIBC=glibc KERNEL=linux -FreeBSD) Netbook : syslog : latest lines # netbook started w/o conn'n 16:40:22 localhost kernel: REISERFS (device sda6): Using r5 hash to sort names 16:40:22 localhost dhcpcd[799]: version 6.4.7 starting 16:40:22 localhost dhcpcd[799]: dev: loaded udev 16:40:22 localhost dhcpcd[799]: no interfaces have a carrier 16:40:22 localhost dhcpcd[799]: forked to background, child pid 822 16:40:22 localhost kernel: atl1c :01:00.0: Unable to allocate MSI interrupt Error: -38 16:40:22 localhost kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready 16:40:22 localhost dhcpcd[822]: enp1s0: waiting for carrier 16:40:22 localhost dhcpcd[822]: enp1s0: carrier acquired 16:40:22 localhost dhcpcd[822]: DUID 00:01:00:01:03:c3:b8:97:00:26:18:79:64:16 16:40:22 localhost dhcpcd[822]: enp1s0: IAID 18:79:64:16 16:40:22 localhost dhcpcd[822]: enp1s0: carrier lost 16:40:23 localhost dhcpcd[822]: enp1s0: waiting for carrier # plugged in 16:44:06 localhost dhcpcd[822]: enp1s0: carrier acquired 16:44:06 localhost kernel: atl1c :01:00.0: atl1c: enp1s0 NIC Link is Up100 Mbps Full Duplex 16:44:06 localhost kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready 16:44:06 localhost dhcpcd[822]: enp1s0: IAID 18:79:64:16 16:44:07 localhost dhcpcd[822]: enp1s0: rebinding lease of 192.168.1.3
[gentoo-user] Re: systemd + openvpn
On 02/11/2015 02:38 PM, Joseph wrote: On 02/11/15 13:52, walt wrote: On 02/11/2015 10:58 AM, Joseph wrote: on Fedora when I do systemctl enable openvpn@eeepc.service I get: Failed to execute operation: No such file or directory. You need to escape the @ by typing openvpn\@eeepc.service, which is not clear from the error message. I'm still getting the same failed error message. systemctl start openvpn\@eeepc.service Yes, I see the same, which I feel is a systemd bug. The escaping trick works only with the 'enable' command, not stop or start. Dumb. As an experiment you might try systemctl start openvpn\* or even openvpn[@]eeepc in case regexps might work. BTW the .service is optional, systemd assumes it as the default.
[gentoo-user] Re: USE=-libav ffmpeg
On Tue, 10 Feb 2015 09:31:58 -0500 Alec Ten Harmsel a...@alectenharmsel.com wrote: On 02/10/2015 09:13 AM, James wrote: Is this the best way to stay on ffmpeg? (USE=-libav ffmpeg) ? Yes, as far as I know. Me too. There was a news item not too long ago about this; eselect news list gives a 2015-02-01 ffmpeg/libav conflict management: USE=libav that you can read unless you've deleted it already. TL;DR is that 'ffmpeg' enables ffmpeg/libav support, 'libav' adds libav dependency, '-libav' adds ffmpeg dependency. That news item was withdrawn and the changes reverted because they wanted to consider handling it with a use_expand variable. If they do that, I guess we'll get another news item. (And if they don't do that, maybe we'll get the old news item back.)
Re: [gentoo-user] Re: systemd + openvpn
On 02/11/15 13:52, walt wrote: On 02/11/2015 10:58 AM, Joseph wrote: on Fedora when I do systemctl enable openvpn@eeepc.service I get: Failed to execute operation: No such file or directory. You need to escape the @ by typing openvpn\@eeepc.service, which is not clear from the error message. I'm still getting the same failed error message. systemctl start openvpn\@eeepc.service -- Joseph
[gentoo-user] compiling via distcc
I have an old eeepc 1GB ram and would like to install Gentoo on it as Xubuntu and Fedora both failed providing the programs I need. Since the eeepc is VERY slow, is it possible to setup distcc to do complete compiling on a faster machine. (eeepc is x86, my faster boxes are amd64). -- Joseph
Re: [gentoo-user] compiling via distcc
People do it all the time. You have to set up the amd64's to cross compile. https://wiki.gentoo.org/wiki/Distcc/Cross-Compiling On Wed, Feb 11, 2015 at 4:51 PM, Joseph syscon...@gmail.com wrote: I have an old eeepc 1GB ram and would like to install Gentoo on it as Xubuntu and Fedora both failed providing the programs I need. Since the eeepc is VERY slow, is it possible to setup distcc to do complete compiling on a faster machine. (eeepc is x86, my faster boxes are amd64). -- Joseph
[gentoo-user] Re: systemd not starting wpa_supplicant after last update
On 02/11/2015 03:20 PM, Rich Freeman wrote: On Wed, Feb 11, 2015 at 5:37 PM, walt w41...@gmail.com wrote: Yes, thank you! Did you use systemctl to make all the symlinks? I just did it all manually and it works, but I'm not sure how I would have done it using systemctl. systemctl enable service That looks in the unit's install section to see what target it should be associated with. This is actually a nice feature - with openrc it wasn't always obvious when things should go in the boot vs default runlevel, etc. But, all that command does is create the symlinks in the target.wants directory, so you can just create those yourself if you want to. That actually works for anything - you can effectively add a dependency to a unit by creating a directory of the appropriate name and symlinking the dependency inside. The symlink that was puzzling me is this one: wpa_supplicant@wlan0.service - /usr/lib64/systemd/system/wpa_supplicant@.service The name of the symlink is not the same as the .service file it points to. Is there a systemctl command that would do that for me?
Re: [gentoo-user] Re: systemd not starting wpa_supplicant after last update
On Wed, Feb 11, 2015 at 6:37 PM, walt w41...@gmail.com wrote: On 02/11/2015 03:20 PM, Rich Freeman wrote: On Wed, Feb 11, 2015 at 5:37 PM, walt w41...@gmail.com wrote: Yes, thank you! Did you use systemctl to make all the symlinks? I just did it all manually and it works, but I'm not sure how I would have done it using systemctl. systemctl enable service That looks in the unit's install section to see what target it should be associated with. This is actually a nice feature - with openrc it wasn't always obvious when things should go in the boot vs default runlevel, etc. But, all that command does is create the symlinks in the target.wants directory, so you can just create those yourself if you want to. That actually works for anything - you can effectively add a dependency to a unit by creating a directory of the appropriate name and symlinking the dependency inside. The symlink that was puzzling me is this one: wpa_supplicant@wlan0.service - /usr/lib64/systemd/system/wpa_supplicant@.service The name of the symlink is not the same as the .service file it points to. Is there a systemctl command that would do that for me? systemctl enable wpa_supplicant@wlan0 That is an instanced service. It is a bit like creating a symlink from net.lo to net.eth0 in openrc. If you read the service file you'll see that all it does is takes whatever is to the right of the @, tacks on a .conf, and uses that as the openvpn config file. Another example is getty@ - you want to run 6 gettys and they all start/stop independently, so instead of copying the same file 6 times you just parameterize it. -- Rich
[gentoo-user] Re: systemd not starting wpa_supplicant after last update
On 02/11/2015 01:05 PM, Neil Bothwick wrote: On Wed, 11 Feb 2015 13:22:13 -0600, Canek Peláez Valdés wrote: I use NetworkManager for wireless connections, and systemd-networkd for static ethernet, so I don't use wpa_supplicant directly. However, I would suggest to simply enable wpa_supplicant@your-wireless-device.service. I have it set up like this % cat /etc/systemd/network/20-wlan0.network [Match] Name=wlan0 [Network] Description=Wireless network DHCP=yes % ls -l /etc/systemd/system/systemd-networkd.service.wants/ systemd-resolved.service - /usr/lib/systemd/system/systemd-resolved.service wpa_supplicant@wlan0.service - /usr/lib64/systemd/system/wpa_supplicant@.service Yes, thank you! Did you use systemctl to make all the symlinks? I just did it all manually and it works, but I'm not sure how I would have done it using systemctl. I just discovered I needed to create a symlink from /run/systemd/resolve/resolv.conf to /etc/resolv.conf. Had to resort to reading a man page :(
Re: [gentoo-user] automatic network connection between eth and wifi
On Wed, Feb 11, 2015 at 6:59 PM, Joseph syscon...@gmail.com wrote: I've noticed that on the newer distribution (binary, xubuntu fedora) the network connection is automatic whenever someone connects the cable or if cable is disconnected it switches to wife. Is it the function of the new systemd or it is a new program? I'm still using rc -- Joseph NetworkManager is likely the backend that's handling that for those particular distros, unless networkd got a massive overhaul since I last saw anything on it. I recall wicd filled that role seamlessly enough last I used it as well, but it's fallen a bit by the wayside. Even the basic init-script/openrc configured networking is capable of the job with the right settings, though. If I recall, sys-apps/netplug or sys-apps/ifplugd will provide 'hotplug' style configuration on dis/reconnect of a wire, and grouping that with 'disable/enable wifi' calls when the wired interface goes up/down will make it behave that way. From a quick search, this page should give more details on the slightly less auto-magic approach: http://wiki.gentoo.org/wiki/OpenRC_notebook_roaming_How-To -- Poison [BLX] Joshua M. Murphy
Re: [gentoo-user] Re: systemd + openvpn
On Wed, Feb 11, 2015 at 6:26 PM, walt w41...@gmail.com wrote: Yes, I see the same, which I feel is a systemd bug. The escaping trick works only with the 'enable' command, not stop or start. Dumb. It seems more likely to be an error with the unit, which has nothing to do with systemd. As I mentioned already, I had to make some changes in mine. If you write a bad init.d scripts, that isn't an openrc bug either. :) -- Rich
Re: [gentoo-user] Re: Manipulating ext2 image without root access.
On Monday, February 09, 2015 11:05:08 PM Jonathan Callen wrote: On 02/09/2015 10:23 PM, Fernando Rodriguez wrote: Hi, I need a way to manipulate a ext2 HD image as a regular user (without mounting it). All I need is to copy a file to the image (possibly overwritting an existing file). For FAT it can be done with mtools, is there anything like it of ext? It is possible to do this with debugfs(8), although you probably want to run e2fsck(8) on the filesystem after modifying it via debugfs. Keeping a backup copy of the image might not be a bad idea as well. -- Jonathan Callen Thanks, that was helpful. Do you know how to open a partitioned image with it? The only way I could get it to work was to split the image into one for each partition plus one for the partition table, then use debugfs to copy the files, and finally use dd to merge them into one image. -- Fernando Rodriguez signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: systemd not starting wpa_supplicant after last update
On Wed, 11 Feb 2015 14:37:22 -0800, walt wrote: % ls -l /etc/systemd/system/systemd-networkd.service.wants/ systemd-resolved.service - /usr/lib/systemd/system/systemd-resolved.service wpa_supplicant@wlan0.service - /usr/lib64/systemd/system/wpa_supplicant@.service Yes, thank you! Did you use systemctl to make all the symlinks? I just did it all manually and it works, but I'm not sure how I would have done it using systemctl. I see Rich has already answered this because, ironically, I was unable to after a kernel update stopped my wireless from working :( Sod's Law determined that the kernel that broke thing was the one that I decided to try using dracut instead of my home-brewed initramfs, so I started off blaming that for the failure. -- Neil Bothwick You are a completely unique individual, just like everybody else. pgpn4olVW_JzQ.pgp Description: OpenPGP digital signature
[gentoo-user] Re: systemd not starting wpa_supplicant after last update
On 02/11/2015 04:30 PM, Rich Freeman wrote: On Wed, Feb 11, 2015 at 6:37 PM, walt w41...@gmail.com wrote: On 02/11/2015 03:20 PM, Rich Freeman wrote: On Wed, Feb 11, 2015 at 5:37 PM, walt w41...@gmail.com wrote: Yes, thank you! Did you use systemctl to make all the symlinks? I just did it all manually and it works, but I'm not sure how I would have done it using systemctl. systemctl enable service That looks in the unit's install section to see what target it should be associated with. This is actually a nice feature - with openrc it wasn't always obvious when things should go in the boot vs default runlevel, etc. But, all that command does is create the symlinks in the target.wants directory, so you can just create those yourself if you want to. That actually works for anything - you can effectively add a dependency to a unit by creating a directory of the appropriate name and symlinking the dependency inside. The symlink that was puzzling me is this one: wpa_supplicant@wlan0.service - /usr/lib64/systemd/system/wpa_supplicant@.service The name of the symlink is not the same as the .service file it points to. Is there a systemctl command that would do that for me? systemctl enable wpa_supplicant@wlan0 That is an instanced service. It is a bit like creating a symlink from net.lo to net.eth0 in openrc. If you read the service file you'll see that all it does is takes whatever is to the right of the @, tacks on a .conf, and uses that as the openvpn config file. Another example is getty@ - you want to run 6 gettys and they all start/stop independently, so instead of copying the same file 6 times you just parameterize it. Many thanks, I'll try it tomorrow morning when I'm fresh enough to deal with any disaster I may cause :)
Re: [gentoo-user] Switching off some linguas variables
On Thu, 12 Feb 2015 07:59:57 +0100 bitlord bitlord0...@gmail.com wrote: On Wed, 11 Feb 2015 21:09:44 +0200 Gevisz gev...@gmail.com wrote: What is the elegant way to switch off all but one linguas variables for a given package. I have tried all obvious solutions but they seem to do not work. For example, I have tried to put the following line into /etc/portage/package.use file: www-client/chromium -nls -linguas* linguas_en linguas_pl So far I am afraid to recompile everything with global -nls USE flag and LINGUAS=en in /etc/portage/make.conf. So, trying to cut the cat's tail by parts. :) For package specific env, check https://wiki.gentoo.org/wiki//etc/portage/env Thank you for the link. It seems that I need something like described in its Example 1. Will try it later today.
Re: [gentoo-user] Switching off some linguas variables
On Wed, 11 Feb 2015 21:09:44 +0200 Gevisz gev...@gmail.com wrote: What is the elegant way to switch off all but one linguas variables for a given package. I have tried all obvious solutions but they seem to do not work. For example, I have tried to put the following line into /etc/portage/package.use file: www-client/chromium -nls -linguas* linguas_en linguas_pl So far I am afraid to recompile everything with global -nls USE flag and LINGUAS=en in /etc/portage/make.conf. So, trying to cut the cat's tail by parts. :) For package specific env, check https://wiki.gentoo.org/wiki//etc/portage/env
Re: [gentoo-user] netbook connects to Internet automatically, desktop doesn't
On Tue, 10 Feb 2015 19:43:22 -0500, Philip Webb wrote: Can anyone suggest what mb starting Dhcpcd automatically ? net.eth0 starts dhcp by default, unless is is configured to get its address some other way. -- Neil Bothwick Fill what's empty, empty what's full, scratch where it itches. pgpqanSxMJeEt.pgp Description: OpenPGP digital signature
Re: [gentoo-user] netbook connects to Internet automatically, desktop doesn't
On 11/02/15 00:43, Philip Webb wrote: 150210 Mick wrote: Your desktop hasn't. When the link comes up again nothing kicks in to either request an IP address from the DHCP server or to self-configure one temporarily. Either enable IPv4LL or install ifplug/netplug to achieve the same end result. On Tuesday 10 Feb 2015 22:36:00 Philip Webb wrote: Thanks for the suggestion, but I still don't know how to proceed. If you are using dhcpcd it is enabled by default, unless you use -L (-- noipv4ll) in /etc/conf.d/net Have you disabled this in your desktop, or are you not using dhcpcd? Thanks for your patient help (big smile). AFAICS the config of both machines is the same. What I have realised (red face) is that while there is a difference, it is not in resuming the connection after an un/replug, but in starting Dhcpcd after a reboot : both machines automatically pick up the connection again after an unplug, but the netbook starts Dhcpcd automatically after each boot, whereas the desktop needs to be told to do so via 'dhcpcd'. I've searched again for something different between the machines which would explain why one starts Dhcpcd without being told, but the other doesn't : I can't see any difference. 'grep -r dhcp *' in /etc gives the same 2 lines in both machines ; the netbook's syslog shows it starting Dhcpcd immediately after boot, while the desktop's syslog shows nothing till I enter 'dhcpcd'. IIRC the change happened after the recent update of the netbook, which I try to keep as close to the desktop system as is possible (the hardware is different the netbook doesn't use KDE apps etc). Can anyone suggest what mb starting Dhcpcd automatically ? The logs just show it happening Htop doesn't show it depending on anything. using openrc you can just leave /etc/conf.d/net blank and it should start dhcp for you when the interface is started you do have a difference in versions between dhcpcd on desktop and netbook according to the gentoo wiki [1] you are to use either/or dhcpcd and openrc dhcp but this is not clearly spelled out i've never had to # /etc/init.d/dhcpcd start but i have always # emerge dhcpcd i vaguely recall that openrc started it's own version of dhcp client not requiring dhcpcd, but this is not what the handbook [2] says the easy way forward i guess is to just add dhcpcd to default runlevel on the desktop # rc-update add dhcpcd default the confusing bits are that gentoo can use hotplug detection from udev to start/stop interfaces for you magically also netplug/ifplug will detect carrier changes and start/stop magically what would be useful is if you could dump us from desktop and netbook # rc-status [1] http://wiki.gentoo.org/wiki/Network_management_using_DHCPCD [2] http://wiki.gentoo.org/wiki/Complete_Handbook/Configuring_the_system#Manging_network_with_Gentoo_net..2A_scripts
[gentoo-user] Re: Anyone familiar with virt-manager?
On Tue, Feb 10, 2015 at 04:56:13PM -0800, walt wrote: Thanks, Nicolas. I also have a qemu guest win7 image, and the mouse capture works as expected when I run it with virt-manager. No idea why winXP behaves differently, though. Did you check the devices? How did you imported the winXP image into virt-manager? I notice that virt-manager runs qemu without the -enable-kvm flag, and win7 runs significantly slower because of that. Is there some way to convince virt-manager to use the -enable-kvm option? libvirt set the ,accel=kvm command line option, here. I wonder if you have a recent declared ABI. Here it is pc-1.1, hvm: os type arch='x86_64' machine='pc-1.1'hvm/type ... /os -- Nicolas Sebrecht
Re: [gentoo-user] netbook connects to Internet automatically, desktop doesn't
On Wed, 11 Feb 2015 10:38:27 +, thegeezer wrote: the confusing bits are that gentoo can use hotplug detection from udev to start/stop interfaces for you magically also netplug/ifplug will detect carrier changes and start/stop magically ifplugd/netplug should not be configured to start interfaces. They just need to be installed so openrc can use them. -- Neil Bothwick ... I dropped my toothpaste, Tom said, Crestfallen. pgppItPUn8PbQ.pgp Description: OpenPGP digital signature
Re: [gentoo-user] netbook connects to Internet automatically, desktop doesn't
On 11/02/15 11:09, Neil Bothwick wrote: On Wed, 11 Feb 2015 10:38:27 +, thegeezer wrote: the confusing bits are that gentoo can use hotplug detection from udev to start/stop interfaces for you magically also netplug/ifplug will detect carrier changes and start/stop magically ifplugd/netplug should not be configured to start interfaces. They just need to be installed so openrc can use them. ah yeah quite right i should have been clearer re: netifrc start and interface start --- they add inactive to the status when there is no connection so the states go /etc/init.d/net.blah start stopped inactive started and only trigger the netifrc start process when going from inactive started but they do stop from a netifrc perspective the interface when going started inactive i.e. routes and IP addresses are added/removed, but the interface is still up (but unplugged) better to use hotplug imo but different use cases need different things
Re: [gentoo-user] netbook connects to Internet automatically, desktop doesn't
On 11/02/15 10:38, thegeezer wrote: i vaguely recall that openrc started it's own version of dhcp client yes it did [3] http://wiki.gentoo.org/wiki/Network_management_using_DHCPCD/OpenRC_message [4] https://groups.google.com/forum/#!topic/linux.gentoo.dev/D_sFyfaQl2Y not requiring dhcpcd, but this is not what the handbook [2] says the easy way forward i guess is to just add dhcpcd to default runlevel on the desktop # rc-update add dhcpcd default the confusing bits are that gentoo can use hotplug detection from udev to start/stop interfaces for you magically also netplug/ifplug will detect carrier changes and start/stop magically what would be useful is if you could dump us from desktop and netbook # rc-status [1] http://wiki.gentoo.org/wiki/Network_management_using_DHCPCD [2] http://wiki.gentoo.org/wiki/Complete_Handbook/Configuring_the_system#Manging_network_with_Gentoo_net..2A_scripts
[gentoo-user] Re: rebuild of graphviz failed
wabenbau at gmail.com writes: after the last update, rebuild of graphviz failed with: Already reported https://bugs.gentoo.org/show_bug.cgi?id=537850 I did a trick, downgraded libtool, installed graphviz, upgraded libtool ... (worked for me on two systems) That's one fix. THX a lot for the information and the workaround. It also worked for me. Another fix is to use the 'fix_libtool_files.sh' script. hth, James
Re: [gentoo-user] nomachine -- nxserver-freenx
Client-side rendering works just fine with NX (including x2go). You just have to watch your screen paint every time you scroll an application like chrome that uses it. Instead of sending the text your X client sends NX an image, just like VNC. I thought the NX 4.0 packages (free and commercial) have a runtime option to run either in 1) VNC type mode (default) or 2) light-mode (optimized for desktop and non graphics intensive). This was discussed in one of the nomachine hosted forums. I'm homeschooling my kids and wanted to give them access to mathematica/system modeler/and the full set of interesting apps installed here on the home gentoo server. I did end up purchasing the 4-user linux terminal server option here for only roughly $125/yr. I tested x2go first and while it performed fine for a single app but had too many issues in desktop mode or with overall usability.