Jump to content

mystified

Platinum
  • Posts

    5828
  • Joined

  • Last visited

Posts posted by mystified

  1. The only way I'd ever do a stage 3 install is if they no longer made stage 2 tarballs available. When I emerge system I emerge -u system so everything is up to date and I don't have to upgrade later. And I'd much rather compile my own kernel then use genkernel which I have tried and I think it sucks. Up until recently I used mm-sources and now I'm back to using vanilla-sources. To me it defeats the purpose of using gentoo if you use so many precompiled binaries. But then that's just me. :P

     

    Forgot to add that the only time I do an emerge -e system && emerge - e world is when I'm switching versions of gcc and want to recompile everything with the new gcc version. I know not everybody does this (tyme for example :P) but it is recommended by the gentoo docs.

  2. I echo everybody's sentiments. Congrats and welcome. I only use windows for work and have been using only linux for about 3 1/2 years. This box that I built I swore would never have windows on it. I have Gentoo, Mandriva, and LFS. And it rocks! :D

  3. Anytime you want to see if a printer is supported by Mandriva, go to the Mandriva Control Center, Hardware and add new hardware. Then select manually install it myself and it will give you a list of all printers that are supported in Mandriva. I just bought a HP and didn't even check the model. It's so well supported I just connected it, chose add new printer, it automatically found the printer had the driver and I was up and running in less than a minute.

  4. You have to run chmod u+x on the script and save it with a .pl extention, then run it using ./

     

    #!/usr/bin/perl -w 
    
    #this script search for frag on a fs 
    use strict; 
    
    #number of files 
    my $files = 0; 
    #number of fragment 
    my $fragments = 0; 
    #number of fragmented files 
    my $fragfiles = 0; 
    
    #search fs for all file 
    open (FILES, "find " . $ARGV[0] . " -xdev -type f |"); 
    
    while (defined (my $file = <FILES>)) { 
           #quote some chars in filename 
           $file =~ s/!/\\!/g; 
           $file =~ s/#/\\#/g; 
           $file =~ s/&/\\&/g; 
           $file =~ s/>/\\>/g; 
           $file =~ s/</\\</g; 
           $file =~ s/\$/\\\$/g; 
           $file =~ s/\(/\\\(/g; 
           $file =~ s/\)/\\\)/g; 
           $file =~ s/\|/\\\|/g; 
           $file =~ s/'/\\'/g; 
           $file =~ s/ /\\ /g; 
           #nb of fragment for the file 
           open (FRAG, "filefrag $file |"); 
           my $res = <FRAG>; 
           if ($res =~ m/.*:\s+(\d+) extents? found/) { 
                   my $fragment = $1; 
                   $fragments+=$fragment; 
                   if ($fragment > 1) { 
                           $fragfiles++; 
                   } 
                   $files++; 
    
           } else { 
                   print ("$res : not understand for $file.\n"); 
           } 
           close (FRAG); 
    } 
    close (FILES); 
    
    print ( $fragfiles / $files * 100 . "% non contiguous files, " . $fragments / $files . " average fragments.\n");

  5. Well, some guy on the Gentoo Forums wrote a perl script to detect fragmentation. This is what I got.

    gentoo scripts # ./frag.pl /
    1.84820798861254% non contiguous files, 1.04510542095924 average fragments.
    gentoo scripts # ./frag.pl /home
    0.988932063866227% non contiguous files, 2.90432957035782 average fragments.

     

    The / partition was reformatted about two months ago when I reinstalled.

    /home is about 2 1/2 years old.

     

    If anybody wants the script let me know.

  6. I've been reading on the Gentoo Forums about Reiser. There's a lot of contention that it's a bad file system because it fragments quickly. The only thing I've read that you can do is add noatime to /etc/fstab and periodically move everything to a spare partition and reformat. They say there is no way to check reiser for fragmentation. They are saying that the initial speed you get from using reiser is quickly lost because of fragmentation. I've been using reiser for years and never noticed this and never had a problem. Thoughts?

  7. I've just installed Azureus for Mandriva 2006 and I'm having a connection problem. I've set port forwarding for port 6881 like it recommends. But I'm getting the following error:

     

    	Connection Error (IllegalArgumentException:protocol = http host = null)

     

    I've never used Azureus before so I have no idea how to fix this problem.

     

    Suggestions?

     

    Thanks

×
×
  • Create New...