Re: Wifi + wired laptop

2005-09-21 Thread Przemyslaw Nowaczyk

Edd Barrett wrote:

Hi,

My laptop has a wifi and a wired connection. Sometimes my wifi is
unreliable and does not work atall , so it is useful to plug in a cat5
cable instead. OpenBSD still tries to use wifi. I thought perhaps it
might time out and decide to use the wired interface, but it does not.
Th only solution is to su to root and rename hostname.wi0 then run
/etc/netstart. Not ideal for a desktop system for everyday use.

Can anyone think of a practical solution?

Thanks

Best Regards

Edd


maybe you could use 'ifconfig wi0 down' (that disables all the routes 
configured to that interface)..? and than the whole traffic would be 
passed through the 'wired' interface (assuming proper config on that 
interface).


or

you could try to manipulate the routing tables via route(8).

take care..
--
Przemyslaw Nowaczyk [EMAIL PROTECTED]
CS student @ Poznan University of Technology



Re: Live dc

2005-09-21 Thread Vjacheslav Borisov

Andreas Bihlmaier wrote:

Why is need to mount_mfs in /etc/rc and in /etc/fstab ?

I made bootable cdrom you described.

There is output of df and mount  - all filesystems mounted  twice (but 
different in sizes) - is this correct behavior?



openbsd# df
Filesystem  1K-blocks  Used Avail Capacity  Mounted on
/dev/cd0a  249976249976 0   100%/
mfs:128815631 1  5349 0%/dev
mfs:4450   126463 1120139 0%/tmp
mfs:13817  126463 1120139 0%/var
mfs:25494  126463 1120139 0%/root
mfs:18595  126463 1120139 0%/home
mfs:766 62799  2074 57586 3%/etc
mfs:28715   24783  5993 1755125%/var
mfs:13657 51133   453 7%/dev
mfs:137142959 1  2811 0%/tmp
mfs:2250 3951 6  3748 0%/home
mfs:258593951 5  3749 0%/root

openbsd# mount
/dev/cd0a on / type cd9660 (local, noatime, read-only)
mfs:12881 on /dev type mfs (asynchronous, local, noatime, size=6000 
1K-blocks)
mfs:4450 on /tmp type mfs (asynchronous, local, noatime, size=130560 
1K-blocks)
mfs:13817 on /var type mfs (asynchronous, local, noatime, size=130560 
1K-blocks)


mfs:25494 on /root type mfs (asynchronous, local, noatime, size=130560 
1K-blocks

)
mfs:18595 on /home type mfs (asynchronous, local, noatime, size=130560 
1K-blocks

)
mfs:766 on /etc type mfs (asynchronous, local, noatime, size=65536 
1K-blocks)
mfs:28715 on /var type mfs (asynchronous, local, noatime, nodev, nosuid, 
size=25

600 1K-blocks)
mfs:13657 on /dev type mfs (asynchronous, local, noatime, size=1024 
1K-blocks)
mfs:13714 on /tmp type mfs (asynchronous, local, noatime, nodev, nosuid, 
size=30

72 1K-blocks)
mfs:2250 on /home type mfs (asynchronous, local, noatime, nodev, nosuid, 
size=40

96 1K-blocks)
mfs:25859 on /root type mfs (asynchronous, local, noatime, nodev, 
nosuid, size=4

096 1K-blocks)



--- /usr/livecd/etc/rc -
# ...
# After:rm -f /fastboot # XXX (root 
now writeable)

echo 'mounting mfs'
mount_mfs -s 51200 -o async,nosuid,nodev,noatime swap /var
mount_mfs -i 4096 -s 6144 -o async,nosuid,nodev,noatime swap /etc
mount_mfs -i 128 -s 2048 -o async,noatime swap /dev
mount_mfs -s 6144 -o async,nosuid,nodev,noatime swap /tmp
mount_mfs -s 8192 -o async,nosuid,nodev,noatime swap /home
mount_mfs -s 8192 -o async,nosuid,nodev,noatime swap /root
--- /usr/livecd/etc/fstab --
/dev/cd0a   /   cd9660 ro,noatime 0 0
/dev/cd0a / cd9660 ro,noatime 0 0
swap /dev mfs rw,noatime,-s=12000 0 0
swap /tmp mfs rw,noatime,-s=262144 0 0
swap /var mfs rw,noatime,-s=262144 0 0
swap /root mfs rw,noatime,-s=262144 0 0
swap /home mfs rw,noatime,-s=262144 0 0
swap /etc mfs rw,noatime,-s=131072 0 0





Re: in-kernel PPPoE and linkup-script

2005-09-21 Thread Alexander Farber
Can't you put !stuff into /etc/hostname.pppoe0 ?

On 9/21/05, Steffen Michalke [EMAIL PROTECTED] wrote:
 No, really nothing else than /etc/hostname.pppoe0. If you need
 something special (eg. dynamic DNS) you could create a process which
 is observing this interface.



Re: pkg_create error

2005-09-21 Thread Marc Espie
On Wed, Sep 21, 2005 at 06:21:24AM +, Edy Purnomo wrote:
 Hi all,
 
 Recently, my OBSD 3.4 can not do any of port installation.
 Please advice.

Update!!!



Re: Jacek Artymiak --off topic

2005-09-21 Thread Siju George
On 9/20/05, Bryan Irvine [EMAIL PROTECTED] wrote:
 On 9/20/05, Siju George [EMAIL PROTECTED] wrote:
 I don't recall seeing anything in his blog.
 http://netatnik.com/
 
 Last post on sept 9.
 
 FWIW, there's also a podcast.
 feed://jacek.libsyn.com/rss/english
 
 But that hasn't been updated for a while.
 

Thankyou so much Chris and Bryan for the info :-)

Kind Regards

Siju



Re: ftp-proxy(8) and pf question

2005-09-21 Thread Stephan A. Rickauer

Camiel Dobbelaar wrote:
You can try src/usr.sbin/ftp-proxy (only in cvs, you have to build 
it yourself)


http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/ftp-proxy/

It used to be called pftpx, which you can google for.

Disclaimer: I wrote it.


Cool, this is what I needed. It runs perfect and behaves like a 'real 
proxy'. Especially using anchors to write pf rules dynamically is a cool 
idea. Will it replace the other ftp-proxy at some point that comes with 
OpenBSD?


Thanks a lot,


--

 Stephan A. Rickauer

 
 Institut f|r Neuroinformatik
 Universitdt / ETH Z|rich
 Winterthurerstriasse 190
 CH-8057 Z|rich

 Tel: +41 44 635 30 50
 Sek: +41 44 635 30 52
 Fax: +41 44 635 30 53

 http://www.ini.ethz.ch
 



Re: To secure WiFi networks

2005-09-21 Thread Johan P . Lindström
On 9/20/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 The squid solution only would encrypt http or ftp traffic if I'm familiar 
 with the basic working, leaving out e-mail encryption, which would be quit an 
 issue for the security-sensitive wifi users.
 
 The Google solution is nothing but a vpn client with a google paint job.
 
 
 On Tue, Sep 20, 2005 at 06:09:49PM +0200, Johan P. Lindstr?m wrote:
  On 7/15/05, Johan P. Lindstrvm [EMAIL PROTECTED] wrote:
   Good afternoon list, I'm just going to throw out an idea here and lets 
   take
   turns kicking at it.
  
   I'm not too familiar with the inner workings of the needed technologies
   (sometimes a pro, often a con) but what if one would use a https proxy, 
   like
   say squid with SSL/TLS support, to obfuscate the http traffic leaving your
   laptop over the WiFi LAN to your local OpenBSD box that runs the proxy, 
   that
   would then with some magic serve you the pages. So that http traffic could
   not be intercepted on the open WiFi network.
  
   Is someone doing something similar already?
  
   Googling did not turn up anything helpful here apart from the SSL support 
   in
   Squid, but would the protocols allow something like this?
  
   -- Johan
  
  
 
  I probably shouldn't be kicking my own dead thread, but in lack of
  better knowledge...
 
  I just found someone who is doing roughly what I was trying to explain.
 
  http://wifi.google.com/faq.html
 
  Haven't tried it since I'm about 10-11 hours in a Airbus 330 away...
 
  http://wifi.google.com/download.html
 
 
 
  --
  // Johan
 
 
 --
 
 
 
 mitc groningen 9736cp
 


Fair enough.

What I was aiming for was to kick around alternatives to WEP or WPA in
a WiFi network, and I don't know if I made it clear earlier but http
traffic only, is fine with me.
-- 
// Johan



Re: pkg_create error

2005-09-21 Thread Stuart Henderson

--On 21 September 2005 06:21 +, Edy Purnomo wrote:


Recently, my OBSD 3.4 can not do any of port installation.
Please advice.


Looks like you're trying to use -current ports on an old OS, which 
won't work. A huge amount of work has been done on ports/package 
infrastructure between 3.7 and 3.8.


There might be unsupported ways around it, but really, just update the 
OS. There are many improvements between 3.4 and 3.7, and you'll be 
setup for an easier move to 3.8.




Mounting a ntfs partition..

2005-09-21 Thread tronss

Hi,

I'd like to know how can I mount a ntfs partition in my first hdd to 
scan my windows xp with antivir antivirus.


I have option ntfs in GENERIC kernel and compiled like that, but when I 
try to do: mount -t ntfs /dev/wd0a /mnt tells me device not 
configured. I see


Can you help me?.

Thanks.

tronss


My disklabel:

disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: Maxtor 6Y120P0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 240121728
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 c: 240121728 0  unused  0 0  # Cyl 0 
-238215
 i: 24010742763 unknown   # Cyl 
0*-238201*




Re: Mounting a ntfs partition..

2005-09-21 Thread steven mestdagh
On Wed, Sep 21, 2005 at 11:52:21AM +0200, tronss wrote:
 Hi,
 
 I'd like to know how can I mount a ntfs partition in my first hdd to 
 scan my windows xp with antivir antivirus.
 
 I have option ntfs in GENERIC kernel and compiled like that, but when I 
 try to do: mount -t ntfs /dev/wd0a /mnt tells me device not 
 configured. I see
 
 Can you help me?.
 
 Thanks.
 
 tronss
 
 
 My disklabel:
 
 disklabel: warning, DOS partition table with no valid OpenBSD partition
 # /dev/rwd0c:
 type: ESDI
 disk: ESDI/IDE disk
 label: Maxtor 6Y120P0
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 16
 sectors/cylinder: 1008
 cylinders: 16383
 total sectors: 240121728
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0   # microseconds
 track-to-track seek: 0  # microseconds
 drivedata: 0
 
 16 partitions:
 # sizeoffset  fstype [fsize bsize  cpg]
  c: 240121728 0  unused  0 0  # Cyl 0 
 -238215
  i: 24010742763 unknown   # Cyl 
 0*-238201*
 ^
you will need to use /dev/wd0i instead of /dev/wd0a

-- 

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



Re: HW: Wireles PCCARD

2005-09-21 Thread Johan P . Lindström
Just got word from 3com

The RCPAG175 PCCARD uses the Atheros AR5001+ chipset. No knowledge of
chip changes and revisions, as in they would not know even if there
where changes.

There is also a new model on the horizon, RCPAG175B, that should be
using the AR5414 single chip solution.

I have not had the opportunity to test mentioned hardware in any way,
but someone might find the info usefull.



Re: Wifi + wired laptop

2005-09-21 Thread Edd Barrett
 Could you possibly have written a more useless plea for help?

yes

 You haven't said 1) what version of OpenBSD you are using,
 2) what laptop you have, 3) what wireless card you have, 4)
 a copy of the kernel dmesg output.

None of this matters given that the unreliability isnt anything to do
with openbsd. I believe this to be my location. All im asking is how I
can get the OS to switch from one to the other automatically if one is
not available. I think you misunderstood my question.


 I *think* what you want to learn about is the dhclient command
 so you can switch back and forth between a wireless and
 ethernet connection, but given the lack of details, I can't be
 sure.

Yes I'm familiar with dhclient. Not sure how this could help though.


 You need to read the openbsd site and pay particular attention
 to the mailing list procedures.

I plead not guilty.

 maybe you could use 'ifconfig wi0 down' (that disables all the routes
 configured to that interface)..? and than the whole traffic would be
 passed through the 'wired' interface (assuming proper config on that
 interface).

yes, this was one of my initial ideas.  Requires intervention...

 you could try to manipulate the routing tables via route(8).

I'll look into that. Thanks for your help.

 I don't have the means to try this at hand, but
 write a simple script to change the default
 route as needed, back and forth between the wired
 and wireless interfaces.  I can't immediately
 think any reason that won't work.

Thats exactly what I do right now. I have a script with the suid bit
set that i can run to switch interfaces. Its the suid bit I dont like.

Thanks for the input guys

Best Regards

Edd



3.7-stable /bin/sh history scrolling

2005-09-21 Thread Shaun Fryer
Hello all,

The history scrolling via arrow keys recently vanished
from /bin/sh on my 3.7 box. Anyone aware of what might
have caused this? IIRC it worked fine up until I did
an update about a week ago. How can I reenable it?

OpenBSD 3.7-stable (GENERIC.MP) #3: Tue Sep 13 13:42:35 EDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP

--
Shaun Fryer
905-529-6669
http://sourcery.ca/



Re: Wifi + wired laptop

2005-09-21 Thread Alexander Hall

Edd Barrett wrote:

...
Thats exactly what I do right now. I have a script with the suid bit
set that i can run to switch interfaces. Its the suid bit I dont like.

 ...

Maybe you would feel more comfortable using sudo, if it is just that 
suid bit that annoys you?




Re: Slow Sparc Ultra 5

2005-09-21 Thread Tim Kornau
On Fri, 16 Sep 2005 at 11:14 +1000, BadMagic wrote:
 Hello,

 I installed OpenBSD 3.7 (Sparc64) on my Ultra 5 and it's performance is not
what I'd expected. I'd recently had Solaris on there (using CDE) and it ran
quite quickly but with OpenBSD, when I do an 'ls -la', it takes forever for
the screen to scroll through the list and try it via ssh! Slow. I'm using it
as a Web server and it's noticably slower at serving pages than the old x86 I
had doing the job before was.

 Anyone know something about this?

 Regards,
 sl

have you enabled softdeps on your disks ?

if not i guess thats the problem

Tim

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: Mounting a ntfs partition..

2005-09-21 Thread tronss

Marc Peters wrote:

as you can see in your disklabel output, you don't have an a-partition 
on your harddrive, which you want to mount. you have to mount 
/dev/wd0i, as disklabel shows you that this is the only one on that 
drive.


tronss schrieb:


Hi,

I'd like to know how can I mount a ntfs partition in my first hdd to 
scan my windows xp with antivir antivirus.


I have option ntfs in GENERIC kernel and compiled like that, but when 
I try to do: mount -t ntfs /dev/wd0a /mnt tells me device not 
configured. I see


Can you help me?.

Thanks.

tronss


My disklabel:

disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: Maxtor 6Y120P0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 240121728
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
# sizeoffset  fstype [fsize bsize  cpg]
 c: 240121728 0  unused  0 0  # Cyl 0 
-238215
 i: 24010742763 unknown   # Cyl 
0*-238201*






You are right, sorry and thank you very much.

tronss



Re: HW: Wireles PCCARD

2005-09-21 Thread snlk
Hi,

On Wed, 21 Sep 2005, Johan P. Lindstrvm wrote:

 Just got word from 3com

 The RCPAG175 PCCARD uses the Atheros AR5001+ chipset. No knowledge of
 chip changes and revisions, as in they would not know even if there
 where changes.

I don't know what Atheros AR5001+ is composed of, but my 3Com pccard,
3CRPAG157, prints the following dmesg on a Dell Latitude CPi A400 with
a 3.8 snapshots.

--
OpenBSD 3.8-beta (GENERIC) #115: Mon Aug 22 22:54:07 MDT 2005
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

[snip]

ath0 at cardbus0 dev 0 function 0 3Com Corp., 3CRPAG175 Wireless LAN PC Card, 
: irq 11
ath0: AR5212 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, WOR0W, address 00:0f:cb:f9:01:f5

[snip]
--

Working very stable in mode 11b.

/stefan



mod_dav problem

2005-09-21 Thread Didier Wiroth
Hi,
I've been googling around and find that people are having the same
problem but I did not find the solution.
I'm not able to use mod_dav (mod_dav-1.0.3p0) on openbsd 3.7-stable.

I tried to create a folder and copy a .pdf file, without success...

Here are my related entries in httpd.conf:
LoadModule dav_module /usr/lib/apache/modules/libdav.so
DAVLockDB /var/www/var/DAVLock

Directory /var/www/htdocs/test
DAV On
Options Indexes
/Directory

Here is the error_log:
[Wed Sep 21 14:39:48 2005] [notice] Initializing etag from
/var/www/logs/etag-state
[Wed Sep 21 14:39:48 2005] [notice] chrooted in /var/www
[Wed Sep 21 14:39:48 2005] [notice] changed to uid 67, gid 67
[Wed Sep 21 14:39:48 2005] [notice] Apache configured -- resuming normal
operations
[Wed Sep 21 14:39:48 2005] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Wed Sep 21 14:39:55 2005] [error] [client 194.120.20.14] File does not
exist: /htdocs/test/New Folder
[Wed Sep 21 14:39:55 2005] [error] [client 194.120.20.14] The locks
could not be queried for verification against a possible If: header.
[500, #0]
[Wed Sep 21 14:39:55 2005] [error] [client 194.120.20.14] Could not open
the lock database.  [500, #400]
[Wed Sep 21 14:39:55 2005] [error] [client 194.120.20.14] (2)No such
file or directory: I/O error occurred.  [500, #1]

Here are some related entries from access_log:
194.120.20.14 - - [21/Sep/2005:14:36:28 +0200] OPTIONS /test HTTP/1.0
200 0
194.120.20.14 - - [21/Sep/2005:14:36:28 +0200] PROPFIND /test HTTP/1.0
207 970
194.120.20.14 - - [21/Sep/2005:14:36:29 +0200] PROPFIND /test HTTP/1.0
207 970
194.120.20.14 - - [21/Sep/2005:14:36:31 +0200] PROPFIND /test HTTP/1.0
207 970
194.120.20.14 - - [21/Sep/2005:14:36:32 +0200] PROPFIND /test HTTP/1.0
207 970
194.120.20.14 - - [21/Sep/2005:14:36:33 +0200] PROPFIND /test HTTP/1.0
207 1036
194.120.20.14 - - [21/Sep/2005:14:36:36 +0200] HEAD /test/New%20Folder
HTTP/1.0 404 0
194.120.20.14 - - [21/Sep/2005:14:36:36 +0200] MKCOL /test/New%20Folder
HTTP/1.0 500 260
194.120.20.14 - - [21/Sep/2005:14:37:10 +0200] HEAD /test/fc_inap.pdf
HTTP/1.0 404 0
194.120.20.14 - - [21/Sep/2005:14:37:10 +0200] PUT /test/fc_inap.pdf
HTTP/1.0 500 260
194.120.20.14 - - [21/Sep/2005:14:39:51 +0200] PROPFIND /test HTTP/1.0
207 970
194.120.20.14 - - [21/Sep/2005:14:39:51 +0200] PROPFIND /test HTTP/1.0
207 1036
194.120.20.14 - - [21/Sep/2005:14:39:55 +0200] HEAD /test/New%20Folder
HTTP/1.0 404 0
194.120.20.14 - - [21/Sep/2005:14:39:55 +0200] MKCOL /test/New%20Folder
HTTP/1.0 500 260
194.120.20.14 - - [21/Sep/2005:14:41:09 +0200] HEAD /test/fc_inap.pdf
HTTP/1.0 404 0
194.120.20.14 - - [21/Sep/2005:14:41:09 +0200] PUT /test/fc_inap.pdf
HTTP/1.0 500 260

It looks like it can't create the DAVLockDB and indeed the file is not
present in /var/www/var/
I changed the /var/www/var to permission 777 but this didn't work
either.

What's wrong?
thank you



SATA cards (not looking for RAID)

2005-09-21 Thread Johan P . Lindström
Looking in my heap of spare parts, it seems I am able to build a P4
bucket, this could be fun,  though the motherboard only takes IDE/PATA
drives, I scavenged 4x 250GB SATA drives so I'm on the lookout for
SATA cards. I am not interested in RAID (or the lack there of in the
SATA controllers) for this assembly.


Is there a specific vendor that one should honor buying new controllers.

Experiences with ccd and SATA are welcome.


--
// Johan



FW: mod_dav problem - PROBLEM SOLVED

2005-09-21 Thread Didier Wiroth
sorry and thx, problem solved



Re: spamd sync

2005-09-21 Thread eric
On Tue, 2005-09-20 at 22:29:16 -0400, Mike Spenard proclaimed...

 Has anyone written a utility to keep /var/db/spamd in sync across multiple
 spamd servers?

Answer: Yes!

Question: Have you thought about checking the archives?



Re: in-kernel PPPoE and linkup-script

2005-09-21 Thread Martin Dommermuth
Hello, 

* Alexander Farber wrote/schrieb:

 Can't you put !stuff into /etc/hostname.pppoe0 ?

nope, I tried that. Seems not to be executet on reconnect.
I now got it working with the daemon mode of ez-ipupdate. If I need
to call any other scripts on reconnect it also has this option:
-e, --execute command   shell command to execute after a
  successful  update

MartinD:



customizing /etc/daily.local

2005-09-21 Thread frantisek holop
hi there,

i would like to use /etc/daily.local for flushing some pf tables.

kripel cat /etc/daily.local
#!/bin/sh

echo flushing bad_ssh: 
pfctl -t bad_ssh -T flush



i don't run sendmail, so i modified root's crontab:

30  1   *   *   *   /bin/sh /etc/daily 21  /var/log/daily
.out

my problem is, that pfctl's output goes to the terminal and
not the log file...

also, is there a way to skip the other parts of /etc/daily?
i don't really need those, but i want to keep my changes
seperate (*.local).  what about a SKIP_DAILY=true or some such
in /etc/daily.local?

-f
-- 
i bought unscented perfume. -- steven wright



Re: in-kernel PPPoE and linkup-script

2005-09-21 Thread Alexander Farber
Not the best solution - the ez-ipupdate.c doesn't
look that clean. Example (what if recv() returns -1?):

if(FD_ISSET(client_sockfd, readfds))
{
  bread = recv(client_sockfd, buf, len-1, 0);
  dprintf((stderr, bread: %d\n, bread));
  buf[bread] = '\0';
  dprintf((stderr, got: %s\n, buf));
  if(bread == -1)

On 9/21/05, Martin Dommermuth [EMAIL PROTECTED] wrote:
 * Alexander Farber wrote/schrieb:

  Can't you put !stuff into /etc/hostname.pppoe0 ?

 nope, I tried that. Seems not to be executet on reconnect.
 I now got it working with the daemon mode of ez-ipupdate. If I need
 to call any other scripts on reconnect it also has this option:
 -e, --execute command   shell command to execute after a
   successful  update



Re: in-kernel PPPoE and linkup-script

2005-09-21 Thread Steffen Michalke
Alexander Farber writes:

 Can't you put !stuff into /etc/hostname.pppoe0 ?

Yes, but these commands are executed only when that interface is
created, not when it is brought up again afterwards.



Re: customizing /etc/daily.local

2005-09-21 Thread Moritz Grimm

frantisek holop wrote:

30  1   *   *   *   /bin/sh /etc/daily 21  /var/log/daily
.out

my problem is, that pfctl's output goes to the terminal and
not the log file...


If you want both stdout and stderr in /var/log/daily.out, the line needs 
to read


... /bin/sh /etc/daily  /var/log/daily.out 21


Moritz



Re: customizing /etc/daily.local

2005-09-21 Thread Michael Erdely
On 9/21/05, frantisek holop [EMAIL PROTECTED] wrote:
 i don't run sendmail, so i modified root's crontab:

 30  1   *   *   *   /bin/sh /etc/daily 21  
 /var/log/daily
 .out

 my problem is, that pfctl's output goes to the terminal and
 not the log file...

This is a redirection issue.

Your crontab line should be:
... /bin/sh /etc/daily  /var/log/daily.out 21


 also, is there a way to skip the other parts of /etc/daily?
 i don't really need those, but i want to keep my changes
 seperate (*.local).  what about a SKIP_DAILY=true or some such
 in /etc/daily.local?

How about just bypassing daily.local in root's contrab all together
and just run daily.local?

 -f

--
http://erdelynet.com/
Support OpenBSD! http://www.openbsd.org/orders.html



Re: customizing /etc/daily.local

2005-09-21 Thread Alexander Hall

frantisek holop wrote:

hi there,

i would like to use /etc/daily.local for flushing some pf tables.

kripel cat /etc/daily.local
#!/bin/sh

echo flushing bad_ssh: 
pfctl -t bad_ssh -T flush



i don't run sendmail, so i modified root's crontab:

30  1   *   *   *   /bin/sh /etc/daily 21  /var/log/daily
.out

my problem is, that pfctl's output goes to the terminal and
not the log file...

also, is there a way to skip the other parts of /etc/daily?
i don't really need those, but i want to keep my changes
seperate (*.local).  what about a SKIP_DAILY=true or some such
in /etc/daily.local?

-f


I maybe do not get what you mean, but I'll try to answer it.

You dont want to use /etc/daily?
Just ``sudo crontab -e'' and comment it out.
No need for SKIP_DAILY.

You want to run /etc/daily.local?
Modify your above line, but use
``/bin/sh /etc/daily /var/log/daily 21''

Yes. The order of the redirections is important.

Cheers
Alexander



Re: customizing /etc/daily.local

2005-09-21 Thread frantisek holop
hmm, on Wed, Sep 21, 2005 at 10:50:40AM -0400, Michael Erdely said that
 This is a redirection issue.
 
 Your crontab line should be:
 ... /bin/sh /etc/daily  /var/log/daily.out 21

uf.  back to unix elementary school ;-)

 How about just bypassing daily.local in root's contrab all together
 and just run daily.local?

;-)  i must have been complicating things because of the
heavy lunch...


thanks a lot.

-f
-- 
dyslexic christian sells his soul to santa... news at 11.



Re: SATA cards (not looking for RAID)

2005-09-21 Thread Rogier Krieger
On 9/21/05, Johan P. Lindstrvm [EMAIL PROTECTED] wrote:
 I'm on the lookout for SATA cards. I am not interested in RAID (or the lack
 there of in the SATA controllers) for this assembly.

So far, Silicon Image SiI 3112 and 3114 model controllers seem to work
fine for me. In the Netherlands, they are available for about 35 to 40
euro (unit price, SiI 3112). That was a local shop; possibly there are
other vendors that offer lower prices.

I recommend checking for those chipsets when purchasing. Or find a
vendor that allows you to return the goods if they do not work
properly with your OS of choice.

Cheers,

Rogier

--
If you don't know where you're going, any road will get you there.



p5-Expect problems in chroot

2005-09-21 Thread Jason Dixon
I'm trying to get a simple authentication cgi working in the default  
chroot, but I'm running into some pty problems.  I've installed p5- 
Expect from packages (and the dependency p5-IO-Tty) and copied the  
files into chroot.  The script runs fine when run manually (non- 
chroot), but fails with the following error when run via apache:


pty_allocate: openpty(): No such file or directory at /usr/local/ 
libdata/perl5/site_perl/i386-openbsd/IO/Pty.pm line 24.

Cannot open a pty at /sites/cgi/syncauth.cgi line 11

Tty.so contains the missing openpty() function, and has been copied  
into the chroot, so I'm not sure what else I might be missing.  Any  
ideas?


Thanks,

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Re: p5-Expect problems in chroot

2005-09-21 Thread Jason Dixon

On Sep 21, 2005, at 3:17 PM, Jeremy wrote:


I believe you'll need the ptys to open in the chroot's /dev.


I created ptm and ptyp[0-9], but I'm still getting the error.

# ls -l /var/www/dev/
total 0
crw-rw-rw-  1 root  daemon2,   2 Aug 17 09:35 null
crw-rw-rw-  1 root  wheel81,   0 Sep 21 15:46 ptm
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:46 ptyp0
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:47 ptyp1
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:47 ptyp2
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:47 ptyp3
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:48 ptyp4
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:48 ptyp5
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:48 ptyp6
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:48 ptyp7
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:48 ptyp8
crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:49 ptyp9
crw-rw-rw-  1 root  daemon1,   0 Aug 17 09:35 tty

pty_allocate: openpty(): No such file or directory at /usr/local/ 
libdata/perl5/site_perl/i386-openbsd/IO/Pty.pm line 24.

Cannot open a pty at /sites/cgi/syncauth.cgi line 11


--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



Storage Server

2005-09-21 Thread Tom Geman
I work for a small company with me as a makeshift computer administrator. 
Our company currently has two offices with their own file servers.  I have 
an offsite backup server that currently backs up both file servers remotely 
(via rsync), everything is running OpenBSD 3.7.


We are upgrading the backup server to a Dell Powervault 220, leaving room 
for expandability.  I see from the archieves that this is the same model 
used by the OpenBSD team for their CVS.  I am planning to use this server 
with a mirrored raid 5 configuration.


I was hoping someone here could answer a few questions.
Can I install OpenBSD on this PV 220, or is it just a bunch of disks with no 
processor?
If so, does that mean I need another computer to install OpenBSD on, that 
will use the PV 220 as it's storage?  Can this be any computer (what 
requirements, any recommended brands), or does it have to be this Dell 
PowerVault 745N (which seems to come pre-install with some Windows Storage 
Server OS)?


I know this isn't the most on topic posting to this list, but it is the only 
list I am a part of, and I trust the opinions on this list.

Thanks for any help!

_
Dont just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




Re: Storage Server

2005-09-21 Thread Greg Thomas
On 9/21/05, Tom Geman [EMAIL PROTECTED] wrote:

 I work for a small company with me as a makeshift computer administrator.
 Our company currently has two offices with their own file servers. I have
 an offsite backup server that currently backs up both file servers
 remotely
 (via rsync), everything is running OpenBSD 3.7.

 We are upgrading the backup server to a Dell Powervault 220, leaving room
 for expandability. I see from the archieves that this is the same model
 used by the OpenBSD team for their CVS. I am planning to use this server
 with a mirrored raid 5 configuration.

 I was hoping someone here could answer a few questions.
 Can I install OpenBSD on this PV 220, or is it just a bunch of disks with
 no
 processor?



From looking at their specs it looks like just a storage enclosure.

If so, does that mean I need another computer to install OpenBSD on, that
 will use the PV 220 as it's storage? Can this be any computer (what
 requirements, any recommended brands), or does it have to be this Dell
 PowerVault 745N (which seems to come pre-install with some Windows Storage
 Server OS)?


If I'm reading correctly you can attach the enclosure to any system with a
decent SCSI interface. Just make sure whatever that machine is that it has a
SCSI interface that is well-supported by OpenBSD.

Greg



Re: nat problems when using address pool

2005-09-21 Thread Chris Smith
Just an update.

It seems source-hash, for whatever reason, simply doesn't work for me. I 
did find an older post that exhibits a similar issue: 
http://www.monkey.org/openbsd/archive/bugs/0403/msg00211.html

Round-robin works fine, but source-hash will always leave some systems 
blind to the Internet; they can ping the gateway's internal interface 
but not the external interface.

On a more upbeat note, I discovered sticky-address which, if it 
doesn't cause the problems that source-hash did, will be a very good 
solution, ameliorating the issues caused by round-robin alone; plus, as 
an added bonus, will allow me to use a table instead of a CIDR block. I 
have implemented it, so far, so good. My fingers are crossed that the 
same side effect caused by source-hash doesn't appear.

Chris



Latest ath changes panics system

2005-09-21 Thread Ray Lai
On Mon, Sep 19, 2005 at 04:27:09AM -0600, Reyk Floeter wrote:
 CVSROOT:  /cvs
 Module name:  src
 Changes by:   [EMAIL PROTECTED]   2005/09/19 04:27:08
 
 Modified files:
   sys/dev/ic : ar5210.c ar5211.c ar5212.c ar5xxx.c ar5xxx.h 
ath.c 
 
 Log message:
 don't attach unsupported radio chipsets

Hi,

This seems to have broken my laptop entirely (dmesg at
https://marc.theaimsgroup.com/?l=openbsd-miscm=112667018017607w=2).

...
ath0 at pci1 dev 2 function 0 Atheros AR5212 rev 0x01: irq 11
ath: AR5213 5.9 phy 4.3 rf2112a 4.6, WOR4W, address 00:0e:9b:b3:27:d1
uvm_fault(0xd05cd960, 0x4000, 0, 1) - e
kernel: page fault trap, code=0
Stopped at  ar5k_ar5212_set_gpio_input+0x4d:movl0x4014(%ebx),%e
ax
ddb trace
ar5k_ar5212_set_gpio_input(d1f81000,3,10,d1f80030,1) at ar5k_ar5212_set_gpio_in
put+0x4d
ath_gpio_attach(d1f8,13,d0596a28,d1f8) at ath_gpio_attach+0x4b
ath_attach(13,d1f8,4,d057aeac) at ath_attach+0x50c
ath_pci_attach(d1f7dec0,d1f8,d06f2cb0,0,0) at ath_pci_attach+0x123
config_attach(d1f7dec0,d057aeac,d06f2cb0,d0360808) at config_attach+0xef
pciattach(d1f7df00,d1f7dec0,d06f2d50,0,d05807e4) at pciattach+0x1c8
config_attach(d1f7df00,d0579fe8,d06f2d50,d03a1cb0,d0547d64) at config_attach+0x
ef
ppbattach(d1f60f40,d1f7df00,d06f2df0,0,0) at ppbattach+0x8e
config_attach(d1f60f40,d057a660,d06f2df0,d0360808) at config_attach+0xef
pciattach(d1f60fc0,d1f60f40,d06f2eb0,0,d0589b98) at pciattach+0x1c8
config_attach(d1f60fc0,d0579fe8,d06f2eb0,d03603d4) at config_attach+0xef
mainbus_attach(0,d1f60fc0,0,0,d06f2f10) at mainbus_attach+0x164
config_attach(0,d0579fc4,0,0,d05cda40) at config_attach+0xef
config_rootfound(d0514cbc,0,d06f2f58,d03373f8) at config_rootfound+0x27
cpu_configure(0,1,3,0,5f6e) at cpu_configure+0x1f
main(0,0,0,0,0) at main+0x339
ddb ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT   COMMAND
*0 -1  0  0  7 0x80204 swapper
ddb
...

Following http://www.benzedrine.cx/crashreport.html, I have
narrowed down the crash point to line 122 of machine/pio.h:

...
/usr/src/sys/dev/ic/ar5212.c:1933
34ac:   8b 59 14mov0x14(%ecx),%ebx
34af:   ba 03 00 00 00  mov$0x3,%edx
34b4:   8d 0c 00lea(%eax,%eax,1),%ecx
34b7:   d3 e2   shl$cl,$edx
machine/pio.h:122
34b9:   9b 83 14 40 00 00   mov0x4014(%ebx),%eax
/usr/src/sys/dev/ic/ar5212.c:1933
34bf:   f7 d2   not%edx
...

And the actual C file:

...
AR4K_REG_WRITE(AR4K_AR5212_GPIOCR,
(AR5K_REG_READ(AR5K_AR5212_GPIOCR) ~ AR5K_AR5212_GPIOCR_ALL(gpio))
| AR5K_AR5212_GPIOCR_NONE(gpio));
...

I hope I didn't copy anything wrong.  I still have the exact CVS
checkout that I built this kernel with, if it can be of any use.

-Ray-



That´s Business - So verdient man heute...!

2005-09-21 Thread Hanzz
Achtung: Wenn Sie ein Skeptiker und f|r neue innovative Mvglichkeiten nicht 
aufgeschlossen sind, dann sollten Sie diese Webseite verlassen!
Anderenfalls bewahren Sie sich einfach Ihr gesundes Ma_ an Misstrauen und 
starten Sie.


==
==

That4s Business

==
==

450.000 Euro
in 7 Monaten mvglich!
Durch Network-Marketing ging mein Traum in Erf|llung!
Hallo, schvn, dass Sie auf meiner Homepage vorbeischauen. Ich bin genauso wie 
Sie, im Internet auf dieses Programm aufmerksam geworden. Was mir hier sofort 
sympathisch war: ALLES wird sofort beschrieben, wie Sie leicht Geld verdienen 
kvnnen und Sie kvnnen SOFORT loslegen. (Anders wie bei verschiedenen 
Nebenjob-Anbietern im Internet, wo Sie erst einmal f|r viel Geld Informationen 
anfordern m|ssen, um nur zu erfahren worum es |berhaupt geht...) 
Nehmen Sie sich ein paar Minuten Zeit und lesen Sie sich den Text unten in Ruhe 
einmal durch. Und Sie werden sehen WIE einfach man Geld verdienen kann. Und was 
mir persvnlich auch sehr wichtig war: Es macht Spass!!! 
Die Personen weiter unten auf der Liste sind ganz normale Personen wie Sie und 
ich, die sich auch entschieden haben an dem Programm teilzunehmen. Es gibt also 
keine Person dazwischen die noch Kohle einkassiert. Sie sind Ihr eigener 
Chef! 
\brigens f|r alle Skeptiker: ich habe beim Gewerbeaufsichtsamt nochmals 
nachgefragt, es gibt definitiv rechtlich KEINE Einwdnde gegen dieses Programm!
Ich w|nsche Ihnen genauso viel Erfolg und Spass wie ich bis jetzt damit 
habe!
 Wie aus 35 Euro 450.000 Euro und mehr werden - in 7 Monaten mvglich !!!
Sehr geehrte Damen und Herren,
Wir distanzieren uns von allen bis jetzt da gewesenen, dhnlichen Programmen. 
\berzeugen Sie sich selbst. Den Grundgedanken haben wir gelassen, weil das 
Programm GOLD wert ist. Die Dnderungen sind jetzt auf deutschsprachige Ldnder 
zugeschnitten (Gesetze, Verordnungen etc.).
Guten Tag!
Im Internet mit Ihrem PC von zu Hause Geld verdienen! Sie kvnnen innerhalb der 
ndchsten 7 Monaten mehr als 450.000 ? erhalten, indem Sie kostenlos Werbung 
machen, erfahren Sie in einer Schritt f|r Schrittanweisung, die in den 7 
E-B|chern stehen, die Sie per e-mail erhalten werden. Sie sind f|r jeden leicht 
verstdndlich geschrieben.
Bis 450.000 ? in nur 7 Monaten! Erscheint Ihnen das unmvglich? Lesen Sie weiter 
und erfahren Sie detailliert, wie das funktioniert.
Nein, - es gibt dabei keinen Haken !
Vielen Dank f|r Ihre Zeit und Ihr Interesse!
Wegen der Popularitdt dieses Briefes im Internet widmete ein bekanntes 
deutsches Nachrichtenmagazin eine komplette Sendung der Untersuchung des unten 
beschriebenen Programms, um herauszufinden ob es wirklich Geld bringt.

Diese Sendung pr|fte auch, ob das Programm legal ist oder nicht. Dabei wurde 
herausgefunden, dass es keine Gesetze gibt, dass die Teilnahme an dem Programm 
verbietet. Dies hat dazu beigetragen zu zeigen, dass dies ein einfacher, 
harmloser Weg ist, zusdtzlich Geld von zu Hause aus zu verdienen und 
bemerkenswerte Resultate gebracht..

Es nehmen so viele Menschen an diesem Programm teil, dass es f|r diejenigen, 
die schon dabei sind, noch besser lduft, als zuvor. Da jeder mehr verdient, je 
mehr Menschen es ausprobieren, war es in letzter Zeit sehr aufregend dabei zu 
sein. Das werden Sie verstehen, sobald Sie Erfahrungen sammeln.

Sie kvnnen sich das Folgende jetzt ausdrucken, um jederzeit darauf 
zur|ckzugreifen, in jedem Fall aber sicher aufbewahren, denn Sie werden das 
unglaubliche Konzept noch vfters lesen, d.h. wenn Sie gerne 450.000 ? in 
weniger als 7 Monaten verdienen mvchten, dann lesen Sie das folgende Programm 
... und dann lesen Sie es noch einmal!
Das Programm bietet eine legale Mvglichkeit, Geld im Internet zu verdienen.
Daf|r m|ssen Sie keinem etwas persvnlich verkaufen, hart arbeiten und das Beste 
daran ist: Sie m|ssen nicht einmal das Haus verlassen. Sie werden eines Tages 
einen Kontostand erreichen, von dem Sie schon lange getrdumt haben, ob Sie es 
wollen oder nicht!
Rezession: (Einer von vielen Anwendern dieser Geschdftsmvglichkeit)
Ich hei_e Markus Weber. Vor zwei Jahren hat die Firma, f|r die ich die letzten 
12 Jahre arbeitete, rationalisiert und ich wurde entlassen. Nach unergiebigen 
Vorstellungsgesprdchen entschloss ich mich mein eigenes Geschdft aufzumachen.
In den vergangenen Jahren erlebte ich einige unvorhergesehene finanzielle 
Probleme. Ich schuldete meiner Familie, meinen Freunden und meinen Geldgebern 
mehr als 18.000 ?. Die Wirtschaftslage forderte ihren Tribut von meinem 
Geschdft und es gelang mir nicht, ein ausreichendes Auskommen zu finden. Ich 
musste refinanzieren und eine Hypothek aufnehmen, um meine Familie und mein 
Geschdft zu erhalten. In diesem Moment passierte etwas Entscheidendes in meinem 
Leben. Ich schreibe Ihnen dies, um meine Erfahrung zu teilen und bin sicher, 
dass es auch Ihr Leben finanziell f|r 

HOWTO Install MySQL GUI Admin / Query Browser on OpenBSD 3.7

2005-09-21 Thread Keith Richardson
Hello,

I have put together a guide on building
mysql-administrator and mysql-query-browswer on
OpenBSD.  Below is a text version (html version is
available; I can send it to anyone interested). 

I have submitted the html version to daniel at
openbsdsupport.org.  

This is a work in progress.  Any help testing,
commenting, expanding,
correcting, etc... is always appreciated.


One change I am not sure about;
mysql-administrator/source/linux/MAServerLogsPanel.cc
(I replaced
_XOPEN_SOURCE with _GNU_SOURCE; otherwise the
compiler complains
about missing math functions)

Thanks,
Keith Richardson


HOWTO Install MySQL ADMIN/QUERY GUI Tools



Build Requirements Administrator Query Browser
References Source
Locations Author


BUILD REQUIREMENTS

The build requirements are for the administrator gui.

650 MB for source builds.  Disk spaced used by package
installations is
unknown. 
download source code for gtkmm 2.2, libsigc++-1.2.7, 
mysql-administrator and/or mysql-query-browser

install package mysql-client-4.0.23 (this installs the
server as well) 
install package gtk+2-2.4.14.tgz install package
gmake-3.80p0.tgz 
install package m4-1.4.tgz (required for libsigc++1.2)

build from source: libsigc++-1.2.7 (required for gtkmm
2.2) 
install package pkgconfig-0.15.0.tgz (required for
gtkmm 2.2)
build from source: gtkmm 2.2 (can be installed with
gtkmm 1.2)
install package libglade2-2.4.0p0.tgz install package
pcre-4.5.tgz


MYSQL-ADMINISTRATOR

If you plan on connecting to a MySQL database  5.0.3
(which is most of
us), you should install 1.0.22a, not 1.1.14.

For user administration (and probably other features),
mysql-admin
1.1.14 needs to connect to a MySQL 5.0.3 database. 
This version of
mysql-admin is sending the SQL query select * from
mysql.procs_priv 
and, when that fails, mysql-admin will give the
Could not retrieve
user privilege information. error dialog.

You do not need to build against MySQL 5.0.3; building
either version of
the administrator will work against MySQL 4.0.23p1.

build mysql-gui-common found inside unpacked
directory. modify
./source/linux/MInstanceInfo.cc modify
./source/linux/MAServerLogsPanel.cc (admin-1.0.22a
only) execute the
following commands

mv
./images/icons/png/maintree/16x16_StartStopService.png644
\

./images/icons/png/maintree/16x16_StartStopService.png

mv
./library/tests/test_get_cnf_value/t/common.test.query644
\

./library/tests/test_get_cnf_value/t/common.test.query

mv 
./library/tests/test_update_cnf/test_update_cnf.vcproj644
\

./library/tests/test_update_cnf/test_update_cnf.vcproj

mv
./library/tests/test_get_all_cnf_sections/test_priv.sh644
\

./library/tests/test_get_all_cnf_sections/test_priv.sh

mv
./images/icons/png/sections/startup_variables_gray.png644
\

./images/icons/png/sections/startup_variables_gray.png

mv
./images/icons/png/maintree/24x24_StartStopService.png644
\

./images/icons/png/maintree/24x24_StartStopService.png

mv
./res/mac/English.lproj/ServerConnections.nib/info.nib644
\

./res/mac/English.lproj/ServerConnections.nib/info.nib

mv
./res/mac/English.lproj/ServerInformation.nib/info.nib644
\

./res/mac/English.lproj/ServerInformation.nib/info.nib

mv
./res/mac/English.lproj/DataFileEditor.nib/classes.nib644
\

./res/mac/English.lproj/DataFileEditor.nib/classes.nib

mv
./res/mac/English.lproj/HealthGraphEditor.nib/info.nib644
\

./res/mac/English.lproj/HealthGraphEditor.nib/info.nib

mv
./res/mac/English.lproj/ServiceControl.nib/classes.nib644
\

./res/mac/English.lproj/ServiceControl.nib/classes.nib
mv  ./source/mac/MySQL\
Administrator.xcode/akojima.pbxuser644 \
./source/mac/MySQL\
Administrator.xcode/akojima.pbxuser
mv  ./source/mac/MySQL\
Administrator.xcode/project.pbxproj644 \
./source/mac/MySQL\
Administrator.xcode/project.pbxproj

./configure; gmake; gmake install


QUERY-BROWSER

Coming soon


MYSQL GUI COMMON

My advice is to build the mysql-gui-common that came
with the GUI tool
you are installing.  If you are installing both query
browswer and
administator, you should build each mysql-gui-common.
 Make sure you
give configure the same prefix you gave the enclosing
gui tool
(either query browser or administrator)

modify ./library/source/myx library.c (admin-1.0.22a
only) 
mv
./library/tests/read_international/read_international.cpp644
\

./library/tests/read_international/read_international.cpp
./configure
--prefix=/same/prefix/as/parent/admin/or/query; gmake;
\
gmake install


SOURCE CODE CHANGES

mysql-gui-common/library/source/myx_library.c

--- mysql-gui-common/library/source/myx_library.c.dist
   Tue Sep 20 18:54:13 2005
+++ mysql-gui-common/library/source/myx_library.c 
   Tue Sep 20 18:54:45 2005
@@ -581,11 +581,14 @@
   //of mysql_real_connect 

Re: p5-Expect problems in chroot

2005-09-21 Thread Ted Unangst
On Wed, 21 Sep 2005, Jason Dixon wrote:

 I created ptm and ptyp[0-9], but I'm still getting the error.
 
 # ls -l /var/www/dev/
 total 0
 crw-rw-rw-  1 root  daemon2,   2 Aug 17 09:35 null
 crw-rw-rw-  1 root  wheel81,   0 Sep 21 15:46 ptm
 crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:46 ptyp0
 crw-rw-rw-  1 root  wheel 6,   0 Sep 21 15:47 ptyp1

these need different minors.

 pty_allocate: openpty(): No such file or directory at /usr/local/
 libdata/perl5/site_perl/i386-openbsd/IO/Pty.pm line 24.
 Cannot open a pty at /sites/cgi/syncauth.cgi line 11

ktrace will tell you what file it doesn't find.

-- 
And that's why I didn't think much about loss of velocity.



Re: pkg_create error

2005-09-21 Thread Edy Purnomo

argh!

yes, it's true, i did update the ports by typing cvsup -g -L 2 cvs-supfile 
with conf:


   # Defaults that apply to all the collections
   *default host=cvsup.uk.openbsd.org
   *default base=/var
   *default prefix=/usr
   *default release=cvs
   *default delete use-rel-suffix compress

   # Ports Collection.
   OpenBSD-ports tag=.

is there anyway to get the old ports back to its place ? e.g. extract 
ports.tar.gz from the CD-ROM ?


tia.




From: Stuart Henderson [EMAIL PROTECTED]
To: Edy Purnomo [EMAIL PROTECTED], misc@openbsd.org
Subject: Re: pkg_create error
Date: Wed, 21 Sep 2005 10:40:38 +0100

--On 21 September 2005 06:21 +, Edy Purnomo wrote:


Recently, my OBSD 3.4 can not do any of port installation.
Please advice.


Looks like you're trying to use -current ports on an old OS, which won't 
work. A huge amount of work has been done on ports/package infrastructure 
between 3.7 and 3.8.


There might be unsupported ways around it, but really, just update the OS. 
There are many improvements between 3.4 and 3.7, and you'll be setup for an 
easier move to 3.8.




Re: Live dc

2005-09-21 Thread Andreas Bihlmaier
 Why is need to mount_mfs in /etc/rc and in /etc/fstab ?

It should be /usr/livecd/backups/etc/fstab


Thus it only gets mounted once because it will be the fstab of the later root
directory, I will fix all this next week when I have time to look into it!
But thanks for the hint :)

 
 I made bootable cdrom you described.

Does it work otherwise ?

 
 There is output of df and mount  - all filesystems mounted  twice (but 
 different in sizes) - is this correct behavior?
 
 
 openbsd# df
 Filesystem  1K-blocks  Used Avail Capacity  Mounted on
 /dev/cd0a  249976249976 0   100%/
 mfs:128815631 1  5349 0%/dev
 mfs:4450   126463 1120139 0%/tmp
 mfs:13817  126463 1120139 0%/var
 mfs:25494  126463 1120139 0%/root
 mfs:18595  126463 1120139 0%/home
 mfs:766 62799  2074 57586 3%/etc
 mfs:28715   24783  5993 1755125%/var
 mfs:13657 51133   453 7%/dev
 mfs:137142959 1  2811 0%/tmp
 mfs:2250 3951 6  3748 0%/home
 mfs:258593951 5  3749 0%/root
 
 openbsd# mount
 /dev/cd0a on / type cd9660 (local, noatime, read-only)
 mfs:12881 on /dev type mfs (asynchronous, local, noatime, size=6000 
 1K-blocks)
 mfs:4450 on /tmp type mfs (asynchronous, local, noatime, size=130560 
 1K-blocks)
 mfs:13817 on /var type mfs (asynchronous, local, noatime, size=130560 
 1K-blocks)
 
 mfs:25494 on /root type mfs (asynchronous, local, noatime, size=130560 
 1K-blocks
 )
 mfs:18595 on /home type mfs (asynchronous, local, noatime, size=130560 
 1K-blocks
 )
 mfs:766 on /etc type mfs (asynchronous, local, noatime, size=65536 
 1K-blocks)
 mfs:28715 on /var type mfs (asynchronous, local, noatime, nodev, nosuid, 
 size=25
 600 1K-blocks)
 mfs:13657 on /dev type mfs (asynchronous, local, noatime, size=1024 
 1K-blocks)
 mfs:13714 on /tmp type mfs (asynchronous, local, noatime, nodev, nosuid, 
 size=30
 72 1K-blocks)
 mfs:2250 on /home type mfs (asynchronous, local, noatime, nodev, nosuid, 
 size=40
 96 1K-blocks)
 mfs:25859 on /root type mfs (asynchronous, local, noatime, nodev, 
 nosuid, size=4
 096 1K-blocks)
 # ...
 # After: rm -f /fastboot # XXX 
 (root now writeable)
 
 echo 'mounting mfs'
 mount_mfs -s 51200 -o async,nosuid,nodev,noatime swap /var
 mount_mfs -i 4096 -s 6144 -o async,nosuid,nodev,noatime swap /etc
 mount_mfs -i 128 -s 2048 -o async,noatime swap /dev
 mount_mfs -s 6144 -o async,nosuid,nodev,noatime swap /tmp
 mount_mfs -s 8192 -o async,nosuid,nodev,noatime swap /home
 mount_mfs -s 8192 -o async,nosuid,nodev,noatime swap /root
 --- /usr/livecd/etc/fstab 
See above this should be/usr/livecd/backups/etc/fstab

 --
 /dev/cd0a/   cd9660 ro,noatime 0 0
 /dev/cd0a / cd9660 ro,noatime 0 0
 swap /dev mfs rw,noatime,-s=12000 0 0
 swap /tmp mfs rw,noatime,-s=262144 0 0
 swap /var mfs rw,noatime,-s=262144 0 0
 swap /root mfs rw,noatime,-s=262144 0 0
 swap /home mfs rw,noatime,-s=262144 0 0
 swap /etc mfs rw,noatime,-s=131072 0 0

Regards,
ahb