[gentoo-user] AMI MegaRAID 428 Ultra SCSI RAID Controller

2005-07-06 Thread Colin
It's not being detected under the LiveCD.  I booted with doscsi, but I 
don't see /dev/sda.  In addition, lspci tells me this:


:00:11.0 Unknown mass storage controller: American Megatrends Inc. 
MegaRAID 428 Ultra RAID Controller (rev 04)


What do I do?

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My winmodem works on linux-on-laptops.com

2005-07-07 Thread Colin

Grant wrote:


I'm not sure here (but someone will point if I'm mistaken), but ppp
init script is intend to bring up adsl based connections, while you
need a dialler to connect dial-up, back in the days I had dial-up I
used minicom, and later kppp to handle this... In fact, you need to
set your device (usually /dev/modem) and use a program to dial using
that modem, this will create the ppp0 interface for you, and also
(most of them) will set is as the default route. Any server with
dial-up has configurations, and that's what your ISP have in their
script, you just find them out and put the same config at your dialer.
   



Thanks Daniel, I'm really strung out here.  I do have the net.ppp0
interface now.  Maybe I just need to emerge and utilize minicom?  How
can I do that when all I have is a Gentoo system that can't get online
and an XP system that can dial up?


There are two options:

1.  Network the two machines (via Ethernet, FireWire...) and set up 
Internet Connection Sharing on XP.  Tell the Gentoo box to use the XP 
box as its gateway and DNS server.  Make sure both machines use the IP 
range 192.168.0.x/255.255.255.0, the XP one being 192.168.0.1.


2.  Sneaker net--use emerge -fpu whatever 2> 
/mnt/removablemedia/download.txt, and then bring download.txt to Windows 
and use the Windows version of wget to get the files that you need.  
Then copy them over to the Gentoo box.


I wrote a Wiki article on networkless installs.  You might find that 
helpful.

http://www.gentoo-wiki.com/HOWTO_Networkless_stage1_Install

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is it possible to mirror 2 drives, that are currently striped in LVM2?

2005-07-07 Thread Colin

Ow Mun Heng wrote:


On Thu, 2005-07-07 at 17:50 +0200, Jakub Krajcovic wrote:
 


Hi Guys,

the subject says it all, but i'll go into more detail now, if anyone 
would be interested in helping. I currently have my system installed on 
2 40GB IDE drives. They are in an LVM volumegroup, and the 2 drives are 
striped. What i need to do is transform this "striped disk cluster" 
into a mirror. (preferably using the most cheapest and painless 
method). I kind of know my way around LVM, so i don't really need a 
_totally_ detailed answer, but i need to know, if this that i am trying 
to accomplish is

a) possible
b) what are the steps that i should follow in order to do this?

I was thinking like this: use pvmove or something to move all of the 
pv's from one disk to the other, then reduce the volumegroup (remove 
the disk eg physical volume from it) add it as a mirror...
   



Seems to me the best way to do this would be a third Disk. Is this an
option??

Personally, I'd just get two more disks and turn it into a RAID 0+1 
setup.  If you've got the space, the money and the Molex connectors, I'd 
go for it.


Or just get one more disk, backup your data, create a three-drive RAID 5 
volume and then copy it all back.


RAID 0+1 would be easier to setup, require much less overhead and have 
more fault-tolerance than a three-disk RAID 5 setup.  However, it's more 
expensive (you need two more disks instead of one more) and it's not as 
cool-sounding as "RAID 5."  :-P


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] AMI MegaRAID 428 Ultra SCSI RAID Controller

2005-07-07 Thread Colin

Daniel Drake wrote:


Colin wrote:
 


It's not being detected under the LiveCD.  I booted with doscsi, but I
don't see /dev/sda.  In addition, lspci tells me this:

:00:11.0 Unknown mass storage controller: American Megatrends Inc.
MegaRAID 428 Ultra RAID Controller (rev 04)

What do I do?
   



We should be supporting this hardware as of our 2005.1 release.

Any chance you could post the "lspci -n" output?

The system's online right now, but once it finishes installing, I'll 
shut it down and put the card back in.  It might take a few days at this 
rate (stage1 on a Pentium II, no distcc), but you'll get your lspci -n.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] My winmodem works on linux-on-laptops.com

2005-07-08 Thread Colin

Grant wrote:


I'm not sure here (but someone will point if I'm mistaken), but ppp
init script is intend to bring up adsl based connections, while you
need a dialler to connect dial-up, back in the days I had dial-up I
used minicom, and later kppp to handle this... In fact, you need to
set your device (usually /dev/modem) and use a program to dial using
that modem, this will create the ppp0 interface for you, and also
(most of them) will set is as the default route. Any server with
dial-up has configurations, and that's what your ISP have in their
script, you just find them out and put the same config at your dialer.


   


Thanks Daniel, I'm really strung out here.  I do have the net.ppp0
interface now.  Maybe I just need to emerge and utilize minicom?  How
can I do that when all I have is a Gentoo system that can't get online
and an XP system that can dial up?

 


There are two options:

1.  Network the two machines (via Ethernet, FireWire...) and set up
Internet Connection Sharing on XP.  Tell the Gentoo box to use the XP
box as its gateway and DNS server.  Make sure both machines use the IP
range 192.168.0.x/255.255.255.0, the XP one being 192.168.0.1.

2.  Sneaker net--use emerge -fpu whatever 2>
/mnt/removablemedia/download.txt, and then bring download.txt to Windows
and use the Windows version of wget to get the files that you need.
Then copy them over to the Gentoo box.

I wrote a Wiki article on networkless installs.  You might find that
helpful.
http://www.gentoo-wiki.com/HOWTO_Networkless_stage1_Install

--
Colin
   



Ok, thanks Colin.  I'm ready to do this to get minicom but are you
sure that is the missing piece of my puzzle?  I've asked about getting
dial-up working before and slmodem and ppp were the only mentioned
emerges.  /etc/conf.d/net.ppp0 sure looks like it's a configuration
file for normal dial-up connections.  It asks for a phone number to
dial and everything.  Please confirm that I really need minicom and I
will dig into that.

I don't know about that.  I've never used dial-up under Linux.  But if 
things aren't working now, minicom might fix it.


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] PHP 5 and MySQL 5

2005-07-08 Thread Colin

Are these in Portage?  Masked versions are fine.

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Can't mount a fat32 partition

2005-07-13 Thread Colin

aabb wrote:


Hi,

Here's a strange one...

I use 2 partitions for Windows 98, hda1 and hda5. I set both up as type
"c" (fat32 LBA) during my gentoo installation, using fdisk. The entries
in /etc/fstab are almost identical:

/dev/hda1/mnt/win_cvfatumask=0,noexec  0 0
/dev/hda5/mnt/win_dvfatumask=0,noexec  0 0

Any of the mask entries correspond to octal permission;  therefore, they 
need to be three-digit numbers.  I recommend 022 (rwxr-xr-x), but I 
assume you want 000 (rwxrwxrwx).  Don't forget to set uid and gid or 
else only root will have access to the files!


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Seeking recommdations for multi-card reader.

2005-07-13 Thread Colin

John J. Foster wrote:


Good evening all. My San Disk ImageMate dual reader said goodbye to our
family today. She should have left a few months ago.

So, what I'm searching for is a replacement reader. I saw some good
reviews for ImageMate® 8-in-1 Reader/Writer. I don't really need all
eight, but so what. What I'd really like, though, is the ability plug
and unplug cards while the reader remains attached via usb2 or firewire.
My old San Disk gave me problems for years. Sometimes no connection.
Sometimes inserted card could be any of sdb[1-15]. Udev helped with this
a little, but basically the reader was a POS (for you wtf users). I'm
looking for something that will react the same every time.

Any recommendations?

I've got an AFT PRO-9.  It's a 9-in-1 connects via USB 2.0 
internally/externally and has Secure Digital, Multimedia Card, 
SmartMedia, xDigital, Memory Stick, Memory Stick Pro, CompactFlash, 
MicroDrive and a 4-pin FireWire 400 port (pass-through, you need a 
FireWire port somewhere on your computer).


I've only tested it with an SD card, and it seems to work perfectly.

To use this, you need to compile in SCSI support (the same you need for 
USB Mass Storage) and make sure you select the "Probe all LUN's" option.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Howto speed up compilations

2005-07-18 Thread Colin

Neil Bothwick wrote:


On Mon, 18 Jul 2005 14:14:41 -0300, Bruno Lustosa wrote:

 


A few weeks ago I read in one of the newgroups a way to greatly
decrease compilation times. The author noted that this was
particularly noticable when working with something like OO. The
general jist of it was to create temporary file system in memory and
mount your portage tmpdir there. For the life of me, I can't find
that thread anymore. Does anyone do something similar to this? Are
there noticable gains to be had. I have an Athlon 2800XP and 1 GB ram.
 


I am not sure if this will give a tremendous speedup. Granted, the
source files won't need to be read from disk, which is an advantage,
however, the file reading time should be very small compared to the
time it takes for the compiler to translate the source code into
machine code.
Also, there's the ammount of memory you will lose, memory that could
be used by the compiler. In some cases, gcc can eat very big chunks of
memory.
   



Not to mention the OOo ebuild needing around 3GB of space in TMPDIR, so
this approach would only result in the emerge failing quicker.
 

Not if you've got a machine with more than 3 GB of memory.  A dual-proc 
Power Mac G5 can handle up to 8 GB of physical RAM.  If you did this 
trick on one of those, you might see some serious improvement!  But with 
most PC's being limited (by the x86 and motherboard designs) to 2 GB of 
physical RAM, it wouldn't work with large apps.


A good suggestion would be to grab some old computers, Gentoo-ize them, 
network them over 100BaseTX or Gigabit and make a little distcc farm.  
Plus, you can charge people if they want to come over and rent your 
computing power.  (Virginia Tech does that with their "System X," 1,100 
dual-2.3GHz-processor XServe G5's.)  :-)

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] P4P800 - Intel ICH5R - data recovery?

2005-07-19 Thread Colin


On Jul 19, 2005, at 5:16 PM, José Pedro Saraiva wrote:


Hi,

I know this isn't a gentoo related question so forgive me, but I trust
on the gentoo mailing list to give me a hand...

I have a Asus P4P800 motherboard that recently became useless (plain
broken, don't know why, no boot, no BIOS, nothing). I had 2x120 GB
SATA hard drives connected with RAID 0 using the intel ICH5R chipset
included in the board.

Is my data completely lost, now that the motherboard is broken? Is
there a way to recover it? If  I install another motherboard with the
same RAID chipset will my data be recoverable or is it a lost cause?


Didn't make a backup, did you?  That's OK, neither do I. ^_^U

First, see if the motherboard can be saved.  If the BIOS is fried,  
usually the boot block will kick in.  Drop in a floppy drive  
(optionally, an ISA video card as well; strangely, an AGP video card  
worked with my LANParty's BIOS).  Google your BIOS maker's name and  
the words "boot block" for specific directions on what to put on a  
floppy disk.  Then, start your computer with the floppy in the A:  
drive, and if the boot block survived (it's usually not updated when  
flashing the BIOS), it'll automatically reflash itself from the  
floppy and then restart, loading the new BIOS and hopefully saving  
your ASCII.  :-)


Hopefully your RAID BIOS (and CMOS) is a separate chip from the  
system BIOS that shouldn't have been affected by the above ordeal.   
If it isn't working, then read on.


If you remember your stripe size, then you should be able to plug  
your drives into any ICH5R-based motherboard and get your data back.   
Theoretically, you could plug your drives into any RAID whose BIOS  
does not write to the disks when creating an array and then recreate  
the array in the BIOS with the same stripe size.  I don't know if  
software RAID can rebuild your array, but that seems like your best  
bet, lest you have a friend with a lot of SATA RAID controllers (s) 
he's willing to lend out.


If all else fails and your data is priceless, grab a couple grand and  
look into professional data recovery, because unless you can find a  
super-geek, that will probably be your best bet.

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] P4P800 - Intel ICH5R - data recovery?

2005-07-19 Thread Colin


On Jul 19, 2005, at 7:37 PM, José Pedro Saraiva wrote:


Thanks for the reply Colin =)



If you remember your stripe size, then you should be able to plug
your drives into any ICH5R-based motherboard and get your data back.
Theoretically, you could plug your drives into any RAID whose BIOS
does not write to the disks when creating an array and then recreate
the array in the BIOS with the same stripe size.  I don't know if
software RAID can rebuild your array, but that seems like your best
bet, lest you have a friend with a lot of SATA RAID controllers (s)
he's willing to lend out.



I already ordered another ICH5R motherboard (similar to my P4P800 but
a new model, since my old one is not available anymore) to try that
out. I'm almost sure that my stripe size is 64KB (default). If so,
plugging my hard drives into the new board and creating a new array
with the same stripe size will give me access to my data? Or is there
the risk of loosing it all? Do you know if the ICH5R writes to the
disks when creating the array?


No idea.  Google for some technical documents or fire off an email to  
Asus, Intel or your RAID controller's manufacturer.


Recreating an array could be risky.  SCSI drives usually have a write- 
protect jumper, but AFAIK, there's no way to implement that with  
SATA.  You could try pulling the data or power cable after  
configuring the array but before building it.  SATA should be hot- 
swappable if you're using the SATA power plug, so there probably  
won't be any damage to your disk or motherboard.  Hopefully that will  
write to the RAID BIOS but not the disk.  I wouldn't recommend doing  
this, though, but hey, you're not me. :-)

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Tape to CD conversion advice needed

2005-07-23 Thread Colin


On Jul 23, 2005, at 3:34 AM, Dave S wrote:


Hi all,

I need some advice, I need to convert some talks at my local group  
from
tape to CD. I have a mike input on my audio card so connecting the  
audio

should not be a problem.


I believe that the mic input is handled differently than the line  
input (automatic gain control, decibel boosts, etc.).  Use your  
card's line input jack instead.  It should be right next to the mic  
jack.  In most color schemes, it's usually the blue one (red=mic,  
green=out);  read the labels if you're not sure.


What file formats do standard CD players play ? I would guess mp3 but
there do not appear to be any mp3 encoders for linux, ogg would be  
great

but I doubt that it would play.


Standard CD players play waveform audio (WAV), but I believe it needs  
to be aligned to the CD block boundaries.  However, you'll need to  
burn it as an audio CD, not a data CD, otherwise it will be  
unreadable to the CD player.  Most CD players nowadays can play back  
MP3 data CD's but there's no standard, not even a de facto one, for  
this.


Dare I say it?  Most people do have computers, so if your local group  
doesn't make "Learn [subject] While Driving" tapes, it may be cheaper  
and easier to simply forgo the physical medium and stick them on a  
web server for downloading/streaming/podcasting.  MP3's of people  
talking don't require the higher bitrates that music does, so you can  
drop the bitrate and change it to mono (one-channel audio) to save  
some server space/bandwidth.




Can anyone suggest an application to get the files from the tape &
change them into said format ? (Simple is good, I dont need a  
recording

studio :))


Anything that can listen to your card's line-in will do.  I haven't  
done it on Linux, but on Windows/Mac OS X, pretty much any program  
will do it.  As for burning, most programs that can burn an audio CD  
take MP3/WAV/OGG/WMA/AAC files (your choices may vary depending on  
the app) as input and do the conversion themselves behind the scenes  
before burning.

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Recommend me a good PCMCIA wireless network card

2005-07-24 Thread Colin


On Jul 24, 2005, at 2:54 AM, Greg Bur wrote:


On 7/23/05, Ian K <[EMAIL PROTECTED]> wrote:


Hi there,
I have an older laptop that I want to add to my network,
(its a 802.11B one) and I was wondering what brands/models
would work the best under Linux. Im fairly flexible, and would
really not like to tinker with too many drivers. Any good ideas?
Thanks!



I've always had good luck with cards that use the Orinoco chipset and
the only time I've had to tinder with drivers was when I wanted to get
Kismet working with the card.  You should be able to pick one up for
under $50.  Check out http://www.proxim.com or
http://www.buffalotech.com for more details.


Just remember, if the laptop isn't going too far, a good length of Ye  
Olde Cat5e is a much cheaper solution.  That being said...



Yeah, I picked up a great Orinoco (branded as Enterasys) at  
Rokland.com last month for roughly $50.  Atheros chipset, 802.11a/ 
SuperA/b/b+/g/SuperG... very nice.  It works in Windows (with the  
driver CD), Mac OS X (with the shareware OrangeWare driver--totally  
worth the $15 shareware fee) and, naturally, Linux (with MADWIFI).   
It picks up Channels 1 through 14, and can put out up to 100 mW of  
power (40 mW on A networks).


There's no antenna jack, though, but I hear most PCMCIA Orinocoes can  
be modded to include some kind of external jack;  I'm not that  
desperate for power, but with dial-up at home, I might do that mod  
and build a yagi antenna, get in my car, and... well, you get the  
idea. :-)


Still haven't had any luck with KisMAC (the OS X port of Kismet),  
though.  It finds my card but doesn't detect my wireless network...  
I'll figure it out eventually.

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Recommend me a good PCMCIA wireless network card

2005-07-24 Thread Colin


On Jul 24, 2005, at 3:56 AM, Richard Fish wrote:


Ian K wrote:


My other laptop has a nice atheros wireless card, very painless to  
set

up. I dont know what
chipsets are on what cards, so perhaps you could give me a model name
and brand?




Unfortunately, neither does anybody else on this list.  This is  
because manufacturers have a habit of changing chipsets without  
changing model numbers.  So lot #1234 can be atheros, while #1235  
can be intersil, #1236 can be, well you get the picture.


The best is to buy from a store with a liberal return/exchange  
policy...of course it always helps if it says "supports linux" on  
the box!


Yeah, if you've listened to this list, you'll know some chipsets are  
good, and some are just plain bad.  Bad chipsets (Broadcom, PrismGT,  
ACX100, ACX111) are not supported well if at all under Linux.  (Hell,  
even Windows choked on a Windows-only ACX111 card.)  You may have  
success with the Windows drivers and NDISwrapper, but more than  
likely this is one for shipping back to your e-tailer.  These  
chipsets being "el cheapo," they pop up in a lot of low-end consumer  
wireless devices.   Good chipsets (Atheros, Atmel, Intersil, Orinoco,  
Prism, Prism2) are natively supported by Linux, and most of them can  
be loaded from the LiveCD with the modprobe command.  The rest are  
usually supported by building in support when you build the kernel.   
Sadly, these are more expensive because all the hardware is on the  
card, and nothing is emulated via a driver (remember Winmodems vs.  
hardware modems?  This is it all over again.)  But you do get what  
you pay for, as a lot of enterprise-level solutions have these  
chipsets, and they boast excellent reliability, compatibility and range.


Any other chipset, just Google.  Some manufacturers stick to one  
chipset (like Apple does Broadcom).  However, most manufacturers  
often change chipsets during production without warning, keeping the  
same model number and just tacking on a "Revision B," often written  
on the card only but most do write it on the box in tiny print.  Just  
wait until no one's looking and open up the box and check :-)


As for "supports Linux," there are far too many distros, drivers,  
hacks and configurations to test with.  Maybe they tested Debian with  
MADWIFI?  Slackware with NDISwrapper... and which Windows driver?  If  
it says Linux compatible, don't take it as a green light.  Take it as  
a yield sign instead--look first, then go.


If you've got a laptop, bring it and a LiveCD to the store (if you  
don't buy it online) and give it a whirl... with permission, of  
course.  And slip the boy at Best Buy a couple Alexander Hamiltons  
($10 bills, in case you forgot your U.S. history) for making him put  
up with you testing a million different cards and not finding  
anything that works. :-P

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Gentoo not detecting full amount of memory

2005-07-24 Thread Colin


On Jul 24, 2005, at 3:46 PM, Mark Shields wrote:


I recently got my home server back up and running after the power
supply went out.  I put some more memory in it, and it shows up fine
as 1048576 KB (1 gigabyte).  Gentoo, however, is only showing it as
904336 KB (883.14 MB) .  I'm curious as to why it's not detecting
140.86 MB.  Originally the server had a 512mb stick of generic PC2700
memory; I put 2 sticks of 256 MB (Mushkin, PC3200).  The FSB is set to
133 mhz and cpu/mem ratio is set 1:1 (Athlon XP 2400+ for the
processor).  It's running in a dual channel memory config.

[EMAIL PROTECTED] ~ $ cat /proc/meminfo | grep Mem
MemTotal:   904336 kB
MemFree: 91224 kB

Any ideas?


Hm, now this is a toughie.  Barring any BIOS misconfigurations, I'd  
say that you might have a defective stick of RAM.  Try booting  
another OS and see if it can detect the full gigabyte;  if it happens  
then it's probably a hardware problem, not a Gentoo issue.

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Gentoo not detecting full amount of memory

2005-07-24 Thread Colin


On Jul 24, 2005, at 5:04 PM, Richard Fish wrote:


Mark Shields wrote:



[EMAIL PROTECTED] ~ $ cat /proc/meminfo | grep Mem
MemTotal:  1034284 kB
MemFree:953172 kB


Thanks for the tip.  But strangely, 12mb is still missing.




I am pretty sure this is actually correct, and depends upon your  
BIOS options.  All of those "cache this or that ROM into memory"  
options eat some some ram.  You can disable those to try and get  
some more memory, but your system performance will probably suffer  
overall.


Modern operating system like Linux 2.6 and WinXP bypass the BIOS  
after the initial bootup, so caching the system/video BIOSes is just  
a waste of memory if you're using Gentoo.  Caching video RAM was nice  
back in the days of ISA video cards, but with PCI/AGP/PCI-X video  
cards, shut off that option.

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Dual Core CPUs & SATA HD

2005-07-30 Thread Colin


On Jul 30, 2005, at 5:40 PM, Dhruba Bandopadhyay wrote:


Hi,

I'm just about to install gentoo on a dual core Intel CPU machine with
a SATA HD.  So, essentially, I have two questions.  What CFLAGS are
recommended for a dual core CPU and what precautions must one take to
have the SATA HD recognised by the install media?  I don't think the
CPU is 64 bit in case you need to know.


A multi-core single-CPU system (yours) is virtually identical to a  
single-core multi-CPU system.  I would use MAKEOPTS="-j2" or higher  
(basically, twice what you would do for a single-processor system) in  
your make.conf to take advantage of all that parallel processing  
power.  Use the normal CFLAGS and CXXFLAGS, there aren't any special  
options for multiprocessor systems there.  When you compile your  
kernel, be SURE to include SMP (symmetric multi-processing) support  
to let the kernel use both cores.


SATA hard drives, if supported natively by the southbridge, require  
no extra drivers.  Since your motherboard must be relatively new,  
this is your case.  If they aren't supported natively, one of the  
various sata_* modules will autoload and handle it.  They might be  
enumerated as SCSI devices, though (/dev/sd* rather than /dev/hd*),  
but I believe this is perfectly normal.

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Testing how secure a server is...

2005-08-02 Thread Colin


On Aug 2, 2005, at 7:50 PM, Raphael Melo de Oliveira Bastos Sales wrote:


Hi there,

   I was wondering what tools should I use to detect security flaws to
my server and a few tips on how to use them. What are the most common
forms of attack and how do I avoid being attacked by one of them?

   The services avaliable are only Apache - SSL and SSH. I've
installed an firewall, iptables and firestarter to control it, and
blocked all ports except 443 and 8080, where the SSH is listening.
Apache has PHP installed as a module.



Want to know how secure your server is?  Try and hack it!

A good port scanner like nmap should be a basic check of your  
firewall.  I would also set nmap (if it can do this) to perform a SYN  
flood as it scans, to see if your server can withstand that basic DoS  
attack.  (Adding --syn to your TCP rules in iptables can prevent SYN  
flooding when used with SYN cookies.)  When you break in, find out  
why it worked and how it can be patched.


Some things I would advise (I'm currently working on a server at the  
moment as well):
 - If the server is really important (or if you're paranoid), use  
the hardened-sources with PIE/SSP to prevent badly-written programs  
from arbitrarily executing code.
 - Enable SYN flood protection.  There's a kernel option somewhere  
about IPv4 SYN cookies, enable that, and couple it with --syn  
attached to your TCP rules in iptables.  It's a very popular denial- 
of-service attack.
 - Whenever you need to login or authenticate yourself, make the  
system delay five seconds after a bad password is entered.  This will  
make a brute-force attack much much slower (0.2 passwords/sec as  
opposed to millions passwords/sec without a delay, depending on your  
server's speed).
 - Make sure iptables is set to deny all traffic that isn't  
explicitly allowed.

 - Turn off any services you don't need.
 - Read through your logs every now and then.  I highly advise  
having the server burn them to a CD/floppy every now and then for an  
instant backup.  Get a log reader/parser, too.


Naturally, hide the server in the attic or basement.  Chain it to  
something, or if it has a security slot, use a security cable.  Put a  
lock on the case door.  Unplug your floppy/CD drives if you're not  
using them.  As of this writing, there is no kernel option to keep  
your computer or its innards from walking away. :-)

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Testing how secure a server is...

2005-08-02 Thread Colin


On Aug 2, 2005, at 9:18 PM, Raphael Melo de Oliveira Bastos Sales wrote:


Hey Colin,

I was looking at the /etc/ssh/sshd_config file and found these:

LoginGraceTime 600
MaxAuthTries 6

Is the first one what you meant?

The second seems like an attempt to avoid brute force login.



Neither is what I was thinking of, but they're quite similar.   
LoginGraceTime means if nobody logged in within 10 minutes of the  
connection being opened, then it will be closed.  I don't know  
exactly what MaxAuthTries does, but I imagine after the sixth invalid  
login, the connection would  be closed.


I found this site, check it out.  It's for Red Hat (Gentoo is  
better!), but it's the same SSHd:

http://www.faqs.org/docs/securing/chap15sec122.html



Also, does Grub need any kind of password protection? I don't know if
it was Grub or Lilo that allowed root access unless password
protected. Am I mistaken?


GRUB does have some password protection, but it is optional and only  
needed IIRC if you want to boot something other than the default entry.



As you can see, I still have a lot to learn. ;)


Me too.  I'm waiting for some more hardware to arrive before I  
connect this server to the networks (it's primarily a NAT gateway  
with iptables, but also *for the LAN, not the Internet* runs Apache,  
ProFTPd, SSHd and rsyncd for Portage).

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Correct CHOST setting for Intel(R) Pentium(R) 4 CPU 1.70GHz stepping 02

2005-08-03 Thread Colin


On Aug 4, 2005, at 12:13 AM, Richard Watson wrote:

Hi - I'm installing Gentoo on a Intel(R) Pentium(R) 4 CPU 1.70GHz  
stepping
02. Can anyone advise me as to the correct CHOST setting. I'm a bit  
confused

on this ..


Pentium II and newer processors (and other i686-compatibles) simply  
use "i686-pc-linux-gnu".  Why this is, I don't know exactly;  it  
deals with the processor's architecture and how it compiles code.


Also, set your CFLAGS to "-O2 -march=pentium4 -mfpmath=sse,387 -pipe - 
fomit-frame-pointer" for a good mix of speed and stability.

--
Colin
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Correct CHOST setting for Intel(R) Pentium(R) 4 CPU 1.70GHz stepping 02

2005-08-03 Thread Colin


On Aug 4, 2005, at 1:29 AM, Richard Watson wrote:


Thanks Colin, I've (unfortunately) already compiled my system. Can I
re-compile everything with:

# emerge --update --ask --deep --verbose --newuse --tree world

The reason I'm looking into this is Kino keeps crashing, as do  
other data

intensive, high CPU applications.


This is definitely a case of flaky hardware or insufficient cooling.   
Don't bother recompiling your system, work on finding the culprit.  I  
recommend a thorough dusting, inside and out, followed by a couple  
passes of memtest86.


But if you do want to recompile, re-bootstrap and emerge your system  
first:

 cd /usr/portage
 scripts/bootstrap.sh
 emerge -Davenut system  # no offense to any Daves, this is just  
easy to remember.  It's your stuff plus --emptytree.

 emerge -Davenut world
 Rebuild your kernel.
--
Colin
--
gentoo-user@gentoo.org mailing list



[gentoo-user] [gentoo] I've got the F00F bug

2005-04-10 Thread Colin
Ran the command "cat /proc/cpuinfo" while waiting for stage2 to fetch 
all the sources, and apparently, my Pentium MMX (200 MHz) has got 
something called the F00F bug.  I Googled it and it seems pretty 
serious.  By Gentoo identifying the bug, I assume it's also got a 
workaround built-in; correct me if I'm wrong.

--
Colin
--
gentoo-user@gentoo.org mailing list


[gentoo-user] Finally! But a few issues...

2005-04-26 Thread Colin
Finally!  I have a working install of Linux 2.6.11-gentoo-r6 on a
Pentium II machine that I plan to  use as a portable media center. 
(Think of it as an iPod on steroids.)

But I've got a few issues, as the subject line says.  Linux newbie
here, though I have done many unsuccessful Gentoo installations
before, so my feet are wet.


1.)  I've got Reiser3.6 on my / partition (/dev/hda3, /mnt/gentoo). 
I've also got Reiser3.6 on my /home partition (/dev/hda4,
/mnt/gentoo/home), but I'd like to try Reiser4 out.  I hear that in
almost all cases, it's an extremely fast and safe file system.  True,
it's a working beta version, but my /home partition is disposable (any
files I put there will be copied over from another computer, anyway,
so I've always got a live backup) so I think I'll jump in.

I found the Reiser4 emerge guide on the Gentoo forums, but that didn't
work for me.  Is there any way to emerge Reiser4 support into my
kernel?


2.)  This will be an embedded system, so how can I speed up the boot
process (after the BIOS hands control to GRUB)?

I've compiled a lot of stuff as modules so I can load and unload them
whenever necessary, so that cuts down on boot time.  Things I've
noticed that take forever are "Calculating module dependencies...",
mounting Reiser3.6 partitions and DHCP detection (which I want).


3.)  What's the Linux equivalent of DOS/Windows' autoexec.bat
(something to run commands on startup, namely "setterm -blank 0")?


4.)  My USB key and/or a media card reader are sometimes plugged into
this computer, but not always.  It's a hassle manually mounting them
every time I want to use it.  Can I mount them in /etc/fstab even
though it won't always be present at boot-time?  Here's what I've got,
commented out for now:
 /dev/sda1 /mnt/usbdrive vfat noatime 0 0
 /dev/sdb1 /mnt/cards/cf-mdautonoatime 0 0
 /dev/sdb2 /mnt/cards/sd-mmcauto noatime 0 0
 /dev/sdb3 /mnt/cards/sm-xd   auto noatime 0 0
 /dev/sdb4 /mnt/cards/ms-mspro auto noatime 0 0


5.)  And as far as my USB key is concerned, FAT32 is slow and
unjournaled.  It sucks.  ReiserFS is the greatest thing since NTFS as
far as I'm concerned, and I'd like to use that on my USB key, since
it's speedy, journaled and space-efficient.

Are there Windows/Mac OS 9/Mac OS X plugins for ReiserFS?  I'd like to
put a small FAT partition on my key with just the plugins and a Reiser
partition spanning the rest for my data.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] shutdown now hangs on "Saving random seed..."

2005-04-26 Thread Colin
Whenever I type in "shutdown now," the kernel enters runlevel 1 and
starts to shut down.  All of these [ ok ] just fine:

* Stopping local...
* Stopping fcron...
* Unmounting network filesystems...
* Stopping syslog-ng...
* Syncing hardware clock to system clock [Local Time]...
* Bringing eth0 down...
*Removing inet6 addresses...
*eth0 inet6 del fe80::20e:2eff:fe0c:6041/64...
*Stopping eth0...
* Bringing lo down...

But it just hangs on this one:

* Saving random seed...

I can Ctrl-C my way out of it and continue to work in Gentoo, but a
software shutdown isn't possible.  I just reboot, enter the BIOS and
hold the switch.  What can I do about this little bug?  And is there
even any purpose in loading and saving a random seed when random
numbers are (AFAIK) seeded by the timer?
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] shutdown now hangs on "Saving random seed..."

2005-04-27 Thread Colin
On 4/27/05, The Disguised Jedi <[EMAIL PROTECTED]> wrote:
> > On 4/27/05, Jason Cooper <[EMAIL PROTECTED]> wrote: 
> > > Colin ([EMAIL PROTECTED] ) scribbled:
> > > > Whenever I type in "shutdown now," the kernel enters runlevel 1 and
> > > > starts to shut down.  All of these [ ok ] just fine:
> > > >
> > > > * Stopping local... 
> > > > * Stopping fcron...
> > > > * Unmounting network filesystems...
> > > > * Stopping syslog-ng...
> > > > * Syncing hardware clock to system clock [Local Time]...
> > > > * Bringing eth0 down... 
> > > > *Removing inet6 addresses...
> > > > *eth0 inet6 del fe80::20e:2eff:fe0c:6041/64...
> > > > *Stopping eth0...
> > > > * Bringing lo down...
> > > > 
> > > > But it just hangs on this one:
> > > >
> > > > * Saving random seed...
> > > 
> > I am wondering if it isn't the random number generator that is causing the
> problem.  Is ACPI and/or APM configured properly in your kernel?  Did you
> recently add these?  I think the problem is that the kernel is trying to
> signal shutdown on the machine, but it isn't configured right. 

ACPI is compiled in and enabled in the BIOS.  I don't have APM, so I
don't have support for that.  My USE flags include "acpi -apm"

> > I can Ctrl-C my way out of it and continue to work in Gentoo, but a
> > software shutdown isn't possible.  I just reboot, enter the BIOS and
> > hold the switch.  What can I do about this little bug?  And is there 
> > even any purpose in loading and saving a random seed when random
> > numbers are (AFAIK) seeded by the timer?
> Check your ACPI and/or APM configuration.  The thing that is bugging me here
> is that you can get out of it, which makes me think that ACPI is signaling
> the power supply to switch off, but it doesn't.  Try "reboot" to see if that
> works.  I had a problem where my machine wouldn't power off, but it would
> reboot, and it was just a kernel configuration problem. 

I doubt that, since when it reboots, there are more steps, ending with
unmounting the filesystems and remounting them read-only.  The power
supply does switch off;  I briefly installed WinXP SP2 to test the
hardware and make sure everything worked, and there were no problems.
--
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] shutdown now hangs on "Saving random seed..."

2005-04-27 Thread Colin
On 4/27/05, Jason Cooper <[EMAIL PROTECTED]> wrote:
> Colin ([EMAIL PROTECTED]) scribbled:
> > Whenever I type in "shutdown now," the kernel enters runlevel 1 and
> > starts to shut down.  All of these [ ok ] just fine:
> >
> > * Stopping local...
> > * Stopping fcron...
> > * Unmounting network filesystems...
> > * Stopping syslog-ng...
> > * Syncing hardware clock to system clock [Local Time]...
> > * Bringing eth0 down...
> > *Removing inet6 addresses...
> > *eth0 inet6 del fe80::20e:2eff:fe0c:6041/64...
> > *Stopping eth0...
> > * Bringing lo down...
> >
> > But it just hangs on this one:
> >
> > * Saving random seed...
> >
> > I can Ctrl-C my way out of it and continue to work in Gentoo, but a
> > software shutdown isn't possible.  I just reboot, enter the BIOS and
> > hold the switch.  What can I do about this little bug?  And is there
> > even any purpose in loading and saving a random seed when random
> > numbers are (AFAIK) seeded by the timer?
> 
> Have you enabled apm or acpi in your kernel?

ACPI is compiled into the kernel and enabled in the BIOS.  I don't
have APM on this computer, so it's not compiled in.
--
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Finally! But a few issues...

2005-05-07 Thread Colin
On 4/28/05, Walter Dnes <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 27, 2005 at 12:53:29AM -0400, Colin wrote
> > Finally!  I have a working install of Linux 2.6.11-gentoo-r6 on a
> > Pentium II machine that I plan to  use as a portable media center.
> > (Think of it as an iPod on steroids.)
> 
>   It's probably OK if you intend to run only audio, but video might be a
> problem.  I finally found an excuse to look for a replacement for my
> 1999-vintage Dell (450 mhz PIII with 128 megs of RAM).  I find that
> mplayer has problems keeping up with 45 kbit/sec "internet TV" streams.

Well, all of the video would be accessed from the hard drive.

>   You mentioned that your USB is painfully slow.  A PII-vintage machine
> would not have been built with USB 2.  It didn't exist back then.  You
> have USB 1.1 at best, i.e. just over 1 megabyte/second.  You're *NOT*
> going to get faster speeds by changing the filesystem on the key or
> media.  The main bottleneck is your old USB hardware.  The PII probably
> would have problems keeping up with USB 2 throughput as well.

I don't think I ever said "painfully slow," but yes, my motherboard
does have USB 1.1 but I do have a USB 2.0 PCI card.  Some of my
devices are USB 2.0, but they're just a USB key, a flash media reader
(AFT PRO-9) and sometimes a USB-Ethernet adapter.  Coupled with a USB
1.1 Bluetooth adapter, it's nothing I should concern myself with.

My Pentium II is the last of its line, being the 450 MHz version (and
overclocked to a stable 504 MHz), but I haven't noticed any CPU
bottlenecks.  It sure is better than the 200 MHz Pentium-MMX I had
before, about on par with that K6-2 I had at first before that
mysteriously died during a routing emerge --sync.  I can always try to
drop in a Slot 1 or slocketed-S370 PIII at any time if I feel this is
too slow, I think my BIOS will support it (though I'll need to
recompile since I'm using -march).

I'm using -march=pentium2 and a host of other gcc optimizations, so
compilation is a bore to sit through but the only real slowness I've
got is booting (which I'm fully aware can be fixed by going into ACPI
S3 instead of a cold shutdown).  Then again, I haven't installed GNOME
yet nor actually gotten close to showing audio/video.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Manually specifying nameservers

2005-05-07 Thread Colin
I have two nameservers.  DHCP detects the second one, but since I have a 
computer acting as a gateway instead of the access point, I can't get a 
net connection until I edit /etc/resolv.conf.

I tried chmodding /etc/resolv.conf to 111, but the system re-chmodded it 
after a test reboot.  So instead I added this to /etc/conf.d/local.start:
   echo "nameserver 192.168.0.1" > /etc/resolv.conf
   echo "nameserver 192.168.0.254" >> /etc/resolv.conf

Is there another way?
--
Colin
--
gentoo-user@gentoo.org mailing list


[gentoo-user] Are there ANY working wireless cards?

2005-05-10 Thread Colin
Just got around to trying to boot Gentoo 2005.0 on my desktop.  My hard 
drive controller is now natively supported (Highpoint HPT372N), so the 
LiveCD booted without a problem.  But now my wireless adapter (D-Link 
DWL-120+) isn't supported, since I don't have any network devices other 
than eth0 (wired) and lo.  Seeing as how this is my Internet connection, 
I'm stuck yet again.  (I'm not a big fan of stage3 installs.)

Since I (strangely enough) have money in my wallet, are there any 
wireless cards that are natively supported in Gentoo?

--
Colin
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Are there ANY working wireless cards?

2005-05-10 Thread Colin
 Original Message 
Subject:Re: [gentoo-user] Are there ANY working wireless cards?
Date:   Tue, 10 May 2005 22:45:32 +0300
From:   Matan Peled <[EMAIL PROTECTED]>
Reply-To:   [EMAIL PROTECTED]
Organization:   Chaosite Destruction, inc.
To: gentoo-user@lists.gentoo.org
References: <[EMAIL PROTECTED]>
> Colin wrote:
> Just got around to trying to boot Gentoo 2005.0 on my desktop.  My hard
> drive controller is now natively supported (Highpoint HPT372N), so the
> LiveCD booted without a problem.  But now my wireless adapter (D-Link
> DWL-120+) isn't supported, since I don't have any network devices other
> than eth0 (wired) and lo.  Seeing as how this is my Internet connection,
> I'm stuck yet again.  (I'm not a big fan of stage3 installs.)
> 
> Since I (strangely enough) have money in my wallet, are there any
> wireless cards that are natively supported in Gentoo?
> 

If you have 22mbps hardware, you want the DWL-520+ (Same chipset, PCI version).
Its 'natively supported' (emerge acx100), but you do need an initial Internet
connection to download the driver. You could download it somewhere else and put
it on a CD/Floppy, of course.
But don't pull out that wallet yet!
genstef, the Gentoo dev that maintains the acx100 package (which also provides a
kernel module for your wireless device, acx_usb) wants you to contact him.
Send him an e-mail at <[EMAIL PROTECTED]>.
I'm emailing this message to the list as well as to you, genstef, just in 
case someone on-list (or reading
the archives at a later date) can benefit from this.  Correct me if this is a 
no-no.
All right, you wanted me to email you.  That's been done.  Now, to setup my 
hardware, I think I'll do this.
I've got one working Gentoo install right now, and then I've got my main 
computer.  This is what I'll do:
1. "emerge --fetchonly acx_usb acx100" on my working Gentoo system to download 
the sources.
2. "emerge --pretend acx_usb acx100" to get a file listing of the ACX packages.
3. Copy the ACX packages to my USB key, and then move them to my distfiles 
directory on my wireless machine.
4. "emerge acx_usb acx100" on the wireless machine.
5. Continue with Gentoo installation.
If I copy over all the distfiles from the working machine as well as the 
stage1-x86 and Portage tarballs
(which I can download in Windows), then I can theoretically do a stage1 install 
without my wireless connection,
which will make me happy.  Does that sound feasible?  (And at what point during 
the installation does the
emerge command become usable?)
--
Colin


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Re: DSL modem + Web Server + Home Box

2005-05-15 Thread Colin
Gabriel M. Beddingfield wrote:
3. AVAILABLE VIA WAN

Check to see if Bellsouth is blocking your IP from being a server.  SSH to
an external machine, or call your aunt in Toledo and have them navigate a
web browser to:
http://a.b.c.d
If it works, then all is good with your web server.  If not, then you
probably have issues with Bellsouth.  Most 'for-the-masses' ISP's are
blocking people from running servers.  And those that don't, still have
policies against it.  This includes Verizon (port blocking), and Comcast
(policy).  Exceptions include Speakeasy, Earthlink (for some
subscriptions), and Covad.
I know that EarthLink dial-up has no port forwarding or port blocking in 
effect.  I think they'll let you run servers from behind dial-up 
connections, but I know that it's a no-no from behind their high-speed 
connections, unless you get a business plan.
--

Colin
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] ntfs mounted partition

2005-05-15 Thread Colin
Robert Persson wrote:
A long time ago I used Captive NTFS to do this.  It's not maintained now, but 
I think it should still work with recent kernel versions afaik.  You can find 
it at http://www.jankratochvil.net/project/captive/.
 

Is it available via emerge?
--
Colin
--
gentoo-user@gentoo.org mailing list


[gentoo-user] nvidia.ko needs unknown symbols

2005-05-15 Thread Colin
I noticed these error messages after kernel recompilation:
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  
2.6.11-gentoo-r6; fi
WARNING: /lib/modules/2.6.11-gentoo-r6/video/nvidia.ko needs unknown 
symbol agp_bind_memory
WARNING: /lib/modules/2.6.11-gentoo-r6/video/nvidia.ko needs unknown 
symbol agp_enable
WARNING: /lib/modules/2.6.11-gentoo-r6/video/nvidia.ko needs unknown 
symbol agp_backend_acquire
WARNING: /lib/modules/2.6.11-gentoo-r6/video/nvidia.ko needs unknown 
symbol agp_free_memory
WARNING: /lib/modules/2.6.11-gentoo-r6/video/nvidia.ko needs unknown 
symbol agp_allocate_memory
WARNING: /lib/modules/2.6.11-gentoo-r6/video/nvidia.ko needs unknown 
symbol agp_unbind_memory
WARNING: /lib/modules/2.6.11-gentoo-r6/video/nvidia.ko needs unknown 
symbol agp_copy_info
WARNING: /lib/modules/2.6.11-gentoo-r6/video/nvidia.ko needs unknown 
symbol agp_backend_release

Maybe this is why module nvidia doesn't load at startup.  Did I miss 
something in the kernel?  I emerged nvidia-kernel when I installed Gentoo.

--
Colin
--
gentoo-user@gentoo.org mailing list


[gentoo-user] Rebuilding world

2005-05-17 Thread Colin
I was messing around with my disk when Gentoo froze up on me.  I 
rebooted and got my system back up, but whenever I attempt an emerge, I 
get this error:
Traceback (most recent call last):
File "/usr/bin/emerge", line 10 in ?
 import portage
File "/usr/lib/portage/pym/portage.py", line 7306, in ?
 do_upgrade(mykey)
File "/usr/lib/portage/pym/portage.py", line 7244 in do_upgrade
 myworld=open("/"+WORLD_FILE,"w")
IOError: [Errno 2] No such file or directory: '//var/lib/portage/world'

Well, apparently I destroyed Portage.  What now?
--
Colin
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Rebuilding world

2005-05-17 Thread Colin
Dirk Heinrichs wrote:
Am Dienstag, 17. Mai 2005 09:23 schrieb ext Colin:
 

I was messing around with my disk when Gentoo froze up on me.  I
rebooted and got my system back up, but whenever I attempt an emerge, I
get this error:
Traceback (most recent call last):
File "/usr/bin/emerge", line 10 in ?
 import portage
File "/usr/lib/portage/pym/portage.py", line 7306, in ?
 do_upgrade(mykey)
File "/usr/lib/portage/pym/portage.py", line 7244 in do_upgrade
 myworld=open("/"+WORLD_FILE,"w")
IOError: [Errno 2] No such file or directory: '//var/lib/portage/world'
Well, apparently I destroyed Portage.  What now?
   

No, you didn't. Your world file is gone, that's all (it seems). However, it 
may be some work to rebuild it.

1) Simply "touch /var/lib/portage/world"
 

Worked.  If it was supposed to spit back some output, it didn't.
2) Then do "emerge -p depclean" (don't forget -p) and put every package it 
lists into your world file.
 

It says:
!!! You have no world file.  Cannot determine explicit merges.
!!! You have no installed package tree (var/db/pkg).  This is a problem.
While you were typing your first message, I successfully ran an emerge 
--sync, and it told me that there was a new version of Portage 
available.  This is probably because a lot of /var was annihilated, though.

--
Colin
--
gentoo-user@gentoo.org mailing list


[gentoo-user] DMP-110 MP3 Player

2005-05-17 Thread Colin
You know, maybe I should spend a few bucks and get a decent MP3 player 
anyway, but has anyone had any luck with the D-Link DMP-110 MP3 player 
under Linux?  The alternative is to run the software under Wine, but I'm 
hoping for a more elegant solution.

--
Colin
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Gentoo discrimination

2005-05-18 Thread Colin
Grant wrote:
Out of curiosity, who here would say they have experienced any type of
emotional discrimination because they use Gentoo?  I find this in
correspondence with other Linux people sometimes.  Is Gentoo far
enough "out there" to warrant this type of attitude?  It seems like
these people are conservatives unwilling to roll with the changes to
me.
Nah, my friend was talking about how iPods suck.  (I disagree, BTW, plus 
he hates Macs.  Even the new dual-G5 Power Macs.)  He said that once you 
copy your files to it, then it automatically synchs with iTunes, so you 
can't just use it like a hard drive and copy off the music due to the 
FairPlay DRM.  My other iBook, iTunes and iPod-owning friend said he was 
right.

Then I mentioned that it could be mounted under Linux as a hard drive to 
bypass the FairPlay DRM.  I used the disclaimer that I've only heard 
about it being done, since I don't have an iPod.  He asked what version 
of Linux, and when I said Gentoo, he said "good man."  I almost felt 
like adding "kernel version 2.6.11-gentoo-r9," but I guess that was 
enough to make his day.  And mine, too.

Plus it's hard to beat "emerge -u world".  It's better than Mac OS's 
Software Update (which doesn't always get updates for every app), and 
world beyond Windows Update plus the Nero auto-updater, the Java VM 
auto-updater, my DVD burner's firmware auto-updater, my DVD burner's 
software auto-updater, my auto-updaters' auto-updaters.  (OK, so I made 
that last one up, but it could happen.)

--
Colin
--
gentoo-user@gentoo.org mailing list


[gentoo-user] Console background images and colored ls output

2005-05-18 Thread Colin
Is it possible to get a background image for the console like it is on 
the LiveCD?  Also, how do you make the output of ls colored?

--
Colin
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Gentoo discrimination

2005-05-18 Thread Colin
A. Khattri wrote:
On Wed, 18 May 2005, Colin wrote:
 

Nah, my friend was talking about how iPods suck.  (I disagree, BTW, plus
he hates Macs.  Even the new dual-G5 Power Macs.)  He said that once you
copy your files to it, then it automatically synchs with iTunes, so you
can't just use it like a hard drive
   

Sure you can - you just enable "disk mode" in the iTunes preferences...
Don't say that!  I'm making Gentoo look cool!
--
Colin
--
gentoo-user@gentoo.org mailing list


[gentoo-user] System crashes with monitor off

2005-05-19 Thread Colin
Yeah, this is a weird one.  I've noticed that if I leave my system 
(2.6.11-gentoo-r9) idle with the monitor off during an emerge, it will 
hang.  However, if the monitor is on, then it won't hang and will keep 
emerging.  Normally, leaving it idle for sixteen hours makes it crash, 
but I left the monitor on and it didn't.

Now, I've tried disabling ACPI and APM, but there was no change.  Does 
anyone have any possible clues?  The monitor cable is missing pin 11, if 
that's any indication.

--
Colin
--
gentoo-user@gentoo.org mailing list


[gentoo-user] Soundcard not detected

2005-05-21 Thread Colin
I'm trying to get my soundcard working.  It isn't detected by lspci 
under my kernel, but the LiveCD's lspci  finds it and detects it on the 
line ":00:11.0 Multimedia audio controller: Aureal Semiconductor 
Vortex 1 (rev 02)."  The LiveCD coldplugs it as driver=unknown, but that 
shouldn't stop lspci from finding it.


I'm guessing I forgot to compile something into the kernel 
(2.6.11-gentoo-r9)?  And once there, how can I install ALSA under 
GNOME?  (This system's main goal is to play sound, after all.)


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] ALSA drivers don't load - was Re: [gentoo-user] Soundcard not detected

2005-05-22 Thread Colin

I recompiled my kernel with ALSA enabled and my card (Dell OEM Aureal Vortex, 
driver snd-au8820) compiled as a module, which I added to 
/etc/modprobe.conf/kernel-2.6.  I tried to emerge alsa-drivers, but it said it 
was unnecessary.  I emerged alsa-utils successfully.

When I went to run alsaconf, it said three times before the menu came up, "modinfo:  
could not find module snd"  alsaconf seemed to work perfectly, and then it exited 
with a cheerful message.

Starting the alsasound service goes like this:
* Loading ALSA modules...   [ ok ]
*  Loading snd-card-0...[ ok ]
* ERROR: Failed to load necessary drivers
* Restoring Mixer Levels...
* No mixer config in /etc/asound.state, you have to unmute your card!   [ ok ]

I've attempted to modprobe snd-au8820 and its dependencies, snd-mpu401-uart and 
snd-ac97-codec before (re)starting alsasound, but that doesn't work, either.

I followed the Gentoo ALSA guide to the letter.  Once again, I must have 
misconfigured my kernel.  (And yes, lspci now finds my soundcard.  Didn't 
change anything, though.)

I did all this from xterm within GNOME (logged in as myself but su'ed to root 
in the terminal), but that's probably not a problem since I've rebooted but 
still get the same errors when alsasound loads at runlevel 2 (boot).

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA drivers don't load - was Re: [gentoo-user] Soundcard not detected

2005-05-22 Thread Colin

Christoph Eckert wrote:


When I went to run alsaconf, it said three times before the
menu came up, "modinfo:  could not find module snd"
alsaconf seemed to work perfectly, and then it exited with
a cheerful message.
   


what's in your /etc/modules.d/alsa after running alsaconf?
 


Everything looks to be correct.


# Alsa 0.9.X kernel modules' configuration file.
# $Header: 
/var/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 
1.4 2004/11/16 01:31:22 eradicator Exp $


alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.8 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-au8820
alias sound-slot-0 snd-au8820
# --- END: Generated by ALSACONF, do not edit. ---

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA drivers don't load - was Re: [gentoo-user] Soundcard not detected

2005-05-22 Thread Colin

A. R. wrote:


When you enabled your card in the ALSA kernel config, did you select
it as a module?
Can you find the module files in the following directory?
   /lib/modules/2.6.11-gentoo-r9/kernel/sound
 

I tried compiling in Aureal Vortex support, but when that also didn't 
work, I compiled it as a module.  I'd prefer to have it compiled into 
the kernel, though.  Here's a little directory tree.


/lib/modules/2.6.11-gentoo-r9/kernel/sound/
core/
...seq/
..snd-seq-midi.ko
..snd-rawmidi.ko
drivers/
...mpu401/
..snd-mpu401-uart.ko
..snd-mpu401.ko
pci/
...ac97/
.. snd-ac97-codec.ko
...au88x0/
.. snd-au8820.ko


(I has happened to me that add support for my card(s) as kernel
built-ins, and suddenly ALSA does not work)
 


All right, then I'll keep it as a module.

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA drivers don't load - was Re: [gentoo-user] Soundcard not detected

2005-05-22 Thread Colin

Nick Rout wrote:

go back to your original message Colin! 


 When I went to run alsaconf, it said three times before the menu came up, 
"modinfo:  could not find module snd"  alsaconf seemed to work perfectly, and then it 
exited with a cheerful message.

looks like you are missing snd.ko. I am not sure where in the kernel
this is activated - perhaps you have it as a builtin instead of a module.
 

I compiled ALSA as a module instead.  That got rid of the above error, 
but /etc/init.d/alsasound still spits out the same error, but loads a 
few more modules:


* Loading ALSA modules...   [ ok ]
*   Loading: snd-card-0...[ ok ]
*   Loading: snd-seq-oss [ ok ]
*   Loading: snd-pcm-oss [ ok ]
*   Loading: snd-seq [ ok ]
* ERROR: Failed to load necessary drivers
* Restoring Mixer Levels...   [ ok ]
* No mixer config in /etc/asound.state, you have to unmute your card!   
[ ok ]


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ALSA drivers don't load - was Re: [gentoo-user] Soundcard not detected

2005-05-22 Thread Colin

Nick Rout wrote:


On Mon, 23 May 2005 00:23:06 -0400
Colin wrote:

I compiled ALSA as a module instead.  That got rid of the above error, 
but /etc/init.d/alsasound still spits out the same error, but loads a 
few more modules:


* Loading ALSA modules...   [ ok ]
*   Loading: snd-card-0...[ ok ]
*   Loading: snd-seq-oss [ ok ]
*   Loading: snd-pcm-oss [ ok ]
*   Loading: snd-seq [ ok ]
* ERROR: Failed to load necessary drivers
* Restoring Mixer Levels...   [ ok ]
* No mixer config in /etc/asound.state, you have to unmute your card!   
[ ok ]
   



What does lsmod say after all that? I'll compare it to a working config
and see what you might be missing !
 


Module  Size  Used by
snd_mixer_oss   17856   0
snd_seq_midi_event 6336   0
snd_mpu401_uart6400   0
snd_seq_device   6892   0
bluetooth45124   0
nvidia  3461628  12

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] CFLAGS CPU optimization question.

2005-05-23 Thread Colin

Walter Dnes wrote:


 Currently, I use "-march=i686" for my 3 machines, a P4, a PIII, and a
PII (and a partridge in a pear tr).

 According to the gcc docs at...
http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options

"i586 is equivalent to pentium and i686 is equivalent to pentiumpro."

 Does this mean that I would get better optimization if I use "pentium2",
"pentium3" or "pentium4", as appropriate?  I am using the available flags
(-mmmx, -msse, -msse2, -mfpmath=sse, etc) as appropriate.


Yes, it would.

My CFLAGS (Pentium II, 504 MHz, 224 MB RAM):  "-O3 -march=pentium2 -mmmx 
-fomit-frame-pointer -pipe -ftracer -fno-rename-registers -funroll-loops"


I have a stable install of kernel 2.6.11-gentoo-r9 and GNOME 2.8.3.  I 
haven't had a kernel panic yet, and I compiled and run the system with 
an overclocked 112 MHz front side bus.  It was worth sitting around 
watching endless lines of text scroll by.  My secrets?


 -O3:  The highest performance optimization level before code starts to 
break.  It goes up to -O9 if you're daring.  (Use -Os to compile for 
size.)  Implies a lot of stuff.
 -march=pentium2:  Implies -mmmx and writes code specifically for the 
P2 processor.

 -mmmx:  Build code with MMX instructions wherever possible.
 -fomit-frame-pointer:  Don't keep the frame pointer in a register.  
You get an extra register at the cost of losing debugging ability.
 -pipe:  Use pipes instead of temporary files.  Not recommended on a 
RAM-limited system.
 -ftracer:  Use the processor's branch predictor when compiling.  I 
think it compiles twice with this flag, but it does compile more 
efficiently.
 -fno-rename-registers:  Renaming registers is only done when running 
32-bit code on a 64-bit processor.  It's implied on x86 architecture anyway.
 -funroll-loops:  If you can tell how many times a loop will loop 
(mainly for loops), then unroll it.  Does it increase performance?  If 
it does, it's unnoticeable.  Don't tell anyone you use it though.  It 
spreads the whole "Gentoo ricer" myth that's been going around the Internet.


If your Pentium 4 supports Hyper-Threading, adjust MAKEOPTS 
accordingly.  My P4 compiles faster at -j3 than -j2.  (Haven't tried -j4 
though.)


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wine

2005-05-23 Thread Colin

Johannes Weiner wrote:


On Mon, May 23, 2005 at 03:48:09PM -0500, C R. Little wrote:
 


I'm setting up my very first install of wine. I'm a bit confused on which one to emerge I 
would like to use Office 2003 Professional and have the ability to run games like world 
of warcraft. Just more "newbie" questions from me.
Thanks for the help with everything.
   


Want windows? Use windows.
Not? Check openoffice and perhaps cedega for game emulation.

Games don't run well in emulation, especially Doom III and Half-Life 2, 
due to the heavy use of DirectX.  You can try Wine or Cedega, but even 
the fastest systems will experience quite a performance hit.  You're 
best off dual-booting a copy of Windows and running the games from 
there.  It's OK, dual-booting for playing games is a perfectly 
acceptable use of Windows. :-P


As for OpenOffice.org, I use it all the time, even on my Windows 
machines.  Why pay $500 for Word, Excel, PowerPoint, FrontPage and 
Outlook when you've got OpenOffice and Thunderbird all for free (plus 
any donations you make)?  They can read and write Office files with 
minimal trouble.  The only thing you'll miss is the Office shortcut bar, 
but just copy the icons to GNOME's top panel and you're back in business.


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] GNOME takes forever to start

2005-05-24 Thread Colin
I shut down my computer normally.  When I turned it on, though, after 
logging into GNOME about an hour ago, I'm still waiting for it to boot.  
I enter my password, wait forever, and then the Gentoo logo pops up.  
Wait forever again, and then the icons appear in the box, and then the 
box disappears.  Now I'm still waiting forever.


The last thing I remember doing is modifying /etc/conf.d/rc, emerging 
Thunderbird, and fetching some sources for another Gentoo box.  I've 
tried failsafe GNOME, same thing.  Failsafe terminal works, though.  The 
mouse works and I can Ctrl-Alt-Backspace whenever I want and X/GNOME 
restarts.


Anybody know what's going on?  GNOME never used to do this before.
--

Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] GNOME takes forever to start

2005-05-24 Thread Colin

Mike Williams wrote:


On Tuesday 24 May 2005 08:31, Colin wrote:
 


Anybody know what's going on?  GNOME never used to do this before.
   



Did this happen after a reboot?
Check the permissions of /dev/null

"ls -l /dev/null":  crw-rw-rw-   1   root   root   1, 3 Apr 23 19:13   
/dev/null


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] GNOME takes forever to start

2005-05-24 Thread Colin

Janne Johansson wrote:


On Tue, 2005-05-24 at 03:31 -0400, Colin wrote:
 

I shut down my computer normally.  When I turned it on, though, after 
logging into GNOME about an hour ago, I'm still waiting for it to boot.  
I enter my password, wait forever, and then the Gentoo logo pops up.  
Wait forever again, and then the icons appear in the box, and then the 
box disappears.  Now I'm still waiting forever.
   



 


Anybody know what's going on?  GNOME never used to do this before.
   



I had similar problems a while back. My problems were related to the
gnome profile that I had messed up somehow. You could try removing
the .gnome* and .gconf* directories form your home directory.

 

I added .old to the directory names, but it didn't work.  GNOME still 
starts up very, very slowly.  I waited until I could get System Monitor 
to open up.  I noticed that X was using well over 50% of the CPU at all 
times.  System Monitor took up a good 30% chunk, but that's probably 
becuase I had the update interval very low.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] GNOME takes forever to start

2005-05-24 Thread Colin

W.Kenworthy wrote:


check DNS/name resolution - sounds likes its waiting and timing out.
One of my less appreciated "features" of gnome ...
 

I noticed that mDNSResponder failed to stop on shutdown, along with famd 
and gdm.  I don't have an (apparent) problem with DNS, though.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: CFLAGS CPU optimization question.

2005-05-24 Thread Colin

Julien Cayzac wrote:


On 5/24/05, Robert Crawford <[EMAIL PROTECTED]> wrote:
 


For what it's worth, according to man gcc, -O2 turns on -funit-at-a-time.
   



Yup. Too bad every single Makefile in the world compiles c/c++ source
files one by one :-/
 


Wouldn't MAKEOPTS set to at least -j2 attempt to compile in parallel?

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: CFLAGS CPU optimization question.

2005-05-24 Thread Colin

Richard Fish wrote:


Colin wrote:


Julien Cayzac wrote:


On 5/24/05, Robert Crawford <[EMAIL PROTECTED]> wrote:


For what it's worth, according to man gcc, -O2 turns on
-funit-at-a-time.
 
   


Yup. Too bad every single Makefile in the world compiles c/c++ source
files one by one :-/


Wouldn't MAKEOPTS set to at least -j2 attempt to compile in parallel?



How is that supposed to help -funit-at-a-time?  From "info gcc":


The compiler performs optimization based on the knowledge it has of
the program.  Using the `-funit-at-a-time' flag will allow the compiler
to consider information gained from later functions in the file when
compiling a function.  Compiling multiple files at once to a single
output file (and using `-funit-at-a-time') will allow the compiler to
use information gained from all of the files when compiling each of
them.


So -funit-at-a-time performs best when multiple C/C++ files are compiled
by a single invocation of GCC.  As Julien said, no makefiles in use
today (AFAIK) support this.

Oh, sorry.  I thought -funit-at-a-time did parallel compilations.  Well, 
at least I learned something. ^_^U


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] CFLAGS for PowerPC 604?

2005-05-26 Thread Colin

The PowerPC make.conf.example suggests these CFLAGS:
"-O2 -mcpu=604 -mtune=604 -mstring -mmultiple -mpowerpc-gfxopt -pipe"

Meanwhile, various other sites recommend only these:
"-O3 -march=604 -fsigned_char -pipe"

Which CFLAGS are best for the 604 processor?  I'm guessing that I should 
just combine them?
"-O2 -march=604 -fsigned_char -mstring -mmultiple -mpowerpc-gfxopt 
-fstack_protector -pipe -fomit-frame-pointer "


This future home server is a Power Macintosh 8500.  PowerPC 604 
processor, 150 MHz, 256 KB external L2 cache.  320 MB RAM (interleaving 
enabled).  19 GB total Fast SCSI-2 storage (internal bus).  I *might* 
upgrade it later on with a G3 or G4 processor and/or maxing out the RAM 
to 1 GB.


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] C compiler cannot create executables

2005-05-27 Thread Colin
When I try to bootstrap a Power Macintosh 8500, I get this error from 
/usr/portage/scripts/bootstrap.sh:


>>> emerge (1 of 7) sys-apps/textinfo-4.7.-r1 to /
!!! Cannot create log... No write access / Does not exist
!!! PORT_LOGDIR: /var/log/portage
!!! Cannot create log... No write access / Does not exist
!!! PORT_LOGDIR: /var/log/portage
[does the md5 checks]
[unpacks stuff]
[...]
>>> Source unpacked.
* econf: updating texinfo-4.7/config.guess with 
/usr/share/gnuconfig/config.guess
* econf: updating texinfo-4.7/config.guess with 
/usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=powerpc-unknown-linux-gnu 
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
--sysconfdir=/etc --localstatedir=/var/lib --disable-nls

configure: WARNING: If you wanted to set the --build type, don't use --host.
   If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for powerpc-unknown-linux-gnu-strip... no
checking for strip... strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for powerpc-unknown-linux-gnu-gcc... powerpc-unknown-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables

See 'config.log' for more details.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/texinfo-4.7-r1/work/texinfo-4.7/config.log

!!! ERROR: sys-apps/texinfo-4.7-r1 failed.
!!! Function econf, line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status 
message.


/var/tmp/portage/texinfo-4.7-r1/work/texinfo-4.7/config.log is available 
if needed.  I really don't want this to be one of those annoying-long 
messages.


CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=604 -mtune=604 -fsigned-char -mmultiple -mstring 
-fomit-frame-pointer -pipe -fstack_protector -fweb -ftracer"

CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j1"
USE contains "hardened"

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] C compiler cannot create executables

2005-05-27 Thread Colin

Bruno Lustosa wrote:


On 5/27/05, Colin <[EMAIL PROTECTED]> wrote:
 


checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See 'config.log' for more details.

/var/tmp/portage/texinfo-4.7-r1/work/texinfo-4.7/config.log is available
if needed.  I really don't want this to be one of those annoying-long
messages.

CFLAGS="-O2 -mcpu=604 -mtune=604 -fsigned-char -mmultiple -mstring
-fomit-frame-pointer -pipe -fstack_protector -fweb -ftracer"
   


A look in config.log might help. I guess it could be something with
your CFLAGS. I had this once when I tried -march=amd64 (instead of
athlon64).
So, when it would try to compile something, it would give an error and
fail the check, saying the compiler could not create executables.
The error you want to look should be near the end of the file, I think.
If you don't want to post config.log to the list, feel free to send it
to me privately and I'll have a look.

No, I found it.  I changed -fstack_protector to -fstack-protector and 
now it's compiling.  It bugs me how some CFLAGS use underscores, others 
dashes, and some use both.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] CFLAGS CPU optimization question.

2005-05-30 Thread Colin

Andreas Fredriksson wrote:


On 5/29/05, Digby Tarvin <[EMAIL PROTECTED]> wrote:
 


On the subject of CPU flags, anyone tried optimizing gentoo for a
Toshiba Libretto (110CT)?
   model name  : Mobile Pentium MMX
   flags   : fpu vme de pse tsc msr mce cx8 mmx
   



This is indeed a "classic" pentium chip with mmx added. You can use
-mcpu=pentium (or -march=pentium), optionally adding the mmx USE flag
for those packages that support it.
 

Actually, since it has MMX, use {-mcpu/-mtune/-march}=pentium-mmx.  
Worked for me.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] CFLAGS CPU optimization question.

2005-05-30 Thread Colin

Andreas Fredriksson wrote:


On 5/29/05, Digby Tarvin <[EMAIL PROTECTED]> wrote:
 


On the subject of CPU flags, anyone tried optimizing gentoo for a
Toshiba Libretto (110CT)?
   model name  : Mobile Pentium MMX
   flags   : fpu vme de pse tsc msr mce cx8 mmx
   



This is indeed a "classic" pentium chip with mmx added. You can use
-mcpu=pentium (or -march=pentium), optionally adding the mmx USE flag
for those packages that support it.
 

Actually, since it has MMX, use {-mcpu/-mtune/-march}=pentium-mmx.  
Worked for me.  Additionally, add the CPU flags to your USE flags 
(especially mmx).


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Compile for another computer

2005-05-30 Thread Colin

««Omega21»» wrote:


Hi there.
I was wondering if there is a way to compile a given program for 
another computer with different hardware (still x86 though). Can you 
point me to a help resource or something?


The easiest way would be to use distcc.  You'll need another Linux 
installation (preferably Gentoo) to do it, though.

http://www.gentoo.org/doc/en/distcc.xml

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Compile for another computer

2005-05-30 Thread Colin

Taylor Morrow wrote:


I believe, although I've never done it and don't know much about it,
that there is a way to cross-compile from windows, too.  Search for it
on gentoo-wiki.com...

Or just use this link:  
http://gentoo-wiki.com/HOWTO_Distcc_server_on_Windows


I might try this.  Thanks for finding it.

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Clarification on iso downloads

2005-05-30 Thread Colin

cothrige wrote:


The one thing you could try is pre-downloading all the tarballs you are
likely to need for the bootstrap, kernel and various utils you need, burn
them to a CD, then put them in the /usr/portage/distfiles during the
install...
   



I may have to look into that.  Unfortunately that many individual
files is tough to download as I cannot monitor the computer I am using
and generally have to go in early, click a download and come back much
later to burn it.  It is a Windows machine which makes it tougher for
me to use things like wget scripts which could be put together for my
computer.  But perhaps it is an option I can work on.
 

No, it works perfectly this way.  I've done it.  With this trick, I went 
to school with a CD-RW and grabbed all the files I needed, plus the 
stage1 and Portage tarballs.  Just don't update Portage or run "emerge 
--sync" until you get a network connection or else it may want to 
download updated sources.


There's a Windows version of wget somewhere out there.  Get that, and 
get a list of all the files you need (something like "emerge -fpu system 
2> filelist.txt").  Then go to a DOS prompt and type wget -i 
filelist.txt.  Finally, you play the waiting game...


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Reiser4, encryption

2005-05-30 Thread Colin
When will Reiser4 be added to the Gentoo kernel?  I can emerge 
reiser4progs, but I can't mount the volumes nor use them in /etc/fstab.


Also, are there any good, journaled and encrypting filesystems for 
Linux?  I thought Reiser4 would have an encryption plugin;  did I read 
that somewhere or am I mistaken?


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reiser4, encryption

2005-05-30 Thread Colin

Dirk Heinrichs wrote:


Am Dienstag, 31. Mai 2005 07:15 schrieb ext Colin:
 


When will Reiser4 be added to the Gentoo kernel?  I can emerge
reiser4progs, but I can't mount the volumes nor use them in /etc/fstab.
   


AFAIK there are kernel sources which have reiser4 patched in.
 


I know.  I'm just not fond of patching kernels.

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reiser4, encryption

2005-05-31 Thread Colin

Dirk Heinrichs wrote:


Am Dienstag, 31. Mai 2005 08:28 schrieb ext Colin:
 


I know.  I'm just not fond of patching kernels.
   


Why not, what's the problem?
 

- I'd rather use gentoo-sources than vanilla-sources.  I'll wait for 
2.6.12-gentoo before using some potentially unstable patched vanilla 
kernel.  (Plus they might fix some bugs before then.)

- The Reiser4 LiveCD is x86 only.  It won't boot a PowerPC.
- I need to buy some more parts before I can do another Gentoo install 
on x86 hardware. :-)


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Tablet PC's and Gentoo

2005-05-31 Thread Colin
Does Gentoo have any features that would allow it to work with a tablet 
PC?  I'm assuming just installing touchscreen support into the kernel 
would work.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Tablet PC's and Gentoo

2005-05-31 Thread Colin

Nick Rout wrote:


wide question, what features are you trying to support? and what make
and model?
 

Well, I was thinking just in general, but one model that caught my eye 
was from the Averatec C3500 Series.  I was mainly referring to 
handwriting recognition.  Would that be supported under X/GNOME with the 
proper kernel features enabled?


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reiser4, encryption

2005-06-01 Thread Colin

Calvin Walton wrote:


On 5/31/05, Colin <[EMAIL PROTECTED]> wrote:
 


When will Reiser4 be added to the Gentoo kernel?  I can emerge
reiser4progs, but I can't mount the volumes nor use them in /etc/fstab.
--
Colin
   


Although reiser4 is not in the main gentoo kernel, it is in
sys-kernel/mm-sources.
Note that using this kernel and asking for support will probably get
developers mad at you - it's not supported :) I'm using it atm, and
reiser4 seems to be working quite well.

Cool, I was looking for something like this.  Which version do you use?  
How's the kernel compared to gentoo-sources, as far as stability and 
performance are concerned (this'll be for a server)?


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: SOLVED: [gentoo-user] DVD drive not found on new AMD64 system

2005-06-03 Thread Colin

Michael Kjorling wrote:


On 2005-06-03 14:52 -0400, [EMAIL PROTECTED] wrote:
 


 Do *NOT* use "cable select".  Yes, "it works with Windoze", but then
so do "Winmodems".  Set master/slave properly.  You are not the first
person to have run into problems with cable select.
   


First off: thanks, Walter! Yes, setting master/slave manually did make
the smaller disk show up to both the BIOS and Linux. I also tried
re-jumpering hdc and hdd, putting the hard disk as master and the DVD
drive as slave instead of the other way around.

And would you believe it? It solved all the problems at once! The
drives seem to show up properly, and now the system will also reboot
properly. (It failed - hanged - before the BIOS came to "Detecting IDE
drives" when I used Cable Select.)

Win"modems" always makes me wonder what other crap might pass for
hardware, but that's another tale for another day and one I am sure is
told even here frequently enough anyway.
 

As far as I've heard, the Linux kernel doesn't work well with cable 
select.  Don't know why, though.  Personally, I've used cable select 
before with no problems.  Anyway, with Serial ATA here, IDE master/slave 
settings and all those SCSI jumpers (ID, termination, power on, SE/LVD, 
etc.) should be a thing of the past.


If the BIOS autodetects drives, why would the OS have so much trouble?  
My guess is the Linux kernel chooses to bypass the slow BIOS and access 
the hardware directly, which is why options such as hdx=stroke work with 
older BIOSes.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] AMI - Primary Master Hard Disk Error??

2005-06-04 Thread Colin
 one head, then LBA can't 
possibly be enabled, because that changes the CHS count to 
65536/*16*/63.  Go into the BIOS and try the different disk access 
modes, such as CHS, Large and LBA.  Don't just rely on autodetect.  If 1 
head is being reported, something's definitely messed up somewhere and 
that could be the cause of your problems.


Don't just stop at transfer modes.  Make sure all the drive information 
is correctly autodetected.  Try setting it to User and typing in your 
information manually (if using CHS or Large;  LBA doesn't need it).



2) Is it possible that an older drive might not be supported by the
IDE controllers in the ATI chipset? (I.e. - can the chipset simply not
talk to the drive?)
 

If it's an IDE drive on an IDE controller, then it should have no 
problems.  It's turning on ATA/5 (udma4) transfer mode, so are you using 
an 80-conductor cable instead of the old-school 40-wire?  (Rounded 
cables are always 80-conductor.)



I tried disconnecting the CDRW/DVD completely to see if it was a
conflict between the two EIDE devices but go the same failure. the
drive is seen but does not boot.
 

Linux may have trouble with drives set to Cable Select.  Change the 
jumpers in the back.  You might have them jumpered incorrectly or 
jumpered in some nonsense configuration.  (Most likely.)  Make sure the 
jumper pins aren't bent and touching each other, and set the drive to 
Master (or Slave) and the combo drive to the other setting..


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] /boot and booting...

2005-06-06 Thread Colin
On 6/5/05, Digby Tarvin <[EMAIL PROTECTED]> wrote:
> Following on from the recent discussions on grub and booting,
> is there a good reason for having a separate partition for /boot,
> other than perhaps to overcome BIOS addressing limitations for
> people with very large root partitions??

A separate /boot partition is more than likely for compatibility with
older BIOSes.  (You'll notice that other architectures, AFAIK, don't
need it.)  Some older BIOSes won't see past a certain limit (504 MB,
2.1 GB, 8.4 GB, 33.8 GB, 137 GB) and consequently, depending on your
BIOS, if your boot partition extends past that limit or if your kernel
image is stored past that limit (when using CHS instead of LBA), your
system will be unbootable.

Other OSes may observe the 1024-cylinder and/or the 2 GB boot
boundaries.  The BIOS 1024 cylinder limitation exists because the
start and end cylinder values in the partition table, and some BIOSs,
have a maximum value of 1024.  Because some operating systems such as
DOS 6.22 use the CHS (Cylinder, Head, and Sector) values to address
sectors on the disk, they cannot access sectors beyond the 1024th
cylinder. When you start your computer, the BIOS boots the operating
system using the CHS values to locate the first sector of the bootable
partition. If the partition starts past the 1024 cylinder, the BIOS
may not be able to boot it because it cannot address a cylinder number
higher than 1024.  Defeat this limitation by using a BIOS with Int13h
or LBA support, or by using Linux. :-)

The 2 GB boot code boundary exists because, with some older
OSes/BIOSes, the CHS value of the beginning boot code sector must be
calculated in order to retrieve the sector's information and load and
execute the next part of the boot process.  Because of the way the
boot code is written, the sector value, computed from the CHS value,
must fit in a 16-bit register, thus the maximum value that can be kept
is 64K.  If the number is larger than 64K, the number is truncated,
resulting in an incorrect value that skews the remaining calculations.
The boot process fails to load and execute the needed sector, thus
preventing the OS from booting.  Most current hard disks have 63
sectors per track, creating a 64K boot code boundary at 2 GB.  If a
partition begins or extends beyond this boundary, the CHS value of the
partition's boot code sector cannot be correctly calculated;
therefore, the partition and its OS cannot boot.  AFAIK, this only
affects older OSes, like DOS and WinNT 4.0, and BIOSes that aren't set
to LBA mode.  Like not Linux. :-)

(Paraphrased from the PowerQuest PartitionMagic help file.  Please
don't sue me.)

Keeping /boot as a tiny partition at the front of the disk makes sure
that your system can boot despite whatever curveball your old software
can throw at it.  If you're confident that these problems don't affect
you, feel free to merge /boot and /.  I usually don't do it, but I
thought I'd try it out.

Once the kernel kicks in, the kernel can do translation so that all of
your disk is visible and usable.  This is done by compiling in
translation or passing "hdx=stroke" to genkernel kernels (LiveCD's
included).  Of course, drive overlay software is still an option if
that's the way you like it, or if you dual-boot Windows.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] Bad performance with external USB disk

2005-06-08 Thread Colin

Richard Fish wrote:


Alec Shaner wrote:
 


I recently purchased a WD 160GB external USB drive and can't get it to
perform reliably on my server. It works fine when connected to my
workstation machine (a P4P800 ASUS MB with USB 2.0 support). The server
only has 1.1 USB support, but the problem is that it starts out copying
fine at about 11MB/sec and then after a bit slows to a crawl and stays
that way. I have formatted it with an ext3 filesystem. Here's all the
info if anyone has an idea.



With USB 1.1 you are not going to get more than about 1.2MB/s
throughput, because the top speed is 11 megabits/sec, not megabytes:

11 mbit / 8 bits-per-pyte = 1.375.

The initial burst you see at 11MB/sec is likely due to buffering.

Maybe you can answer this question.  I have an ATA/66 hard drive (66 
MBps) on an ATA/133 bus.  If the bus is limited to 133 MBps and the 
drive cannot transfer data at more than 66 MBps, how come burst 
transfers (as reported by hdparm -tT /dev/hdg) are at about 1.6 GBps?


Not that I'm complaining, of course, it just seems illogical :-)

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] Bad performance with external USB disk

2005-06-09 Thread Colin

Richard Fish wrote:


Alec Shaner wrote:
 


I recently purchased a WD 160GB external USB drive and can't get it to
perform reliably on my server. It works fine when connected to my
workstation machine (a P4P800 ASUS MB with USB 2.0 support). The server
only has 1.1 USB support, but the problem is that it starts out copying
fine at about 11MB/sec and then after a bit slows to a crawl and stays
that way. I have formatted it with an ext3 filesystem. Here's all the
info if anyone has an idea.



With USB 1.1 you are not going to get more than about 1.2MB/s
throughput, because the top speed is 11 megabits/sec, not megabytes:

11 mbit / 8 bits-per-pyte = 1.375.

The initial burst you see at 11MB/sec is likely due to buffering.

Maybe you can answer this question.  I have an ATA/66 parallel ATA hard 
drive (66 MBps) on an ATA/133 bus.  If the bus is limited to 133 MBps 
and the drive cannot transfer data at more than 66 MBps, how come burst 
transfers (as reported by hdparm -tT /dev/hdg) are at about 1.6 GBps?


Not that I'm complaining, of course, it just seems illogical :-)

--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] (OT) Try-to-stump Richard day - was Re: [gentoo-user] [OT] Bad performance with external USB disk

2005-06-09 Thread Colin

Richard Fish wrote:


Colin wrote:


Maybe you can answer this question.  I have an ATA/66 hard drive (66
MBps) on an ATA/133 bus.  If the bus is limited to 133 MBps and the
drive cannot transfer data at more than 66 MBps, how come burst
transfers (as reported by hdparm -tT /dev/hdg) are at about 1.6 GBps?

Not that I'm complaining, of course, it just seems illogical :-)


Is it try-to-stump-Richard-day again already??? ;->

It is because of the way the -T test is implemented, which is to just
read the first block of data over and over again.  Because hdparm
doesn't specify the O_DIRECT flag on open, the kernel will buffer the
data in system memory for the first read, and return the same for all
subsequent reads.  So the number returned equals 1/2 of your system
memory bandwidth, since copying the buffer from one memory location to
another involves both reading and writing.
 

Oh OK.  I thought the buffered result was kept in the drive's memory, 
not the system's.


All right, since it's try-to-stump-Richard-day, let me throw out one 
more question.  This one should be easier.  Pin 40 broke off this hard 
drive's connector.  The IDE specification says it's just a grounding 
pin, one out of many on the connector, so it shouldn't hurt anything.  
Right?


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] A better USE flags documentation?

2005-06-09 Thread Colin
I've been Gentooing for some time now, but there are still USE flags 
that confound me.  Like "ftp" and "ssl," for instance--do you need those 
to make FTP/HTTPS connections in a web browser, or are those flags just 
for incoming connections, as with FTP/Web servers?  Does "-mozilla" 
block Firefox- and Thunderbird-related stuff?  And what happens to use 
flags that aren't specified--are they treated as "flag" or "-flag?"


I've got a lot of questions, but gentoo.org's USE flag documentation 
really isn't all that great.  More than one line about a flag would 
help.  Is there any better documentation out there?


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] problem booting from a USB flash drive

2005-06-09 Thread Colin

Zac Medico wrote:


Probably.  You can save space with a compressed
filesystem like jjfs or squashfs.  You probably want
to mount it read only since flash has limited write
cycles.

You say the kernel messages indicate that the flash
disk was recognized as sda so I'm not sure why it's
not mounting for you.  I looked through
linux/Documentation/kernel-parameters.txt and saw a
"rootdelay" parameter.  With the modules I need a
delay for the usb drivers to initialize.  Maybe you
need that too.  Try rootdelay=5 or rootdelay=10 or
something.

Kind of off on a tangent, but there are other alternatives to a 
write-protected file system.  Instead of using a USB flash disk, there 
are IDE-CompactFlash adapters that would achieve the same result but 
with 100% IDE compatibility, so the disk just shows up as /dev/hd[x] 
like a normal hard drive and doesn't require any rootdelaying or USB 
drivers.  I don't know if CF cards are lockable, I know SD's are.  CF is 
kind of costly, though, especially if you want faster media.


SCSI wouldn't be worth the money here (disks can be write-protected at 
the hardware level via a jumper), but maybe a nice Ultra160 15 kRPM 
drive on your back-end server would make a good investment.

--

Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Can't build OpenSSH, requires Perl 5

2005-06-10 Thread Colin
I'm compiling my system (emerge -env system), but when it gets down to 
building OpenSSH, it fails, saying "You need Perl 5."  Pretending and 
checking the tree shows that Perl 5 will be emerged later on during the 
install.  Attempting to "emerge -v perl" attempts to emerge svgalib as 
well (since I haven't built the system), which fails saying that the 
kernel has not been configured yet.


Any ideas?

--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Can't build OpenSSH, requires Perl 5

2005-06-10 Thread Colin

Zac Medico wrote:


--- Colin <[EMAIL PROTECTED]> wrote:


I'm compiling my system (emerge -env system), but
when it gets down to 
building OpenSSH, it fails, saying "You need Perl
5."  Pretending and 
checking the tree shows that Perl 5 will be emerged
later on during the 
install.  Attempting to "emerge -v perl" attempts to
emerge svgalib as 
well (since I haven't built the system), which fails
saying that the 
kernel has not been configured yet.



I would just add USE="-svga" to make.conf because I
don't need svgalib.
 

I don't plan on playing console games, so I'll change USE to -svga for 
now.  I can always emerge --newuse system later on anyway.


Now that I've been thinking about it for a while, if OpenSSH needs Perl, 
shouldn't Perl be built before OpenSSH?  This seems like an ebuild bug 
to me.



If you want to compile it then you need the kernel
source and .config in /usr/src/linux.  If you've lost
your .config then maybe you can do "gzip -dc
/proc/config.gz > /usr/src/linux/.config".  Then run
the following commands:

cd /usr/src/linux
make oldconfig
make modules_prepare

That should configure the sources sufficiently for you
to compile modules.  
 

That would work, except I haven't reached step seven of the 
installation.  I'm doing it from stage1, and I'm only up to stage two 
right now.


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
This is really annoying.  I just finished a Gentoo install on my
computer and rebooted after installing GRUB with the command
"grub-install --root-directory=/boot /dev/hde" as stated in the
Handbook.  Right after GRUB loads the stage1.5 file, the system
reboots.

The first partition is active.  Marking partition 2 as active can't
get me into Windows, though, so I'm kinda screwed ATM.

I created my Gentoo partitions by resizing my NTFS partition with
PartitionMagic (I love that software).  I moved it down the disk by 32
MB, shrunk it by 20 GB, and converted /home/colin and my swap
partition to logical ones.  Windows still booted, even after
formatting the partitions.  I also used PM to switch the entries in
the partition table, so that my partitions would be numbered in disk
order--a change to BOOT.INI and Windows still worked.

It's /dev/hde because it's hooked up to my motherboard's on-board RAID
controller--it's got its own CPU, so data transfers are faster.  I
wanted to use two hard drives, but my other drive was giving a lot of
DMA errors and sector read errors.  (Surprisingly, it runs fine under
Windows.)

/boot/grub/grub.conf
===
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r9
root (hd0,0)
kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap vga=0x31B

title=Windows XP Pro SP2
rootnoverify (hd0,1)
makeactive
chainloader +1

/etc/fstab (so you can get an idea of my partitions)
===
/dev/hde1 /boot   ext3 defaults,noatime 1 2
/dev/hde2 /mnt/windrive   ntfs  
ro,umask=070,fmask=070,dmask=070   0 0
/dev/hde3 / reiserfs attrs    
0 1
/dev/hde5 /home/colin vfat  
umask=000,fmask=000,dmask=000 0 0
/dev/hde6 none   swapsw 0 0
# That's it for hard drives, the rest is removable media, /proc, /dev/shm

-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
Firstly, A. Khattri, I had the grub.conf correct on the disk.  I just
mistyped it here.  There is no equal sign after kernel.

On 6/13/05, Richard Fish <[EMAIL PROTECTED]> wrote: 
> What does /boot/grub/device.map contain?
>
> Assuming that it has a line that reads "(hd0) /dev/hde", then everything
> should be correct.

(fd0) /dev/fd0
(hd0) /dev/hde
(hd1) /dev/hdg

And it is.

> I guess your next step would be to get dirty with grub.  Start with the
> following:
> 
> # grub --device-map=/boot/grub/device.map
> grub> root (hd0,0)
>  Filesystem type is ext2fs, partition type 0x83
> 
> grub> setup (hd0)
>  Checking if "/boot/grub/stage1" exists... no
>  Checking if "/grub/stage1" exists... yes
>  Checking if "/grub/stage2" exists... yes
>  Checking if "/grub/e2fs_stage1_5" exists... yes
>  Running "embed /grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
> succeeded
>  Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2
> /grub/menu.lst"... succeeded
> 
> The command we are looking for is that final 'install' command.  We need
> to run that again, adding a 'd' after stage1:
> 
> grub> install /grub/stage1 d (hd0) (hd0)1+16 p (hd0,0)/grub/stage2
> /grub/menu.lst
> 
> grub> quit

Okay, I tried that.  No dice.  I tried removing all occurences of
/boot in case it didn't like symlinks, but that didn't work either.

> The 'd' option is a workaround for BIOSs that get confused about which
> drive is being used to boot.

No, I haven't had problems booting before.  The RAID controller's BIOS
is set to boot from the primary master (/dev/hde).  Windows liked it.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
On 6/13/05, Richard Fish <[EMAIL PROTECTED]> wrote:
> A. Khattri wrote:
> 
> > On Mon, 13 Jun 2005, Colin wrote:
> >
> >> /boot/grub/grub.conf
> >> ===
> >> default 0
> >> timeout 10
> >> splashimage=(hd0,0)/grub/splash.xpm.gz
> >>
> >> title=Gentoo Linux 2.6.11-r9
> >> root (hd0,0)
> >> kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3
> >> video=vesafb:mtrr,ywrap vga=0x31B
> >
> >
> > Shouldn't that be:
> >
> > kernel /kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap
> > vga=0x31B
> >
> 
> Good catch!  Yes, fix this first.  Also, there is no '=' for the title.

The handbook shows an equal sign.  It's worked before on another system.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
On 6/13/05, Richard Fish <[EMAIL PROTECTED]> wrote:
> Colin wrote:
> 
> > Okay, I tried that. No dice. I tried removing all occurences of
> > /boot in case it didn't like symlinks, but that didn't work either.
> 
> 
> Well, I didn't expect to find any 'dice' here.maybe some error
> output or at least a better description (command failed, same reboot
> problem, ...?) ;->

No dice = no luck.  It's not a very common phrase, at least not where I live.

Anyway, the same problem is still here.  When the BIOS gives GRUB
control, it shows a message that it's loading stage 1.5.  And then,
almost instantly, the system reboots.  I don't know if stage 1.5 loads
or not.  I don't suppose there's a way to recompile it to show
debugging output?

> >>The 'd' option is a workaround for BIOSs that get confused about which
> >>drive is being used to boot.
> >
> >No, I haven't had problems booting before.  The RAID controller's BIOS
> >is set to boot from the primary master (/dev/hde).  Windows liked it.
> >
> Have you booted Linux before on this controller?  Don't assume the BIOS
> isn't brain damaged, just because Windows likes it.

No, I haven't.  The 2004.3 LiveCD would hang when booted because it
couldn't get the right timings for the HPT372N, or something like
that, I forget.  2005.0 (2.6.11-gentoo-r3) is the first Gentoo LiveCD
to support my controller, so there still might be a few bugs to work
out.

If it helps any, it's a Highpoint HPT372N IDE RAID controller,
integrated into my motherboard (DFI LANParty PRO875B, Intel i865
"Canterwood" chipset).  The hard drive in question is a Western
Digital, 120 GB ATA/100, 2 MB cache.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] AthlonXP flags

2005-06-13 Thread Colin
On 6/13/05, Allan Spagnol Comar <[EMAIL PROTECTED]> wrote:
> I was looking over the internet for some CFLAGS for athlon XP and I
> didn't found any. Does someone knows what are the best C and CXXFLASG
> for athlon XP ?

You'll want the usual -O2 -pipe -fomit-frame-pointer, but also use
-march=athlon-xp.  If your processor supports MMX, 3DNow!, SSE or
SSE2, add those flags in as well.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin
On 6/13/05, Richard Fish <[EMAIL PROTECTED]> wrote:
> Colin wrote:
> 
> >On 6/13/05, Richard Fish <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Colin wrote:
> >>
> >>
> >>
> >>>Okay, I tried that. No dice. I tried removing all occurences of
> >>>/boot in case it didn't like symlinks, but that didn't work either.
> >>>
> >>>
> >>Well, I didn't expect to find any 'dice' here.maybe some error
> >>output or at least a better description (command failed, same reboot
> >>problem, ...?) ;->
> >>
> >>
> >
> >No dice = no luck.  It's not a very common phrase, at least not where I live.
> >
> >
> 
> Actually, I got the reference...I was just being a bit condescending
> about the lack of information in that phrase.  Forgive me.

No problem.  Besides, a lot of people on this list don't have English
as their first language.  It's good to point out idioms anyway.

> >Anyway, the same problem is still here.  When the BIOS gives GRUB
> >control, it shows a message that it's loading stage 1.5.  And then,
> >almost instantly, the system reboots.  I don't know if stage 1.5 loads
> >or not.  I don't suppose there's a way to recompile it to show
> >debugging output?
> 
> Well, the "loading stage 1.5" message comes *from* the stage 1.5, and I
> think it is pretty much impossible for that to fail to load since it is
> embedded in the space between the MBR and the first partition and block
> mapped.
> 
> More likely is that grub gets confused trying to talk to the RAID BIOS,
> and either cannot decipher the ext2 filesystem to find the stage2, or
> loads what it thinks is the stage2 but turns out to be garbage that
> causes the reboot.
> 
> One remaining possiblity here: try renaming /boot/grub/e2fs_stage1_5 to
> e2fs_stage1_5.sav.  Then run:
> 
> # grub --device-map=/boot/grub/device.map
> grub> root (hd0,0)
> ...
> grub> setup (hd0)
> ...
> grub> quit
> ...
> 
> The setup command should show '"e2fs_stage1_5" exists...no'.  But the
> install command should still show "succeeded" at the end.  If that all
> looks good, try rebooting.

It worked!  One would think stage1.5 would be an integral step between
1 and 2, but apparently now.  Gentoo works!  (And Windows does too...)
 I got a lot of errors while booting Gentoo, so I've still got a few
bugs to work out.  Thanks, guys.
-- 
Colin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin

Holly Bostick wrote:


Colin schreef:
 


On Mon, 13 Jun 2005, Colin wrote:


   


/boot/grub/grub.conf
===
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r9
root (hd0,0)
kernel=/kernel-2.6.11-gentoo-r9 root=/dev/hde3
video=vesafb:mtrr,ywrap vga=0x31B
 


Shouldn't that be:

kernel /kernel-2.6.11-gentoo-r9 root=/dev/hde3 video=vesafb:mtrr,ywrap
vga=0x31B


Good catch!  Yes, fix this first.  Also, there is no '=' for the title.
 


The handbook shows an equal sign.  It's worked before on another system.
   



No, it does not:

Code Listing 3: grub.conf for non-genkernel users

[snip]

title=Gentoo Linux 2.6.11-r3

[snip]
 

No, there it is right there.  You can see the equal sign right after 
title.  I've fixed GRUB and it's working just fine, and the equal sign 
is still there.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] AthlonXP flags

2005-06-13 Thread Colin

Mark Shields wrote:


Oh, Raphael, concerning what you said: "By the way, look for something about using sse 
instruction for math. It speeds things up a bit.".  I think you're speaking of 
"-mfpmath=sse".

You might want to specify -mfpmath=sse,387 instead.  SSE is capable of 
faster, more precise math than the 387 coprocessor.  But not all 
programs like/use SSE, so always specify a fallback.


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Reboot when GRUB starts

2005-06-13 Thread Colin

Richard Fish wrote:


Colin wrote:
 


It worked!  One would think stage1.5 would be an integral step between
1 and 2, but apparently now.  Gentoo works!  (And Windows does too...)
I got a lot of errors while booting Gentoo, so I've still got a few
bugs to work out.  Thanks, guys.


The stage1.5 is really a minimal stage2...it is supposed to contain just
enough code to decipher the filesystem and locate the real stage2.

So, here comes the "bad" news.  If you do anything that moves, updates,
or restores the stage2 file, you *must* run those setup instructions
again.  This is because the location of the stage2 is now block-mapped
into the stage1.

In fact, you might want to "chattr +i /boot/grub/stage2", update
package.mask to exclude new versions of grub, etc...

Two commands inside a GRUB shell doesn't sound too bad.  Still, I think 
I should work on getting that stage1.5 file working.


Do you think the file might have been damaged somehow?  Maybe it just 
didn't like my CFLAGS?


--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] Secure web document

2005-06-14 Thread Colin

Heinz Sporn wrote:


Hi!

Viewing / reading implies that the information has already been transferred 
(downloaded and rendered) to a client browser. So I don't think that you could 
totally prevent information extraction on the client side.

Even if you prevent people from copying and pasting, you can't stop them 
from opening up nano and just typing a copy by hand, pointing a camera 
at the screen, taking screen captures, memorizing all the information 
and then telling someone, dictating it into a tape recorder... the best 
way to secure your files is to not put them on the Internet.  Just print 
them out and hand them to someone along with a non-disclosure agreement.


Or, a little trick I picked up from the TV show "Ghost in the Shell."  
Convert all the text into barcodes and just let people's cyber-brains 
decode the barcodes.  This technology, though, is definitely not ready 
for the general population... :-)


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] ndiswrapper problems

2005-06-16 Thread Colin
Finally.  I'm sending this email from a working Gentoo system.

My wireless card (D-Link DWL-120+, ACX100 chipset) had trouble with
acx100, so I unmerged that and gave ndiswrapper a shot.  As you can see,
it works, despite not being listed on ndiswrapper's compatibility page. 
(I should probably add it.)

Anyway, the problem here is that when you reboot the system, the
wireless card doesn't find my access point (D-Link DI-614+), not even
with "iwlist wlan0 scan".  It's only after bringing down wlan0, bringing
up wlan0, and issuing "iwconfig wlan0 mode managed essid "" channel  key open s: nick "" commit" that it might come online.  And then I need to run
dhcpcd and then re-add the gateway (it's a different computer, not the
AP).  If it still doesn't work, I just mess around until I can ping an
outside host.

Is there an easier way to make this cheap card work without manual
configuration all the time?  net.wlan0 isn't in my /etc/init.d
directory, but I did add wlan0 is in the autoloaded modules list. 
Kernel 2.6.11-gentoo-r11.  Using the tiacxusb.sys and tiacxusb.inf
Windows drivers.
--
Colin
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] SB Audigy Platinum (emu10k1) mixers

2005-06-16 Thread Colin
There are so many of them, and the names don't correspond with what they
do in Windows.  I can figure out what most of them mean, but there are a
few mixers that I just can't figure out.  Maybe someone can help me
complete this list?

Master - Master Volume
Tone - ?
Bass
Treble
PCM - ?
PCM Center - ?
PCM Front - ?
PCM LFE - ?
PCM Surround - ?
Front - Front speaker volume
Surround - Rear speaker volume?
Center - Center channel volume
LFE - Subwoofer volume
Music - MIDI synthesizer volume?
Line - The analog line input on the back of the card
Line2 - The microphone jack on the LiveDrive
CD - Is this the analog (4-pin cable) or digital (2-pin) connector?
Mic - Microphone jack on the card
Mic Boost - 20 dB microphone boost
Phone - TAD port on the card.
IEC958 Optical  - ?  (It's either SPDIF in, SPDIF out, optical in or
optical out.)
IEC958 Optical Raw - ?
PC Speaker - ?
Aux - Auxiliary MPC-2 4-pin input on the card.
Aux2 - The RCA jacks on the LiveDrive
Analog Mix - CD, Line In, Line In 2, Aux, Aux 2, Mic, Phone (if I
remember correctly)
Audigy Analog/Digital Output Jack - As far as I can tell, this switches
between analog output and digital output
Audigy CD - Maybe the digital CD (2-pin) input?
External Amplifier - Does this toggle SPDIF AC-3 decoding?  That's my
best guess.

System information:  Using ALSA 1.0.8, emu10k1 support is compiled into
my kernel, 2.6.11-gentoo-r11.  Sound works perfectly.  I have the
LiveDrive! attachment for the card... I love that thing.  As reported by
AlsaMixer:  Card=Sound Blaster Audigy.  Chip=TriTech TR28602.
--
Colin
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Is the Gaim window dockable?

2005-06-16 Thread Colin
There was an option to make the window dockable in the Windows port.  I
really miss that feature, since windows would (or they were supposed to,
most did) maximize around the window, so that the Buddy List was
effectively a panel docked on the side of the screen.

Can the Buddy List be docked under GNOME?  I'm using Gaim 1.3.0.
--
Colin
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Can't mount vfat partition

2005-06-16 Thread Colin
I just can't mount this FAT32 partition:
/dev/hde5   /home/colin/Documents   vfat   
uid=colin,umask=122   0 0

When I try to mount it, I get this error:
mount: wrong fs type, bad option, bad superblock on /dev/hde5,
   or too many mounted file systems

I've tried every mount command I could think of.  It mounted under the
LiveCD.  Yes, I've compiled in msdos, VFAT and NTFS support, but it just
refuses to mount.
--
Colin
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Scroll wheel doesn't scroll

2005-06-16 Thread Colin
Sorry for all the messages all at once.  I've noticed recently that my
mouse's scroll wheel isn't working.  How do I turn on the wheel in X
(since I'm guessing it's off)?
--
Colin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Can't mount vfat partition

2005-06-16 Thread Colin
Zac Medico wrote:

>Colin wrote:
>  
>
>>I just can't mount this FAT32 partition:
>>/dev/hde5   /home/colin/Documents   vfat   
>>uid=colin,umask=122   0 0
>>
>>When I try to mount it, I get this error:
>>mount: wrong fs type, bad option, bad superblock on /dev/hde5,
>>   or too many mounted file systems
>>
>>I've tried every mount command I could think of.  It mounted under the
>>LiveCD.  Yes, I've compiled in msdos, VFAT and NTFS support, but it just
>>refuses to mount.
>>--
>>Colin
>>
>>
>
>
>After you try to mount does the output of "dmesg|tail" have anything 
>interesting?  What's the output of "fdisk -l /dev/hde"?  Have you been able to 
>mount other vfat filesystems with this kernel, perhaps a floppy or usb flash 
>drive?
>  
>
Found it!  It was complaining about the iocharset "iso-8859-1" not
existing.  I must have mistyped that when I was building the kernel.  I
just stuck iocharset=iso8859-1 into my fstab and now it mounted just
fine.  Thanks for the tip, didn't expect to find that in dmesg--I
thought that was just for boot-up messages.
--
Colin
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is the Gaim window dockable?

2005-06-16 Thread Colin
Ow Mun Heng wrote:

>On Thu, 2005-06-16 at 03:38 -0400, Colin wrote:
>  
>
>>There was an option to make the window dockable in the Windows port.  I
>>really miss that feature, since windows would (or they were supposed to,
>>most did) maximize around the window, so that the Buddy List was
>>effectively a panel docked on the side of the screen.
>>
>>Can the Buddy List be docked under GNOME?  I'm using Gaim 1.3.0.
>>
>>
>
>yep.. 
>
>->pref->plugins->sys tray icon
>  
>
All I see is the option "Hide new messages until tray icon is clicked." 
I just upgraded to Gaim 1.3.1;  maybe your version is older.
--
Colin
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] ...and now, blocked packages

2005-06-16 Thread Colin
I went to do an emerge -Duvn world (I changed my USE flags), and
apparently, I've somehow installed conflicting packages... don't ask me how.

[blocks B ] 

[gentoo-user] Major ndiswrapper problems - was Re: [gentoo-user] ndiswrapper problems

2005-06-16 Thread Colin

Craig Duncan wrote:


Colin wrote:

 


Finally.  I'm sending this email from a working Gentoo system.

My wireless card (D-Link DWL-120+, ACX100 chipset) had trouble with
acx100, so I unmerged that and gave ndiswrapper a shot.  As you can see,
it works, despite not being listed on ndiswrapper's compatibility page. 
(I should probably add it.)


Anyway, the problem here is that when you reboot the system, the
wireless card doesn't find my access point (D-Link DI-614+), not even
with "iwlist wlan0 scan".  It's only after bringing down wlan0, bringing
up wlan0, and issuing "iwconfig wlan0 mode managed essid "" channel  key open s: nick "" commit" that it might come online.  And then I need to run
dhcpcd and then re-add the gateway (it's a different computer, not the
AP).  If it still doesn't work, I just mess around until I can ping an
outside host.

Is there an easier way to make this cheap card work without manual
configuration all the time?  net.wlan0 isn't in my /etc/init.d
directory, but I did add wlan0 is in the autoloaded modules list. 
Kernel 2.6.11-gentoo-r11.  Using the tiacxusb.sys and tiacxusb.inf

Windows drivers.
--
Colin


   


First make a link in /etc/init.d for your wireless device (wlan0), here
is what I have ...

rwxr-xr-x   1 root root 24246 Apr 14 18:24 net.lo
lrwxrwxrwx   1 root root 6 Apr 14 18:24 net.eth0 -> net.lo
lrwxrwxrwx   1 root root 8 Oct 26  2004 net.wlan0 -> net.eth0

Next add this to the default runlevel
rc-update add net.wlan0 default

Finally, edit /etc/conf.d/wireless and put your settings in there (read
the wireless.example first).

Test: /etc/init.d/net.wlan0 restart

I'd give that a shot, but Linux seems to lock up randomly.  Commands 
such as ping  and dhcpcd sometimes crash the system.  It only 
spits out a panic message when it crashes outside of X, and when it 
does, ndiswrapper is mentioned in the panic.  The only reason for it 
crashing that I can come up with would be my kernel upgrade 
(2.6.11-gentoo-r9 to -r11), but it was working after the upgrade for 
like a day or so.


It doesn't lock up if the wireless card isn't connected to my network.  
It seems right after I connect to the network and send a few packets, 
the entire system locks up.


I hate this card.  I'm going to buy a Linux-compatible PCI wireless card 
(Prism chipset) and then sell this one to some Windows user on eBay.  
But in the meantime, I'd like to see if I can get this one working.


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Filesystem wars - ReiserFS 3.6 vs. JFS

2005-06-20 Thread Colin

Who is Colonel Panic and why did he crash my computer?  :-P

Anyway, I had a kernel panic, which ended up destroying my ReiserFS partition.  
I had to rebuild the tree from scratch as reiserfsck recommended, and I ended 
up with my complete Gentoo install in the lost+found folder.  I salvaged what I 
wanted (distfiles and some configuration files from /etc) to make 
re-installation much easier, and instead of renaming all the folders and moving 
them back into place (impossible, anyway), I'm going to reformat and re-install 
everything from scratch.

Right now, I'm having PartitionMagic 8.0 check each sector of the disk, to see 
if it was a hardware problem.  (It'd better not be, I bought this disk not even 
a year ago!)

I might go with ReiserFS again, because no filesystem is perfect, but Reiser 
comes very close to it despite this latest problem.  I'm also considering JFS, 
but I can't find any comments about it.  Has anyone on this list had any 
experience with JFS as a general-purpose file system, and would you recommend 
it over ReiserFS 3.6?
--
Colin

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Filesystem wars - ReiserFS 3.6 vs. JFS

2005-06-21 Thread Colin

A. Khattri wrote:


On Tue, 21 Jun 2005, Colin wrote:
 


Right now, I'm having PartitionMagic 8.0 check each sector of the disk,
to see if it was a hardware problem.  (It'd better not be, I bought this
disk not even a year ago!)
   


If its Maxtor I would not be surprised...

Nope, Western Digital.  Their drives are pretty good.  I've got an old 
700 MB drive from 1994 that's still alive and seeking.  Besides, 
PartitionMagic found no errors.


I used to use a Maxtor, though.  That thing was 7200 RPM, ATA/133 and 
very thin, so it got very hot very quickly.  I wouldn't be surprised if 
it failed.  Now it's running the family computer, which is fairly 
well-ventilated.  I stuck a heatsink/fan on the bottom of the drive just 
in case;  it runs much cooler now.


This filesystem wipeout was my fault anyway.  I made a n00b mistake 
involving /dev... let's not go off-topic.


--
Colin

--
gentoo-user@gentoo.org mailing list



[gentoo-user] (Slightly OT) PC IDE cards in a Gentoo-ed Mac?

2005-06-21 Thread Colin
Mac IDE cards are more expensive than PC IDE cards.  I've got a SIIG 
Ultra ATA 100 PCI RAID controller lying around and a couple of IDE 
drives.  Now, the card's firmware isn't Mac compatible, and none of my 
Macs (all PCI-based OldWorld architecture) have onboard IDE.  Would the 
PowerPC version of Gentoo (2.6.10-gentoo-r8) be able to detect and use 
this card?


As for booting the system once it's installed, would quik be able to 
detect the card or would I still need a SCSI disk to boot the Mac OS 
(for BootX)?


--
Colin

--
gentoo-user@gentoo.org mailing list



  1   2   >