Re: rc_scripts

2011-09-24 Thread Edho P Arief
On Sat, Sep 24, 2011 at 9:24 PM, Alessandro Baggi
 wrote:
> Hi Tomas,
>
> Yes, clamd is already running. Now i'm starting it from rc.local.
>
> Reading man pages from www.openbsd.org I get:
>
> The fourth section contains the/pkg_scripts/ B variable, responsible for
> B  B  starting and stoppingrc.d(8)
>
B 
> B scripts installed by packages in the speci-
> B  B  fied order. B For example, the following line
>
> B  B  B  B  B  pkg_scripts="dbus_daemon cupsd"
>
> B  B  will run//etc/rc.d/dbus_daemon/ B then//etc/rc.d/cupsd/ B with
the/start/
> B argu-
> B  B  ment at boot time and in reverse order with the/stop/ B argument at
shut-
> B  B  down.
>
>
> but reading man from my installed OpenBSD (4.9/amd64), i get:
>
> The fourth section contains the/rc_scripts/ B variable, responsible for
> B  B  starting and stoppingrc.d(8)
>
B 
> B scripts installed by packages in the speci-
> B  B  fied order. B For example, the following line
>
> B  B  B  B  B  rc_scripts="dbus_daemon cupsd"
>
> B  B  will run//etc/rc.d/dbus_daemon/ B then//etc/rc.d/cupsd/ B with
the/start/
> B argu-
> B  B  ment at boot time and in reverse order with the/stop/ B argument at
shut-
> B  B  down.
>
> What's the way?
>
>

the manpage on openbsd.org defaults to -current which is quite
different with 4.9.

from http://www.openbsd.org/faq/upgrade50.html#rc.d :

rc.conf 'rc_scripts' variable renamed to 'pkg_scripts': This change
was introduced to make it clear that pkg_scripts should only be used
to store packages(7) rc.d(8) scripts names.


I just tried clamd and it worked (after configuring and passing manual
invocation of /etc/rc.d/clamd start which involves waiting for initial
database finished downloading using freshclam). This is my
rc.conf.local:

[edho@dalian ~]$ cat /etc/rc.conf.local
ntpd_flags= # enabled during install
#xdm_flags= # enabled during install
rc_scripts="freshclam clamd gdm"


--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: a GOOD idea to harden OpenSSH!

2011-04-19 Thread Edho P Arief
On Tue, Apr 19, 2011 at 4:33 PM, Alexander Schrijver
 wrote:
> I think it's a bad idea to disable ssh login while someone is bruteforcing 
> your
> account.
>

it may be just me but I'm having problem in understanding this statement.



Re: a GOOD idea to harden OpenSSH!

2011-04-19 Thread Edho P Arief
On Tue, Apr 19, 2011 at 4:54 PM, Edho P Arief  wrote:
> On Tue, Apr 19, 2011 at 4:33 PM, Alexander Schrijver
>  wrote:
>> I think it's a bad idea to disable ssh login while someone is bruteforcing 
>> your
>> account.
>>
>
> it may be just me but I'm having problem in understanding this statement.
>

Oh, I get it now. No wonder - I completely misread you since you put
your reply right after "disable password login, use ssh key"



Re: l2tpd

2011-04-13 Thread Edho P Arief
On Wed, Apr 13, 2011 at 9:33 PM, Tomas Bodzar  wrote:
> It looks cool to provide devs-like answer to users, but there is a big
> difference - they know what they are talking about ;-)
>

sorry, I was bored tonight and figured that since he asked in "ports
or packages", I tried to give him pointer where to search in "ports or
packages". I should've googled harder before replying.

And yes, I don't know what he's asking for so your guess is on spot.
Actually, I shouldn't have replied at all.



Re: l2tpd

2011-04-13 Thread Edho P Arief
On Wed, Apr 13, 2011 at 8:11 PM, pavel pocheptsov  wrote:
> does openbsd have l2tpd-daemon in packages or ports?
>
>

http://openports.se



Re: a GOOD idea to harden OpenSSH!

2011-03-30 Thread Edho P Arief
On Wed, Mar 30, 2011 at 2:22 PM, Alexander Schrijver
 wrote:
> It's a great way to keep someone out of their own system.
>

Unless you enable root login...



Re: a GOOD idea to harden OpenSSH!

2011-03-30 Thread Edho P Arief
On Wed, Mar 30, 2011 at 3:11 PM, Alexander Schrijver
 wrote:
> On Wed, Mar 30, 2011 at 03:00:18PM +0700, Edho P Arief wrote:
>> On Wed, Mar 30, 2011 at 2:22 PM, Alexander Schrijver
>>  wrote:
>> > It's a great way to keep someone out of their own system.
>> >
>>
>> Unless you enable root login...
>
> How does that help?
>
>

How would someone locked out of their own system when disabling password login?

(I guessed "home partition didn't get mounted" before which is why I
mentioned enabling root login)



Re: 64 bit cvsup pkg?

2010-12-23 Thread Edho P Arief
On Thu, Dec 23, 2010 at 1:00 PM, Indunil Jayasooriya
 wrote:
> Hi .
>
> Thanks for your info. Sorry for the delay in thanking the list. I downloaded
> csup-20090407.tgz and now started updating the 64bit OpenBSD system. anyway,
> I preapared a Doc for it. Since OpenBSD is open, I want to send the
> preapared my Open Doc for everyone. Pls sahere it.
> *

http://www.openbsd.org/cvsup.html

"Alternatively, the csup package is written in C and provides a
drop-in compatible client. "



Re: OpenBSD-capable, fanless, diskful computer with ECC RAM

2010-12-10 Thread Edho P Arief
On Fri, Dec 10, 2010 at 11:11 PM, Sergey Bronnikov  wrote:
> sorry for offtopic:
> have you tried to install openbsd on it?
>

Nope - I'm still saving money to buy it

I found that someone posted its freebsd's dmesg though:

http://docs.hcf.yourweb.de/moin.cgi/ProLiantMicroserver/FreeBSD?action=AttachFile&do=view&target=dmesg.txt


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: OpenBSD-capable, fanless, diskful computer with ECC RAM

2010-12-10 Thread Edho P Arief
On Sat, Oct 30, 2010 at 7:14 AM, Damien Miller  wrote:
> Hi,
>
> Can anyone recommend a small, fanless computer that will accept a HD (perhaps
> a 2.5" drive) that uses ECC RAM? Needless to say, it must run OpenBSD.
>
> Being 64 bit, having accellerated crypto and/or supporting multiple drives
> would be bonus points, but are not required.
>

The smallest server I've ever seen supporting ECC memory is HP
ProLiant MicroServer

http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/15351-15351-4237916-4237918-4237917-4248009.html


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Perfect daemon for a torrentbox

2010-10-17 Thread Edho P Arief
On Sun, Oct 17, 2010 at 8:32 AM, Paolo Aglialoro  wrote:
> I'd therefore like to know which program I could run as a torrent daemon
> with the following requisites:
> 1. accessible/browsable through CLI/ssh every time I connect (http could be
> a plus, also to upload .torrent files)
> 2. supporting level1 IP blacklists
> 3. supporting protocol encryption
>

http://openports.se/net/transmission


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Wireless Network GUI

2010-10-07 Thread Edho P Arief
On Thu, Oct 7, 2010 at 1:47 PM, Aaron Lewis  wrote:
> nope , wicd is actually based on gtk & python , also wicd-client for
> kde available on kde-apps.org.
> ( written in qt4 )
>

Sorry, I didn't properly composed the paragraph. I actually mentioned
two network manager gui applications:
- wicd
- whatever default in PC-BSD (which uses qt or kde)



-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Wireless Network GUI

2010-10-06 Thread Edho P Arief
On Thu, Oct 7, 2010 at 9:04 AM, Hugo Osvaldo Barrera
 wrote:
> I want to make a small desktop application (probably GTK+, since I've
> never done anything in GTK) that shows available wireless networks,
> signal, and a few buttons to connect to each/configure each.
>
> I don't intend to make a huge daemon like the linux's NetworkManager,
> but, instead, just a simple application you open, connect, and close.
> Done. B No bloat, and definitely ***NO*** requirement for stuff like
> HAL.
>
> I wanted to get a few pointers before I started:
> 1) First of all, I want to be sure no one's already working on
> something like this.

wicd is as small as network gui I can find in linux. Also I believe
pc-bsd made their own version of network gui. It probably depends on
kde or qt though.

http://wicd.sourceforge.net/


--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Incorrect FAQ entry about "ksh(1) does not appear to read my .profile"

2010-10-02 Thread Edho P Arief
On Sun, Oct 3, 2010 at 5:59 AM, Amit Kulkarni  wrote:
> I thought that the space makes a difference as .profile is still not being
> read.
>

It seems to still read my .profile fine with space (using 4.7-release)

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: BitchX security issues?

2010-09-18 Thread Edho P Arief
On Sun, Sep 19, 2010 at 10:46 AM, James Hozier  wrote:
> I've been hearing that BitchX has some security issues and has not been
> updated in a while, yet it's still in OpenBSD Packages when I think other
> OSes have removed it from their respective repos. Is the BitchX version in
> OpenBSD Packages modified and maintained by OpenBSD developers in a way
> such that it is safe to use as opposed to the regular version on the
> official BitchX site?
>
>

http://www.openbsd.org/cgi-bin/cvsweb/ports/net/bitchx/patches/

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Remotely connect to gnome

2010-08-21 Thread Edho P Arief
On Sat, Aug 21, 2010 at 10:43 PM, Christopher Zimmermann
 wrote:
> arrrg, no, of course not vpn, vnc is what I meant. For example have a
> look at the thightvnc package. But this doesn't support encryption
> either. ssh tunneling would be the way to go I think. At least this will
> probably be easier using a vnc solution, because it does not need dozens
> of ports to be forwarded.
>

vnc only requires one port. Even then no one should ever connect to it
directly so the port doesn't even need to be open - just tunnel that
one port over ssh.

(as additional bonus, it only needs one (two with shebang) line of
manual configuration at ~/.vnc/xstartup)

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Free PF ruleset 4.7

2010-06-09 Thread Edho P Arief
On Wed, Jun 9, 2010 at 10:24 PM, VICTOR TARABOLA CORTIANO
 wrote:
>> If i chose web hosting using iis, it is not your problem but mine.
>> So keep your small criticisms for you. Without rancor ! ;-)
>>
>
> Your discussion has NOTHING TO DO with OpenBSD.
> Nobody cares what you use, if it is not OpenBSD :)
>
>

Actually it's not him started this all. He only given link to his
pf.conf example/somewhere and someone poked about .aspx. From
there everything went downhill.

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: 4.7 identifies HDDs differently than 4.6 (during upgrade)

2010-06-05 Thread Edho P Arief
On Sun, Jun 6, 2010 at 5:14 AM, Neal Hogan  wrote:
> Hello,
>
> I just tried to upgrade my machine to 4.7 (release) and it IDs my hard
> drives differently than 4.6 did. That is, when asked (during upgrade)
> which disk the root partition is on it offers: sd0 wd0 wd1 wd2.
> However, what I'm expecting is: wd0 wd1 wd2 wd3
>
> Thus, fsck fails and therefore the upgrade does too. Will upgrading
> via source work? Fresh install? Note that I tried ramdisks from two
> different mirrors and was attempting a net install. I found no
> discussion/docs concerning this . . . I'm not even sure what to search
> for.
>

> OpenBSD 4.6 (GENERIC.MP) #81: Thu Jul B 9 21:26:19 MDT 2009
> pciide0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: DMA
> (unsupported), channel 0 configured to native-PCI, channel 1
> configured to native-PCI
> pciide0: using apic 4 int 22 (irq 10) for native-PCI interrupt
> pciide0: channel 0 ignored (not responding; disabled or no drives?)
> wd0 at pciide0 channel 1 drive 0: 
> wd0: 16-sector PIO, LBA48, 715404MB, 1465149168 sectors


> OpenBSD 4.7 (GENERIC.MP) #130: Wed Mar 17 20:48:50 MDT 2010
> ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: apic 4 int
> 22 (irq 10), AHCI 1.1
> scsibus0 at ahci0: 32 targets
> sd0 at scsibus0 targ 1 lun 0:  SCSI3 0/direct fixed
> sd0: 715404MB, 512 bytes/sec, 1465149168 sec total


In short: AHCI support for your SATA controller was added. Upgrade and
modify fstab accordingly.


--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: 4.6 patch support

2010-03-22 Thread Edho P Arief
On Mon, Mar 22, 2010 at 7:14 PM, Andreas Gerdd  wrote:
>> when 4.8 comes out (a year after 4.6 came out) support for 4.6 will stop.
>
> Quite short time.
>
>> Our advise is to upgrade to a newer version and plan for that now.
>> It's not magic, in fact it is pretty easy in almost all cases.
>
> It is not magic, but it is more than magic if you have only remote ssh
> access and nothing else. :-(
>

not really



-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Joomla - MySQL Problem: "Could not connect to MySQL"

2010-03-13 Thread Edho P Arief
On Fri, Mar 12, 2010 at 6:58 PM, Daniel Gracia Garallar
 wrote:
> Not quite a solution, I think. What about if /var/www mounts in a different
> filesystem than /var?
>

how about
- tell mysql to create sock file in /var/www/var/run/mysql; or
- tell php to connect to mysql over tcp/ip


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Backup disk over USB good idea??

2009-12-18 Thread Edho P Arief
On Fri, Dec 18, 2009 at 12:31 AM, Mauro Rezzonico  wrote:
> Joakim Aronius wrote:
>>
>> I have an old home server which ran out of disk space
>
>> I added a big disk over USB which I use for
>> backup (mounted on /backup).
>
> Well don't do that!
>
> Mount under /usr/backup, or /var/backup, or /tmp/backup or whatever!
>

can you please enlighten me on why that's a bad thing?

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: 200g harddisk after newfs = Available 174g?

2009-10-29 Thread Edho P Arief
On Fri, Oct 30, 2009 at 12:13 AM, Bob Beck  wrote:
>> There are many stupid ideas in other operating systems, I
>> don't see why we should be required to implement them.
>
> Yeah, and the discussion of my ass is a more productive discussion
> than talking about making df display "marketing gigabytes"
>

for some reason I'm kind of offended by "SI = marketing" equation.

note that I'm not suggesting anything. Things like this are already
confusing and changing anything will probably just add even more
confusion, etc.

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: 200g harddisk after newfs = Available 174g?

2009-10-29 Thread Edho P Arief
On Wed, Oct 28, 2009 at 4:28 PM, Daniel Gracia Garallar
 wrote:
> Manufactures use the 'giga' prefix in the International System meaning. That
> said, 1Gb would be 10^9 = 1,000,000,000 bytes.
>
> Computer programmers, OS and all around computer chit-chat use the prefix
> 'giga' to refer 2^30 = 1,073,741,824 bytes.
>
> IEC recommends calling this GiB, but it's uncommon.
>
> Today, you could assume safely only manufacturers write Gb in the
> International System meaning;

and Apple's Mac OS X 10.6

http://support.apple.com/kb/TS2419



-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: script

2009-10-14 Thread Edho P Arief
On Thu, Oct 15, 2009 at 10:11 AM, igor denisov
 wrote:
> Hi there
>
> my version of ksh:
>
> $what /bin/ksh
>
> /bin/ksh
> B  B  B  B  Copyright (c) 1989, 1993
> B  B  B  B $OpenBSD: mknod.c,v 1.1 2005/10/06 06:39:36 otto Exp $
> B  B  B  B PD KSH v5.2.14 99/07/13.2
>
> I cannot figure out what is wrong with the following code
>
> #! /bin/ksh
> for (( i=9; i>0; i-- ))
> B do echo "$i"
> B done
>
> output:
> syntax error: '((' unexpected.
> why?
> regards
> --
> igor denisov.
>
>

the short answer would be 'ksh is not bash'


--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: CPU & RAM viz Squid & Kerberos (network setup)

2009-09-04 Thread Edho P Arief
On Sat, Sep 5, 2009 at 12:12 AM, Lars Nooden wrote:
> Edho P Arief wrote:
>> On Thu, Sep 3, 2009 at 5:56 PM, soko.tica wrote:
>>> Hello list,
>>>
>>> I am setting up a mini network for myself, but trying to imitate a
>>> full-fledged network with all servers required, everything on i386
>>> architecture. Everything will run on 4.5 stable.
>>>
>>> Since Squid and Kerberos should be deployed, and I haven't worked with
>>> any of them, could anyone tell me which of them consumes more CPU
>>> power? I have two i386 boxes available, 3.00Mhz 512 Mb RAM and celeron
>>> 2.88Mhz 750Mb RAM.
>>
>> wow, 0.003 GHz processor and 64 MB RAM.
>
> Have 1 Gb/s down and ran into a sales drone who wrote down on paper that
> he'd upgrade it to 2GB/s for the same price if we extended the contract.
> Unfortunately, before he signed I started laughing and could not stop.
>
> 3 Mhz is not quite the old 4.77 Mhz, but that is made up for by the 64MB
> RAM. B ;)
>
> -Lars
>

forgot to cc to m...@?

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: CPU & RAM viz Squid & Kerberos (network setup)

2009-09-03 Thread Edho P Arief
On Thu, Sep 3, 2009 at 5:56 PM, soko.tica wrote:
> Hello list,
>
> I am setting up a mini network for myself, but trying to imitate a
> full-fledged network with all servers required, everything on i386
> architecture. Everything will run on 4.5 stable.
>
> Since Squid and Kerberos should be deployed, and I haven't worked with
> any of them, could anyone tell me which of them consumes more CPU
> power? I have two i386 boxes available, 3.00Mhz 512 Mb RAM and celeron
> 2.88Mhz 750Mb RAM.

wow, 0.003 GHz processor and 64 MB RAM.



-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: boot disk ??? closed

2009-08-07 Thread Edho P Arief
On Fri, Aug 7, 2009 at 3:02 AM, PJ wrote:
> Michael wrote:
>> PJ, you wrote (in part) "I already posted wherefrom - openBSD ftp
>> site; the burning was done exaactly the same as for the FreeBSD and
>> many other files without ever having any problems... and I mean, EVER
>> !"
>>> I'd say you are making assumptions and not looking at the problem as a
> whole.
> I suggest we close this topic as it is wearisome and not going
> anywhere...forget all this nonselse, I'll figure it out by myself...and
> with a few leads from someof the nicer guys on the list...
> they know who they are...
> So, drop it... and
> "amici come prima"
> PJ
>

"It's not I who is having problems. I think it's OpenBSD."
http://marc.info/?l=openbsd-misc&m=124950952927714&w=2

"I already posted wherefrom - openBSD ftp site; the burning was done
exaactly the same as for the FreeBSD and many other files without ever
having any problems... and I mean, EVER !"
http://marc.info/?l=openbsd-misc&m=124951048129354&w=2


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: How to activate extensions after compiling php5 core and extensions? No instructions!

2009-08-05 Thread Edho P Arief
On Thu, Aug 6, 2009 at 10:25 AM, Andres Salazar wrote:
> Hello,
>
> OpenBSD 4.5 stable
>
> I have done the following:
>
> cd /usr/ports/www/php5/core; make; make install;
> cd /usr/ports/www/php5/extensions; make; make intall;
>
> That according to pkg_info installed:
>
> php5-core-5.2.10 B  B server-side HTML-embedded scripting language
> php5-extensions-5.2.10 informational package about PHP5 extensions
>
> The instructions after finishing the extensions compiling said:
>
> --- php5-extensions-5.2.10 ---
> This is a place-holder package to inform you that the PHP port is
> now split into small sub-packages, designed to allow you to install
> modules independently of the main PHP engine.
>
> For example, to install the IMAP module, just pkg_add the
> php5-imap-5.2.10.tgz package and activate it using the
> 'phpxs' command.
>
>
> I tried doing pkg_add php5-mysql-5.2.10.tar however that just tries to
> install it from the packages (and off course it wont becuase the
> packages offers 5.2.8)... and then the phpxs command doesnt exist.
>
> What am I missing to actually finish the install of all the php5
extensions?
>
> Thanks
>
> Andres
>
>

http://openbsd.org/faq/faq15.html#NoFun

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Is it possible to build OpenBSD from source using GCC 4.x from port or packages?

2009-06-12 Thread Edho P Arief
On Fri, Jun 12, 2009 at 2:08 PM, Tito Mari Francis
EscaC1o wrote:
> Does it mean it will exactly fit the purpose of the compXX.tgz package
> provided tools?
>

different package, different purpose


--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Is it possible to build OpenBSD from source using GCC 4.x from port or packages?

2009-06-12 Thread Edho P Arief
On Fri, Jun 12, 2009 at 1:45 PM, Tito Mari Francis
EscaC1o wrote:
> The problem I have in mind is that if the base system has compXX.tgz to
> contain the compiler and build tools, what's the purpose or use of the
> gcc-*.tgz, g++-*.tgz and gobjc-*.tgz from the package list?
> Can you please advise me on this? Thanks!
>
>

different version

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: apc ups daemon - SUCCESS

2009-06-11 Thread Edho P Arief
2009/6/12 Thanasis :
> Sorry, if I made you feel that way, but believe me, really, if I could
> do it (put apcupsd in the openbsd ports), I would happily do so.
> But not everyone is a developer ... O:-)
> PS: And thanks to every one for their help B :-)
>
>

http://openbsd.org/checklist.html

it's actually pretty easy and you can just look at files from other
ports for examples

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: pkg_add weirdness (4.5-current)

2009-05-22 Thread Edho P Arief
On Fri, May 22, 2009 at 5:53 PM, Thomas Pfaff  wrote:
> Trying to add a few packages on my -current system and there's
> some weirdness going on that I believe was not present before:
>
> Script started on Fri May 22 12:34:41 2009
> $ sudo pkg_add -v samba
> $ sudo pkg_info -I samba
> samba-3.0.34 B  B  B  B SMB and CIFS client and server for UNIX
> samba-3.0.34-ads B  B SMB and CIFS client and server for UNIX
> samba-3.0.34-cups B  SMB and CIFS client and server for UNIX
> samba-3.0.34-cups-ads SMB and CIFS client and server for UNIX
> samba-3.0.34-cups-ldap SMB and CIFS client and server for UNIX
> samba-3.0.34-ldap B  SMB and CIFS client and server for UNIX
> $ sudo pkg_add -v samba-3.0.34
> parsing samba-3.0.34
> ^C
> $ echo $PKG_PATH
>
ftp://ftp.eu.openbsd.org/pub/OpenBSD/snapshots/packages/amd64:http://ftp.open
bsd.org/pub/OpenBSD/snapshots/packages/amd64:ftp://ftp.uninett.no/pub/OpenBSD
/snapshots/packages/amd64:ftp://ftp.dkuug.dk/pub/OpenBSD/snapshots/packages/a
md64
> $ sysctl kern.version
> kern.version=OpenBSD 4.5-current (GENERIC.MP) #18: Fri May 22 11:42:25 CEST
2009
> B  B tpf...@ws.tp76.info:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> $ exit
> Script done on Fri May 22 12:36:00 2009
>
> The first pkg_add should show something like
>
> B Ambiguous: samba could be samba-3.0.33 ...
>

perhaps you meant

pkg_add -i pkgname

...?

> right? B The above also happens for packages like vim and emacs.
>
> What am I missing here?
>
>



--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: OpenBSD ESXi VMware image on Soekris Net5501

2009-05-21 Thread Edho P Arief
On Thu, May 21, 2009 at 11:35 PM, Michal  wrote:
> -Original Message-
> From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
> Jason Dixon
> Sent: 21 May 2009 17:08
> To: Obiozor Okeke
> Cc: misc@openbsd.org; Diana Eichert
> Subject: Re: OpenBSD ESXi VMware image on Soekris Net5501
>
> On Thu, May 21, 2009 at 08:05:52AM -0700, Obiozor Okeke wrote:
>>
>> Well I should have mentioned that the ESXi is also running a Windows
> server VM for a custom app that requires it. B So the idea was to have one
> box running ESXi and reduce hardware costs.
>
>
> BWAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
>
>
> *whew*
>
> Thanks, I needed that.
>
> --
> Jason Dixon
> DixonGroup Consulting
> http://www.dixongroup.net/
>
>
>
> What a helpful e-mail that was. Thanks for helping the community with that
> one
>
>

just think, a system with 500mhz and 512MB ram running two VMs. One of
them is Windows (nt4? 98? 3.1?) , no less

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Multiboot OpenBSD with Vista

2009-05-15 Thread Edho P Arief
On Fri, May 15, 2009 at 3:38 PM, MANI  wrote:
> Hi,
>
> First of all you need to know I am running OpenBSD on my laptop and PC
> at home happily as sole OS, but unfortunately I need to dual boot my
> PC at Office because of some proprietary softwares we need at company,
> the other OS is Microsucks Windows Vista
> AFAIK one of the way of dual booting is to copy openbsd.pbr on Drive C
> of windows, but How can I make openbsd.pbr.

http://www.openbsd.org/faq/faq4.html#Multibooting

adding the entry to vista boot loader is a little bit harder though
(uses bcdedit)

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: get php uptime function out of apache chroot jail?

2009-02-24 Thread Edho P Arief
On Wed, Feb 25, 2009 at 12:51 PM, Jerome Santos  wrote:
> hello, I want to put a php script in a site on an openbsd 4.2 webserver.
> From what I understand because apache is chrooted, a function that uses an
> exec to a system call cannot work.
> ie.
>  B  B  B  B $s = explode( " ", exec("/var/run/usr/bin/uptime") );
> B  B  B  B $a = str_replace( ",", "", $s[3]);
> B  B  B  B $uptime = time() - $a;
>
> B  B  B  B $days = floor($uptime/60/60/24);
> B  B  B  B $hours = $uptime/60/60%24;
> B  B  B  B $mins = $uptime/60%60;
> B  B  B  B $secs = $uptime%60;
> B  B  B  B echo "This server is up " . $days . " days, " . B $hours B . "
hours,
> " . $mins . " minutes and " . $secs . "seconds";
>
> ?>
>
> only echoes epoch time, "This server is up 14300 days, 5 hours, 49 minutes
> and 24seconds"
>
> any ideas how to fix this?
>
>

cron it to a file and parse that file

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: usb storage device detected as USB1.1

2009-02-04 Thread Edho P Arief
On Thu, Feb 5, 2009 at 4:27 AM, Jesus Sanchez  wrote:
> Hi, I have a USB Micro SD adapter, with a MicroSD card of 2GB. I know
> for sure that the device and the port work at USB2.0 speeds (max
> 480Mb/s) cause I use it in windows. With OpenBSD 4.4, the device is
> working at USB1.1 speeds (about 1.5 MBytes/s) and don't know where to
> start searching.  The ehci module is on kernel and the dmesg shows it as
> UBS 2.0, but the speed it's like USB1.1.  After trying several "fdisk"
> and "newfs" with ffs and msdosfs the speed stills like USB1.1. I can't
> attach dmesg now but will soon. Any sugerence??
>
> -Jesus
>
>

what's the speed in windows (in MB/s)? memory cards are known for its
slow speed especially for write operation.

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: howto using openbsd fdisk because my slice not detek from linux?

2009-01-21 Thread Edho P Arief
On Wed, Jan 21, 2009 at 4:02 PM, my mail  wrote:
> --- On Wed, 1/21/09, Robert  wrote:
>
>> From: Robert 
>> Subject: Re: howto using openbsd fdisk because my slice not detek from linux?
>>
>> ftp://ftp.openbsd.org/pub/OpenBSD/4.4/i386/INSTALL.linux
>> should answer your questions.
>>
>> - Robert
>
> thanks for the reply,
>
> i have read this file before, but in this file it's have partition before, in 
> my condition my disk is null partition,
> i try using openbsd fdisk to make openbsd slice, i have success install 
> openbsd in this slice, can boot normally
>
> but when i try to install linux ubuntu, linux installer not deteck my openbsd 
> slice
>
> so how to make first openbsd partition disc from new harddisk so it's can 
> detect by another OS
>
> thanks
>
>

what's your fdisk output?

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Port ZFS to OpenBSD

2009-01-19 Thread Edho P Arief
> BTW, Everything I've read about ZFS on FreeBSD says that it sucks, at
> least until FreeBSD 8.0 is out. Panics under high load are common.
>

I'm using ZFS (two pools - data and root) on FreeBSD 7.1 and it seems
to be quite stable. The load is not too high but there's no problem
when compiling entire xorg and xfce with a qemu session running in
background.


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: php+apache+mysql on 4.4

2008-11-27 Thread Edho P Arief
On Fri, Nov 28, 2008 at 2:04 AM, Fernando Quintero
<[EMAIL PROTECTED]> wrote:
> Add these lines to you rc.local or any boot script in  /etc .
> normally into the boot script for mysql
>

don't forget to add sleep 5 (or other number) before ln to make sure
mysqld properly started first.

at least that's what I do


-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



Re: Light HTTP servers.

2008-07-20 Thread Edho P Arief
On Sun, Jul 20, 2008 at 10:12 PM, Calomel <[EMAIL PROTECTED]> wrote:
> Nuno,
>
> I would highly suggest looking into Nginx. It is easy to build from
> source and runs efficiently, using little memory or CPU time. Even
> though it is a light web server compared to Apache, Nginx is able to
> handle high traffic loads. The WordPress blogging system recently
> converted all of its load balancers to Nginx, using the upstream hash
> module to serve 8-9 thousand requests per second.
>
> Unlike lighttpd, the author is actively developing Nginx and the
> community is constantly building add on modules. Finally, you can
> easily secure Nginx to better protect your machine from abusive
> clients.
>

current problem for nginx is, it doesn't handle php-fastcgi process
spawning. AFAIK it can be solved with either patching php manually
with php-fpm ( http://php-fpm.anight.org/ ) or using lighttpd's
spawn-fcgi.
IMO, in general, configuring lighttpd+php is easier than nginx+php.

YMMV

>  Nginx web server "how to"
>  https://calomel.org/nginx.html
>
> --
>  Calomel @ https://calomel.org
>  Open Source Research and Reference
>
>
> On Sun, Jul 20, 2008 at 03:14:40PM +0100, Nuno Magalh??es wrote:
>>I have an old Compaq Armada 1500c with 32MB of RAM i want to use as a
>>webserver. Having it support PHP and mySQL would be fun since i intend
>>to use both. The same machine has sshd running and might also become a
>>print-server for a parallel Epson Stylus Color 740 if i can decide on
>>the print server (apparently either cups or lpd, whichever's lighter).
>>
>>I haven't fiddled with it a whole lot, it's mostly just on and showing
>>top through ssh. Right now its memory line is this:
>>Memory: Real: 7200K/20M act/tot  Free: 3944K  Swap: 0K/66M used/tot
>>with its most cpu-intensive process being sendmail. I have no
>>mailserver, what's that for?
>>
>>So, big servers like Apache are kind of out of the question. From the
>>package list i found Bozotic, lighttpd, nginx,  p5-HTTP-Server-Simple
>>and thttpd. Of those, nginx caught my eye and while searching i came
>>across cherokee-project.com,  Hiawatha (hiawatha.leisink.org) and also
>>shttpd.sourceforge.net
>>
>>Is anyone using any of these or a lightweight httpd in general? I
>>don't mean small as in d116.com/ace/ nor are my resources as low as
>>d116.com/spud/ but useful input would be welcome. Ya know, the
>>constructive criticism type.
>>
>>TIA
>>
>>--
>>Nuno MagalhC#es