[gentoo-user] Video Network Stream from Pipe
Hi! I'm currently trying to set up a personal video recorder in form of a headless server using mencoder and freevo. What I would like to do is watching the movie while mencoder is realtime encoding it to x264/vorbis in a Matroska container. I already tried it using sshfs. Unfortunately, the file is only read up to the point where it ended when playing it started. I don't know if NFS would behave better. Well, what I thought about was doing it like this: #!/bin/bash mencoder [...] -o - | tee video.mkv | stream-app So far it should work and vlc would be the natural choice for the streaming app. However, vlc seems unable to read from a pipe so I need something else. Can anyone give me a tip? maybe I missed an option in vlc or can someone propose an app that can be used instead? By the way: It's a 100MBit ethernet network without any switches or hubs. The machines are right next to each other. I hope it will be a 400 or even 500MBit net soon, but that's another topic ... signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Video Network Stream from Pipe
On Wed, 2008-01-16 at 20:43 +, Neil Bothwick wrote: On Wed, 16 Jan 2008 20:29:35 +0100, Florian Philipp wrote: #!/bin/bash mencoder [...] -o - | tee video.mkv | stream-app So far it should work and vlc would be the natural choice for the streaming app. However, vlc seems unable to read from a pipe so I need something else. What about using a fifo, can vlc handle that? mkfifo mystream mencoder [...] -o - | tee video.mkv mystream streamapp mystream Thanks but that was one of my first thoughts. I've tried cat [Matroska-file] test.fifo vlc test.fifo. VLC thought it was a DVD and could not read it. I also tried telling vlc to use the mkv demuxer with --demux mkv but then I've got: [0254] mkv demuxer error: Not a Matroska file : DocType = [0254] mkv demuxer error: cannot find KaxSegment [0247] main input error: no suitable demux module for `/mkv://TYFS.mkv' I don't think streaming would fare any better if the streaming server can't recognize the format, am I right? signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Video Network Stream from Pipe
On Wed, 2008-01-16 at 20:29 +0100, Florian Philipp wrote: Hi! I'm currently trying to set up a personal video recorder in form of a headless server using mencoder and freevo. What I would like to do is watching the movie while mencoder is realtime encoding it to x264/vorbis in a Matroska container. I already tried it using sshfs. Unfortunately, the file is only read up to the point where it ended when playing it started. I don't know if NFS would behave better. Well, what I thought about was doing it like this: #!/bin/bash mencoder [...] -o - | tee video.mkv | stream-app So far it should work and vlc would be the natural choice for the streaming app. However, vlc seems unable to read from a pipe so I need something else. Can anyone give me a tip? maybe I missed an option in vlc or can someone propose an app that can be used instead? By the way: It's a 100MBit ethernet network without any switches or hubs. The machines are right next to each other. I hope it will be a 400 or even 500MBit net soon, but that's another topic ... I just want to give an update in case someone plans something like this: NFS does not have the problem sshfs had - problem solved. However, you can't navigate through files that mencoder did not yet finish muxing. To be able to do so, you must tell mplayer to create a new idx with -forceidx (just -idx might work as well and shouldn't harm files that already contain an index but I haven't tested it yet). signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] NFS Server Tuning
On Thu, 2008-01-24 at 19:19 -0600, Dan Farrell wrote: [...] and as the client (from `mount`): nfs:/mnt/storage on /home/media/storage type nfs(rw,rsize=65536,wsize=65536,soft,timeo=300,addr=192.168.1.88) /etc/fstab on the client looks like: nfs:/mnt/storage /home/media/storagenfs rsize=65536,wsize=65536,rw,async,soft,timeo=300 0 0 Of these options, rsize,wsize,and async are reputed to effect performance. However, I do not see much of an effect between different rsize and wsize settings. I believe that over an uncongested 100T network it probably doesn't matter too much what rsize and wsize are. On a different share (same server) mounted async without [r|w]size set, performance (write, this time) was 11.2mb/s, roughly the same. Furthermore, I'm not sure these values are even valid. http://www.linuxdocs.org/HOWTOs/NFS-HOWTO/performance.html said that nfs3 goes only to 32768. [...] As far as I remember, rsize and wsize are negotiated between client and server. Those mount options just set an upper limit which is certainly not what you want. I'm even wondering that those settings are accepted at all! Normally, unsigned 16bit integer has a range from 0 to 65535. If you ask me, that's an off-by-one error just waiting to happen... signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] NFS Server Tuning
On Sat, 2008-01-26 at 10:29 +, Stroller wrote: On 25 Jan 2008, at 22:40, Florian Philipp wrote: On Thu, 2008-01-24 at 19:19 -0600, Dan Farrell wrote: [...] and as the client (from `mount`): nfs:/mnt/storage on /home/media/storage type nfs(rw,rsize=65536,wsize=65536,soft,timeo=300,addr=192.168.1.88) /etc/fstab on the client looks like: nfs:/mnt/storage /home/media/storagenfs rsize=65536,wsize=65536,rw,async,soft,timeo=300 0 0 Of these options, rsize,wsize,and async are reputed to effect performance. ... [...] As far as I remember, rsize and wsize are negotiated between client and server. Those mount options just set an upper limit which is certainly not what you want. I'm even wondering that those settings are accepted at all! Normally, unsigned 16bit integer has a range from 0 to 65535. If you ask me, that's an off-by-one error just waiting to happen... This seems to suggest that 32768 is the largest figure that can be specified for rsize,wsize: http://www.mythtv.org/wiki/index.php/ Optimizing_Performance#NFS_servers Stroller. Ehmm, yes. NFS-docs approve this. From a programmer's perspective this number is still odd because it's one more than can fit into signed 16bit int and and 32767 less than unsigned 16bit int... maybe they had other reasons. Well, although neither info- nor man-pages mention it, I've found an old man-page [1] which states that these values default to 1024, therefore setting it to 32768 seems the best choice. [1] http://www.trinler.de/de/linux/man.html?command=nfs signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Speed up with pbzip2 or not!?
On Sun, 2008-01-27 at 10:58 +0100, Justin wrote: Hey guys! Yesterday I found this article http://gentoo-wiki.com/HOWTO_Speed_up_decompression_with_pbzip2 and was very happy, because I'm an owner of an Q6600. So I tried to reproduce the benchmark from the wiki article but got that bad results: test # time bzip2 -d -kf linux-2.6.23.tar.bz2 real0m11.672s user0m11.306s sys 0m0.367s test # time pbzip2 -d -p4 -kf linux-2.6.23.tar.bz2 real0m25.554s user0m24.862s sys 0m0.683s So the parallel version took more than the double time! To test whether this is a problem of my Pc I tested this on an Dual Core with the same result. An test with 7z was much better: test # time 7za x -y linux-2.6.23.tar.bz2 real0m4.642s user0m8.379s sys 0m0.327s So my questions is what did I do wrong? Did you compress it with pbzip2 in the first place? Pbzip2 can only speed up decompression of files created by pbzip2, as well. Read the docs, dude ... p7zip has got its own implementation of bzip2, which might be faster. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Speed up with pbzip2 or not!?
On Sun, 2008-01-27 at 11:40 +0100, Justin wrote: Is there a way to use 7zip for decompression with emerge? I fear, no easy one. Of course, since emerge is just a python script, you could rewrite it but 7z-syntax isn't compatible with bzip2 or gnu-tar so it will be some work. I also tried to use star as a drop-in replacement for gnu-tar, once. Didn't work well although their syntax is nearly identical, but just nearly... By the way: Please don't top-post (e.g. write your answers to a mail below the quote. It makes reading long threads with many quotes easier.) signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Speed up with pbzip2 or not!?
On Sun, 2008-01-27 at 13:54 +0100, Hemmann, Volker Armin wrote: On Sonntag, 27. Januar 2008, Justin wrote: Thats a good point. Now it worked really fast. But then the questions is why should I use pbzip2 for decompression with portage? I think most tarballs are packed only with the normal compression algorithm! The WIKI articel pretends a gain of speed which wont be! and that is why you should never trust wiki-articles. Everybody can write them and say whatever they want. Well, many eyes see much. It's all a matter of checking, just as with open source software... To the topic: I've unmerged pbzip2 after reading its docs. ... seemed too much trouble. I'll try it again when it is suitable as a drop-in replacement or when portage can make use of it. In the mean time, if I need good compression with more than one thread, I use p7zip's lzma implementation. By the way, as soon as I come into contact with some decent scripting languages (and no longer this closed source LabVIEW I currently have to work with), I'll try to build a wrapper around p7zip to create a drop-in replacement for gzip, bzip2 and zip. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] {OT} GUI swf encoder in portage?
On Wed, 2008-01-30 at 09:02 -0800, Grant wrote: Does anyone know of a front end for ffmpeg or any GUI in portage that will convert .mov files to .swf? - Grant You could use mencoder, part of mplayer-ebuild: mencoder *.mov -oac copy -ovc copy -of lavf -lavfopts format=swf -o *.swf explanation: *.mov: input filename -oac copy, -ovc copy: do not convert input audio and video data -of lavf: use an FFmpeg libav output format -lavfopts format=swf: specify format for libav as swf -o *.swf: output filename signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Re: Horribly off-topic linux distro question...
On Thu, 2008-02-07 at 15:37 +, Neil Bothwick wrote: On Thu, 07 Feb 2008 15:27:51 +0100, Michael Schmarck wrote: In the context of online banking, where Windows of some flavour is the desktop OS, I see a substantial risk arising through spyware and/or viruses. I suspect that a neat way to mitigate this would be to run an OS from a CD which offers nothing more fancy than a basic web-browser. Is there anything like this already available? DSL should come fairly close. Dillo doesn't work with the online banking sites, and many others, that I tried. Last time I tried, DSL came with Firefox 1.5.* signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Horribly off-topic linux distro question...
On Fri, 2008-02-08 at 20:47 -0600, Dan Farrell wrote: On Thu, 07 Feb 2008 14:04:27 + Steve [EMAIL PROTECTED] wrote: In the context of online banking, where Windows of some flavour is the desktop OS, I see a substantial risk arising through spyware and/or viruses. I suspect that a neat way to mitigate this would be to run an OS from a CD which offers nothing more fancy than a basic web-browser. Is there anything like this already available? Isn't mozilla (not firefox, that is) ) made for this kind of thing? I thought it was the hardened, corporate-ready branch of the browser. Incidentally, i think the best solution to spyware/adware worries is to not run windows. I have yet to find a substantiated claim of any malware (real malware, not theoretical, lab-contained stuff) for linux. What you mean is Netscape Navigator (basically the Mozilla suite aka Seahorse). I don't know whether there are any differences to good old Mozilla other than branding, regular security fixes and customer service. Malware for Linux? What about those macro viruses for Open Office? Every cross platform software such as Mozilla derivatives, java based stuff like Azureus and so on is a possible target. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] load too high
On Wed, 2008-02-13 at 07:55 +0100, Dirk Heinrichs wrote: Am Mittwoch, 13. Februar 2008 schrieb ext James: I did not try this. what's the option to boot into single user mode? No need to boot, just telinit 1 from a running system. And later switch back to normal with telinit 3. Just to show some alternatives: rc single / rc default useful if you use other runlevels, for example nonetwork or boot with kernel parameter single signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Looking for PCI-X external SATA controller
On Thu, 2008-02-14 at 23:12 -0600, Dale wrote: Neil Walker wrote: Kevin O'Gorman wrote: I can find a lot of cards that are almost what I want. But I have an external drive, and a PCI-X motherboard. Not internal, and not PCI-E. Anybody know of such a beast A quick Google led to this: http://www.newegg.com/Product/Product.aspx?Item=N82E16816124003 Be lucky, Neil Dale makes a note of this. Questions: If I buy this card and a SATA hard drive, will I notice faster transfer speed on the drive or will the PCI bus limit it somehow? I currently get 40 to 50 MBs/sec on my IDE drives. Would this setup be any faster? Thanks Dale :-) :-) Short answer: no. Long answer: You'd need to flood your PCI-bus with data to see any drop in speed. Ways to do it? Buy four disks and build a RAID1 using Linux device mapper. Since the data sent to the devices is not replicated on a RAID-controller (e.g. after transfer through PCI) but in software, you'd send four times the amount of data through your poor old PCI-bus. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] slightly OT, laptop for gentoo
On Fri, 2008-02-15 at 12:09 +0930, Iain Buchanan wrote: On Thu, 2008-02-14 at 20:21 -0500, David Relson wrote: On Thu, 14 Feb 2008 23:29:58 + Mike Williams wrote: On Thursday 14 February 2008 22:58:13 David Relson wrote: Have you thought about a PS/2 to USB adapter? I'm presently using a PS/2 keyboard _and_ a PS/2 mouse connected to a single USB port (with a Y adapter -- dual PS/2 inputs and USB output). D'you know what, I didn't even realise such a thing existed! I've probably got dozens of USB to PS2 adaptors, and never imagined the opposite. A dual PS2 to USB could well do the trick, and my local Maplin have some in stock, a bit pricey but the company will pay. Here in Michigan they seem a bit pricey, as well. A single PS/2 to USB adapter is a few dollars but the dual PS/2 to USB Y adapter is $16.00 (or worse). I had hoped to use one with my PS/2 only KVM but the combo doesn't work. I suspect the issue is with the KVM as I have 2 different Y adapters and neither works. Sigh :- The Dell business models (precision) docking stations have 2 PS2 ports. http://cgi.ebay.com.au/DELL-Dock-Station-PR01X-LATITUDE-INSPIRON-FREE-DELIVERY_W0QQitemZ320215888408QQihZ011QQcategoryZ3709QQssPageNameZWDVWQQrdZ1QQcmdZViewItem A docking station would be an excellent idea if you need the peripherals to work without fussing with cables. If/when you do need to pick it up to move / replace something, you don't need to worry about unplugging replugging 6 different cables in the right spots... You can even tie / screw the docking station down (or get one of those D-View laptop stands) http://cgi.ebay.com.au/Dell-D-View-Laptop-Stand-NEW_W0QQitemZ200199102199QQihZ010QQcategoryZ3708QQssPageNameZWDVWQQrdZ1QQcmdZViewItem sorry about the ebay links, but dell of course doesn't list these things in their products page... -- If you buy a docking station, double check what kind of AC-adapter you use. A PA-12 (65W) is not powerful enough to supply a docking station. You'll need a PA-10. Some notebooks are shipped with a PA-10, some with a PA-12 with no apparent system. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] reiser4 status
On Fri, 2008-02-15 at 12:57 +0100, Erik wrote: Alan McKinnon skrev: On Friday 15 February 2008, Dirk Heinrichs wrote: ... I wondering where this fs will go now ? It's in the -mm tree since a long time now and AFAIK one or two former namesys employees are still working on it. It's in curse of import in kernel or totally abandonned ? Don't know. Reiser4 will probably die a quiet death now. Without Hans' vision driving it, it will probably do what it's been doing for 18 months - going nowhere. And it's highly unlikely that Linus will ever pull it into mainline. The reiser coding style is somewhat ... problematic for kernel devs That would be really bad. What is going on? Who is behind that legal attack on against the free world and Hans? Must be someone who wants to harm us. Is there anything we can do about it? Legal attack on Hans Reiser? Oh, you don't know the story? Okay, short version: Hans is a weird person. And now, his wife disappeared and the police found indications (alot) that he murdered her. And now all of Namesys' money is spend on defending him. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] reiser4 status
On Fri, 2008-02-15 at 13:47 +0100, Erik wrote: What do you mean by Hans is a weird person.? Do you know him personally or did you just read it somewhere? I only saw a video lecture with him talking about namespaces and filesystems (he seemed perfectly normal there at least). And I use his filesystem (reiser3.6), which has worked perfectly for over 3 years on my laptop. How likely is it that he would have committed such a crime? What motive would he have? That sounds like the perfect way to harm the free software community. Make some important person's wife disappear. Is there any organization out there who would do something dirty to harm us if they could get away with it? How trustworthy is the Russian police? Is the Russian legal system working satisfactory? Yep, I've read it somewhere and I'd wish I could find it. All I can tell you is that it's a really f***ed up story. If it were a movie, you'd say it's worse than your average soap opera, completely unbelievable. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Ext4 status - Alternative to ext2/3 for gentoo portage and more
On Fri, 2008-02-15 at 14:36 +0100, Strong Cypher wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm looking for an alternative to ext2/3. I have put reiser3/4 out because of project seems to be off now ... or not really active I really want an active project. Is they a good fs that is extremly adapted to gentoo system (portage ...) Is they fs that support gzip like reiser4 do ? For exemple , with reiser4 the portage directory don't take a lot of space, and so read it it's really fast... I want a alternative is ext4 a good alternative ? Don't know about ext4 but for portage trees I found ext2 to be faster than everything else I tried (primarily reiserfs3.6). Have you taken a look at XFS or JFS? Concerning online compression I can only think of cramfs (which is read-only) or NTFS (do they support compression by now? I know that I can format a partition and set it to compressed but I've not tried it.) signature.asc Description: This is a digitally signed message part
[gentoo-user] Odd problem with OpenSSH
Hi list! For some time now, there's a very odd situation: There are two computers, DAU and NOTE. I can use ssh to login from DAU to NOTE but not vice versa. I've played around with several settings before this happened but I'm sure it worked after my last change. Well, ultimately I've unmerged openssh, keychain and denyhosts on both computers and removed /etc/ssh and .ssh in root's and the users' home directories and then reemerged just openssh. Yet, the situation didn't change. Here's what happening: [EMAIL PROTECTED] ssh -vvv DAU OpenSSH_4.7p1-hpn12v19, OpenSSL 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to DAU [192.168.2.4] port 22. debug1: Connection established. debug1: identity file /home/dsl/.ssh/identity type -1 debug1: identity file /home/dsl/.ssh/id_rsa type -1 debug1: identity file /home/dsl/.ssh/id_dsa type -1 ssh_exchange_identification: Connection closed by remote host [EMAIL PROTECTED] tail /var/log/messages [...] Feb 15 19:20:30 DAU sshd[6269]: refused connect from NOTE.xxx (192.168.2.2) I must have missed something, but what? By the way: I can still connect from NOTE to my third PC, SERV. But since SERV and DAU are not on the same net, I cannot try this connection. And yes, I've also used chkrootkit. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Odd problem with OpenSSH
On Fri, 2008-02-15 at 20:59 +0200, Alan McKinnon wrote: On Friday 15 February 2008, Florian Philipp wrote: Hi list! For some time now, there's a very odd situation: There are two computers, DAU and NOTE. I can use ssh to login from DAU to NOTE but not vice versa. I've played around with several settings before this happened but I'm sure it worked after my last change. Well, ultimately I've unmerged openssh, keychain and denyhosts on both computers and removed /etc/ssh and .ssh in root's and the users' home directories and then reemerged just openssh. Ah. You probably shouldn't have done that, unless you know for a fact that YOU screwed the ssh config up beyond all hope of recovery. Usually, you just sit with the same problem anyway, or make it worse by removing the configs that still work Yet, the situation didn't change. Here's what happening: [EMAIL PROTECTED] ssh -vvv DAU OpenSSH_4.7p1-hpn12v19, OpenSSL 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to DAU [192.168.2.4] port 22. debug1: Connection established. debug1: identity file /home/dsl/.ssh/identity type -1 debug1: identity file /home/dsl/.ssh/id_rsa type -1 debug1: identity file /home/dsl/.ssh/id_dsa type -1 ssh_exchange_identification: Connection closed by remote host [EMAIL PROTECTED] tail /var/log/messages [...] Feb 15 19:20:30 DAU sshd[6269]: refused connect from NOTE.xxx (192.168.2.2) It's not a firewall, xinetd, tcpwrappers or denyhost problem :-) Your connection attempt was received by sshd which denied it. The information you gave is inadequate to answer your question, because I don't know how long a piece of string is. Post the complete contents of /etc/sshd/sshd_config on DAU and we can probably tell you why though Thanks so far. Since there wasn't that much customization, trying vanilla settings from the ebuild didn't sound that bad. At least it didn't make it worse ;). Okay, when I delete every line that's commented out, my sshd-settings read as follows: Protocol 2 PasswordAuthentication no (changing to yes doesn't change anything) UsePAM yes (changing to no doesn't change anything) Subsystem sftp /usr/lib64/misc/sftp-server Useflags: X hpn pam tcpd -X509 -chroot -kerberos -ldap -libedit -selinux -skey -smartcard -static signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Ext4 status - Alternative to ext2/3 for gentoo portage and more
On Fri, 2008-02-15 at 21:05 +0100, Wael Nasreddine wrote: Currently I have 2 partitions, a root and home partition, fortunately on LVM array, I was thinking of splitting them to /, /usr, /var, /home, /usr/portage, /mnt/storage the latter is to be used for Mp3z (around 12000) and movies... I was thinking of having the below filesystem schema: / : ext3 (-j -O dir_index,sparse_super,filetype) (Good mkfs options ??) /usr: xfs (I never used it so please suggest mkfs.xfs options) /var: // /home : ext3 (-m 0 -j -O dir_index,sparse_super,filetype) (Good mkfs options ??) /usr/portage: ReiserFS (3? 4? options??) /mnt/storage: ext3 (-m 0 -j -O dir_index,sparse_super,filetype) (Good mkfs options ??) Could you please comment/complete/change the schema above ?? I really would like to speed up my system a little bit, My system is entirely built on LVM array, and LVM is on DM-CRYPT so as you can see it's a quite slow due to the encryption... Oh one last thing, What do you suggest for a server? I have a Gentoo server and uptime can be over 5/6 months, everytime I reboot the server I have to manually scan the filesystem due to errors everywhere, any suggestions?? Thanks... First of all, if there are filesystem errors, check your cables, your controller and your disks. I don't think filesystem errors count as normal behavior ... To your filesystem scheme: Why do you use xfs for usr? AFAIK XFS is good at write speed but not worth the trouble when reading data and data in usr is usually written once, updated every few months and read many times a week (on rebooting Desktop PCs maybe once a day). I'd use reiserfs3.6, maybe even without notail to make it more space efficient. I'd also use ext2 on /usr/portage. These data don't need journaling. Everything's got an MD5-sum to make sure it's unchanged after a crash and you can easily resync. I found ext2 with 2k blocks to be faster than reiserfs3.6, even on read-performance. If I were you, I'd also use separate volumes for /tmp and /var/tmp (without ccache) with xfs. /home could use data=journal. Those data are precious and if I remember correctly, this setting even brings an obscure (i.e. undocumented) speed improvement with many parallel disk accesses, for example in a multi-user environment. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Ext4 status - Alternative to ext2/3 for gentoo portage and more
On Sat, 2008-02-16 at 00:32 +0100, Wael Nasreddine wrote: To your filesystem scheme: Why do you use xfs for usr? AFAIK XFS is good at write speed but not worth the trouble when reading data and data in usr is usually written once, updated every few months and read many times a week (on rebooting Desktop PCs maybe once a day). I'd use reiserfs3.6, maybe even without notail to make it more space efficient. I don't use XFS, curently I only have / and /home and I want to split it to more smaller partitions, I'm on LVM so it's easy, anyway I'm going with ReiserFS for /usr /var, would you please suggest mkfs.reiserfs options as I have nerver used ReiserFS-3 before (yep 5 years using linux and I've always used ext3...) also You didn't mention /var, would you say ReiserFS-3 is a good choice as well? I don't think there's alot to do when creating a reiserfs. You could change the number of blocks for the journal. A bigger journal allows larger transactions which speed up write actions but might waste space. If you've got a second hard drive you could use an external journal but I've never done any benchmarking on that issue although I use it on my personal wannabe server (a raid1 and a single disk for the journal and unimportant data). I didn't comment on /var because I don't know how you use it. I suspect it to hold alot of temporal data like lock files, spools and so on. So there's a lot of creating and removing files going on, possibly in parallel. XFS is good in parallel and in creating files but terrible in removing files. Reiserfs with notail seems a good choice if you ask me (what you did ;) ) I'd also use ext2 on /usr/portage. These data don't need journaling. Everything's got an MD5-sum to make sure it's unchanged after a crash and you can easily resync. I found ext2 with 2k blocks to be faster than reiserfs3.6, even on read-performance. I've already made the partition as suggested in [1] I used this command: $ mke2fs -b 1024 -N 20 -m 0 -O dir_index I guess 1K block size would be faster?? I'm not sure. 2K blocks might reduce fragmentation. If you look at the output of find /usr/portage/ -type f | xargs du -h --apparent-size you'll see that there are quiet a few files larger than 1K but most are smaller and might stay that small. So yes, I think 1K is a good choice but you won't loose much with 2K, maybe you even gain some speed. If I were you, I'd also use separate volumes for /tmp and /var/tmp (without ccache) with xfs. What did you mean by 'without ccache'? I have ccache and I use it... I meant that you should keep ccache on a separate partition. I just think: Less stuff in the FS, less work on allocation and lookup, more speed. And there's a lot of stuff in 2GB ccache. By the way: I don't think /var/tmp is a good place for ccache (not technically, just for the sake of layout). I've moved it to /var/db since it's not really a bunch of temporary data but more like a changing database. /home could use data=journal. Those data are precious and if I remember correctly, this setting even brings an obscure (i.e. undocumented) speed improvement with many parallel disk accesses, for example in a multi-user environment. it's done, thanks, BTW what's your home partition FS? your choice is ext3 or reiserFS?? I use reiserfs3.6 without notail but that doesn't mean that it would be a good choice for you. I'm on laptop and disk space efficiency is a big topic for me so I use tail-packing wherever suitable. And yes, I am a fan of ReiserFS-3.6. I think it's the best multipurpose FS. You can easily adapt it for high performance or high disk space efficiency. If its journaling would be as good as Ext3's data=journal I'd use it everywhere except for small partitions (ext2) and big files (ext3 and xfs). One last thing, since I'm on LVM resizing the partition is a must feature, in ext3 I use resize2fs which works quite nicely, is resize_reiserfs as reliable as resize2fs is?? Yes, it's just as good and the sky's the limit for resizing :) Oh, by the way: If you choose to use XFS somewhere, keep in mind that you can't shrink and XFS-FS. Neither online nor offline. One last thing: It's a bit old but I think it's still interesting, especially for XFS-users: http://everything2.com/index.pl?node_id=1479435 signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Ext4 status - Alternative to ext2/3 for gentoo portage and more
On Sat, 2008-02-16 at 06:33 +0100, Wael Nasreddine wrote: it's done, thanks, BTW what's your home partition FS? your choice is ext3 or reiserFS?? I use reiserfs3.6 without notail but that doesn't mean that it would be a good choice for you. I'm on laptop and disk space efficiency is a big topic for me so I use tail-packing wherever suitable. And yes, I am a fan of ReiserFS-3.6. I think it's the best multipurpose FS. You can easily adapt it for high performance or high disk space efficiency. If its journaling would be as good as Ext3's data=journal I'd use it everywhere except for small partitions (ext2) and big files (ext3 and xfs). One last thing, since I'm on LVM resizing the partition is a must feature, in ext3 I use resize2fs which works quite nicely, is resize_reiserfs as reliable as resize2fs is?? Yes, it's just as good and the sky's the limit for resizing :) Oh, by the way: If you choose to use XFS somewhere, keep in mind that you can't shrink and XFS-FS. Neither online nor offline. One last thing: It's a bit old but I think it's still interesting, especially for XFS-users: http://everything2.com/index.pl?node_id=1479435 Thank you for your detailed answer it helped a lot, I just finished resizing/migrating all partitions, Though I still have the Storage partition, which is for my Mp3z and is almost 70Gb, with ext3, I'll see later if I do migrate to ReiserFS or not but the rest is done, please take a look at the file attached... and if you have any more suggestions please do tell me. You could use the noatime mount option on all your partitions. With atimes enabled, every time you read a file, its (mostly useless) access time is updated which results in a write action. The only program that I know to use atimes is mutt (for mail spools only). You could also take a look at the link I've posted in my last message. It contains useful mount options for XFS. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Odd problem with OpenSSH
On Fri, 2008-02-15 at 22:54 -0800, Tim Garton wrote: Try adding a: LogLevel VERBOSE or LogLevel DEBUG to /etc/ssh/sshd_config and restarting the ssh server, and see if it gives you any more info. Thanks! That did the trick! Now there was an entry about tcp wrapper denying access in /var/log/messages. Remerging open-ssh with USE=-tcpd solved the problem. I will look into tcpd configuration but I don't think I even need it on that machine. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] changing dvd - hdd on the fly
On Sun, 2008-02-17 at 12:39 +0100, pat wrote: Hello, I have notebook IBM TP43 and I have second HDD in the box. The box can be plugged in instead of the DVD drive. And I want to be able to switch these (HDD - DVD) on the fly (this is possible in windows so why not in Linux ?-) ). The HW interface is UltraBay. Could someone point me to the solution or show me the way? Thanks a lot Pat Hi! I've got a Dell Media Bay which seems to be very similar. For me it only works after rebooting or after resuming from hibernate. Have you already tried to unmount it, then simply exchange them? What kind of SATA-controller do you have? If you have to use the Intel driver (look into your bios if you can use AHCI instead), you might want to play with ata_piix.force_pcs=x kernel parameter (if its a module, load it with force_pcs=x as a parameter). x can be 0,1 or 2. Neither works for me. Look here: http://linux-ata.org/driver-status.html As usually: I'm not responsible if you break your hardware/filesystems when following my advices. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] MacBook: How many hours on battery with Gentoo?
On Tue, 2008-02-19 at 11:28 +0100, b.n. wrote: Lowe Schmidt ha scritto: Hi. I'm planning on buying myself a MacBook and I'm just wondering if anyone knows how many hours I will get out of it if I run Gentoo. I mainly use a bunch of terminals, gvim and some lightweigth gtk app so nothing heavy going on. All input appreciated My Macbook Pro with light, normal usage lasts about three hours (OS X lasts at least one hour more). m. Have you found any reason for this discrepancy? I'd suspect them to be on par with the right tuning. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] MacBook: How many hours on battery with Gentoo?
On Tue, 2008-02-19 at 20:07 +0100, b.n. wrote: Ritesh Kumar ha scritto: On Feb 19, 2008 12:09 PM, Florian Philipp [EMAIL PROTECTED] wrote: On Tue, 2008-02-19 at 11:28 +0100, b.n. wrote: Lowe Schmidt ha scritto: Hi. I'm planning on buying myself a MacBook and I'm just wondering if anyone knows how many hours I will get out of it if I run Gentoo. I mainly use a bunch of terminals, gvim and some lightweigth gtk app so nothing heavy going on. All input appreciated My Macbook Pro with light, normal usage lasts about three hours (OS X lasts at least one hour more). m. Have you found any reason for this discrepancy? I'd suspect them to be on par with the right tuning. Are you doing any kind of CPU frequency scaling? In the kernel (I use gentoo sources) configuration enable Yes, I do frequency scaling (the ondemand governor is used when the laptop is unplugged). I also use laptop-mode for the hd and pommed to tune screen brightness. I think the problems are the wireless and the video drivers. The new Macbook Pro wireless drivers (I bought my machine in late October 2007, just when Leopard came out -although, well, I found myself almost never using it) required SVN version of madwifi (dunno if now the stable version works, will check when upgrading kernel), and so far attempting to set power saving on my wireless card fails. The Macbook Pro also has a nvidia video card. The nvidia drivers work quite well (apart from some issues with external dvi resolution), but as far as I know, on it the Powermizer feature is somehow disabled. :( I guess both things combined can explain at least a significant quantity of the power drain. Suggestions are much welcome, I hate the reduced battery power. m. 1. Use laptop-mode if you don't do it by now. Really nice even without its delayed disk write feature. 2. Displays are by far the biggest energy consumers. Lower its brightness as far as possible. Some laptops even allow you to switch its backlight off - very nice if you are outdoor. 3. Use the powersave-governor. If you really need the additional power ondemand offers, try the conservative-governor. It increases the clock rate slower than ondemand and might stop it from jumping too fast too high. 4. Try sys-power/powertop. It shows you processes creating a lot up wakeups for the CPU. It also gives you tips on your kernel config. 5. Sometimes a BIOS update helps... Hope this helps. signature.asc Description: This is a digitally signed message part
[gentoo-user] Tweak nice
Hi! I noticed a very annoying behavior. I've got a headless server (Athlon 64 X2) which primarily acts as a personal video recorder using mencoder and at-daemon. In its idle-time it's supposed to run a dnet-client. Then I've got a laptop (64bit Celeron, single core) on which I play those video files from my server over NFS. So far, so good. My problem is: Neither of them can handle recording/playing video while there is any background activity. That means I have to stop the dnet-daemon and suspend any emerges on my laptop. If I don't, both mencoder and mplayer loose sync of audio and video and drops frames. Apparently a nice-setting of 19 is not enough to keep daemons and similar stuff as strict idle activity. It still gets a fair amount of cpu-time. Of course, I could give mencoder/mplayer real-time priority (nice -n 20) but that would need them to run in super-user mode which should be unnecessary for such a simple task. Long story short, can I somehow tweak the scheduler to be more aggressive when it comes to high nice-levels? Thanks in advance! Florian Philipp signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Tweak nice
On Sun, 2008-02-24 at 11:29 +, Stroller wrote: On 24 Feb 2008, at 11:01, Florian Philipp wrote: ... I noticed a very annoying behavior. I've got a headless server (Athlon 64 X2) which primarily acts as a personal video recorder using mencoder and at-daemon. ... ... My problem is: Neither of them can handle recording/playing video while there is any background activity. That means I have to stop the dnet-daemon and suspend any emerges on my laptop. If I don't, both mencoder and mplayer loose sync of audio and video and drops frames. ... Hi there, What capture card are you using to record TV? I would expect most people these days to be receiving some kind of digital signal - DVB-T using an aerial, DVB-S using a dish or DVB-C via cable. Here in the UK, for example, it would be most common to receive DVB-T Freeview. Receiving a digital signal requires no encoding, practically no processor resources, as the DVB signal is just mpeg, and the card is simply dumping the stream to hard-disk. Are you playing back the video across the network? What processor / RAM configurations do your PCs have? What hard-drives? What size are the videos (pixels) and what format (encoding, bitrate) are they stored in on your hard-drive? I think you have to demonstrate that the problem is processor-bound. My immediate thought upon reports of stuttering is to question disk or network throughput. Stroller. It's a PCI-card for analog TV (ordinary cable with about 20 channels). It doesn't output mpeg but raw video/audio so I have to encode it. I use h.264 (1 pass, 2 threads) and lame. The settings are tweaked to allow 25fps and a good overall quality. I could give you the settings but I don't think they're really important. The load is somewhere around 1.3 to 1.8. Of course I could tweak it to achieve 25fps even with dnet-client in the background but that would cost me quality and wouldn't fix my problem on the notebook. On my notebook, CPU-utilization is just around 50%. There is no apparent bottleneck on my setup. The 100MBit network is fast enough to transfer the files while playback is running even without caching. I'm decoding them on my notebook. If there were a bottleneck other than CPU-scheduling, it would hit me every time, not just when another process demands CPU-time. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Switch between sound cards?
On Sun, 2008-02-24 at 11:34 -0800, Grant wrote: I have a USB sound card and an internal sound card in my laptop. Is there a way to switch between them while the system is booted? Is module loading/unloading via modprobe the best way to do it? - Grant -- gentoo-user@lists.gentoo.org mailing list Why switch between them when you can use them both at the same time as hw:0 and hw:1? Thanks Mark. After studying your config, here is mine: alias snd-card-0 snd-hda-intel options snd-hda-intel index=1 options snd-hda-intel model=acer alias snd-card-1 snd-usb-audio options snd-usb-audio index=0 alias sound-slot-0 snd-card-0 alias sound-slot-1 snd-card-1 alias /dev/mixer snd-mixer-oss alias /dev/dsp snd-pcm-oss alias /dev/midi snd-seq-oss options snd cards_limit=2 I get sound from the USB card but not from the internal card (snd-hda-intel). How can I tell the system to turn off the USB card and turn on the internal card? - Grant You might want to take a look at the new pulseaudio daemon. I don't use it but as far as I know it's perfect for complex setups like yours. Think of it as a (transparent, if necessary) layer between your software and alsa. It should be easier to reconfigure than alsa. You could use it (or the older the older jack daemon) to send audio to both devices. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Tweak nice
On Sun, 2008-02-24 at 17:45 +0200, Uwe Thiem wrote: On Sunday 24 February 2008, Florian Philipp wrote: Hi! I noticed a very annoying behavior. I've got a headless server (Athlon 64 X2) which primarily acts as a personal video recorder using mencoder and at-daemon. In its idle-time it's supposed to run a dnet-client. Then I've got a laptop (64bit Celeron, single core) on which I play those video files from my server over NFS. So far, so good. My problem is: Neither of them can handle recording/playing video while there is any background activity. That means I have to stop the dnet-daemon and suspend any emerges on my laptop. If I don't, both mencoder and mplayer loose sync of audio and video and drops frames. By dnet-daemon you mean dnetc, right? If you run dnetc with nice 19 and simultaneously something that uses as much CPU as it can get (like a fractals generator) at nice 0, you will see that dnetc still uses around 6% CPU. But it does go down to 6%. The remaining CPU should be enough for watching video. Disclaimer: I have never used mplayer on a 64bit system. It might have issues there. Since you are playing the video over NFS you do so over the network. Maybe a stupid question: You do use FastEthernet without any hub, right? Switches are alright but hubs are evil. A possiible work around might be to increase the buffer in mplayer to something around 1MB. Uwe Yep, I meant dnetc (I thought dnet-client would be better understandable). And yes, it does go down but not far enough, especially because there are two such processes (one for each core). By the way: Another daemon who's causing problems is clrngd, creating 100% CPU-utilization every 4 minutes for about 1 minute. I neither use a switch nor a hub, just a good old crossover cable. In fact, I used to let mplayer create a 8MB cache but without background activity it was useless and with it, it's got eaten up too soon. Mencoder seems to utilize a queue/fifo/whatever-you-might-call-it by default but that doesn't help if it doesn't reach 25fps. Since nobody seems to have an idea, maybe someone can tell me how I allow processes with real-time priority (nice -n -20) to be started by an ordinary user? Of course I'm aware of sudo but I don't want a simple media encoder to have super-user permissions. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] How to use mplayer play file online?
On Fri, 2008-02-29 at 11:58 +0200, Uwe Thiem wrote: On Friday 29 February 2008, Chuanwen Wu wrote: Meanwhile, just download the file and play it. What's the problem with that? To view the whole thing from beginning to end all that data would still have to move from the server to your local machine anyway. But I can save the time of downing the file and when I want to watch any movie, I don't need to wait. You can start the download and start mplayer on the (incompletely) downloaded file. Uwe -- I do this all the time over NFS with Matroska-files that are still being created by my server. If you can't navigate within the movie, add -idx or --force-idx to create a new index on the fly. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Ghosting a Ext3 partition
On Fri, 2008-02-29 at 12:27 -0700, Jonathan Haws wrote: I am having a major problem right now with my laptop. I regularly make backups of my system using Norton Ghost 2003 to DVD. However, my laptop crashed and I tried to restore my backup that I had made and it restores just find but when I try and boot it tells me that my Ext3 filesystem is corrupt and had errors and I would have to run fsck manually. When I ran fsck it told be that about every inode was invalid and that Group X had all sorts of other problems (I can't remember every little detail). Doesn't Ghost work with Ext3? What can I do to recover my system without reinstalling from scratch? Thanks! Jon You could try testdisk. Maybe it can recover. Or try mke2fs -S signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Set a property on a file and have it remove when the file is modified?
On Sat, 2008-03-01 at 13:40 +0100, Erik wrote: Is it possible to set a property on a file and have it remove automatically when the file is modified? Suppose that we have a style checker that checks a lot of source code files. Once it examined a file and found it to be clean, it should set a property on the file (style-clean). Whenever the style checker is executed it skips files with this property. Whenever the file is modified, the filesystem removes the property. Is this possible? Which filesystems does it work on? Looks like you are looking for extended attributes: http://en.wikipedia.org/wiki/Extended_attributes But I don't think you can make them disappear by modifying a file. Inotify might be a solution for that problem: http://en.wikipedia.org/wiki/Inotify Alternatively you could check the file modification times as stored by default on every FS. You could use find for that or ls --full-time. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] torrent/mkv
On Fri, 2008-03-07 at 10:00 +, Gavin Seddon wrote: Hi ctorrent produced the trilogy in mkv format, as far as I can tell this needs modifying before I can burn. What's the best way todo this pls? GAVIN I suppose you want to create a video DVD (Mpeg2), or do you want a divx DVD? In any case, you could use mencoder (media-video/mplayer). However, for a beginner it might be hard to use. Here's its documentation, including advisories for creating DVD-player-compatible files. Never done that myself. http://www.mplayerhq.hu/DOCS/HTML/en/index.html Alternatives: VLC, probably others like videotrans and tovid. Never tried them myself. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Bogofilter under Thunderbird
As far as I know, Thunderbird doesn't support external filters (imho a very big disadvantage). You could get around it by using a local mail server. If you find another way, let me know. I'm interested in this as well. On Thu, 2008-03-13 at 09:47 +0100, cypherstrong wrote: Hi, Do you know how in gentoo, use bogofilter under thunderbird ? This program work great on kmail or evolution, but thunderbird have it's own filter, I don't really like it. How can I plug bogofilter ? Is they a plugins, or a pop3 proxy to do that ? Thanks signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] partition needs to be fsckd, keyboard locked
On Thu, 2008-03-13 at 09:56 +0100, b.n. wrote: Alan McKinnon ha scritto: On Thursday 13 March 2008, b.n. wrote: Hi, After a hard freeze on the Gentoo partition of my Macbook Pro laptop, I rebooted, and I found this dreaded message: /dev/sda4: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) And it asks me my root password, or ctrl-d to skip the fsck. Problem is, my keyboard seems totally unresponsive. So I basically can't boot into my system. I'm currently downloading a livecd to bypass this, obviously, but I wonder - if there's some other solution - something I should be aware of before fscking the filesystem? try edit the kernel line in the bootloader to add the parameter single to the end of the kernel line. Tried that, it seems it doesn't work (it seems to ignore it, but I am not sure. I'll try again). Hopefully bypassing the rest of the boot up runlevel stuff will leave you with a working keyboard. I can't really help much further, as I don't know how the Macbook keyboards are connected or wired up I think Linux sees it as an USB keyboard, but I don't know for sure. m. Most probably you compiled HID, USB-HID and/or your USB-controller as kernel modules, which cannot be loaded prior to mounting /. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Bogofilter under Thunderbird
On Sat, 2008-03-15 at 11:11 +0100, Florian Philipp wrote: As far as I know, Thunderbird doesn't support external filters (imho a very big disadvantage). You could get around it by using a local mail server. If you find another way, let me know. I'm interested in this as well. On Thu, 2008-03-13 at 09:47 +0100, cypherstrong wrote: Hi, Do you know how in gentoo, use bogofilter under thunderbird ? This program work great on kmail or evolution, but thunderbird have it's own filter, I don't really like it. How can I plug bogofilter ? Is they a plugins, or a pop3 proxy to do that ? Thanks Sorry for top-posting, didn't notice it. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Can't mount NTFS read-write
On Sat, 2008-03-15 at 09:48 +, Neil Bothwick wrote: On Sat, 15 Mar 2008 09:33:09 +, Stroller wrote: It's kinda late by my erratic bodyclock, so I'm assuming I'm doing something stupid. Can anyone slap me with a kipper, please? Don't try to write with the in-kernel NTFS driver. (Or should I be using the fuse NTFS driver?) Yes, most definitely. By the way: Which one is better (or are they the same?): ntfs-3g or ntfsprogs with USE=fuse? signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] jffs2 on gentoo
On Fri, 2008-03-14 at 18:27 +, James wrote: Hello, I have a firewall that is built pretty minimally on a P3 and and old 4 gig ide disk: /dev/hda3 2068348 1668104400244 81% / /dev/hda1 100728 40452 60276 41% /boot I have a 4 gig Cf card (sandisk) and a ide-cf card that should make the CF card look like an ide hard drive. I've been searching for a wiki or something that describes the general sequence of events to migrate the existing gentoo system to the CF/ide disk, with no luck. I did find this page: http://gentoo-wiki.com/Mounting_a_block_device_with_JFFS2 But it seems vague(outdated) and missing many steps. Or am I confused? I'm just looking for some outline or verbose steps to replace an ide drive on a system with a CF/ide drive and jffs2, as I have many systems that I'd like to do this with, for core reliability on minimalistic gentoo servers. I plan on having additional space on these systems (when needed) via NFS. Any help or ideas are greatly appreciated. James As far as I know you won't need jffs2 (or any other fs for flash memory). It is meant to be used on embedded devices that directly access the flash memory. In your case, the CF-disk takes care of wear leveling. Just use ext2. However, you could still get problems because, as far as I know, wear leveling needs to be tuned for the FS and most probably no one tuned the CF-disk for ext2. Maybe you could use fat instead... signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Randomly dumb questions
On Sat, 2008-03-15 at 16:31 +0200, Alan McKinnon wrote: On Saturday 15 March 2008, Daniel Iliev wrote: On Sat, 15 Mar 2008 15:35:32 +0200 Alan McKinnon [EMAIL PROTECTED] wrote: On Saturday 15 March 2008, Chris Brennan wrote: Dale wrote: | Chris Brennan wrote: | How come I don't see my own posts to this list? | | We got this one. I saw one other one too. | Dale | | :-) :-) Ya but you didn't answer my question :D The list software doesn't send a copy of a mail back to the same address as what sent it. This is pretty usual behaviour for any list run by a non-idiot (like this one) Is that so? Then will you, please, explain how do people get their original messages back? There's a copy already in their outbox? And a sane mailer (like say kmail) will have put the sent copy there already. -- Alan McKinnon alan dot mckinnon at gmail dot com I doubt it works that way. I always get mails back from the list, I can forward one to you, the headers should be proof enough. Of course it's possible to place a copy of your sent message in your inbox (and I know, kmail's got an option for that) but that's not standard behavior. It's merely a workaround for broken filters like gmail's. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] PII Hangs while booting.
On Sat, 2008-03-15 at 15:21 -0400, Andrew MacKenzie wrote: I've got an old PII Intergraph TD-225 PC that I'm trying to install Gentoo onto. Bios is AMIBIOS. The system supports dual CPU but only has one. It currently has WinXP running on it fine. But every Linux install/boot CD I've run (Gentoo, CentOS, Knoppix, etc.) hangs while booting (2.4 and 2.6 kernels). The last thing I see from the CentOS boot process is the following: Checking 'hlt' instruction... OK. SMP alternatives: switching to UP code Freeing SMP alternatives: 14k freed CPU0: Intel Pentium II (Klamath) stepping 03 Then it just hangs. CD can pop out and everything. Can anyone give me any idea what's going wrong? Typically, adding the boot parameter noapic (not noapci!) is the first thing one should try. signature.asc Description: This is a digitally signed message part
[gentoo-user] graphic card driver status
Hi list! I'm thinking about upgrading my parent's PC's graphic card because I have driver issues with their old Nvidia GF-2 MX which prevent me of using the closed source driver. Now I want to ask: What's the status of the ATI drivers? Does the free driver support 3D-acceleration on newer cards? Is the closed source driver still such a pain to setup? How about VIA or Matrox? I'd buy an Intel but I don't think they produce AGP- or PCI-cards, do they? Thanks in advance! Florian Philipp signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Re: jffs2 on gentoo
On Tue, 2008-03-18 at 01:47 +, Stroller wrote: On 17 Mar 2008, at 18:10, James wrote: ... Wear leveling is *probably* built into the IDE to CF converter carrier board? Almost certainly not, I'd have thought. Aren't those boards just dumb pin-convertors? CF cards talk IDE. Stroller. Yes they are. Another thought crossed my mind today: Does wear leveling work if I create loopback devices (ext2-formatted) on FAT32? By the way: Why is wear leveling filesystem-dependent anyway? I would have thought it were working on blocks (like device mapper, cryptsetup, lvm and so on) and not on files. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] [OT] iTunes with Gentoo?
On Tue, 2008-03-18 at 12:45 +0100, Michael Schmarck wrote: Hello. Sorry for being somewhat Off Topic, but could you guys please tell me if it's possible to use iTunes with wine-0.9.57 under a ~x86 system? Is it possible to change the store location to something other than US (as that's required to buy songs, as far as I know)? Thanks, Michael AFAIK that's not possible. Most likely DRM will not work and even if it runs, you won't be able to burn CDs with it. You might have more success with Windows in a virtual machine but then you'd still need to emulate a CD-burner. I'm not sure if there exists an out-of-the-box solution for that. By the way: For questions like this, there exists appdb.winehq.org signature.asc Description: This is a digitally signed message part
[gentoo-user] Initrd-script questions
Hi list! I'd like to have some advice on my situation: I have a custom init-script (derived from genkernel). What it already does is to let gpg ask for a passphrase to decrypt a file on /boot and then to use to content of that file as the key to a LUKS-formatted swap (logical volume) which is then used to resume from disk. What I would also like to do is to use the very same key for other lvm-volumes like /var and /var/tmp but that doesn't seem that easy. First idea: Just do the same as with the swap-volume. However, all other mappings are gone after resuming/booting. Second idea: Write the plaintext-keyfile to /boot and then use it via /etc/conf.d/cryptfs before removing it in a secure manner (srm, provided by app-misc/secure-delete). Problem: When resuming, /boot is already mounted. Writing to it and then resuming leads to filesystem corruption. Third idea: Using a dedicated volume for storing the plaintext key. Cumbersome, doesn't reduce the risk that srm isn't enough to protect the key. So ... what I'd need is a way to transfer data between an initial ramdisk and the real init. Ideally in form of tmpfs-mountpoint. I don't think my odds are very high but I just wanted to ask... Thanks in advance! Florian Philipp signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] [OT]nfs question
On Tue, 2008-03-18 at 18:37 +0200, ionut cucu wrote: Hi list! I want to share my files in my lan with various files systems. I've tried so far sshfs and now nfs but both have the following issue: should the router/hub go down, or one of participants to my inner-circle sharing buddies close their pc, neither of the rest can enter home...we all have the nfs/sshfs mounted in /home/user/otheruserdir. I tried restarting nfs/nfsmount nothing. Umounting will not work because umount.nfs: Server failed to unmount '10.6.3.41:/home/cuci' umount2: Device or resource busy umount.nfs: /home/iosz/temp: device is busy --as an example. And lsof gets stuck. Any ideas on how to avoid this? Try to use Coda. It's designed keep on working when you disconnect. However, I can't give you any support on it. I just know that it is capable of doing so. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] [OT] iTunes with Gentoo?
On Tue, 2008-03-18 at 10:11 -0700, Joshua D Doll wrote: Michael Schmarck wrote: Hello. Sorry for being somewhat Off Topic, but could you guys please tell me if it's possible to use iTunes with wine-0.9.57 under a ~x86 system? Is it possible to change the store location to something other than US (as that's required to buy songs, as far as I know)? Thanks, Michael iTunes works pretty well, running on a VM of windows. I run windows XP with VMWare Workstation and have iTunes installed to sync my iPod, because no OSS solutions handle m4a very well :-(. --Joshua Doll But you have no way to burn an audio-cd from it and thus get rid of drm, right? signature.asc Description: This is a digitally signed message part
[gentoo-user] WLAN performance
Hi list! Can anyone tell me how I could find the bottleneck on my wireless network? According to iwconfig, both cards are cofigured for 54 MBit/s but I only get about 13 MBit/s, both on NFS and scp. Might it be the driver (iwl3945, rt61 from kernel 2.6.24)? Unfortunately, iwspy doesn't work on these cards. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] DVD Playback Problem
On Fri, 2008-03-21 at 08:55 -0500, CJoeB wrote: Hi Guys, First, let me say that I did search this problem on Google. I found a somewhat relevant solution, but before I try it, I thought I would post here. The problem is jerky playback of the dvd when I try to play it using kaffeine. The laptop on which I am trying to play the DVD is a Dell Inspiron M1710. It is less than a year old (purchased late April 2006). One of the things the post said was to check that dma was enabled by running hdparm -I /dev/hdc. I did that and this is the output: /dev/hdc: ATAPI CD-ROM, with removable media Model Number: TSSTcorp DVD+/-RW TS-L632D Serial Number: Firmware Revision: DE04 Standards: Likely used CD-ROM ATAPI-1 Configuration: DRQ response: 50us. Packet size: 12 bytes Capabilities: LBA, IORDY(can be disabled) DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=227ns IORDY flow control=120ns Commands/features: EnabledSupported: HW reset results: CBLID- below Vih Device num = 0 Another thing this post said was that the person switched from the scsi/sata system for the drive to the deprecated ide/sata model. Admittedly, I haven't rebuild the kernel in a while. I'm running 2.6.21-gentoo-r4. This was because when I tried to upgrade to the next stable version of the kernel after 2.6.21-gentoo-r4, it wouldn't recognize my hard drive as a sata, so I went back to a kernel version that I knew worked. Do you think a kernel upgrade would help solve the problem. BTW I have 2 gig of memory on this laptop, so the issue shouldn't be memory related. Any ideas? Thanks in advance for the assistance! :-) Regards, Colleen -- That a kernel recognizes a sata-drive as pata usually happens if there are generic drivers present in the kernel. Deselect everything generic and you should be fine. Then you should try mplayer instead of kaffeine to be sure it's not software related. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] [OT] iTunes with Gentoo?
On Fri, 2008-03-21 at 17:39 -0700, Joshua D Doll wrote: Florian Philipp wrote: On Tue, 2008-03-18 at 10:11 -0700, Joshua D Doll wrote: Michael Schmarck wrote: Hello. Sorry for being somewhat Off Topic, but could you guys please tell me if it's possible to use iTunes with wine-0.9.57 under a ~x86 system? Is it possible to change the store location to something other than US (as that's required to buy songs, as far as I know)? Thanks, Michael iTunes works pretty well, running on a VM of windows. I run windows XP with VMWare Workstation and have iTunes installed to sync my iPod, because no OSS solutions handle m4a very well :-(. --Joshua Doll But you have no way to burn an audio-cd from it and thus get rid of drm, right? I've burned a copy of CDs from within the VM, but not using iTunes. I personally don't have very many DRM'd music, like I said I just use it to transfer m4a (apple lossless which is not DRM'd) files to my iPod. --Joshua Doll Oh, that interests me: Which VM enables you to actually burn CDs? I tried Qemu once and were told at that time that there is no VM with CD-burning functionality. Did you actually burn it from within the VM, e.g. having that much control over your hardware or did you create an image you later burned with native linux tools? signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] AMD vs. Intel on Gentoo?
On Sat, 2008-03-22 at 10:07 -0700, Grant wrote: I had become an AMD guy, but I think I'm hearing that Intel is beating AMD in performance tests. Plus my AMD64 X2 desktop should be much faster than my Intel laptop but is actually slower. What do you guys think? - Grant I work at the German Aerospace Center (basically the German NASA). We've been using AMD CPUs for a long time on our clusters and workstations because they were not only cheaper but also faster on floating point operations whereas Intel was faster on integer operations. Now we are switching to Intel because AMD lost this advantage and has problems delivering the ordered number of CPUs. I personally stick with AMD because they have a factory in Germany and I don't want Intel to rule the market as they've done before AMD came up with the Athlon XP. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] AMD vs. Intel on Gentoo?
On Sat, 2008-03-22 at 18:44 +0100, Norman Rieß wrote: Grant schrieb: I had become an AMD guy, but I think I'm hearing that Intel is beating AMD in performance tests. Plus my AMD64 X2 desktop should be much faster than my Intel laptop but is actually slower. What do you guys think? - Grant Well the experience of a desktop or an application depends on more than just the processor. Nearly every part of a computer does its part. And then you have the software, what software you use, how it is build, what reqirements this software has on other software and hardware and so on. Does it uses the FPU or is it heavy on the ALU. How much IO is used and how much can the system provide. But if you believe the average hardwaremagazine, intel is a step ahead right now. Norman When Intel finally implements HyperTransport (I think it's planned for the next generation), AMD will loose their last bastion performance wise ... what a pity. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] HELP! partition table is corrupted
On Sun, 2008-03-23 at 12:01 +0100, pat wrote: Hello, My brother has a second disk where was two partitions formated as NTFS (the big one) and FAT32 (small one), but something brakes the partition table and now there are two linux partition tables +/- the size of the previous logical drives. Which SW should I use to recover the original partition table? I think about gpart, but does it has a GUI? I'm not guru at this :-\ I know the next version is to format whole drive, but there are photos of his daughter and not backup ... . Thanks a lot for all suggestions !!! Pat Try testdisk. It's ncurses-based and easy to use. It saved my sorry arse twice. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Basic video editor in portage?
On Sun, 2008-03-23 at 12:22 -0700, Grant wrote: I have some video clips I'd like to trim the beginning and end from. Is there a simple tool that will do this? I'm emerging lives but I think it's overkill for this. - Grant You could use mencoder (part of mplayer): mencoder -ss 1:10 -endpos 1:10:00 -oac copy ovc copy -of avi -o\ truncated.avi original.avi Explanation: -ss 1:10skip the first 1 minute and 10 seconds -endpos 1:10:00 finish at file position 1 hour and 10 minutes (so the truncated video would be 1:08:50 long) -oac copy do not transcode the audio -ovc copy do not transcode the video -of avi write everything into an avi-container -o truncated.avioutput file Warning: This simple example doesn't handle additional streams like a second audio or subtitles. Please refer to mencoder's man-page for additional options, or ask here ;) Hope this helps signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Recovering root password
On Mon, 2008-03-24 at 15:39 -0500, Dale wrote: Grant wrote: I've revived an old Gentoo laptop, but I've forgotten the root password. I remember the password to my user account and I can log in there fine. Can I recover the root password? - Grant I think you can boot into single user mode and reset it. You have to put it on the end of the grub boot line but I can't recall what the exact option is. May help you search tho. You can also boot the CD and chroot in to reset it as well. I'm sure that will work just as well. Dale :-) :-) The option is single but it won't help because it requests the root password before it gives you your /bin/bash. Anyway, if you have sudo-rights, you can simply do sudo passwd and it won't ask you for the old password. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Recovering root password
On Tue, 2008-03-25 at 09:32 -0700, Grant wrote: On a notebook, there isn't an OS in existence that is immune to a LiveCD. Linux is. In the sense that you can't get at the data if the disc is encrypted, even not with a LiveCD. You can only destroy/overwrite it. Yes, I realised that when typing the original, but left it as is - too many IF conditionals would be needed to be accurate and English is almost useless at getting IFs to parse correctly :-) Passwords come from a time when users had terminals that log onto machines that are somewhere else and the user can't lay a finger on them. Things have indeed changed since 1978 Would the type of filesystem encryption you guys are talking about be unsuitable for a high-traffic server because of performance considerations? - Grant I did some benchmarks recently, posted them on gentoo-security. Long story short: Even my 64bit single-core Celeron can do 256bit AES, 320bit Anubis or 256bit Twofish faster than writing data to the disk (37MB/s). Blowfish, CAST and Serpent are too slow. 128bit AES (which I deem good enough for the near future) causes around 40% CPU-utilization. Whether it is suitable for your server depends on its usage patterns. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] iwl4965 performance
On Mon, 2008-03-24 at 17:28 +0100, Thomas Kahle wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am using the iwl4965 driver which is included in the kernel 2.6.25-rc6. Everything works fine (Networkmanager, WPA2, etc.) The only thing I experience is a very bad performance. I cannot get more than around 30 kb/s. Also the responses are rather slow. If I open some new tabs in firefox it takes up to 5 seconds before there is enough data to render something. When using wired network its much faster. The router is also not the source of the problem, with my old airo card i could get up to 200 kb/s, the macbook running gentoo gets to around 500kb/s. Any ideas where to start investigation ? Thanks Thomas When I switched to iwl3945 I had problems with a very unstable connection (just stable enough to allow wpa_supplicant to recover), decreasing effective bandwidth a lot. Enabling every suboption except of debugging for Intel Wireless WiFi Link Drivers in the kernel resolved it. Does it work with kernel 2.6.24? Maybe you could try wpa_supplicant with debugging enabled? wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -d or even wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -dd signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Creating an initrd for loading...
On Thu, 2008-03-27 at 12:35 -0400, Benjamen R. Meyer wrote: I'm working on a Sparc system (SunBlade 2000 Desktop Server) that needs an initrd image to load (due to having a QLA 2200 SCSI controller); but I am having some trouble with the initrd image. (I had tried the gentoo-sparc list, but it is slow - I'm not getting responses - and I need to finish this server by Friday. And the issue right now is solely the initrd image.) The problem I am having is that the kernel is complaining about not having the initrd image. I have SILO (sparc equiv of LILO) installed, and have told it of the initrd image, but the kernel doesn't seem to find it. (SILO reports all is well, so I can only assume it is finding the initrd image without a problem.) My main question comes down to this: I am using the 'genkernel' package to build install the kernel and initrd image. Both show up in /boot. How much can I rely on genkernel to build a valid initrd image? Try genkernel menuconfig all to check for a valid kernel config before genkernel builds it. Refer to genkernel's man-page for further options. How can I mount the initrd image to verify it has the modules, etc. and verify it is a valid image? There is a wiki-entry about it: http://gentoo-wiki.com/HOWTO_Initramfs Hope this helps. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] PRNG is not seeded
On Wed, 2008-03-26 at 23:24 +0530, Kaushal Shriyan wrote: On Wed, Mar 26, 2008 at 9:46 PM, Neil Bothwick [EMAIL PROTECTED] wrote: On Wed, 26 Mar 2008 21:17:07 +0530, Kaushal Shriyan wrote: when i restart sshd I get PRNG is not seeded # /etc/init.d/sshd restart PRNG is not seeded Does /dev/urandom exist? What are it's permissions? -- Neil Bothwick Never eat more than you can lift. Hi Thanks for the clue, Both the files /dev/random and /dev/urandom are missing in my system. How do i go ahead in fixing this issue Thanks and Regards Kaushal I'm not sure if this is a permanent solution because /dev is a tmpfs created by udev on startup (maybe there is your problem?) but you could try mknod -m 444 /dev/random c 1 8 mknod -m 444 /dev/urandom c 1 9 Both commands are taken from Linux from Scratch. There is a static /dev lying on your root-partition. It should have been created when you extracted your stage3-tarball during installation. Maybe there is something wrong with that one and udev doesn't create (u)random when they are not in the static one. To see the static /dev you must unmount /dev, which you can only do from a live-cd. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] touchpad can't scroll
On Thu, 2008-03-27 at 23:58 +0800, Chuanwen Wu wrote: Hi, I have a Dell 1400 laptop. The touchpad can implement most functions except vertical scrolling, horizontal scrolling and dragging (not only in firefox, and also other applications). I have followed this guide http://gentoo-wiki.com/HARDWARE_Synaptics_Touchpad, but still can't fix the problem. There is some information below: $ cat /proc/bus/input/devices [...] I: Bus=0011 Vendor=0002 Product=0008 Version=7325 N: Name=AlpsPS/2 ALPS GlidePoint P: Phys=isa0060/serio1/input0 S: Sysfs=/class/input/input5 U: Uniq= H: Handlers=mouse1 event5 B: EV=f B: KEY=420 67 0 0 0 0 B: REL=3 B: ABS=103 [...] And some configurations in my Xorg.conf: Section InputDevice Identifier USB_Mouse Driver mouse Option ProtocolAuto # Auto detect Option Device /dev/input/mice Option ZAxisMapping 4 5 EndSection Section InputDevice Identifier TouchPad Driver synaptics Option Device/dev/input/mouse1 Option Protocol alps Option SendCoreEvents true Option SHMConfig on Option ZAxisMapping 4 5 Option Emulate3Buttons on Option LeftEdge 130 Option RightEdge 840 Option TopEdge 130 Option BottomEdge640 Option FingerLow 7 Option FingerHigh8 Option MaxTapTime180 Option MinTapTime 110 Option ClickTime 0 Option EmulateMidButtonTime 75 # Option MaxTapMove220 Option VertScrollDelta 20 Option HorizScrollDelta 20 Option MinSpeed 0.40 Option MaxSpeed 0.65 Option AccelFactor 0.030 Option EdgeMotionMinSpeed 200 Option EdgeMotionMaxSpeed 200 Option UpDownScrolling 1 Option CircularScrolling 1 Option CircScrollDelta 0.1 Option CircScrollTrigger 3 Option VertEdgeScroll on EndSection Section ServerLayout Screen Screen 1 InputDevice USB_Mouse CorePointer InputDevice Keyboard1 CoreKeyboard Option AIGLX true EndSection Any help will be appreciated! -- wcw You should change your server-layout to something like Section ServerLayout Identifier Layout0 Screen Screen1 InputDeviceKeyboard1 CoreKeyboard InputDeviceTouchpad CorePointer Option AIGLX true EndSection signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] portage/firewall
On Thu, 2008-03-27 at 17:55 +0200, Elyahou ITTAH wrote: If your proxy don't let ftp pass, use torify Please try to avoid doing this with large packages. Tor is a distributed net built by volunteers. Flooding it with large downloads is neither nice nor fast. I'd say, try http. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Re: Boot Gentoo to clean windows
On Wed, 2008-03-26 at 22:13 -0400, 7v5w7go9ub0o wrote: Mikie wrote: Does anyone know of a product (hopefully free) that can clean a Windows PC while booted on Gentoo? I guess I need a good malware tool that runs on Linux and cleans NTFS volumes. Thanks. FWIW, AntiVir, Bitdefender, and F-Prot run quite well on Linux, and each has BOTH Linux and Windows Trojan and virus signatures. So you can install these and scan your windows box, and then scan your Linux box/downloads for malware (e.g. openoffice files, media files, etc.). Add Dazuko, and you can get real-time scanning of your Linux box while downloading/compiling software. This is getting OT but I still want to ask: Is it really necessary to run an anti-virus on linux? I just want to hear some opinions on that topic because I thought security fixes for your software are the way to go for fighting virae on linux. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Creating an initrd for loading...
On Thu, 2008-03-27 at 14:31 -0400, Benjamen R. Meyer wrote: Florian Philipp wrote: On Thu, 2008-03-27 at 12:35 -0400, Benjamen R. Meyer wrote: My main question comes down to this: I am using the 'genkernel' package to build install the kernel and initrd image. Both show up in /boot. How much can I rely on genkernel to build a valid initrd image? Try genkernel menuconfig all to check for a valid kernel config before genkernel builds it. Refer to genkernel's man-page for further options. Yes, I did that. I ran genkernel, and generated it all. The initrd just doesn't seem to be working. How can I mount the initrd image to verify it has the modules, etc. and verify it is a valid image? There is a wiki-entry about it: http://gentoo-wiki.com/HOWTO_Initramfs Ok, so I used zcat to decompress the image, and then cpio to extract the data to a temporary folder. (The instructions on the wiki didn't work for some reason...complaints about finding cpio and zcat complaining about arguments). Any how... I snooped around the extracted files and was unable to find either the qla2xxx module (or the qla2200 modules, or any modules for that matter) or the qla2200 firmware. The firmware is on the hard drive (/dev/sda1 - /lib/firmward/qla2200_fw.bin), and so is the module - /lib/modules/2.6.24-gentoo-r3/kernel/drivers/scsi/qla2xxx/qla2xxx.ko. Is the initrd image invalid?? Or are they stored somehow in the files non-obviously? How could I easily add them to the initrd image? (This is really my first time playing with initrd images...) Thanks, Ben They are in lib/modules. I think it should work if you just copy the modules to their respective folder and add their names to the respective file in etc/modules. To create a initrd new initrd, use the following command: find . | cpio --quiet --dereference -o -H newc | gzip -9 /boot/initrd signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Wireless: Limit rate to strengthen connection?
On Thu, 2008-03-27 at 20:42 -0400, Richard Marzan wrote: On Wed, 2008-03-26 at 19:52 -0700, Grant wrote: I'm trying to strengthen a wireless connection that spans about 150 feet and has to go through about 5 walls. I bought two of these: http://www.newegg.com/Product/Product.aspx?Item=N82E16833164110 for either end of the connection, but I'm having trouble making it work well. I've noticed the connection will be perfect for a short time, but then disappear. When watching iwconfig during this process, it looks like the connection is good when on a low rate, but when it goes to 54 Mbps it falls apart. Should limiting the rate solve this problem? If so, how can I do that? I'm using hostapd on the AP and wpa_supplicant on the client. - Grant Grant, Yes, lowering the rate to a slower speed will help greatly. The lower rates use less compression and modulation... less complex wave forms better connects over long hauls. The antennas look very good, but what's driving them? I use and whole heartedly endorse SENAO products and have had very good luck with these models: ECB-3220 (400 mw) or 2611CB3 PLUS (200 mw) at: http://www.wlansolution.com. Either unit with the high gain antennas you have, will penetrate what you stated and probably go pretty high on the speed scale doing it too. I'm using a Netgear PCI adapter on the AP and an Edimax USB adapter on the client. Do you know how I can limit the rate? Should it be done on the Gentoo AP or the client? - Grant I use wireless-tools from portage. In it is iwconfig. A simple man iwconfig will show you what you need. Other thing you could do is configure the Wireless AP for a fixed rate... works for me. I found this: rate_wlan0=( 5.5M ) which isn't documented in net.wireless, but it doesn't seem to have any affect. I've tried it on the router and the client which uses wpa_supplicant. I still see the rate on the client fluctuate all the way up to 54 Mb/s in the output from iwconfig. The router's rate is always reported as 0 kb/s. - Grant It appears 'iwconfig wlan0 rate 11M' works (at least as far as the output from iwconfig is concerned) but how can I set /etc/conf.d/net to always use this rate? - Grant The best way I found to do this is to just write your own script and run it at the default runlevel. write a script called wireless-up save it in your /root directory. Then in /etc/conf.d/local.start add the script name to the list: /root/wireless-up. Make sure the script is executable with chmod 666 /root/wireless-up. Here is what mine looks like. I laugh when I read this thing that I call a script. I'll be upgrading this in the future but for now maybe someone has a better idea and/or script. #!/bin/bash DATE=`date +%m_%d_%Y` ifconfig wlan0 up || echo wlan up failed iwconfig wlan0 essid ACCESSPOINTNAME || echo setting essid failed iwconfig wlan0 mode Managed || echo setting mode to managed failed iwconfig wlan0 key restricted YOURKEYHERE || echo key failed verification dhclient wlan0 || echo wlan0 failed to receive dhcp request response # if [ $DATE -ne `date +%m_%d_%Y -r /tmp/.wireless.* rm /tmp/.wireless.* iwconfig /tmp/.wireless.$DATE exit 0 For custom scrips, you can add a preup, failup or postup-function to /etc/conf.d/net, there should be examples in the file. Something like pastup() { if [[ ${IFACE} = wlan0 ]]; then iwconfig [...] fi return 0 } should work. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Wireless: Limit rate to strengthen connection?
On Fri, 2008-03-28 at 19:02 +0100, Florian Philipp wrote: For custom scrips, you can add a preup, failup or postup-function to /etc/conf.d/net, there should be examples in the file. Something like pastup() { if [[ ${IFACE} = wlan0 ]]; then iwconfig [...] fi return 0 } should work. postup(), not pastup() signature.asc Description: This is a digitally signed message part
[gentoo-user] Cryptfs
Hi list! I think I have problems understanding the way /etc/conf.d/cryptfs works. My goal is to open a Luks-mapping for /var with a gpg-encrypted file on /boot and then open a mapping for /var/tmp with a plaintext file on /var. I thought it would work with the following settings: /etc/conf.d/cryptfs target=var source='/dev/mapper/vg-crypt_var' key='/boot/key.gpg:gpg' target=var_tmp source='/dev/mapper/vg-crypt_var_tmp' key='/var/lib/tmp_key' ___ /etc/fstab /dev/mapper/var /varreiserfs [...] /dev/mapper/var_tmp /var/tmpreiserfs [...] ___ I've read the warning in /etc/conf.d/cryptfs about /usr on a separate partition and followed their advice. However, the setup doesn't work. I'm not asked for the passphrase, the mappings are not created. What did I forget? Thanks in advance! Florian Philipp signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Cryptfs
On Sun, 2008-03-30 at 09:50 +0200, Dirk Heinrichs wrote: Am Samstag, 29. März 2008 schrieb Florian Philipp: My goal is to open a Luks-mapping for /var with a gpg-encrypted file on /boot and then open a mapping for /var/tmp with a plaintext file on /var. See below. But while we're at it, can anybody tell me what's the advantage of a gpg-encrypted keyfile over a keyfile generated from /dev/urandom? Keys for urandom work great for /tmp and swap but how should I use this for a partition which is supposed to keep its content between reboots? I thought it would work with the following settings: /etc/conf.d/cryptfs It's /etc/conf.d/dmcrypt nowadays. Interesting, why is there no hint that cryptfs is deprecated/obsolete? target=var source='/dev/mapper/vg-crypt_var' key='/boot/key.gpg:gpg' target=var_tmp source='/dev/mapper/vg-crypt_var_tmp' key='/var/lib/tmp_key' I've read the warning in /etc/conf.d/cryptfs about /usr on a separate partition and followed their advice. Which warning, btw.? Works just fine here. # Note when using gpg keys and /usr on a separate partition, you will # have to copy /usr/bin/gpg to /bin/gpg so that it will work properly # and ensure that gpg has been compiled statically. # See http://bugs.gentoo.org/90482 for more information. However, the setup doesn't work. I'm not asked for the passphrase, the mappings are not created. What did I forget? That the mappings are created all in one go before anything is mounted, so you can't put the keyfile for /var into /boot. The only thing that would work is to put the keyfile on the root fs, because that's the only one that is mounted when the mappings are created, like: target='c-usr' source='/dev/evms/usr' key='/etc/crypt/keyfile' Bye... Dirk Thanks, I'll try it. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Fetch Restriction: 1 package (1 unsatisfied)
On Mon, 2008-04-07 at 20:09 +0200, Justin wrote: Igor Mikushkin schrieb: Hello! I have a problem. emerge -av eclipse-sdk failed with this: [ebuild NSF ] dev-java/sun-jdk-1.4.2.17 USE=X alsa -doc -examples -jce -nsplugin -odbc 35,525 kB Why the fetch is restricted? And how to avoid this? Fetch it! Why it is fetch restricted? I don't know, but agree with you, that it s...! Thanks. Best Regards. Igor Mikushkin I wonder if this is a bug in the ebuild. sun-jdk used to be fetch-restricted but it isn't anymore (at least the new versions). If anyone knows if this change applies for the 1.4-branch too, please file a bug. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] mtune=k6-2 and a *small* upgrade
On Tue, 2008-04-08 at 15:43 +0100, Anthony Metcalf wrote: Alan McKinnon wrote: On Tuesday 08 April 2008, Anthony Metcalf wrote: � � But what else? Will mtune=k6-2 make executables that will run on an Athlon 64? Anyone tried this? Would I get to a point where I could make -e world and have a nice working system? k6 is 32 bit right? There's no sane upgrade path to amd64, looks like you are in for a reinstall Yes, 32bit, and Athlon 64s ran x86 last I heard :) The 64bit argument is one I will have to consider more deeply, but certainly in the near term, I won't gain anything from it, as I don't do *any* of the things the extended memory range is good for, and don't need more than 4GB RAM... Later when I upgrade to a phenom, and stick 1GB RAM per core in there, then yeah, I will probably recompile into 64bit, but that can be done in a chroot, and migrated fairly easily I would expect, so long as the system is running. It's not just the memory. Using 64bit gives your CPU some more registers thus (possibly) making him faster and it speeds up 64bit calculations (e.g. double precision floating point). I don't think you'll need this for your purposes but I just wanted to say: It's not just the 4 Gig. signature.asc Description: This is a digitally signed message part
[gentoo-user] Garbage in /tmp or /var/tmp
Hi list! Due to disk space restrictions I've decided to make /tmp a symlink to /var/tmp instead of reserving space for both. Maybe it would have been wiser to make /tmp a symlink to a dedicated directory in /var/tmp but now it's too late. Anyway, now I've found /var/tmp crowded with thousands of files with six letters long nonsensical names like 6mtgWC or bOaiA0 each 4.9 kB big. file identifies them as TrueType font data. They all belong to my user. Now I'm wondering where they come from, (maybe OOo, Epdfview or Acroread?), and if I can I safely remove them. By the way, does anyone know whether tracker writes to /tmp or /var/tmp? Thanks in advance! Florian Philipp signature.asc Description: This is a digitally signed message part
[gentoo-user] Bluetooth-Hotspot
Hi list! I could need some help. Long story (if you don't want to hear, scroll down): For six months a year I'm attending a university of cooperative education and although I pay 1000€ a year for infrastructure and stuff like that its services for students are a big joke. Especially its WLAN-hotspot isn't nearly up to the job. Because I have an UMTS-card my idea was to set up a personal area network (PAN) via bluetooth and act as a router to support my friends during the WLAN-outages. Most of the job is already done but I have problems setting up a DHCP-server and the network configuration. Because the virtual ethernet interface only exists when a connection is established, dhcpd doesn't start from the init-script and, although I haven't tried it yet, normal network config shouldn't fare any better. When the last client disconnects, all the configuration is gone and when someone reconnects, I have to call ifconfig bnep0 192.168.4.1 again. Short question: How do I automate the configuration of network interfaces and related deamons when the whole interface keeps appearing and disappearing out of the clear blue sky? I don't think ifplugd will be up to the job (haven't tried it though). Thanks in advance! Florian Philipp signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Gentoo Universal PPC ISO size?
On Wed, 2008-04-16 at 05:52 -0700, Mark Knecht wrote: Hi, I'm going to put Gentoo on my Mac Mini. No one ever uses the machine for anything. So much for OS X I suppose. Anyway, the 2008 beta, located here: http://gentoo.osuosl.org/releases/ppc/2008.0_beta1/ is 745MB which doesn't fit on 700MB CD-Rs I have. Are there CD-Rs larger than 700MB? I looked online anf everything seemed to be 700MB also. Or am I supposed to write this to a DVD even thought the Gentoo docs say it's a CD-R image? Thanks, Mark There are 800MB-models. Anyway, you can also try to burn more on a disk than it is supposed to. Don't ask me why it works, sometimes it does, sometimes you waste a CD-R... signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] How Bad Is This...?
On Wed, 2008-04-16 at 07:43 -0700, Bob Young wrote: I do have a second brand new 250G Seagate, is another clean install, with a *second* brand new drive the best alternative, or is some even lower level hardware (i.e. disk controller) the more likely culprit at this point? Thanks for listening Bob Young San Jose, CA. I suspect the cables. You could also blame the controller but bad cables are easier to test and easier to replace. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Encrypted backups under Gentoo
On Thu, 2008-04-17 at 17:54 +0200, Jan Seeger wrote: As per the subject: I use luks-crypt to encrypt my home directory. Of course I would like to make backups. These must, of course, also be encrypted. I have tried duplicity, but when many changes have occured, this is unbearably slow (being on a laptop). What would be the best solution to back up with encryption barring duplicity? Regards, Jan Seeger I personally use dar and gpg. Dar can be used to make incremental backups which should partly solve your speed problem. Alternatively you could use tar and gpg or cpio or whatever floats your boat. The alternative would be an encrypted filesystem and rdiff-backup or rsync. Optionally you could safe the key to the filesystem on your home partition or, if it doesn't need to be automated, in a gpg-encrypted file. Let me know if you are interested in any of these options so I can explain the details further (if you need support with that, that is). signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Encrypted backups under Gentoo
On Thu, 2008-04-17 at 20:05 +0200, Jan Seeger wrote: At Thu, 17 Apr 2008 19:16:54 +0200, Florian Philipp wrote: I personally use dar and gpg. Dar can be used to make incremental backups which should partly solve your speed problem. Alternatively you could use tar and gpg or cpio or whatever floats your boat. Duplicity also does incremental backups, but it's still slow. Using dar, would I have to manually (or per script) use gpg to encrypt the archives? I use GPG instead of DAR's build-in encryption because asymmetric encryption allows complete automation of the backup process, e.g. you don't have to store the key as a plaintext file or type it at every backup. And yes, you need a custom script. For incremental backups to work you would need to make an isolated catalogue (dar's nomenclature) in order for it to see which files and timestamps are already backuped without decrypting the archive. Tar uses a similar approach. The alternative would be an encrypted filesystem and rdiff-backup or rsync. Optionally you could safe the key to the filesystem on your home partition or, if it doesn't need to be automated, in a gpg-encrypted file. An encryted filesystem and rdiff-backup or similar was another option I though of. The problem is restoration: Would I easily be able to restore the backups from a freshly installed system? AFAIK cryptsetup is part of Gentoo's stage3. Most live-CD's I've tried had support for it, too. Commonly they also offer all common encryption modules for the kernel and GPG, so I wouldn't worry about this. Just make sure to keep your key and everything you need to decrypt off site. I myself store my GPG-key on a server, my parent's PC and my USB-stick. Since rdiff-backup stores all its internal data in a single directory, (.rdiff-backup, I think) you could still access the last snapshot of your system even without the program itself. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Re: Encrypted backups under Gentoo
On Fri, 2008-04-18 at 09:34 +0200, Remy Blank wrote: Neil Bothwick wrote: I'm currently using it with a local server. If I decide to use the backups on a remote server too, I'll probably stick to backing up to the local server and then using rsync. It makes sense to have a copy of the backup locally and only use the much slower option of restoring from a remote host when absolutely necessary. There are at least two drawbacks to using rsync for mirroring the local backup to a remote host: - If your local backup becomes corrupt, then so does your remote backup, except if you are quick enough to disable the rsync step. That's why I use rdiff-backup. - If you have disconnection during the rsync step (happened to me last night), your remote backup is temporarily corrupted. For the second problem, I'm toying with the idea of writing an rsync-like tool for mirroring one big file to a remote server, by first transmitting the changes and storing them separately on the remote machine, then performing the update on the big file after the connection has closed. Shouldn't rsync do this on its own? There is an option --inplace described with: This causes rsync not to create a new copy of the file and then move it into place. Instead rsync will overwrite the existing file, meaning that the rsync algorithm can't accomplish the full amount of network reduction it might be able to otherwise (since it does not yet try to sort data matches). One exception to this is if you combine the option with --backup, since rsync is smart enough to use the backup file as the basis file for the transfer. This option is useful for transfer of large files with block-based changes or appended data, and also on systems that are disk bound, not network bound. The option implies --partial (since an interrupted transfer does not delete the file), but conflicts with --partial-dir and --delay-updates. Prior to rsync 2.6.4 --inplace was also incompatible with --compare-dest and --link-dest. WARNING: The file's data will be in an inconsistent state during the transfer (and possibly afterward if the transfer gets interrupted), so you should not use this option to update files that are in use. Also note that rsync will be unable to update a file in-place that is not writable by the receiving user. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Re: Encrypted backups under Gentoo
On Fri, 2008-04-18 at 09:54 +0100, Neil Bothwick wrote: On Fri, 18 Apr 2008 10:44:05 +0200, Florian Philipp wrote: - If your local backup becomes corrupt, then so does your remote backup, except if you are quick enough to disable the rsync step. That's why I use rdiff-backup. rdiff-backup isn't really suitable for offsite backups because it uses no compression, making the space and bandwidth requirements double those of other methods. It also uses no encryption. It uses compression (gzip), but only for increments. signature.asc Description: This is a digitally signed message part
[gentoo-user] Best practices - flexible XServer
Hi list! I found my current XServer-setup very inflexible and would like to hear some tips for improving it. What I would like to have is a customizable plug'n'play setup which I can configure without restarting the XServer. Since I have a notebook, there are many occasions where I have to work with hardware I don't know and on other occasions I need to use my own peripheral devices as good as possible. So I need to customize my setup for the devices I use every day without breaking compatibility with unknown standard hardware. So, what's the best way for configuring 1. usage of my own Logitech mouse as well as typical USB-mice and my touchpad. 2. USB-keyboards as well as the build-in, all with custom multimedia and Fn-keys. 3. external displays (VGA, DVI, LCD and TV-Out, one at a time would be enough) with different aspects and resolutions with 3D-acceleration on my Intel i945. It should work with a minimum of additional software, no KDE, minimal GNOME, XFCE preferred. Thanks in advance! Florian Philipp signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] cpu use flags
On Sun, 2008-04-20 at 13:39 -0400, Allan Gottlieb wrote: I have an intel core2 duo (currently in 32 bit mode x86). Is there any reason why I should not set the following use flags. mmx, sse, sse2, ssse3 The last one would be a local flag for mplayer. proc/cpu indicates I have this functionality. flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm thanks, allan As a use flag, you should set all you can. They all enable the use of optimized code and the code I've seen from this was clever enough to choose the best if several were available. Please don't confuse this with the CFLAGS in your make.conf, there you should only choose the latest and this should be automatically applied by march=nocona (one exception are newer Athlons, because march=k8/athlon64/opteron/athlon-fx only activates SSE2 but not SSE3). By the way: Does anyone know why mmx2 (or was it mmxext?) isn't listed in cpuinfo for Core2 processors? Since it's a subset of SSE it should really be there, right? signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Bluetooth-Hotspot
On Tue, 2008-04-15 at 22:10 +0200, dexters84 wrote: [correcting top-posting] Florian Philipp pisze: Hi list! I could need some help. Long story (if you don't want to hear, scroll down): For six months a year I'm attending a university of cooperative education and although I pay 1000€ a year for infrastructure and stuff like that its services for students are a big joke. Especially its WLAN-hotspot isn't nearly up to the job. Because I have an UMTS-card my idea was to set up a personal area network (PAN) via bluetooth and act as a router to support my friends during the WLAN-outages. Most of the job is already done but I have problems setting up a DHCP-server and the network configuration. Because the virtual ethernet interface only exists when a connection is established, dhcpd doesn't start from the init-script and, although I haven't tried it yet, normal network config shouldn't fare any better. When the last client disconnects, all the configuration is gone and when someone reconnects, I have to call ifconfig bnep0 192.168.4.1 again. Short question: How do I automate the configuration of network interfaces and related deamons when the whole interface keeps appearing and disappearing out of the clear blue sky? I don't think ifplugd will be up to the job (haven't tried it though). Thanks in advance! Florian Philipp I've did this thing a while ago. Bluetooth router is a cool thing, unfortunatelly only in theory. To solve Your problem, look in /etc/bluetooth directory and check the manual of bluez - there are a couple of pre-up and post-up scritps that solve the problem. I did manage to get bt router working but my usb dongle was cousing a lot of problems - long story short - one dongle was not sufficient for more than two simultanous connections. Thanks, you pointed me in the right direction! The solution is really unobvious but described here: http://bluez.sourceforge.net/contrib/HOWTO-PAN signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] somebody using x11-drm?
On Thu, 2008-04-24 at 03:40 +0200, Sven Köhler wrote: Hi, is somebody using the package x11-base/x11-drm for intel's integrated graphics? I'd like to see the output of dmesg |grep -i drm to see, of i actually have some advanatge of using it. With the kernel's own 2.6.25, my dmesg|grep -i drm says: Apr 23 17:43:08 bert kernel: [drm] Initialized drm 1.1.0 20060810 Apr 23 17:43:08 bert kernel: [drm] Initialized i915 1.6.0 20060119 on minor 0 Yep, I'm using it (and the kernel module) and I get the same output of dmesg | grep drm If I remember correctly, only =x11-base/x11-drm-20071019 worked for me (at least there was a reason for me to put it in /etc/portage/package.keywords) signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] somebody using x11-drm?
On Thu, 2008-04-24 at 12:52 +0400, Andrew Gaydenko wrote: === On Thursday 24 April 2008, Florian Philipp wrote: === ... Yep, I'm using it (and the kernel module) and I get the same output of dmesg | grep drm If I remember correctly, only =x11-base/x11-drm-20071019 worked for me (at least there was a reason for me to put it in /etc/portage/package.keywords) How to determine drm works? 'dmesg | grep drm' out is: [drm] Initialized drm 1.1.0 20060810 [drm] Initialized i915 1.6.0 20060119 on minor 0 'lsmod | grep drm' out is: drm92648 3 i915 and 'lspci | grep -i vga' out is: 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) Andrew Let's say it that way: 3D-acceleration works and unmasking =x11-base/x11-drm-20071019 was part of the solution. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] somebody using x11-drm?
On Thu, 2008-04-24 at 14:15 +0400, Andrew Gaydenko wrote: === On Thursday 24 April 2008, Florian Philipp wrote: === On Thu, 2008-04-24 at 12:52 +0400, Andrew Gaydenko wrote: === On Thursday 24 April 2008, Florian Philipp wrote: === ... Yep, I'm using it (and the kernel module) and I get the same output of dmesg | grep drm If I remember correctly, only =x11-base/x11-drm-20071019 worked for me (at least there was a reason for me to put it in /etc/portage/package.keywords) How to determine drm works? 'dmesg | grep drm' out is: [drm] Initialized drm 1.1.0 20060810 [drm] Initialized i915 1.6.0 20060119 on minor 0 'lsmod | grep drm' out is: drm92648 3 i915 and 'lspci | grep -i vga' out is: 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) Andrew Let's say it that way: 3D-acceleration works and unmasking =x11-base/x11-drm-20071019 was part of the solution. Aha, 3D... I bother about 2D only. Does it mean I can bravely forget all these drm-related things? I'm not sure if 2D-acceleration depends on it as well. If you don't suffer from problems while scrolling, watching videos and so on, you might not need it. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] automatically set default alsa card
On Thu, 2008-04-24 at 18:37 -0300, luis jure wrote: on my laptop sometimes i have to use the internal sound card and sometimes an external usb card. is there a gentoo way to make alsa automatically change the default audio device to the usb card when it's connected and active, and back to the internal card when it's not? best, lj We had this several times in the past few months. You might want to look at the list's archive on http://www.gmane.org/ Log story short: Yes, it's possible but not very nice. Better use a sound daemon that was created for such purposes like Pulseaudio. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Rootkit Hunter release 1.3.2
On Sat, 2008-04-26 at 14:38 -0400, 7v5w7go9ub0o wrote: (Portage is a little dated at 1.2.9) http://sourceforge.net/projects/rkhunter/ Thanks for the info but this doesn't belong here. The proper thing to do would be to open a bug on http://bugs.gentoo.org and request a version bump. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Splitting .mov files
On Sat, 2008-04-26 at 19:56 +0100, Mick wrote: On Saturday 26 April 2008, Hal Martin wrote: I assume you want each piece of this file to be play-able? If you don't care about that, just use split to chop them up into your desired size and then use cat to reassemble them at the destination. *$ split –bytes=1m /path/to/large/file /path/to/output/file/prefix* 'man split' will also contain this information. Thanks! I didn't know about split. I am afraid that the split files have to be playable. I intend to upload them on a server for a MSWindows user to download and play. It has to be point click skill level at the receiving end. Hmm, theoretically it should be possible without re-encoding because video files contain I-frames which are encoded without reference to previous frames every x frames. With a media player you can only seek through a video from I-frame to I-frame (I think ...). If that assumption is right, it should be a relatively easy task. Something like this might work: mencoder -vf harddup -ovc copy -oac copy -of lavf -lavfopts format=mov -ss 1:30 -endpos 3:00 -o output.mov input.mov explanation: -vf harddup - don't skip duplicate frames -ovc copy; -oac copy - don't re-encode audio and video -of lavf - use lavf for muxing -lavfopts format=mov - mux into mov-format -ss 1:30 - skip the first 1 min + 30 sec -endpos 3:00 - end input at position 3:00 min of the original film -o output.mov - write to output.mov This command should result in a file containing a total of 3:00-1:30=1:30 min of film, however, seeking might be inaccurate (searches next or previous I-frame) so both videos might overlap for maybe a second or two or you could loose that amount time therefor tweaking might be necessary. Unfortunately, I couldn't test this because I have no suitable video file at hand. If it works, tell me please, if not, post your results, maybe I can look further into it. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Splitting .mov files
On Sat, 2008-04-26 at 18:43 -0300, luis jure wrote: El Sat, 26 Apr 2008 22:06:52 +0200 Florian Philipp [EMAIL PROTECTED] escribió: mencoder -vf harddup -ovc copy -oac copy -of lavf -lavfopts format=mov -ss 1:30 -endpos 3:00 -o output.mov input.mov explanation: [...] -ss 1:30 - skip the first 1 min + 30 sec -endpos 3:00 - end input at position 3:00 min of the original film -o output.mov - write to output.mov This command should result in a file containing a total of 3:00-1:30=1:30 min of film [...] i think this is not entirely correct. according to the manual, When used in conjunction with −ss option, −endpos time will shift forward by seconds specified with −ss. that means that if you want 90 seconds of film, you must use -endpos 90 or -endpos 1:30, independently from the time given in -ss. see the example from the man page: EXAMPLE: −endpos 56 Stop at 56 seconds. −endpos 01:10:00 Stop at 1 hour 10 minutes. −ss 10 −endpos 56 Stop at 1 minute 6 seconds. ^^ best, lj Thanks for the hint. Unfortunately, my method doesn't work anyway (I've found a file on which I could test it).The video gets some really ugly artifacts and seems to be damaged. Of course, your millage might vary if you use another encoding than me. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Re: Rootkit Hunter release 1.3.2
On Sat, 2008-04-26 at 18:46 -0400, 7v5w7go9ub0o wrote: Florian Philipp wrote: On Sat, 2008-04-26 at 14:38 -0400, 7v5w7go9ub0o wrote: (Portage is a little dated at 1.2.9) http://sourceforge.net/projects/rkhunter/ Thanks for the info but this doesn't belong here. The proper thing to do would be to open a bug on http://bugs.gentoo.org and request a version bump. Thanks for replying I've tried bugs (under admin, iirc), and always get notes telling me that my version info. post doesn't belong there, and deleting my submission. If there is a category for version bumps, I haven't figure it out. As I understand it, Admin is meant for administrative purposes of the Gentoo-project as a whole. I'd post it in Gentoo Linux. Most of the time, Gentoo Linux is the right place for version bumps. Since this is also security-related, you could argue for Gentoo Security but this is meant for Security holes and stuff like that. Of course, it would have been better if the bug wrangler had moved your bug to the right place or at least told you where to file it. If you think you've been treated wrong, feel free to file a bug in User Relations but I'd rather not. Jakub and the other bug wrangler might seem rude from time to time but they are doing quiet a hard job very well when trying to keep pace with the input of bugs. That's why I wouldn't take such things personally. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] using a HD with bad sectors
On Mon, 2008-05-05 at 11:14 +0800, Iain Buchanan wrote: Hi all, I have two 2.5in HD's, one 60Gb with a heap of bad sectors currently used in external Hd enclosure, and one 100Gb which seems in good condition, currently in my laptop. I'm upgrading my laptop, and I'd like to turn the old one into a myth frontend or something similar, so I want to put the 60Gb in it. I will then use the 100Gb in my external enclosure for travelling, backups, etc. The reason the 60Gb has bad sectors (I think) is because I dropped it (in it's enclosure). This was quite some time ago, and it doesn't seem to be dying any further, but I haven't done any comparisons on the bad sector count. I use nearly 100% of the space available, and regularly compare cksums, so if anything was deteriorating, I would know. The question is: should I use it at all (for any use, external HD or internal with operating system), or is it sufficient to let the fsck tool mark the bad sectors and just keep using it? Is there a way to monitor it's health in the external enclosure until I get my new laptop? Is counting the bad sectors enough? As I understand it, hard disks usually hide bad blocks from the OS as long as they can utilize spare blocks. That means that there might be a lot more bad blocks than you are aware of. Last week I had my own notebook hard disk (60Gig as well) dying on me: Bad blocks on a single partition, strange noises from time to time and the S.M.A.R.T offline self test aborting with read error before it even started. I found smartmontools (or anything that's just polling SMART) inappropriate. They still reported all is well although the self tests failed (and were logged as failed) and an overheating occurrence was logged (half a year ago the disk reached 53°C during normal operation for no apparent reason). Bad blocks were not registered at all! signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] installation cd for P1 P2
On Thu, 2008-05-08 at 17:03 +, James wrote: Hello, I have an assortment of p1, p2 and old amd K6 (586) class machines. Do the 2008.0 iso beta 2 cover this arch? If not, what is the recommend minimal cd to use to install these machines? James The P2 should be able to handle every live-CD or stage3 for x86 or i686. P1 and K6 need i586. I'm not entirely sure but I suppose x86 means anything from i486 upwards (Gentoo doesn't support i386 anymore). If you can't find a Gentoo live-CD for i586, you could try Damn Small Linux (DSL). signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Home page slowness
On Fri, 2008-05-09 at 16:19 -0700, [EMAIL PROTECTED] wrote: Hi, We plan to eval Gentoo. We await 2008 final. The comment is, Gentoo home page gives no clue about status. Convincing people that Gentoo is alive becomes tricky because the final is months late and little motion on the home page. That's about all most people inspect. So bottom line, impressions of Gentoo are going south even before we test. Some sort of progress bar or chart showing bugs squashed and new reported, maybe?? At least some kind of ticker showing expected final release date? Counting lines of code or something? Personally I don't care when final ships - just knowing present expectations or status with an easy home page glance is all I ask. Thanks. -- [EMAIL PROTECTED] -- http://www.fastmail.fm - Faster than the air-speed velocity of an unladen european swallow You might want to take a look at Gentoo's Bugzilla charts and statistics: http://bugs.gentoo.org/report.cgi For a start, have a look at Old Charts link and create statistics for new, resolved and fixed bugs. These numbers show clearly that Gentoo is very alive. The statistics here: http://www.gentoo-portage.com/Statistics also show that the number of packages doesn't stagnate as it would on a dying distro. signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] Home page slowness
On Sat, 10 May 2008 16:43:41 +0100 Mick [EMAIL PROTECTED] wrote: The OP has inadvertently given us some valuable feedback, which stands on its own and is irrelevant with the fact that he (like many other non-gentoo users) had mistaken Gentoo for yet-another-binary-distro. Having a user friendly website that also caters to the needs of newcomers to the Gentoo scene, requires that the key features and benefits of Gentoo are easily visible/accessible. Not many people will navigate to hidden Statistics pages to draw their own conclusions. These could be users that one day prove valuable contributors. I suggest that we spring clean the website and consider our new visitors needs at the same time (plus things like the much asked for Documentation search field?). ;-) Just my 2c's. Yep, gentoo.org really seems to have been created from devs and users for devs and users. There is nothing like a Features page or Why to choose Gentoo for newcomers. Heck, you have to search hard to even learn whether it is suitable for desktops or servers! Just compare ubuntu.com with gentoo.org, for example. The difference is striking. signature.asc Description: PGP signature
[gentoo-user] High Definition and OSS
Hi list! I'm thinking about buying a BlueRay- and HD-DVD-combo reader. Can I use GNU/Linux standard software (mplayer preferred) to watch HD-movies or does its copy protection stop me from using it? If so, are there any workarounds? Thanks in advance! Florian Philipp signature.asc Description: PGP signature
Re: [gentoo-user] High Definition and OSS
On Fri, 23 May 2008 16:12:16 -0400 (EDT) James [EMAIL PROTECTED] wrote: Hi list! I'm thinking about buying a BlueRay- and HD-DVD-combo reader. Can I use GNU/Linux standard software (mplayer preferred) to watch HD-movies or does its copy protection stop me from using it? If so, are there any workarounds? Thanks in advance! Florian Philipp I think you have to run software to decrypt the DVD on the fly and then have mplayer read the stream. The decryption keys to older bluray titles are available but newer ones might need to be decrypted (rip the movie to your harddrive). It is definitely not easy right now but a lot of titles are being cracked everyday. I would avoid bluray until it gets easier to play. Hmm, on which features depends the encryption? Would a Windows Media Player in Wine be able to play it or do I need an operating system supporting it, maybe in a virtual machine? Has anyone tried? Why would you buy an HD-DVD reader? That format is dead and there won't be any new titles. It's meant for my dad. He's a big Star Trek fan and afaik the new remastered Star Trek Original Series is HD-DVD-only. The price difference isn't that big, either. signature.asc Description: PGP signature
Re: [gentoo-user] s2ram - on resume : iwl3945 Kill Switch On
On Sat, 24 May 2008 12:47:35 -0300 Claudinei Matos [EMAIL PROTECTED] wrote: Hy guys, I'm giving suspend a try on my Acer Aspire and everything is working fine in both s2disk and s2ram, except from my wireless card Intel 3945ABG which refuse to work when system is resumed. After resuming my system I get those lines on dmesg: iwl3945: Error sending REPLY_RXON: time out after 500ms. iwl3945: Error setting new configuration (-110). iwl3945: WARNING: Requesting MAC access during RFKILL wakes up NIC iwl3945: MAC is in deep sleep! ACPI: PCI interrupt for device :05:00.0 disabled iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.1.17kds iwl3945: Copyright(c) 2003-2007 Intel Corporation ACPI: PCI Interrupt :05:00.0[A] - GSI 18 (level, low) - IRQ 18 PCI: Setting latency timer of device :05:00.0 to 64 iwl3945: Detected Intel PRO/Wireless 3945ABG Network Connection iwl3945: Radio Frequency Kill Switch is On: Kill switch must be turned off for wireless networking to work. And even if I do try to remove module and reinsert it, doesn't helps. My laptop has a button for enable/disable wireless network, but it just seen to works with the pre-installed windows vista which I already wiped out. I've already tried to use Fn + F2,a lot of combinations which all function keys, Wifi / Bluetooth keys, etc but nothing seems to re-enable wireless card and not even give a new dmesg line. Also tried to install net-wireless/rfswitch and net-wireless/fsam7400 as both are supposed to help with these software buttons problem but they both refused to compile against my 64 bits kernel. I don't have any other idea about how to solve this problem, so any advice will be appreciated. Thanks, Claudinei Matos Do you have the rfswitch subsystem in the kernel activated? You'll find this under Networking. signature.asc Description: PGP signature
Re: [gentoo-user] High Definition and OSS
On Sat, 24 May 2008 17:15:34 +0100 Stroller [EMAIL PROTECTED] wrote: On 24 May 2008, at 10:03, Florian Philipp wrote: ... I would avoid bluray until it gets easier to play. Hmm, on which features depends the encryption? Would a Windows Media Player in Wine be able to play it or do I need an operating system supporting it, maybe in a virtual machine? Has anyone tried? Neither of these methods would work at all. Read up on the Protected Video Path (PVP) at: http://www.computerworld.com/action/article.do? command=printArticleBasicarticleId=9005047 Basically you won't be able to use a legitimate player under Linux. You either rip it, use a DeCSS equivalent, or not at all. Why would you buy an HD-DVD reader? That format is dead and there won't be any new titles. It's meant for my dad. He's a big Star Trek fan and afaik the new remastered Star Trek Original Series is HD-DVD-only. It'll probably be available on BluRay soon enough, although HD-DVD might be a cheap way to buy it. But don't plan on being able to use those disks on set-top hi-def players in 5 years time. The price difference isn't that big, either. For the drive, no. It's probably worth paying for that extra feature. Stroller. Well, then it's a no-go. The display is a pre-HD-ready TV-set with a standard DVI-D-port and a fairly high but non-standard resolution so I don't expect it to work with a hardware player or PVP. Well, it seems like the only thing someone like me can do is to use [ahem] *alternative* ways to obtain a copy [1]. [1] Notice that this mail isn't signed in case someone doesn't understand the irony in the statement above. Of course I'm a good capitalistic citizen who'd give his life to protect the property of Warner Bros. and Disney... -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Java default Swing stile
Hi list! I've recently started both programming and using some Java applications (not that I would have a choice ...). Well, anyway, as it seems the default style for Swing is set to Metal, Java's own rather ugly and non-conforming variant. Is there a way to set this to GTK, QT or whatever I have here other than through the functionality in the programs themeselve? Or is it really the Java-VM who's dictating what's the default for a given platform (Windows/Linux)? Thanks in advance! Florian Philipp signature.asc Description: PGP signature
Re: [gentoo-user] Java default Swing stile
On Fri, 30 May 2008 22:04:55 +0200 Dirk Uys [EMAIL PROTECTED] wrote: On Fri, May 30, 2008 at 9:20 PM, Florian Philipp [EMAIL PROTECTED] wrote: Hi list! I've recently started both programming and using some Java applications (not that I would have a choice ...). Well, anyway, as it seems the default style for Swing is set to Metal, Java's own rather ugly and non-conforming variant. Is there a way to set this to GTK, QT or whatever I have here other than through the functionality in the programs themeselve? Or is it really the Java-VM who's dictating what's the default for a given platform (Windows/Linux)? Thanks in advance! Florian Philipp I think the JVM defaults to motif, it's supported on most platforms. I found this on the web: start-quote Yes, it is possible. In the ~/java/lib dir, create / edit a file with name swing.proprierties: Change the line: swing.defaultlaf=com.sun.java.swing.plaf.CURRENTLO OKANDFEEL to swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLo okAndFeel /end-quote Don't know if it works though? No, unfortunately not. I also tried ~/.java and /opt/sun-jdk-1.6.0.06/ but it's just ignored. Thanks anyway! signature.asc Description: PGP signature
Re: [gentoo-user] Which Java Runtime is best?
On Sun, 1 Jun 2008 10:24:57 -0400 Walter Dnes [EMAIL PROTECTED] wrote: I haven't seen an interesting site using Java for a long while. I recently stumbled across http://discover.itsc.uah.edu/amsutemps/ and decided it would be nice to actually view it. I haven't had Java on my machines for a long while. There are a few Java implementations available (Sun/Blackdown/IBM/BEA/Kaffe/others?), so my question is... - which one gives the least trouble setting up and running? Since I'm only going to be using it a few times a month, I'm not too worried about benchmarks, unless an implementation is excruciatingly slow. I only need a runtime. I don't know the programming language, so there's no need for a full-blown development environment. Take Sun JRE. In terms of headaches per month, the quasi standard implementation is unbeatable. signature.asc Description: PGP signature
Re: [gentoo-user] Which Java Runtime is best?
On Wed, 4 Jun 2008 15:12:51 +0300 ionut cucu [EMAIL PROTECTED] wrote: On Sun, 1 Jun 2008 18:37:28 +0200 Florian Philipp [EMAIL PROTECTED] wrote: On Sun, 1 Jun 2008 10:24:57 -0400 Walter Dnes [EMAIL PROTECTED] wrote: Take Sun JRE. In terms of headaches per month, the quasi standard implementation is unbeatable. Unless you have a 64 arch I'm on AMD64 and am programming java, too. Until now I haven't had a problem with SUN JDK (1.6). Of course, it doesn't supply a browser plugin, but I'm not aware of any JRE doing it at the moment and thanks to nspluginwrapper, there is no urgent need for it, either. signature.asc Description: PGP signature