Re: [gentoo-user] unable to login to user account or do su - username
Valmor de Almeida schrieb: Hello, After a system/world update my user account dealmeida cannot be logged to or root cannot su to it. When su - dealmeida is issued at the root command prompt, it immediately returns to root. When login is at the console the motd appears (twice; why?) and then the session is closed. In the /var/log/messages I get May 2 20:42:35 xeon0 su[29286]: Successful su for dealmeida by root May 2 20:42:35 xeon0 su[29286]: + pts/1 root:dealmeida May 2 20:42:35 xeon0 su[29286]: pam_unix(su:session): session opened for user dealmeida by root(uid=0) May 2 20:42:35 xeon0 su[29286]: pam_unix(su:session): session closed for user dealmeida No other account has this problem. Any ideas? Thanks, -- Valmor A low hanging fruit: Maybe the user wrote 'exit' or 'exec' into her .bashrc By the way: Which shell is defined in /etc/passwd? signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] crazy KDE4 panel
On Sunday 03 May 2009 02:58:08 Volker Armin Hemmann wrote: On Sonntag 03 Mai 2009, Dale wrote: I thought glxgears was a GPU test not a CPU test. it tests almost nothing from the gpu - and the resulting fps are very depent on the CPU.. so... The only thing glxgears tests is if OpenGL is working (aka enabled or disabled). Other than that it measures nothing. Even the numbers are suspect. It's like calling out to your 5 year old kid Are you being naughty? and they answer no. You know the kid is in the house, but still have no idea what they are doing. And their answer is definitely not to be trusted :-) -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] any gentoo mutt users?
On Sun, 3 May 2009 00:06:54 -0400 James j...@nc.rr.com wrote: I've thought about doing something similar to this, but it's a last resort. I end up using mutt on various different workstations and it'd be nice to run everything locally. Obviously a solution where I'm fetching mail on every machine where I'm using mutt doesn't scale very well. But that's exactly the benefit of IMAP - you can always access your mail, gathered from dozens of mailboxes and neatly sorted and filtered to your folders, from any workstation, pda, smartphone etc. And everything you do in this metabox just stays there, so you don't have to care about transferring messages between local boxes, remembering the messages you've replied to or already read, sorting, filtering... It's certainly an alternative, however, if I can't find anything else that works. I've read much criticism of imap protocol, but with such widespread adoption I doubt there can be anything more versatile at the moment. -- Mike Kazantsev // fraggod.net signature.asc Description: PGP signature
Re: [gentoo-user] any gentoo mutt users?
On Sunday 03 May 2009 06:06:54 James wrote: Alan, Thanks for the response. :) I've thought about doing something similar to this, but it's a last resort. I end up using mutt on various different workstations and it'd be nice to run everything locally. Obviously a solution where I'm fetching mail on every machine where I'm using mutt doesn't scale very well. I've got several hard-core network engineer users with the same problem. They solved it in a neat way, by running mutt in a permanent screen session on a server I provided for the purpose. Getmail is now not necessary as I deliver their mail to that machine. Working on the LAN and from home over vpn it just works, connecting from home without vpn is a simple matter of ssh port forwarding. Their shell profiles on every workstation runs screen and .screenrc is set up to automatically connect to that server. It works for them and is just geeky enough to appeal :-) -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] any gentoo mutt users?
On Sunday 03 May 2009 11:44:39 Mike Kazantsev wrote: It's certainly an alternative, however, if I can't find anything else that works. I've read much criticism of imap protocol, but with such widespread adoption I doubt there can be anything more versatile at the moment. Well, James' problem is not the use of IMAP per se, rather that he can't find a mailbox monitor that works right with IMAP. For him, that's a little bit of a deal-breaker -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] unable to login to user account or do su - username
On Sunday 03 May 2009 04:53:41 Mike Kazantsev wrote: On Sat, 02 May 2009 20:52:39 -0400 I don't know about motd, but the rest looks like pam problem to me, if you're using pam, of course. Try 'euse -i pam' to see if it's enabled. If that's the case, first of all I'd suggest to check etc-update. Then look through /etc/pam.d, especially system-* files. There you can remove some of the required (for successfull authentication) modules, so their failure won't affect the process. And read the elogs. There's been some pam updates come through on my machines the last few weeks/months. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] unable to login to user account or do su - username
Florian Philipp wrote: A low hanging fruit: Maybe the user wrote 'exit' or 'exec' into her .bashrc By the way: Which shell is defined in /etc/passwd? .bashrc is fine. The shell is /bin/bash Thanks, -- Valmor
Re: [gentoo-user] any gentoo mutt users?
Ahhh yes, screen! Good idea. ;) I'll have to think about how to implement this because I'm not certain I'll have access to one single server from all the different locations I know I'm going to be using mutt as a mail client. :) Definitely geeky to boot! Good idea indeed! -j On Sun, May 3, 2009 at 5:10 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On Sunday 03 May 2009 06:06:54 James wrote: Alan, Thanks for the response. :) I've thought about doing something similar to this, but it's a last resort. I end up using mutt on various different workstations and it'd be nice to run everything locally. Obviously a solution where I'm fetching mail on every machine where I'm using mutt doesn't scale very well. I've got several hard-core network engineer users with the same problem. They solved it in a neat way, by running mutt in a permanent screen session on a server I provided for the purpose. Getmail is now not necessary as I deliver their mail to that machine. Working on the LAN and from home over vpn it just works, connecting from home without vpn is a simple matter of ssh port forwarding. Their shell profiles on every workstation runs screen and .screenrc is set up to automatically connect to that server. It works for them and is just geeky enough to appeal :-) -- alan dot mckinnon at gmail dot com
[gentoo-user] Canon PowerShot A400 Gentoo
Hello all! When I used Ubuntu :)), I got files from my camera by F-Spot. Now I compiled f-spot (http://www.gentoo-wiki.info/F-Spot), but now camera does not see PC and F-Spot does not see camera too. What it need for work? Thanks! -- Alexander Pilipovsky aka Engraver
Re: [gentoo-user] Canon PowerShot A400 Gentoo
Alexander Pilipovsky wrote: Hello all! When I used Ubuntu :)), I got files from my camera by F-Spot. Now I compiled f-spot (http://www.gentoo-wiki.info/F-Spot), but now camera does not see PC and F-Spot does not see camera too. What it need for work? Thanks! I have a Canon PowerShot A95 and I use gtkam to get my pictures. Really easy to use in my opinion and has quite a few features if you need them. You also may want to make sure you have the correct CAMERAS= line in make.conf. I have CAMERAS=canon ptp2 in my make.conf. I think ptp2 is the one that it actually uses. Just a thought. now I will go check into this F-spot. I don't recall hearing of it before. Hope one of those will help. Dale :-) :-)
Re: [gentoo-user] any gentoo mutt users?
Bingo. Mutt works great as an IMAP client (which is rather interesting because, to the best of my knowledge, mutt did not support IMAP until somewhat recently, and quite a bit after it first appeared). I personally do everything via IMAP -- no worries about switching mail clients and having to convert emails. I don't know what there is to criticize about IMAP. ;) It's infinitely better than pop for the grand majority of users. It is somewhat strange, however, that almost every mail client on the planet can scan all the mail folders available / used and let the user know if there's a new message, but mutt seems to struggle when is a very large number of (large) mailboxes. Mutt, actually, has a built-in mail checker. To use it you have to (a) use mbox format (I believe), and (b) set the mailboxes you want monitored in the .muttrc using a format similar to the one below: mailboxes +Stuff mailboxes +moreStuff This works great when I have one or two mailboxes listed. But when I set a mailboxes directive for every one of my mbox files, mutt ends up practically hanging and becoming unusable about 95% of the time. It takes about 5 minutes from executing mutt until I can start using it because it tries to download every single email to keep track of what is already there so it knows when a new message arrives so it can warn the user. I imagine I'm not the only person who has had this problem in the 14 years mutt has been around. ;) I guess that's why gbuffy and xbuffy were created in the first place. Funny how these older tools (mutt, *buffy, etc.) seem to work better than all the newer GUI tools like gnubiff, etc.). They just don't seem to make things the way they used to. ;) -j On Sun, May 3, 2009 at 6:05 AM, Alan McKinnon alan.mckin...@gmail.com wrote: On Sunday 03 May 2009 11:44:39 Mike Kazantsev wrote: It's certainly an alternative, however, if I can't find anything else that works. I've read much criticism of imap protocol, but with such widespread adoption I doubt there can be anything more versatile at the moment. Well, James' problem is not the use of IMAP per se, rather that he can't find a mailbox monitor that works right with IMAP. For him, that's a little bit of a deal-breaker -- alan dot mckinnon at gmail dot com
[gentoo-user] Re: any gentoo mutt users?
On 2009-05-03, James j...@nc.rr.com wrote: I actually do use xfce4, so I may give the mailwatch plugin a try. You'll probably want to use the SVN version -- it's got several fixes that I don't think are in the released packages. Certainly lame that it opens a new connection every time it polls, but maybe that's something I can tweak in the code if I settle. I've been thinking about having a go at re-writing the IMAP stuff to hold the connection open and use the IDLE command to allow the server to send a notification to the client instead of having the clinet repeatedly polling the server, but I haven't done anything yet (and I'm probably not going to anytime soon). What do you use to poll, Grant? Gbuffy? The XFCE mailwatch plugin. -- Grant
Re: [gentoo-user] any gentoo mutt users?
On Sunday 03 May 2009 16:03:50 James wrote: Ahhh yes, screen! Good idea. ;) I'll have to think about how to implement this because I'm not certain I'll have access to one single server from all the different locations I know I'm going to be using mutt as a mail client. And there's not a problem in the world that can't use ssh -L in it's solution somehow :-) -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] any gentoo mutt users?
On Sun, 3 May 2009 12:05:43 +0200 Alan McKinnon alan.mckin...@gmail.com wrote: Well, James' problem is not the use of IMAP per se, rather that he can't find a mailbox monitor that works right with IMAP. For him, that's a little bit of a deal-breaker You're right, my bad. I should probably get a bit more sleep :) -- Mike Kazantsev // fraggod.net signature.asc Description: PGP signature
Re: [gentoo-user] Re: emerge --oneshot gcc-4.1.2
On Sat, 02 May 2009 20:34:02 +0300 Nikos Chantziaras rea...@arcor.de wrote: Hung Dang wrote: Hi all I have to emerge gcc-4.1.2 to use with CUDA. However, I receive the following message. !!! 'gcc-4.1.2' is not a valid package atom. !!! Please check ebuild(5) for full details. What should I do to avoid of this problem? Try: emerge --oneshot =gcc-4.1.2 (that is, you need an = in front.) Or simply just: emerge --oneshot gcc if you're not using an ~arch (testing) GCC. In many architectures GCC 4.3 is the newest stable versions, dude.
Re: [gentoo-user] crazy KDE4 panel
On Sonntag 03 Mai 2009, Alan McKinnon wrote: On Sunday 03 May 2009 02:58:08 Volker Armin Hemmann wrote: On Sonntag 03 Mai 2009, Dale wrote: I thought glxgears was a GPU test not a CPU test. it tests almost nothing from the gpu - and the resulting fps are very depent on the CPU.. so... The only thing glxgears tests is if OpenGL is working (aka enabled or disabled). Other than that it measures nothing. Even the numbers are suspect. It's like calling out to your 5 year old kid Are you being naughty? and they answer no. You know the kid is in the house, but still have no idea what they are doing. And their answer is definitely not to be trusted :-) well, you know they are alive and still able to talk...
Re: [gentoo-user] Moving an installed system to RAID10
Or you can create raid0 with partitions on both drives (sda1+sdb1) and mirror it on the second set of partitions on the same drives. But then you do not have any protection from total disk failure you'd normally expect from raid1. Only some very little protection against a sector failure. Plus two equally strange configurations where you first create raid1-mirrors and then strip them to raid0. Doing raid10 (or raid01) with only 2 disks is imho not a good idea... It is very well written everywhere that deals with raid that it is a very bad practice to have more than one raid device per drive AND per bus. Having two identical disks and a need for redundancy calls for raid1 (mirror), nothing else. Or anything else is just fancy crap, but hey, you can learn a lot with fancy crap. If you wish to get something a little more than raid1, it might be with raid6: partition each drives in 2 equal sized partitions, then create the raid6 on those 4 devices. You loose both reading and writting performance due to seeking from one partition to another, but you keep redundancy since with raid6, 2 device failures can happen. The advantage here, is scalability: you buy a third drive later, partition it correctly and 'grow' your raid6 on those 2 new devices. But even then, if you buy a 3rd drive, i'd recommend raid5 simply on the whole disks (well one partition per drive). Here, do whatever scenario you want, and when you buy a 3rd disk: fail and remove the secondary drive on current raid create a raid5 with the new drive and the removed spare and 'missing' copy old raid over to new raid fail old raid and add its device to the new raid update your /etc files to point to the new raid Enjoy!
Re: [gentoo-user] Canon PowerShot A400 Gentoo
I added CAMERAS... string in make.conf and installed gtkam, but it says that no cameras found too... Later, when I connected camera to computer, it disables camera's screen, but now it works. USB port works and lsusb see them: sh-3.2# lsusb Bus 001 Device 005: ID 0951:1602 Kingston Technology Bus 001 Device 001: ID 1d6b:0002 Bus 002 Device 008: ID 04a9:30b7 Canon, Inc. PowerShot A400 / PowerShot A400 (PTP mode) Bus 002 Device 003: ID 0d9f:0001 Powercom Co., Ltd Bus 002 Device 002: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0 Bus 002 Device 001: ID 1d6b:0001 May be, I must mount it's memory stick by any way?.. Dale написав(ла): Alexander Pilipovsky wrote: Hello all! When I used Ubuntu :)), I got files from my camera by F-Spot. Now I compiled f-spot (http://www.gentoo-wiki.info/F-Spot), but now camera does not see PC and F-Spot does not see camera too. What it need for work? Thanks! I have a Canon PowerShot A95 and I use gtkam to get my pictures. Really easy to use in my opinion and has quite a few features if you need them. You also may want to make sure you have the correct CAMERAS= line in make.conf. I have CAMERAS=canon ptp2 in my make.conf. I think ptp2 is the one that it actually uses. Just a thought. now I will go check into this F-spot. I don't recall hearing of it before. Hope one of those will help. Dale :-) :-) -- Alexander Pilipovsky aka Engraver
Re: [gentoo-user] any gentoo mutt users?
I've got several hard-core network engineer users with the same problem. They solved it in a neat way, by running mutt in a permanent screen session on a server I provided for the purpose. Getmail is now not necessary as I deliver their mail to that machine. Working on the LAN and from home over vpn it just works, connecting from home without vpn is a simple matter of ssh port forwarding. Their shell profiles on every workstation runs screen and .screenrc is set up to automatically connect to that server. I use mutt with screen as well. It works great even from my nokia cellphone after installing the putty ssh client. It's probably the fastest, and lowest bandwidth consuming email client for mobile phones. One problem I had was Vim was very slow to startup, as it was trying to connect to the X server remotely. To fix this vim can be started with the -X parameter or the DISPLAY variable can be unset.
Re: [gentoo-user] sync'ing two computers (not related to emerge)
How long is unison taking to check for changes? I can usually reconcile changes in my home directory (approximately 45G, 125,000 files) in less than 10-15 seconds between my slow laptop drive and a remote machine. However, if you are syncing with a Windows machine, expect the sync to be much slower. Fast checking is not safe on Windows, as unison can miss changes, so it scans every file every time unless you tell it otherwise. Ok i had to try a few times and now with tcpkeepalive being turned on it doesnt disconnect. But when the scan is done, it 'reconciles' the changes (so it has received the changes from the remote end) and Begins the transfer of a dozen files, but not a bit is transfered. The sshd and unison process on the remote host are waiting/sleeping or in coma, but nothing happens. I just tried again and let it sit on the transfer to see if the processes would wake up, but it read from remote host that connection timed out. I'm not sure but this may be due to the fact i'm on an unstable link... I'll try once more with a ssh session on the side to see if that session will get disconnected or not... It would be so nice if unison could 'remember' the changes on my HD against its local archive... anyway... Thanks, Simon
Re: [gentoo-user] sync'ing two computers (not related to emerge)
http://www.linuxjournal.com/article/5976 http://kitenet.net/~joey/svnhome/ http://www.google.com/search?q=homedir+version+control Hey thanks Stroller, I'd be interested in these solutions, but i dont have enough space to copy everything in double (keep a backup). So what i do, and this is why i need unison, is that my older computer is the backup of my newer computer. Only a few files here and there are not copied over (those that are computer specific). But your idea was very good and I'll keep note of it... I'm thinking on buying a hard drive as soon as it becomes possible (unfortunately in my situation, this may not happen until a few more months) and when i get that, I'll set it up as a central repository (if i havent' found any better solution until then). Thanks!
Re: [gentoo-user] Canon PowerShot A400 Gentoo
Thanks, Dale, after your letter I found some solution :) I unmerged libphoto and downloaded it's latest version from http://www.gphoto.org/ and images are downloading by gphoto2 and gtkam. But when I works not under root any program cannot get access to /dev/ttS0. Changing permissions to 777 for ttS0 does not take any effect. What permissions these programs need? Dale wrote: Alexander Pilipovsky wrote: Hello all! When I used Ubuntu :)), I got files from my camera by F-Spot. Now I compiled f-spot (http://www.gentoo-wiki.info/F-Spot), but now camera does not see PC and F-Spot does not see camera too. What it need for work? Thanks! I have a Canon PowerShot A95 and I use gtkam to get my pictures. Really easy to use in my opinion and has quite a few features if you need them. You also may want to make sure you have the correct CAMERAS= line in make.conf. I have CAMERAS=canon ptp2 in my make.conf. I think ptp2 is the one that it actually uses. Just a thought. now I will go check into this F-spot. I don't recall hearing of it before. Hope one of those will help. Dale :-) :-) -- Alexander Pilipovsky aka Engraver
Re: [gentoo-user] Canon PowerShot A400 Gentoo
Dale rdalek1...@gmail.com writes: You also may want to make sure you have the correct CAMERAS= line in make.conf. I have CAMERAS=canon ptp2 in my make.conf. I think ptp2 is the one that it actually uses. My Canon EOS400D works fine in Ubuntu. But I was not able to get F-Spot to detect it. I had CAMERAS=canonin make.conf. Will add ptp2 and will try emerging F-Spot again. BTW, any lightweight Photo Manager's out there that are good? Regards, Masood Ahmed -- BOFH Excuse #291: Due to the CDA, we no longer have a root account.
Re: [gentoo-user] Frox iptables ftp proxy
On Sun, 19 Apr 2009 14:02:38 -0400 D.H. derrick...@comcast.net wrote: I'd like to set up an ftp proxy on my home firewall so I can scan for viruses using clamd. I found frox. Which looks like it will do what I want. I've pretty much used the default install which makes frox listen on 127.0.0.1:2121. But, I'm not sure the firewall rules are working right. eth1 is the internal interface iptables -A FORWARD -p tcp -i eth1 --destination-port 2121 \ --destination 127.0.0.1 -j ACCEPT iptables -t nat -A PREROUTING -p tcp -i eth1 --destination-port 21 \ -j DNAT --to-destination 127.0.0.1:2121 Either that, or frox itself is having issues. Any ideas? While I'm at it, is there an alternative to frox? Hi, I believe this schema won't work because DNAT target rewrites the destination address in the IP packet headers. Therefore what frox receives is a sequence of packets with destination set to its own address. Try using the REDIRECT target which is supposed to rewrite the port fields only. -- Best regards, Daniel
Re: [gentoo-user] Re: emerge --oneshot gcc-4.1.2
I need gcc-4.1.2 because CUDA examples are failed when compiled with gcc-4.3.3 or at least I could not make it work with CUDA. Now I have the new problem that I could not compile gcc-4.1.2 with gcc-4.3.3 and it seem hard to solve this problem. Does anyone here in our forum could make CUDA work on Gentoo with gcc-4.3? Thanks a lot Hung Jorge Morais wrote: On Sat, 02 May 2009 20:34:02 +0300 Nikos Chantziaras rea...@arcor.de wrote: Hung Dang wrote: Hi all I have to emerge gcc-4.1.2 to use with CUDA. However, I receive the following message. !!! 'gcc-4.1.2' is not a valid package atom. !!! Please check ebuild(5) for full details. What should I do to avoid of this problem? Try: emerge --oneshot =gcc-4.1.2 (that is, you need an = in front.) Or simply just: emerge --oneshot gcc if you're not using an ~arch (testing) GCC. In many architectures GCC 4.3 is the newest stable versions, dude.
[gentoo-user] Re: Anyone running gnome on ~amd64?
Ivan Kanakarakis wrote: I use Gnome on ~amd64 and everything is working fine. I don't use pulse audio, just alsa. I also had those issues with x11-drivers/nvidia-drivers-180.35 as Paul said. Other than that I can't think of something right now... That was the problem, thanks guys! I can't imagine how nvidia-drivers caused the gnome-settings problem, but it did. Now that I know that both of you run ~amd64, could I trouble you to take a look at a question I'm about to post concerning 'nanosleep'? Thanks again.
[gentoo-user] nanosleep broken on ~amd64?
By accident I noticed that the configure script for one of the gentoo packages (I think maybe it was coreutils but I can't remember) gives different results on ~x86 and ~amd64. The script uses a test for working nanosleep that I've included below. Could someone else compile the test and confirm that it returns 119 on ~amd64 instead of 0? Here are the steps if you don't already know them: 1. Copy and paste the c code below into a new file named conftest.c 2. # gcc conftest.c 3. # ./a.out (don't forget that leading dot) 4. # echo $? (this should print either 0 or 119) I get 119 on ~amd64, which implies the test for nanosleep fails. Thanks! Here are the contents of conftest.c: #include errno.h #include limits.h #include signal.h #include sys/time.h #include time.h #include unistd.h #define TYPE_SIGNED(t) (! ((t) 0 (t) -1)) #define TYPE_MAXIMUM(t) ((t) (! TYPE_SIGNED (t) ? (t) -1 : ~ (~ (t) 0 (sizeof (t) * CHAR_BIT - 1 static void check_for_SIGALRM (int sig) { if (sig != SIGALRM) _exit (1); } int main () { static struct timespec ts_sleep; static struct timespec ts_remaining; static struct sigaction act; if (! nanosleep) return 1; act.sa_handler = check_for_SIGALRM; sigemptyset (act.sa_mask); sigaction (SIGALRM, act, NULL); ts_sleep.tv_sec = 0; ts_sleep.tv_nsec = 1; alarm (1); if (nanosleep (ts_sleep, NULL) != 0) return 1; ts_sleep.tv_sec = TYPE_MAXIMUM (time_t); ts_sleep.tv_nsec = 9; alarm (1); if (nanosleep (ts_sleep, ts_remaining) == -1 errno == EINTR TYPE_MAXIMUM (time_t) - 10 ts_remaining.tv_sec) return 0; return 119; }
Re: [gentoo-user] sync'ing two computers (not related to emerge)
On Sun, 2009-05-03 at 10:32 -0400, Simon wrote: How long is unison taking to check for changes? I can usually reconcile changes in my home directory (approximately 45G, 125,000 files) in less than 10-15 seconds between my slow laptop drive and a remote machine. However, if you are syncing with a Windows machine, expect the sync to be much slower. Fast checking is not safe on Windows, as unison can miss changes, so it scans every file every time unless you tell it otherwise. Ok i had to try a few times and now with tcpkeepalive being turned on it doesnt disconnect. But when the scan is done, it 'reconciles' the changes (so it has received the changes from the remote end) and Begins the transfer of a dozen files, but not a bit is transfered. The sshd and unison process on the remote host are waiting/sleeping or in coma, but nothing happens. I just tried again and let it sit on the transfer to see if the processes would wake up, but it read from remote host that connection timed out. I'm not sure but this may be due to the fact i'm on an unstable link... I'll try once more with a ssh session on the side to see if that session will get disconnected or not... It would be so nice if unison could 'remember' the changes on my HD against its local archive... anyway... Thanks, Simon An unstable link is probably triggering your issue. If the link dies and comes back, unison (at least version 2.27.57, what I have here) gets confused and just sits there. What's interesting is that if unison is killed on the initiating machine, the remote process stops as well, which leads me to believe this is a bug in unison; they can talk, but they don't do anything. I've glanced at the code before despite my lack of familiarity with OCaml, as my wireless connection will often die, causing much grief, but I've never found a solution. You could try syncing subdirectories iteratively within what you want to sync and hope that your connection does not die during the smaller sync, but that really isn't a good solution. I personally use this method to speed up synchronization if, for example, I only need my latest CS project synchronized but not any new music I may have. Unison is smart enough to use the same hash database if you use the same root directories and use the Path directive in your configuration to limit what is synchronized, so it should not re-hash your files on a later sync. As for other solutions, if you cannot get unison to work with your connection, I would suggest using a DVCS. I tried synchronizing my home directory with git before finding unison. The DVCS approach is better than SVN or CVS because it takes up less space and does not require a server. The disadvantages are the increased space used to store the backend files and the need to commit all of your files before pushing/pulling to/from the other machine (though I guess that could be an advantage, depending on your needs). It isn't optimal, but it can work, despite the git manual specifically mentioning that git was not made to do such a thing. Mercurial might work better, but I've never tried to use it. You might hit the same issues if the connection dies; I don't know. If you do find something that works similar to unison, but is more robust, I'd love to hear about it. I've tired a number of things, but I keep coming back to unison, despite its issues. Regards, Brandon Vargo
Re: [gentoo-user] nanosleep broken on ~amd64?
On Sun, 03 May 2009 14:14:38 -0700 walt w41...@gmail.com wrote: By accident I noticed that the configure script for one of the gentoo packages (I think maybe it was coreutils but I can't remember) gives different results on ~x86 and ~amd64. The script uses a test for working nanosleep that I've included below. Could someone else compile the test and confirm that it returns 119 on ~amd64 instead of 0? ~amd64, returns 119 /loki_val
Re: [gentoo-user] nanosleep broken on ~amd64?
walt wrote: Could someone else compile the test and confirm that it returns 119 on ~amd64 instead of 0? It returns 119 on an semi-ancient Athlon64 3200+ box here as well. Could kernel HZ-settings affect the outcome? This box has CONFIG_HZ=250, but tomorrow I can try on another amd64 which runs a 1000HZ kernel IIRC. -- Arttu V.
Re: [gentoo-user] Canon PowerShot A400 Gentoo
Alexander Pilipovsky wrote: Thanks, Dale, after your letter I found some solution :) I unmerged libphoto and downloaded it's latest version from http://www.gphoto.org/ and images are downloading by gphoto2 and gtkam. But when I works not under root any program cannot get access to /dev/ttS0. Changing permissions to 777 for ttS0 does not take any effect. What permissions these programs need? Dale wrote: Alexander Pilipovsky wrote: Hello all! When I used Ubuntu :)), I got files from my camera by F-Spot. Now I compiled f-spot (http://www.gentoo-wiki.info/F-Spot), but now camera does not see PC and F-Spot does not see camera too. What it need for work? Thanks! -- Alexander Pilipovsky aka Engraver Make sure you are in the following groups and it should work. This is my list: r...@smoker / # cat /etc/group | grep dale tty:x:5:dale lp:x:7:lp,dale wheel:x:10:root,dale floppy:x:11:root,haldaemon,dale uucp:x:14:uucp,nut,dale audio:x:18:dale cdrom:x:19:dale,haldaemon dialout:x:20:root,dale video:x:27:root,dale cdrw:x:80:haldaemon,dale usb:x:85:haldaemon,dale users:x:100:games,dale portage:x:250:portage,dale cron:x:16:dale messagebus:x:440:dale lpadmin:x:106:dale haldaemon:x:441:haldaemon,dale plugdev:x:442:haldaemon,dale games:x:35:dale nut:x:84:nut,dale wireshark:x:444:dale camera:x:450:root,dale r...@smoker / # I think plugdev, camera, usb and haldaemon are the important ones. You can run gtkam as root to test this theory. If it works as root, you have a permissions problem for sure. This may help too: r...@smoker / # equery list gphoto [ Searching for package 'gphoto' in all categories among: ] * installed packages [I--] [ ] media-libs/libgphoto2-2.4.3 (0) r...@smoker / # equery list gtkam [ Searching for package 'gtkam' in all categories among: ] * installed packages [I--] [ ] media-gfx/gtkam-0.1.16.1 (0) r...@smoker / # I'm not sure why it is using ttS0 tho. Mine is found under /dev/bus/usb/. A long time ago I had trouble with udev not setting permissions correctly but I think that has been fixed for a good while now. I do recall having to copy a file over to /etc/udev. The rule had libgphoto in the name. May want to make sure it is there. Hope that helps. Dale :-) :-)
[gentoo-user] USB barcode scanner
I have a 2-dimensional usb bar code scanner that I'm trying to get working ( This is the exact one if interested: http://www.barcodesinc.com/metrologic/ms1690.htm ). It scans, but nothing gets displayed. How can I get the focused window/terminal to understand that the device should be treated as stdin? The output from lsusb and lsusb -D is below. Thanks, # lsusb Bus 006 Device 001: ID 1d6b:0001 Bus 005 Device 002: ID 0c2e:0720 Metro Bus 005 Device 001: ID 1d6b:0001 Bus 004 Device 001: ID 1d6b:0001 Bus 003 Device 001: ID 1d6b:0001 Bus 002 Device 001: ID 1d6b:0002 Bus 001 Device 001: ID 1d6b:0002 # lsusb -D /proc/bus/usb/005/002 Device: ID 0c2e:0720 Metro Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize016 idVendor 0x0c2e Metro idProduct 0x0720 bcdDevice 53.57 iManufacturer 1 Metrologic iProduct2 Metrologic Scanner iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 41 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 3 POS USB bmAttributes 0x80 (Bus Powered) MaxPower 450mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 ** UNRECOGNIZED: 09 21 11 01 00 01 22 3f 00 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 10 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 10 Device Status: 0x (Bus Powered) # Thanks again, dave
Re: [gentoo-user] USB barcode scanner
dhk wrote: I have a 2-dimensional usb bar code scanner that I'm trying to get working ( This is the exact one if interested: http://www.barcodesinc.com/metrologic/ms1690.htm ). It scans, but nothing gets displayed. How can I get the focused window/terminal to understand that the device should be treated as stdin? The output from lsusb and lsusb -D is below. Thanks, It doesn't look like you have the HID keyboard version. I have an ID Tech IDT4439U which when plugged in behaves like a keyboard. In the following lsusb output, notice the iConfiguration and bInterfaceClass parameters. My wild guess is you will need a driver. Also you may want to verify you have CONFIG_HID* enabled in your kernel config. HTH, Roy Bus 006 Device 003: ID 04b4:0101 Cypress Semiconductor Corp. Keyboard/Hub Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 1.00 bDeviceClass0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x04b4 Cypress Semiconductor Corp. idProduct 0x0101 Keyboard/Hub bcdDevice0.01 iManufacturer 1 Marson iProduct2 Marson Barcode/USB Link KDBv1.21 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 34 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 4 HID Keyboard / Mouse bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 1 Boot Interface Subclass bInterfaceProtocol 1 Keyboard iInterface 5 EP1 Interrupt HID Device Descriptor: bLength 9 bDescriptorType33 bcdHID 1.00 bCountryCode0 Not supported bNumDescriptors 1 bDescriptorType34 Report wDescriptorLength 63 Report Descriptors: ** UNAVAILABLE ** Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes3 Transfer TypeInterrupt Synch Type None Usage Type Data wMaxPacketSize 0x0008 1x 8 bytes bInterval 10 Device Status: 0x0002 (Bus Powered) Remote Wakeup Enabled # grep HID /usr/src/linux/.config CONFIG_HID_SUPPORT=y CONFIG_HID=y CONFIG_HID_DEBUG=y CONFIG_HIDRAW=y CONFIG_USB_HID=y # CONFIG_HID_PID is not set CONFIG_USB_HIDDEV=y # Special HID drivers CONFIG_HID_COMPAT=y CONFIG_HID_A4TECH=y CONFIG_HID_APPLE=y CONFIG_HID_BELKIN=y CONFIG_HID_BRIGHT=y CONFIG_HID_CHERRY=y CONFIG_HID_CHICONY=y CONFIG_HID_CYPRESS=y CONFIG_HID_DELL=y CONFIG_HID_EZKEY=y CONFIG_HID_GYRATION=y CONFIG_HID_LOGITECH=y CONFIG_HID_MICROSOFT=y CONFIG_HID_MONTEREY=y CONFIG_HID_PANTHERLORD=y CONFIG_HID_PETALYNX=y CONFIG_HID_SAMSUNG=y CONFIG_HID_SONY=y CONFIG_HID_SUNPLUS=y # CONFIG_USB_PHIDGET is not set
Re: [gentoo-user] unable to login to user account or do su - username
Mike Kazantsev wrote: I don't know about motd, but the rest looks like pam problem to me, if you're using pam, of course. Try 'euse -i pam' to see if it's enabled. If that's the case, first of all I'd suggest to check etc-update. Then look through /etc/pam.d, especially system-* files. There you can remove some of the required (for successfull authentication) modules, so their failure won't affect the process. Yeah. It is my feeling too that pam may be a problem. I've been comparing the system files against my other gentoo machine and they are just the same. However the fact that motd appears twice even when I login as root continues to puzzle me. I've checked all user accounts and only 3 out of 37 accounts have the login/su problem. I will create some new accounts and see what happens. Thanks, -- Valmor
Re: [gentoo-user] unable to login to user account or do su - username
Alan McKinnon wrote: On Sunday 03 May 2009 04:53:41 Mike Kazantsev wrote: On Sat, 02 May 2009 20:52:39 -0400 I don't know about motd, but the rest looks like pam problem to me, if you're using pam, of course. Try 'euse -i pam' to see if it's enabled. If that's the case, first of all I'd suggest to check etc-update. Then look through /etc/pam.d, especially system-* files. There you can remove some of the required (for successfull authentication) modules, so their failure won't affect the process. And read the elogs. There's been some pam updates come through on my machines the last few weeks/months. I re-emerged pam and following this message: -- LOG: postinst Starting from version 20080801, pambase optionally enables SHA512-hashed passwords. For this to work, you need sys-libs/pam-1.0.1 built against sys-libs/glibc-2.7 or later. If you don't have support for this, it will automatically fallback to MD5-hashed passwords, just like before. Please note that the change only affects the newly-changed passwords and that SHA512-hashed passwords will not work on earlier versions of glibc or Linux-PAM. -- I edited /etc/login.defs # This variable is deprecated. You should use ENCRYPT_METHOD. # #MD5_CRYPT_ENAB yes # Note: If you use PAM, it is recommended to use a value consistent with # the PAM modules configuration. # #ENCRYPT_METHOD DES ENCRYPT_METHOD SHA512 --- since I find this in /etc/pam.d/system-auth passwordrequiredpam_unix.so try_first_pass use_authtok nullok sha512 shadow -- After these changes (do I need to reboot? I am doing this remotely so I will have to wait till I can sit on the console) still can't login or su to 3 of the accounts. Also created a new account and no luck login to to it nor using su. Apparently newly created accounts definitely are affected. Older accounts still work (???) I have used a debug option on the pam modules but didn't manage to get additional info in the /var/log/message file. Thanks for any suggestions. -- Valmor
Re: [gentoo-user] nanosleep broken on ~amd64?
On Sun, May 3, 2009 at 5:48 PM, Arttu V. arttu...@gmail.com wrote: walt wrote: Could someone else compile the test and confirm that it returns 119 on ~amd64 instead of 0? It returns 119 on an semi-ancient Athlon64 3200+ box here as well. Could kernel HZ-settings affect the outcome? This box has CONFIG_HZ=250, but tomorrow I can try on another amd64 which runs a 1000HZ kernel IIRC. Also 119 here. I use NO_HZ option. Also, ksystraycmd from KDE4 has segfault in nanosleep every time, forever. Maybe it's related?