Re: Remove escape characters from file

2007-10-26 Thread djgoku
On 10/26/07, Pieter Verberne <[EMAIL PROTECTED]> wrote:
> Hi,
>
> does OpenBSD have a program/script to remove control characters (escape
> sequence) from text files?

Not sure if this is what you are wanting.

tr '\r' '\n' < inputfile > outputfile

more info @ http://en.wikipedia.org/wiki/Newline



Re: Linux Driver Violates BSD License

2007-08-28 Thread djgoku
On 8/28/07, Darrin Chandler <[EMAIL PROTECTED]> wrote:
> Normally I wouldn't repeat undeadly stuff here on misc@, but I'm sure
> many of you will want to know.
>
> http://undeadly.org/cgi?action=article&sid=20070829001634
>
>
> And if you do this kind of thing, it's worth letting the rest of the
> world in on this:
> http://digg.com/linux_unix/Lnux_Driver_Violated_BSD_License

I am currently having a discussion about dual licensing, and am a bit
confused. Is Reyk and others working on this drivers code dual
licensed (from the diff it doesn't seem like it is, since I see a BSD
3 Clause)? Also say I submit a patch for this driver, does that mean
this will have to be dual licensed also or can I choose if it is BSD 3
Clause or GPLv2?



Re: Compiling Release Patches

2007-08-24 Thread djgoku
On 8/24/07, Clint Pachl <[EMAIL PROTECTED]> wrote:
> Can one reliably compile 4.0 release patches on a 4.1 release system?

Is there some patches that aren't in 4.1? If so that seem really weird
why it wouldn't be. Can you give an example?



Re: Install OpenBSD without physical access

2007-08-17 Thread djgoku
On 8/17/07, Jona Joachim <[EMAIL PROTECTED]> wrote:
> Hi!
> I was wondering if anybody had any experience with installing
> OpenBSD on a remote system without physical access to the machine.
> I have a virtual server in Germany which runs Debian Etch and I'm
> pretty fed up with it and I want to install OpenBSD on it.
> This is a virtual server which runs under a Virtuozzo environment. I
> can boot it with a Linux live system.
> My idea was to set up an OpenBSD system at home, dump it, upload the
> image to the server and restore the image to the hard drive using the
> live system. I don't know how to install the boot loader yet.
> This server is just a free time project of me and a friend of mine so
> it's not so important if it's down for some time. If anything goes
> wrong I can restore the original Debian system or boot it with a live
> system.
> I'd appreciate if you could give me some pointers.

http://marc.info/?l=openbsd-misc&m=118635777505801&w=2

I think what you are looking for is Yaifo 0.4.



Re: How to update Xorg?

2007-07-07 Thread djgoku

On 7/7/07, Timo Myyra <[EMAIL PROTECTED]> wrote:

Is there a easy way to update OpenBSD's Xorg to latest cvs release of
it. This because of the added 'avivo' driver for my ATI Mobility Radeon
X1400 graphics card.


Like from release to stable? If so then I would you anoncvs and
checkout Xs most current releases using cvs. Then use the below link
to build X.

Here is how to build X: http://openbsd.org/faq/faq5.html#Xbld

If this isn't what you need you might consider reading the FAQ on -current.



Re: SSH-login is slow to connect with remote computer

2007-06-03 Thread djgoku

On 6/3/07, Bray Mailloux <[EMAIL PROTECTED]> wrote:

Hello;

I'm experiencing some network trouble. Two problems exist and they are
as thus; My DNS server, which has the ip 192.168.1.2, which is
translated through my router to 64.142.102.10, cannot connect to the
internet. And, whenever puTTY attempts to remote control the server, the
login process is very slow between inputting the user name then password.
My gut tells me the problems may be related.


You might try uncomment:

#UseDNS yes

and change it to:

UseDNS no

More info here: http://openssh.org/faq.html#3.3



Re: APC UPSD

2007-05-19 Thread djgoku

On 5/19/07, John Nietzsche <[EMAIL PROTECTED]> wrote:

Dear gentleman,

i realized apc-upsd port in 4.1 does not support USB UPS devices. Is
anyone here aware of a patch for it?


Not sure what arch support you need, but I would look into nut-2.0.3p0.tgz.

more info: http://www.openbsd.org/4.1_packages/i386/nut-2.0.3p0.tgz-long.html



Remote Syslogd

2007-05-18 Thread djgoku

I am trying to filter remote syslog information that is coming from
Motherboard Monitor on Windows. If all I do is change syslogd startup
options in /etc/rc.conf from syslogd="-u" all information is logged to
/var/log/daemon. But I would really like the information be routed to
something like /var/log/.

Here is some sample data in /var/log/daemon:

May 18 12:06:24 hostname hostname MBM[Case]: C=95 LA=41 HA=158 L=95 H=95 A=95
May 18 12:06:24 hostname hostname MBM[CPU]: C=87 LA=41 HA=158 L=87 H=87 A=87
May 18 12:06:24 hostname hostname MBM[Core 0]: C=1.51 LA=1.90 HA=2.10
L=1.51 H=1.51 A=1.51
May 18 12:06:24 hostname hostname MBM[+3.3]: C=3.32 LA=3.13 HA=3.46
L=3.32 H=3.32 A=3.32
May 18 12:06:24 hostname hostname MBM[+5.00]: C=5.15 LA=4.75 HA=5.25
L=5.15 H=5.15 A=5.15
May 18 12:06:24 hostname hostname MBM[+12.00]: C=12.03 LA=11.40
HA=12.60 L=12.03 H=12.03 A=12.03

syslogd.conf (I added):

+hostname
*.*   /var/log/hostname

But all the data is logged to daemon/message/hostname in /var/log/.



Re: Is there anyone who succeed in 3945ABG by wpi driver ?

2007-05-10 Thread djgoku

On 5/10/07, abutter gao <[EMAIL PROTECTED]> wrote:

First, I have a access point with dhcp service, and I just want to get
dynamic IP from the AP, so I use dhclient. But I'll check whether
there is iwilist.

I don't know how to deal with this by NetBSD, but "dhclient wpi0"
after installing wpi firmware is enough to connect to the AP and get
IP address from it in my friend's NetBSD laptop.


After the firmware is installed try:

(If you have a WEP key on the WIFI added the nwkey switch to the ifconfig line)
# ifconfig wpi0 nwid 
# dhclient wpi0



Re: Is there anyone who succeed in 3945ABG by wpi driver ?

2007-05-10 Thread djgoku

On 5/10/07, abutter gao <[EMAIL PROTECTED]> wrote:

I'm sorry for asking this again, but I really can't use the 3945ABG on
amd64 platform now .

I installed openbsd-current, download the firmware from
http://damien.bergamini.free.fr/packages/openbsd/wpi-firmware-1.13.tgz,
and then added "-A i386" to pkg_add to ignore the
platform-incompatible problem.

I copied the bsd.mp and enabled acpi by config, but the 3945ABG did not works.

Here are some information that may be usefully:

#dhclient wpi0
wpi0: not found
exiting.
#ifconfig -a
lo0: flags=8049 mtu 33192
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
wpi0: flags=8802 mtu 1500
lladdr 00:18:de:bc:42:78
groups: wlan
media: IEEE802.11 autoselect
status: no network
ieee80211: nwid "" 100dBm
inet6 fe80::218:deff:febc:4278%wpi0 prefixlen 64 scopeid 0x1
fxp0: flags=8802 mtu 1500
lladdr 00:16:d3:18:77:46
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=0<> mtu 1536

And below is my dmesg.boot:
OpenBSD 4.1-current (GENERIC.MP) #1217: Fri May  4 01:13:15 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP


Maybe it is because you are running current instead of release/stable?
Though that is just an idea.



Re: 4.1 Packages Page

2007-05-03 Thread djgoku

On 5/3/07, djgoku <[EMAIL PROTECTED]> wrote:

http://www.openbsd.org/4.1_packages/
Gets a 404 error.
http://www.openbsd.org/4.0_packages/
Works fine.

Link found on: http://openbsd.org/faq/faq15.html


http://www.openbsd.org/cgi-bin/cvsweb/

Am also having issues with cvsweb. Anyone else?



4.1 Packages Page

2007-05-03 Thread djgoku

http://www.openbsd.org/4.1_packages/
Gets a 404 error.
http://www.openbsd.org/4.0_packages/
Works fine.

Link found on: http://openbsd.org/faq/faq15.html



Re: Dynamic DNS (first setup, couple troubles)

2007-04-13 Thread djgoku

On 4/13/07, Tim Judd <[EMAIL PROTECTED]> wrote:

Hi everyone -- I'm hoping that someone here can clue me in.

With a couple of websites' help, I got ddns working to create records,
but nothing I do seems to be able to remove those entries.  They are
inserted under the name that the host had when it inserted the record,
and never updates.  The single PC that is booting OpenBSD/i386 isn't
getting it's new name into ddns.

References:
#1:
http://72.14.253.104/search?q=cache:4Y72kR1rdNMJ:www.bsdguides.org/guides/openbsd/networking/dynamic_dns_dhcp.php+openbsd+ddns&hl=en&ct=clnk&cd=1&gl=us&client=firefox-a
(The original page on bsdguides just gives me a blank page, so I used
Google's cached version.  This howto was written with OpenBSD 3.6)

Network topology:
OpenBSD/sparc 4.0-RELEASE (will download and apply patches this
weekend, it's a new installation) is the DHCP/BIND ddns machine.  It's
serving a network of 192.168.1/24 with two DHCP reservations.
Windows workstation is one of the reservations, and my FreeBSD box is
the other (.11 and .10 respectively).
The test box as mentioned above is OpenBSD/i386.

First problem:
The two machines with DHCP Reservations yield this error when being
booted.
- Quote -
Apr 13 20:23:46 usemy dhcpd: Dynamic and static leases present for
192.168.1.11.
Apr 13 20:23:46 usemy dhcpd: Remove host declaration FATMAN or remove
192.168.1.11
Apr 13 20:23:46 usemy dhcpd: from the dynamic address pool for
192.168.1/24
- /Quote -


subnet 192.168.1.0 netmask 255.255.255.0 {
 range 192.168.1.10 192.168.1.250;
 option routers 192.168.1.1;

look at the RANGE 192.168.1.10, try to set it 'range 192.168.1.12
192.168.1.250;'

maybe this isn't the problem, just the first thing I saw.



Re: sensorsd

2007-03-24 Thread djgoku

On Mar 24, 2007, at 5:27 PM, Constantine A. Murenin wrote:


You do not have a command specified on hw.sensors.4, so you should not
be expecting any emails to be sent when this sensor undergoes
transitions from one state to another.

I think the syntax of sensorsd.conf is rather obvious here -- your
command gets executed only when hw.sensors.3 undergoes state
transitions, hw.sensors.4 transitions will only be reported into
syslog.


Ahh, I must of interpreted (man sensorsd.conf) that incorrectly. So  
just add the command part to the rest of the sensors will fix it.


thanks



Re: sensorsd

2007-03-24 Thread djgoku

On Mar 24, 2007, at 1:38 PM, Constantine A. Murenin wrote:

I'm surprised you've got any emails from those exceeds at all, because
the sensors that you have warnings for do not match the one's you
claim you are monitoring in sensorsd.conf (hw.sensors.3 in conf,
hw.sensors.4 on log).


Sorry I didn't post the whole sensorsd.conf

hw.sensors.3:low=4.8V:high=5.2V:command=/bin/sh /etc/sensorsd/notify

# +12 voltage (volts)
hw.sensors.4:low=11.5V:high=12.55V

# Chipset temperature (degrees Celsius)
hw.sensors.7:high=35C

hw.sensors.9:low=3000
hw.sensors.10:low=3000



sensorsd

2007-03-24 Thread djgoku

In /etc/sensorsd.conf

hw.sensors.3:low=4.8V:high=5.2V:command=/bin/sh /etc/sensorsd/notify

In /etc/sensorsd/notify

#!/bin/sh

/usr/bin/tail -n 25 /var/log/daemon | /usr/bin/grep sensorsd | /usr/ 
bin/grep exceed > /etc/sensorsd/`date +%m%d%y_%H%M`.log
/usr/bin/mail -s "Hardware Sensors Monitor - Threshold Exceeded" < / 
etc/sensorsd/`date +%m%d%y_%H%M`.log [EMAIL PROTECTED]


From /var/log/daemon

# grep sensorsd /var/log/daemon | grep exceed
Mar 24 02:31:31 vegeta sensorsd[23054]: hw.sensors.4: exceed limits,  
value: 12.61 V DC
Mar 24 03:30:44 vegeta sensorsd[23054]: hw.sensors.4: exceed limits,  
value: 12.61 V DC
Mar 24 03:30:52 vegeta sensorsd[13951]: hw.sensors.4: exceed limits,  
value: 12.61 V DC
Mar 24 08:28:51 vegeta sensorsd[13951]: hw.sensors.4: exceed limits,  
value: 12.61 V DC
Mar 24 08:30:51 vegeta sensorsd[13951]: hw.sensors.4: exceed limits,  
value: 12.61 V DC


From /var/log/mail

Mar 24 03:30:54 vegeta sendmail[23902]: l2O8UrwM023902:  
[EMAIL PROTECTED], ctladdr=dj_goku (1000/1000), delay=00:00:01,  
xdelay=00:00:00, mailer=relay, pri=30599, relay=[127.0.0.1]  
[127.0.0.1], dsn=2.0.0, stat=Sent (l2O8Us5n000215 Message accepted  
for delivery)
Mar 24 03:30:55 vegeta sm-mta[18718]: l2O8Us5n000215:  
to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (1000/1000),  
delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30901,  
relay=mail.mail.com. [12.34.56.78], dsn=2.0.0, stat=Sent (OK  
1174725055 15si26531894nzn)


I have only gotten 1 email from all those exceeds from sensorsd.

Any ideas?



Re: Daylight savings fix with OpenNTPD

2007-03-20 Thread djgoku

On 3/20/07, Bray Mailloux <[EMAIL PROTECTED]> wrote:

Have a patch been issued? It might just be the time servers, but date is
reporting 11:04:31 when it is 12:05.


Follow this:
ftp://ftp.openbsd.org/pub/OpenBSD/patches/4.0/common/009_timezone.patch

Link from: http://openbsd.org/errata40.html



Re: Limiting root ssh without limiting other users

2007-03-09 Thread djgoku

On 3/9/07, Dustin Lundquist <[EMAIL PROTECTED]> wrote:

I'm looking for a way to limit ssh access by root to public key
authentication from a single network without affecting other users ssh
access. So far the best solution I've come up with is to run two instances
of sshd, is there are more elegant way?


This might be of interest.

http://undeadly.org/cgi?action=article&sid=20070308183425&mode=flat



Re: DHCP server issues.

2007-02-25 Thread djgoku

On Feb 25, 2007, at 6:45 PM, Bray Mailloux wrote:

I've been toying with the DHCP server options but cannot seem to  
bring up the process; everytime I run ps there is no dhcpd process  
to be found and no computers on my network are pulling down  
addresses from the server.

My DHCPD.conf file looks as such.

-bash-3.1# nano /etc/dhcpd.conf
 GNU nano 1.2.5File: /etc/dhcpd.conf

#   $OpenBSD: dhcpd.conf,v 1.1 1998/08/19 04:25:45 form Exp $
#
# DHCP server options.
# See dhcpd.conf(5) and dhcpd(8) for more information.
#

# Network:  192.168.1.0/255.255.255.0
# Domain name:  none
# Name servers: 68.94.156.1 and 68.94.157.1
# Default router:   192.168.1.1
# Addresses:192.168.1.20 - 192.168.1.35
#
shared-network LOCAL-NET {
   option domain-name "example.com";
   option domain-name-servers 68.94.156.1, 68.94.157.1;

   subnet 192.168.1.0 netmask 255.255.255.0 {
   option routers 192.168.1.1;
   range 192.168.1.20 192.168.1.35;
   }
}

And my interfaces are configured as such.

cat /etc/hostname.rl0  < External interface
inet 192.168.1.2255.255.255.0   NONE

cat /etc/hostname.rl1 < Internal Interface
192.168.1.3   255.255.255.0
nano rc.conf.local reads as such
dhcpd_flags=""



What does /etc/dhcpd.interfaces have in it? This should have the  
interface with which you would like to run a DHCP server from.


To manually test that your dhcpd.conf is working try:

# dhcpd rl1
# ps aux | grep dhcpd



Re: Wanted: RALink based (2501/2600) pcmcia-Card with the possibility to add an external Antenna

2007-02-18 Thread djgoku

On Feb 18, 2007, at 11:01 AM, mniche-news wrote:


Hi Sebastian,

Which brand of Ral card that you want?

I need to implement hostap mode for 802.11 b/g, do you have any  
recommanded

PCI card that works better with hostap?

Should you want to stay with pcmcia-Card form factor from RALink  
2501/2600
based, do you know any specific brand?  I would prefer PCI if  
possible but

if none then I can use PCMCIA cards too.

I plan to buy 40 pieces and I am in Taiwan now for this project.   
Should you
be able to identify any robust ral card (PCI or PCMCIA) then we can  
buy

together too.


http://www.newegg.com/Product/Product.asp?Item=N82E16833315041

This is what I bought for my obsd router:

ral0 at pci0 dev 9 function 0 "Ralink RT2561S" rev 0x00: irq 5,  
address 00:00:00:00:00:00

ral0: MAC/BBP RT2561C, RF RT2527

Works like a charm. Shutdown, install and turn on PC, issue ifconfig  
options for hostap and bam wireless internet (oh and add PF rules too).




Re: compiling SMP kernel (how?)

2007-01-24 Thread djgoku

On 1/24/07, Peter Matulis <[EMAIL PROTECTED]> wrote:

I'm looking for instructions on compiling a kernel to run on my SMP
system.  I've installed 4.0 and I can run bsd.mp but now I want to
update my sources and recompile a new GENERIC kernel.


Read this: http://openbsd.org/stable.html



Re: AMD dual core, deciding factors for a platform?

2006-11-16 Thread djgoku

On 11/16/06, turha turha <[EMAIL PROTECTED]> wrote:

Hi,

I'm about to build a new box, and thought I'd ask first if there's any
experience with AMD's dual core processors (AM2 or s939). From what I've
read both socket types work as amd64, with bsd and bsd.mp, right?

Any thoughts on which works more stable and faster, i386 vs amd64 arch, and
the benefits of using bsd.mp? What chipsets/MoBos work well?

So mainly I'm interested in comments from people who have tested these, to
see if it's worth the trouble (money) to get dual core for openbsd, is there
much of an improvement, etc.

I'm planning on using the box for quite a few things, including software
RAID, samba, FW, web server, probably ftp, etc.

On a side note, AFAIK there are no working DVB-C cards for openbsd, right?


I just built a friend a new PC around 4.0 release come out so I
thought I would try 3.9/4.0, 3.9 bsd.mp wouldn't boot after install so
I went to 4.0 and worked just fine. This is running off of onboard
NIC, and onboard SATA without problems with a Seagate HD.

I hear the e6000 series are faster than AM2s. YMMV

dmesg and other output below. =)

OpenBSD 4.0 (GENERIC.MP) #0: Wed Nov  1 01:43:21 CST 2006
  [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1072164864 (1047036K)
avail mem = 906829824 (885576K)
using 22937 buffers containing 107425792 bytes (104908K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (67 entries)
bios0: ASUSTeK Computer INC. M2N4-SLI
mainbus0: Intel MP Specification (Version 1.4) (OEM0 PROD)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 2211.59 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 201MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 2211.33 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type PCI
mpbios: bus 3 is type PCI
mpbios: bus 4 is type PCI
mpbios: bus 5 is type PCI
mpbios: bus 6 is type ISA
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
pci0 at mainbus0 bus 0: configuration mode 1
"NVIDIA nForce4 DDR" rev 0xa3 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA nForce4 ISA" rev 0xf3
nviic0 at pci0 dev 1 function 1 "NVIDIA nForce4 SMBus" rev 0xa2
iic0 at nviic0
iic1 at nviic0
ohci0 at pci0 dev 2 function 0 "NVIDIA nForce4 USB" rev 0xa2: apic 2
int 5 (irq 5), version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
ehci0 at pci0 dev 2 function 1 "NVIDIA nForce4 USB" rev 0xa3: apic 2
int 10 (irq 10)
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
auich0 at pci0 dev 4 function 0 "NVIDIA nForce4 AC97" rev 0xa2: apic 2
int 3 (irq 3), nForce4 AC97
ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
audio0 at auich0
pciide0 at pci0 dev 6 function 0 "NVIDIA nForce4 IDE" rev 0xf2: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 7 function 0 "NVIDIA nForce4 SATA" rev 0xf3: DMA
pciide1: using apic 2 int 11 (irq 11) for native-PCI interrupt
pciide2 at pci0 dev 8 function 0 "NVIDIA nForce4 SATA" rev 0xf3: DMA
pciide2: using apic 2 int 5 (irq 5) for native-PCI interrupt
wd0 at pciide2 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 286168MB, 586072368 sectors
wd0(pciide2:0:0): using PIO mode 4, Ultra-DMA mode 5
ppb0 at pci0 dev 9 function 0 "NVIDIA nForce4 PCI-PCI" rev 0xf2
pci1 at ppb0 bus 1
nfe0 at pci0 dev 10 function 0 "NVIDIA CK804 LAN" rev 0xf3: apic 2 int
3 (irq 3), address 00:17:31:5c:33:ad
ukphy0 at nfe0 phy 0: Generic IEEE 802.3u media interface, rev. 6: OUI
0x001374, model 0x0001
ppb1 at pci0 dev 11 function 0 "NVIDIA nForce4 PCIE" rev 0xf3
pci2 at ppb1 bus 2
ppb2 at pci0 dev

Re: Managed UPS on OpenBSD

2006-09-18 Thread djgoku

On 9/18/06, Floor Terra <[EMAIL PROTECTED]> wrote:


Which UPS are known to work on OpenBSD and what software do I use to
manage it.


http://www.networkupstools.org/compat/stable.html

I use both a Smart-UPS 620/700 with NUT without any issues. Both are
using the apcsmart driver, and a 940-0024C cable. Not sure about the
UPS you speak of, but am guessing it uses: newhidups or hidups driver.

First I would add NUT from packages, then follow:
http://www.networkupstools.org/doc/2.0.0/INSTALL.html
This should go through mostly everything you need to configure NUT to
work with your UPS.



Re: Launching the Internet

2006-09-15 Thread djgoku

On 9/15/06, dilbert <[EMAIL PROTECTED]> wrote:

My question is simple- I'm a relative newbie at BSD so please bear with me.
I'm trying to launch the internet; so I open a terminal and go "percent sign
'Internet'" at the prompt

ie: >%internet

and it doesn't work. What gives??!!


if you are at a terminal try this:

lynx google.com


Also "percent sign 'Print'" doesn't work and neither does "percent sign
'word processor'"


You might want to install abiword for a word processor. Not sure on
printing since I have never printed anything from a OpenBSD machine.



Re: nload on OpenBSD - or an alternative

2006-07-19 Thread djgoku

On 7/19/06, Richard Wilson <[EMAIL PROTECTED]> wrote:

I regularly use nload on Linux to get a quick and dirty view of how much
bandwidth something is using.

It doesn't seem to be in stock 3.9, and I can't find it in ports either.
Fair enough, it's not there.

But a quick google reveals that back in November 2002 it was being
worked on as a port (Thank you Neohapsis :-) although the actual conent
of the posts I found wasn't that encouraging.

Did it ever make it in? Might it at some point? Possibly a better
question, is there something similar/better already there?

If not, I expect I can compile it from source myself, but I'm probably
missing something...


ntop comes to mind, for i386 there is a package

more info: http://www.openbsd.org/3.9_packages/i386/ntop-1.1.tgz-long.html



Re: dhcpd static addresses

2006-07-18 Thread djgoku

On 7/18/06, Dave Gloez <[EMAIL PROTECTED]> wrote:

I have a soekris box where dhcpd is running to give ip addresses for clients, 
now i was thinking is it possible to give clients a static ip based on which 
interface it is connected, so when i plug the network cable to specified 
network port on soekris it would always give the same ip address no matter what.


Put this in your dhcpd.conf:

host joe {
hardware ethernet 08:00:2b:4c:29:32;
fixed-address 10.0.0.1;
}

More info @ : 
http://www.openbsd.org/cgi-bin/man.cgi?query=dhcpd.conf&sektion=5&arch=i386&apropos=0&manpath=OpenBSD+Current



Re: running Linux Firefox on 3.9?

2006-07-11 Thread djgoku

On 7/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

I simplistically installed the Linux version of Firefox, firefox-1.5.0.4.tar.gz, 
& given that I already have OpenOffice 2.0.3 installed, I thought I had all the 
prerequisites in place in order to run Firefox.  I don't.  Firefox generated a 
dialog on first invocation, but immediately generated a segmentation fault.  Any 
other time I tried running it, I simply get the segmentation fault.

Does anyone have any pointers that I am blatantly missing?  Thanks.


Is there a reason that you need that when there is a package for
mozilla-firefox?

ftp://ftp.openbsd.org/pub/OpenBSD/3.9/packages/i386/mozilla-firefox-1.5.0.4.tgz



Re: dhcpd.conf won't accept a second 'hardware ..' line

2006-07-11 Thread djgoku

On 7/11/06, Joseph Le-Phan <[EMAIL PROTECTED]> wrote:

Hello,
I currently have a dhcp server for my local network based on
3.9-Release. For the most part, my configuration works well for
a single computer, but I'm having trouble setting it up for
multiple computers. The file has a commented out line (the
problematic line,) and dhcpd complains about a missing semicolon
at the end of that line had it not been commented out.

At the moment, my dhcpd.conf is as follows:

>
subnet xx.xx.xx.xx netmask 255.255.255.0 {
option domain-name "domain.name";
option domain-name-servers xx.xx.xx.xx;
option broadcast-address xx.xx.xx.255;
option routers xx.xx.xx.xx;
deny bootp;
deny unknown-clients;
range xx.xx.xx.xx xx.xx.xx.xx;

use-host-decl-names true;

host box {
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address box.domain.name;
}

host box2 {
 >> #hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address box2.domain.name;
}
 }


I wonder if it matters if use-host-decl-names needs to be "on" instead
of "true" (reading man dhcpd.conf, shows "on" not "true"). I am not
for sure on that though.



Re: I can't make iwi(4) driver work in 3.9

2006-06-14 Thread djgoku

On 5/6/06, Ramiro Aceves <[EMAIL PROTECTED]> wrote:


I have an Intel 2200 Wireless card on my laptop. It was working on
OpenBSD 3.8. I have just installed a fresh OpenBSD 3.9. I also have
installed the 3.0 firmware.

# pkg_info
iwi-firmware-3.0Firmware binary image for iwi driver


(I am not certain, but I think 3.0 firmware is only for current.)

# pkg_delete iwi-firmware-3.0
# pkg_add http://damien.bergamini.free.fr/iwifw/OpenBSD/iwi-firmware-2.3.tgz

Make sure if you have a switch to turn it on.
After (2.3) completes this is what I did to get wifi working:

(wifi without encryption + dhcp)
# ifconfig iwi0 nwid APName
# ifconfig iwi0 up
# dhclient iwi0

(wifi with WEP + dhcp)
# ifconfig iwi0 nwid APName nwkey 0x01234567890ABCDEF7890123456
# ifconfig iwi0 up
# dhclient iwi0


iwi0: could not read firmware iwi-boot, error 2
iwi0: could not load boot firmware
iwi0: could not read firmware iwi-boot, error 2
iwi0: could not load boot firmware


These errors are from using 3.0 firmware on 3.9 release/stable, when
you should be using 2.3.



Samsung T809

2006-06-09 Thread djgoku

I thought that I would share this. This phone uses a microSD card, and
seems that Philips Ramdisk is a msdos partition so it can be mounted
and such. =)

umass1: Samsung SAMSUNG Mobile USB Modem, rev 2.00/1.00, addr 6
umass1: using ATAPI over Bulk-Only
scsibus3 at umass1: 2 targets
sd2 at scsibus3 targ 1 lun 0:  SCSI0 0/direct removable
sd2: 29MB, 29 cyl, 64 head, 32 sec, 512 bytes/sec, 59725 sec total



Missing Mozilla-Firefox Package

2006-05-14 Thread djgoku

I just installed 3.9. Got X up and running. I thought I would test out
the pkg_add -u so I set PKG_PATH variable, installed
mozilla-firefox-1.5.0.1.tgz and then proceeded to run pkg_add -u,
pkg_add checked all installed packages and nothing needing updating
though this page states differently (for firefox):

http://openbsd.org/pkg-stable.html

Am I missing something?

I notice from ftp (ftp.openbsd.org) that there isn't even a
mozilla-firefox-1.5.0.2.tgz available.



Re: some commands running very slow in 3.9 ?

2006-05-12 Thread djgoku

On 5/12/06, S t i n g r a y <[EMAIL PROTECTED]> wrote:

Well when i try to login from remote host via ssh it
takes ages to login for the first time,
also when i issue other networking commands such as
$ arp -a
it takes almost 1 minute to start displaying records.

how can i find whats wrong ?


You might try this:

http://openssh.org/faq.html#3.3



Re: ntpd as server logging...

2006-05-12 Thread djgoku

On 5/11/06, Jeff Ross <[EMAIL PROTECTED]> wrote:

Hi,

I've enabled ntpd with the -d flag to run as a server on a system on the
lan with this conf file:

[EMAIL PROTECTED]:/home/jross $ cat /etc/ntpd.conf
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
listen on *

# sync to a single server
#server ntp.example.org

# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
servers pool.ntp.org

Is there a way to log update requests from other computers on the lan?
I'm trying to sync some [EMAIL PROTECTED] workstations and the update request 
always
fail--both with it and with other time servers. I can sync my openbsd
workstation with it no problem, but nothing shows in the logs then,
either.

I do see the normal ntp related traffic in the  logs:
reply from 202.71.97.92: offset -22.959578 delay 0.358056, next query 54s
reply from 202.71.97.92: offset -22.920072 delay 0.271411, next query 52s

tcpdump on port 123 does show the tcp traffic between this system and
other ntp servers, but nothing from the lan (and I don't find a udpdump
port ;-).


Here is a skeleton of a .reg file I use to manually setup NTP clients.
After running this it might be a good idea to: "net stop w32time" and
"net start w32time". After this check "eventvwr" in System Tab and
look for Source "win32time" look for Event ID 37 or 35.

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters]
"Type"="NTP"
"NTPServer"="routerInternalIP"

Jonathan



Re: how do I PXE boot a laptop so as to install OpenBSD??

2006-02-17 Thread djgoku
On 2/17/06, Julesg <[EMAIL PROTECTED]> wrote:

> I am prepared to do a PXE ethernet boot but I need very specific 
> instructions.  (This > is where I whine and say please;  The thing is  I 
> mean it.  Help.)

Make sure your laptop ethernet card supports PXE booting.

Reading this will help if you already have openbsd installed on a
local server that you can configure as a PXE Boot Server.

http://openbsd.org/faq/faq6.html#PXE



Re: downloading http

2005-09-15 Thread djgoku
> Oh! lynx is in base, :) and it does seem to have a -source switch
> which works like dump but dumps the file source to stdout (I need
> non-interactive). Unfortunately the feature I was really looking
> for is no download if header timestamp and file size match. Don't
> see it in lynx.
> 
> But guess what, ftp does http! no checking of timestamps though...

-N makes wget check timestamps... man wget for more info

$ wget -N http://standards.ieee.org/regauth/oui/oui.txt



Re: downloading http

2005-09-15 Thread djgoku
On 9/15/05, L. V. Lammert <[EMAIL PROTECTED]> wrote:
>
> On Thu, 15 Sep 2005, George Georgalis wrote:
>
> > Pardon the stupid question. But how does one download http in
> > OpenBSD? I looked for fetch in packages but did not find. I see
> > this dir /usr/rOPENBSD_3_7/infrastructure/fetch but I'm not sure
> > what it is or how to use it.
> >
> wget?


from CLI:
$ wget http://http://standards.ieee.org/regauth/oui/oui.txt



cksum file missing - pub/OpenBSD/3.#/*

2005-08-03 Thread djgoku
I couldn't find a cksum file for any file in the release directory
ftp://ftp.openbsd.org/pub/OpenBSD/3.#/*. I was just wanting to make
sure src.tar.gz was the correct file I was supposed to download.