[gentoo-user] problem emerging libsoup 2.29.91
Hi. On my latest update I cannot emerge libsoup -- I did a google search, but I cannot find anything relevant -- this is what I get: checking for Apache PHP module... yes checking for xmlrpc-epi-php... ACCESS DENIED unlink: /session_mm_cli0.sem ACCESS DENIED open_wr: /session_mm_cli0.sem ACCESS DENIED unlink: /session_mm_cli0.sem yes checking for curl... /usr/bin/curl configure: creating ./config.status config.status: creating libsoup-2.4.pc config.status: creating libsoup-gnome-2.4.pc config.status: creating Makefile config.status: creating libsoup-zip config.status: creating libsoup/Makefile config.status: creating tests/Makefile config.status: creating tests/httpd.conf config.status: creating docs/Makefile config.status: creating docs/reference/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands Source configured. --- ACCESS VIOLATION SUMMARY --- LOG FILE /var/log/sandbox/sandbox-15710.log VERSION 1.0 FORMAT: F - Function called FORMAT: S - Access Status FORMAT: P - Path as passed to function FORMAT: A - Absolute Path (not canonical) FORMAT: R - Canonical Path FORMAT: C - Command Line F: unlink S: deny P: /session_mm_cli0.sem A: /session_mm_cli0.sem R: /session_mm_cli0.sem C: php --rf xmlrpc_server_create F: open_wr S: deny P: /session_mm_cli0.sem A: /session_mm_cli0.sem R: /session_mm_cli0.sem C: php --rf xmlrpc_server_create F: unlink S: deny P: /session_mm_cli0.sem A: /session_mm_cli0.sem R: /session_mm_cli0.sem C: php --rf xmlrpc_server_create Failed to emerge net-libs/libsoup-2.29.91, Log file: '/var/log/portage/net-libs:libsoup-2.29.91:20100315-081624.log' What the heck do I do with this? Thanks in advance for all the great help I have gotten from this list. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com
Re: [gentoo-user] Re: MASKED Tilde with no `arch' what does it mean
On Sun, 14 Mar 2010 22:34:41 -0500, Harry Putnam wrote: Seriously, Do you know why emacs-24 is masked like that? What little I know of Ulrich Mueller is that he is quite a stalwart fellow and not much would get by him. I guess its just that its the cvs version eh? Yes, CVS ebuilds are generally masked as they are too good a means of breaking things to be installed without manual unmasking. Copy the mask line to /etc/portage/package.unmask/emacs to see if it breaks for you. -- Neil Bothwick Fill what's empty, empty what's full, scratch where it itches. signature.asc Description: PGP signature
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Monday 15 March 2010 02:44:56 fire-eyes wrote: Are you using the EU pool? I am, and I have that problem frequently. I don't have /that/ problem at all. The only problem I have with it is the Irish server in the pool - it wouldn't be enough to go for a cuppa while it's running; I'd have to come back tomorrow if I let it continue at its own pace*. So I watch the beginning of --sync and if I get that server I kill it and try again. I haven't complained about it because I assume that other places get better service. Ireland, for instance. * I'm serious. To satisfy my curiosity, not long ago I did let it run, and after an hour it was still in dev-*. -- Rgds Peter.
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, 15 Mar 2010 10:10:52 +, Peter Humphrey wrote: I don't have /that/ problem at all. The only problem I have with it is the Irish server in the pool - it wouldn't be enough to go for a cuppa while it's running; I'd have to come back tomorrow if I let it continue at its own pace*. Is that heanet.ie? I always get decent speeds from there. -- Neil Bothwick Windows artificial intelligence: Unable to FORMAT A: Having a go at C: signature.asc Description: PGP signature
[gentoo-user] nfs mount on client end.
In my home lan setup its an opensolaris (zfs fs) NFS server that is supposed to be set to show NFS vers=3 on offer. Somehow on the client end... my gentoo desktop, its getting mounted with vers=4 as evidenced by the output of `mount' opensolairs_NFS_SERVER:/pub on /pub type nfs (rw,users,addr=192.168.0.29,vers=4,clientaddr=192.168.0.2) Note it says vers=4. I don't see where that is being set. /etc/conf.d/nfs mentiones NFS vers=4 but doesn't say that is what its telling the kernel to use. From /etc/conf.d/nfs # Optional services to include in default `/etc/init.d/nfs start` # For NFSv4 users, you'll want to add rpc.idmapd here. NFS_NEEDED_SERVICES=rpc.idmapd Does that determine what version gets used... it doesn't sound like it would. These lines out of /etc/init.d/nfsmount seems to be the culprit: # Make sure nfs support is loaded in the kernel #64709 if [ -e /proc/modules ] ! grep -qs 'nfs$' /proc/filesystems ; then modprobe -q nfs fi ebegin Mounting NFS filesystems mount -a -t nfs,nfs4 eend $? Or does `mount -a -t nfs,nfs4' just mean vers 4 is made available? I have 2,3 and 4 enabled in the kernel: zcat /proc/config.gz |grep 'NFS[^D].*=' CONFIG_NFS_FS=y CONFIG_NFS_V3=y CONFIG_NFS_V3_ACL=y CONFIG_NFS_V4=y CONFIG_NFS_ACL_SUPPORT=y CONFIG_NFS_COMMON=y There is also a: # CONFIG_NFS_V4_1 is not set But I think that is experimental, and not necessary for vers=4 to be available. So is the linux client supposed to decide which version to mount by what it sees on offer? If so, then is there a known problem when the server is opensolaris? I know opensolaris people tell me to set the server to offer only version=3 because there is some problem with linux if you use version=4. On the opensolaris lists, I've been discussing this, and it appears other users are not having a similar problem when they tell the server to use version=3 which I have (on the opensolaris server in /etc/default/nfs): # Sets the maximum version of the NFS protocol that will be used by # the NFS client. Can be overridden by the vers= NFS mount option. # If vers= is not specified for an NFS mount, this is the version # that will be attempted first. The default is 4. #NFS_CLIENT_VERSMAX=4 # [HP 03/12/09 00:20 NFS_CLIENT_VERSMAX=3 # ] ---- ---=--- - Any input would be helpful..
[gentoo-user] umount nfs share
I'm trying t umount an nfs mounted share but am told the resource is busy. umount -f fails too. So first I turned off all the xterms I had running which should have killed any shell operating there. Still says resouce is busy. So trying to see what is doing it with `lsof' However, when I run `lsof' (no arguments), it fails to produce any output. Just been setting there for 5-6 minutes, now. When I know from past use it should have produced quite a pile of output. I tried a lsof option that is supposed to show specifically nfs related ( lsof -b /nfs/mount/point) So trying it on the one reporting `busy' lsof -b /projects Which gave a gout of output with this kind of stuff in it: lsof: avoiding readlink(/projects): -b was specified. lsof: avoiding readlink(/): -b was specified. lsof: avoiding stat(/): -b was specified. lsof: WARNING: can't stat() rootfs file system / Output information may be incomplete. lsof: avoiding readlink(/): -b was specified. lsof: avoiding stat(/): -b was specified. lsof: WARNING: can't stat() reiserfs file system / Output information may be incomplete. [...] Anyone know what might be going on here?
[gentoo-user] Strategy for using SAN/NAS for storage with Gentoo...
I have recently started looking at server resilience and availability in the context of a hardware failure or hardware upgrade. I've come to the conclusion that it would be very desirable if terrabyte-scale data did not need to be restored from backup. This isn't a commercial server - so I'm interested in minimum cost approaches. With this in mind, I'm interested to discover what represents state-of-the-art from the perspective of the OS and its configuration. Issues I envisage are: * With NAS, it would be desirable to have a Linux filesystem rather than access files over CIFS - this raises further questions about protocol... is NFS as hopelessly outdated as it seems? Are there any products that offer NFS access? Are any of them secure? * With a SAN, questions of filesystem features are diminished - but questions of access protocol remain. What is best supported by gentoo? * Do any gentooists have any inexpensive hardware configurations that work especially well? Any hints or tips?
Re: [gentoo-user] Starting up gpg-agent script
On 14 March 2010 21:30, Neil Bothwick n...@digimed.co.uk wrote: On Sun, 14 Mar 2010 20:23:40 +, Mick wrote: I am trying this script in /etc/env.d/90gpg-agent: if test -f $HOME/.gpg-agent-info kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2/dev/null; then GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info` export GPG_AGENT_INFO else eval `/usr/bin/gpg-agent --daemon` echo $GPG_AGENT_INFO $HOME/.gpg-agent-info fi But when I emerged kgpg I got this error: !!! 'ParseError: Invalid token 'test' (not '='): /etc/env.d/90gpg-agent: line 1 in /etc/env.d/90gpg-agent' Can you please help me correct the above script, I'm not sure what's wrong with it. env-update doesn't evaluate scripts. It expects only variable assignments. Ahh! Didn't know that. Thanks. :-) You mention kgpg, are you using KDE? If so, it takes care of this automatically, you only need to uncomment the relevant lines in the agent startup and shutdown scripts in /etc/kde. Otherwise, put the script in a file in /etc/profile.d. I only use a few KDE apps. rather than the full DE. I used to have an one-liner in /etc/X11/Sessions/fluxbox, but that means if I choose another WM/DE the previous gpg-agent is still running. Meanwhile, I found this: http://bugs.gentoo.org/258944 will give it a spin and see how it goes. -- Regards, Mick
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, 15 Mar 2010 12:10:02 +0100, Peter Humphrey wrote about Re: [gentoo-user] what's wrong with rsync 3.0.6?: On Monday 15 March 2010 02:44:56 fire-eyes wrote: Are you using the EU pool? I am, and I have that problem frequently. I don't have /that/ problem at all. The only problem I have with it is the Irish server in the pool - it wouldn't be enough to go for a cuppa while it's running; I'd have to come back tomorrow if I let it continue at its own pace*. So I watch the beginning of --sync and if I get that server I kill it and try again. You run your emerge --sync jobs by hand?!!! I run mine from the root crontab. Consequently, I don't give a monkey's how long it takes. I also have it update the eix and esearch databases while it is at it. If anybody wants a copy of my shell script to do this, just ask. -- Regards, Dave [RLU #314465] == dwn...@ntlworld.com (David W Noon) == signature.asc Description: PGP signature
[gentoo-user] Re: Strategy for using SAN/NAS for storage with Gentoo...
Steve gentoo_...@shic.co.uk writes: I have recently started looking at server resilience and availability in the context of a hardware failure or hardware upgrade. I've come to the conclusion that it would be very desirable if terrabyte-scale data did not need to be restored from backup. This isn't a commercial server - so I'm interested in minimum cost approaches. With this in mind, I'm interested to discover what represents state-of-the-art from the perspective of the OS and its configuration. Issues I envisage are: * With NAS, it would be desirable to have a Linux filesystem rather than access files over CIFS - this raises further questions about protocol... is NFS as hopelessly outdated as it seems? Are there any products that offer NFS access? Are any of them secure? * With a SAN, questions of filesystem features are diminished - but questions of access protocol remain. What is best supported by gentoo? * Do any gentooists have any inexpensive hardware configurations that work especially well? Any hints or tips? Someone here, a yr or two ago recommended to me when I asked that question to install opensolaris on a machine and set it up as NAS. Opensolaris offers the zfs file system, that is really advanced compared to others. I'll admit I've had some issues along the way. And have to do lots of boning up on opensolaris. I access the zfs server by cifs from windows machines, and by NFS from linux. Opensolaris doesn't use samba by default. Instead they have their own CIFS server which works fine. They do have samba pkgs but no one hardly use it, preferring their CIFS server. Mine is only a home lan setup, but even then the opensolaris server has over a terabyte of capacity. I have it setup in 3 mirrors of 2 disks each. 2 prs of 500gb sata hdd and one pr of 750 sata hdd There are many ways so setup `zraid' systems on `zfs' that are excellent for reliability. ( I have been told I haven't tried that route). For me the mirror setup seemed good for my small needs. Even more reliable I'm told, if a bit higher in disk usage. opensolaris zfs fs offers a `timeslider' interface to a system of snapshotting the filesystems in 15 min, 1hr 1day etc snapshots in a very small footprint way. You'd have to read up on it.. It would take too much off topic to cover here. The system takes an amazing small amount of disk space for the snapshots based on COW (Copy on write). There was talk of opensolaris going by the wayside with the Oracle takeover of Sun... but Oracle has since announced its intention of puttin even more resources into `opensolaris' development than Sun was doing. These may be a good intro to zfs: http://www.sun.com/bigadmin/features/articles/zfs_part1.scalable.jsp http://all-unix.blogspot.com/2007/03/zfs-cow-and-relate-features.html http://wikis.sun.com/display/OpenSolarisInfoPL/How+to+Manage+the+Automatic+ZFS+Snapshot+Service
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Monday 15 March 2010 14:15:08 David W Noon wrote: You run your emerge --sync jobs by hand?!!! I run mine from the root crontab. My boxes aren't allowed to run all night, so I call a script that runs the updating process when I fire them up in the morning. No sweat. I also have it update the eix and esearch databases while it is at it. Me too. -- Rgds Peter.
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Monday 15 March 2010 12:28:49 Neil Bothwick wrote: Is that heanet.ie? Yes. I always get decent speeds from there. Just shows what oddities show up from time to time in complex networks. My speed is far better from eastern Europe (Ukraine, Latvia, ...) than from just across the Irish Sea. Maybe I should have a word with my ISP to see if anything can be done. -- Rgds Peter.
[gentoo-user] wine cannot compile with jpeg flag
hi, i have enabled 'jpeg' flag in my /etc/make.conf, but i still cannot compile wine with jpeg support, and i really need this feature. the output of emerge -pv wine shows '(-jpeg)'. i think it is masked by profile. i then created '/etc/portage/profile/package.use.force', and putted 'app-emulation/wine jpeg' in it, but i still cannot compile wine with jpeg support. please help. -- Best Regards, David Shen http://twitter.com/davidshen84/
[gentoo-user] Re: wine cannot compile with jpeg flag
On 03/15/2010 05:06 PM, Xi Shen wrote: hi, i have enabled 'jpeg' flag in my /etc/make.conf, but i still cannot compile wine with jpeg support, and i really need this feature. the output of emerge -pv wine shows '(-jpeg)'. i think it is masked by profile. i then created '/etc/portage/profile/package.use.force', and putted 'app-emulation/wine jpeg' in it, but i still cannot compile wine with jpeg support. please help. USE flags are unmasked in /etc/portage/profile/package.use.mask. Put this in it: app-emulation/wine -jpeg
Re: [gentoo-user] wine cannot compile with jpeg flag
On 3/15/10, Xi Shen davidshe...@googlemail.com wrote: i have enabled 'jpeg' flag in my /etc/make.conf, but i still cannot compile wine with jpeg support, and i really need this feature. the output of emerge -pv wine shows '(-jpeg)'. i think it is masked by profile. i then created '/etc/portage/profile/package.use.force', and putted 'app-emulation/wine jpeg' in it, but i still cannot compile wine with jpeg support. Create /etc/portage/profile/package.use.mask and type in 'app-emulation/wine -jpeg' (note the minus) to locally unmask the jpeg flag for wine. I don't know how good idea that is, though, as /usr/portage/profiles/arch/amd64/package.use.mask has the following for wine (maybe you'd better check the relevant bugs noted for jpeg first?): # Samuli Suominen ssuomi...@gentoo.org (02 Feb 2009) # esd, bug 301824 # mp3, bug 283860, 299490 # jpeg, bug 283089, 303255, 299149 # capi, 292938 # ghoto2, 286563 # scanner, 299505 # hal, 299149 app-emulation/wine capi esd gphoto2 hal jpeg mp3 scanner -- Arttu V.
Re: [gentoo-user] Re: Strategy for using SAN/NAS for storage with Gentoo...
+1 on zfs w/ solaris for storage, just don't go cheap and get desktop disks. -- Kyle
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, Mar 15, 2010 at 02:15:08PM +, David W Noon wrote: You run your emerge --sync jobs by hand?!!! Why is that surprising? My laptop does not have an always-on internet connection, nevermind it sits silently and off for most of the day. I sync by hand when I have time, roughly twice each week. W -- Willie W. Wong ww...@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, Mar 15, 2010 at 5:10 AM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: On Monday 15 March 2010 02:44:56 fire-eyes wrote: Are you using the EU pool? I am, and I have that problem frequently. I don't have /that/ problem at all. The only problem I have with it is the Irish server in the pool - it wouldn't be enough to go for a cuppa while it's running; I'd have to come back tomorrow if I let it continue at its own pace*. So I watch the beginning of --sync and if I get that server I kill it and try again. There was a distfiles mirror that would always hang and timeout for me, so I added it to my hosts file with a bogus IP so it just fails instantly and tries a different server. Maybe you could do the same for the server that's bothering you, then you won't have to worry about it.
Re: [gentoo-user] wine cannot compile with jpeg flag
On Mon, Mar 15, 2010 at 11:35 PM, Arttu V. arttu...@gmail.com wrote: Create /etc/portage/profile/package.use.mask and type in 'app-emulation/wine -jpeg' (note the minus) to locally unmask the jpeg flag for wine. I don't know how good idea that is, though, as /usr/portage/profiles/arch/amd64/package.use.mask has the following for wine (maybe you'd better check the relevant bugs noted for jpeg first?): # Samuli Suominen ssuomi...@gentoo.org (02 Feb 2009) # esd, bug 301824 # mp3, bug 283860, 299490 # jpeg, bug 283089, 303255, 299149 # capi, 292938 # ghoto2, 286563 # scanner, 299505 # hal, 299149 app-emulation/wine capi esd gphoto2 hal jpeg mp3 scanner thanks a lot :) it is compiling now -- Best Regards, David Shen http://twitter.com/davidshen84/
Re: [gentoo-user] Re: Strategy for using SAN/NAS for storage with Gentoo...
On 15/03/2010 15:49, Kyle Bader wrote: +1 on zfs w/ solaris for storage, just don't go cheap and get desktop disks. I have to admit, I do like the idea of ZFS, though not quite enough to justify maintaining Solaris in addition to my other infrastructure. I was thinking about something rather different entirely. I was thinking about bunging disk on my LAN and shifting as much data from local storage on my server as possible. This would mean that the server could be swapped out with minimum effort. If 'disk on the net' allowed mirroring etc. then storage could be expanded and contracted as necessary without any downtime... essentially, only my hub would then be a single-point-of-failure. I'd love to be able to run a VM on my desktop, for example, and use that as a 'stand-in' while I take-down my main server for maintenance. For this to work, I'd need to access the same file system and be able to switch responsibility for services between the two 'servers' quickly. From ages ago, I remember iSCSI being bandied about. Did that ever go anywhere (i.e. is this easy to do from Gentoo?)
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, 15 Mar 2010 17:00:02 +0100, Willie Wong wrote about Re: [gentoo-user] what's wrong with rsync 3.0.6?: On Mon, Mar 15, 2010 at 02:15:08PM +, David W Noon wrote: You run your emerge --sync jobs by hand?!!! Why is that surprising? Because emerge jobs produce copious amounts of output that is difficult to read as it scrolls past. I much prefer the cron daemon or at daemon to send me the output as email, so I can scroll backwards and forwards through it at my leisure. My laptop does not have an always-on internet connection, nevermind it sits silently and off for most of the day. I sync by hand when I have time, roughly twice each week. Well, when your laptop is powered off the cron daemon won't run the emerge jobs, so that's really a non-issue. -- Regards, Dave [RLU #314465] == dwn...@ntlworld.com (David W Noon) == signature.asc Description: PGP signature
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On 15 Mar 2010, at 17:08, David W Noon wrote: On Mon, 15 Mar 2010 17:00:02 +0100, Willie Wong wrote about Re: [gentoo-user] what's wrong with rsync 3.0.6?: On Mon, Mar 15, 2010 at 02:15:08PM +, David W Noon wrote: You run your emerge --sync jobs by hand?!!! Why is that surprising? Because emerge jobs produce copious amounts of output that is difficult to read as it scrolls past. I much prefer the cron daemon or at daemon to send me the output as email, so I can scroll backwards and forwards through it at my leisure. `man screen` :P Stroller.
Re: [gentoo-user] Re: Strategy for using SAN/NAS for storage with Gentoo...
On 15 Mar 2010, at 16:26, Steve wrote: ... From ages ago, I remember iSCSI being bandied about. Did that ever go anywhere (i.e. is this easy to do from Gentoo?) I believe it is quite widely used - it is mentioned often on the linux- poweredge list. I would imagine the Linux kernel allows mounting and sharing by iSCSI - check `make menuconfig` and type /iscsi. It's hard to be more specific without knowing your usage. For storage of a mere terabyte you can buy a networked storage enclosure which will accommodate two drives. These are cheap, do mirroring, will accommodate standard 1TB, 1.5TB, 2TB drives, but are probably not too fast. One reads a lot posted by people who have large movie collections stored on the network, whether they be MythTV users or the mutineer sailors of 17th century galleons. A PC-based solution gives you more room for this - you can fit perhaps 4 drives in a standard PC case you find at the tip, or you can get 12 or 16 drives in a dedicated rackmount server case. This allows capacity of upto 32TB with current drives, if you can afford that, or to use cheaper drives (1TB or 1.5TB are best gigabytes-per-dollar at present, I think; 500gb drives seem recently to have become disproportionately expensive) and have better RAID levels. The Norco one is popular amongst enthusiasts, because it's really cheap [1]; it uses 2 x standard ATX power supplies, one for the mainboard, one for the drives. You can get similar cases with the option of hot-swap PSUs - Chenbro used to be the main brand for this, I think, but in the last couple of years TST http://TSTcom.com have started producing nicer cases; I use a TST ESR-316, which is utterly lush, but which was expensive. I have one slight reservation about the TST, which I will not spend time detailing unless you ask. I use only half the TST's capacity at present, but it is a pleasure and a relief to have so much room available; expansion of network drive capacity is never a problem - just slap a drive in and you're ready to go. Even with as many as 6 or 8 drive bays there are corner cases which can make expansion a bit of a headache (at least if uptime is important). Since these cases accommodate standard ATX motherboards, you get to use an old Pentium 4 motherboard salvaged from an old PC or an Atom- based motherboard for £100 or so. The latter price is a bit shocking, IMO, compared to (say) the Asus EE-PC, but it reflects the demand for them; they're prolly only $100 in the US. These atom motherboards have minimal expansion slots, but if you only want to use it for storage then you're probably fine with just one. If you build your own server you can use software or hardware RAID. Fast hardware RAID, based on an PCIe controller card, is expensive. You can get PCI or PCI-X hardware RAID very cheaply on eBay these days, but it's slow. That is to say that PCI or PCI-X hardware RAID is fast enough to stream a couple of movies at the same time, fast enough to copy 5gb files only a couple of minutes, but production server systems (if you were buying a database server for work) would be expected to use a PCIe-based hard-drive controller. Hardware RAID is nice in its ability to hot-swap out a failed hard-drive without interruption. I have not found non-RAID SATA controllers that satisfy me with their ability to do hot-swap (although I would love to). Managing RAID on a PC-based server - rather than a dedicated NAS enclosure - very easily allows expansion. With RAID5 or 6 you can just add in another drive and expand on to it. I use an old PCI-X (fits in a PCI slot) 3ware 9500 card, and it *seems* like if you have a RAID1 (haven't tried RAID5) on two drives of capacity X, then remove each of those drives in turn, rebuilding onto drives of X+Y capacity, then upon completion the array appears to the o/s as the larger X+Y size. I think some LSI cards do this, also. I would not bet on the ability of low-end NAS boxes to do this. A company called Drobo makes some high-end NAS hardware with space for plenty of drives (on some models) and some fancy features. I find UK prices a bit shocking, but depending upon your application they might be justified; the US prices seem quite reasonable to me. I wouldn't get too het up about Samba / CIFS vs NFS. Samba / CIFS can be faster than NFS, even in an all-Linux environment. Other times it's not. This seems pretty much random, depending upon whom is doing the benchmarking. On an intellectual level, at least, I find neither wholly satisfying - it would be really nice to have a Linux-native network filesystem that does authentication / permissions properly. But both do work. I looked at ZFS, but decided that Solaris, from a look at the HCL, was too picky over hardware. I think ZFS is great, I no longer think it's the future. My selection of cheap hardware is far wider under Linux, I
Re: [gentoo-user] Re: Strategy for using SAN/NAS for storage with Gentoo...
On 15/03/2010 18:21, Stroller wrote: It's hard to be more specific without knowing your usage. Yes... I was deliberately vague to see what options came up... but I can be more specific. The budget is miniscule - and the performance demands (bandwidth and latency) are completely non-challenging. It's in this context that I'm looking for reliability and availability... and I'd like to have unix permissions working properly. Security is a moderate concern - the physical network is secured - but there is a broadband connection which exposes various services. For storage of a mere terabyte you can buy a networked storage enclosure which will accommodate two drives. These are cheap, do mirroring, will accommodate standard 1TB, 1.5TB, 2TB drives, but are probably not too fast. A cheap NAS enclosure is a definite possibility - there'd be no performance issue - though this leaves three key questions: 1) Will it support unix file-permissions and can I be (fairly sure) it will be secure if someone hacks my Wi-Fi? 2) Will I be able to put the (majority of the) gentoo filesystem on it - or will I need to have a fully booted system to connect? 3) Can I use two entirely separate devices and mirror to both? (I expect the failure of the enclosure to be at least as likely as the failure of a drive.) If you build your own server you can use software or hardware RAID. Hmmm... building my own server - I've done that in the past, but my plan is to minimize DIY with a view to minimizing the number of components that might fail. Ideally, I'd have four devices - one with a CPU and memory (the server)... booting from Flash or CD or whatever (+a replacement in the cupboard); two separate boxes with drives in them (mirrored storage); one (wired) Ethernet hub and broadband gateway. I'd connect to the network from a separate desktop/laptop to interact with it - either locally or remotely. I wouldn't get too het up about Samba / CIFS vs NFS. Samba / CIFS can be faster than NFS, even in an all-Linux environment. Other times it's not. This seems pretty much random, depending upon whom is doing the benchmarking. On an intellectual level, at least, I find neither wholly satisfying - it would be really nice to have a Linux-native network filesystem that does authentication / permissions properly. But both do work. Well the 'server' will be running Samba - and it's the back-end storage for that I'm trying to resolve. CIFS definitely looks problematic - since Unix permissions for server data are one valuable separation between publicly accessible services and my private data. NFS might be OK (it doesn't feel great) - though I *really* don't want to move from one server to two when I'm aiming for reliability. I looked at ZFS, but decided that Solaris, from a look at the HCL, was too picky over hardware. I think ZFS is great, I no longer think it's the future. My selection of cheap hardware is far wider under Linux, I can install Gentoo and just `emerge mediatomb` and stream movies to my PS3. I like ZFS, conceptually, though I don't like Solaris. I'm aware that Apple have toyed with adopting ZFS and that it is available for BSD... A *really* neat solution would be a (pair of) cheap NAS devices running an appliance distribution of BSD with ZFS - exporting a NFS mount... possibly over a VPN? Hmmm - I'm trying to avoid complexity, too. Hmmm.
[gentoo-user] getting firmware for orinoco pcmcia card
I am installing gentoo on an old machine without wireless builtin. I have a hermes/orinoco pcmcia card that works fine. Indeed the wireless works fine, but is not right. When booting there is a very long delay at the net.eth1 and the system wants the agere_sta_fw.bin firmware. If you wait it out, it eventually proceeds and the wireless works. I assume I should be getting the firmware, but I don't know from where. I did emerge the orinoco-fwutils but that doesn't have firmware or say where to get it. Any help would be appreciated. thanks, allan
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, 15 Mar 2010 19:20:02 +0100, Stroller wrote about Re: [gentoo-user] what's wrong with rsync 3.0.6?: On 15 Mar 2010, at 17:08, David W Noon wrote: On Mon, 15 Mar 2010 17:00:02 +0100, Willie Wong wrote about Re: [gentoo-user] what's wrong with rsync 3.0.6?: On Mon, Mar 15, 2010 at 02:15:08PM +, David W Noon wrote: You run your emerge --sync jobs by hand?!!! Why is that surprising? Because emerge jobs produce copious amounts of output that is difficult to read as it scrolls past. I much prefer the cron daemon or at daemon to send me the output as email, so I can scroll backwards and forwards through it at my leisure. `man screen` I don't have a man page for screen. I do know `man less`, `man more`, etc., and output redirection to file. Heck, I'm even old enough to know Ctl+S and Ctl+Q, as I used to program PDP-11s back in the 1970s. But none of those addresses the fundamental issue of sitting there watching all this crap. Hence I normally use fcron or at to run my emerge jobs in the background, which, as a fringe benefit, gives me easily scrollable output in my MUA. -- Regards, Dave [RLU #314465] == dwn...@ntlworld.com (David W Noon) == signature.asc Description: PGP signature
Re: [gentoo-user] getting firmware for orinoco pcmcia card
On Mon, Mar 15, 2010 at 3:35 PM, Allan Gottlieb gottl...@nyu.edu wrote: I am installing gentoo on an old machine without wireless builtin. I have a hermes/orinoco pcmcia card that works fine. Indeed the wireless works fine, but is not right. When booting there is a very long delay at the net.eth1 and the system wants the agere_sta_fw.bin firmware. If you wait it out, it eventually proceeds and the wireless works. I assume I should be getting the firmware, but I don't know from where. I did emerge the orinoco-fwutils but that doesn't have firmware or say where to get it. You have to find and download the windows drivers for your device and extract the firmware out of them, then rename it and put it in /lib/firmware. See here: http://linuxwireless.org/en/users/Drivers/orinoco#device_firmware A google search turned up this firmware link: http://marc.info/?l=orinoco-develm=121078835610877q=p3 I don't have this card so I have no idea if it'll work for you. I hope it at least helps lead you int he right direction.
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, Mar 15, 2010 at 05:08:06PM +, David W Noon wrote: On Mon, 15 Mar 2010 17:00:02 +0100, Willie Wong wrote about Re: [gentoo-user] what's wrong with rsync 3.0.6?: On Mon, Mar 15, 2010 at 02:15:08PM +, David W Noon wrote: You run your emerge --sync jobs by hand?!!! Why is that surprising? Because emerge jobs produce copious amounts of output that is difficult to read as it scrolls past. I much prefer the cron daemon or at daemon to send me the output as email, so I can scroll backwards and forwards through it at my leisure. What output do you actually read from syncs? For builds, is it really wise to do all updates unattended? Also, for builds, there is such a thing as elogs (which allows you to save all messages to /var/log/portage for ease of reading at your leisure. You can even configure it to select what types of messages are saved): I neither need nor want to scroll through pages and pages of mostly useless output only to find the ewarn messages. I'm sure you have a good reason for wanting to do things your way, and I do not claim mine is better. I am just surprised that you sounded surprised to find out some people don't do things your way. My laptop does not have an always-on internet connection, nevermind it sits silently and off for most of the day. I sync by hand when I have time, roughly twice each week. Well, when your laptop is powered off the cron daemon won't run the emerge jobs, so that's really a non-issue. Actually, the cron daemon won't run because I don't have a cron daemon installed on the laptop. And I don't have a cron daemon because having periodic jobs only make sense if the computer is likely to be on when cron is triggered. Cheers, W -- Willie W. Wong ww...@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton
Re: [gentoo-user] Re: Strategy for using SAN/NAS for storage with Gentoo...
Hi, The budget is miniscule - and the performance demands (bandwidth and latency) are completely non-challenging. This IMHO pretty much rules out any kind of server-class hardware, which tends to be both costly and power-hungry. If you're thinking about buying used stuff, be sure to factor in the cost and difficulty of finding spares in some years' time. Given the point above I would also stick with software RAID. True HW RAID controllers are quite expensive and generally come with a x8 PCIe interface which will require a server motherboard -- x16 PCIe video card slots in commodity boards are usually only certified for x16 and x1 operation, so don't expect them to work reliably with other bus widths. Linux software RAID also has the advantage that the kernel is not tied to any specific piece of hardware. In case of a failure, your volumes will be readable on any other Linux system -- provided the disks themselves are not toast. If reliability is your primary concern, I would go for a simple RAID1 setup; if your volumes need to be bigger than a physical disk you can build a spanned volume over multiple mirrored pairs. Network throughput will mostly likely be your primary bottleneck, so I'd avoid striping as it would offer little in the way of performace at the expense of making data recovery extremely difficult in case the worst should happen. As for availability, I think the best strategy with a limited budget is to focus on reducing downtime: make sure your data can survive the failure of any single component, and choose hardware that you can get easily and for a reasonable price. Sh*t happens, so make it painless to clean up. Network protocol: If you do not need data sharing (i.e. if your volumes are only mounted by one client at a time), the simplest solution is to completely avoid having a FS on the storage server side -- just export the raw block device via iSCSI, and do everything on the client. In my experience this also works very well with Windows clients using the free MS iSCSI initiator. Alternatively, you can consider good old NFS, which performs decently and tends to behave a bit better -- especially when used over UDP -- in case of network glitches, like accidentally powering off a switch, yanking cables, losing wireless connectivity... CIFS should be avoided at all costs if your clients are not Windows machines. File systems: avoid complexity. As technically superior as it might be, in this kind of setup ZFS is only going to be resource hog and a maintenance headache; your priority should be having a rock-solid implementation and a reliable set of diagnostic/repair tools in case disaster strikes. Tried-and-true ext3 fits the bill nicely if you ask me; just remember to tune it properly according to your planned use -- eg. if a volume is going to be used to host huge VM disk images, be sure to create its filesystem with -T largefile4. Just my 2 cents, Andrea
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, 15 Mar 2010 23:20:03 +0100, Willie Wong wrote about Re: [gentoo-user] what's wrong with rsync 3.0.6?: On Mon, Mar 15, 2010 at 05:08:06PM +, David W Noon wrote: [snip] Because emerge jobs produce copious amounts of output that is difficult to read as it scrolls past. I much prefer the cron daemon or at daemon to send me the output as email, so I can scroll backwards and forwards through it at my leisure. What output do you actually read from syncs? I look at the differences in the Portage tree before and after. For builds, is it really wise to do all updates unattended? Perfectly. The emerge runs the same whether in background or foreground. If it's going to trash something, it will do it the same way whether you use an at job or run it directly in the console. Also, for builds, there is such a thing as elogs (which allows you to save all messages to /var/log/portage for ease of reading at your leisure. I have mine go to /var/log/portage/log. But these only log the activities within a single ebuild, not the other housekeeping that goes on in an emerge job. The output of a batch job contains the lot. I'm sure you have a good reason for wanting to do things your way, and I do not claim mine is better. I am just surprised that you sounded surprised to find out some people don't do things your way. Perhaps it is because I became used to running long-winded jobs in the background years ago on mainframes. It was always the case that using the terminal as the primary output device slowed down the job, because spooling the output to disk was always faster than displaying it on the terminal. I believe that to be so to this very day. Actually, the cron daemon won't run because I don't have a cron daemon installed on the laptop. And I don't have a cron daemon because having periodic jobs only make sense if the computer is likely to be on when cron is triggered. Using a modern cron daemon is a convenient way to run regular jobs, even on a machine that is powered off for much of the time. One can use the first option to kick off jobs relative to power-on time instead of wall clock time. -- Regards, Dave [RLU #314465] == dwn...@ntlworld.com (David W Noon) == signature.asc Description: PGP signature
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, 15 Mar 2010 20:46:11 +, David W Noon wrote: I do know `man less`, `man more`, etc., and output redirection to file. Heck, I'm even old enough to know Ctl+S and Ctl+Q, as I used to program PDP-11s back in the 1970s. But none of those addresses the fundamental issue of sitting there watching all this crap. emerge --sync | cat It only produces all that output when stdout is a terminal. Alternatively, redirect to /dev/null and you'll only see stderr. -- Neil Bothwick Will the last human please uninstall internet.exe. signature.asc Description: PGP signature
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Mon, 15 Mar 2010 23:10:41 +, David W Noon wrote: Also, for builds, there is such a thing as elogs (which allows you to save all messages to /var/log/portage for ease of reading at your leisure. I have mine go to /var/log/portage/log. But these only log the activities within a single ebuild, not the other housekeeping that goes on in an emerge job. The output of a batch job contains the lot. As do the log files in $PORT_LOGDIR, they contain exactly the same output you would see in the terminal. I emerge packages with the -j 2 option, which hides all the output unless an ebuild fails, but it is still in the logs. Elog information is mailed to me. -- Neil Bothwick One of the nice things about standards is that there are so many of them. signature.asc Description: PGP signature
Re: [gentoo-user] umount nfs share
On Mon, 15 Mar 2010 08:18:10 -0500, Harry Putnam wrote: I'm trying t umount an nfs mounted share but am told the resource is busy. umount -f fails too. What about umount -l? -- Neil Bothwick Angular Momentum Makes The World Go 'Round signature.asc Description: PGP signature
[gentoo-user] Problem with script calling OOCalc on amd64
Hi All, I have run into a problem which I cannot explain. I am trying to run this script in a amd64 installation: xterm -fg green -bg black -e 'gpg Personal/data.ods.gpg oocalc \ Personal/data.ods; shred --remove -z -v DATA/data.ods' On a x86 system, oocalc launches, I use the file and when I close it shred removes it. On the amd64 system, the file is shredded as soon as it is opened. This is what happens: [snip ...] gpg: AES256 encrypted data gpg: original file name='data.ods' random usage: poolsize=600 mixed=0 polls=0/0 added=0/0 outmix=0 getlvl1=0/0 getlvl2=0/0 secmem usage: 64/32768 bytes in 1 blocks I18N: Operating system doesn't support locale en_US shred: Personal/data.ods: pass 1/4 (random)... shred: Personal/data.ods: pass 2/4 (random)... shred: Personal/data.ods: pass 3/4 (random)... shred: Personal/data.ods: pass 4/4 (00)... shred: Personal/data.ods: removing shred: Personal/data.ods: renamed to Personal/ shred: Personal/: renamed to Personal/000 shred: Personal/000: renamed to Personal/00 shred: Personal/00: renamed to Personal/0 shred: Personal/0: renamed to Personal/ shred: Personal/: renamed to Personal/000 shred: Personal/000: renamed to Personal/00 shred: Personal/00: renamed to Personal/0 shred: Personal/data.ods: removed Is this something 64bit specific? Shouldn't xrterm behave the same in both x86 and amd64 with regards to this script? How do I get it to keep oocalc open and shred to kick in only after the oocalc application is closed? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Starting up gpg-agent script
On Monday 15 March 2010 13:32:51 you wrote: On 14 March 2010 21:30, Neil Bothwick n...@digimed.co.uk wrote: On Sun, 14 Mar 2010 20:23:40 +, Mick wrote: I am trying this script in /etc/env.d/90gpg-agent: if test -f $HOME/.gpg-agent-info kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2/dev/null; then GPG_AGENT_INFO=`cat $HOME/.gpg-agent-info` export GPG_AGENT_INFO else eval `/usr/bin/gpg-agent --daemon` echo $GPG_AGENT_INFO $HOME/.gpg-agent-info fi But when I emerged kgpg I got this error: !!! 'ParseError: Invalid token 'test' (not '='): /etc/env.d/90gpg-agent: line 1 in /etc/env.d/90gpg-agent' Can you please help me correct the above script, I'm not sure what's wrong with it. env-update doesn't evaluate scripts. It expects only variable assignments. Ahh! Didn't know that. Thanks. :-) You mention kgpg, are you using KDE? If so, it takes care of this automatically, you only need to uncomment the relevant lines in the agent startup and shutdown scripts in /etc/kde. Otherwise, put the script in a file in /etc/profile.d. I only use a few KDE apps. rather than the full DE. I used to have an one-liner in /etc/X11/Sessions/fluxbox, but that means if I choose another WM/DE the previous gpg-agent is still running. Meanwhile, I found this: http://bugs.gentoo.org/258944 will give it a spin and see how it goes. This works fine, as long as I start fluxbox from the console with startx, but not if I use xdm ... probably something to do with the former using xinit? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Tue, 16 Mar 2010 00:20:02 +0100, Neil Bothwick wrote about Re: [gentoo-user] what's wrong with rsync 3.0.6?: On Mon, 15 Mar 2010 23:10:41 +, David W Noon wrote: Also, for builds, there is such a thing as elogs (which allows you to save all messages to /var/log/portage for ease of reading at your leisure. I have mine go to /var/log/portage/log. But these only log the activities within a single ebuild, not the other housekeeping that goes on in an emerge job. The output of a batch job contains the lot. As do the log files in $PORT_LOGDIR, they contain exactly the same output you would see in the terminal. Not quite. The sequence in which the ebuilds were run is lost when the discrete logs are your only source of tracing through, although one could attempt to reconstruct it using the timestamps in the file names of the ebuild logs. They also do not contain the results of the pretend depclean that occurs at the end of an emerge job. Moreover, they do not contain the report of the number of configuration files that need updating by cfg-update (or the like). I emerge packages with the -j 2 option, which hides all the output unless an ebuild fails, but it is still in the logs. Elog information is mailed to me. I ended up switching off the emailing of ebuild logs, as it mostly duplicates text that is already in the emerge job output. These days, I primarily use the ebuild logs as uploads to Gentoo's bugzilla when there is a problem to be reported. -- Regards, Dave [RLU #314465] == dwn...@ntlworld.com (David W Noon) == signature.asc Description: PGP signature
Re: [gentoo-user] getting firmware for orinoco pcmcia card
At Mon, 15 Mar 2010 17:11:02 -0500 Paul Hartman paul.hartman+gen...@gmail.com wrote: On Mon, Mar 15, 2010 at 3:35 PM, Allan Gottlieb gottl...@nyu.edu wrote: I am installing gentoo on an old machine without wireless builtin. I have a hermes/orinoco pcmcia card that works fine. Indeed the wireless works fine, but is not right. When booting there is a very long delay at the net.eth1 and the system wants the agere_sta_fw.bin firmware. If you wait it out, it eventually proceeds and the wireless works. I assume I should be getting the firmware, but I don't know from where. I did emerge the orinoco-fwutils but that doesn't have firmware or say where to get it. You have to find and download the windows drivers for your device and extract the firmware out of them, then rename it and put it in /lib/firmware. See here: http://linuxwireless.org/en/users/Drivers/orinoco#device_firmware A google search turned up this firmware link: http://marc.info/?l=orinoco-develm=121078835610877q=p3 First and foremost, thanks. Ouch. I see from your web page that for wpa I do need the firmware. I may try to limp along without the firmware. As I mentioned the card does work but delay booting by minutes. Thanks again, allan
Re: [gentoo-user] what's wrong with rsync 3.0.6?
On Tue, Mar 16, 2010 at 01:00:21AM +, David W Noon wrote On Tue, 16 Mar 2010 00:20:02 +0100, Neil Bothwick wrote As do the log files in $PORT_LOGDIR, they contain exactly the same output you would see in the terminal. Not quite. The sequence in which the ebuilds were run is lost when the discrete logs are your only source of tracing through, although one could attempt to reconstruct it using the timestamps in the file names of the ebuild logs. I use mc (Midnight Commander), bring up /var/log/portage/elog, and with Sort Order in the left panel set to Modify Time, I get a chronological listing of all the warnings. What could be easier? -- Walter Dnes waltd...@waltdnes.org
Re: [gentoo-user] umount nfs share
Dnia 2010-03-15, o godz. 08:18:10 Harry Putnam rea...@newsguy.com napisał(a): I'm trying t umount an nfs mounted share but am told the resource is busy. umount -f fails too. So first I turned off all the xterms I had running which should have killed any shell operating there. Still says resouce is busy. So trying to see what is doing it with `lsof' However, when I run `lsof' (no arguments), it fails to produce any output. Just been setting there for 5-6 minutes, now. When I know from past use it should have produced quite a pile of output. I tried a lsof option that is supposed to show specifically nfs related ( lsof -b /nfs/mount/point) So trying it on the one reporting `busy' lsof -b /projects Which gave a gout of output with this kind of stuff in it: lsof: avoiding readlink(/projects): -b was specified. lsof: avoiding readlink(/): -b was specified. lsof: avoiding stat(/): -b was specified. lsof: WARNING: can't stat() rootfs file system / Output information may be incomplete. lsof: avoiding readlink(/): -b was specified. lsof: avoiding stat(/): -b was specified. lsof: WARNING: can't stat() reiserfs file system / Output information may be incomplete. [...] Anyone know what might be going on here? Perhaps server is not responding... so make it respond :) If that is the case add some rule to firewall or /etc/hosts to redirect requests to localhost (use REJECT not DROP). And then try again unmounting. -- Kacper Kopczyński
Re: [gentoo-user] wine cannot compile with jpeg flag
Looks like the jpeg use flag is ok to use according to bug #283089 [ http://bugs.gentoo.org/show_bug.cgi?id=283089] It looks like it is waiting for the thumbs-up from everyone to be taken out. I have been running with the jpeg use flag unmasked for a while and haven't seen any issues. Cheers Kad On Mon, Mar 15, 2010 at 8:03 AM, Xi Shen davidshe...@googlemail.com wrote: On Mon, Mar 15, 2010 at 11:35 PM, Arttu V. arttu...@gmail.com wrote: Create /etc/portage/profile/package.use.mask and type in 'app-emulation/wine -jpeg' (note the minus) to locally unmask the jpeg flag for wine. I don't know how good idea that is, though, as /usr/portage/profiles/arch/amd64/package.use.mask has the following for wine (maybe you'd better check the relevant bugs noted for jpeg first?): # Samuli Suominen ssuomi...@gentoo.org (02 Feb 2009) # esd, bug 301824 # mp3, bug 283860, 299490 # jpeg, bug 283089, 303255, 299149 # capi, 292938 # ghoto2, 286563 # scanner, 299505 # hal, 299149 app-emulation/wine capi esd gphoto2 hal jpeg mp3 scanner thanks a lot :) it is compiling now -- Best Regards, David Shen http://twitter.com/davidshen84/