[gentoo-user] What is the preferred gentoo way to list all packages w/ multiple versions installed?
Hi, I have an older gentoo systen which accumulated some cruft over the time - I have to clean it up :-) I want to list all installed SLOTTED packages where more than one version is installed. The old (deprecated) qpkg had the option "--dups". What is the new! shiny! way of doing that?:-) TIA, Wolfgang Liebich -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 64-bit system?
Dnia poniedziałek, 18 września 2006 17:49, Richard Fish napisał: > You'll only notice a speed increase with applications that need to > caculate very large numbers, like encryption keys and certain > scientific apps. Everything else will basically run just as fast in > 32-bit mode as it will in 64-bit. There are exceptions in certain > media encoders that don't have hardware optimizations for 64-bit, that > may actually run faster as 32-bit apps. Well, the registers are not only twice longer, but there is twice as much of them as in 32-bit. And THIS is what optimising compilers are fond of. More registers mean less in-memory temporary variables, which in turn means less memory accesses. This gives speed improvement. For SMP systems it gives huge difference - as the memory is shared between CPUs and they must fight for it. I have an amd64 system for over a year (or is it 2-yrs?). I had some glitches: * Need to use binary 32-bit firefox to have flash - still have problems with some fonts not appearing in flash * Need to use 32-bit java to make 32-bit OpenOffice happy * Some forensic packages won't compile on 64-bit due to bad coding techniques But besides that - my AMD64 3000+ just rocks. I had definitely much more problems with 64-bit XP, but since getting rid of it (XP not problems) I am fully 64-bit positive :D -- Pawel Kraszewski www.kraszewscy.net -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
Am Montag, 18. September 2006 16:51 schrieb ext Roman Zilka: > > > Hm, this is all pretty weird. I cut'n'pasted and compiled your piece > > > of code and again got the same results under Linux and FreeBSD: no > > > output at all. I don't know if some local FreeBSD admin > > > hacked/patched the kernel source to make its syscalls behave > > > Linux-alike, but it's very unlikely. > > > > Hmm, maybe OP is $LD_PRELOADing something? > > My LD_PRELOAD is unset. I'm not sure if I understand "OP" correctly - OP = Original Poster, the one who started the thread. Bye... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: [EMAIL PROTECTED] Hambornerstraße 55 | Web: http://www.capgemini.com D-40472 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net pgpD3n3clMhB4.pgp Description: PGP signature
Re: [gentoo-user] 64-bit system?
As for speed: boy, those new processors (an amd 3800 x2 in my case) are fast... as are their 32 bits equivalent. Considering the 3800+ x2 (ditto here) runs at a real speed of 2GHz vs the 1.8GHz my old Athlon XPm2500+ did in stock configuation, I'd say so. Of course tweak the XPm to a real 2.5GHz (or higher) and watch it run circles around everything else in my collection. Who needs ricer flags when you have ricer hardware? ;-) -Drew -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Recommend an HTML/CSS editor?
Dnia wtorek, 19 września 2006 04:38, Kevin O'Gorman napisał: > I'm about to write a bunch more, and I'm hoping there's a Linux > product that works reasonably well with CSS style sheets. Anybody > know of one. Free is good, cheap is acceptable. Look at: app-editors/nvu Available versions: 0.90-r2 1.0-r2 1.0-r4 Homepage:http://www.nvu.com/ Description: A WYSIWYG web editor for linux similiar to Dreamweaver This is a web-editor ripped and evolved from Mozilla Suite kde-base/quanta Available versions: (3.4) 3.4.3 (3.5) 3.5.2 3.5.3 3.5.4 Homepage:http://www.kde.org/ Description: KDE: Quanta Plus Web Development Environment This is a KDE-standard-compliant web editor app-editors/bluefish Available versions: 1.0 1.0.2 1.0.4 1.0.4-r1 1.0.5 Homepage:http://bluefish.openoffice.nl/ Description: A GTK HTML editor for the experienced web designer or programmer. This is GTK-standard-compliant web editor HTH -- Pawel Kraszewski www.kraszewscy.net -- gentoo-user@gentoo.org mailing list
[gentoo-user] How to I stop ath0 if I have eth0
Is there a way to stop ath0 from starting and connecting to anything if I have an eth0? That is, if I'm plugged into the wall, I don't want a slower wireless connection. ÐÆ5ÏÐ -- gentoo-user@gentoo.org mailing list
[gentoo-user] Recommend an HTML/CSS editor?
I've been writing a modest amount of HTML/XHTML by hand with vim for some time because a) MSWord results are just too ugly to countenance b) OOffice output, while better is still ugly and behaves badly around style sheets. c) I can. I'm about to write a bunch more, and I'm hoping there's a Linux product that works reasonably well with CSS style sheets. Anybody know of one. Free is good, cheap is acceptable. ++ kevin -- Kevin O'Gorman, PhD -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] emerge --info
On Mon, Sep 18, 2006 at 03:57:34PM -0700, Penguin Lover Richard Fish squawked: > eselect compiler should not work *anywhere* as eselect-compiler is > currently package masked for everybody [1]. > Ah, I got it on my system before the pmask, and never did realize that it was masked. Now I've unmerged eselect-compiler and all is good. Thanks, W -- "And if I could just strech my arm like a cartoon character, I could show you what r does." ~DeathMech, S. Sondhi. P-town PHY 205 Sortir en Pantoufles: up 24 days, 19:39 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Sharing a CUPS printer
So far this looks OK. However, if I go into the CUPS manager on the client and try to print a test page it's telling me the printer is not available. Any ideas? I guess you can print a test page from within the CUPS manager on the client? I never tried to print a test page from the client CUPS manager, but I could print from the webbrowser which is what I was going for. I personally can't even get to the CUPS manager in the client machine since the Listen localhost:631 has been commented out so there is no manager to get to. Your seeing the printer though. That's a start. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Problem with new glibc and libnss
On 9/18/06, Bruno Lustosa <[EMAIL PROTECTED]> wrote: Inconsistency detected by ld.so: dl-open.c: 604: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed! In the past, glibc wouldn't complain to leave things unresolved. The problems started now that it started to give these assertion failures. Richard, just to let you know, I filed but #148114. Let's see what the devs think about it. I do think this is a glibc problem. It shouldn't give an assertion failure, it should just leave the gid unresolved as it used to. http://bugs.gentoo.org/show_bug.cgi?id=148114 -- Bruno Lustosa <[EMAIL PROTECTED]> http://www.lustosa.net/ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Sharing a CUPS printer
On 9/18/06, Sarpy Sam <[EMAIL PROTECTED]> wrote: Maybe port 631 will work here, I have it set to Listen *.631 Changed it to Listen *:631 and restarted CUPS on the server. On the client mahines you want to comment out the listen localhost:631 line in cupsd.conf. Then you want to make a file in /etc/cups called client.conf. Insert in it ServerName * Ah! OK, that makes sense. I changed it appropriately, restarted CUPS on the client machine and now I get this far: [EMAIL PROTECTED] ~ $ lpq HP is ready no entries [EMAIL PROTECTED] ~ $ lpstat -a HP accepting requests since Jan 01 00:00 [EMAIL PROTECTED] ~ $ So far this looks OK. However, if I go into the CUPS manager on the client and try to print a test page it's telling me the printer is not available. Any ideas? I guess you can print a test page from within the CUPS manager on the client? Thanks a lot for this much. It's helpful. - Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Creating a LFS system with Portage
On Mon, 18 Sep 2006 18:50:08 +0200, Alan McKinnon wrote: > On Monday 18 September 2006 17:05, Alon Keren wrote: > >> Please CC me your replies as I'm not subscribed to messages >> from this list > > Nope. Asking that is exceptionally rude. I wade through 200+ > messages per day looking for places I can assist others. The > least you can do is subscribe to the list like everyone else > (and how did you manage to post without a subscription?), and > download the same looking for replies to your question. > Besides, the answers you get might help someone else. I guess Alon subscribed to the gentoo-user list as a "nomail" subscriber and read the messages via some news-mail gateway, such as GMane. According to http://www.gentoo.org/main/en/lists.xml, one can subscribe to the "nomail" option of each list: [EMAIL PROTECTED] [EMAIL PROTECTED] -- Peter Wu Powered by GNU/Linux 2.6.17 -- gentoo-user@gentoo.org mailing list
[gentoo-user] Via UniChrome Pro and Xorg
Hello all. I am building a system which has the Unichrome Pro IGP video chipset (Via P4M800 Northbridge) and I cannot for the life of me get the via driver for Xorg 7.x to work. In fact, all I really need (as this system will be my mother's when I'm done with it) is a simple 2D display with 16bit color because she, most likely, will not be using anything accellerated but if I could ever get that rolling, it wouldn't be bad. But, first things first. I'm no stranger to X, etc. I've gotten several computers flowing nicely with it but this is confusing me. Yes, I have everything configured correctly in the kernel, everything seems to come up and get detected, but outside of a basic 1, 2, 4, 8, whatever bit display (which I think I might have gotten with the vga driver through a test config with one of the config utilities) I've got nothing. My mother's current system (which I set up, which is also not with me at the moment) is running some 16bit svga 2D setup which I can't seem to reproduce off the top of my head (She's running Xorg < 7.x, though). Does anyone have a working config for this chipset or know of some pointers which I obviously have not tried yet? -Statux signature.asc Description: This is a digitally signed message part
[gentoo-user] Help, iptables logging to current console
I'm temporarily on dialup after my ADSL router/modem died. The ADSL router/modem used to drop all the garbage aimed my ports 135, 445, 1434, etc. Iptables never saw it. Now that I'm on dialup, iptables does see the garbage, and so do I, on my current console... IN=ppp0 OUT= MAC= SRC=208.65.244.98 DST=208.65.247.240 LEN=48 TOS=0x00 PREC=0x00 TTL=125 ID=33631 DF PROTO=TCP SPT=3961 DPT=445 WINDOW=8760 RES=0x00 SYN URGP=0 IN=ppp0 OUT= MAC= SRC=208.65.244.98 DST=208.65.247.240 LEN=48 TOS=0x00 PREC=0x00 TTL=125 ID=35461 DF PROTO=TCP SPT=1042 DPT=135 WINDOW=8760 RES=0x00 SYN URGP=0 IN=ppp0 OUT= MAC= SRC=208.65.244.98 DST=208.65.247.240 LEN=48 TOS=0x00 PREC=0x00 TTL=125 ID=35677 DF PROTO=TCP SPT=1042 DPT=135 WINDOW=8760 RES=0x00 SYN URGP=0 The line in /var/lib/iptables/rules-save that triggers this is... -A TCP_IN -p tcp -m tcp --dport 0:1023 -j DROP_LOG And the DROP_LOG rules are... -A DROP_LOG -j LOG --log-level 6 -A DROP_LOG -j DROP In the past, I did not have this problem when on dialup. I expect to be back up on ADSL tomorrow evening, but I do want this solved. The most recent change on my system was the upgrade to gcc 4.1.1, and the accompanying rebuild of system and world, a few days ago. -- Walter Dnes <[EMAIL PROTECTED]> In linux /sbin/init is Job #1 My musings on technology and security at http://tech_sec.blog.ca -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Sharing a CUPS printer
On 9/18/06, Mark Knecht <[EMAIL PROTECTED]> wrote: Hi, Sorry. This has got to be me just not seeing the right way about this. What do I have to do on my Gentoo AMD64 machine with a working CUPS printer to share it with other Gentoo desktop machines here at home? I have a working CUPS printer on my machine. I want to print to it from my wife and son's machines. I've been trying to figure out how to set that up but cannot get the right configuration. It seems that the Gentoo Printing Guide is somewhat silent on this. http://www.gentoo.org/doc/en/printing-howto.xml On the machine with the printer I've done what I think the guide has asked for, modified for my network IP addresses: Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.1.* Port 631 (make sure the next two lines are commented out) #Listen 127.0.0.1:631 #Listen localhost:631 Maybe port 631 will work here, I have it set to Listen *.631 At this point I believe I'm supposed to set up IPP printing on the remote machines but everything I've tried there results in messages about the printer not being found, not responding, not existing, etc. I'm telling CUPS that it's an IPP printer and trying addresses like: ipp://lightning/ipp ipp://lightning/ipp/port1 etc. On the client mahines you want to comment out the listen localhost:631 line in cupsd.conf. Then you want to make a file in /etc/cups called client.conf. Insert in it ServerName * Add whatever the name or ip address of the server machine is. Somewhere I read that you have to use the server name as defined in /etc/host, you might have to add it to the file if you haven't done this all ready. I did it that way and restrated cups and it worked. lpstat -a Epson accepting requests since Mon Sep 18 12:19:08 2006 hp_photosmart_7700_series_USB_1 accepting requests since Wed Jul 26 20:25:52 2006 The lpstat command will show if you are seeing the printer or not. I just figured this out last night. Hope it works for you. However when I try to print to it I get messages in CUPS like: "Destination printer does not exist!" I'm sure it's just me not understanding the right way to input the printer's address. Thanks in advance, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] nfs and samba doesn't mount at boot
It looks like an dependency problem on your init scripts.Did you tried to run "depscan.sh"? it should fix init.d dependencies.Claudinei MatosOn 9/18/06, Pawel K <[EMAIL PROTECTED]> wrote: > Run /etc/init.d/net.eth0 and inspect the output> closely,Thanx for an answer.Yes I can start /et/init.d/net.eth0 manually. It isalso started at boot correctly.It looks like nfsmount is started before net.eth0 atboot:INIT: Entering runlevel: 3* Starting metalog ... [ ok ]* Starting gpm ... [ ok ]* Starting portmap ... [ ok ]* ERROR: cannot start nfsmount as net.eth0 could notstart* ERROR: cannot start netmount as net.eth0 could notstart* Setting up xdm ... [ ok ]* Starting eth0* Configuration not set for eth0 - assuming DHCP * Bringing up eth0* dhcp* Running dhcpcd ... [ ok ]* eth0 received address 172.18.129.98/22The following sequence of commands works fine: /etc/init.d/net.eth0 stop/etc/init.d/nfsmount startnfsmount also brings up eth0 interface.No error messages are displayed.The depend() of /etc/init.d/nfsmount looks like:depend() { need net portmap use ypbind}and net.eth0:depend() {need localmountafter bootmisc hostnameuse isapnp isdn pcmcia usb wlan# Load any custom depend functions for the given interface# For example, br0 may need eth0 and eth1local iface="${SVCNAME#*.}"[[ $(type -t "depend_${iface}") == "function"]] && depend_${iface} [[ ${iface} != "lo" && ${iface} != "lo0" ]] &&after net.lo net.lo0return 0}Do You have any idea what can be wrong ?thank You for help
[gentoo-user] Sharing a CUPS printer
Hi, Sorry. This has got to be me just not seeing the right way about this. What do I have to do on my Gentoo AMD64 machine with a working CUPS printer to share it with other Gentoo desktop machines here at home? I have a working CUPS printer on my machine. I want to print to it from my wife and son's machines. I've been trying to figure out how to set that up but cannot get the right configuration. It seems that the Gentoo Printing Guide is somewhat silent on this. http://www.gentoo.org/doc/en/printing-howto.xml On the machine with the printer I've done what I think the guide has asked for, modified for my network IP addresses: Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From 192.168.1.* Port 631 (make sure the next two lines are commented out) #Listen 127.0.0.1:631 #Listen localhost:631 At this point I believe I'm supposed to set up IPP printing on the remote machines but everything I've tried there results in messages about the printer not being found, not responding, not existing, etc. I'm telling CUPS that it's an IPP printer and trying addresses like: ipp://lightning/ipp ipp://lightning/ipp/port1 etc. However when I try to print to it I get messages in CUPS like: "Destination printer does not exist!" I'm sure it's just me not understanding the right way to input the printer's address. Thanks in advance, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] emerge --info
On 9/18/06, Willie Wong <[EMAIL PROTECTED]> wrote: I did follow the guide and did source /etc/profile. I just forgot to type that step in in composing the e-mail. And I have a .bash_history to back me up ;p Sorry, although we aren't psychic, so we can only base responses on what you _actually_ put in your email. ;-] I did a bit of experimentation, actually, and found that the behaviour is different on my laptop and on my desktop. On my laptop where this problem originates (default-linux profile and ~x86 keyword): 1) no matter what I do with gcc-config (and sourcing /etc/profile afterwards of course), the emerge --info gives the same compiler. 2) To actually affect the emerge --info I need to use 'eselect compiler set', i.e. now that I issued 'eselect compiler set 6', my emerge --info reads correctly Portage 2.1.2_pre1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla eselect compiler should not work *anywhere* as eselect-compiler is currently package masked for everybody [1]. -Richard [1] http://bugs.gentoo.org/show_bug.cgi?id=143697 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] emerge --info
On Mon, Sep 18, 2006 at 01:43:31PM -0700, Penguin Lover Richard Fish squawked: > You really should follow the gcc upgrade guide [1], which tells you to: > > source /etc/profile > I did follow the guide and did source /etc/profile. I just forgot to type that step in in composing the e-mail. And I have a .bash_history to back me up ;p I did a bit of experimentation, actually, and found that the behaviour is different on my laptop and on my desktop. On my laptop where this problem originates (default-linux profile and ~x86 keyword): 1) no matter what I do with gcc-config (and sourcing /etc/profile afterwards of course), the emerge --info gives the same compiler. 2) To actually affect the emerge --info I need to use 'eselect compiler set', i.e. now that I issued 'eselect compiler set 6', my emerge --info reads correctly Portage 2.1.2_pre1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla But on my desktop (which is on a hardened profile with x86 keyword) 3) gcc-config would successfully change the output of emerge --info 4) and 'eselect compiler' returns "!!! Error: Can't load module compiler" which is natural, since eselect-compiler is keyworded ~x86. Are those the intended behaviour? Or is something seriously wacked up? W -- Computer games don't affect kids, I mean if Pac Man affected us as kids, we'd be sitting around in darkened rooms munching pills and listening to repetitive music. Sortir en Pantoufles: up 24 days, 14:43 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] emerge --info
On 9/18/06, Willie Wong <[EMAIL PROTECTED]> wrote: On Mon, Sep 18, 2006 at 05:18:09PM -0300, Penguin Lover Mauro Faccenda squawked: > > Why doesn't it say gcc-4.1.1? > > had you defined that you want to use gcc-4 with gcc-config? of course. That is what I did: 1) gcc-config 6 (after which gcc-config -l shows that [6] i686-pc-linux-gnu-4.1.1 * is the selected compiler). You really should follow the gcc upgrade guide [1], which tells you to: source /etc/profile at this point. -Richard [1] http://www.gentoo.org/doc/en/gcc-upgrading.xml -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] emerge --info
On Mon, Sep 18, 2006 at 05:18:09PM -0300, Penguin Lover Mauro Faccenda squawked: > > Why doesn't it say gcc-4.1.1? > > had you defined that you want to use gcc-4 with gcc-config? of course. That is what I did: 1) gcc-config 6 (after which gcc-config -l shows that [6] i686-pc-linux-gnu-4.1.1 * is the selected compiler). 2) fix_lib_tools.sh 3.4.6 3) emerge -e system at this point emerge --info shows what I posted originally: Portage 2.1.2_pre1 (default-linux/x86/2006.0, gcc-3.4.6/vanilla W -- "`I think you ought to know that I'm feeling very depressed.'" "`Life, don't talk to me about life.'" "`Here I am, brain the size of a planet and they ask me to take you down to the bridge. Call that "job satisfaction"? 'Cos I don't.'" "`I've got this terrible pain in all the diodes down my left side.'" - Guess who. Sortir en Pantoufles: up 24 days, 14:07 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Problem with new glibc and libnss
On 9/18/06, Richard Fish <[EMAIL PROTECTED]> wrote: Well there is a known issue [1] with udev and rules that contain non-local or undefined users/groups. If your friend's machine is stable only, then it probably has udev-087, and it looks like 098 should have a fix. So your friend might want to try the ~amd64 version of udev, and also make sure to upgrade to the very latest version of baselayout (1.12.5). Hello, RIchard. I just rechecked everything here, and it doesn't seem to be an udev issue, because when I have 'mysql files' at nsswitch.conf, I get an assertion error not only from udev, but also from a simple ls. So, the problem is not "fixed" here. I had to change my functionality to have it working (i.e. changing the way authentication info is looked). So, if I need to have mysql lookups before files, I don't have a way now unless I do an even uglier hack and make it change itself on local.start :) I don't experience timeouts, instead I just get glibc assertion errors: Inconsistency detected by ld.so: dl-open.c: 604: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed! In the past, glibc wouldn't complain to leave things unresolved. The problems started now that it started to give these assertion failures. Thank you for your help. -- Bruno Lustosa <[EMAIL PROTECTED]> http://www.lustosa.net/ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] emerge --info
On Mon, 18 Sep 2006 16:08:53 -0400 Willie Wong <[EMAIL PROTECTED]> wrote: > Where does emerge --info retrieve compiler information? > > I am in the middle of trying to upgrade to gcc-4.1.1, and wanted to > file a bug report on some packages that is failing (which worked with > gcc-3.4.6), and I did emerge --info and saw: > > Portage 2.1.2_pre1 (default-linux/x86/2006.0, gcc-3.4.6/vanilla > > Why doesn't it say gcc-4.1.1? had you defined that you want to use gcc-4 with gcc-config? []'s .m -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Re: Re: What is up with the new "domainname" situation?
On Monday 18 September 2006 14:17, Neil Bothwick wrote: > On Mon, 18 Sep 2006 13:47:03 +0100, Mick wrote: > > When I logon I can see in the console: > > > > "This is lappy.(none) (Linux i686 2.6.7-gentoo-r8) 13.31.51" > > > > Where is this "(none)" being read from? As in which files and which > > particular entry in that file? > > /etc/issue sets the login output. A \o in there is replaced by the NIS > domain, \O by the DNS domain. # cat /etc/issue This is \n.\O (\s \m \r) \t So, it should read my DNS domain name. But it doesn't. > > Unlike Alex's earlier example I do not need to set up DNS servers > > addresses, or other IP addresses as these are picked up by the dhcpcd > > server from my hardware router. i.e. as far as my laptop is concerned the router (192.168.0.1) is the dns server. > Does your router set the domain correctly? What does "hostname -d" give? I'm afraid it gives nothing! # hostname -d # -- Regards, Mick pgpdgCGIvVfvl.pgp Description: PGP signature
[gentoo-user] emerge --info
Where does emerge --info retrieve compiler information? I am in the middle of trying to upgrade to gcc-4.1.1, and wanted to file a bug report on some packages that is failing (which worked with gcc-3.4.6), and I did emerge --info and saw: Portage 2.1.2_pre1 (default-linux/x86/2006.0, gcc-3.4.6/vanilla Why doesn't it say gcc-4.1.1? Thanks, Willie -- "`...and the Universe,' continued the waiter, determined not to be deflected on his home stretch, `will explode later for your pleasure.' Ford's head swivelled slowly towards him. He spoke with feeling. `Wow,' he said, `What sort of drinks do you serve in this place?' The waiter laughed a polite little waiter's laugh. `Ah,' he said, `I think sir has perhaps misunderstood me.' `Oh, I hope not,' breathed Ford." - Ford in paradise. Sortir en Pantoufles: up 24 days, 13:37 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 64-bit system?
Am Montag, 18. September 2006 16:18 schrieb Grant: > I'm putting together a new system and I'm considering going 64-bit. > Is the benefit of such a system pretty much speed? What are the > drawbacks of using a 64-bit system with Gentoo? > > - Grant Hi I have a 32 bit version and a 64 bit version of (mostly stable) Gentoo on the same PC and when playing gl-117 I get (assuming everything is set on the highest quality in gl-117) around 15 - 20 FPS on the 32 bit Gentoo and around 30 - 40 FPS on 64 bit Gentoo. This is not too representative, especially since not all libs and progs are exactly the same version on both installations, but I still think this shows 64 bit CAN make a big difference, depending on what you plan to do with your new system. Gian -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] {OT} 2.4Ghz interference
On 9/18/06, Grant <[EMAIL PROTECTED]> wrote: > > I have an 802.11g network and I'm considering buying a wireless RF> > keyboard that uses the 2.4Ghz frequency. Am I setting myself up for> > interference problems?>> Probably not. I use a wireless mouse with my laptop all the time and > notice no problems.Does it operate on 2.4Ghz RF?- Grant--gentoo-user@gentoo.org mailing listYou might have problems with a 2.4GHz wireless keyboard. If the keyboard is like most 2.4GHz wireless phones it uses FHSS instead of DHSS like your typical home wireless access point. Basically with FHSS you have 15 non-overlapping channels opposed to 3 for DHSS. Wireless phones use FHSS because it has better frequency rejection capabilities. DHSS provides better throughput with less interference rejection so you can probably guess why WAPs use DHSS. If you run your 802.11g on channel 11 you might be able to get away with it but I won't guarantee anything. If there is an option for a 5.8GHz wireless keyboard I would opt for that or one of the older 900MHz models.
Re: [gentoo-user] {OT} 2.4Ghz interference
Grant wrote: I have an 802.11g network and I'm considering buying a wireless RF keyboard that uses the 2.4Ghz frequency. Am I setting myself up for interference problems? Are you sure that the keyboard is 2.4GHz? Most do not operate in this frequency. Tom Veldhouse -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] {OT} 2.4Ghz interference
On 9/18/06, Grant <[EMAIL PROTECTED]> wrote: Does it operate on 2.4Ghz RF? Hmm, I thought so, but I just double checked, and no, it operates with 2 channels at 27.045Mhz. Sorry, not much help here... -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Problem with new glibc and libnss
On 9/18/06, Bruno Lustosa <[EMAIL PROTECTED]> wrote: I just had a look over there, and udevd doesn't start. An strace shows it trying to open libmysqlclient on /usr, and as it's not mounted, it fails with that "Inconsistency detected" error. Well there is a known issue [1] with udev and rules that contain non-local or undefined users/groups. If your friend's machine is stable only, then it probably has udev-087, and it looks like 098 should have a fix. So your friend might want to try the ~amd64 version of udev, and also make sure to upgrade to the very latest version of baselayout (1.12.5). -Richard [1] http://bugs.gentoo.org/show_bug.cgi?id=99564 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Problem with new glibc and libnss
On 9/18/06, Richard Fish <[EMAIL PROTECTED]> wrote: Can you post your nsswitch.conf? I don't normally use nss_mysql, but I just installed it on my box to see what an strace ls would reveal, and it does not show libmysql being accessed when files appears first for passwd, shadow, and groups. Hello. I have just tried it again, and surprisingly it's working now, even though I already had it this way: $ grep -e ^passwd -e ^shadow -e ^group /etc/nsswitch.conf passwd: files mysql shadow: files mysql group: files mysql carcharias ~ # strace -f -e open -o /tmp/strace.out ls -l / >/dev/null carcharias ~ # grep mysql /tmp/strace.out Same result here, no access to mysql whatsoever. carcharias ~ # strace -f -e open -o /tmp/strace.out ls -l / >/dev/null carcharias ~ # grep mysql /tmp/strace.out 30644 open("/lib/libnss_mysql.so.2", O_RDONLY) = 3 It seems to be trying to find it. In my root dir, I have all files owned by root:root, don't know how it is there, but in my case, it wouldn't need to try mysql for that. Also the outputs of emerge --info and emerge -pv sys-libs/glibc might help. Well, even though mine seems to be working very very fine, a friend who had the same problem still has it. The versions of glibc, libnss-mysql and baselayout are the same as mine, although he's running om amd64 (I'm on x86). I just had a look over there, and udevd doesn't start. An strace shows it trying to open libmysqlclient on /usr, and as it's not mounted, it fails with that "Inconsistency detected" error. Anyway, here are my versions: [ebuild R ] sys-libs/glibc-2.4-r3 USE="nls nptl nptlonly -build -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 0 kB [ebuild R ] sys-auth/libnss-mysql-1.5 0 kB [ebuild R ] sys-apps/baselayout-1.12.5 USE="unicode -bootstrap -build -static" 0 kB For me, this looks very very strange. I mean, I know it *should* work with "files mysql" at nsswitch.conf, but why mine works and my friend's doesn't is a mystery for me. At least for now. I'm pretty sure baselayout has nothing to do with it, I listed it just because it owns /sbin/rc. Problem seems to be the way nss is trying to resolve things over there. My emerge --info shows: Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r8 i686) = System uname: 2.6.17-gentoo-r8 i686 AMD Sempron(tm) 2400+ Gentoo Base System version 1.12.5 Last Sync: Fri, 15 Sep 2006 14:00:01 + ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-java/java-config: 1.3.0-r2, 2.0.28-r1 dev-lang/python: 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 dev-util/confcache: [Not Present] sys-apps/sandbox:1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"; LANG="en_US.UTF-8" LINGUAS="pt_BR ru en_US" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aalib acl alsa bash-completion berkdb bitmap-fonts bluetooth cli crypt cups dga dlloader dri dvd dvdread elibc_glibc esd firefox fortran gdbm gif gnome gpm gtk input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ linguas_en_US linguas_pt_BR linguas_ru maildir mmx mmxext mpeg ncurses nls nptl nptlonly nsplugin offensive ogg opengl pam pcre perl png ppds pppd python readline reflection sdl session spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nv video_cards_nvidia vorbis xmms xorg xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS Thanks for your answer, and if you need something more, please tell me. -- Bruno Lustosa <[EMAIL PROTECTED]> http://www.lustosa.net/ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] beamer
On 18 September 2006 08:08, Dirk Heinrichs wrote: > Am Sonntag, 17. September 2006 12:36 schrieb ext Uwe Thiem: > > Alright, if that is the case I have it installed already. The questions > > is, why doesn't a related document class show up in LyX? A friend of mine > > told me there should be a "beamer" class. > > The latex-beamer package includes a beamer.layout for LyX. This file is > missing in the tetex 3.0 distribution. > > Copy this file to /usr/share/lyx/layouts and run Tools/Reconfigure from > LyX's menu. Uh-huh! Thanks!!! Uwe -- Mark Twain: I rather decline two drinks than a German adjective. http://www.SysEx.com.na -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] {OT} 2.4Ghz interference
> I have an 802.11g network and I'm considering buying a wireless RF > keyboard that uses the 2.4Ghz frequency. Am I setting myself up for > interference problems? Probably not. I use a wireless mouse with my laptop all the time and notice no problems. Does it operate on 2.4Ghz RF? - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] {OT} 2.4Ghz interference
On 9/18/06, Grant <[EMAIL PROTECTED]> wrote: I have an 802.11g network and I'm considering buying a wireless RF keyboard that uses the 2.4Ghz frequency. Am I setting myself up for interference problems? Probably not. I use a wireless mouse with my laptop all the time and notice no problems. -Richard -- gentoo-user@gentoo.org mailing list
[gentoo-user] Re: [OT] print to printer on winxp via cups samba smb
"Richard Fish" <[EMAIL PROTECTED]> writes: >> Richard what do you make of the fact that I cannot connect to cups >> with the normal http://locahost:631? > > Actually, you "connect" to it fine, it just has nothing to show you... > >> Will get a connection, but in the past a simple: >> http://localhost:631 was enough. >> >> That now gets a 404 Not Found > > What is DocumentRoot set to in /etc/cups/cupsd.conf? Try setting it > to /usr/share/cups/html. Haa.. you nailed it again. It comes set to /usr/share/cups/doc But needs: /usr/share/cups/html I guess that would be a tiny bug. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] {OT} 2.4Ghz interference
Yes, don't do it. Grant wrote: I have an 802.11g network and I'm considering buying a wireless RF keyboard that uses the 2.4Ghz frequency. Am I setting myself up for interference problems? - Grant -- gentoo-user@gentoo.org mailing list
[gentoo-user] {OT} 2.4Ghz interference
I have an 802.11g network and I'm considering buying a wireless RF keyboard that uses the 2.4Ghz frequency. Am I setting myself up for interference problems? - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Problem with new glibc and libnss
On 9/18/06, Bruno Lustosa <[EMAIL PROTECTED]> wrote: Hi folks, As soon as I upgraded my system to new gcc and glibc, I started to get a very weird problem at boot time. I'm using libnss-mysql to authenticate users, and my nsswitch.conf is set to check files first, then mysql. Can you post your nsswitch.conf? I don't normally use nss_mysql, but I just installed it on my box to see what an strace ls would reveal, and it does not show libmysql being accessed when files appears first for passwd, shadow, and groups. carcharias ~ # grep -e ^passwd -e ^shadow -e ^group /etc/nsswitch.conf passwd: files mysql shadow: files mysql group: files mysql carcharias ~ # strace -f -e open -o /tmp/strace.out ls -l / >/dev/null carcharias ~ # grep mysql /tmp/strace.out carcharias ~ # vi /etc/nsswitch.conf carcharias ~ # grep -e ^passwd -e ^shadow -e ^group /etc/nsswitch.conf passwd: mysql files shadow: mysql files group: mysql files carcharias ~ # strace -f -e open -o /tmp/strace.out ls -l / >/dev/null carcharias ~ # grep mysql /tmp/strace.out 30644 open("/lib/libnss_mysql.so.2", O_RDONLY) = 3 30644 open("/usr/lib/mysql/tls/i686/sse2/libmysqlclient.so.15", O_RDONLY) = -1 ENOENT (No such file or directory) 30644 open("/usr/lib/mysql/tls/i686/libmysqlclient.so.15", O_RDONLY) = -1 ENOENT (No such file or directory) 30644 open("/usr/lib/mysql/tls/sse2/libmysqlclient.so.15", O_RDONLY) = -1 ENOENT (No such file or directory) 30644 open("/usr/lib/mysql/tls/libmysqlclient.so.15", O_RDONLY) = -1 ENOENT (No such file or directory) 30644 open("/usr/lib/mysql/i686/sse2/libmysqlclient.so.15", O_RDONLY) = -1 ENOENT (No such file or directory) 30644 open("/usr/lib/mysql/i686/libmysqlclient.so.15", O_RDONLY) = -1 ENOENT (No such file or directory) 30644 open("/usr/lib/mysql/sse2/libmysqlclient.so.15", O_RDONLY) = -1 ENOENT (No such file or directory) 30644 open("/usr/lib/mysql/libmysqlclient.so.15", O_RDONLY) = 3 Also the outputs of emerge --info and emerge -pv sys-libs/glibc might help. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Creating a LFS system with Portage
On Monday 18 September 2006 17:05, Alon Keren wrote: > Hi, > > I'm considering using Portage to build a Linux From Scratch > system (LFS basically means building a completely customized > Linux machine, using a toolchain). I'm not sure why you want to do this or what your line of reasoning is. A stage 1 gentoo install is very similar to building LFS, except that you don't have to type './configure && make && sudo make install' 300 times. Well, conceptually similar at least. The whole point of LFS is to do it by hand and see how it all works at an even lower level than gentoo provides. You could use portage to automate the LFS build process, but then you end up with essentially a clone of gentoo. I say this as someone who has built an LFS as a learning exercise then moved on to gentoo for pragmatic reasons. Perhaps if you explained why you want to try this and especially what you want to accomplish, then we can advise you better. > Please CC me your replies as I'm not subscribed to messages > from this list Nope. Asking that is exceptionally rude. I wade through 200+ messages per day looking for places I can assist others. The least you can do is subscribe to the list like everyone else (and how did you manage to post without a subscription?), and download the same looking for replies to your question. Besides, the answers you get might help someone else. alan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 64-bit system?
Richard Fish wrote: On 9/18/06, Grant <[EMAIL PROTECTED]> wrote: I'm putting together a new system and I'm considering going 64-bit. Is the benefit of such a system pretty much speed? What are the drawbacks of using a 64-bit system with Gentoo? You'll only notice a speed increase with applications that need to caculate very large numbers, like encryption keys and certain scientific apps. Everything else will basically run just as fast in 32-bit mode as it will in 64-bit. There are exceptions in certain media encoders that don't have hardware optimizations for 64-bit, that may actually run faster as 32-bit apps. Applications compiled in 64-bit mode can address larger blocks of memory without paging. Memory intensive applications can greatly benefit from this. Another minor difference is that chess engines based upon bitboards (i.e. Crafty and GnuChess), when compiled in 64-bit mode will perform much faster due to the fact that an entire board representation fits into a single WORD. On 32-bit systems, such a board is split between two words and there is overhead with juggling this deficit. Tom Veldhouse -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 64-bit system?
> I'm putting together a new system and I'm considering going 64-bit. > Is the benefit of such a system pretty much speed? What are the > drawbacks of using a 64-bit system with Gentoo? You'll only notice a speed increase with applications that need to caculate very large numbers, like encryption keys and certain scientific apps. Everything else will basically run just as fast in 32-bit mode as it will in 64-bit. There are exceptions in certain media encoders that don't have hardware optimizations for 64-bit, that may actually run faster as 32-bit apps. Anyway, I think this article summed it up pretty well: http://lwn.net/Articles/199229/ -Richard Ok, doesn't sound like too much benefit for me. - Grant -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Re: What is up with the new "domainname" situation?
Sigi Schwartz wrote: So, how do I make new (testing-)settings apply without reboot? /etc/init.d/net.eth0 restart and wait a few seconds for your resolv.conf to be updated. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
Matteo Pillon wrote: For example, in Linux, you can't do 'cat .' while on FreeBSD you can. Why? There is a practical reason? I don't know why, but I do know that you can do 'less .'. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
Hi, > because nobody implemented it for most filesystems. Most filesystems > just define "generic_read_dir" as handling function for "readdir". > "generic_read_dir" always returns -EISDIR. sorry short correction, should read: ... as handling function for "read". "readdir" of course should be implemented for each individual filesystem... -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Creating a LFS system with Portage
Hi, On Mon, 18 Sep 2006 15:05:21 + "Alon Keren" <[EMAIL PROTECTED]> wrote: > I'm considering using Portage to build a Linux From Scratch system > (LFS basically means building a completely customized Linux machine, > using a toolchain). Hm, that's what portage does, anyway... So what exactly do you mean by saying you want to use portage to build LFS? Do you want to integrate all the scripts and stuff from the LFS guide into a gentoo system? -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
Hi, On Mon, 18 Sep 2006 17:13:11 +0200 [EMAIL PROTECTED] wrote: > > > For example, in Linux, you can't do 'cat .' while on FreeBSD you can. > > > Why? There is a practical reason? > > > Try vim . or, better view . It was mentioned before that applications have support for "reading directories". But application level is mostly irrelevant. The kernel doesn't support reading directories (i.e. there's no implementation for the "read" syscall for all filesystems currently in the kernel -- if I didn't miss one). Vim just does an "readdir" syscall after failing to "read", but that's application logic. I think this thread is meant to be more general. Since the kernel doesn't support "read" on directories, it is valid to claim that "linux doesn't". It can, however: Filesystems _can_ implement read() for directories. They currently just don't. Also note that according to "man 2 read" the return of an error EISDIR is conforming to SVr4, 4.3BSD, POSIX.1-2001. "The Open Group Base Specifications Issue 6" does at least say that implementations that do not support read()ing from directories will return this error (and that applications should use readdir() instead). So Linux is compliant here. It could behave differently, if filesystem designers would chose to do so. -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How to get Java 1.3 SDK ebuilds...
On Mon, 18 Sep 2006 08:43:21 -0700, Richard Fish wrote: > You can pull the ebuilds out of /var/db/pkg/ on your old system and > put them in your local overlay. Be aware that /var/db/pkg only contains the ebuilds, not any other files needed from /usr/portage, such as patches, so this only works for a limited number of packages. -- Neil Bothwick Humpty Dumpty DOS - Just a shell of himself. signature.asc Description: PGP signature
Re: [gentoo-user] [OT] Why directories aren't files?
On Mon, Sep 18, 2006 at 04:30:52PM +0200, Hans-Werner Hilse wrote: > On Mon, 18 Sep 2006 11:10:57 +0200 Matteo Pillon <[EMAIL PROTECTED]> wrote: > > I was wondering why Linux doesn't treat directories like files, as > > many other unix implementations do. > > Pragmatic answer: > > because nobody implemented it for most filesystems. Most filesystems > just define "generic_read_dir" as handling function for "readdir". > "generic_read_dir" always returns -EISDIR. > > (see /usr/src/linux/fs/libfs.c and /usr/src/linux/fs/*/dir.c) > > > For example, in Linux, you can't do 'cat .' while on FreeBSD you can. > > Why? There is a practical reason? > > Well, I think it would be just another unstable API that clueless > programmers would get trapped by. What would be the benefit of being > able to open it? Yeah, you're right, it's just funny and I was curious why Linux behaves differently. Thanks for your explanation. > That would be the LKML :-) Ok. -- * Pillon Matteo -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 64-bit system?
On 9/18/06, Grant <[EMAIL PROTECTED]> wrote: I'm putting together a new system and I'm considering going 64-bit. Is the benefit of such a system pretty much speed? What are the drawbacks of using a 64-bit system with Gentoo? You'll only notice a speed increase with applications that need to caculate very large numbers, like encryption keys and certain scientific apps. Everything else will basically run just as fast in 32-bit mode as it will in 64-bit. There are exceptions in certain media encoders that don't have hardware optimizations for 64-bit, that may actually run faster as 32-bit apps. Anyway, I think this article summed it up pretty well: http://lwn.net/Articles/199229/ -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] How to get Java 1.3 SDK ebuilds...
On 9/18/06, Wolfgang Liebich <[EMAIL PROTECTED]> wrote: Hi, According to eix -I sdk only SDK versions from 1.4 upwards are available for installation. I might need 1.3 SDK variants too for maintenance of old product versions (it is not THAT simple to get a customer to upgrade :-), so - are there some ebuilds for 1.3 JDK versions around? You can pull the ebuilds out of /var/db/pkg/ on your old system and put them in your local overlay. You could also pull them from Gentoo's CVS repository [1]. Just be warned that since they are unmaintained now, you may have some fixing to do. -Richard [1] http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/?hideattic=0 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Can't get ULI-Raid1 to work
On 9/18/06, Roman v. Gemmeren <[EMAIL PROTECTED]> wrote: So i was wondering if anyone else got it working or has any suggestions to get it working? Can you use mdadm to create a linux software raid volume instead? Then it will keep working forever, no matter how many different systems you transfer the drives to. -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Re: What is up with the new "domainname" situation?
Hi. Ryan Tandy wrote: > the command should be: dnsdomainname (or hostname -d) Now, I have a question to that: How or when do new settings apply? Even though I use DHCP I understand that one can override the results from that. For testing purposes I'd like to use that. But I can change the setting of DNSDOMAIN in /etc/conf.d/domainname (the old way) and dns_domain_ethX (plus dns_servers_ethX, which seems to be required) in /etc/conf.d/net to anything without any "success". dnsdomainname would still return the same old settings. That's ok so far, but I don't like any surprises on reboot, where new settings certainly apply. My hardware doesn't like warm starts and I don't like to torture it with frequent cold starts. So, how do I make new (testing-)settings apply without reboot? Regards, Sigi -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Screenshot package
Hi Neil, >> but following warning popup There was an >> error running "gnome-screenshot": Failed to execute child process > emerge gnome-extra/gnome-utils Added following tools Applications --> Accessories --> Dictionary and Take Screenshot Applications --> System Tools --> Floppy Formatter Tks B.R. SL -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
Selon Hans-Werner Hilse <[EMAIL PROTECTED]>: > Hi, > > On Mon, 18 Sep 2006 11:10:57 +0200 Matteo Pillon > <[EMAIL PROTECTED]> wrote: > > > I was wondering why Linux doesn't treat directories like files, as > > many other unix implementations do. > > Pragmatic answer: > > because nobody implemented it for most filesystems. Most filesystems > just define "generic_read_dir" as handling function for "readdir". > "generic_read_dir" always returns -EISDIR. > > (see /usr/src/linux/fs/libfs.c and /usr/src/linux/fs/*/dir.c) > > > For example, in Linux, you can't do 'cat .' while on FreeBSD you can. > > Why? There is a practical reason? > > Try vim . or, better view . -- ~adj~ -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 64-bit system?
Selon Grant <[EMAIL PROTECTED]>: > I'm putting together a new system and I'm considering going 64-bit. > Is the benefit of such a system pretty much speed? What are the > drawbacks of using a 64-bit system with Gentoo? > None if you don't need Flash. On the other hand, I needed and used integers > 32 bits in only one occasion in a development. As for speed: boy, those new processors (an amd 3800 x2 in my case) are fast... as are their 32 bits equivalent. 64 bits register have been available on every workstations architecture for years, but on Intel / amd. Return to the present. -- ~adj~ -- gentoo-user@gentoo.org mailing list
[gentoo-user] Creating a LFS system with Portage
Hi, I'm considering using Portage to build a Linux From Scratch system (LFS basically means building a completely customized Linux machine, using a toolchain). The little documentation online regarding such a feat, along with my little experience with Portage, means that I would have to go knee-deep (in creating ebuilds) before even knowing if it is feasible, so I thought I'd ask here for some insight. I noticed that the Catalyst project deals with toolchain building, but it is Gentoo-centric, and with virtually no documentation. I also noticed that Portage allows defining the ROOT environment variable (in '/etc/make.conf') in order "to specify the target root filesystem to be used for merging packages or ebuilds". I wonder if emerging this way is enough to build a runnable OS, or if there are special prerequisites the host system (aside from running emerge) or destination file-system must meet. Thanks in advance, Alon PS. Please CC me your replies as I'm not subscribed to messages from this list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
Hi, On Mon, 18 Sep 2006 11:10:57 +0200 Matteo Pillon <[EMAIL PROTECTED]> wrote: > I was wondering why Linux doesn't treat directories like files, as > many other unix implementations do. Pragmatic answer: because nobody implemented it for most filesystems. Most filesystems just define "generic_read_dir" as handling function for "readdir". "generic_read_dir" always returns -EISDIR. (see /usr/src/linux/fs/libfs.c and /usr/src/linux/fs/*/dir.c) > For example, in Linux, you can't do 'cat .' while on FreeBSD you can. > Why? There is a practical reason? Well, I think it would be just another unstable API that clueless programmers would get trapped by. What would be the benefit of being able to open it? > Forgive me this OT, I wasn't able to find a suitable list. That would be the LKML :-) -hwh -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
> > Hm, this is all pretty weird. I cut'n'pasted and compiled your piece > > of code and again got the same results under Linux and FreeBSD: no > > output at all. I don't know if some local FreeBSD admin hacked/patched > > the kernel source to make its syscalls behave Linux-alike, but it's very > > unlikely. > > Hmm, maybe OP is $LD_PRELOADing something? My LD_PRELOAD is unset. I'm not sure if I understand "OP" correctly - if that sudo-like utility is what you mean, then I can't help you here (but in that case, you probably didn't want any answer I guess:)... I'm shutting up now). Happy hacking -rz -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] 64-bit system?
Grant wrote: I'm putting together a new system and I'm considering going 64-bit. Is the benefit of such a system pretty much speed? What are the drawbacks of using a 64-bit system with Gentoo? - Grant Some stuff is not available for the 64 bit arch, for example you have to use a 32 bit firefox if you want to use flash. On the other hand, i recently installed a 64 bit gentoo and it runs very well!, nevertheless, i dont now if the speed increase is precisely enormous compared with a 32 bit system. hope it helps Rafael -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] {OT} Two systems or one?
>> I tend to disagree with that :) If power bills are your concern, get a >> small low power board to be your firewall. > > A small Linksys WRT54-GL flashed with DD-WRT makes a sweet little > firewall for home use. :-) Yes, but does it run Gentoo? ;) It needs to. :) I'll probably separate them and see how it goes. - Grant -- gentoo-user@gentoo.org mailing list
[gentoo-user] 64-bit system?
I'm putting together a new system and I'm considering going 64-bit. Is the benefit of such a system pretty much speed? What are the drawbacks of using a 64-bit system with Gentoo? - Grant -- gentoo-user@gentoo.org mailing list
[gentoo-user] Problem with new glibc and libnss
Hi folks, As soon as I upgraded my system to new gcc and glibc, I started to get a very weird problem at boot time. I'm using libnss-mysql to authenticate users, and my nsswitch.conf is set to check files first, then mysql. At boot time, /usr is not yet mounted, and as such, anything that would need to connect to mysql would fail (because libmysqlclient is in /usr/lib). However, the problem is that udevd is not starting without /usr mounted. A simple 'ls' on root dir fails as well, even though all files and dirs there are owned by root:root (and of course, root is on passwd and groups). An strace indicates that both of them are trying to access /usr/lib/libmysqlclient.so, and when they get the "No such file or directory", they fail with this message: Inconsistency detected by ld.so: dl-open.c: 604: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed! My workaround (and a kinda ugly one) was to edit /sbin/rc (the script that calls udevd) and put there just before calling udevd: mknod /dev/hda7 b 3 7 mount /usr (my /usr is in /dev/hda7) This makes it work, but I'm sure someone might have a better idea than that, because I'll lose this as soon as the package that owns /sbin/rc is updated. This worked before the last update to glibc, I just don't know why it tries to connect to mysql now (either it didn't before, or it did try but would not fail like that). Can anyone shed some light on this? -- Bruno Lustosa <[EMAIL PROTECTED]> http://www.lustosa.net/ -- gentoo-user@gentoo.org mailing list
Re: AW: [gentoo-user] x or * in /etc/passwd ?
On Monday 18 September 2006 14:52, Jorge Almeida wrote: > On Mon, 18 Sep 2006, Noack, Sebastian wrote: > > The second field in /etc/passwd stands also for the > > password hash. But since storing passwords in /etc/passwd > > is deprecated, it should ever be an invalid hash like "x" > > or "*" for example. > > Yes, but that holds for normal accounts as well as for > "service" accounts. What I was saying is that a * in > /etc/shadow will make logging in impossible. Did I understand > wrong? Maybe some RTFM is in order here :-) From man 5 shadow: "The password field must be filled. The encrypted password consists of 13 to 24 characters from the 64 characters alphabet a thru z, A thru Z, 0 thru 9, \. and /. Optionally it can start with a "$" character. This means the encrypted password was generated using another (not DES) algorithm. For example if it starts with "$1$" it means the MD5-based algorithm was used. "Refer to crypt(3) for details on how this string is interpreted. "If the password field contains some string that is not valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in, subject to pam(7)." A * or ! anywhere in the password hash field of /etc/shadow will make the account unloginable (is that a word???), as md5 hashes cannot contain these characters. On my system the uucp account has '*' for a hash and dovecot has "!": gentoo dvd # cat /etc/shadow uucp:*:13374:0: dovecot:!:13374:0:9:7::: gentoo dvd # cat /etc/passwd uucp:x:10:14:uucp:/var/spool/uucppublic:/bin/false dovecot:x:97:97:added by portage:/dev/null:/usr/sbin/nologin And these password hashes means the accounts are locked: gentoo dvd # passwd -S uucp uucp L 08/14/2006 0 -1 -1 -1 gentoo dvd # passwd -S dovecot dovecot L 08/14/2006 0 9 7 -1 I can't login to either of these accounts, and 'su -' from a root console to either account also fails - one silently, the other with a message about account cannot be used. I thought this might be the work of the shell in /etc/passwd, not the password itself, so I tested it and made /bin/bash the shell for both, then used 'su -' for both from a root console: gentoo dvd # su - uucp No directory, logging in with HOME=/ [EMAIL PROTECTED] / $gentoo dvd # su - dovecot No directory, logging in with HOME=/ [EMAIL PROTECTED] / $ *** So, in summary: '*' and '!' in /etc/shadow seem to have the same effect, and if present, passwd considers the account to be locked. The account is still perfectly useable and works in all other respects as long as you don't have to do a password login to use it (e.g. 'su -' as root). To be certain if there's a difference between '*' and '!' or any other character, you'd have to read the code - but I myself am not up to that today :-) alan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Re: Re: What is up with the new "domainname" situation?
On Mon, 18 Sep 2006 13:47:03 +0100, Mick wrote: > When I logon I can see in the console: > > "This is lappy.(none) (Linux i686 2.6.7-gentoo-r8) 13.31.51" > > Where is this "(none)" being read from? As in which files and which > particular entry in that file? /etc/issue sets the login output. A \o in there is replaced by the NIS domain, \O by the DNS domain. > Unlike Alex's earlier example I do not need to set up DNS servers addresses, > or other IP addresses as these are picked up by the dhcpcd server from my > hardware router. Does your router set the domain correctly? What does "hostname -d" give? -- Neil Bothwick This is as bad as it can get-but don't bet on it. signature.asc Description: PGP signature
Re: [gentoo-user] [OT] Why directories aren't files?
Am Montag, 18. September 2006 15:04 schrieb ext Roman Zilka: > Hm, this is all pretty weird. I cut'n'pasted and compiled your piece > of code and again got the same results under Linux and FreeBSD: no > output at all. I don't know if some local FreeBSD admin hacked/patched > the kernel source to make its syscalls behave Linux-alike, but it's very > unlikely. Hmm, maybe OP is $LD_PRELOADing something? Bye... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: [EMAIL PROTECTED] Hambornerstraße 55 | Web: http://www.capgemini.com D-40472 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net pgp9qa2EqKsS7.pgp Description: PGP signature
Re: [gentoo-user] [OT] Why directories aren't files?
Hm, this is all pretty weird. I cut'n'pasted and compiled your piece of code and again got the same results under Linux and FreeBSD: no output at all. I don't know if some local FreeBSD admin hacked/patched the kernel source to make its syscalls behave Linux-alike, but it's very unlikely. According to the outputs I get on the OS's I have available here, there's no difference between Linux and FreeBSD so far. -rz -- gentoo-user@gentoo.org mailing list
Re: AW: [gentoo-user] x or * in /etc/passwd ?
On Mon, 18 Sep 2006, Noack, Sebastian wrote: The second field in /etc/passwd stands also for the password hash. But since storing passwords in /etc/passwd is deprecated, it should ever be an invalid hash like "x" or "*" for example. Yes, but that holds for normal accounts as well as for "service" accounts. What I was saying is that a * in /etc/shadow will make logging in impossible. Did I understand wrong? -- Jorge Almeida -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: Re: Re: What is up with the new "domainname" situation?
On Sunday 17 September 2006 20:02, Alexander Skwar wrote: > Well... But what Mick showed was the expected behaviour. He > has NOT set a domainname - at least not the domainname that > the "domainname" command would return. I just can't get it. :-( When I logon I can see in the console: "This is lappy.(none) (Linux i686 2.6.7-gentoo-r8) 13.31.51" Where is this "(none)" being read from? As in which files and which particular entry in that file? > domainname --help clearly shows, what domainname will return: > The *NIS* domainname. This always used to be the case and > hopefully always will be the case. OK, but when I enter nis_domain="STUDY" in /etc/conf.d/net, I still get "(none)". Unlike Alex's earlier example I do not need to set up DNS servers addresses, or other IP addresses as these are picked up by the dhcpcd server from my hardware router. I manually ran: # domainname STUDY and now I get: # domainname -v getdomainname()=`STUDY' STUDY which is fine, but the console still shows hostname.(none). I am obviously confused with all this name setting and would very much appreciate your patience and help to make me understand. :) -- Regards, Mick pgpKwDvndc408.pgp Description: PGP signature
RE: [gentoo-user] How to get Java 1.3 SDK ebuilds...
Hi, >From: Neil Bothwick [mailto:[EMAIL PROTECTED] >On Mon, 18 Sep 2006 12:17:10 +0200, Wolfgang Liebich wrote: >> According to eix -I sdk only SDK versions from 1.4 upwards are available >> for installation. >The -I option restricts eix to currently installed packages. It shows >what is installed, not what is available for installation. Sorry, I wrote it wrong. If I do a "eix jdk" on my new gentoo system, I get only 1.4 JDK versions. My old gentoo PC has JDK 1.3 versions installed, so it shows them in the "installed" part. Ciao, Wolfgang <>
AW: AW: [gentoo-user] [OT] Why directories aren't files?
Hi, interesting. You are right. But so it would be (maybe not the most usable but) the most consequentially solution to dump the data of the directory on read(). Regards Sebastian Noack > -Ursprüngliche Nachricht- > Von: Matteo Pillon [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 18. September 2006 13:50 > An: gentoo-user@lists.gentoo.org > Betreff: Re: AW: [gentoo-user] [OT] Why directories aren't files? > > Hi, > > On Mon, Sep 18, 2006 at 11:49:38AM +0200, Noack, Sebastian wrote: > > But independent from this aspect, a file refers in its inode to a > > chunk of storage on the hard disk (or other storage medias), which > > contains its data. But some files like directories don't contain data. > > A directory IS like a file (in my opinion), it's an inode with > data, you can also see it doing an ls -l: > drwxr-xr-x 2 pmatthew users 4096 27 dic 2005 a > drwxr-xr-x 2 pmatthew users 40960 22 mar 16:20 b > Directory 'a' shows a size of 4096, the block size, as it contains > only a few files and listing them with their associated inode, needs > only a block, but 'b' contains a lot of files and so needs 10 blocks > to store the inode-filename list. > > I don't have much knoledge of how ext2 works under the hood, just > guessing from the behaviour I see from higher-level tools. > > Thanks for your replies. > > Bye. > > -- > * Pillon Matteo > -- > gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: AW: [gentoo-user] [OT] Why directories aren't files?
Hi, On Mon, Sep 18, 2006 at 11:49:38AM +0200, Noack, Sebastian wrote: > But independent from this aspect, a file refers in its inode to a > chunk of storage on the hard disk (or other storage medias), which > contains its data. But some files like directories don't contain data. A directory IS like a file (in my opinion), it's an inode with data, you can also see it doing an ls -l: drwxr-xr-x 2 pmatthew users 4096 27 dic 2005 a drwxr-xr-x 2 pmatthew users 40960 22 mar 16:20 b Directory 'a' shows a size of 4096, the block size, as it contains only a few files and listing them with their associated inode, needs only a block, but 'b' contains a lot of files and so needs 10 blocks to store the inode-filename list. I don't have much knoledge of how ext2 works under the hood, just guessing from the behaviour I see from higher-level tools. Thanks for your replies. Bye. -- * Pillon Matteo -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
On Mon, Sep 18, 2006 at 11:42:29AM +0200, Roman Zilka wrote: > > I was wondering why Linux doesn't treat directories like files, as many > > other unix implementations do. > > For example, in Linux, you can't do 'cat .' while on FreeBSD you can. > > Why? There is a practical reason? > > I'd say it's not a matter of how Linux treats directories > (putting aside the problem of diverse filesystems), but how > coreutils or "cat", to be precise, treats directories. You could just as > well implement such a feature into 'cat' which would make it behave like > it does on FreeBSD when called on a directory. As to why Linux's "cat" > acts the way it does...try asking GNU guys.:) I was not talking about cat itself, but about open() and read(). > Btw, in my place: > $ uname -a > FreeBSD howdy123 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Apr 5 > 12:22:42 CEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GORGO i386 > $ cat . > cat: .: Is a directory > $ Strange, my FreeBSD box, things works differently... I was asking because, in FreeBSD I can do this bit of magic, but in Linux not (not really useful, just proving that in Linux, not everything is a file ;-). [EMAIL PROTECTED]:~/ $ uname -a FreeBSD watson.octopus 6.1-STABLE FreeBSD 6.1-STABLE #14: Wed Aug 23 14:47:09 CEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WATSON i386 [EMAIL PROTECTED]:~ $ mkdir prova [EMAIL PROTECTED]:~ $ od -c prova/ 000 020 342 002 \0 \f \0 004 001 . \0 \0 \0 001 p 001 \0 020 364 001 004 002 . . \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 040 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0001000 [EMAIL PROTECTED]:~ $ cd prova/ [EMAIL PROTECTED]:~/prova $ touch file [EMAIL PROTECTED]:~/prova $ touch file2 [EMAIL PROTECTED]:~/prova $ od -c . 000 020 342 002 \0 \f \0 004 001 . \0 \0 \0 001 p 001 \0 020 \f \0 004 002 . . \0 \0 026 342 002 \0 020 \0 \b 004 040f i l e \0 ` ' 303 032 342 002 \0 330 001 \b 005 060f i l e 2 \0 ' 303 \0 \0 \0 \0 \0 \0 \0 \0 100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0001000 [EMAIL PROTECTED]:~/prova $ rm file [EMAIL PROTECTED]:~/prova $ od -c . 000 020 342 002 \0 \f \0 004 001 . \0 \0 \0 001 p 001 \0 020 034 \0 004 002 . . \0 \0 026 342 002 \0 020 \0 \b 004 040f i l e \0 ` ' 303 032 342 002 \0 330 001 \b 005 060f i l e 2 \0 ' 303 \0 \0 \0 \0 \0 \0 \0 \0 100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0001000 [EMAIL PROTECTED]:~/prova $ ls file2 And it's not caused by special code in od, it's using simple open() and read() calls, as proved by this simple C code: [EMAIL PROTECTED]:~ $ cat mycat.c #include #include #include #include #include int main(int argc, char **argv) { int fd; char buffer; fd=open(argv[1], O_RDONLY); while (read(fd, &buffer, 1) == 1) printf("%c", buffer); exit(EXIT_SUCCESS); } [EMAIL PROTECTED]:~ $ make mycat cc -O2 -pipe -march=pentium4 mycat.c -o mycat [EMAIL PROTECTED]:~ $ ./mycat prova | od -c 000 020 342 002 \0 \f \0 004 001 . \0 \0 \0 001 p 001 \0 020 034 \0 004 002 . . \0 \0 026 342 002 \0 020 \0 \b 004 040f i l e \0 ` ' 303 032 342 002 \0 330 001 \b 005 060f i l e 2 \0 ' 303 \0 \0 \0 \0 \0 \0 \0 \0 100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0001000 Bye. -- * Pillon Matteo -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Is there an ebuild for exifautotrans?
On Mon, 18 Sep 2006 12:19:00 +0200, Wolfgang Liebich wrote: > Is there an ebuild around containing this tool? media-libs/jpeg -- Neil Bothwick WinErr 01F: Reserved for future mistakes of our developers. signature.asc Description: PGP signature
Re: [gentoo-user] How to get Java 1.3 SDK ebuilds...
On Mon, 18 Sep 2006 12:17:10 +0200, Wolfgang Liebich wrote: > According to eix -I sdk only SDK versions from 1.4 upwards are available > for installation. The -I option restricts eix to currently installed packages. It shows what is installed, not what is available for installation. -- Neil Bothwick Better to understand a little than to misunderstand a lot. signature.asc Description: PGP signature
[gentoo-user] Is there an ebuild for exifautotrans?
Hi, I discovered (some time ago) the exifautotrans tool. Basically this is a program which can read EXIF data and *lossless* rotate images which are marked as "rotated" via EXIF (not all image viewers are EXIF capable). This tool also fixes the EXIF tag, so that all viewers will display the image correctly. Is there an ebuild around containing this tool? Google is not that helpful for now:-( Ciao, Wolfgang -- gentoo-user@gentoo.org mailing list
[gentoo-user] Can't get ULI-Raid1 to work
Hi, i already searched all over the internet, but couldn't find anything yet... I'm having a hard time getting my onbard raid1 back to work with a new mainboard. The old one had an nforc4 chip and worked fine, but the new one (Asus A8R-MVP) has an ULI m5288 chipset. I can use both SATA drives, but not together as a raid1, i was using dmraid, but this doesn't support the ULI chipset. So i was wondering if anyone else got it working or has any suggestions to get it working? PS: on the mainboard-cd there were only drivers for Fedora, RH and Suse but those don't work;\ thx! greetings, Roman v. Gemmeren -- Ask not what's inside your head, but what your head's inside of. -- J.J. Gibson -- gentoo-user@gentoo.org mailing list
AW: [gentoo-user] x or * in /etc/passwd ?
The second field in /etc/passwd stands also for the password hash. But since storing passwords in /etc/passwd is deprecated, it should ever be an invalid hash like "x" or "*" for example. Regards Sebastian Noack > OK, thank you. The * should appear in /etc/shadow, not in /etc/passwd. > -- > Jorge Almeida -- gentoo-user@gentoo.org mailing list
[gentoo-user] How to get Java 1.3 SDK ebuilds...
Hi, According to eix -I sdk only SDK versions from 1.4 upwards are available for installation. I might need 1.3 SDK variants too for maintenance of old product versions (it is not THAT simple to get a customer to upgrade :-), so - are there some ebuilds for 1.3 JDK versions around? Ciao, Wolfgang -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] {OT} Two systems or one?
Drew wrote: >> Yes, but does it run Gentoo? ;) > > Maybe not Gentoo specifically but it runs a linux kernel inside. :) > Hence the 'L'. > > > -Drew Makes me wonder what the "G" stands for?? Gentoo maybe?? O_O Dale :-) :-) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
Am Montag, 18. September 2006 11:10 schrieb ext Matteo Pillon: > I was wondering why Linux doesn't treat directories like files, as many > other unix implementations do. It's not Linux, but the applications. > For example, in Linux, you can't do 'cat .' while on FreeBSD you can. > Why? There is a practical reason? Because one is GNU cat and one is BSD cat. "less ." and "vi ." work just fine, while "more ." doesn't (even though more is less on Linux). Bye... Dirk -- Dirk Heinrichs | Tel: +49 (0)162 234 3408 Configuration Manager | Fax: +49 (0)211 47068 111 Capgemini Deutschland | Mail: [EMAIL PROTECTED] Hambornerstraße 55 | Web: http://www.capgemini.com D-40472 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net pgpTzyT9198eq.pgp Description: PGP signature
AW: [gentoo-user] [OT] Why directories aren't files?
Hi, the question is, what is a file? I would say; a file is an object related to a specific inode. So a directory would be a file as well as FIFOs, unix-sockets, char, block-devices, symlinks and of course regular files. The problem is, that not each kind of file is threaded the same way on Linux. And also it isn't on FreeBSD and the most unix-like systems. If you want an OS, where really everything is a file without exceptions and special kind of files, you should use Plan9. But independent from this aspect, a file refers in its inode to a chunk of storage on the hard disk (or other storage medias), which contains its data. But some files like directories don't contain data. And when you read from a file for example by cat, the content of its allocated chunk of storage will be read. But if there is no such data, for example because of it is a directory, the most clean way IMHO would be to show a corresponding error message. Best Regards Sebastian Noack > -Ursprüngliche Nachricht- > Von: Matteo Pillon [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 18. September 2006 11:11 > An: gentoo-user@lists.gentoo.org > Betreff: [gentoo-user] [OT] Why directories aren't files? > > Hi all, > > I was wondering why Linux doesn't treat directories like files, as many > other unix implementations do. > For example, in Linux, you can't do 'cat .' while on FreeBSD you can. > Why? There is a practical reason? > > Forgive me this OT, I wasn't able to find a suitable list. > > Thanks for replies. > Bye. > > -- > * Pillon Matteo > -- > gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] [OT] Why directories aren't files?
> I was wondering why Linux doesn't treat directories like files, as many > other unix implementations do. > For example, in Linux, you can't do 'cat .' while on FreeBSD you can. > Why? There is a practical reason? I'd say it's not a matter of how Linux treats directories (putting aside the problem of diverse filesystems), but how coreutils or "cat", to be precise, treats directories. You could just as well implement such a feature into 'cat' which would make it behave like it does on FreeBSD when called on a directory. As to why Linux's "cat" acts the way it does...try asking GNU guys.:) Btw, in my place: $ uname -a FreeBSD howdy123 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Apr 5 12:22:42 CEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GORGO i386 $ cat . cat: .: Is a directory $ ...which is exactly the same behavior as on my Gentoo. -rz -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] x or * in /etc/passwd ?
On Mon, 18 Sep 2006, Matteo Pillon wrote: From shadow(5) manpage: If the password field contains some string that is not valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in, subject to pam(7). OK, thank you. The * should appear in /etc/shadow, not in /etc/passwd. -- Jorge Almeida -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] x or * in /etc/passwd ?
On Mon, Sep 18, 2006 at 10:09:03AM +0100, Jorge Almeida wrote: > I've seen somewhere a '*' in the password field of non-human users. I > think this is supposed to mean that user can't login. However, I didn't > find anything like that in gentoo's /etc/passwd (e.g., for user cron or > user sshd). Can someone comment on this matter? Is * deprecated? Of > course, these non-human users have /bin/false as shell, but extra > precautions wouldn't hurt... > Am I seeing something wrong? Passwords are stored in /etc/shadow for security reasons: -rw-r--r-- /etc/passwd -rw--- /etc/shadow >From shadow(5) manpage: If the password field contains some string that is not valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in, subject to pam(7). Bye. -- * Pillon Matteo -- gentoo-user@gentoo.org mailing list
[gentoo-user] [OT] Why directories aren't files?
Hi all, I was wondering why Linux doesn't treat directories like files, as many other unix implementations do. For example, in Linux, you can't do 'cat .' while on FreeBSD you can. Why? There is a practical reason? Forgive me this OT, I wasn't able to find a suitable list. Thanks for replies. Bye. -- * Pillon Matteo -- gentoo-user@gentoo.org mailing list
[gentoo-user] x or * in /etc/passwd ?
I've seen somewhere a '*' in the password field of non-human users. I think this is supposed to mean that user can't login. However, I didn't find anything like that in gentoo's /etc/passwd (e.g., for user cron or user sshd). Can someone comment on this matter? Is * deprecated? Of course, these non-human users have /bin/false as shell, but extra precautions wouldn't hurt... Am I seeing something wrong? -- Jorge Almeida -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] FSTAB file
On Sunday 17 September 2006 15:36, rob wrote: > What do the 2 zerros at the end of the line mean and why is > the / dira1 0 Not to be pedantic, but it's '0 1' for the / partition :-) Others have referred you to the man pages that describe these settings, but what isn't obvious is that these are for ext2/3 filesystems only. Field 5 is used by dump/restore which only works on ext2/3. If you use reiserfs, these fields must be '0 0' as reiser can do the right thing at mount time by itself. The same goes for all other filesystems (cdroms, tmpfs, udev, etc etc) alan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] nfs and samba doesn't mount at boot
On Friday 15 September 2006 17:46, Pawel K wrote: > Hello > NFS and SAMBA doesn't mount at boot: > > 1. NFS > > I receive the following message at boot: > Sep 15 14:34:34 [rc-scripts] ERROR: cannot start > nfsmount as net.eth0 could not start > Sep 15 14:34:35 [rc-scripts] ERROR: cannot start > netmount as net.eth0 could not start [snip] > Do You have any idea what can be wrong with my > configuration ? The answer is right there in the error messages. The scripts cannot bring up your eth0 interface, so there's a snowball's chance in hell of nfs or samba ever working until that's fixed. You need to find out why networking isn't coming up. Start with /etc/conf.d/net and the output from ifconfig. Can you use ifconfig to bring the interface up manually? Run /etc/init.d/net.eth0 and inspect the output closely, that'll give you further clues. alan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Screenshot package
On Mon, 18 Sep 2006 00:43:42 -0700 (PDT), Stephen Liu wrote: > I tried to do it on M$Windows way by pressing [PrintScreen] and paste > the image on .doc or on Gimp, You do take screenshots in GIMP. > but following warning popup There was an > error running "gnome-screenshot": Failed to execute child process emerge gnome-extra/gnome-utils -- Neil Bothwick "Apple I" (c) Copyright 1767, Sir Isaac Newton. signature.asc Description: PGP signature
Re: [gentoo-user] Screenshot package
Hi Daniel, Tks for your advice. > If you have media-gfx/imagemagick installed I don't have it installed. I tried to do it on M$Windows way by pressing [PrintScreen] and paste the image on .doc or on Gimp, but following warning popup There was an error running "gnome-screenshot": Failed to execute child process "gnome-screenshot" (No such file or directory). * end * Is there any way to fix it. TIA B.R. SL -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Screenshot package
Stephen Liu wrote: > Hi folks, > > > Gentoo amd64 > Gnome-light > > Screenshot does not come with gnome-light. Please advise which package > shall I emerge. TIA > > B.R. > SL > If you have media-gfx/imagemagick installed, you could use a bash script like this: #!/bin/bash # I am "/bin/print.sh" var_name=`date +%s` import "${HOME}/screenshots/${var_name}.png" display "${HOME}/screenshots/${var_name}.png" unset var_name exit #EOF Save this script somewhere in your $PATH and bind a key to it. I use it in xfce-4. -- Best regards, Daniel -- gentoo-user@gentoo.org mailing list