Re: OpenCVS?

2008-01-26 Thread xavier brinon
 a little mdoc -mandoc cvs.1 and there you go !

Oups, nroff -mandoc cvs.1
That works better like this



 On Jan 26, 2008 8:43 AM, xavier brinon [EMAIL PROTECTED] wrote:
  the man pages of opencvs are cvs.1, cvs.5 (as far as I remember) in
  the source directory of opencvs
 
 
  On Jan 25, 2008 4:38 PM, Julian Leyh [EMAIL PROTECTED] wrote:
   On 11:57 Sun 20 Jan , Darrin Chandler wrote:
On Sun, Jan 20, 2008 at 06:31:48PM +, Stuart Henderson wrote:
 On 2008/01/20 10:15, Unix Fan wrote:
  Stuart Henderson wrote:
   See for yourself: 
   http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/cvs/
 
  I'm slighly confused by something if the cvs command in
  OpenBSD 4.2 is OpenCVS,

 it isn't - not everything in source is linked to the build yet.
   
However, those interested in using/testing OpenCVS should take a peek at
their /usr/src/usr.bin/cvs/README file as a start.
  
   The binary gets installed as opencvs, but the manpages as cvs - just 
   in
   case you're wondering why cvs --help still is GNU CVS, and the manpages
   are not ;)
  
   --
   If you don't remember something, it never existed...
   If you aren't remembered, you never existed...
   I don't quite understand what love is like... But if there
   was someone who liked me, I'd be happy.



Re: Archiving pkg's added by pkg_add -u

2008-01-26 Thread Laurence Tratt
On Fri, Jan 25, 2008 at 10:20:50AM +, Edd Barrett wrote:

 I was wondering if there is a way that pkg_add -u can save packages that it
 installs into a specified directory.

 I think I could save a lot of bandwidth if this were possible, as I have
 several machines to update with snapshots every 2 weeks or so.

As a possibly complimentary idea to PKG_CACHE, I wrote a simple script a
while back which bulk downloads packages:

  http://tratt.net/laurie/computing/obsd/packagesbootstrap/

I use this to download packages onto a local machine before doing a pkg_add,
which helps minimise any service down time (if you're upgrading from one OS
version to another, I recommend still using PKG_PATH with an ftp server as
the second location in the path, as package dependencies can change and the
script doesn't check that sort of thing). It automatically slurps in the
output from pkg_info, so it's quite easy to use.


Laurie
-- 
http://tratt.net/laurie/ -- Personal
http://convergepl.org/   -- The Converge programming language



OpenSSH vpn without using remote root user

2008-01-26 Thread Dave Harrison
Hey all,

I've been trying to see if it's possible to setup SSH based vpn's
using user accounts on the remote end.  While I don't think it says
anywhere explicitly that it's _not_ possible, I haven't found any
references so far of people doing it successfully ;-)

I've gone over the mailing list several times, I've read the ssh and
tun man pages, and I've experimented with creating tun devices and
changing the perms of the /dev/tun* devices to allow read+write by
users.  I'm yet to have any luck so far though - I get the below
transcribed message.

Can anyone say definitively if this is (im)possible ??  And if it is
possible, how they managed it ?

Cheers
Dave

==

debug1: Remote: Failed to open the tunnel device.
channel 1: open failed: administratively prohibited: open failed



mysqld: Error in accept: Bad file descriptor

2008-01-26 Thread Takumitsu Itoh
Hi,

I'm trying mysql installation, but mysqld crash during two hours from one
hour.
Do you have any hint and ideas?


(Loging File...)
080126 17:09:37  mysqld started
080126 17:09:37  InnoDB: Started; log sequence number 0 3594127
080126 17:09:37 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.0.33-log'  socket: '/var/run/mysql/mysql.sock'  port: 3306
OpenBSD
port: mysql-server-5.0.33
080126 18:11:42 [ERROR] Error in accept: Bad file descriptor


(I tried setting)
changed kern.maxfiles and kern.maxvnodes = 16383 = 32767 = 65535
changed open_files_limit = 1024 = 2048 = 65535
changed max_connections = 512 = 256


(Envilonment)
Intel(R) Xeon(R) CPU 5148 @ 2.33GHz
Memory 2GB
OpenBSD-4.1 stable
Apache (OpenBSD bundled)
PHP 5.1.6p2(Ports:make install)
MySQL 5.0.33(Ports:make install)


(kernel)
GENERIC.MP


(sysctl)
kern.maxclusters=32768
kern.maxproc=10240
kern.maxfiles=65535
kern.maxvnodes=65535
kern.seminfo.semmns=2048
kern.seminfo.semmni=512
kern.seminfo.semmnu=1024
kern.shminfo.shmall=32768
kern.shminfo.shmmni=512


(my.cnf)
max_connections = 256
open_files_limit = 65535
key_buffer = 64M
max_allowed_packet = 1M
table_cache = 1024
sort_buffer_size = 1M
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
innodb_data_home_dir = /var/mysql/
innodb_data_file_path = ibdata1:100M:autoextend
innodb_log_group_home_dir = /var/mysql/
innodb_log_arch_dir = /var/mysql/
innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 8M
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50



Re: Archiving pkg's added by pkg_add -u

2008-01-26 Thread Marc Espie
On Sat, Jan 26, 2008 at 10:29:13AM +, Laurence Tratt wrote:
 As a possibly complimentary idea to PKG_CACHE, I wrote a simple script a
 while back which bulk downloads packages:
 
   http://tratt.net/laurie/computing/obsd/packagesbootstrap/
 
 I use this to download packages onto a local machine before doing a pkg_add,
 which helps minimise any service down time 

You don't need this script to minimize service down time.

The normal way to slurp down packages of on an installed machine is to run
pkg_add -uin with PKG_CACHE set (in fact, I had to tweak pkg_add -n behavior
right after implementing PKG_CACHE to make sure it would download the whole
package).

Then, once your full set is downloaded, you can pkg_add them.



mysqld: Error in accept: Bad file descriptor

2008-01-26 Thread Takumitsu Itoh
Hi,

I'm trying mysql installation, but mysqld crash during two hours from one
hour. Do you have any hint and ideas?


(Loging File...)
080126 17:09:37  mysqld started
080126 17:09:37  InnoDB: Started; log sequence number 0 3594127 080126
17:09:37 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.0.33-log'  socket: '/var/run/mysql/mysql.sock'  port: 3306
OpenBSD
port: mysql-server-5.0.33
080126 18:11:42 [ERROR] Error in accept: Bad file descriptor


(I tried setting)
changed kern.maxfiles and kern.maxvnodes = 16383 = 32767 = 65535 changed
open_files_limit = 1024 = 2048 = 65535 changed max_connections = 512 =
256


(Envilonment)
Intel(R) Xeon(R) CPU 5148 @ 2.33GHz
Memory 2GB
OpenBSD-4.1 stable
Apache (OpenBSD bundled)
PHP 5.1.6p2(Ports:make install)
MySQL 5.0.33(Ports:make install)


(kernel)
GENERIC.MP


(sysctl)
kern.maxclusters=32768
kern.maxproc=10240
kern.maxfiles=65535
kern.maxvnodes=65535
kern.seminfo.semmns=2048
kern.seminfo.semmni=512
kern.seminfo.semmnu=1024
kern.shminfo.shmall=32768
kern.shminfo.shmmni=512


(my.cnf)
max_connections = 256
open_files_limit = 65535
key_buffer = 64M
max_allowed_packet = 1M
table_cache = 1024
sort_buffer_size = 1M
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
innodb_data_home_dir = /var/mysql/
innodb_data_file_path = ibdata1:100M:autoextend innodb_log_group_home_dir =
/var/mysql/ innodb_log_arch_dir = /var/mysql/ innodb_buffer_pool_size = 256M
innodb_additional_mem_pool_size = 8M innodb_log_file_size = 64M
innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50



Re: mysqld: Error in accept: Bad file descriptor

2008-01-26 Thread Stuart Henderson
On 2008/01/26 19:59, Takumitsu Itoh wrote:
 I'm trying mysql installation, but mysqld crash during two hours from one
 hour. Do you have any hint and ideas?

Did you follow /usr/local/share/doc/mysql/README.OpenBSD?



Re: OpenSSH vpn without using remote root user

2008-01-26 Thread Claudio Jeker
On Sat, Jan 26, 2008 at 09:42:14PM +1100, Dave Harrison wrote:
 Hey all,
 
 I've been trying to see if it's possible to setup SSH based vpn's
 using user accounts on the remote end.  While I don't think it says
 anywhere explicitly that it's _not_ possible, I haven't found any
 references so far of people doing it successfully ;-)
 
 I've gone over the mailing list several times, I've read the ssh and
 tun man pages, and I've experimented with creating tun devices and
 changing the perms of the /dev/tun* devices to allow read+write by
 users.  I'm yet to have any luck so far though - I get the below
 transcribed message.
 
 Can anyone say definitively if this is (im)possible ??  And if it is
 possible, how they managed it ?
 

Only root can open /dev/tun, this is enforced in the code. You would need
to patch the code as well (see tunopen()'s  suser() call).

-- 
:wq Claudio



PCI ADSL Card on OpenBSD

2008-01-26 Thread Mikel Lindsaar
I have been googling around and found various answers, but some of
them conflict and so I wanted to ask the list:

What PCI ADSL card do you use in your OpenBSD box?

The use case will be a rack mounted firewall (thus the wish for a PCI
card to sit inside the server) handling an ADSL connection for backup
access and bulk traffic.  The card and drivers need to be reliable and
just handle the line as this will be the backup way in.

Preferably I want a card that is going to do the ADSL protocol layer
itself and not hand anything off to the CPU which will be handling a
transparent firewall.

Should be able to support PPPoE, ADSL2+ would be good to have, though
plain v1 ADSL is also fine if the driver / card combination is more
robust.

Regards

Mikel