Re: Memory and Swap Info

2009-04-30 Thread Cezary Morga
socknoggle wrote:
 Sorry,all.  I didn't state what I needed very well.  What I'm really
 looking for is hardware data related to memory, swap, cpu, pci and scsi
 devices. This would be similar to the data on Linux in /proc/meminfo,
 /proc/cpuinfo, lspci -v and /proc/scsi/scsi respectively.

 Thanks for all responses so far!

cat /var/run/dmesg.boot
man sysctl

-- 
Cezary Morga
Those who agree with us may not be right, but we admire their astuteness. 
(Cullen Hightower)



Re: Installing Apache PHP/Mysql support

2009-04-14 Thread Cezary Morga
Dnia wtorek, 14 kwietnia 2009, Jean-Francois napisa3:
 Now I saw there are many packages php5 and mysql, however it's not clear
 for me which ones to install and the conf files that need to be modified,
 the chrooted directories where some files might be copied to  etc ...

Install whichever packages you need. For PHP5+MySQL php5-core and php5-mysql
should suffice (mysql-server should be installed as a dependency if it's not
installed already).

These packages are prepared for OpenBSD's chrooted Apache however you may need
to create some additional directories (like tmp for example) within chroot.
The post-install message will tell you what to do.
--
Pozdrawiam,
Cezary Morga
Would those of you in the cheaper seats clap your hands? And the rest of you,
if you'll just rattle your jewelry. (John Lennon)



Re: Installing Apache PHP/Mysql support

2009-04-14 Thread Cezary Morga
Jean-Francois wrote:
 Hi All,

 Both pkg installed, links made, and after reboot, command line works :

 $ php -i
 phpinfo()
 PHP Version = 5.2.6

 but .php page shows only source code in firefox ?

Have you done everything mentioned in pkg_info -M php5-core? Especially the 
/var/www/conf/modules/php5.conf symlink?

Seems AddType or LoadModule is missing in your Apache configuration.

-- 
Cezary Morga
Would those of you in the cheaper seats clap your hands? And the rest of you, 
if you'll just rattle your jewelry. (John Lennon)



Re: error : pkg add phpMyAdmin

2009-04-14 Thread Cezary Morga
Jean-Francois wrote:
 Hello,
 Can you please help me with this :

 $ sudo pkg add phpMyAdmin-2.11.7.1.tgz
 Can't install php5-gd-5.2.6: lib not found X11.11.1
 Dependencies for php5-gd-5.2.6 resolve to: jpeg-6bp3, php5-core-5.2.6,
 t1lib-5.1.0p1, png-1.2.28
 Full dependency tree is libiconv-1.12,jpeg-6bp3,libxml-2.6.32p1,php5-
 core-5.2.6,t1lib-5.1.0p1,gettext-0.17,png-1.2.28
 Can't install php5-gd-5.2.6: lib not found Xpm.8.0
 Can't install php5-gd-5.2.6: lib not found freetype.16.1
 Can't install phpMyAdmin-2.11.7.1: can't resolve php5-gd-5.2.6

 FYI box is 4.4 fresh install, i386, working as a server, so graphic
 support.

Looks like you're missing xbase44.tgz.

-- 
Cezary Morga
If everything seems under control, you're not going fast enough (Mario 
Andretti)



Re: error : pkg add phpMyAdmin

2009-04-14 Thread Cezary Morga
Jean-Francois wrote:
 Did you install de xbase44.tgz packages?

 I guess no, I did not install X, I run console.
 This is a server. Is it mandatory for this package ?
 phpMyAdmin requires X ?

xbase44.tgz doesn't contain complete X system, but it do contain X libraries 
required by some graphic-related packages, like php5-gd.

-- 
Cezary Morga
The average, healthy, well-adjusted adult gets up at seven-thirty in the 
morning feeling just plain terrible. (Jean Kerr)



Re: error : pkg add phpMyAdmin

2009-04-14 Thread Cezary Morga
Jean-Frangois SIMON wrote:
 Hi,
 That's why i asked the man ref / link, i could'nt find anything.

 But i see some do not understand what being patient with begininers mean.

Get used to it. Honestly :)

 It's only few months i now use this system but it's really not easy
 thought theres a lot of documentations sometimes it's not easy to find
 where, is'nt it ?!

No. It's all here: http://www.openbsd.org/faq/index.html.

--
Cezary Morga
Indecision may or may not be my problem. (Jimmy Buffett)



Re: Recommendations on a daily script to check syslog (or other) server security

2009-04-14 Thread Cezary Morga
LeRoy, Ted wrote:
 Can some of you BSD pro's out there recommend some additions or changes
 or other things that should be checked to help ensure the system isn't
 compromised?

For log monitoring try logsentry.

 Is there a way to see who has logged into the system over a given period
 for example?  Who only tells me who's logged in when the command is run.

Try last.

-- 
Cezary Morga
The conventional view serves to protect us from the painful job of thinking. 
(John Kenneth Galbraith)



Re: Can you subscribe to the PF mailing list? I can't

2009-04-09 Thread Cezary Morga
Nick Guenther wrote:
 On Wed, Apr 8, 2009 at 12:31 PM, Bryan Irvine sparcta...@gmail.com wrote:
  The problem is that you can't use the pf mailing list from gmail.
 
  -Bryan

 Because people who use gmail aren't smart enough for PF? Because it's
 a free webmail provider and so a source of spam?

Because gmail doesn't resend e-mails from the same host the first delivery 
attempt was made from. It fucks up spamd and every other greylisting app out 
there. Of course it can be worked around, but it seems not everyone is willing 
to do so.
-- 
Cezary Morga
Research is the process of going up alleys to see if they are blind. 
(Marston Bates)



Re: openbsd europe

2009-04-06 Thread Cezary Morga
Dnia wtorek, 7 kwietnia 2009, Jesus Sanchez napisa3:
 I didn't knew about that site, does www.openbsdeurope.com have any
 relationship with the OpenBSD project? I'm from Spain and since the
 Wim issue I'm going to try this web. Any previous experience with them?

http://marc.info/?l=openbsd-miscm=123869832609766w=2

--
Pozdrawiam,
Cezary Morga
Indecision may or may not be my problem. (Jimmy Buffett)



Re: Anyone using munin?

2009-04-06 Thread Cezary Morga
Dnia poniedzia3ek, 6 kwietnia 2009, Toni Mueller napisa3:
 Hi,

 On Sat, 04.04.2009 at 12:15:35 +0200, Cezary Morga c...@therek.net wrote:
  I think munin comes with a bunch of plugins already. If not you can grab
  some Linux package (like Debian's munin-node) and extract them from it.
  These are simple scripts (shell, perl, python) so they might run on
  OpenBSD even without any modifications.

 I think that this is very optimistic, since a lot of Linux specific
 facilities are being used. Eg. several scripts parse the output of
 iptables, or read /proc...

Argh, you're right. My bad.

--
Cezary Morga



Re: Anyone using munin?

2009-04-04 Thread Cezary Morga
Marc Runkel wrote:
 Trying to set up munin work with OpenBSD and was wondering if anyone had
 some plugins pre-written?  In particular interface statistics but I'll take
 just about anything.

I think munin comes with a bunch of plugins already. If not you can grab some 
Linux package (like Debian's munin-node) and extract them from it. These are 
simple scripts (shell, perl, python) so they might run on OpenBSD even without 
any modifications.
-- 
Cezary Morga
Man forgives woman anything save the wit to outwit him. (Minna Thomas 
Antrim)



Re: sftp chroot ?

2009-02-24 Thread Cezary Morga
Dnia poniedziaEek, 23 lutego 2009, Nigel J. Taylor napisaE:
 ChrootDirectory %h

 Subsystem   sftpinternal-sftp

 Match group wheel
 ChrootDirectory none

Or the other way around.

Subsystem sftp internal-sftp
Match User john paul
ChrootDirectory /chroot/%u

--
Pozdrawiam,
Cezary Morga
The best way to predict the future is to invent it. (Alan Kay)



Re: OpenBSD as a Xen Dom0?

2009-02-04 Thread Cezary Morga
Dnia Eroda, 4 lutego 2009, Michael Zoet napisaE:
 Is it possible to use OpenBSD for a Xen Dom0 now? I'm tiered of
 installing Linux as the Dom0 and I want to use OpenBSD for that.

How about using NetBSD for Dom0?

--
Pozdrawiam,
Cezary Morga
A positive attitude may not solve all your problems, but it will annoy enough
people to make it worth the effort. (Herm Albright)



Re: Remove X Window after 4.4/i386 Installation?

2009-02-03 Thread Cezary Morga
Ted Unangst wrote:
 There's no way to uninstall, though deleting /usr/X11R6 will get you
 90% there.

How about following?
cd /
tar -ztf /path/to/xbase44.tgz | xargs rm

-- 
Cezary Morga
If everything seems under control, you're not going fast enough (Mario 
Andretti)



Re: Remove X Window after 4.4/i386 Installation?

2009-02-03 Thread Cezary Morga
Ted Unangst wrote:
 On Tue, Feb 3, 2009 at 1:31 PM, Cezary Morga c...@therek.net wrote:
  Ted Unangst wrote:
  There's no way to uninstall, though deleting /usr/X11R6 will get
  you 90% there.
 
  How about following?
  cd /
  tar -ztf /path/to/xbase44.tgz | xargs rm

 1.  that doesn't delete nearly 90% of X, unless you also do it for
 the font and serv and whatnot files.

Of course this had to be done for each x* set.

 2.  it requires you have the base sets available, which is frequently
 a hassle.

You're right. I guess I just got used to broadband that I didn't think 
about it.

 3.  by the time you correct for points 1 and 2, you're 
 getting dangerously close to having a self destruct tool.

As Ingo suggested, I won't continue this subject.

 4.  as a general personal rule, i don't feed people pipelines that
 delete files.  see point 3.

I wasn't feeding anything, just asking the list.

-- 
Cezary Morga
Middle age is when you've met so many people that every new person you 
meet reminds you of someone else. (Ogden Nash)



Re: OpenBSD

2008-12-04 Thread Cezary Morga
Dnia czwartek, 4 grudnia 2008, rizzo0917 napisa3:
 3: nvidia graphics card, I did some research and found that openbsd and
 nvidia don't play well together, however nvidia developed a freebsd driver,
 could that work??

The NVidia driver for FreeBSD is a blob, and OpenBSD guys avoid that kind of
drivers. Instead there's nv(4) driver which works great except for 3D
acceleration, have you tried it?

--
Cezary Morga
It's amazing that the amount of news that happens in the world every day
always just exactly fits the newspaper. (Jerry Seinfeld)



Re: what exactly is enc0?

2008-10-15 Thread Cezary Morga
Dnia 6roda, 15 padziernika 2008 10:12, Vivek Ayer napisa3:
 ok enc0 is actually a virtual interface. It's not even that other
 network card. The other network card that's not being detected is part
 of the bellerophon PCI daughterboard which includes a video out,
 ethernet, sound card, a red led that's always blinking,

And the machine that goes PING? :)

 among other
 things. Apparently, openbsd is not detecting this PCI interface. If
 anyone had a similar setup, help would be appreciated. Otherwise, I
 can just go ahead and get two Sun PCI Network Cards.

Maybe OpenBSD does not support given ethernet card or the daughterboard? See
the supported hardware list http://www.openbsd.org/sparc.html#hardware. You
might want to check /var/run/dmesg.boot for something that may look like the
hardware you're missing.
--
Pozdrawiam,
Cezary Morga
Research is the process of going up alleys to see if they are blind.
(Marston Bates)



Re: RES: RES: Filtering outgoing connections in pf

2008-10-15 Thread Cezary Morga
Dnia Eroda, 15 paE:dziernika 2008, cgc napisaE:
 And any box that is doing packet filtering between 2 or more
 networks, eg. a private network and the internet, is a router as far
 as I am aware

If it's natting or filtering packets it's a gateway.
--
Cezary Morga
If you live to be one hundred, you've got it made. Very few people die
past that age. (George Burns)



Re: OpenSSH ChrootDirectory oddities

2008-09-30 Thread Cezary Morga
Dnia wtorek, 30 wrzeEnia 2008, Marian Hettwer napisaE:
 What I wanted to achieve is pretty much the following: Have some
 users, all in the same group named sftp and if the log in via sftp
 they get chroot'ed to their home directory.
 However, I wind up after a login in /home not /home/$username

From the manpage:
 Specifies a path to chroot(2) to after authentication.  This
 path, and all its components, must be root-owned directories that
 are not writable by any other user or group.

So if you wan't to chroot user sftp1 in /home/sftp1 use:
 ChrootDirectory /home/%u

Still, /home/sftp1 MUST be root owned, thus user sftp1 won't be allowed
to write there anything.  You can create a directory under /home/sftp1
(like upload) owned by sftp1, where the chrooted user will be able to
write, delete and do whatever else he wishes.
--
Cezary Morga
A fellow who is always declaring he's no fool usually has his
suspicions. (Wilson Mizner)



Re: making man(1) to open a file

2008-09-26 Thread Cezary Morga
Dnia czwartek, 25 wrze6nia 2008, Bryan Irvine napisa3:
  Next to the useful suggestions you've received so far, you can try
 
 groff -man -Tascii /path/to/manpage.X | less

 man -a is easier though.

 -B

-a Display all of the manual pages for a specified section and name
combination.  Normally, only the first manual page found is dis-
played.

You're sure that's the one?

--
Cezary Morga
A real administrator is always logged in as root - it's CRAP
administrators that aren't! (BOFH @theregister.co.uk)



Re: How to add new modules to httpd?

2008-09-23 Thread Cezary Morga
Dnia wtorek, 23 wrze6nia 2008 01:20, napisa3e6:
 If so, it seems that the only remaining module I would need is
 mod_proxy_html. Do I need to recompile httpd to get this this into the
 build?  (if so, how?) Or can I create a .so and just load it?

I think mod_prox_html is non-standard module. Have you seen this
http://laxmangunjikar.wordpress.com/2008/01/05/installing-mod_proxy_html/?
--
Pozdrawiam,
Cezary Morga
Everything is funny as long as it is happening to Somebody Else. (Will
Rogers)



Re: How to add new modules to httpd?

2008-09-23 Thread Cezary Morga
Dnia wtorek, 23 wrze6nia 2008 01:20, Don Jackson napisa3:
 If so, it seems that the only remaining module I would need is
 mod_proxy_html. Do I need to recompile httpd to get this this into the
 build?  (if so, how?) Or can I create a .so and just load it?

I think mod_prox_html is non-standard module. Have you seen this
http://laxmangunjikar.wordpress.com/2008/01/05/installing-mod_proxy_html/?

--
Pozdrawiam,
Cezary Morga
Would those of you in the cheaper seats clap your hands? And the rest of you,
if you'll just rattle your jewelry. (John Lennon)



Re: Advbase range?

2008-09-18 Thread Cezary Morga
Dnia czwartek, 18 wrze6nia 2008 04:41, napisa3e6:
 what is the range of the advbase?

 advskew is 0-255 but vhid's are 1-255 and the man page just states advbase
 is an 8-bit number with a default of 1, so its a bit ambiguous.

There's nothing ambiguous in 8-bit number, and as such the range for advbase
is 0-255.

 I havent been able to set advbase to 0 so I am assuming its 1-255, however
 I have seen posts of people configuring the advbase to 0. Is this
 decapracated now?

I'm not a programmer, but as far as I can read C, there's no restrain in 4.3
code on setting advbase to 0.
--
Pozdrawiam,
Cezary Morga
Nah, a database recovery, some system tuning and a couple of helpdesk calls -
nothing that can't wait... (BOFH @theregister.co.uk)



Re: Advbase range?

2008-09-18 Thread Cezary Morga
Dnia czwartek, 18 wrze6nia 2008, napisa3e6:
 I understand the concept of an 8 bit integer. What I meant by
 ambiguous is the acceptable ranges that are being used, assuming
 vhid's are an 8-bit integer as well, although thats not explicitly
 stated it sure looks like one, why isnt 0 acceptable?

The ifconfig(8) manpage states:
vhid n  If the driver is a carp(4) pseudo-device, set the virtual host
ID to n.  Acceptable values are 1 to 255.

And in the ifconfig.c you have:
 vhid = strtonum(val, 1, 255, errmsg);

 Ok then if this is true, then can anyone tell me what else would
 prevent me from assigning 0 to the advbase.

Common sense? You can set advbase to 0 and ifconfig won't complain about
it, but it seems that somewhere between the lines ifconfig simply
ignores such value and uses default or previously set. I haven't
managed to find what it actually does in such situation, but I'm no C
programmer.

--
Cezary Morga
Television enables you to be entertained in your home by people you
wouldn't have in your home. (David Frost)



Re: Wireless

2008-09-08 Thread Cezary Morga
Dnia niedziela, 7 wrze6nia 2008, napisa3e6:
 On Sun, 7 Sep 2008 17:11:08 +

 Cezary Morga [EMAIL PROTECTED] wrote:
  Dnia niedziela, 7 wrze6nia 2008, OpenBSD napisa3:
   I have 1 Broadcom wireless card that is recognized by OpenBSD 4.3
   as bwi0, but it needs a firmware;
 
  The link to the firmware is in bwi(4) manpage.
  --
  Cezary Morga
  The belief in a supernatural source of evil is not necessary; men
  alone are quite capable of every wickedness. (Joseph Conrad)

 Yes, i found it, but it doesn't work well; it stop at boot and leave
 me in a command line, ddr, freezing the OS.

Strange, it works for me.
Have you installed it with pkg_add?

--
Cezary Morga
Intelligence is the ability to avoid doing work, yet getting the work
done. (Linus Torvalds)



Re: Wireless

2008-09-07 Thread Cezary Morga
Dnia niedziela, 7 wrze6nia 2008, OpenBSD napisa3:
 I have 1 Broadcom wireless card that is recognized by OpenBSD 4.3 as
 bwi0, but it needs a firmware;

The link to the firmware is in bwi(4) manpage.
--
Cezary Morga
The belief in a supernatural source of evil is not necessary; men alone
are quite capable of every wickedness. (Joseph Conrad)



Re: OpenBSD 4.4 pre-orders

2008-09-05 Thread Cezary Morga
 I keep hoping for the release where Canada Post delivers my copy before
 release date.

Surprisingly Polish Post managed to deliver my copy of 4.3 before the release 
date.

-- 
Pozdrawiam,
Cezary Morga
Research is the process of going up alleys to see if they are blind. 
(Marston Bates)



Re: Loading PF after ppp

2007-09-26 Thread Cezary Morga
 I connect to the internet using pppoe(8) by putting the following
 line in /etc/rc.local.conf:

 ppp -ddial pppoe

 However, the pf rules load before I have an internet connection and
 therefore pfctl reports an error.

 How does one load PF after ppp?

Being in the same situation I had not enabled PF through rc.conf of
rc.conf.local, instead I've put following in rc.local:

/usr/sbin/ppp -background -quiet pppoe
if [ $? -eq 0 ]; then
echo PPP enabled
pfctl -e
pfctl -f /etc/pf.conf
fi

I'm not sure whether it's correct or not, but it works for me :)

Regards,
--
Cezary Morga
There are three kinds of lies: lies, damned lies, and statistics.
(Benjamin Disraeli)

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc ]



Re: Looking for something similar to screen-command

2007-09-12 Thread Cezary Morga
 I have installed BitTorrent-4.2.2 on my 3.9-box. With this i would like to
 start file sharing on a console, logout, login later and reattach to the
 console of the BitTorrent-4.2.2 session. AFAIK this is done in most
 Linux-distros using the command screen, but how can I do it in BSD?

Use screen as well:
pkg_add screen

-- 
Cezary Morga



Re: openvpn on openbsd 4.1

2007-07-02 Thread Cezary Morga
 Dear all

 i have installed  openvpn from ports  dan i try follow manual like this :
 # pwd
 /etc/openvpn/easy-rsa/2.0
 # ./vars

type
source ./vars
or
. ./vars

(note the dot and the space)

Regards,
-- 
Cezary Morga czarek(at)morga.net.pl cezarym(at)data.pl
GG# 169903 ICQ# 328-700-565
Jabber therek(at)jabber.autocom.pl; therek(at)jabber.therek.net
[=- http://www.therek.net/ -=][=- http://freebsd.therek.net/ -=]