Re: [gentoo-user] setxkbmap does not work after upgrading to KDE4
On Tuesday 13 October 2009 20.51:52 Dan Johansson wrote: After upgrading to KDE4 the other day my keyboard mapping stopped working. I traced it back to setxkbmap. Manually entering setxkbmap (with extra verbosity) gives the following: $ setxkbmap -model logicd -layout ch -variant de_nodeadkeys -v 10 Setting verbose level to 10 locale is C Warning! Multiple definitions of keyboard model Using command line, ignoring X server Warning! Multiple definitions of keyboard layout Using command line, ignoring X server Applied rules from evdev: model: logicd layout: ch variant:de_nodeadkeys Trying to build keymap using the following components: keycodes: evdev+aliases(qwerty) types: complete compat: complete symbols:pc+ch(de_nodeadkeys)+inet(evdev) geometry: pc(pc104) Error loading new keyboard description Any suggestion on what could be wrong? Regards, Just an update... The problem was not with the KDE3.5 - KDE4.3.1 but with with my Xorg setup. After googling a bit and finally change my content of /etc/hal/fdi/policy/10-use-ch-layout.fdi to the right values it's almost working 100% (I'll open a new thread on my remaining problem). -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** signature.asc Description: This is a digitally signed message part.
[gentoo-user] Can not get Hotkeys to work after update to KDE4
After updating from KDE3.5 to KDE4.3.1 I can not get my Hotkeys to work. For example the following the following two Hotkeys 1) I want the PrintScreen button to start ksnapshot and I activated the Printscreen action in System Settings - Input Actions - Preset Action - Printscreen. 2) I want to start dolphin when I press Win+E, and have defined an action in System Settings - Input Actions - DJ - Dolphin when pressing Win+E But non of these works. Nothings happens when I press the keys. Here is some output from xev when pressing PrintScreen and then Win+E 8--- FocusOut event, serial 34, synthetic NO, window 0x4c1, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 34, synthetic NO, window 0x4c1, mode NotifyUngrab, detail NotifyAncestor KeymapNotify event, serial 34, synthetic NO, window 0x0, keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 KeyRelease event, serial 34, synthetic NO, window 0x4c1, root 0x253, subw 0x0, time 61843589, (-314,-249), root:(2064,523), state 0x10, keycode 107 (keysym 0xff61, Print), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 34, synthetic NO, window 0x4c1, root 0x253, subw 0x0, time 61935723, (-315,-170), root:(2063,602), state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 34, synthetic NO, window 0x4c1, root 0x253, subw 0x0, time 61935987, (-315,-170), root:(2063,602), state 0x50, keycode 26 (keysym 0x65, e), same_screen YES, XLookupString gives 1 bytes: (65) e XmbLookupString gives 1 bytes: (65) e XFilterEvent returns: False KeyRelease event, serial 34, synthetic NO, window 0x4c1, root 0x253, subw 0x0, time 61936067, (-315,-170), root:(2063,602), state 0x50, keycode 26 (keysym 0x65, e), same_screen YES, XLookupString gives 1 bytes: (65) e XFilterEvent returns: False KeyRelease event, serial 34, synthetic NO, window 0x4c1, root 0x253, subw 0x0, time 61936123, (-315,-170), root:(2063,602), state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False 8--- Any suggestions? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Portage strangeness with imagemagick
Today when I do an update world on one of my serves I get the following: 8-- # emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend --tree These are the packages that would be merged, in reverse order: Calculating dependencies... done! emerge: there are no ebuilds built with USE flags to satisfy =x11- libs/cairo-1.6[X]. !!! One of the following packages is required to complete your request: - x11-libs/cairo-1.8.8 (Change USE: +X) (dependency required by x11-libs/gtk+-2.16.6 [ebuild]) (dependency required by media-gfx/ufraw-0.15-r1 [ebuild]) (dependency required by media-gfx/imagemagick-6.5.2.9 [ebuild]) (dependency required by www-apps/gallery-2.3 [ebuild]) (dependency required by world [argument]) 8-- As this is a server I really do not want/need X on this host. To see with which USE-flags my imagemagick is compiled I do: 8-- # eix media-gfx/imagemagick [I] media-gfx/imagemagick Available versions: 6.5.2.9!u ~6.5.4.10!u ~6.5.7.0!u {X autotrace bzip2 corefonts djvu doc fftw fontconfig fpx graphviz gs hdri jbig jpeg jpeg2k lcms lqr nocxx openexr openmp perl png q32 q8 raw svg tiff truetype wmf xml zlib} Installed versions: 6.5.2.9!u(11:02:58 10/04/09)(bzip2 corefonts jbig jpeg perl png tiff xml zlib -X -djvu -doc -fontconfig -fpx -graphviz -gs -hdri -jpeg2k -lcms -nocxx -openexr -openmp -q32 -q8 -raw -svg -truetype -wmf) Homepage:http://www.imagemagick.org/ Description: A collection of tools and libraries for many image formats 8-- From this I see that my Imagemagick is installed with the following USE-flags: bzip2 corefonts jbig jpeg perl png tiff xml zlib and now for the strange part (as far as I know): 8-- # emerge --verbose --pretend media-gfx/imagemagick These are the packages that would be merged, in order: Calculating dependencies... done! emerge: there are no ebuilds built with USE flags to satisfy =x11- libs/cairo-1.6[X]. !!! One of the following packages is required to complete your request: - x11-libs/cairo-1.8.8 (Change USE: +X) (dependency required by x11-libs/gtk+-2.16.6 [ebuild]) (dependency required by media-gfx/ufraw-0.15-r1 [ebuild]) (dependency required by media-gfx/imagemagick-6.5.2.9 [ebuild]) (dependency required by media-gfx/imagemagick [argument]) 8-- But: 8-- # USE=-* bzip2 corefonts jbig jpeg perl png tiff xml zlib emerge --verbose --pretend media-gfx/imagemagick These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-gfx/imagemagick-6.5.2.9 USE=bzip2 corefonts jbig jpeg perl png tiff xml zlib -X -djvu -doc -fontconfig -fpx -graphviz -gs -hdri - jpeg2k -lcms -nocxx -openexr -openmp -q32 -q8 -raw -svg -truetype -wmf 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB 8-- I can not see why it works if I first deletes all USE flags (-*) and the just sets the USE flags I need again. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Portage strangeness with imagemagick
On Thursday 29 October 2009 19.52:52 Dirk Heinrichs wrote: Am Donnerstag 29 Oktober 2009 19:39:27 schrieb Dan Johansson: Today when I do an update world on one of my serves I get the following: 8--- -- - # emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend --tree These are the packages that would be merged, in reverse order: Calculating dependencies... done! emerge: there are no ebuilds built with USE flags to satisfy =x11- libs/cairo-1.6[X]. !!! One of the following packages is required to complete your request: - x11-libs/cairo-1.8.8 (Change USE: +X) (dependency required by x11-libs/gtk+-2.16.6 [ebuild]) (dependency required by media-gfx/ufraw-0.15-r1 [ebuild]) (dependency required by media-gfx/imagemagick-6.5.2.9 [ebuild]) (dependency required by www-apps/gallery-2.3 [ebuild]) (dependency required by world [argument]) 8--- -- - As this is a server I really do not want/need X on this host. So why do have gtk+ in your USE, then? That's the one that makes ufraw pull in gtk+ which in turn wants cairo with the X flag. OTOH, this doesn't mean you'll get X installed on your machine. You'll only get a handful of X libs. I can not see why it works if I first deletes all USE flags (-*) and the just sets the USE flags I need again. Because it's not imagemagick that wants cairo with X (which the emerge output above clearly states). Bye... Dirk Yes, I can see that it's not imagemagick directly that pulls in cairo. And I do not have the gtk USE flag set: # euse -i gtk global use flags (searching: gtk) [-] gtk - Adds support for x11-libs/gtk+ (The GIMP Toolkit) ...snip... -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Portage strangeness with imagemagick
On Thursday 29 October 2009 20.16:24 Alan McKinnon wrote: On Thursday 29 October 2009 21:08:27 Dan Johansson wrote: On Thursday 29 October 2009 19.52:52 Dirk Heinrichs wrote: Am Donnerstag 29 Oktober 2009 19:39:27 schrieb Dan Johansson: Today when I do an update world on one of my serves I get the following: 8--- -- -- -- - # emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend --tree These are the packages that would be merged, in reverse order: Calculating dependencies... done! emerge: there are no ebuilds built with USE flags to satisfy =x11- libs/cairo-1.6[X]. !!! One of the following packages is required to complete your request: - x11-libs/cairo-1.8.8 (Change USE: +X) (dependency required by x11-libs/gtk+-2.16.6 [ebuild]) (dependency required by media-gfx/ufraw-0.15-r1 [ebuild]) (dependency required by media-gfx/imagemagick-6.5.2.9 [ebuild]) (dependency required by www-apps/gallery-2.3 [ebuild]) (dependency required by world [argument]) 8--- -- -- -- - As this is a server I really do not want/need X on this host. So why do have gtk+ in your USE, then? That's the one that makes ufraw pull in gtk+ which in turn wants cairo with the X flag. OTOH, this doesn't mean you'll get X installed on your machine. You'll only get a handful of X libs. I can not see why it works if I first deletes all USE flags (-*) and the just sets the USE flags I need again. Because it's not imagemagick that wants cairo with X (which the emerge output above clearly states). Bye... Dirk Yes, I can see that it's not imagemagick directly that pulls in cairo. And I do not have the gtk USE flag set: # euse -i gtk global use flags (searching: gtk) [-] gtk - Adds support for x11-libs/gtk+ (The GIMP Toolkit) ...snip... ufraw's DEPEND: RDEPEND=media-libs/jpeg =media-libs/lcms-1.13 media-libs/tiff =x11-libs/gtk+-2.4.0 You don't have a choice. With ufraw you are going to get gtk+. imagemagick pulls in ufraw: RDEPEND=raw? ( media-gfx/ufraw ) But you have -raw in USE for imagemagick Hmm. What does emerge --info have to say about USE=raw? What does emerge -pvt imagemagick have to say? I'm thinking raw may be overridden in your profile. what profile are you using? That was it, if I put -raw in make.conf I am able to upgrade imagemagick without pulling in all the X stuff (~25 new packages). -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Howto put a submenu on the Panel in KDE4
In KDE3 I was having some of the sub-menus from the Application Menu direct accessible from the Panel. I can not figure out how to do this in KDE4. I can only add the complete Application Menu to the Panel but not a sub-menu. Any tips on how to solve this? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Firefox-bin does not find my CUPS-Printers
As of lately my Firefox-bin (running on AMD64) does not find any of my CUPS Printers, only Print to File and LPR are available for printing. From every other program I can print normally (even from gtk-demo - printing) I have looked at http://bugs.gentoo.org/show_bug.cgi?id=266678 but that did not help. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Firefox-bin does not find my CUPS-Printers
On Sunday 31 January 2010 12.02:23 Helmut Jarausch wrote: On 30 Jan, Dan Johansson wrote: As of lately my Firefox-bin (running on AMD64) does not find any of my CUPS Printers, only Print to File and LPR are available for printing. From every other program I can print normally (even from gtk-demo - printing) I have looked at http://bugs.gentoo.org/show_bug.cgi?id=266678 but that did not help. I had the same problem here. The only (but perfect) solution was to abandon Firefox-bin in favour of Firefox. The compilation took a minute only (since most functionality is in xulrunner, which I need anyway). In addition plugins are working (better) now since firefox-bin is a 32 bit application on a 64 bit machine which isn't ideal. Yes, the problem is the plugins - that is why I was forced to change to firefox-bin in the first place when I moved to AMD64 (some years ago). Have you got Shockwave, Java, Adobe to work with the Standard (Gentoo way) Firefox? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Amarok won't play my mp3's anymore
After doing an emerge --update world today and rebooting my compi Amarok will not play my mp3's anymore. I get the following error message Too many errors encountered in playlist. Playback has stopped. I have tried to delete ~/.xine as suggested after a google search on the error string. If I start Amarok with the --debug flag I see the following output: --8- amarok: [EngineController] [WARNING!] Phonon failed to play this URL. Error: 17:24:15: input_file: File not found: file:///var/Music/mp3/Wilmer%20X/Den%20bl%C3%83%C2%A5%20v%C3%83%C2%A4gen%20hem%20-%20En%20samling/06%20-%20Teddys%20rum.mp3 --8- The file is there: $ ll /var/Music/mp3/Wilmer\ X/Den\ blå\ vägen\ hem\ -\ En\ samling/06\ -\ Teddys\ rum.mp3 -rwxr--r-- 1 dan users 5645291 Jul 2 2002 /var/Music/mp3/Wilmer X/Den bl?? v??gen hem - En samling/06 - Teddys rum.mp3 The only thing I can see that was upgraded during the update wit relation to sound is media-sound:phonon (4.3.50_pre20090520 - 4.3.80-r1) Any suggestions? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Amarok won't play my mp3's anymore
On Saturday 20 February 2010 18.57:20 Stroller wrote: On 20 Feb 2010, at 16:45, Dan Johansson wrote: ... If I start Amarok with the --debug flag I see the following output: --8 - amarok: [EngineController] [WARNING!] Phonon failed to play this URL. Error: 17:24:15: input_file: File not found: file:///var/Music/mp3/Wilmer%20X/Den%20bl%C3%83%C2%A5%20v%C3%83%C2%A4gen %20hem%20-%20En%20samling/06%20-%20Teddys%20rum.mp3 --8 - The file is there: $ ll /var/Music/mp3/Wilmer\ X/Den\ blå\ vägen\ hem\ -\ En\ samling/ 06\ -\ Teddys\ rum.mp3 -rwxr--r-- 1 dan users 5645291 Jul 2 2002 /var/Music/mp3/Wilmer X/ Den bl?? v??gen hem - En samling/06 - Teddys rum.mp3 Have you even tried copying this file to the current working directory and naming it with no non-English characters? Try a foo.mp3 file with no tags. Does it work? Playing a mp3-file containing no non-ascii characters works OK, but as soon as Amarok tries to play a file containing UTF8 characters it fails. I have found the following KDE bug https://bugs.kde.org/show_bug.cgi?id=198008 which is the same problem as I have. I am now playing with convmv to see if changing the encoding to/from UTF8 changes anything. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Manual pages (man pages) have ESC all through them when having used sudo.
On Sunday 28 February 2010 04.57:36 ubiquitous1980 wrote: If I have logged in through sudo such as $ sudo su, when I then use man pages, they are covered in ESC. This does not occur when using normal user accounts or the root account through su. Wondering what is going on. Thanks. And I have the exact opposite on one of my rigs. Viewing man pages as a normal user and it get cluttered with ESC..., but view the same page after doing a 'sudo su -' everything is OK. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Changed behavior of portage when using FEATURES=getbinpkg
I have a setup where I have one development host and one production host. On the dev-host I have FEATURES=buildpkg and on the prod-host I have FEATURES=getbinpkg and PORTAGE_BINHOST=http://192.168.4.4/portage-i686/; (this is my dev-host) set. A few days ago, after the two hosts has been down for an extended time (since Nov last year) I can no longer install/update an packages on the prod-host. Here is an example of how it looks like : ---8- # emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world These are the packages that would be merged, in order: Calculating dependencies Fetching bininfo from http://192.168.4.4/portage-i686/ Loaded metadata pickle. cache miss: '0' --- cache hit: '470' ... done! [binary U ] sys-apps/portage-2.1.7.17 [2.1.7.16] USE=-build -doc -epydoc (-python3) (-selinux) LINGUAS=-pl Total: 1 package (1 upgrade, 1 binary), Size of downloads: 0 kB Emerging binary (1 of 1) sys-apps/portage-2.1.7.17 --2010-03-05 17:54:15-- http://192.168.4.4/portage-i686/portage-2.1.7.17.tbz2 Connecting to 192.168.4.4:80... connected. HTTP request sent, awaiting response... 200 OK Length: 568929 (556K) [text/plain] Saving to: `/usr/portage/packages/sys-apps/portage-2.1.7.17.tbz2' 0K .. .. .. .. .. 8% 1.75M 0s 50K .. .. .. .. .. 17% 4.30M 0s 100K .. .. .. .. .. 26% 20.8M 0s 150K .. .. .. .. .. 35% 6.12M 0s 200K .. .. .. .. .. 44% 2.16M 0s 250K .. .. .. .. .. 53% 1.84M 0s 300K .. .. .. .. .. 62% 2.60M 0s 350K .. .. .. .. .. 71% 84.4M 0s 400K .. .. .. .. .. 80% 72.0M 0s 450K .. .. .. .. .. 89% 12.5M 0s 500K .. .. .. .. .. 98% 135M 0s 550K . 100% 2.73M=0.1s 2010-03-05 17:54:15 (4.42 MB/s) - `/usr/portage/packages/sys- apps/portage-2.1.7.17.tbz2' saved [568929/568929] !!! Digest verification failed: !!! /usr/portage/packages/sys-apps/portage-2.1.7.17.tbz2 !!! Reason: Filesize does not match recorded size !!! Got: 568929 !!! Expected: 2224676 File renamed to '/usr/portage/packages/sys- apps/portage-2.1.7.17.tbz2._checksum_failure_.IJVYZY' Failed to emerge sys-apps/portage-2.1.7.17, Log file: '/var/log/portage/sys-apps:portage-2.1.7.17:20100305-165414.log' ---8- The size 568929 matches the size on dev and prod: dev: # ll /usr/portage/packages/sys-apps/portage-2.1.7.17.tbz2 /usr/portage/packages/All/portage-2.1.7.17.tbz2 -rw-r--r-- 1 root root 568929 Mar 5 17:53 /usr/portage/packages/All/portage-2.1.7.17.tbz2 lrwxrwxrwx 1 root root 28 Mar 5 17:53 /usr/portage/packages/sys- apps/portage-2.1.7.17.tbz2 - ../All/portage-2.1.7.17.tbz2 prod: # ll /usr/portage/packages/sys- apps/portage-2.1.7.17.tbz2._checksum_failure_.IJVYZY -rw-r--r-- 1 root root 568929 Mar 5 17:53 /usr/portage/packages/sys- apps/portage-2.1.7.17.tbz2._checksum_failure_.IJVYZY What has happened and how to solve it? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Xinerama and Xrandr
I have been playing with my X-configuration this weekend and I can not really get it to work the way I like. My desktop box has two Nvidia cards installed with one monitor connected to each. On to of that I am running KDE (v 4.3.5 at the moment). # lspci | grep VGA 01:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8400 GS] (rev a1) 05:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8400 GS] (rev a1) If I have Option Xinerama on in the ServerLayout section in xorg.conf then KDE uses both monitors (in Xinerama mode) but I can not use any Desktop effects as Compositing is not supported. Also a lot of GUI programs reports Xlib: extension RANDR missing on display :0.0. If I set Option Xinerama off in xorg.conf then KDE only runs on one of the monitors and the Desktop effects works great. And the other GUI's does not give me that Xlkib error message. But now the only way to start a GUI on the second Monitor is to prefix it with DISPLAY=:0.1 or use --display :0.1. Does someone have any suggestion how I can get the best of both worlds? i.e. Compositing KDE using both monitors. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] gentoo-wiki.com
Hallo, Someone knows what's up with gentoo-wiki.com? I get a Connection to 207.98.216.138 Failed and downforeveryoneorjustme.com reports It's not just you! http://gentoo-wiki.com looks down from here. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] gentoo-wiki.com
On Friday 02 April 2010 16.50:56 erdun...@gmail.com wrote: On Fri, Apr 02, 2010 at 09:34:12AM -0500, Paul Hartman wrote: On Fri, Apr 2, 2010 at 8:24 AM, Dan Johansson dan.johans...@dmj.nu wrote: Hallo, Someone knows what's up with gentoo-wiki.com? I get a Connection to 207.98.216.138 Failed and downforeveryoneorjustme.com reports It's not just you! http://gentoo-wiki.com looks down from here. Looks like his other website (gentoo-portage.com) is also down. He hasn't posted anything about it on his Twitter account. http://twitter.com/mikevalstar The machine doesn't even respond to ping… pts/1:erdun...@alice:/home/erdunand % ping gentoo-wiki.com [16:39] PING gentoo-wiki.com (207.98.216.138) 56(84) bytes of data. ^C --- gentoo-wiki.com ping statistics --- 12 packets transmitted, 0 received, 100% packet loss, time 11000ms I didn't know about downforeveryoneorjustme.com It gives me the same answer though. Do you know how they test if the computer is up ? No, I have no idea on how they do it. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] gentoo-wiki.com
On Friday 02 April 2010 17.06:31 Dan Johansson wrote: On Friday 02 April 2010 16.50:56 erdun...@gmail.com wrote: On Fri, Apr 02, 2010 at 09:34:12AM -0500, Paul Hartman wrote: On Fri, Apr 2, 2010 at 8:24 AM, Dan Johansson dan.johans...@dmj.nu wrote: Hallo, Someone knows what's up with gentoo-wiki.com? I get a Connection to 207.98.216.138 Failed and downforeveryoneorjustme.com reports It's not just you! http://gentoo-wiki.com looks down from here. Looks like his other website (gentoo-portage.com) is also down. He hasn't posted anything about it on his Twitter account. http://twitter.com/mikevalstar The machine doesn't even respond to ping… pts/1:erdun...@alice:/home/erdunand % ping gentoo-wiki.com [16:39] PING gentoo-wiki.com (207.98.216.138) 56(84) bytes of data. ^C --- gentoo-wiki.com ping statistics --- 12 packets transmitted, 0 received, 100% packet loss, time 11000ms I didn't know about downforeveryoneorjustme.com It gives me the same answer though. Do you know how they test if the computer is up ? No, I have no idea on how they do it. gentoo-wiki.com is up and running again. (:-) -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] KVM and Networking setup
I have been playing with KVM (replacing VMware-Server) and I need to setup my network for the Guests like this: 8--- brctl addbr br-eth1 brctl addbr br-eth2 brctl addbr br-eth3 brctl setfd br-eth1 0 brctl setfd br-eth2 0 brctl setfd br-eth3 0 brctl sethello br-eth1 1 brctl sethello br-eth2 1 brctl sethello br-eth3 1 brctl stp br-eth1 off brctl stp br-eth2 off brctl stp br-eth3 off brctl addif br-eth1 eth1 brctl addif br-eth2 eth2 brctl addif br-eth3 eth3 tunctl -b -t qtap1 tunctl -b -t qtap2 tunctl -b -t qtap3 brctl addif br-eth1 qtap1 brctl addif br-eth2 qtap2 brctl addif br-eth3 qtap3 ifconfig qtap1 up 0.0.0.0 promisc ifconfig qtap2 up 0.0.0.0 promisc ifconfig qtap3 up 0.0.0.0 promisc ifconfig br-eth1 192.168.4.1/24 up ifconfig br-eth2 0.0.0.0 up ifconfig br-eth3 0.0.0.0 up ifconfig eth1 0.0.0.0 up ifconfig eth2 0.0.0.0 up ifconfig eth3 0.0.0.0 up 8--- Today I do this manually before a start the KVM-Guests, but now I would like to have this (the network setup) done automatically with the normal init scripts. I could put everything in local but then some services on the Host (e.g. Bind) can not see all interfaces when started and has to be restarted again after local. What would be the correct syntax for /etc/conf.d/net for this setup (still at baselayout-1). Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] replacement for pdftk
After a recent gcc upgrade (4.3.4 - 4.4.3-r2) on an amd64, pdftk won't compile anymore. Although I like the pdtk I'm looking for a replacement as pdft is no more maintained (last release November 28, 2006). Any suggestions for a good command line tool to manage PDFs like pdftk (split (burst) a PDF, combine two or more PDFs, Rotate PDFs and so on)? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] tbz2 flag
I have two Gentoo Hosts that are (should be) 100% equal except on the following points: a) Hostname b) IP c) One Host has FEATURES=fixpackages buildpkg while the other has FEATURES=fixpackages As far as I know I have no other differences between the systems (same USE flags, same packages installed), but still I can see one difference: For instance: Host-A: # eix -I portage-uti [I] app-portage/portage-utils Available versions: 0.2.1{tbz2} 0.3.1{tbz2} ~0.4 {static} Installed versions: 0.3.1{tbz2}(20:46:47 06/10/10)(-static) Homepage:http://www.gentoo.org/ Description: small and fast portage helper tools written in C Host-B: # eix -I portage-utils [I] app-portage/portage-utils Available versions: 0.2.1 0.3.1 ~0.4 {static} Installed versions: 0.3.1(20:47:10 06/10/10)(-static) Homepage:http://www.gentoo.org/ Description: small and fast portage helper tools written in C As you can see on host-A there is a tbz2 flag but on host-B there is not (portage-utils is just one example there are a lot more). I have probably missed something easy, but I can not figure out how to enable this flag on host-B. Suggestions? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] tbz2 flag
On Saturday 12 June 2010 18.22:06 Daniel Pielmeier wrote: Dan Johansson schrieb am 12.06.2010 17:28: I have two Gentoo Hosts that are (should be) 100% equal except on the following points: a) Hostname b) IP c) One Host has FEATURES=fixpackages buildpkg while the other has FEATURES=fixpackages As you can see on host-A there is a tbz2 flag but on host-B there is not (portage-utils is just one example there are a lot more). I have probably missed something easy, but I can not figure out how to enable this flag on host-B. Suggestions? Difference c) is causing this. Eix shows for which package there is a binary package stored as tbz2 archive. OK, that explains it. Host-A is designed as a build host and host-B shall es those prebuild binaries in the future. Thanks! -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Access to an embedded microSDHC card?
On Friday 30 July 2010 10.03:11 Helmut Jarausch wrote: Hi, when I attach my Garmin GPSmap 62s with an installed microSDHC card to a USB port, I only see one device which is the internal storage of the Garmin. On Windows I see a second mass storage device (the microSD card) in addition. How to access this internal SD card or how to debug the problem. Many thanks for a hint, Helmut. Do you have the Probe all LUNs on each SCSI device (CONFIG_SCSI_MULTI_LUN=y) kernel parameter set? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Up-/Down-grade of KDE
Yesterday my ~x86 Gentoo box got KDE upgraded to 4.5.1 and today portage want to downgrade it again to 4.4.5 and I can not figure out why. My emerge --update --deep --verbose --reinstall changed-use world --pretend gives a lot of output for KDE-components like this: ebuild NS ] kde-base/kdebase-meta-4.4.5 [4.5.1] USE=(-aqua) (-kdeprefix) 0 kB [uninstall] kde-base/kdebase-meta-4.5.1 USE=(-aqua) (-kdeprefix) [blocks b ] kde-base/kdebase-meta:4.5[-kdeprefix] (kde-base/kdebase- meta:4.5[-kdeprefix] is blocking kde-base/kdebase-meta-4.4.5) [blocks b ] kde-base/kdebase-meta:4.4[-kdeprefix] (kde-base/kdebase- meta:4.4[-kdeprefix] is blocking kde-base/kdebase-meta-4.5.1) Any suggestion on what I have screwed up? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Up-/Down-grade of KDE
On Sunday 12 September 2010 12.11:14 Dan Johansson wrote: Yesterday my ~x86 Gentoo box got KDE upgraded to 4.5.1 and today portage want to downgrade it again to 4.4.5 and I can not figure out why. My emerge --update --deep --verbose --reinstall changed-use world --pretend gives a lot of output for KDE-components like this: ebuild NS ] kde-base/kdebase-meta-4.4.5 [4.5.1] USE=(-aqua) (-kdeprefix) 0 kB [uninstall] kde-base/kdebase-meta-4.5.1 USE=(-aqua) (-kdeprefix) [blocks b ] kde-base/kdebase-meta:4.5[-kdeprefix] (kde-base/kdebase- meta:4.5[-kdeprefix] is blocking kde-base/kdebase-meta-4.4.5) [blocks b ] kde-base/kdebase-meta:4.4[-kdeprefix] (kde-base/kdebase- meta:4.4[-kdeprefix] is blocking kde-base/kdebase-meta-4.5.1) Any suggestion on what I have screwed up? OK, I found Bug 336158 (http://bugs.gentoo.org/show_bug.cgi?id=336158). Sorry for the noise. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] [OT] Problems with libvirt / qemu
I know this is of topic, but this is one of the few lists where you mostly get a competent answer. I have a small problem with libvirt / qemu. I have created a guest (also gentoo) on a gentoo hosts and when I start it from the command-line the guests starts OK, but when I start the guest through libvirt with virsh start I get Booting from Hard Disk... Boot failed: not a bootable disk No bootable device This is the command-line I use to start the guest (which works) cd /var/lib/kvm/Wilmer; /usr/bin/qemu-system-x86_64 --enable-kvm \ -net nic,vlan=1,model=rtl8139,macaddr=DE:ED:BE:EF:01:03 -net tap,vlan=1,ifname=qtap13,script=no,downscript=no \ -net nic,vlan=3,model=rtl8139,macaddr=DE:ED:BE:EF:03:03 -net tap,vlan=3,ifname=qtap33,script=no,downscript=no \ -m 2048 -k de-ch -vnc :3 -daemonize \ Wilmer.qcow2 The libvirt XML-file was created using virsh domxml-from-native qemu-argv and this is the result of that conversion: domain type='kvm' namewilmer/name uuida421968d-0573-1356-8cb7-32caff525a03/uuid memory2097152/memory currentMemory2097152/currentMemory vcpu2/vcpu os type arch='x86_64' machine='pc-0.12'hvm/type boot dev='hd'/ /os features acpi/ /features clock offset='utc'/ on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashdestroy/on_crash devices emulator/usr/bin/qemu-system-x86_64/emulator disk type='file' device='disk' source file='/var/lib/kvm/Wilmer/Wilmer.qcow2'/ target dev='hda' bus='ide'/ address type='drive' controller='0' bus='0' unit='0'/ /disk controller type='ide' index='0' address type='pci' domain='0x' bus='0x00' slot='0x01' function='0x1'/ /controller interface type='ethernet' mac address='de:ed:be:ef:01:03'/ script path='no'/ target dev='qtap13'/ model type='rtl8139'/ address type='pci' domain='0x' bus='0x00' slot='0x04' function='0x0'/ /interface interface type='ethernet' mac address='de:ed:be:ef:03:03'/ script path='no'/ target dev='qtap33'/ model type='rtl8139'/ address type='pci' domain='0x' bus='0x00' slot='0x05' function='0x0'/ /interface input type='mouse' bus='ps2'/ graphics type='vnc' port='5903' autoport='no' listen=''/ video model type='cirrus' vram='9216' heads='1'/ address type='pci' domain='0x' bus='0x00' slot='0x02' function='0x0'/ /video /devices /domain Anyone seeing something obvious that I have missed? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Re: [OT] Problems with libvirt / qemu
On Sunday 10 October 2010 20.08:26 walt wrote: On 10/10/2010 07:05 AM, Dan Johansson wrote: I know this is of topic, but this is one of the few lists where you mostly get a competent answer. I have a small problem with libvirt / qemu. I have created a guest (also gentoo) on a gentoo hosts and when I start it from the command-line the guests starts OK, but when I start the guest through libvirt with virsh start I get Booting from Hard Disk... Boot failed: not a bootable disk No bootable device This is the command-line I use to start the guest (which works) cd /var/lib/kvm/Wilmer; /usr/bin/qemu-system-x86_64 --enable-kvm \ -net nic,vlan=1,model=rtl8139,macaddr=DE:ED:BE:EF:01:03 -net tap,vlan=1,ifname=qtap13,script=no,downscript=no \ -net nic,vlan=3,model=rtl8139,macaddr=DE:ED:BE:EF:03:03 -net tap,vlan=3,ifname=qtap33,script=no,downscript=no \ -m 2048 -k de-ch -vnc :3 -daemonize \ Wilmer.qcow2 The libvirt XML-file was created using virsh domxml-from-native qemu-argv and this is the result of that conversion: boot dev='hd'/ You obviously know more about libvirt than I do, but I'm wondering about that 'hd'. qemu knows enough to interpret Wilmer.qcow2 as the boot disk, but maybe libvirt isn't that smart. I'd maybe try using an explicit '-hda Wilmer.qcow2' in your original script so virsh doesn't need to assume anything while converting it. Good point - but that did not help, still the same. :-( -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] [OT] Problems with libvirt / qemu
On Monday 11 October 2010 19.02:10 Ward Poelmans wrote: On Sun, Oct 10, 2010 at 16:05, Dan Johansson dan.johans...@dmj.nu wrote: disk type='file' device='disk' source file='/var/lib/kvm/Wilmer/Wilmer.qcow2'/ target dev='hda' bus='ide'/ address type='drive' controller='0' bus='0' unit='0'/ /disk On my system, this section looks like: disk type='file' device='disk' driver name='qemu' type='qcow2'/ source file='image.qcow2'/ target dev='vda' bus='virtio'/ address type='pci' domain='0x' bus='0x00' slot='0x04' function='0x0'/ /disk Try adding driver name='qemu' type='qcow2'/ to yours? Thanks, that did the trick! Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] suidperl missing after update to perl 5.12.2-r2
Hi, After updating from dev-lang/perl-5.8.8-r8 to dev-lang/perl-5.12.2-r2 I am no missing the suidperl binary. Some of my perl scripts _need_ this feature. Any suggestion on how to be able to execute perl-scritps suid (except downgrade to 5.8.8). Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] suidperl missing after update to perl 5.12.2-r2
On Monday 08 November 2010 20.18:22 Sebastian Beßler wrote: Am 08.11.2010 15:02, schrieb Dan Johansson: Hi, After updating from dev-lang/perl-5.8.8-r8 to dev-lang/perl-5.12.2-r2 I am no missing the suidperl binary. Some of my perl scripts _need_ this feature. Any suggestion on how to be able to execute perl-scritps suid (except downgrade to 5.8.8). Hello, have you run perl-cleaner --phall after the update? If not, do so. No, only perl-cleaner --all was run. I have now run perl-cleaner --phall as well and it did not help - still no suidperl. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] suidperl missing after update to perl 5.12.2-r2
On Wednesday 10 November 2010 18.17:19 Stroller wrote: On 8/11/2010, at 2:02pm, Dan Johansson wrote: ... After updating from dev-lang/perl-5.8.8-r8 to dev-lang/perl-5.12.2-r2 I am no missing the suidperl binary. Some of my perl scripts _need_ this feature. Any suggestion on how to be able to execute perl-scritps suid (except downgrade to 5.8.8). I've been slightly paranoid after a couple of recent updates, so looked to see on my system, and it doesn't have suidperl, either. So I googled it for you: http://bugs.gentoo.org/show_bug.cgi?id=344945 Yeah, I have seen that too (after I started this thread). What I'm looking for now is some wrapper functionality for my CGI-script. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Apache and PHP5
Today I emerged mysql, apache, PHP5, phpmyadmin and joomla on a Laptop (~x86) to be able to play a bit with Joomla. But I can not get phpmyadmin or Joomla to work (both with the same error). Mysql and apache starts OK and the the phpmyadmin setup page (http://localhost/phpmyadmin/setup) loads fine - but when I press the Save-button all I get back is a blank page (the same is true for Joomla - after selecting the language and pressing Next - all I get is a black page)- In apache's error-log I see the following in both cases: [Sat Dec 04 19:54:35 2010] [notice] child pid 3134 exit signal Segmentation fault (11) I've had a look at bugs.gentoo.org but could not find anything with php-5.3.3 or Apache-2.2.16 (just with older versions of php and Apache). Any suggestions on where to start to search for a solution or still better a solution? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Apache and PHP5
On Sunday 05 December 2010 10.02:48 Mick wrote: On Saturday 04 December 2010 19:27:57 Dan Johansson wrote: Today I emerged mysql, apache, PHP5, phpmyadmin and joomla on a Laptop (~x86) to be able to play a bit with Joomla. But I can not get phpmyadmin or Joomla to work (both with the same error). Mysql and apache starts OK and the the phpmyadmin setup page (http://localhost/phpmyadmin/setup) loads fine - but when I press the Save-button all I get back is a blank page (the same is true for Joomla - after selecting the language and pressing Next - all I get is a black page)- In apache's error-log I see the following in both cases: [Sat Dec 04 19:54:35 2010] [notice] child pid 3134 exit signal Segmentation fault (11) I've had a look at bugs.gentoo.org but could not find anything with php-5.3.3 or Apache-2.2.16 (just with older versions of php and Apache). Any suggestions on where to start to search for a solution or still better a solution? This is a pretty obscure fault. It could be some module clash that leads to it. You could try disabling modules you don't need to see what gives, or try emerging older packages. In the meantime I did open a bug (http://bugs.gentoo.org/show_bug.cgi?id=347782) and prompt got a suggestion on what the problem is. The problem is with sys-devel/gcc, I had version 4.5.1-r1 installed and apache does not get cleanly compiled with this version. After reverting back to gcc version 4.4.5 and recompiling apache everything works OK (so far). -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] After updating openldap today slapd won't start
Today after updating openldap from 2.4.23 to 2.4.24, slapd will not start. # /etc/init.d/slapd start * Starting ldap-server ... [ !! ] and I get the following in the log: Feb 20 13:17:01 torsson.dmj.nu slapd[22578]: @(#) $OpenLDAP: slapd 2.4.24 (Feb 20 2011 12:20:51) $ Feb 20 13:17:01 torsson.dmj.nu slapd[22578]: slapd stopped. Feb 20 13:17:01 torsson.dmj.nu slapd[22578]: connections_destroy: nothing to destroy. If I start it by hand (with debug=1) it looks like this: # /usr/lib64/openldap/slapd -u ldap -g ldap -d1 @(#) $OpenLDAP: slapd 2.4.24 (Feb 20 2011 12:20:51) $ @torsson:/var/tmp/portage/net-nds/openldap-2.4.24/work/openldap-2.4.24/servers/slapd ldap_pvt_gethostbyname_a: host=torsson, r=0 daemon_init: listen on ldap:/// daemon_init: 1 listeners to open... ldap_url_parse_ext(ldap:///) daemon: listener initialized ldap:/// daemon_init: 1 listeners opened ldap_create slapd init: initiated server. bdb_back_initialize: initialize BDB backend bdb_back_initialize: Berkeley DB 4.8.30: (2010-08-05) hdb_back_initialize: initialize HDB backend hdb_back_initialize: Berkeley DB 4.8.30: (2010-08-05) slapd destroy: freeing system resources. slapd stopped. connections_destroy: nothing to destroy. Here are slapd.conf (without comments): include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/authldap.schema include /etc/openldap/schema/samba.schema pidfile /var/run/openldap/slapd.pid argsfile/var/run/openldap/slapd.args allow bind_v2 databasehdb suffix dc=dmj,dc=nu checkpoint 32 30 rootdn cn=myroot,dc=dmj,dc=nu rootpw {SSHA}x directory /var/lib/openldap-data index objectClass eq Any suggestion short of reverting to 2.4.23? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] After updating openldap today slapd won't start
On Sunday 20 February 2011 13.25:31 Dan Johansson wrote: Today after updating openldap from 2.4.23 to 2.4.24, slapd will not start. # /etc/init.d/slapd start * Starting ldap-server ... [ !! ] and I get the following in the log: Feb 20 13:17:01 torsson.dmj.nu slapd[22578]: @(#) $OpenLDAP: slapd 2.4.24 (Feb 20 2011 12:20:51) $ Feb 20 13:17:01 torsson.dmj.nu slapd[22578]: slapd stopped. Feb 20 13:17:01 torsson.dmj.nu slapd[22578]: connections_destroy: nothing to destroy. If I start it by hand (with debug=1) it looks like this: # /usr/lib64/openldap/slapd -u ldap -g ldap -d1 @(#) $OpenLDAP: slapd 2.4.24 (Feb 20 2011 12:20:51) $ @torsson:/var/tmp/portage/net-nds/openldap-2.4.24/work/openldap-2.4.24/servers/slapd ldap_pvt_gethostbyname_a: host=torsson, r=0 daemon_init: listen on ldap:/// daemon_init: 1 listeners to open... ldap_url_parse_ext(ldap:///) daemon: listener initialized ldap:/// daemon_init: 1 listeners opened ldap_create slapd init: initiated server. bdb_back_initialize: initialize BDB backend bdb_back_initialize: Berkeley DB 4.8.30: (2010-08-05) hdb_back_initialize: initialize HDB backend hdb_back_initialize: Berkeley DB 4.8.30: (2010-08-05) slapd destroy: freeing system resources. slapd stopped. connections_destroy: nothing to destroy. Here are slapd.conf (without comments): include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/authldap.schema include /etc/openldap/schema/samba.schema pidfile /var/run/openldap/slapd.pid argsfile/var/run/openldap/slapd.args allow bind_v2 databasehdb suffix dc=dmj,dc=nu checkpoint 32 30 rootdn cn=myroot,dc=dmj,dc=nu rootpw {SSHA}x directory /var/lib/openldap-data index objectClass eq Any suggestion short of reverting to 2.4.23? Don't bother... I found it my self. slaptest reported an error in one of the schemas, efter correcting this slapd starts perfectly. Sorry for the noise, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] [OT] PHP memory problem
I know this is Off-topic but I also know there are a lot of smart people lurking on this list. I have a PHP-script that does not run from a web-server but directly in a shell. When I run it I get the following error: # ./dj.php PHP Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 104 bytes) in /usr/local/scripts/includes/dj.inc on line 79 Allowed memory size of 100663296 bytes exhausted (tried to allocate 24 bytes) My scripts starts with: #!/usr/bin/php ?php ini_set('memory_limit', '4192M'); include dj.inc; And in php.ini I have: memory_limit = 1G ; Maximum amount of memory a script may consume Why does PHP not honor my memory limits? I have set 1GB in php.ini and 4192MB (I know that is more then 1GB) and the scripts fails at 100663296 bytes (~ 96MB). I have also tried with other memory settings but I always end up with with the failure at ~96MB. The host has enough RAM (32GB) to support the script. Any suggestions on how to solve the issue (short of rewriting the script in C or C++)? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] [OT] PHP memory problem
On Thursday 14 April 2011 03.12:34 Michael Orlitzky wrote: On 04/13/2011 02:42 PM, Dan Johansson wrote: I know this is Off-topic but I also know there are a lot of smart people lurking on this list. I have a PHP-script that does not run from a web-server but directly in a shell. When I run it I get the following error: # ./dj.php PHP Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 104 bytes) in /usr/local/scripts/includes/dj.inc on line 79 Allowed memory size of 100663296 bytes exhausted (tried to allocate 24 bytes) My scripts starts with: #!/usr/bin/php ?php ini_set('memory_limit', '4192M'); include dj.inc; And in php.ini I have: memory_limit = 1G ; Maximum amount of memory a script may consume Why does PHP not honor my memory limits? I have set 1GB in php.ini and 4192MB (I know that is more then 1GB) and the scripts fails at 100663296 bytes (~ 96MB). I have also tried with other memory settings but I always end up with with the failure at ~96MB. The host has enough RAM (32GB) to support the script. Any suggestions on how to solve the issue (short of rewriting the script in C or C++)? The use of 'G' as a unit was only recently added, in PHP 5.1.0. Try using 'M' instead, and multiplying by 1024. I would also suggest using a number under 4 gigabytes, as you risk overflowing a 32-bit integer. Does '3072M' work? Thanks, that was it. Changing 4G to 4192M in pnp.ini did solve the issue. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Re: Is there a zypper ps (from openSUSE) equivalent for Gentoo?
On Saturday 07 May 2011 20.32:01 Nikos Chantziaras wrote: On 05/07/2011 06:19 PM, justin wrote: On 07/05/11 17:10, Nikos Chantziaras wrote: On openSUSE, there's a very helpful command after performing updates that tells me which running programs are using files that were just overwritten by updated copies. The command is zypper ps. It helps to avoid rebooting the machine (as I have to do in Gentoo), since I know exactly what needs to be restarted (like X, sshd, etc.) Is there something like that in Gentoo? app-admin/lib_users And do not forget app-admin/checkrestart -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Diskless setup fails to mount /
I'm trying to setup a diskless configuration. This is what I have done so far: torsson.dmj.nu (192.168.1.3) is the dhcp/tftp/NFSv4-server abba.dmj.nu (192.168.1.14) is the diskless client In /etc/dhcp/dhcpd.conf I have the following for the client (among other things): # PXE-Boot, abba option option-150 code 150 = text ; ddns-update-style none ; host abba { hardware ethernet 00:90:dc:07:6e:a7; fixed-address 192.168.1.14; filename /abba/boot/pxelinux.0; } And in pxelinux.cfg/default I have the following: label Diskless Gentoo root in NFS kernel bzImage append root=/dev/nfs ip=dhcp init=/bin/sh nfsroot=192.168.1.3:/diskless/abba The kernel (bzImage) loads OK but when it tries to mount the NFS-root I get the following: Root-NFS: Server returned error -13 while mounting /diskless/abba And on the server I see this in syslog: rpc.mountd[6772]: refused mount request from 192.168.1.14 for /diskless/abba (/): not exported This is how my filesystems are mounted ad exported: torsson# grep diskless /etc/fstab /dev/vg00/lvol11/var/diskless reiserfsnoatime 0 2 /var/diskless/abba /export/diskless/abba nonerw,bind 0 0 torsson# mount | grep diskless /dev/mapper/vg00-lvol11 on /var/diskless type reiserfs (rw,noatime) /var/diskless/abba on /export/diskless/abba type none (rw,bind) And this is a part of the /etc/exports /export *(ro,fsid=0,insecure,no_subtree_check,sync) /export/diskless/abba abba.dmj.nu(rw,nohide,insecure,no_root_squash,no_subtree_check,sync) I also have other FS exported like this e.g.: torsson# grep dan /etc/fstab /dev/vg00/lvol05/home/dan reiserfsnoatime 0 2 /home/dan/tmp /export/Queen/tmp nonerw,bind 0 0 torsson# mount | grep dan /dev/mapper/vg00-lvol05 on /home/dan type reiserfs (rw,noatime) /home/dan/tmp on /export/Queen/tmp type none (rw,bind) And in exports: /export *(ro,fsid=0,insecure,no_subtree_check,sync) /export/Queen/tmp queen.dmj.nu(rw,no_root_squash,nohide,no_subtree_check,async) And this client can mount the export: queen# grep torsson /etc/fstab torsson.dmj.nu:/Queen/tmp /home/dan/tmp_torsson nfs4 proto=tcp,soft,intr 0 0 queen# mount | grep torsson torsson.dmj.nu:/Queen/tmp on /home/dan/tmp_torsson type nfs4 (rw,proto=tcp,soft,intr,addr=192.168.1.3,clientaddr=192.168.1.11) Any idea why the diskless client can not mount it's root-FS? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] [OT] iSCSI target
Hi, I wanted to play a bit with iSCSI and wants to setup iSCSI target(s) on one of my servers. Now I find two iSCSI target software's in portage (sys- block/iscsitarget sys-block/open-iscsi). Does anyone out there any experience with either one of these? Pro/Cons? When looking at the web-sites open-iscsi seems dead, last update of web-site 2005 and latest release from July 2009. iscsitarget does not look much better - latest release July 2010. So, what are you using and are you happy with it? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] mISDNuser on kernel 2.6.38
Hi, Has anyone on this list successfully compiled and installed =mISDNuser-1.1.20 on their Gentoo-box running kernel 2.6.38 (or above). I have found some ebuild for this but it fails miserably (even fetches the wrong tar-file). So if you have an ebuild that works, could you pleas post it. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Nedd help with udev-rules.
Hi, I need some help with writing udev-rules for capi. After playing around some I decided to ask for help here as can't really get it to work. What I want ist the following: /dev/capi20 68,0 /dev/capi/capi# 191,# 68,0 = Major 68, Minor 0 191,# = Major 191, Minor 0 untill 31 If I have no udev-rule I get the following: /dev/capi 68,0 /dev/capi# 191,# with 'ATTR{dev}=68:0, NAME=capi20 ' added I only get the following: /dev/capi20 191,32 and with 'ATTR{dev}=191:[0-9]*, NAME=capi/capi%n ' the following: /dev/capi/capi 68,0 /dev/capi/capi# 191,# And with both 'ATTR{dev}=68:0, NAME=capi20 ' and 'ATTR{dev}=191: [0-9]*, NAME=capi/capi%n ' this: /dev/capi/capi 68,0 /dev/capi/capi# 191,# (No change in comparison with only the 'ATTR{dev}=191:...' rule) And if I change the order in the rules-file: /dev/capi20 191,31 Can some udev-crack (or someone else) tell my what I am doing wrong? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Nedd help with udev-rules.
On Sunday 21 August 2011 20.26:40 Dan Johansson wrote: Hi, I need some help with writing udev-rules for capi. After playing around some I decided to ask for help here as can't really get it to work. What I want ist the following: /dev/capi20 68,0 /dev/capi/capi# 191,# 68,0 = Major 68, Minor 0 191,# = Major 191, Minor 0 untill 31 If I have no udev-rule I get the following: /dev/capi 68,0 /dev/capi#191,# with 'ATTR{dev}=68:0, NAME=capi20 ' added I only get the following: /dev/capi20 191,32 and with 'ATTR{dev}=191:[0-9]*, NAME=capi/capi%n ' the following: /dev/capi/capi68,0 /dev/capi/capi# 191,# And with both 'ATTR{dev}=68:0, NAME=capi20 ' and 'ATTR{dev}=191: [0-9]*, NAME=capi/capi%n ' this: /dev/capi/capi68,0 /dev/capi/capi# 191,# (No change in comparison with only the 'ATTR{dev}=191:...' rule) And if I change the order in the rules-file: /dev/capi20 191,31 Can some udev-crack (or someone else) tell my what I am doing wrong? Regards, Hi again, I found the problem (me). The correct syntax should be: ATTR{dev}==68:0, NAME=capi20 ATTR{dev}==191:[0-9]*, NAME=capi/capi%n Notice the '==' instead of '=' after ATTR{dev}. Cheers, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] update world with emul-linux-x86 blocks
Since some time I am getting the following errors while doing update world on my dektop machine (running amd64 stable): -8 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] app-emulation/emul-linux-x86-baselibs-20110722 [20110129] USE=-development 34,381 kB [ebuild U ] app-emulation/emul-linux-x86-opengl-20110722 [20110129-r1] USE=-development 44,036 kB [ebuild U ] app-emulation/emul-linux-x86-xlibs-20110722 [20110129] USE=opengl -development 2,586 kB [ebuild U ] app-emulation/emul-linux-x86-gtklibs-20110722 [20110129] USE=-development 4,714 kB [ebuild U ] app-emulation/emul-linux-x86-medialibs-20110722 [20110129] USE=-development 7,874 kB [ebuild U ] app-emulation/emul-linux-x86-soundlibs-20110722 [20110129] USE=alsa -development -pulseaudio 5,966 kB [ebuild U ] app-emulation/emul-linux-x86-qtlibs-20110722 [20110129] USE=-development 16,626 kB Total: 7 packages (7 upgrades), Size of downloads: 116,180 kB !!! Multiple package instances within a single package slot have been pulled !!! into the dependency graph, resulting in a slot conflict: app-emulation/emul-linux-x86-xlibs:0 (app-emulation/emul-linux-x86-xlibs-20110129::gentoo, installed) pulled in by ~app-emulation/emul-linux-x86-xlibs-20110129 required by (app- emulation/emul-linux-x86-motif-20110129::gentoo, installed) (app-emulation/emul-linux-x86-xlibs-20110722::gentoo, ebuild scheduled for merge) pulled in by ~app-emulation/emul-linux-x86-xlibs-20110722 required by (app- emulation/emul-linux-x86-medialibs-20110722::gentoo, ebuild scheduled for merge) (and 2 more with the same problem) app-emulation/emul-linux-x86-baselibs:0 (app-emulation/emul-linux-x86-baselibs-20110722::gentoo, ebuild scheduled for merge) pulled in by ~app-emulation/emul-linux-x86-baselibs-20110722 required by (app- emulation/emul-linux-x86-xlibs-20110722::gentoo, ebuild scheduled for merge) (and 4 more with the same problem) (app-emulation/emul-linux-x86-baselibs-20110129::gentoo, installed) pulled in by ~app-emulation/emul-linux-x86-baselibs-20110129 required by (app- emulation/emul-linux-x86-xlibs-20110129::gentoo, installed) -8 What would be the correct way to resolve this issue? I am a little bit afraid to start unmerging any of these packages as among other things sys-boot/grub depends on some of them. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] update world with emul-linux-x86 blocks
-On Saturday 03 September 2011 12.31:01 Mick wrote: On Saturday 03 Sep 2011 10:17:19 Dan Johansson wrote: Since some time I am getting the following errors while doing update world on my dektop machine (running amd64 stable): -8-- What would be the correct way to resolve this issue? I am a little bit afraid to start unmerging any of these packages as among other things sys-boot/grub depends on some of them. Regards, Have you looked at this thread? http://article.gmane.org/gmane.linux.gentoo.user/246133 OOuuppss! Missed that one :-( -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] /dev/sda* missing at boot
This is definitely not a choice that the gentoo disto made; it is coming from several upstreams. I know it is from upstream but it still tastes really bad. ;-) I can only agree! I am having /usr on a LVM volume on all systems (Gentoo and non Gentoo). This will be a MAJOR issue if /usr needs to be on /. Just my 2 cents. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] wicd and net-tools
On Sunday 27 November 2011 02.02:54 Paul Hartman wrote: On Fri, Nov 25, 2011 at 4:58 PM, Allan Gottlieb gottl...@nyu.edu wrote: In the last day or two wicd broke badly due to a net-tools upgrade. The recommended workarounds are to specify USE=old-output for net-tools or to downgrade net-tools one version (I am ~amd64). Neither of these have helped me. Wicd cannot start either the wired or wireless interface. I have no solution, but just a me too that wicd-based networking stopped working entirely after I emerged some updates a couple days ago. My short-term solution was just stop wicd and use the old-style net init script instead since I haven't had time to research any this weekend yet. I had the same issue after upgrading net-tools, wicd stoped working. While googling for a solution I found a workaround: Use the ioctl backend instead of the external backend. For me this workaround works. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] KMail skips messages in some folders when clicking Next (or pressing +)
I upgraded to KMail 4.7.3 some days ago and now i have a small but annoying problem. I have configured KMail to When trying to find unread messages: Loop in All Folders and it mostly works as expected. BUT some folders/messages get skipped when I click Next Unread Message or press +. I have not set any special parameters for these skipped folders. All my messages and folders reside on a local IMAP-server (courier). Any suggestion why some folders are skipped and where to look for a solution. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Re: From where the word 'gentoo' came?
On Tuesday 20 December 2011 19.43:42 Nikos Chantziaras wrote: On 12/20/2011 07:34 PM, Michael Mol wrote: On Tue, Dec 20, 2011 at 12:31 PM, LinuxIsOnereall...@hmamail.com wrote: Hi, From where the word gentoo came into existence? Gentoo is a species of penguin. troll_mode No. Gentoo is an anagram for net goo. Furthermore, Gentoo Linux is an anagram for Tux, go online. This why Gentoo was chosen. /troll_mode Stupid me, I thought that is was because of this They (Gentoo penguin) are the fastest underwater swimming penguins, reaching speeds of 36 km/h. Gentoo are adapted to very harsh cold climates. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] netmount vs. nfsmount
Hi, I have noticed that I have two init scripts for mounting NFS filesystems, netmount from sys-apps/openrc and nfsmount from net-fs/nfs-utils. At the moment I have both of them in my default bootlevel but I think that just one of them would be enough, am I right? And if so, which one should I choose (which is more up to date). I am mainly using NFSv4. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] wicd will not connect to wireless network
Hi, After running an update yesterday (about 50 packages) on my ~x86 laptop, wicd stopped working, and no wicd was not updated neither was any other network related packages. Today after a reboot my wireless network refused to start from wicd, starting it manually works. This is a part of the wicd.log: 2012/02/26 09:53:51 :: enctype is wpa 2012/02/26 09:53:51 :: Generating psk... 2012/02/26 09:53:51 :: ['/usr/bin/wpa_passphrase', 'DMJ', 'Do_not_care_about_this'] 2012/02/26 09:53:51 :: Attempting to authenticate... 2012/02/26 09:53:51 :: ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/wicd/configurations/000f90ac2780', '-D', dbus.String(u'wext', variant_level=1)] 2012/02/26 09:53:51 :: ['iwconfig', 'wlan0', 'essid', '--', 'DMJ'] 2012/02/26 09:53:51 :: iwconfig wlan0 channel 13 2012/02/26 09:53:51 :: iwconfig wlan0 ap 00:0F:90:AC:27:80 2012/02/26 09:53:51 :: WPA_CLI RESULT IS DISCONNECTED 2012/02/26 09:53:52 :: WPA_CLI RESULT IS COMPLETED 2012/02/26 09:53:52 :: Running DHCP with hostname mutgdjoda1 2012/02/26 09:53:52 :: /sbin/dhcpcd -h mutgdjoda1 --noipv4ll wlan0 2012/02/26 09:53:52 :: dhcpcd[12434]: sending commands to master dhcpcd process 2012/02/26 09:53:52 :: 2012/02/26 09:53:52 :: 2012/02/26 09:53:52 :: DHCP connection successful 2012/02/26 09:53:52 :: not verifying 2012/02/26 09:53:52 :: Connecting thread exiting. 2012/02/26 09:53:52 :: ifconfig wlan0 2012/02/26 09:53:52 :: IP Address is: None 2012/02/26 09:53:52 :: Sending connection attempt result success 2012/02/26 09:53:52 :: ifconfig eth0 2012/02/26 09:53:52 :: iwconfig wlan0 2012/02/26 09:53:52 :: Forced disconnect on 2012/02/26 09:53:52 :: /sbin/dhcpcd -k wlan0 Running the commands by hand everything works: # wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/000f90ac2780 -D wext # wpa_cli status Selected interface 'wlan0' bssid=00:0f:90:ac:27:80 ssid=DMJ id=0 mode=station pairwise_cipher=TKIP group_cipher=TKIP key_mgmt=WPA-PSK wpa_state=COMPLETED ip_address=192.168.1.21 # /sbin/dhcpcd -h mutgdjoda1 --noipv4ll wlan0 dhcpcd[28962]: sending commands to master dhcpcd process # ifconfig wlan0 wlan0: flags=4163UP,BROADCAST,RUNNING,MULTICAST mtu 1500 metric 1 inet 192.168.1.21 netmask 255.255.255.0 broadcast 192.168.1.255 ether 00:18:de:e1:c9:71 txqueuelen 1000 (Ethernet) RX packets 128 bytes 21081 (20.5 KiB) RX errors 0 dropped 20 overruns 0 frame 0 TX packets 143 bytes 24546 (23.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 And my wireless connection works! Anny suggestions what's wrong? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] wicd will not connect to wireless network
On Sunday 26 February 2012 10.52:58 Willie WY Wong wrote: On Sun, Feb 26, 2012 at 11:34:01AM +0200, Penguin Lover Alan McKinnon squawked: On Sun, 26 Feb 2012 10:19:56 +0100 Dan Johansson dan.johans...@dmj.nu wrote: After running an update yesterday (about 50 packages) on my ~x86 laptop, wicd stopped working, and no wicd was not updated neither was any other network related packages. Today after a reboot my wireless network refused to start from wicd, starting it manually works. This is a part of the wicd.log: I'm having similar issues with an Intel N6300 since a reboot. In my case it fails with this: [ 76.232020] wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (reason=3) Which means something deauthed the connection in the meantime. This happens with kernel 3.2.6, but rebooting into 3.2.5 works just fine. You guys are almost certainly running into the same problem as the one I mentioned in the thread I just started. Try `pkill dhcpcd` and associate again. Unfortunately I couldn't figure out why all of a sudden dhcpcd decides to start on boot. Yes, that was it, killing the dhcpcd made it possible to bring the interface up and associate with the AP. As openrc was one of the packages upgraded yesterday (0.9.8.4 - 0.9.9.1) I assume (guess) that is why dhcpcd gets started at boot. Now I just have to figure out a way to stop this from happening. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Why is dhcpcd starting by itself?
On Sunday 26 February 2012 15.19:54 Willie WY Wong wrote: On Sun, Feb 26, 2012 at 10:35:35AM +0100, Penguin Lover Willie WY Wong squawked: Can someone help me figure out how to find the offending initscript that is needlessly calling dhcpcd? Apparently the culprit is /etc/init.d/netmount I am not sure how it got into the default run level, since I don't use any network file systems on my netbook. And on my laptop the culprit seems to be /etc/init.d/sshd -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Why is dhcpcd starting by itself?
On Sunday 26 February 2012 17.52:13 Dan Johansson wrote: On Sunday 26 February 2012 15.19:54 Willie WY Wong wrote: On Sun, Feb 26, 2012 at 10:35:35AM +0100, Penguin Lover Willie WY Wong squawked: Can someone help me figure out how to find the offending initscript that is needlessly calling dhcpcd? Apparently the culprit is /etc/init.d/netmount I am not sure how it got into the default run level, since I don't use any network file systems on my netbook. And on my laptop the culprit seems to be /etc/init.d/sshd At the moment I have solved it with putting rc_dhcpcd_provide=!net in /etc/rc.conf which prevents dhcpcd to start when sshd is started. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] wicd will not connect to wireless network
On Sunday 26 February 2012 13.43:13 Dan Johansson wrote: On Sunday 26 February 2012 10.52:58 Willie WY Wong wrote: On Sun, Feb 26, 2012 at 11:34:01AM +0200, Penguin Lover Alan McKinnon squawked: On Sun, 26 Feb 2012 10:19:56 +0100 Dan Johansson dan.johans...@dmj.nu wrote: After running an update yesterday (about 50 packages) on my ~x86 laptop, wicd stopped working, and no wicd was not updated neither was any other network related packages. Today after a reboot my wireless network refused to start from wicd, starting it manually works. This is a part of the wicd.log: I'm having similar issues with an Intel N6300 since a reboot. In my case it fails with this: [ 76.232020] wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (reason=3) Which means something deauthed the connection in the meantime. This happens with kernel 3.2.6, but rebooting into 3.2.5 works just fine. You guys are almost certainly running into the same problem as the one I mentioned in the thread I just started. Try `pkill dhcpcd` and associate again. Unfortunately I couldn't figure out why all of a sudden dhcpcd decides to start on boot. Yes, that was it, killing the dhcpcd made it possible to bring the interface up and associate with the AP. As openrc was one of the packages upgraded yesterday (0.9.8.4 - 0.9.9.1) I assume (guess) that is why dhcpcd gets started at boot. Now I just have to figure out a way to stop this from happening. The problems seems to be that dhcpcd was started automatically as soon as a service needed the network - in my case dhcpcd was started due to /etc/init.d/sshd. At the moment I have solved it with putting rc_dhcpcd_provide=!net in /etc/rc.conf which prevents dhcpcd to start when sshd is started and wicd can now do it's magic. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] lvm failed to start
On Tuesday 03 April 2012 18.09:26 walt wrote: This is an ~amd64 machine, up to date as of today. The strange thing is that lvm did *not* fail to start -- it's working perfectly. Now, being an Incorrigible Old Fart(TM) I'm still using openrc, and who knows what evil lurks in that paleolithic package? :p Anyone else getting this (false) alarm during boot? I have a similar thing on my ~x86, but the difference is that I know why I get it. I have successfully be able to create an initramfs that does a vgscan, vgchange -a y and mounts /usr (which is on LVM). But now I (naturally) I get LVM failed to start (and of cause failed to mount /usr) when openrc processes the init-scripts. So, my question is really - should I remove lvm from the init-process and put noauto in /etc/fstab for /usr? Even if it is on my playground box I still want to be able to boot it. When these two issues are solved I'm going to let my system update udev. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] lvm failed to start
ectrons! *** On Thursday 05 April 2012 00.36:33 Neil Bothwick wrote: On Wed, 04 Apr 2012 18:58:38 +0200, Dan Johansson wrote: I have a similar thing on my ~x86, but the difference is that I know why I get it. I have successfully be able to create an initramfs that does a vgscan, vgchange -a y and mounts /usr (which is on LVM). But now I (naturally) I get LVM failed to start (and of cause failed to mount /usr) when openrc processes the init-scripts. This is not down to your initramfs, see the previously linked bug. What do you mean by This is not down to your initramfs? With the new C:\ concept of udev /usr needs to be mounted before /sbin/init is run and as I am using LVM, LVM needs to be started before /sbin/init as well - or have I missed something here? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled el
Re: [gentoo-user] Another plan for /usr and udev-181
On Friday 13 April 2012 18.44:37 fe...@crowfix.com wrote: 1. Configure the next kernel with the necessary initramfs flags, then have two grub entries for the same kernel: one with the initramfs and one without. Initially I will make the initramfs do something innocuous, and leave /usr as a separate /etc/fstab entry mounted in the old fashioned way. 2. Make sure boot works the old fashioned way, without initramfs. 3. Make sure boot works the new fangled way, with initramfs. 4. Create some temporary lvm partition and make sure the new fangled initramfs mounts it during boot without an /etc/fstab entry. 5. Remove /usr from /etc/fstab and put it in the initramfs, and make sure that boot works. 6. Merge udev-181 and whatever else is needed. 7. Cross my fingers, sacrifice a virtual goat, and try a reboot. Somewhere between 6 and 7 is the worst part; no simple way to revert and retry. Everything up til then should require no more than a simple /etc/fstab edit. Is there any way to add more steps between 6 and 7 to allow more reversability? Have I left out any steps, between 6 and 7 or anywhere else? I have done also something like this. I still have /usr in fstab (with the noauto option) just for reference. The only thing (that I have noticed yet) is that the /etc/init.d/lvm fails due to the fact that LVM is already started (in initramfs). -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] KDE Upgrade (4.7.4 - 4.8.1) changes behavior of new tab button in Konsole
Yesterday I did the upgrade of KDE (4.7.4 - 4.8.1) on my stable workstation. Now the new tab button in Konsole opens a new tab with the _default_ profile instead of opeing a new tab with the _current_ profile like it did before. This is most annoying as I have one profile for each machine/user I manage and until now I could just click the new tab button and get a new window on the host that I am currently logged into. Is there any parameter to restore the old behavior or is this hard-coded (I really hope not or I will have to start looking for a new terminal emulator with tabs that work like I want it). -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] KDE Upgrade (4.7.4 - 4.8.1) changes behavior of new tab button in Konsole
On Saturday 14 April 2012 12.01:13 Dan Johansson wrote: Yesterday I did the upgrade of KDE (4.7.4 - 4.8.1) on my stable workstation. Now the new tab button in Konsole opens a new tab with the _default_ profile instead of opeing a new tab with the _current_ profile like it did before. This is most annoying as I have one profile for each machine/user I manage and until now I could just click the new tab button and get a new window on the host that I am currently logged into. Is there any parameter to restore the old behavior or is this hard-coded (I really hope not or I will have to start looking for a new terminal emulator with tabs that work like I want it). F.Y.I. I posted the same question on the KDE-User mailing list and got the following answer: quote For the 4.8.x series, there is no way. See https://bugs.kde.org/show_bug.cgi?id=184788 for why the old behavior is sometimes problematic. A new action Clone Tab has been added in the development version, which is dedicated for that handy/confusing behavior. See https://bugs.kde.org/show_bug.cgi?id=292518 . If this change is unbearable for you and you can't wait for KDE SC 4.9, you can build from source code either the older version or the development version. You can get the source code of Konsole from https://projects.kde.org/projects/kde/kde-baseapps/konsole/repository. Checkout the master branch or the v4.7.4 tag. If you are unfamiliar with building KDE applications, take a look at http://techbase.kde.org/Getting_Started/Build/Example. /quote -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Dual-monitor setup changed after update - Monitors half swapped
Hi, Yesterday I did an emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend as usual (about two weeks since doing the last one). During this upgrade a few X-related libs and programs got updated (list below). After this upgrade I have a strange problem with my dual-monitor setup - the monitors are half-swapped. Let me explain what I mean with half-swapped: I have two monitors setup on my system, acting as one big desktop (KDE by the way). On each monitor I have some icons and widgets (different icons and widgets on each monitor). Before when I moved my mouse to the right edge of the left monitor and it continued over to the left edge of the right monitor (as you normally wold would have it in a dual-monitor setup). After the upgrade it is like this: On each monitor the correct icons and widgets are there (the icons and widgets of my left monitor is still on the left monitor, and the same for the right one). BUT: Now I have to move my mouse to the left edge of the left monitor to have it to jump to the right edge of the right monitor. This is a little bit confusing to say the least. What I also have noticed is the the KDE-Pager shows the open windows on the wrong side of the desktop-icon. Here is the list with the updated packages: x11-base:xorg-drivers-1.13 x11-base:xorg-server-1.13.0-r1 x11-drivers:nvidia-drivers-304.60 x11-drivers:xf86-input-evdev-2.7.3 x11-drivers:xf86-video-nv-2.1.20 x11-libs:cairo-1.10.2-r3 x11-libs:libXaw-1.0.11-r1 x11-libs:libXfont-1.4.5-r1 x11-libs:libXrandr-1.4.0 x11-libs:libdrm-2.4.40 x11-libs:libvdpau-0.5 x11-libs:libxcb-1.9 x11-libs:pixman-0.28.0 x11-libs:xcb-util-0.3.9 x11-misc:xkeyboard-config-2.7 x11-proto:dri2proto-2.8 x11-proto:randrproto-1.4.0 x11-proto:xcb-proto-1.8 Anny suggestions? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Dual-monitor setup changed after update - Monitors half swapped
Hi again, Sorry for the waste of bandwidth. I had forgotten that there is also a configuration setting in KDE which monitor that is right/left of the other and not only in xorg.conf. Changing it in xorg.con swapped the icons and widgets as well, changing it in KDE did not affect the placement of the icons/widgets. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** On Sunday 18 November 2012 10.55:01 Dan Johansson wrote: Hi, Yesterday I did an emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend as usual (about two weeks since doing the last one). During this upgrade a few X-related libs and programs got updated (list below). After this upgrade I have a strange problem with my dual-monitor setup - the monitors are half-swapped. Let me explain what I mean with half-swapped: I have two monitors setup on my system, acting as one big desktop (KDE by the way). On each monitor I have some icons and widgets (different icons and widgets on each monitor). Before when I moved my mouse to the right edge of the left monitor and it continued over to the left edge of the right monitor (as you normally wold would have it in a dual-monitor setup). After the upgrade it is like this: On each monitor the correct icons and widgets are there (the icons and widgets of my left monitor is still on the left monitor, and the same for the right one). BUT: Now I have to move my mouse to the left edge of the left monitor to have it to jump to the right edge of the right monitor. This is a little bit confusing to say the least. What I also have noticed is the the KDE-Pager shows the open windows on the wrong side of the desktop-icon.
Re: [gentoo-user] Shorewall: iptables: No chain/target/match by that name.
On 02/10/13 06:19, Grant wrote: I'm getting the following when restarting shorewall: # /etc/init.d/shorewall restart * Stopping firewall ... * Starting firewall ... iptables: No chain/target/match by that name. How can I find out which chain/target/match I need to compile into the kernel? shorewall-init.log does not indicate any problems and I have LOG_VERBOSITY=2 in shorewall.conf which is the maximum. I hade the same problem. Using shorewall trace restart I could figure out which chain/target/match that was missing. Regards. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
[gentoo-user] udev upgrade renames eth-interfaces
Hello, Today I upgraded udev on one of my boxes (after hesitating a long time). Even if I have /etc/udev/rules.d/80-net-name-slot.rules and my old 70-persistent-net.rules in place, my interfaces gets renamed (eth0 gets swapped with eth1) which then messes up my whole configuration (routing tables and firewall rules). Any suggestion how to keep my old names and order? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***80-net-
Re: [gentoo-user] Re: udev upgrade renames eth-interfaces
On Saturday 16 March 2013 09.39:17 Jonathan Callen wrote: Hello, Today I upgraded udev on one of my boxes (after hesitating a long time). Even if I have /etc/udev/rules.d/80-net-name-slot.rules and my old 70-persistent-net.rules in place, my interfaces gets renamed (eth0 gets swapped with eth1) which then messes up my whole configuration (routing tables and firewall rules). Any suggestion how to keep my old names and order? Udev, as of version 187, will now refuse to rename a network interface to the name of a network interface that already exists -- which, due to race conditions, can be the case if you are attempting to rename a network device to a name the kernel will later use to name the next enumerated device. The fix for this issue is to *not* use names that match eth[0-9]*, wlan[0-9]*, etc. and instead use a name that the kernel would *not* automatically assign. Unfortunately, that means that you *cannot* keep your old names and order (upstream claims that the means used to ensure those names were used was unreliable and prone to race conditions anyway, which, looking at the code, I can believe). This is great... (I hope you can hear the irony) OK, so I removed the two udev rules (70-persistent-net and 80-net-name-slot) files, thinking if this is the way the upstream devs are going then I have to check it out. After removing the udev-rules and rebooting I got my two new network interfaces called enp0s4 and enp0s5 (no idea what that is supposed to mean). My next step was to replace eth0 with enp0s5 and eth1 with enp0s4 in /etc/conf.d(net and create two new links (net.lo - net.enp0s[45]) in /etc/init.d Now I could start the two network interfaces (/etc/init.d/net.enp0s[45] start). BUT, as soon as I try to start some service (sshd, ntpd, ...) that is using the network I get a lot of complains that eth0 and eth1 is not started (and can not be started) and the service wont start. What have I missed??? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Re: udev upgrade renames eth-interfaces
On Saturday 16 March 2013 12.08:23 Canek Peláez Valdés wrote: On Sat, Mar 16, 2013 at 11:03 AM, Dan Johansson dan.johans...@dmj.nu wrote: On Saturday 16 March 2013 09.39:17 Jonathan Callen wrote: Hello, Today I upgraded udev on one of my boxes (after hesitating a long time). Even if I have /etc/udev/rules.d/80-net-name-slot.rules and my old 70-persistent-net.rules in place, my interfaces gets renamed (eth0 gets swapped with eth1) which then messes up my whole configuration (routing tables and firewall rules). Any suggestion how to keep my old names and order? Udev, as of version 187, will now refuse to rename a network interface to the name of a network interface that already exists -- which, due to race conditions, can be the case if you are attempting to rename a network device to a name the kernel will later use to name the next enumerated device. The fix for this issue is to *not* use names that match eth[0-9]*, wlan[0-9]*, etc. and instead use a name that the kernel would *not* automatically assign. Unfortunately, that means that you *cannot* keep your old names and order (upstream claims that the means used to ensure those names were used was unreliable and prone to race conditions anyway, which, looking at the code, I can believe). This is great... (I hope you can hear the irony) OK, so I removed the two udev rules (70-persistent-net and 80-net-name-slot) files, thinking if this is the way the upstream devs are going then I have to check it out. That's the smart thing to do. After removing the udev-rules and rebooting I got my two new network interfaces called enp0s4 and enp0s5 (no idea what that is supposed to mean). http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c Basically, en is for ethernet, p is for PCI bus, and 0s4 and 0s5 is for the topology of the cards in your machine: the cards are in the PCI bus number 0, slot number 4 and 5. In other words, if you do find /sys -name enp0s4, I'm betting you will get something like: /sys/devices/pci:00/:00:1c.1/:00:004.0/net/enp0s4 The :00:004.0 is the part that determines the naming of yout device. This naming is deterministic: as long as you don't move the cards from PCI slot, they will be named like that always. My next step was to replace eth0 with enp0s5 and eth1 with enp0s4 in /etc/conf.d(net and create two new links (net.lo - net.enp0s[45]) in /etc/init.d Now I could start the two network interfaces (/etc/init.d/net.enp0s[45] start). BUT, as soon as I try to start some service (sshd, ntpd, ...) that is using the network I get a lot of complains that eth0 and eth1 is not started (and can not be started) and the service wont start. What have I missed??? Do you have net.eth0 or net.eth1 in /etc/rc.conf? No, but I still had the links in /etc/init.d/. Removing those and adding lins for enp0s[45] did the trick. Thanks, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] portage insists in pulling in sys-apps/kmod
Hello, Some of my servers are running with a kernel without module-support. On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should). Doing an equery d sys-apps/kmod I can see that the following two packages depends on sy-apps/kmod: sys-fs/udev-197-r8 (kmod ? =sys-apps/kmod-12) virtual/modutils-0 (sys-apps/kmod[tools]) sys-fs/udev has -kmod in its USE-flags, so that should not be an issue). # emerge --verbose --pretend sys-fs/udev [ebuild R] sys-fs/udev-197-r8 USE=acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs 0 kB With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set. So trying to resolve this a unmreged virtual/modutils and sys-apps/kmod and tried the following: # USE=-tools emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend --tree These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild N ] virtual/modutils-0 0 kB [ebuild N ] sys-apps/modutils-2.4.27-r1 230 kB Total: 2 packages (2 new), Size of downloads: 230 kB # equery d sys-apps/modutils * These packages depend on sys-apps/modutils: # equery d virtual/modutils * These packages depend on virtual/modutils: Can someone explain to me why these two are getting re-emerged (nothing seems to depend on them and I have previously unmerged them)? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] portage insists in pulling in sys-apps/kmod
On Saturday 23 March 2013 15.06:05 Mike Gilbert wrote: On Sat, Mar 23, 2013 at 1:42 PM, Dan Johansson dan.johans...@dmj.nu wrote: Hello, Some of my servers are running with a kernel without module-support. On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should). Doing an equery d sys-apps/kmod I can see that the following two packages depends on sy-apps/kmod: sys-fs/udev-197-r8 (kmod ? =sys-apps/kmod-12) virtual/modutils-0 (sys-apps/kmod[tools]) sys-fs/udev has -kmod in its USE-flags, so that should not be an issue). # emerge --verbose --pretend sys-fs/udev [ebuild R] sys-fs/udev-197-r8 USE=acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs 0 kB With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set. That circular dep is interesting; sys-apps/kmod only depends on virtual/modutils because it inherits linux-mod.eclass. Could you file about about the circular dependency please? Bug 462926 (https://bugs.gentoo.org/show_bug.cgi?id=462926) is opened for the circular dependency. My more immediate question is Why is virtual/modutils sys-apps/kmod pulled in at all? and How can I prevent it? Here the output of my emerge update # emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend --tree These are the packages that would be merged, in reverse order: Calculating dependencies... done! [nomerge ] virtual/modutils-0 [ebuild N ] sys-apps/kmod-12-r1 USE=tools zlib -debug -doc -lzma -static-libs 0 kB [ebuild N ] virtual/modutils-0 0 kB Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] kmod requires modules in kernel??
On Wednesday 03 April 2013 17.10:15 Alan McKinnon wrote: On 03/04/2013 14:54, Tanstaafl wrote: Ok, I am prepping for the udev update this weekend, getting everything updated that doesn't pull in the udev updates. First thing I did was to eliminate the module-init-toolskmod Blocker: emerge -C module-init-tools %% emerge kmod and noted the following warnings/errors: Checking for suitable kernel configuration options... ERROR: setup CONFIG_MODULES: is not set when it should be. CONFIG_MODULE_UNLOAD: is not set when it should be. This is a server, and I do not WANT loadable modules enabled... So, how do I get rid of this warning/error? Or is this nothing to be concerned about if I do not want/need loadable modules? Thanks The warning makes sense and is correct. kmod is a set of tools to manipulate kernel modules. It's pointless having it if the kernel does not use modules. Therefore, the error check exists. Furthermore, $ equery depends kmod * These packages depend on kmod: sys-fs/udev-200 (kmod ? =sys-apps/kmod-12) virtual/modutils-0 (sys-apps/kmod[tools]) $ equery depends virtual/modutils * These packages depend on virtual/modutils: app-emulation/virtualbox-modules-4.2.10 (kernel_linux ?virtual/modutils) app-emulation/vmware-modules-271.2 (kernel_linux ? virtual/modutils) sys-apps/rescan-scsi-bus-1.56 (virtual/modutils) $ equery depends rescan-scsi-bus * These packages depend on rescan-scsi-bus: sys-apps/sg3_utils-1.35 (=sys-apps/rescan-scsi-bus-1.24) $ equery depends sg3_utils * These packages depend on sg3_utils: media-libs/libgpod-0.8.2 (sys-apps/sg3_utils) sys-apps/rescan-scsi-bus-1.56 (=sys-apps/sg3_utils-1.24) sys-fs/udisks-1.0.4-r5 (=sys-apps/sg3_utils-1.27.20090411) It's hard to escape those hard masks. Do these steps: 1. File a bug, this behaviour is overly constrictive 2. Copy kmod to your local overlay and delete the kernel modules check 3. USE=-kmod I am having exactly the same issue, server with module-less kernel, USE=-kmod set, but portage still wants to pull in virtual/modutils and sys-apps/kmod (and I have nothing depending on either of those two). At the moment I am looking into mdev instead of udev for these servers. If you open a bug please post the bug# here. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
[gentoo-user] mdev and lvm2
Hello List, What is the status of using mdev (instead the ever growing udev) together with lvm2? Reason for my question is that at https://wiki.gentoo.org/wiki/Mdev it says One beta tester reports getting close with lvm2, but it's not there yet.. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] mdev and lvm2
On Sunday 07 April 2013 13.47:55 Alan Mackenzie wrote: Hi, Dan. On Sun, Apr 07, 2013 at 02:34:16PM +0200, Dan Johansson wrote: Hello List, What is the status of using mdev (instead the ever growing udev) together with lvm2? Reason for my question is that at https://wiki.gentoo.org/wiki/Mdev it says One beta tester reports getting close with lvm2, but it's not there yet.. I think that beta tester was me. I had lvm2 partitions running under mdev without problems. (They were also RAID-1, just for completion's sake.) The only change I had to make was to my /etc/fstab. Where I previously had: /dev/vg/usr /usr options under udev, I then needed /dev/mapper/vg-usr /usr options instead. mdev failed to create the /dev/vg directory. With this change, my system worked quite happily. Sadly, I went back to udev when xf86-input-evdev-2.7.0 started depending on udev, back in June last year. Hi Alan, Thanks for you feedback. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Linux Fiber SAN
On 12.06.2013 06:57, Norman Rieß wrote: Am 11.06.2013 16:19, schrieb Nick Khamis: Hello Everyone, Was wondering what people are running these days, and how do they compare to the 10,000 dollar SAN boxes. We are looking to build a fiber san using IET and glusterFS, and was wondering what kind of luck people where having using this approach, or any for that matter. the question is, what are you doing with it and why do you think you need a fibre channel SAN. Our goal indeed is to get rid of the SAN infrastructure as it is delicately to all kinds of failure with nearly zero fault tolerance. An example, you have an hicup or a power failure in your network. SAN is dead from nowon and must be reinitialized on the server. Simple NFS comes back up without any fuzz. Another, you boot your storage systems due to an os update or something like that. Your SAN will be dead. NFS will just go on as if nothing happened. We use netapp storage systems which are NAS and SAN capable. Another point is, that if you have a SAN lun, there is either no way to increase or decrease size on the fly, on cifs or nfs you can resize your share on the go. So if you do not have a _really_ good reason to use a fribre channel SAN, don't! Hello, I tend to disagree. A correctly designed SAN (using dual Fabric among other things) is a lot more stable and has a lot better performance than any NAS (NFS, CIFS, iSCSI) solution. One other thing that also needs to be correctly configured to have a stable SAN infrastructure is the servers on it (Multipathing, partition alignment, queue depth, ...) according to the storage vendors recommendation. LUN expansion/shrink is storage vendor specific, some can not (netapp apparently) but others can. Just my 2 cents. Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
[gentoo-user] syslog-ng changed format of config-file
Today after running an update world (which included syslog-ng-3.2 - syslog-ng-3.4), I restarted syslog-ng and got the following two messages: WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode Please update it to use the syslog-ng 3.4 format at your time of convinience, compatibility mode can operate less efficiently in some cases. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file.; WARNING: global: the default value of log_fifo_size() has changed to 1 in syslog-ng 3.3 to reflect log_iw_size() changes for tcp()/udp() window size changes; I do have some customizations in my syslog-ng.conf so I have not yet installed the quite minimalistic new syslog-ng.conf (._cfg_syslog-ng.conf). Does anyone have a link to some good documentation on how to upgrade a 3.2 configuration to 3.4? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] syslog-ng-3.4: time_sleep() deprecated or not?
On 09.07.2013 20:00, Jarry wrote: Hi Gentoo-users, today I updated syslog-ng on my server. When I checked config file, I got this message: # /etc/init.d/syslog-ng checkconfig * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ... WARNING: Your configuration file uses an obsoleted keyword, please update your configuration; keyword='time_sleep', change='time_sleep() has been deprecated since syslog-ng 3.3' [ ok ] # So I checked the new syslog-ng-ose-v3.4-guide-admin.pdf, but there is nothing about time_sleep() being obsolete or deprecated. Quite on the contrary: it is listed as valid option, and even mentioned in the chapter 17 best practices as a way of handling lots of parallel connections. So how is it then? Is time_sleep() supported and valid, or obsolete/deprecated? I also had some issues when I upgraded to 3.4. Most of the warnings went away when I changed the version string in syslog-ng.conf to @version: 3.4. Just my 2 cents (€) -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] [Solved] syslog-ng segfaults
On 19.07.2013 02:53, Randy Barlow wrote: Randy Barlow wrote: I'll add in that this seems to be happening to all three of my x86_64 hosts. It does not appear to happen on my x86 host. I rebooted one of the hosts that was experiencing this issue, and it did not return afterwards. This surprises me, as restarting the service did not solve the problem. I don't really know what was the cause, but it does appear to have gone away. I know that I have not rebooted since I upgraded to that particular version, so perhaps there is something odd that requires more than just a restart of syslog-ng. Question: Is this a physical host or is it a virtual host running under qemu? Reason for my question ist that recently the CPU-Id presented from quemu in the guest has changed and if you have CFLAGS=-march=native then some newly compiles SW could fail. One way to solve this is to change the CFLAGS to -mtune=native and recompile the affected SW (or world). -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Optional /usr merge in Gentoo
On 16.08.2013 15:57, Canek Peláez Valdés wrote: On Fri, Aug 16, 2013 at 7:29 AM, Alessio Ababilov ilovegnuli...@gmail.com wrote: 2013/8/13 Canek Peláez Valdés can...@gmail.com I think it's a great experiment, but perhaps too much work for little gain, at least currently. Thank you! The next council meeting will vote if separated /usr without and initramfs is officially supported by Gentoo; I hope this time around finally is officially and unequivocally stated by the council that a separated /usr without an initramfs is *NOT* supported. As I see from http://www.gentoo.org/proj/en/council/meeting-logs/20130813.txt, the council has stated that it is not supported anymore. Well, better late than never. It was about time. The usr-merge will be a slow, gradual change; it will probably take years. The systemd package entered the tree in June 2011, after more than a year in an overlay, and then it took more than two years to make it an official alternative to OpenRC. The /usr merge will take a similar amount of time, if not longer. And when we are at it, why not rename '/' to 'C:\' ? -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
[gentoo-user] FlashPlayer crashes in FireFox
As of lately (I can not really remember since when) FlashPlayer has stopped working in FireFox. I'm running an stable AMD64 system with FireFox (www-client/firefox-17.0.8), FlasPlayer (www-plugins/adobe-flash-11.2.202.297) and NS-Plugin-Wraper (www-plugins/nspluginwrapper-1.4.4-r3). If I emerge the 64bit FlasPlayer I get the following errormessage when trying to wiev a video on YouTube The Adobe Flash plugin has crashed and I get the following in the .xsession-errors: plugin-container: htab.c:83: vlGetDataHTAB: Assertion `handle' failed. WARNING: pipe error (51): Connection reset by peer: file /var/tmp/notmpfs/portage/www-client/firefox-17.0.8/work/mozilla-esr17/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 421 If I on the other hand emerge the 32bit version + nspluginwraper nothing happens in FF (the video-pane just stays black) and I get the following messages in .xsession-errors: npviewer.bin: htab.c:83: vlGetDataHTAB: Assertion `handle' failed. *** NSPlugin Wrapper *** ERROR: NPP_WriteReady() invoke: Broken pipe *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2705):invoke_NPP_Write: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2478):invoke_NPP_NewStream: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2550):invoke_NPP_DestroyStream: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2434):invoke_NPP_URLNotify: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2434):invoke_NPP_URLNotify: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2550):invoke_NPP_DestroyStream: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2434):invoke_NPP_URLNotify: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2478):invoke_NPP_NewStream: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2434):invoke_NPP_URLNotify: assertion failed: (rpc_method_invoke_possible(plugin-connection)) Send additional request to http://www.youtube.com/watch?v=mRbnLYHzsfI *** NSPlugin Wrapper *** WARNING:(/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4-r3/work/nspluginwrapper-1.4.4/src/npw-wrapper.c:2219):invoke_NPP_SetWindow: assertion failed: (rpc_method_invoke_possible(plugin-connection)) *** NSPlugin Wrapper *** ERROR: NPObject proxy 0x7f33d3c27de0 is no longer valid! *** NSPlugin Wrapper *** ERROR: NPObject proxy 0x7f33d3c27de0 is no longer valid! *** NSPlugin Wrapper *** ERROR: NPObject proxy 0x7f33d3c27de0 is no longer valid! (The last line just keeps repeating) Any suggestions what my problem could be and how to solve it? Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] separate / and /usr to require initramfs 2013-11-01
On 29.09.2013 20:25, Dale wrote: Tanstaafl wrote: On 2013-09-29 11:24 AM, Dale rdalek1...@gmail.com wrote: Tanstaafl wrote: Dale - I'm honestly curious, what is your reason, philisophical or technical, for wanting a separate /usr? Everything I've read says there is no good reason for it today. Separate /home, /tmp, /var, yes, good reasons for t hose... but not /usr... So, again - why would you prefer switching distro's over merging /usr back into / and be done with it? The reason is the same I have posted before. I have / and /boot on regular partitions. Everything else is on LVM. I don't have / on LVM because it would require a init thingy. I don't have /boot on LVM because grub doesn't or didn't support it. I have since switched to grub2 so it may but still have the issue with / so no need redoing everything for that. Well, I don't see a *reason* to WANT to have /usr on a separate partition. I see only THE reason that you have it there NOW. Also, logically speaking, if the stated reason for not having / (or /boot) on separate LVM partitions is because it would require an init thingy, then why can't you simply add /usr to that reason? Again, I'm asking for why you WANT it on a separate LVM partition, not why it is there now. The way I see it, if y ou cannot provide a rational answer to that question, then there is no reason for you to use this as a reason to abandon gentoo, only a reason to merge /usr into /... Simple, I have never had to resize / or /boot before. I have had to resize /usr, /var and /home several times tho. THAT is the reason. For me, it doesn't matter if it is rational to YOU or not. I am the one doing things on my puter not you or anyone else. If the init thingy fails, that will be me staring at a error message, not you. I agree to 100% with you Dale. I have /usr on a separate LVM partition (I only have, as you, / and /boot on regular partitions) to be able to easily extend it (which I have been forced to do a few times). And as my VG-partition starts directly after the /-partition I am not in the position to extend / to engulf all the data in /usr. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] separate / and /usr to require initramfs 2013-11-01
On 30.09.2013 20:09, Mark David Dumlao wrote: Peeps using LVM: If, right now, you were forced to boot into /, without /usr, would you be able to manually assemble your usr using pv/vg/lv tools - without the assistance of udev? Sure can!!! -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Dynamic service runlevel
On 10.11.2013 09:20, Linlin Yan (颜林林) wrote: Is it possible to set dynamic service run-level (rc-update) according to different kernel version. There are different kernel versions in my grub menu, and I need to switch between these versions for development purpose. I currently want to disable some services under specific kernel version., but I cannot find where to customize this. Any suggestion? What I have done is to have two different runlevels (default and kde in my case) with different services added to each one (the kde runlevel starts X, kde, and som other stuff that I do not have in the default level). Then I have added softlevel=kde to the parameters for the kernel. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Dynamic service runlevel
On 13.11.2013 06:22, Linlin Yan (颜林林) wrote: On Sun, Nov 10, 2013 at 6:00 PM, Dan Johansson dan.johans...@dmj.nu wrote: On 10.11.2013 09:20, Linlin Yan (颜林林) wrote: Is it possible to set dynamic service run-level (rc-update) according to different kernel version. There are different kernel versions in my grub menu, and I need to switch between these versions for development purpose. I currently want to disable some services under specific kernel version., but I cannot find where to customize this. Any suggestion? What I have done is to have two different runlevels (default and kde in my case) with different services added to each one (the kde runlevel starts X, kde, and som other stuff that I do not have in the default level). Then I have added softlevel=kde to the parameters for the kernel. Hi Dan, Thank you very much! That is very helpful. What if I want to change the behaviour of sysinit runlevel? Where can I change it to another new runlevel for specific kernel version? BTW, the services I want to disable is udev{,-mount} for kernel-2.16.31. Sorry, I can not help you there. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Peeve - finding kernel config options
On 26.02.2014 22:24, Poison BL. wrote: On Wed, Feb 26, 2014 at 2:58 PM, Tanstaafl tansta...@libertytrek.org wrote: Hello all, This is for those of use who to choose to roll our kernels by hand... So, am I missing something? Given the most recent gentoo news item: # eselect news read 10 2014-02-25-udev-upgrade Title Upgrade to =sys-fs/udev-210 AuthorSamuli Suominen ssuomi...@gentoo.org Posted2014-02-25 Revision 1 The options CONFIG_FHANDLE and CONFIG_NET are now required in the kernel. Whenever kernel config options are provided like this, it would be nice if time was taken to provide the path to where they are found. I had to find the first one (CONFIG_FHANDLE) by: 1. grepping .config, seeing it wasn't enabled, 2. running make menuconfig and searching for 'FHANDLE', 3. seeing it is located in 'General setup', 4. scouring the General setup options, finding no 'FHANLDE' anywhere, 5. finding something in all lowercase named 'open by fhanlde syscalls', 6. enabling this option, saving the modified config, 7. confirming it is now enabled by grepping .config again Sheesh. Really? Would be nice if the news item had something like CONFIG_FHANDLE (General setup 'open by fhandle syscalls') and CONFIG_NET (still don't know which one this is??) Wackadoo... When I search FHANDLE in menuconfig I get: │ Symbol: FHANDLE [=y] │ Type : boolean │ Prompt: open by fhandle syscalls │ Location: │ (1) - General setup │ Defined at init/Kconfig:235 │ Selects: EXPORTFS [=y] │ Selected by: GENTOO_LINUX_INIT_SYSTEMD [=y] GENTOO_LINUX [=y] GENTOO_LINUX_UDEV [=y] This clearly states that the prompt you're looking for is a line that says open by fhandle syscalls under General setup Sure, it's not the absolute simplest interface (i.e. it doesn't give a 'enable this' in the search results) but it does give all the necessary information about a given option to find it (as well as dependencies and their current states, etc). The most likely reason the news item doesn't list the specific prompt text (or even the category) is that, across even sub release versions of the kernel those are prone to change (and, at times, drastically) while the actual CONFIG_name option tends to be fairly static through time once it exists (even when superseded by new toys, i.e. older IDE/ATA/ATAPI options vs newer PATA options). But if you press 1 in the example above you will jump directly to the menu item. Clue -- (1) Regards, -- Dan Johansson *** This message is printed on 100% recycled electrons! ***
[gentoo-user] [OT] LENOVO Z510 + Dual Boot + Gentoo == True ?
Hi List, I am considering buying a new Notebook and found that a LENOVO IdeaPad Z510 would fit into my budget and seems quite OK. Does anyone here on the list have any experience with the Z510 running dual-boot (Win8.x and Gentoo) that would like to share their experience? Regards, -- Dan Johansson *** This message is printed on 100% recycled electrons! ***
[gentoo-user] [OT] ASUS Crosshair V Formula-Z MB
I just got me a new MB, a ASUS Crosshair V Formula-Z, after my old MB fried due to a fan failure. Is anyone else (on this list) using this MB, with Gentoo of cause? If you are, have you got all the sensors working? I can not get information from all the sensors on this MB (compared with what the BIOS shows) and some of the values that do show are wrong , some temp-sensor shows as negative (and my room is not THAT cold). Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
[gentoo-user] What are you using to display Flash in Firefox?
As the subject says: What are you using to display Flash in Firefox? Reason for my question is quite simple, today I am using www-plugins/adobe-flash which works well for simple .swf files (where gnash lightspark fails), but I have problems displaying a lot of Videos on Facebook YouTube. 95% of the time I get the following message when I try to watch a Video on FB or YT: The Adobe Flash plugin has crashed. Reload the page to try again. For YT it is really not that a big problem as I can download the Videos using a FF AddOn - but this does not work with FB. I am using the default/linux/amd64/13.0/desktop/kde profile. Any suggestions... Regards, -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
Re: [gentoo-user] What are you using to display Flash in Firefox?
On 08.03.2015 15:57, Leonardo Guilherme wrote: As the subject says: What are you using to display Flash in Firefox? Reason for my question is quite simple, today I am using www-plugins/adobe-flash which works well for simple .swf files (where gnash lightspark fails), but I have problems displaying a lot of Videos on Facebook YouTube. 95% of the time I get the following message when I try to watch a Video on FB or YT: The Adobe Flash plugin has crashed. Reload the page to try again. For YT it is really not that a big problem as I can download the Videos using a FF AddOn - but this does not work with FB. I am using the default/linux/amd64/13.0/desktop/kde profile. Any suggestions... Hello I'm using https://github.com/i-rinat/freshplayerplugin, a wrapper around the PPAPI version bundled in chrome (I'm not sure but I think the package www-plugis/chrome-binary-plugins has it). It works really well nowadays, it used to crash a lot in the past. Highly recommended. Em dom, 8 de mar de 2015 às 11:43, Dan Johansson dan.johans...@dmj.nu escreveu: Great, thanks for the tip - this works great. I can now watch Videos without problem at FB and YT. -- Dan Johansson, http://www.dmj.nu *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
[gentoo-user] Changed behavior of webapp-config
The other day I noticed that the behavior of webapp-config has changed. I have USE=vhost enabled and I have a directory structure where each "app" is installed in htdocs in its own v-host like this: /var/www/app-1.int.dmj.nu/htdocs/ /var/www/app-2.int.dmj.nu/htdocs/ Before I could simply do the following to upgrade an app # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3 And this would update the app-1 in /var/www/app-1.int.dmj.nu to version 1.2.3 (note, there is NO -d for directory in there) Doing this now results in this: * Install dir flag not supplied, defaulting to "app-1". * Fatal error: Cannot clean! * Fatal error: No package installed in /var/www/app-1.int.dmj.nu/htdocs/app-1 * Fatal error(s) - aborting I have played around a bit and found that if I add "-d ." it does update the application correct but with some messages (sorry I do not have them at hand now) about webapp-config not able to "clean" the old version. And worse still, I then get two "active" entries in the webapp-config DB (/var/db/webapps/app-1//installs): One for the old version: 123456789 0 0 /var/www/app-1.int.dmj.nu/htdocs And one for the new 0987654321 0 0 /var/www/app-1.int.dmj.nu/htdocs/. Any suggestions on how to make the "new" webapp-config behave like the "old" one (short of downgrading of cause)? KR -- Dan Johansson *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Changed behavior of webapp-config
On 26.10.2015 21:56, Mick wrote: > On Monday 26 Oct 2015 20:38:18 Dan Johansson wrote: >> The other day I noticed that the behavior of webapp-config has changed. >> I have USE=vhost enabled and I have a directory structure where each >> "app" is installed in htdocs in its own v-host like this: >> >> /var/www/app-1.int.dmj.nu/htdocs/ >> /var/www/app-2.int.dmj.nu/htdocs/ >> >> Before I could simply do the following to upgrade an app >> # webapp-config -h app-1.int.dmj.nu -U app-1 1.2.3 >> >> And this would update the app-1 in /var/www/app-1.int.dmj.nu to version >> 1.2.3 >> (note, there is NO -d for directory in there) >> >> Doing this now results in this: >> * Install dir flag not supplied, defaulting to "app-1". >> * Fatal error: Cannot clean! >> * Fatal error: No package installed in >> /var/www/app-1.int.dmj.nu/htdocs/app-1 >> * Fatal error(s) - aborting > > Did you try to run it like so: > > webapp-config -h app-1.int.dmj.nu -U . 1.2.3 > > or even better: > > webapp-config -U -h app-1.int.dmj.nu 1.2.3 > > The above error you're getting above points to your call for 'app-1' cause > webapp to assume the directory is '/var/www/app-1.int.dmj.nu/htdocs/app-1' None of the above works. :-( # webapp-config -U -h app-1.int.dmj.nu 1.2.3 usage: webapp-config [-ICU] [-dghus] webapp-config: error: argument -U/--upgrade: expected 2 argument(s) # webapp-config -h app-1.int.dmj.nu -U 1.2.3 usage: webapp-config [-ICU] [-dghus] webapp-config: error: argument -U/--upgrade: expected 2 argument(s) # webapp-config -h app-1.int.dmj.nu -U . 1.2.3 * Install dir flag not supplied, defaulting to ".". * Fatal error: Please emerge app-1/.-1.2.3 first. * Fatal error(s) - aborting -- Dan Johansson *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Changed behavior of webapp-config
On 28.10.2015 20:48, J. Roeleveld wrote: > > The problem is that webapp-config now has the '-d' option as mandatory. > This means installing into the webroot is not easy. (-d "" worked for me, but > is annoying) Yes, using -d "" did it, and yes it is annoying but it works. Thanks & KR -- Dan Johansson *** This message is printed on 100% recycled electrons! ***
[gentoo-user] [OT] Memory error messages in dmesg
I have started noticing the following messages in the dmesg output (and in the log-files) on my Gentoo rig: [46545.779803] [Hardware Error]: Corrected error, no action required. [46545.779984] [Hardware Error]: CPU:3 (15:2:0) MC2_STATUS[Over|CE|MiscV|-|AddrV|-|-|CECC]: 0xdc2540f40136 [46545.780434] [Hardware Error]: MC2 Error Address: 0x0002cc215138 [46545.780605] [Hardware Error]: MC2 Error: Fill ECC error on data fills. [46545.783764] [Hardware Error]: cache level: L2, tx: DATA, mem-tx: DRD [46545.784088] mce: [Hardware Error]: Machine check events logged [46545.791786] [Hardware Error]: Corrected error, no action required. [46545.791958] [Hardware Error]: CPU:2 (15:2:0) MC2_STATUS[Over|CE|MiscV|-|AddrV|-|-|CECC]: 0xdc2540540136 [46545.792382] [Hardware Error]: MC2 Error Address: 0x0002cc2158b8 [46545.792579] [Hardware Error]: MC2 Error: Fill ECC error on data fills. [46545.792791] [Hardware Error]: cache level: L2, tx: DATA, mem-tx: DRD [46545.793088] mce: [Hardware Error]: Machine check events logged I have been running memtest for some time (~100h) and have not gotten any error message - so I am suspecting that this is a CPU problem. Am I correct? If it was just these error-messages I would not be that worried, but I have started to get a lot of "hangers" on this rig when compiling larger packages. Could there be a relation to the error-messages? KR, -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] [OT] Memory error messages in dmesg
On 2015-11-28 11:38, Alexander Kapshuk wrote: On Sat, Nov 28, 2015 at 12:01 PM, Dan Johansson <dan.johans...@dmj.nu> wrote: I have started noticing the following messages in the dmesg output (and in the log-files) on my Gentoo rig: I have been running memtest for some time (~100h) and have not gotten any error message - so I am suspecting that this is a CPU problem. Am I correct? If it was just these error-messages I would not be that worried, but I have started to get a lot of "hangers" on this rig when compiling larger packages. Could there be a relation to the error-messages? Do you have an AMD, or an Intel CPU on board? Here are a couple links to bug reports from people who had a similar issue with an AMD CPU. https://www.novell.com/support/kb/doc.php?id=7013006 https://bugzilla.redhat.com/show_bug.cgi?id=1078604 Yes, it is an AMD CPU - I'll look into those links. KR, -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! ***
[gentoo-user] [OT] program compiled with libcrypt on Raspberry PI (running Gentoo) hangs when run
The following code snippet compiles find but when run it just hangs forever: $ cat x.c #include #include #include int main() { printf("Running test\n"); char *encrypted = crypt("blablabla","ab"); if(!encrypted || strcmp(encrypted,"ab.h7fshjf89f")) { printf("Fail\n"); } else { printf("OK\n"); } } $ gcc -o xout x.c -lcrypt $ ./xout Running test The same code runs fine on my desktop. Any suggestions what could be my problem? -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
Re: [gentoo-user] [OT] program compiled with libcrypt on Raspberry PI (running Gentoo) hangs when run
On 26.06.2016 18:19, meino.cra...@gmx.de wrote: > Dan Johansson <dan.johans...@dmj.nu> [16-06-26 18:12]: >> The following code snippet compiles find but when run it just hangs forever: >> >> $ cat x.c >> #include >> #include >> #include >> >> int main() { >> printf("Running test\n"); >> char *encrypted = crypt("blablabla","ab"); >> if(!encrypted || strcmp(encrypted,"ab.h7fshjf89f")) { >> printf("Fail\n"); >> } else { >> printf("OK\n"); >> } >> } >> >> $ gcc -o xout x.c -lcrypt >> >> $ ./xout >> Running test >> >> >> >> The same code runs fine on my desktop. >> Any suggestions what could be my problem? >> >> -- > Hi Dan, > > this is just a shot in the dark and most likely I will miss the > target...but... > > Off what kind of memory you are running this code? > Das "cryot()" returns a pointer to newly acquired memory? > May be this memory is not RAM but flash/EEPROM? > If crypt() expects already allocated memory at the > pointers adress this may work on a PC because its > short and the stack is relatively large and you hit > nothing ... so it runs accidentally (so to say) and > fails on a Raspi... > > Only some random thoughts... It's running in "normal" RAM. And I think if it was something like that other software would also have problem, which it has not. -- Dan Johansson *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] [OT] program compiled with libcrypt on Raspberry PI (running Gentoo) hangs when run
On 26.06.2016 21:25, Dan Johansson wrote: > On 26.06.2016 18:19, meino.cra...@gmx.de wrote: >> Dan Johansson <dan.johans...@dmj.nu> [16-06-26 18:12]: >>> The following code snippet compiles find but when run it just hangs forever: >>> >>> $ cat x.c >>> #include >>> #include >>> #include >>> >>> int main() { >>> printf("Running test\n"); >>> char *encrypted = crypt("blablabla","ab"); >>> if(!encrypted || strcmp(encrypted,"ab.h7fshjf89f")) { >>> printf("Fail\n"); >>> } else { >>> printf("OK\n"); >>> } >>> } >>> >>> $ gcc -o xout x.c -lcrypt >>> >>> $ ./xout >>> Running test >>> >>> >>> >>> The same code runs fine on my desktop. >>> Any suggestions what could be my problem? >>> >>> -- >> Hi Dan, >> >> this is just a shot in the dark and most likely I will miss the >> target...but... >> >> Off what kind of memory you are running this code? >> Das "cryot()" returns a pointer to newly acquired memory? >> May be this memory is not RAM but flash/EEPROM? >> If crypt() expects already allocated memory at the >> pointers adress this may work on a PC because its >> short and the stack is relatively large and you hit >> nothing ... so it runs accidentally (so to say) and >> fails on a Raspi... >> >> Only some random thoughts... > > It's running in "normal" RAM. And I think if it was something like that > other software would also have problem, which it has not. I did an "emerge --oneshot sys-libs/glibc" and, voila, now it works. Sorry for the waste of bandwidth. -- Dan Johansson *** This message is printed on 100% recycled electrons! ***
[gentoo-user] Upcoming Apache 2.2 _> 2.4 upgrade
According to the news item from 2016-01-27 Apache 2.4 is soon about to be "stabilized". In portage we have to versions, 2.4.16 & 2.4.18, of Apache 2.4 available. Can someone say which one of those two that will be "stabilized"? Reason for my question is quite simple: I want to unmask that version on my development server to do some tests. Regards, -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
Re: [gentoo-user] Upcoming Apache 2.2 _> 2.4 upgrade
On 07.02.2016 00:13, Sam Jorna wrote: > On 07/02/16 08:17, Dan Johansson wrote: >> According to the news item from 2016-01-27 Apache 2.4 is soon about >> to be "stabilized". In portage we have to versions, 2.4.16 & >> 2.4.18, of Apache 2.4 available. Can someone say which one of those >> two that will be "stabilized"? Reason for my question is quite >> simple: I want to unmask that version on my development server to >> do some tests. > > In addition to what mjo said, you can also follow bug 468302 [0] to > keep up to date with how the stabilization is going. > > 0: https://bugs.gentoo.org/show_bug.cgi?id=468302 OK, thanks for the Feedback. I'll go ahead and upgrade to 2.4.18 on my dev box. -- Dan Johansson *** This message is printed on 100% recycled electrons! ***
Re: [gentoo-user] Problems with cross-compiling
On 25.03.2016 13:35, Dan Johansson wrote: > I have setup one of my VM's to do cross-compiling for my Raspberry PI 2. > Now some packages (e.g. app-editors/vim and its dependencies) emerges > fine while other (e.g. net-misc/wget or rather one of its dependencies > dev-libs/libpcre-8.38:3) does not. > > What I have done is this: > # emerge sys-devel/crossdev > (installed sys-devel/crossdev-20150716) > > # crossdev -S -P -v -t armv7a-hardfloat-linux-gnueabi > (which "installed" fine without any errors) > > # armv7a-hardfloat-linux-gnueabi-emerge --verbose --oneshot > =net-misc/wget-1.16.3-r1 > > Which pulls in dev-libs/libpcre-8.38:3::gentoo which then fails with this: > > ln -sf pcre_compile2.3 > /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/libpcre-8.38/image//usr/share/man/man3/pcre16_compile2.3 > /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping > incompatible /usr/lib/libpthread.so when searching for -lpthread > /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping > incompatible /usr/lib/libc.so when searching for -lc > /usr/lib/libc.a: error adding symbols: File format not recognized > collect2: error: ld returned 1 exit status > Another one that is also failing (and is a dependency of many packages) is sys-libs/ncurses-6.0-r1. ncurses fails with another error than libpcre. cd c++ && make DESTDIR="" RPATH_LIST="/usr/lib" all make[1]: Entering directory '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0-.arm/ncurses/c++' cd ../obj_s; -DHAVE_CONFIG_H -I. -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++ -I../include -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXTSTRINGDEFINES -DNDEBUG -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -c /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/cursesf.cc cd ../obj_s; -DHAVE_CONFIG_H -I. -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++ -I../include -I/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DXTSTRINGDEFINES -DNDEBUG -O2 -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fPIC -c /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0/c++/cursesm.cc /bin/bash: -DHAVE_CONFIG_H: command not found Makefile:366: recipe for target '../obj_s/cursesf.o' failed make[1]: *** [../obj_s/cursesf.o] Error 127 make[1]: *** Waiting for unfinished jobs /bin/bash: -DHAVE_CONFIG_H: command not found Makefile:372: recipe for target '../obj_s/cursesm.o' failed make[1]: *** [../obj_s/cursesm.o] Error 127 make[1]: Leaving directory '/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/sys-libs/ncurses-6.0-r1/work/ncurses-6.0-.arm/ncurses/c++' Makefile:113: recipe for target 'all' failed make: *** [all] Error 2 -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
[gentoo-user] Problems with cross-compiling
I have setup one of my VM's to do cross-compiling for my Raspberry PI 2. Now some packages (e.g. app-editors/vim and its dependencies) emerges fine while other (e.g. net-misc/wget or rather one of its dependencies dev-libs/libpcre-8.38:3) does not. What I have done is this: # emerge sys-devel/crossdev (installed sys-devel/crossdev-20150716) # crossdev -S -P -v -t armv7a-hardfloat-linux-gnueabi (which "installed" fine without any errors) # armv7a-hardfloat-linux-gnueabi-emerge --verbose --oneshot =net-misc/wget-1.16.3-r1 Which pulls in dev-libs/libpcre-8.38:3::gentoo which then fails with this: ln -sf pcre_compile2.3 /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/dev-libs/libpcre-8.38/image//usr/share/man/man3/pcre16_compile2.3 /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/lib/libc.a: error adding symbols: File format not recognized collect2: error: ld returned 1 exit status Have I missed something in setting up crossdev or is something else wrong (if yes - then what is wrong)? -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
[gentoo-user] Strange problem while emerging
On my Raspberry Pi2 (running Gentoo of cause) I have a problem with portage, or rather with emerge. When emerging something I get some error messages about "shell-init:... permission denied" like this: -8<- >> Emerging (1 of 1) app-arch/xz-utils-5.2.2::gentoo shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied >>> Downloading 'http://distfiles.gentoo.org/distfiles/xz-5.2.2.tar.gz' --2016-03-26 16:31:48-- http://distfiles.gentoo.org/distfiles/xz-5.2.2.tar.gz Length: 1464228 (1.4M) [application/octet-stream] Saving to: ‘/usr/portage/distfiles/xz-5.2.2.tar.gz’ /usr/portage/distfi 100%[=>] 1.40M 3.06MB/s in 0.5s 2016-03-26 16:31:48 (3.06 MB/s) - ‘/usr/portage/distfiles/xz-5.2.2.tar.gz’ saved [1464228/1464228] * xz-5.2.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Permission denied chdir: error retrieving current directory: getcwd: cannot access parent directories: Permission denied >>> Unpacking source... >>> Unpacking xz-5.2.2.tar.gz to /var/tmp/portage/app-arch/xz-utils-5.2.2/work >>> Source unpacked in /var/tmp/portage/app-arch/xz-utils-5.2.2/work -8<- The emerge continues and installs the software OK (as far as I can see). I tried to debug emerge (using --debug), but surprise surprise, just before the error messages shows there is a "set +x" in the output, hence I can not see which command it is that "produces" the error message and I can also not see the path/file that is the culprit. Any suggestions on how to debug this further? -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
Re: [gentoo-user] Strange problem while emerging
On 26.03.2016 17:37, Alan McKinnon wrote: > On 26/03/2016 17:46, Dan Johansson wrote: >> On my Raspberry Pi2 (running Gentoo of cause) I have a problem with >> portage, or rather with emerge. When emerging something I get some error >> messages about "shell-init:... permission denied" like this: >> >> -8<- Snip... >> -8<- >> >> The emerge continues and installs the software OK (as far as I can see). >> I tried to debug emerge (using --debug), but surprise surprise, just >> before the error messages shows there is a "set +x" in the output, hence >> I can not see which command it is that "produces" the error message and >> I can also not see the path/file that is the culprit. >> >> Any suggestions on how to debug this further? >> >> > > > > What user do you run emerge as? > It should be root > > Also check permissions on directories in /var/tmp/portage and all subdirs User running emerge is root. This is what my /var/tmp/portage looks like (when no emerge is running) -8<- # find /var/tmp/portage/ -type d -exec ls -pald {} + drwxrwxrwt 5 portage portage 4096 Mar 26 17:53 /var/tmp/portage// drwxrwxr-x 2 portage portage 4096 Mar 26 17:52 /var/tmp/portage/._unmerge_/ drwxrwsr-x 4 rootportage 4096 Mar 24 09:49 /var/tmp/portage/.distcc/ drwxrwsr-x 2 rootportage 4096 Mar 26 17:43 /var/tmp/portage/.distcc/lock/ drwxrwsr-x 2 rootportage 4096 Mar 26 17:51 /var/tmp/portage/.distcc/state/ -8<- This looks the same as on my other systems with the exception of the .distcc (as this is the only system using distcc). The .distcc is automatically created when emerging and distcc is enabled. -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
[gentoo-user] Problems with g-cpan
I am having a interesting problem with g-cpan. While trying to "emerge" the perl-module Nagios::Object using g-cpan (g-cpan --debug --verbose --install Nagios::Object) I can see that g-cpan downloads the correct version of Nagios::Object from CPAN: 8<- In main::generatePackageInfo (/usr/bin/g-cpan:622): $VAR1 = bless( { 'cpan' => { 'nagios::object' => { 'name' => 'Nagios::Object', 'description' => 'No description available', 'portage_name' => 'Nagios-Object', 'version' => '47', 'portage_version' => '0.21.20', 'src_uri' => 'D/DU/DUNCS/Nagios-Object-0.21.20.tar.gz' } }, 'portage_bases' => { '/usr/portage' => 1 }, 'DEBUG' => undef, 'portage' => { 'nagios-object' => {}, 'nagios::object' => {} }, 'packagelist' => [], 'modules' => {}, 'sources' => '/usr/portage/distfiles', 'portage_categories' => [ 'dev-perl', 'perl-core', 'perl-gcpan', 'dev-lang' ], 'cpan_reload' => undef }, 'Gentoo' ); |CPAN: Digest::SHA loaded ok (v5.88) CPAN: Compress::Zlib loaded ok (v2.064) Checksum for /var/tmp/g-cpan/.cpan/sources/authors/id/D/DU/DUNCS/Nagios-Object-0.21.20.tar.gz ok CPAN: Archive::Tar loaded ok (v1.96) 8<- Please note that version above says '47' and not 0.21.20, this is consisten with CPAN (http://search.cpan.org/dist/Nagios-Object/lib/Nagios/Object.pm) After downloading and unpacking the tar-file the "ebuild" is created: 8<- * Create directory '/var/tmp/g-cpan/perl-gcpan/Nagios-Object' * Create directory '/var/tmp/g-cpan/perl-gcpan/Nagios-Object/files' * Generating ebuild for Nagios::Object * Scanning /usr/portage for list-compare * Scanning /usr/portage for test-exception * Scanning /usr/portage for test-nowarnings * Copying /var/tmp/g-cpan/.cpan/sources/authors/id/D/DU/DUNCS/Nagios-Object-0.21.20.tar.gz to /usr/portage/distfiles * Ebuild generated for Nagios-Object 8<- BUT, when portage tries to emerge this "ebuild" it tries to download a '47' version, which of-cause does not exist. 8<- >>> Downloading 'http://distfiles.gentoo.org/distfiles/Nagios-Object-47.tar.gz' --2016-04-04 21:42:24-- http://distfiles.gentoo.org/distfiles/Nagios-Object-47.tar.gz Connecting to x.dmj.nu|192.168.55.55|:8080... connected. Proxy request sent, awaiting response... 404 Not Found 2016-04-04 21:42:24 ERROR 404: Not Found. 8<- (in /usr/portage/distfiles/ there is a Nagios-Object-0.21.20.tar.gz file). How can I convince g-cpan to use the 0.21.20 version and not '47'? Or make g-cpan NOT to clean its temporarily created ebuild (so I can modify it by hand)? Regards. -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! *** smime.p7s Description: S/MIME Cryptographic Signature
[gentoo-user] shutdown -r now hangs in qemu-vm
Since updating app-emulation/libvirt and/or app-emulation/qemu (both were updated at the same time) I have a problem executing "shutdown -r now" in the vm ("shutdown -h now" works fine). When I execute "shutdown -r now" in the vm the shutdown process runs perfect until "Remounting root-filesystem readonly" and than it hangs and I have to "Force Power Off" to reboot. Any suggestion what could be wrong and what I can do to solve it? -- Dan Johansson, <http://www.dmj.nu> *** This message is printed on 100% recycled electrons! *** 0x2FB894AD.asc Description: application/pgp-keys smime.p7s Description: S/MIME Cryptographic Signature