Re: CF Card setup

2011-12-27 Thread Jannik Pruitt
Hi Nick and Joakim thanks for writing back.
I am not really sure of the rules.
This is the first time I have ever used any BSD except for an Apple PC.

I do have some linux experience.

I was running Puppy Linux on my old Netier XL1000 box and it was not doing
so well even with puppy and I wanted to learn more about BSD.  I checked
the basic system requirements and I have 256mb an S3 graphics card a common
Tbase T card built on the board.

I assume the ifconfig is about the same as linux.  The networking worked
well with Puppy.

The end goal is have a small file server, web server, emacs, sc, bc and
alpine on the little box.  It has 32GB CF card.
I thought about slackware also as it has CF install built in but again I
heard so much from the podscast I wanted to give it try.

So this is what happens when I type in www.google.com host not reachable,
my router also,  ssh sdf.lonestar.org also not working

ifconfig says
lo0 (up loop back running multicast mtu 33196
R10 Media enthernet auto  (This is normally the IP address I think but
there is not one)
Enco - also active
PFlog0 also active

When I log in it says:
openBSD/i386 (Netier1000.speedport_W_723V_type_A) (TTYC0)

From the answers I got I think i have change the Enternet card setting.
But there is no command to run the networking or Xgraphics set up again?



On Wed, Dec 21, 2011 at 10:01 AM, Joakim Aronius joa...@aronius.se wrote:

 * Jannik Pruitt (pruttel...@googlemail.com) wrote:
  Is there a way to make the setup come up again?

 If there is a RS232 serial port you could use that to get console access
 using a serial cable from som other machine.
 http://www.openbsd.org/faq/faq7.html#SerCon

 This is really good to have if you do not have a graphics card in the box.
 Not only for initial install but also for upgrades to new releases! You can
 find cheapo USB-serial converters on eBay etc if you don't have RS232 on
 e.g. the laptop you want to connect to the thin client.

 /joakim



Re: CF Card setup

2011-12-27 Thread Peter N. M. Hansteen
Jannik Pruitt pruttel...@googlemail.com writes:

 ifconfig says
 lo0 (up loop back running multicast mtu 33196
 R10 Media enthernet auto  (This is normally the IP address I think but
 there is not one)
 Enco - also active
 PFlog0 also active

I assume R10 is actually rl0, indicating that the Ethernet card is a
Realtek based part (see man rl).  You need to put together a valid
config file for that one, /etc/hostname.rl0, with appropriate contents
using your favorite text editor (mg and vi are in the base system).

Reading at least man hostname.if and http://www.openbsd.org/faq/faq6.html 
is a really good idea at this point.  Most likely you need a file that
consists of a single line, either

dhcp 

for a simple dhcp setup, or for a fixed address and a specific link
speed something like (lifted from man hostname.if)

inet 10.0.0.1 255.255.255.0 10.0.0.255 description Bob's uplink

in which case you will also need to add useful content to
/etc/resolv.conf (and likely /etc/hosts) for name resolution to work
plus possibly a few other wrinkles such as enabling forwarding if it's a
gateway you're building, and so on.  

The best place to start is to read the relevant parts of the FAQ and the
man pages.  OpenBSD documentation is both accessible and useful, and if
you're still stuck some of us have written supplementary docs that are
not that hard to find.  Or come back here, reasonable questions usually
generate somewhat useful answers.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: CF Card setup

2011-12-27 Thread Peter N. M. Hansteen
pe...@bsdly.net (Peter N. M. Hansteen) writes:

 for a simple dhcp setup, or for a fixed address and a specific link
 speed something like (lifted from man hostname.if)

 inet 10.0.0.1 255.255.255.0 10.0.0.255 description Bob's uplink

actually that does not specify a line speed, but the man pages will tell
you how to do that too :)

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



CF Card setup

2011-12-20 Thread Jannik Pruitt
Hi everyone.
i am brand new purchased my open bsd 5.0 on 11 Nov 2011.

I booted the CD on another computer installed every thing on a 32GB CF card.
Placed in my old thin client and it booked.

But the network card does not work.
It did work on the other computer after the install.

Is there a way to make the setup come up again?

Thanks

John



Re: CF Card setup

2011-12-20 Thread Johan Beisser
On Tue, Dec 20, 2011 at 2:41 PM, Jannik Pruitt
pruttel...@googlemail.com wrote:
 Hi everyone.
 i am brand new purchased my open bsd 5.0 on 11 Nov 2011.

 I booted the CD on another computer installed every thing on a 32GB CF card.
 Placed in my old thin client and it booked.

 But the network card does not work.
 It did work on the other computer after the install.

 Is there a way to make the setup come up again?

You really didn't provide enough information for anyone to help you.

Let's start with what's missing.

- dmesg
- what hardware you're running
- did you check your hostname.if in /etc matches the interface?
- have you read the FAQ? (http://www.openbsd.org/faq)
- did you check man pages?



Re: CF Card setup

2011-12-20 Thread Nick Holland
On 12/20/11 17:41, Jannik Pruitt wrote:
 Hi everyone.
 i am brand new purchased my open bsd 5.0 on 11 Nov 2011.

we like to hear that. :)
You put me in a good mood, so I'm giving you something other than just a
pointer at faq6 :)

 I booted the CD on another computer installed every thing on a 32GB CF card.
 Placed in my old thin client and it booked.
 
 But the network card does not work.
 It did work on the other computer after the install.
 
 Is there a way to make the setup come up again?

Sure.  this is really easy, much easier than most other OSs...
Your target computer has a NIC in it that is of a different type than
your install computer.  (just did battle with a degenerate form of this
problem on a Fedora machine today.  holy shit.  At least they pay me for
that).

So, let's say your install computer had an Intel gigabit card, which
uses the em driver...so it probably configured the network adapter as
em0.  The configuration for this card was stored in /etc/hostname.em0

Your thin client machine has some different card...for sake of
discussion, let's say it's an Intel 100mbps card, which uses a driver
called fxp.  It does NOT have an em card in it, so the em0
configuration information was ignored...so you came up with no network.

The easy fix is to copy the hostname. file to the appropriate name
for your target machine.  You could rename it, but I prefer copying --
that way, if you have to move the flash card back to the source machine,
the network will Just Come Up

if you do an ifconfig, you will get a list of all interfaces.  First
will probably be lo0, second will be the one you are after...  SO,
assuming your original machine had em0, and your target machine has
fxp0, you would do this:

# cp /etc/hostname.em0 /etc/hostname.fxp0

That's almost certainly wrong for your case.  You will have only one
hostname.* file currently, so the source is easy. just need to figure
out what kind of NIC you have now.  (there are cases where you might
actually have to alter what is in that file between card types, but I'm
going to guess that won't be your problem)

Nick.