BLAG

BLAG Forums
It is currently Sat Dec 20, 2014 12:57 am

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Fri Apr 02, 2004 12:48 pm 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
Yippy-yippy-yaya!

25.03.2004
Took my laptops (which I call plates bty) down to BLAG in Loughborough.
Plate 1:- Hewlet Packard Compaq nx9005, A.K.A, "The frying pan"
Ozzy: Windahs xp and Fedora Core One
Problem:- Windahs XP overwrote the MBR so I have to boot up with a Fedora floppy, which is a pain.

Plate 2: IBM Think Pad 600 (type 2645), a.k.a "babe" (mwoa!)
Problem:- Can't seem to install BLAG on it.

Both problems where sorted fairly easily buy the guys. Turns out that I didn't burn the cd as an ISO image -grrrr! jeff typed in some commands and got my grub back ¬)

A few days later... Laptop One is still cooking on gas - literally! Laptop two.....

... can't seem to establish an ethernet connection. tried the usual <rehat-config-network> and <rehat-config-services>.

Grrrr big time. Sent an email to Jeff, who sent back a few commads, one of which was <lshw>. Fine. Read the man page, noted the options and tried the command. Bah! Nothing doing - command not found. Did a <man -k pcm> to find all of the pcmcia - related man pages, then I had a though....

... why don't I write a short script to tell me which commands work?

Basic steps ¬}

part 1 | part 2 >> somefile.txt

part 1 is man -k foo # this lists all the man pages that relate to foo
part 2 awk '/bar/ {print $1}' # this prints the first word of part one, which __usually__ is a commad

somefile.txt # the output of `part 2` is a list of commands extracted from the man pages that relate to the command `foo`.

loop and which # I looked over Jeff's shoulder and he used a for loop so athat a variable changed dynamically at each itteration of said loop. {Methinks : neat}

Wrote the thing last night and it does work! Will put it some where after I return from work. Where shall I put this bash script lads? Here or on the wikki thingy?

I'll think of a way of documenting it so that you all could make sense of it immediately and slag it of || use it accordingly.

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 02, 2004 3:47 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
Ya, the `lshw` thing was so I could find out what kind of card you have. I did get the photo of it, but I need to know the /insides/ ;) I hadn't heard of the card ("safeway" IIRC). Most pcmcia ethernet cards work fine. This one is likely a re-labeled common chipset. Basically, finding out what chipset is in it will make it possible to use the correct driver.

If the man pages for lshw are there, the command is there. The full path is:
/usr/sbin/lshw

Also, running lshw as root will give you more info than running it as a regular user.



You can find all commands on the system thusly:

ls /bin /usr/bin /sbin /usr/sbin /usr/X11/bin /usr/X11/sbin /usr/local/bin /usr/local/sbin



As user root, those are the paths that get searched for a command. As a regular user /sbin and /usr/sbin are left out as they are typically run as root. I usually add them to my path as will by editing my .bashrc
PATH=$PATH:/usr/sbin:/sbin

You can find out what your PATH is by running:
echo $PATH



The grub command was `grub-install /dev/hda`


-Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 03, 2004 8:39 am 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
Thanks for the reply Jeff.

I have added the directories to my pth as you have specified and issued the commands lshw and lspci.

__________________________________________________________________________
out put from lshw
__________________________________________________________________________
localhost.localdomain
description: Computer
product: 2645450
vendor: IBM
version: Not Available
serial: 5519YPZ
capabilities: dmi-2.0
*-core
description: Motherboard
product: 2645450
vendor: IBM
physical id: 0
version: Not Available
serial: J18927402PL
*-firmware
description: BIOS
vendor: IBM
physical id: 1
version: IBET40WW (04/12/99)
size: 64KB
capacity: 448KB
capabilities: isa pci pcmcia pnp apm upgrade shadowing cdboot bootselect pcmciaboot edd int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video biosbootspecification
*-cpu
description: CPU
product: Pentium II (Deschutes)
vendor: Intel Corp.
physical id: 5
version: 6.5.2
slot: Intel Processor Module
size: 298MHz
capacity: 300MHz
clock: 66MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
*-cache:0
description: L1 cache
physical id: 0
size: 32KB
*-cache:1
description: L2 cache
physical id: 1
size: 512KB
*-memory
description: System memory
product: DIMM SDRAM Memory Controller
physical id: 6
size: 96MB
capacity: 768MB
*-bank:0
description: SDRAM
physical id: 0
slot: Base Memory
size: 32MB
capacity: 32MB
*-bank:1
description: DIMM SDRAM
physical id: 1
slot: DIMM Slot 1
size: 64MB
capacity: 64MB
*-bank:2
physical id: 2
slot: DIMM Slot 2
*-cache:0 UNCLAIMED
description: L1 cache
physical id: a
slot: N/A
size: 32KB
capacity: 32KB
capabilities: synchronous internal write-back
*-cache:1 UNCLAIMED
description: L2 cache
physical id: b
slot: N/A
size: 512KB
capacity: 512KB
capabilities: pipeline-burst external write-back
*-pci
description: Host bridge
product: 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (AGP disabled)
vendor: Intel Corp.
physical id: 100
bus info: pci@00:00.0
version: 02
clock: 33MHz
*-pcmcia:0
description: CardBus bridge
product: PCI1250
vendor: Texas Instruments
physical id: 2
bus info: pci@00:02.0
version: 02
clock: 33MHz
capabilities: pcmcia bus_master cap_list
configuration: driver=cardbus
resources: iomemory:20301000-20301fff irq:11
*-network
description: Realtek
physical id: 0
version: Rtl8139
slot: Socket 0
resources: irq:11
*-pcmcia:1
description: CardBus bridge
product: PCI1250
vendor: Texas Instruments
physical id: 2.1
bus info: pci@00:02.1
version: 02
clock: 33MHz
capabilities: pcmcia bus_master cap_list
configuration: driver=cardbus
resources: iomemory:20300000-20300fff irq:11
*-display UNCLAIMED
description: VGA compatible controller (VGA)
product: NM2160 [MagicGraph 128XD]
vendor: Neomagic Corporation
physical id: 3
bus info: pci@00:03.0
version: 01
size: 16MB
clock: 33MHz
capabilities: vga bus_master
resources: iomemory:e0000000-e0ffffff iomemory:20000000-201fffff iomemory:20200000-202fffff irq:11
*-bridge:0 UNCLAIMED
description: Bridge
product: 82371AB/EB/MB PIIX4 ISA
vendor: Intel Corp.
physical id: 7
bus info: pci@00:07.0
version: 01
clock: 33MHz
capabilities: bridge bus_master
*-ide
description: IDE interface
product: 82371AB/EB/MB PIIX4 IDE
vendor: Intel Corp.
physical id: 7.1
bus info: pci@00:07.1
version: 01
clock: 33MHz
capabilities: ide bus_master
configuration: driver=PIIX IDE
resources: ioport:fcf0-fcff
*-ide:0
description: Channel 0
physical id: 0
bus info: ide@0
logical name: ide0
clock: 33MHz
*-disk
description: ATA Disk
product: IBM-DARA-212000
vendor: IBM
physical id: 0
bus info: ide@0:master
logical name: /dev/hda
version: AR4OA5AA
serial: AH0AHMV7091
size: 11GB
capacity: 11GB
capabilities: ata dma lba iordy smart security pm apm
configuration: apm=off mode=udma2 smart=on
*-ide:1
description: Channel 1
physical id: 1
bus info: ide@1
logical name: ide1
clock: 33MHz
*-cdrom
description: IDE CD-ROM
product: SANYO CRD-S372BV
physical id: 0
bus info: ide@1:master
logical name: /dev/hdc
version: 1.24VB
capabilities: atapi cdrom removable nonmagnetic dma lba iordy audio
*-usb
description: USB Controller (UHCI)
product: 82371AB/EB/MB PIIX4 USB
vendor: Intel Corp.
physical id: 7.2
bus info: pci@00:07.2
version: 01
clock: 33MHz
capabilities: uhci bus_master
configuration: driver=usb-uhci
resources: ioport:8400-841f irq:11
*-bridge:1 UNCLAIMED
description: Bridge
product: 82371AB/EB/MB PIIX4 ACPI
vendor: Intel Corp.
physical id: 7.3
bus info: pci@00:07.3
version: 01
clock: 33MHz
capabilities: bridge
resources: irq:9
*-network UNCLAIMED
description: Ethernet controller
product: RTL-8139/8139C/8139C+
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@01:00.0
version: 10
clock: 33MHz
capabilities: cap_list
resources: ioport:4000-40ff iomemory:10400000-104001ff irq:11

_______________________________________________________________________
output from lspcii -vvv
________________________________________________________________________

00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (AGP disabled) (rev 02)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR+
Latency: 64
Region 0: Memory at <unassigned> (32-bit, prefetchable) [size=256M]

00:02.0 CardBus bridge: Texas Instruments PCI1250 (rev 02)
Subsystem: IBM: Unknown device 0092
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 168, cache line size 04
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 20301000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=01, subordinate=03, sec-latency=176
Memory window 0: 10000000-103ff000 (prefetchable)
Memory window 1: 10400000-107ff000
I/O window 0: 00004000-000040ff
I/O window 1: 00004400-000044ff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
16-bit legacy interface ports at 0001

00:02.1 CardBus bridge: Texas Instruments PCI1250 (rev 02)
Subsystem: IBM: Unknown device 0092
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 168, cache line size 04
Interrupt: pin B routed to IRQ 11
Region 0: Memory at 20300000 (32-bit, non-prefetchable) [size=4K]
Bus: primary=00, secondary=04, subordinate=06, sec-latency=176
Memory window 0: 10800000-10bff000 (prefetchable)
Memory window 1: 10c00000-10fff000
I/O window 0: 00004800-000048ff
I/O window 1: 00004c00-00004cff
BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
16-bit legacy interface ports at 0001

00:03.0 VGA compatible controller: Neomagic Corporation NM2160 [MagicGraph 128XD] (rev 01) (prog-if 00 [VGA])
Subsystem: IBM MagicGraph 128XD
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 128 (4000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=16M]
Region 1: Memory at 20000000 (32-bit, non-prefetchable) [size=2M]
Region 2: Memory at 20200000 (32-bit, non-prefetchable) [size=1M]

00:07.0 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 01)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0

00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32
Region 4: I/O ports at fcf0 [size=16]

00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 48
Interrupt: pin D routed to IRQ 11
Region 4: I/O ports at 8400 [size=32]

00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 01)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin ? routed to IRQ 9

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Surecom Technology: Unknown device 0428
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at 4000 [size=256]
Region 1: Memory at 10400000 (32-bit, non-prefetchable) [size=512]
Capabilities: <available only to root>


_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 03, 2004 5:01 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
Ok. This should do the trick:

modprobe 8139too

If that doesn't fly, there is another driver:

modprobe 8139cp

Have fun & enjoy lshw ;)

-Jeff


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 03, 2004 5:33 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
Oh yeah, and if you want it to automatically do it on boot, add this line to /etc/modules.conf

alias eth0 8139too


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 05, 2004 2:31 am 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
Thanks Jeff! Please forgive the rather long post earlier. (Taking up band width and stuff). Haven't tried your recommendations yet 'cos I've spent most of this weekend doing various other stuff. However, I've managed to utilies my domain and web space.

Here goes - please be gentle!

http://www.jayeola.org

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 05, 2004 2:39 am 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
Sorry Jeff but from what I've read, shouldn't aliases be in the form...
alias foo='stuff and more stuff'

??

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 05, 2004 9:23 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
> Sorry Jeff but from what I've read, shouldn't aliases be in the form...
> alias foo='stuff and more stuff'

From what I've used, it should be in the form of
alias eth0 8139too

You use "=" for options. Example (from a Vaio):
alias char-major-10-250 sonypi
options sonypi minor=250


lshw gives more/better output when run as root (on your blog).


-Jeff, who is just having his first coffee of the day ;)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 05, 2004 9:25 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
err, i mean on your blog lspci will show more output too, when run as root. ;0


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 05, 2004 10:19 am 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
jebba wrote:
err, i mean on your blog lspci will show more output too, when run as root. ;0


That's ok Jeff. Understood you first time. Will try your recommendations first and if that doesn't work, run lshw and lspci as root. Thanks.

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 06, 2004 1:41 pm 
Offline
Site Admin

Joined: Wed Mar 17, 2004 6:17 pm
Posts: 1340
Location: London, UK
Eth0 is now working. Used following command as root: ifcongig eth0 up.

Is there a file to edit / gui so that I can use the ethernet connection at boot up?

_________________
BLAG 'em up!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 06, 2004 2:36 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
netconfig
redhat-config-network

Those should set it to come up on boot.

/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/devices/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0

(depending on which one got set up).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group