Re: [6.3] Get e-mail when CTRL-ALT-DEL is used?

2010-07-12 Thread Gilles
On Thu, 08 Jul 2010 14:29:59 +0400, ait a...@rocc.ru wrote:
Maybe you can use the /etc/rc.shutdown script, there's a line at the end 
of it:

Thanks everyone for the help.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[6.3] Get e-mail when CTRL-ALT-DEL is used?

2010-07-08 Thread Gilles
Hello

This is on a remote 6.3 host: I'd like to get an e-mail if a user hits
the CTRL-ALT-DEL to reboot the server.

Googling told me that the use of the three-key combo can be
enabled/disabled when compiling a new kernel, but not how to manage
this feature when it's enabled in a running kernel.

Is there a configuration file somewhere that would let me add e-mail
support for this action?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /var/log/messages empty since June 26 :-/

2010-07-04 Thread Gilles
On Fri, 02 Jul 2010 21:41:31 +0800, Fbsd8 fb...@a1poweruser.com
wrote:
Based on the dates of the messages logs looks like not much is being
logged for a whole year at a time. So what you are seeing is normal.

Thanks for the tip. I'll see how it goes in the next few days.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


/var/log/messages empty since June 26 :-/

2010-07-02 Thread Gilles
Hello

On a FreeBSD 6.3 server sitting in a corner of the office not doing
much work,  I noticed that /var/log/messages was turned over and has
been empty since 26 June:

# tail /var/log/messages
Jun 26 16:00:00 freebsd newsyslog[5320]: logfile turned over due to
size100K

# ll /var/log/
-rw-r--r--   1 root  wheel  78 26 jui 16:00 messages
-rw-r--r--   1 root  wheel8396 26 jui 16:00 messages.0.bz2
-rw-r--r--   1 root  wheel8329 30 mar 11:00 messages.1.bz2
-rw-r--r--   1 root  wheel8663  2 mar  2009 messages.2.bz2
-rw-r--r--   1 root  wheel9640 20 déc  2008 messages.3.bz2
-rw-r--r--   1 root  wheel6554 17 oct  2008 messages.4.bz2
-rw-r--r--   1 root  wheel5825 17 oct  2008 messages.5.bz2
(jui = June, jul = July)

I don't have enough experience with FreeBSD to understand the cause
for this, and how to solve it, so would appreciate any suggestion.

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /var/log/messages empty since June 26 :-/

2010-07-02 Thread Gilles
On Fri, 02 Jul 2010 12:19:20 +0100, Matthew Seaman
m.sea...@infracaninophile.co.uk wrote:
Is syslogd running?

Yes it is:

# ps aux | grep -i syslog | grep -v grep
root518  0,0  0,3  1404  1072  ??  Ss   Ven19 0:02,07
/usr/sbin/syslogd -s

 Restarting syslogd would be a good thing to try in
any case:

   # /etc/rc.d/syslogd restart

Looks like it did the trick:

# tail -f /var/log/messages
Jun 26 16:00:00 freebsd newsyslog[5320]: logfile turned over due to
size100K
Jul  2 13:26:45 freebsd syslogd: exiting on signal 15
Jul  2 13:26:45 freebsd syslogd: kernel boot file is
/boot/kernel/kernel

This should result in some output to the system logs -- if you don't see
that, then your syslog.conf may be broken: syslogd can die silently in
those circumstances.  You'll need to run syslogd with the '-d' debugging
flag in addition to what flags you usually use in order to see what the
problem is.

If the same issue pops up again, I'll try the -d option.

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Anonymizer tool like Tor?

2009-03-13 Thread Gilles
On Thu, 12 Mar 2009 13:47:07 -0400, T.
freebsd-questi...@lists.goldenpath.org wrote:
You want a transparent tor proxy, which you setup with freebsd and pf.

Thanks much for the help. If my modest Python script used to download
some web pages goes through Tor, is there a way for the remote web
server to somehow trace this connection back to me?

FWIW, the web server is run by people who do care for their data (they
sell company listings for a living), but aren't l33t hackers either.

You do not want to run tor as root, which unfortunately takes some 
tweeking to run properly as the default _tor user.

Can you elaborate? After compiling the Ports, a _tor user is
created. I could successfully launch Tor by su - _tor.

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Anonymizer tool like Tor?

2009-03-12 Thread Gilles
Hello

I'd like to download information from our competitor's web site,
without their knowing it's from us.

The Tor network works fine, but they don't seem to provide a *nix
version, much less a command-line version (the download script will
run  on a non-X FreeBSD 6.3 server).

Do you know of an alternative for FreeBSD, ie. a solution that will
let me connect to a web server through at least one other host, and
have the IP address change automatically every few minutes?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Anonymizer tool like Tor?

2009-03-12 Thread Gilles
On Thu, 12 Mar 2009 10:42:53 +0100, Andreas Rudisch cyb.@gmx.net
wrote:
/usr/ports/security/tor/

Thanks Andeas. Up to now, I only used the Tor client for Windows that
comes with Privoxy, so never used Tor as-is, and never on the command
line.

If someone's used to using Tor, I have a couple of questions. On
FreeBSD, I intend to use it to run a Python script to connect to a
remote web server and download pages.

Do I need to start the Tor server? Do I need a web proxy like Privoxy,
or is the Tor client enough? How do set things up so my Python scripts
connects to Tor?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Anonymizer tool like Tor?

2009-03-12 Thread Gilles
On Thu, 12 Mar 2009 13:40:54 +0200, Ross Cameron abal...@gmail.com
wrote:
Not to put a damper on everyone's fun but wouldn't just be easier to go to
an internet cafe, run you're web scraper from a USB drive and leave?

Not if the script will run for three days ;)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Anonymizer tool like Tor?

2009-03-12 Thread Gilles
On Thu, 12 Mar 2009 07:16:15 -0500, Kevin Kinsey k...@daleco.biz
wrote:
It probably is, but you're assuming his competitors know that
he works for their competition, and, for that matter, that
Giles is his real name, etc., etc.

Exactly ;)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Anonymizer tool like Tor?

2009-03-12 Thread Gilles
On Thu, 12 Mar 2009 11:38:13 +0100 (CET), Wojciech Puchar
woj...@wojtek.tensor.gdynia.pl wrote:
set up tor and use it as socks proxy with your browser and python script. You
 don't need privoxy for that.

Thanks for the tip. I'll look into how to modify the Python script to
use SOCKS instead.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Anonymizer tool like Tor?

2009-03-12 Thread Gilles
On Thu, 12 Mar 2009 11:37:26 +0100 (CET), Wojciech Puchar
woj...@wojtek.tensor.gdynia.pl wrote:
there is tor for unix in ports. tor works fine i used it a lot and 
stopped. Why - because it got to widely known and there are actually less 
secure 
than not using it at all.There are lots of hackers that run modified tor 
that do analyzes/changes 
what going through. I stopped when i once used it on my bank webpage and got 
message about 
change of SSL key!!!

Thanks for the reminder. I only use Tor when I download stuff and need
to hide my IP.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[6.3] MySQL server doesn't start

2009-02-28 Thread Gilles
Hello

I successfully updated the Ports collection to compile MySQL 5.1.22,
but even after updating /etc/rc.conf, the server doesn't start but
doesn't say why:

==
# pkg_version -v | grep -i mysql
mysql-client-5.1.22needs updating (port has
5.1.30)
mysql-server-5.1.22needs updating (port has
5.1.30)
==
# cat /etc/rc.conf 
#BAD? mysql-server=YES
mysql_server=YES
==
[r...@freebsd ~/www]# ps aux | grep -i mysql
root  52112  0,0  0,1   468   336  p4  R+   18:15 0:00,00 grep -i
mysql
==
# /usr/local/etc/rc.d/mysql-server start
[r...@freebsd ~/www]# /usr/local/etc/rc.d/mysql-server status
# 
==

There no information in /var/log/messages either.

Any idea what I could try to investigate is going on?

Thank you for any tip.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3] MySQL server doesn't start

2009-02-28 Thread Gilles
On Sat, 28 Feb 2009 19:30:06 +0200, Manolis Kiagias
sonic200...@gmail.com wrote:
 # cat /etc/rc.conf 
 #BAD? mysql-server=YES
 mysql_server=YES
The /etc/rc.conf variable should be:

mysql_enable=YES

It will start then ;)

Makes sense :-/ Thanks for the prompt reply.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-17 Thread Gilles
On Mon, 16 Feb 2009 11:32:46 -0900, Mel
fbsd.questi...@rachie.is-a-geek.net wrote:
If you have none in /etc/make.conf that's a good start.
If it still fails, then make sure BUILD_OPTIMIZED is unset.
Also comment any CPUTYPE variables in /etc/make.conf.

Thanks again. I'm not really a developper, and don't know quite how to
solve this.

Here's what's in /etc/make.conf:

PERL_VER=5.8.8
PERL_VERSION=5.8.8

How should I tell gcc to compile for either a PIII processor, or just
plain i386?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-17 Thread Gilles
On Tue, 17 Feb 2009 09:45:40 +0100, Gilles gilles.gana...@free.fr
wrote:
How should I tell gcc to compile for either a PIII processor, or just
plain i386?

BTW, here are the CFLAGS-related lines MySQL Server's Makefile:

.if defined(WITH_LINUXTHREADS)
CFLAGS+=-D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
CFLAGS+=-I${LOCALBASE}/include/pthread/linuxthreads
.else
CFLAGS+=${PTHREAD_CFLAGS}
.endif

.if defined(BUILD_OPTIMIZED)
CFLAGS+=-O3 -fno-omit-frame-pointer
CFLAGS+=-fno-gcse
.endif

.if defined(WITHOUT_THR_ALARM)
CFLAGS+=-DDONT_USE_THR_ALARM
.endif

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-17 Thread Gilles
On Tue, 17 Feb 2009 09:53:09 +0100, Gilles gilles.gana...@free.fr
wrote:
BTW, here are the CFLAGS-related lines MySQL Server's Makefile:

Using make BUILD_OPTIMIZED=no doesn't solve the issue :-/

In file included from item.h:2199,
 from mysql_priv.h:589,
 from ha_berkeley.cc:53:
item_geofunc.h:78: internal compiler error: Illegal instruction: 4

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-16 Thread Gilles
Hello

I updated the Ports collection on this 6.3 host, but it fails
compiling MySQL Server 5.1:

===
In file included from item.h:2428,
 from mysql_priv.h:749,
 from sql_profile.cc:32:
item_cmpfunc.h:1301: internal compiler error: Illegal instruction: 4
Please submit a full bug report,
with preprocessed source if appropriate.
===

Has someone seen this, and knows a work-around?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-16 Thread Gilles
On Mon, 16 Feb 2009 15:12:59 +0100, Ivan Voras ivo...@freebsd.org
wrote:
If you have any CFLAGS set (the most common are those for CPU
optimizations), disable them and try again.

Thanks for the tip. Do you know which value I should set for this
switch, if at all?

# dmesg | grep -i CPU
CPU: Intel Pentium III (994.63-MHz 686-class CPU)
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3] ALT-CTRL-DEL = clean unmount?

2009-02-07 Thread Gilles
On Wed, 04 Feb 2009 22:46:47 +0100, Lokadamus lokada...@gmx.de
wrote:
Can you change your IDE- Cable from ATA- 33 to ATA-66/100?

Have you this error, when you make a reboot with shutdown -r now?

I'll check it out. Thanks guys.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3] ALT-CTRL-DEL = clean unmount?

2009-02-04 Thread Gilles
On Mon, 02 Feb 2009 12:19:59 +0100, Ivan Voras ivo...@freebsd.org
wrote:
The OS reboot process might have been interrupted somehow, or your drive
might be caching more than it should be.

Mmm... Any idea how to investigate + fix this? I'm concerned about
losing data :-/

Thank you guys.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[6.3] ALT-CTRL-DEL = clean unmount?

2009-02-02 Thread Gilles
Hello

I was wondering: When hitting the ALT-CTRL-DEL combination as an easy
way to call reboot, does this unmount disks properly?

I'm concerned because I did this recently, and here's what dmesg says:

ad0: DMA limited to UDMA33, controller found non-ATA66 cable
ad0: 19092MB Seagate ST320413A 3.39 at ata0-master UDMA33
acd0: CDROM ASUS CD-S400/A/V2.3H at ata1-master UDMA33
Trying to mount root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Gilles
Hello

I'd like to make it easier for my dad to shutdown a server. Instead of
having him plug a keyboard, log on as root (with a complicated
password) and finally type shutdown -h now, is it possible to assign
this command to some unused key like eg. Syst? Even better, send this
command only if the key is hit eg. three times within 2 seconds?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3] Assigning shutdown to eg. Syst?

2008-12-22 Thread Gilles
On Mon, 22 Dec 2008 16:09:02 +0100, Polytropon free...@edvax.de
wrote:
I have a similar setting, but it requires X, WindowMaker and a
Sun Type 6 USB keyboard. :-)

Thanks for the input, but this server is text-only. I'll try to find
how FreeBSD is configured so that ALT-CTRL-DEL maps to reboot, and
add my own keyboard key to shut it down.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[6.3/Asterisk + Zaptel] Unloading module for upgrade?

2008-12-20 Thread Gilles
Hello

Since the Ports collection showed that there were more recent versions
of Asterisk and Zaptel, I tried to compile/install Zaptel, but it
fails, even after stopping Zaptel cleanly, and even after stopping
Asterisk itself:

=
# kldstat
Id Refs AddressSize Name
 1   14 0xc040 7a05b0   kernel
 35 0xc2caa000 32000zaptel.ko
 41 0xc2ce 7000 qozap.ko
 51 0xc2ce7000 2tau32pci.ko
 61 0xc2d09000 5000 wcfxo.ko
 71 0xc2d0e000 a000 wcfxs.ko
 91 0xc2d26000 c000 wct4xxp.ko
=
# /usr/local/etc/rc.d/zaptel stop
 zaptelkldunload: can't find file wcte12xp.ko: No such file or
directory
kldunload: can't find file wcte11xp.ko: No such file or directory
kldunload: can't find file wct1xxp.ko: No such file or directory
kldunload: can't find file wctdm24xxp.ko: No such file or directory
kldunload: can't find file wctdm.ko: No such file or directory
kldunload: can't unload file: Device busy
=
# kldunload zaptel
kldunload: can't unload file: Device busy
=
# kldunload qozap
# kldunload wcfxo
# kldunload wcfxs
# kldunload wct4xxp
# kldunload zaptel 
kldunload: can't unload file: Device busy
=
# kldunload -f zaptel
kldunload: can't unload file: Device busy
=
Dec 20 14:21:39 freebsd kernel: kldunload: attempt to unload file that
was loaded by the kernel
=

What is the right way to upgrade Zaptel, without rebooting the host?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/Asterisk + Zaptel] Unloading module for upgrade?

2008-12-20 Thread Gilles
On Sat, 20 Dec 2008 14:25:28 +0100, Gilles gilles.gana...@free.fr
wrote:
Since the Ports collection showed that there were more recent versions
of Asterisk and Zaptel, I tried to compile/install Zaptel, but it
fails, even after stopping Zaptel cleanly, and even after stopping
Asterisk itself:

After rebooting, I lose the SSH connection when typing ztcf -vv, and
I see the following error message in /var/log/messages:

Dec 20 14:37:21 freebsd kernel: Zapata Telephony Interface Registered
on major 196
Dec 20 14:37:21 freebsd kernel: Zaptel Version: zaptel-bsd-ng v0.0.1
Dec 20 14:37:21 freebsd kernel: Zaptel Echo Canceller: MG2
Dec 20 14:37:21 freebsd kernel: wctdm0 port 0xb400-0xb4ff mem
0xf500-0xf5000fff irq 9 at device 11.0 on pci2
Dec 20 14:37:21 freebsd kernel: wctdm0: [FAST]
Dec 20 14:37:21 freebsd kernel: Freshmaker version: 71
Dec 20 14:37:21 freebsd kernel: Freshmaker passed register test
Dec 20 14:37:21 freebsd kernel: Module 0: Installed -- AUTO FXO (FCC
mode)
Dec 20 14:37:21 freebsd kernel: Module 1: Not installed
Dec 20 14:37:21 freebsd kernel: Module 2: Not installed
Dec 20 14:37:21 freebsd kernel: Module 3: Not installed
Dec 20 14:37:21 freebsd kernel: Found a Wildcard TDM: Wildcard TDM400P
REV E/F (1 modules)
Dec 20 14:37:21 freebsd kernel: link_elf: symbol te11xp_init undefined

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[6.3] Missing portdowngrade?

2008-12-20 Thread Gilles
Hello

I need to downgrade a software from the Ports collection because
it's buggy on my hardware, but the portdowngrade utility doesn't
seem to exist in the 6.3 Ports:

=
# cd /usr/ports/sysutils/portdowngrade
-bash: cd: /usr/ports/sysutils/portdowngrade: No such file or
directory
=

Does it mean this utility isn't available for 6.3? Is there an
alternative?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3] Missing portdowngrade?

2008-12-20 Thread Gilles
On Sun, 21 Dec 2008 00:43:49 -0500, Michael Powell
nightre...@verizon.net wrote:
Try looking in /usr/ports/ports-mgmt/portdowngrade instead.

Thanks Mike, that did it. I successfully downgraded Zaptel and
Asterisk to stable versions of the Ports collection.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3] Upgrading PHP5?

2008-09-14 Thread Gilles
On Thu, 04 Sep 2008 15:43:34 +0200, DA Forsyth
[EMAIL PROTECTED] wrote:
install 'portupgrade' then do
   portupgrade -vrR php5

That did the trick. Thanks guys.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[FreeBSD 6.3] Right-way to recover a module?

2008-09-08 Thread Gilles
Hello

I'm running Asterisk 1.4.20.1 on a FreeBSD that I compiled from the
Ports collection.

It's the second time I'm having an issue with a FXO card and/or the
Zaptel driver that connects the card to the OS. I couldn't figure out
what else to do, so I just rebooted the server, but I'd like to know
what happened, and whether there's a less drastic solution.

Here's some infos:

===
# /usr/local/etc/rc.d/zaptel stop
 zaptelkldunload: can't find file wcte12xp.ko: No such file or
directory
kldunload: can't find file wcte11xp.ko: No such file or directory
kldunload: can't find file wct4xxp.ko: No such file or directory
kldunload: can't find file wct1xxp.ko: No such file or directory
kldunload: can't unload file: Device busy
kldunload: can't find file wcfxo.ko: No such file or directory
kldunload: can't find file tau32pci.ko: No such file or directory
kldunload: can't find file qozap.ko: No such file or directory
kldunload: can't unload file: Device busy

Sep  6 19:11:12 freebsd kernel: kldunload: attempt to unload file that
was loaded by the kernel

# kldstat
Id Refs AddressSize Name
 19 0xc040 7a05b0   kernel
 21 0xc0ba1000 5c304acpi.ko
121 0xc2d6c000 19000linux.ko
131 0xc3ba9000 32000zaptel.ko
171 0xc3c0d000 a000 wcfxs.ko

# kldunload -i 13
kldunload: can't unload file: Device busy

# kldunload -i 17
kldunload: can't unload file: Device busy
===

Support tells me something that I don't understand but could be
comprehensible by FreeBSD experts : have you checked the modules? it
is still under the kernel? i am not very sure the location of ko file
in freebsd, please check that, according to the error, it reports that
the ko files lost. 

Thanks for any tip.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[6.3] Upgrading PHP5?

2008-09-04 Thread Gilles
Hello

I successfully upgraded the Ports collection with csup and then
compiled Apache2, but I don't know what to do about PHP5, as it has
several Ports available:

php5-5.2.6 needs updating (port has
5.2.6_1)
php5-bz2-5.2.6 needs updating (port has
5.2.6_1)
php5-ctype-5.2.6   needs updating (port has
5.2.6_1)
php5-curl-5.2.6needs updating (port has
5.2.6_1)
etc.

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3/Apache22] Right way to compile worker MPM?

2008-09-04 Thread Gilles
On Wed, 03 Sep 2008 15:04:06 -0400, Michael Powell
[EMAIL PROTECTED] wrote:
 One problem is that worker/event mpm is not recommended for use with
mod_php as some pieces of PHP is not thread safe

Arg :-/ So I'll stick to preforked instead. My friends's web server
uses PHP extensively.

 So running PHP as FastCGI with mod_fcgid is what I'm currently playing
 around with for test purposes.

I'm interested in some feedback about preforked vs. FastCGI with
Apache22.

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[6.3/Apache22] Right way to compile worker MPM?

2008-09-03 Thread Gilles
Hello

I'm trying to compile the latest ports of Apache22 with support for
the worker MPM so that each child process spawns thread. I'd like to
see if performance improves compared to the prefork model.

Although I checked the THREADS/Enable threads support in APR item in
make config, the resulting binary says this:

# pkg_info | grep apache   
apache-2.2.9_3  Version 2.2.x of Apache web server with prefork
MPM.

Should I edit the makefile file manually to get worked MPM?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3] makewhatis - missing etags.1.gz

2008-08-13 Thread Gilles
On Sat, 09 Aug 2008 12:45:12 +0100, Matthew Seaman
[EMAIL PROTECTED] wrote:
It doesn't.  makewhatis is just having a bad day trying to process
an emacs-related man page that it thinks should be there, but for
some reason it isn't.

Thanks.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[6.3] makewhatis - missing etags.1.gz

2008-08-09 Thread Gilles
Hello

In the freebsd.acme weekly run output e-mail, I see this:


Rebuilding locate database:

Rebuilding whatis database:
makewhatis: /usr/local/man/man1/etags.1.gz: No such file or directory


Could someone tell me what package I'm missing that causes this error?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3] makewhatis - missing etags.1.gz

2008-08-09 Thread Gilles
On Sat, 09 Aug 2008 10:26:17 +0100, Matthew Seaman
[EMAIL PROTECTED] wrote:
happy-idiot-talk:~:% pkg_which /usr/local/man/man1/etags.1.gz
emacs-22.2_1

Probably any of the emacs ports would install that man page.

Thanks for the tip. Out of curiosity, why does makewhatis require
Emacs?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Restarting a driver?

2008-06-20 Thread Gilles
Hello

Out of curiosity, why can't I restart the Zaptel driver that is used
by Asterisk to communicate with a PCI telephony card?

# /usr/local/etc/rc.d/zaptel restart

 zaptelkldunload: can't find file wcte12xp.ko: No such file or
directory
kldunload: can't find file wcte11xp.ko: No such file or directory
kldunload: can't find file wct4xxp.ko: No such file or directory
kldunload: can't find file wct1xxp.ko: No such file or directory
kldunload: can't unload file: Device busy
kldunload: can't find file wcfxo.ko: No such file or directory
kldunload: can't find file tau32pci.ko: No such file or directory
kldunload: can't find file qozap.ko: No such file or directory
kldunload: can't unload file: Device busy
 zaptelkldload: can't load /usr/local/lib/zaptel/zaptel.ko: File
exists

# tail /var/log/messages
[...]
 Jun 20 12:34:42 freebsd kernel: kldunload: attempt to unload file
that was loaded by the kernel

Do some device drivers require using special commands to
unload/reload?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Ports] How to find where a port is located?

2008-06-19 Thread Gilles
On Mon, 16 Jun 2008 17:45:37 +0200 (CEST), Oliver Fromme
[EMAIL PROTECTED] wrote:
http://www.secnetix.de/tools/porgle/

Thanks guys for the suggestions.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[Ports] How to find where a port is located?

2008-06-13 Thread Gilles
Hello

Currently, to find where a software is located under /usr/ports/, I
rune the find command. Is there a database that I could query
instead so that it gives out the whole path to that the application?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Ports] How to find where a port is located?

2008-06-13 Thread Gilles
On Fri, 13 Jun 2008 10:17:02 +0100, Catalin Miclaus
[EMAIL PROTECTED] wrote:
Try 'whereis portname'.

Thanks. That seems to be the fastest way:

# whereis lftp
lftp: /usr/local/bin/lftp /usr/local/man/man1/lftp.1.gz
/usr/ports/ftp/lftp

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Ports] How to find where a port is located?

2008-06-13 Thread Gilles
On Fri, 13 Jun 2008 11:39:10 +0200, Gilles [EMAIL PROTECTED]
wrote:
Thanks. That seems to be the fastest way:

Actually... no:

# whereis samba
samba: /usr/ports/japanese/samba

# whereis samba3
samba3: /usr/ports/japanese/samba3

# find /usr/ports/ -name samba*
[...]
/usr/ports/net/samba3

Why didn't whereis find samba3? Do I need to run a command to keep
it up-to-date with csup ports-supfile?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Ports] How to find where a port is located?

2008-06-13 Thread Gilles
On Fri, 13 Jun 2008 12:43:13 +0200, Andreas Rudisch cyb.@gmx.net
wrote:
You can use 'make search name=' or 'make search key='

Thanks, much faster.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Renaming root to homer?

2008-06-02 Thread Gilles
On Fri, 30 May 2008 18:38:31 -0700, Brian [EMAIL PROTECTED] wrote:
Has denyhosts been recommended yet, or an sshd port change?

I did the latter, but will also look at denyhost. Thanks guys.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Renaming root to homer?

2008-05-29 Thread Gilles
Hello

With all those scripts trying to connect to SSHd as root, I was
wondering if it'd be OK to rename this account to eg. homer, to act
as a first line of defense?

Are there unknown consequences to doing something like that?

If not, is it done by just editing /etc/password with vi, or is there
a better way?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Renaming root to homer?

2008-05-29 Thread Gilles
On Thu, 29 May 2008 10:48:27 +0200, Pieter de Goeje
[EMAIL PROTECTED] wrote:
Unless you have explicitly set PermitRootLogin to yes in /etc/ssh/sshd_config, 
it is not possible to login as root using ssh. 

Right. I did this because I was tired of having to log on as homer and
then sudo'ing to root, using two complicated passwords :-/

I guess I should learn how to use public/private keys instead.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3/PHP5] Right way to add APC?

2008-05-16 Thread Gilles
On Fri, 16 May 2008 10:05:10 +0300, Odhiambo Washington
[EMAIL PROTECTED] wrote:
That is supposed to have happened automatically! The extension is supposed
to have been added to /usr/local/etc/php/extensions.ini
 so basically you just need to restart apache (after configuring whatever 
 options you were after).

Thanks, but no trace of it:

extension=filter.so
extension=hash.so
extension=json.so
extension=zip.so
extension=sockets.so
extension=pcre.so
extension=pdo.so
extension=readline.so
extension=session.so
extension=ctype.so
extension=mhash.so
extension=pdo_sqlite.so
extension=mbstring.so
extension=tokenizer.so
extension=xml.so
extension=curl.so
extension=bz2.so
extension=posix.so
extension=zlib.so
extension=ldap.so
extension=mcrypt.so
extension=xmlrpc.so
extension=xmlwriter.so
extension=iconv.so
extension=mysql.so
extension=simplexml.so
extension=spl.so
extension=sqlite.so
extension=dom.so
extension=xmlreader.so
extension=mysqli.so
extension=ftp.so

So should I add it with its fully-qualified path, or should I edit
php.ini instead?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3/PHP5] Right way to add APC?

2008-05-16 Thread Gilles
On Fri, 16 May 2008 09:39:17 +0200, Gilles [EMAIL PROTECTED]
wrote:
Thanks, but no trace of it:

My mistake. I forgot to run make install :-/

But then, I haven't had my first cup of java this morning :-)

Sorry about that, guys.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[6.3/PHP5] Right way to add APC?

2008-05-15 Thread Gilles
Hello

Before I go ahead and mess with that 6.3 host... I figured I should
ask the experts.

I'd like to add the APC cache add-on, but I don't know how to do this.
After compiling and installing /usr/ports/www/pecl-APC, should I...

1.  edit /usr/local/etc/php.ini or /usr/local/etc/php/extensions.ini
2. and what to put there?

Thanks for any tip.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [samba 3.0.28a,1) PANIC: tdb_reopen_all failed

2008-05-11 Thread Gilles
On Sun, 11 May 2008 00:17:03 +0200, Gilles [EMAIL PROTECTED]
wrote:
No problem there. I did create my own /usr/local/etc/smb.conf, and
smbpasswd is living under /usr/local/etc/samba/. The n-1 version
worked fine, and this version was installed about a week ago.

I uninstalled, recompiled the Ports. Hopefully, this error won't occur
again. Thanks.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[samba 3.0.28a,1) PANIC: tdb_reopen_all failed

2008-05-10 Thread Gilles
Hello

I got a bunch of PANIC messages this morning on a FreeBSD 6.3 host,
and had to restart Samba:


[2008/05/10 10:28:51, 0] lib/util.c:smb_panic(1633)
  PANIC (pid 43086): tdb_reopen_all failed.

[2008/05/10 10:28:51, 0] lib/util.c:log_stack_trace(1737)
  BACKTRACE: 3 stack frames:
   #0 0x8220341 smb_panic+73 at /usr/local/sbin/smbd
   #1 0x82b9389 main+4773 at /usr/local/sbin/smbd
   #2 0x8086b8e _start+118 at /usr/local/sbin/smbd

[2008/05/10 10:28:51, 0] lib/fault.c:dump_core(181)
  dumping core in /var/log/samba/cores/smbd

[2008/05/10 10:29:59, 0] lib/util_tdb.c:tdb_log(664)
  tdb(/var/db/samba/locking.tdb): tdb_reopen: open failed (No such
file or directory)

[2008/05/10 10:29:59, 0] smbd/server.c:open_sockets_smbd(572)
  tdb_reopen_all failed.


FWIW, I downloaded the latest ports and compiled it recently to get
samba-3.0.28a,1. I didn't get this type of error with the previous
version. Is it possible to downgrade to a stable version?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [samba 3.0.28a,1) PANIC: tdb_reopen_all failed

2008-05-10 Thread Gilles
On Sat, 10 May 2008 23:08:45 +0200, Mel
[EMAIL PROTECTED] wrote:
Not sure it's related, but did you read the message you get before you 
installed this version?
( cd /usr/ports/net/samba3  make pre-everything)

# cd /usr/ports/net/samba3  make pre-everything
===  NOTICE: This version of port has changed location of Samba
password
===  NOTICE: (smbpasswd) directory. Files in '/usr/local/private'
===  NOTICE: have moved to '/usr/local/etc/samba'.

No problem there. I did create my own /usr/local/etc/smb.conf, and
smbpasswd is living under /usr/local/etc/samba/. The n-1 version
worked fine, and this version was installed about a week ago.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [CRON] Recommended FTP client to download and upload files?

2008-05-09 Thread Gilles
On Sat, 03 May 2008 16:46:27 +0200, Gilles [EMAIL PROTECTED]
wrote:
What command-line FTP client would you recommend for this?

It looks like lftp is not running like I thought it would :/ Until I
ran the following commands manually instead of through CRON, some
files on the remote source FTP server dated May 6th/7th were not
downloaded locally and then uploaded to the target remote FTP server:

1. Here's the script:

# cat /var/sync.bash 

#!/usr/local/bin/bash
echo Downloading from Source FTP
lftp -u joe,sixpack -e mirror -vn ./files /var/depot  bye
ftp.source.com

echo Uploading to Target FTP
lftp -u joe,sixpack -e mirror -vnR /var/depot ./downloads  bye
ftp.target.com

2. When run manually:

# ./sync.bash 
Downloading from Source FTP
Total : 1 directory, 41 files, 0 symlinks
Uploading to Target FTP
Total : 1 directory, 41 files, 0 symlinks
To be removed: 0 directories, 2 files, 0 symlinks

3. CRON:

# crontab -l
5,35 * * * * /var/sync.bash /dev/null 21

= What does To be removed: 0 directories, 2 files, 0 symlinks
actually mean?

Thanks for any tip.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [CRON] Recommended FTP client to download and upload files?

2008-05-09 Thread Gilles
On Sat, 10 May 2008 01:53:13 +0200, Gilles [EMAIL PROTECTED]
wrote:
It looks like lftp is not running like I thought it would

Found what it was: The script worked fine when ran manually, but
failed when ran by CRON because it couldn't locate lftp:

Downloading from Source FTP
/var/sync.bash: line 3: lftp: command not found
Uploading to Target FTP
/var/sync.bash: line 6: lftp: command not found

Moral of the story: Start by leaving error messages as is before
redirectering them to /dev/null once the script proved to work.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[SSHd] Increasing wait time?

2008-05-06 Thread Gilles
Hello

I'm a bit tired of people trying to break into SSH:

May  6 16:59:23 freebsd sshd[24649]: Invalid user agatha from
195.43.9.246
May  6 16:59:26 freebsd sshd[24651]: Invalid user cristie from
195.43.9.246
May  6 16:59:29 freebsd sshd[24653]: Invalid user number from
195.43.9.246
May  6 16:59:31 freebsd sshd[24655]: Invalid user chamber from
195.43.9.246
etc.

Is there a way to configure SSHd, so that the wait time between login
attempts increases after X failed tries?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3] Keeping host up to date

2008-05-05 Thread Gilles
On Sat, 03 May 2008 18:07:08 +0300, Manolis Kiagias [EMAIL PROTECTED]
wrote:
You just need the ports-supfile. The standard supfile is for the 
base system.

Thanks. I updated the packages I actually need.

Looks like I need to run make clean before make config ; make; make
deinstall ; make reinstall, otherwise make doesn't do anything:

# pkg_version -l
[...]
php5-5.2.5_1   needs updating (port has
5.2.6)
php5-bz2-5.2.5_1   needs updating (port has
5.2.6)
php5-ctype-5.2.5_1 needs updating (port has
5.2.6)
etc.

# cd /usr/ports/lang/php5
# make
# 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Updating PHP5?

2008-05-05 Thread Gilles
Hello

I succesfully updated the Ports collection, and recompiled PHP5, but
nothing happens when I run make to recompile the PHP extensions:

1. cd /usr/ports/lang/php5 ; make clean ; make config ; make ; make
deinstall ; make reinstall

2. pkg_version -v | grep php

php5-5.2.6  =   up-to-date with port
php5-bz2-5.2.5_1   needs updating (port has
5.2.6)
php5-ctype-5.2.5_1 needs updating (port has
5.2.6)
etc.

3. cd /usr/ports/lang/php5-extensions ; make clean ; make config

[/usr/ports/lang/php5-extensions]# make
[/usr/ports/lang/php5-extensions]# 

Nothing happens :-/ Are the above, outdated packages located
elsewhere?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Updating PHP5?

2008-05-05 Thread Gilles
On Tue, 06 May 2008 04:00:15 +0200, Gilles [EMAIL PROTECTED]
wrote:
Nothing happens :-/ Are the above, outdated packages located
elsewhere?

FWIW, apparently, the solution is to run this:

portupgrade php5-*

and let it upgrade every package.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [CRON] Recommended FTP client to download and upload files?

2008-05-04 Thread Gilles
On Sat, 03 May 2008 11:34:30 -0700, prad [EMAIL PROTECTED]
wrote:
i like lftp the best. you can script it and everything has always
worked smoothly for me using it.

Thanks guys, lftp did the job. I'll put those two lines in a script
and add it to CRON:

lftp -u joe,mypass -e mirror -vn ./files ./mirror  bye
ftp.source.com

lftp -u joe,mypass -e mirror -vnR ./mirror ./files  bye
ftp.target.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[CRON] Recommended FTP client to download and upload files?

2008-05-03 Thread Gilles
Hello

I need to run a CRON job to download files from one FTP server if
they're more recent, and upload them to another FTP server. The files
all live in one directory, so there's no need for recursion.

What command-line FTP client would you recommend for this?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[6.3] Keeping host up to date

2008-05-03 Thread Gilles
Hello

I have some newbie questions:

1. Am I right in understanding that running make ; make install in
/usr/ports/ turns the port into a package, so that when I run
pkg_info, it doesn't make any difference whether a package was
downloaded directly from the Net or compiled locally through the Ports
collection?

2. When I run pkg_version -v, some of the packages are out of date.
Generally speaking, what is the safe way to update a package? I'm
worried about compiling a new version of a ports that will break the
one I already have up and running.

3. Do I really need to run both csup standard-supfile ; csup
ports-supfile to update my ports collection? What's the difference
between the two?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FTP server behind firewall?

2008-04-18 Thread Gilles
On Thu, 17 Apr 2008 07:59:20 +0300, Manolis Kiagias [EMAIL PROTECTED]
wrote:
Running an FTP behind a home DSL router is perfectly possible. You will 
just have to open a range of ports on the router itself eg 25000-25050 
and forward them to your ftp server internal IP address. Then set the 
FTP server to only use these ports for passive transfers.

Thanks guys, I think I'll try this, as it's the easiest to allow VB
clients to upload files.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[SSHd] Limiting access from authorized IP's

2008-04-18 Thread Gilles
Hello

I have a couple of questions about running SSHd:

1. I'd like to limit connections from the Net only from specific IP's.
It seems like there are several ways to do it (/etc/hosts.allow,
AllowHosts/AllowUsers, TCP-wrapper, port-knocking, etc.). Which would
you recommend?

2. Although it's up and running, I can't find SSHd in the list of
installed apps:

$ which sshd

/usr/sbin/sshd

$ pkg_info | grep -i ssh
= Nada. How come?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [SSHd] Limiting access from authorized IP's

2008-04-18 Thread Gilles
On Fri, 18 Apr 2008 10:04:37 +0100, FreeBSD - Wire Consulting
[EMAIL PROTECTED] wrote:
sshd(8) is part of the base system, which is a FreeBSD patched version of
OpenSSH. Although, you can find some ports of bulk OpenSSH in
/usr/ports/security.

I don't have a firewall on that host because there's already a NAT
router connecting the LAN to the Net.

I'll just add the following to /etc/ssh/sshd_config, and restart the
service:

AllowHosts 192.168.0 82.x.x.x

BTW, is the SSHd that comes with the system good enough, or should I
upgrade to what's in /usr/ports/security/ssh2?

Thanks

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [SSHd] Limiting access from authorized IP's

2008-04-18 Thread Gilles
On Fri, 18 Apr 2008 10:04:37 +0100, FreeBSD - Wire Consulting
[EMAIL PROTECTED] wrote:
(snip)

Seems like I didn't do it right:

/etc/ssh/sshd_config:
[...]
AllowHosts 192.168.0 82.227.x.x

# /etc/rc.d/sshd restart
Stopping sshd.
Starting sshd.
/etc/ssh/sshd_config: line 119: Bad configuration option: AllowHosts
/etc/ssh/sshd_config: terminating, 1 bad configuration options

Thanks.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [SSHd] Limiting access from authorized IP's

2008-04-18 Thread Gilles

At 18:17 18/04/2008 -0500, Paul Schmehl wrote:

If you want to restrict sshd logins by host, you can use AllowUsers like this:

AllowUsers [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED] [EMAIL PROTECTED]


It looks like AllowHosts is not available with the version of SSH that 
comes with FreeBSD.


This works:

AllowUsers [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL 
PROTECTED]

Thanks.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FTP server behind firewall?

2008-04-16 Thread Gilles
Hello

We have FreeBSD server on our private LAN behind a NAT firewall on
which I'd like to add an FTP server so that customers can send us
stuff.

Problem is, since customers might have a NAT firewall on their end,
the client application must connect in passive mode... but this just
moves the problem to our end, where the FTP server will open a random
port for data... to which the client will fail connecting since our
NAT firewall is keeping them out of our LAN :-/

Is there a way to keep our server in the private LAN and still provide
a way for customers to upload data? Hard-code the socket number used
by the FTP server for data? Use a different type of server?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FTP server behind firewall?

2008-04-16 Thread Gilles
On Wed, 16 Apr 2008 22:06:24 -0400, Jon Radel [EMAIL PROTECTED] wrote:
What control do you have over the firewall?  One of the cleaner
solutions would be to run an ftp proxy on the firewall, such as that
supplied with pf.  See ftp-proxy(8) or
http://www.openbsd.org/faq/pf/ftp.html

Unfortunately, the router/NAT firewall can be neither replaced nor
tweaked, since it's a modem/router provided by our ISP.

Actually, we don't necessarily need an FTP. Whatever solution to send
files is fine, provided I can add this feature in a VB Classic client
application.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[6.3] How are those daemons started?

2008-03-31 Thread Gilles
Hello

By running netstat -an, I notice that some daemons are running,
even though nothing is listed in either /etc/rc.conf or some
equivalent in /usr/local/etc/ :

tcp4   0  0  127.0.0.1.25
udp4   0  0  *.2727 *.*
udp4   0  0  *.2727 *.*
udp4   0  0  *.514  *.*

nmap seems to only handle TCP (TCP2000 = callbook?) doesn't say
which application is opening those ports, and lsof | grep doesn't
return anything :-/

Are there other ways to start daemons besides listing them in
/etc/rc.conf?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3] How are those daemons started?

2008-03-31 Thread Gilles
On Mon, 31 Mar 2008 15:06:20 -0500, Erik Osterholm
[EMAIL PROTECTED] wrote:
Also note /etc/defaults/rc.conf which is /why/ these services
are on by default.  Entries in /etc/rc.conf override entries in
/etc/defaults/rc.conf, so you should never change
/etc/defaults/rc.conf.

Thanks guys. After reading /etc/defaults/rc.conf, I understood that
the reason there's sendmail listening on TCP25 is so that local
daemons can send e-mail to the admin.

Thanks for the tip, and sockstat:

# sockstat | grep 2000
root asterisk   593   17 tcp4   *:2000*:*
# sockstat | grep 2727
root asterisk   593   10 udp4   *:2727*:*
# sockstat | grep 514
root syslogd531   7  udp4   *:514 *:*
# sockstat | grep 25
root sendmail   676   3  tcp4   127.0.0.1:25  *:*

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3] How are those daemons started?

2008-03-31 Thread Gilles
On Tue, 1 Apr 2008 01:47:11 +0300, Ghirai [EMAIL PROTECTED] wrote:
You can stop syslog from listening by adding this to rc.conf:

Thanks. I'll probably turn off Sendmail and Syslogd, and see if it
works, although this host is already behind a firewall and those ports
are not mapped through.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.3/vi] European characters?

2008-03-25 Thread Gilles
On Mon, 24 Mar 2008 18:10:15 -0400, Walker [EMAIL PROTECTED] wrote:
It's your locale setting (man locale).  What I have set in bash, for example:

export LANG='en_US.UTF-8'
export LC_COLLATE='C'

Thanks guys. Problem solved.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[6.3/vi] European characters?

2008-03-24 Thread Gilles
Hello

vi can't display Euopean characters on my 6.3 setup. For instance, it
shows Cr\xe9er instead of Créer.

Am I missing the right font, or is it some wrong setting somewhere?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pkg_list mypackage?

2008-03-13 Thread Gilles
Hello

The online FreeBSD manual in the 4.4 Using the Packages System part
doesn't mention a command to list the files that were installed
through a package.

What is the equivalent of eg. pkg_list mypackage?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkg_list mypackage?

2008-03-13 Thread Gilles
On Thu, 13 Mar 2008 22:54:09 -0600, David Reedy Jr
[EMAIL PROTECTED] wrote:
pkg_info -L pkg-name

Thanks guys.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [7.0] Stuck at md0: Preloaded image /boot/msfroot

2008-03-09 Thread Gilles
On Sun, 09 Mar 2008 01:47:54 +0100, Gilles [EMAIL PROTECTED]
wrote:
I can successfully run and install FreeBSD 6.2 on the same
host/hard-disk. Any idea what could cause this?

I only get one line further with a 20GB Seagate ST320413A, where
FreeBSD gets stuck at the line that says ad0: 19092MB Seagate etc..

Could it be linked to ACPI and all those things? I booted as usual,
using the default boot.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [6.2] Fails downloading packages

2008-03-09 Thread Gilles
On Sun, 09 Mar 2008 11:25:18 +0100, Kris Kennaway [EMAIL PROTECTED]
wrote:
They were presumably removed for space reasons (6.3 is the latest 
release).  You can use ftp-archive or switch to the latest packages 
(packages-6-stable).

OK, thanks for the tip.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[7.0] Stuck at md0: Preloaded image /boot/msfroot

2008-03-08 Thread Gilles
Hello

I looked at the archives and the FAQ, but didn't find a solution:
Using a 7.0 boot CD, FreeBSD gets stuck right after this message
trying to install itself on a 80GB Hitachi Deskstart IDE drive:

hptrr: no controller detected
md0: Preloaded image /boot/mfsroot ... bytes at 0x...

I can successfully run and install FreeBSD 6.2 on the same
host/hard-disk. Any idea what could cause this?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[6.2] Fails downloading packages

2008-03-08 Thread Gilles
Hello

Since 7.0 fails installing on a Hitachi IDE drive, I installed a
Minimal 6.2, but once done, its fails downloading packages:

freebsd# pkg_add -r bash

Error: FTP Unable to get
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/bash.tbz:
File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch
'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/bash.tbz'
by URL

Indeed, there's no
/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/

Found it under /pub/FreeBSD/ports/i386/packages-6-stable/shells/

So...
1. cd /tmp
2. fetched bash-3.2.33.tbz
3. pkg_add -r ./bash-3.2.33.tbz
Error: FTP Unable to get
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/./bash-3.2.33.tbz:
File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch
'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/./bash-3.2.33.tbz'
by URL

Am I missing some configuration somewhere that would explain why 6.2
is having a hard time finding packages on the official site?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


re: Error in konqueror 3.3.1

2005-08-20 Thread gilles

hi there!

I just read the page where you talk about this probleme:



 I get these error when browsing some site (e.g  cisco.com)

konqueror: ERROR: Error in BrowserExtension::actionSlotMap(), unknown 
action :

searchProvider
konqueror: ERROR: Error in BrowserExtension::actionSlotMap(), unknown 
action :

searchProvider
konqueror: ERROR: Error in BrowserExtension::actionSlotMap(), unknown 
action :

searchProvider
konqueror: ERROR: Error in BrowserExtension::actionSlotMap(), unknown 
action :

searchProvider
Bus error (core dumped)

have you find the solution?
i have the same problem.
if you speak French, that's great. If no, please write in a simple 
language! ;)

I'm runnig whith Mandriva, but I thing it's the same...
Cheese!






___ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Keyspan USB Serial Adapter on FreeBSD 5.1

2004-03-03 Thread Gilles Celli
Hi,

This is my very first posting on the freebsd-questions mailing list :)

I tried to install a Keyspan USB Serial Adapter model: USA19 on FreeBSD 
5.1.
FreeBSD recognizes it with no problem (/var/log/messages)
kernel: ugen0: Keyspan USA-19 serial adapter, rev 1.00/80.01, addr 2

However trying to open /dev/ugen0 a device (Thermometer) connected on 
the USB Serial port
it says that it can't open it. And yes /dev/ugen0 exists. In fact it's 
a C program which opens /dev/ugen0.

On Linux (kernel 2.4.22) (/dev/ttyUSB0)  it works, but I would like to 
test it also on FreeBSD.

Any tips/tricks are greatly appreciated. Thanks a lot.

Gilles

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


VNC ssh tunneling problem: getsockopt TCP_NODELAY error

2003-09-27 Thread Gilles JOLITON
Dear,

I met the same problem and manage to solve it (thanks for your help) by replacing 
Connection/SSH/Tunnels/Destination/localhost:59XX by 
Connection/SSH/Tunnels/Destination/127.0.0.1:59XX.

regards,

Gilles
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Linksys WMP54G support

2003-07-15 Thread Gilles Ciselet
Hello
Is there any plan to support this PCI wireless card on FreeBSD?
Thanks
Gilles Ciselet

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]