Re: What options to netstat will tell me what protocols are listeningon what ports?

2006-12-22 Thread Nicolas Blais
On Friday 22 December 2006 16:52, Jon Krause wrote:
> From: "Andrew Falanga"
>
> : Hi,
> :
> : In Linux, I would normally use 'netstat -tl' to see a listing of all
> : listening ports on the tcp protocol; however I'm not having as much luck
>
> in
>
> : determining what options I need for netstat in FreeBSD.  What are the
> : options that I need to use?
> :
> : Andy
>
> See "man sockstat"
>
> Best, Jon
>

Or netstat -p tcp

-- 
FreeBSD 7.0-CURRENT #13: Sat Dec 16 15:42:22 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpqgYyP0xxSS.pgp
Description: PGP signature


FreeBSD FAMP on a mini-itx/embedded platform

2006-12-11 Thread Nicolas Blais
Hi,

I'm looking to make a light FreeBSD-Apache-MySQL-PHP system out of a VIA EN 
5000 system. It would replace my home file/web server which currently runs 
24h/7d with a silent and energy-wise bundle. 

I would also like to take advange of the C7 processor's Padlock feature (SSL 
encryption). I believe FreeBSD supports it?

I'm not looking for 3D performance or the such for this file server, but I 
would expect it to atleast keep up with the current server network-wise. Are 
my expectations unfounded?

Does anyone here run FreeBSD on a VIA EN system or other embedded C7-based 
machine?

Thanks!

Nicolas

sidenote: This would be my 7th BSD machine in the house (and this is not 
counting my Vmware guests!) :)
-- 
FreeBSD 7.0-CURRENT #12: Sat Dec  2 12:30:58 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpofF0C0kOw1.pgp
Description: PGP signature


Re: Sound under qemu

2006-11-03 Thread Nicolas Blais
On Friday 03 November 2006 09:35, Stephen J. Roznowski wrote:
> I'm running FreeBSD 6.2-PRERELEASE and Qemu 0.8.2s.20061031 with
> kqemu-kmod-1.3.0.p9_1.
>
> I've gotten Windows 98 running inside of the emulator, but I'm having
> trouble getting the sound to work. I'm starting it with various
> combinations:
>
>   qemu  -soundhw sb16 
> and
>   qemu  -soundhw all 
>
> and all I'm getting are the following errors:
>
>   sb16: warning: command 0xf,1 is not truly understood yet
>   sb16: warning: command 0xe,2 is not truly understood yet
>   sb16: warning: command 0xf,1 is not truly understood yet
>   sb16: warning: command 0xe,2 is not truly understood yet
>
> Can somebody help me/point me in the right direction?
>
> Thanks,
> -SR

I always have more luck with -soundhw es1370 (sb16 never seemed to work 
right), have you given it a try?

Nicolas.
-- 
FreeBSD 7.0-CURRENT #9: Tue Oct 31 15:44:23 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpUT6Bjhm8E9.pgp
Description: PGP signature


Set default python to 2.5?

2006-10-26 Thread Nicolas Blais
Can anyone tell me how to set the default python to 2.5. I've updated python 
to 2.5 about 2 weeks ago when it became default. Since some were having 
issues, it was defaulted back to 2.4. 
I'm not having any problems (and I have lots of ports that use python), and 
would like to keep 2.5, but everytime I portupgrade, I'm asked to "upgrade" 
python-2.5 to python-2.4.3,1 and anything that depends on python which would 
need updating tries to install 2.4.3,1. 

Is there a make.conf flag or something I can do to make 2.5 my default python?

Thanks,
Nicolas.

-- 
FreeBSD 7.0-CURRENT #1: Sat Oct  7 15:11:02 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpNnVGtrTGeR.pgp
Description: PGP signature


Re: "User" mount of usb "key" drive ... question

2006-10-25 Thread Nicolas Blais
>
> Thanks, Paul
>
> I had a similar setup in /etc/rc.conf and /etc/devfs.rules which didn't
> work.
>
> I copied yours and then rebooted, but I still get "operation not permitted"
> when attempting to mount the usb drive as a non-root user.
>
> Thanks for your attention.
>
> lane

Do you have this in your /etc/sysctl.conf :
vfs.usermount=1

-- 
FreeBSD 7.0-CURRENT #1: Sat Oct  7 15:11:02 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpVAOhgrEIjL.pgp
Description: PGP signature


Re: "User" mount of usb "key" drive ... question

2006-10-25 Thread Nicolas Blais
On Wednesday 25 October 2006 20:18, Lane wrote:
> I guess I don't know how to ask google and "man fstab" the correct way ...
>
> How can I grant a non-root user the authority to mount (and then write to)
> a usb "key" drive? Especially when said user is already "up in" kde?
>
> The drive works fine if "root" mounts it, but I'd rather not be root when I
> do this on my laptop.  And opening a konsole window, "su"ing and then
> mounting , is cumbersome.
>
> I've been looking at "man devfs.rules," as this seems to be near the place
> I want to be.  But I haven't quite fingered out a way...
>
> Ya'll don't gotta just tell me the answer, if you don't want.  I'm a "man"
> man, so to speak.  I'm eager to look it up myself, only I don't rightly
> know whereinaheck to look.
>
> Thanks,
>
> lane

In /etc/devfs.rules I have:

[devfsrules_local=15]
add path 'da*' mode 0777

and in /etc/rc.conf I have:
devfs_system_ruleset="devfsrules_local"

and in /etc/fstab:
#user mounts for umass devices
/dev/da0s1  /home/myhome/usbdrive msdosfs rw,noauto   0 0

and it works in KDE.

-- 
FreeBSD 7.0-CURRENT #1: Sat Oct  7 15:11:02 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpD1Lzyq0SW5.pgp
Description: PGP signature


Re: sshd brute force attempts?

2006-09-19 Thread Nicolas Blais
On Tuesday 19 September 2006 17:12, Joao Barros wrote:
> On 9/19/06, Dan Mahoney, System Admin <[EMAIL PROTECTED]> wrote:
> > Hey all,
> >
> > I've looked around and found several linux-centric things designed to
> > block brute-force SSH attempts.  Anyone out there know of something a bit
> > more BSD savvy?
> >
> > My best attempt will be to get this:
> >
> > http://www.csc.liv.ac.uk/~greg/sshdfilter/index_15.html
> >
> > running and adapt it.
> >
> > I've found a few things based on openBSD's pf, but that doesn't seem to
> > be the default in BSD either.
> >
> > Any response appreciated.
>
> I'm using BruteForceBlocker quite successfully.
> I take the opportunity to thank danger for it :-)
>
> http://www.freshports.org/security/bruteforceblocker/

I like to protect myself by hiding what I have, which will reduce the amount 
of direct or random attacks by a lot, then deal with attacks using tools 
(like bruteforceblocker). 

This is especially useful when attackers are using ip-range tools to scan 
common ports for their associated service.

Why keep sshd on port 22?

Nicolas

-- 
FreeBSD 7.0-CURRENT #0: Sun Sep 17 10:21:02 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: so for kicks, i just ...

2006-08-06 Thread Nicolas Blais
On Sunday 06 August 2006 21:57, Jonathan Horne wrote:
> i just decided to take a box, and installworld, without going to single
> user mode.  from what i can see, the update was completely successful.  of
> course, other then myself (su'd to root), there were no other users logged
> in).
>
> i wonder how many people are brave enough, and do actually installworld
> without changing to single user mode?  i wonder what is truly at risk from
> not going to single mode?
>
> curious,
> jonathan

I usually don't go into single-user mode on my desktops as there is no real 
need. If I know libc has been bumpted, then there's a reason to go in 
stand-alone as there might be running processes that might be affected.

On a multiple user machine it is highly recommended because
1) You warn the user that a loss of ressource (network connection etc...) is 
imminent due to reboot
2) Any huge processes are stopped and will not be affected by live changing of 
libraries and core /bin or /usr/bin and other system bin files.
3) If somethings goes wrong, you won't be affecting other users in mysterious 
ways, you can fix it right away and resume "serving".

There's probably more reasons to the logic but thoses are my so far.

Nicolas.

-- 
FreeBSD 7.0-CURRENT #11: Sun Jul 30 12:12:59 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgp8UTa5U2Ex5.pgp
Description: PGP signature


Re: urgent: I just rm-r a directory

2006-08-06 Thread Nicolas Blais
On Sunday 06 August 2006 18:02, Ian Lord wrote:
> I did a rm-r by mistake on a directory... any way to recover ?
>
> Help please :(

Restore from your backups :)

Seriously, if you don't have backups, your chances of recovery are near 0.

Nicolas.

-- 
FreeBSD 7.0-CURRENT #11: Sun Jul 30 12:12:59 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpUukV8HK4Ix.pgp
Description: PGP signature


Re: upgrade port, a couple of questions

2006-08-02 Thread Nicolas Blais
On Wednesday 02 August 2006 17:27, Efren Bravo wrote:
> Hi,
>
> How can I see which ports depend on
> libgmp-4.1.4_1?
>
> If I upgrade it, the applications that are using
> the old libgmp would be affected?
>
> Thanks...
>
> Efren Bravo.

If you go into /var/db/pkg/libgmp-4.1.4_1 you'll see a file called 
+REQUIRED_BY. Read it (cat "+REQUIRED_BY") to see which ports require libgmp.

You usually do not have to rebuild those ports unless there was a major change 
in the library. It's up to you to know if you need to rebuild them or not.

Nicolas.

-- 
FreeBSD 7.0-CURRENT #11: Sun Jul 30 12:12:59 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgp9Odg1ciaY8.pgp
Description: PGP signature


Re: Newbie question: Is this something I should send to buglist?

2006-07-30 Thread Nicolas Blais
On Sunday 30 July 2006 13:09, Oliver Iberien wrote:
> After running portsnap this morning:
>
> bsd# pkg_version -v > /home/oliver/version.txt
> "Makefile", line 54: Could not
> find /usr/ports/print/cups-lpr/../../print/cups/Makefile.common
> make: fatal errors encountered -- cannot continue
> pkg_version: Failed to get PKGNAME from /usr/ports/print/cups-lpr/Makefile!
>
> I take it that this means that there is something missing from this part of
> this port? I looked at
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-broken.html
> and tried querying the data base (and was confused by the options), and
> searched the mailing list for the string cups-lpr. Nothing -- I think.
>
> Anyhow, I'm happy to do my bit and post this somewhere but don't want to
> start sending badly formatted or unnecessary bug reports around. Any
> advice?
>
> Oliver

This message is normal. cups-lpr is a port that no longer exists since the 
update to 1.2.0 as it has been merged with cups-base. When you update to 
cups-base 1.2.0_2, you won't get that message. 

Whether I recommend you update to 1.2.0 is another thing though :)


-- 
FreeBSD 7.0-CURRENT #11: Sun Jul 30 12:12:59 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpFfo9l04Ss6.pgp
Description: PGP signature


Re: a good www/picture management port?

2006-07-22 Thread Nicolas Blais
On Saturday 22 July 2006 17:42, Jonathan Horne wrote:
> anyone know of good picture management application that can be found within
> ports, to manage and organize pics that i upload?
>
> right now, my management system is to:
> 1) open my folder on my local KDE workstation.  create image gallery using
> the built in tool.
> 2) upload the entire folder under a master folder on my web host.
>
> im not looking for sometnig that i can try to complete with imageshack or
> anything, but if there is something out there that can help me out with the
> thumbnailing and organization of the tons of pics im accumulating these
> days, i would appreciate anyones input.
>
> thanks a bunch,
> jonathan

See ports/graphics/jalbum (http://jalbum.net/).


-- 
FreeBSD 7.0-CURRENT #10: Sat Jul 22 13:02:01 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpRo3LbmMwmU.pgp
Description: PGP signature


Re: DVD playback

2006-07-22 Thread Nicolas Blais
On Saturday 22 July 2006 15:37, Beech Rintoul wrote:
> Is there any program in the ports that will playback the new DVD's? Some
> will play fine, but others I  just get a lot of disk activity and it locks
> up the machine. Is this some kind of new copy protection?
>
> Beech

I've never had any problems with either Mplayer or Xine compiled very every 
useful options, including libdvdcss (access dvd without caring for the 
encryption). 
One of my FreeBSD machines is a HTPC connected to my TV and I use it to play 
dvds and never encountered problems (other than media/quality-related). 

Nicolas.
-- 
FreeBSD 7.0-CURRENT #10: Sat Jul 22 13:02:01 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpCexKsVyVOZ.pgp
Description: PGP signature


Re: cups 1.2 - no output

2006-07-02 Thread Nicolas Blais
On Sunday 02 July 2006 16:50, Jan-Espen Pettersen wrote:
> Rainer Heesen wrote:
> > USB port busy; will retry in 30 seconds...
>
> fstat | grep ulpt0
>
> .. will reveal which process is eventually having ulpt0 open, and
> causing 'device busy'.
> The usb backend seems to get this error while trying to open /dev/ulpt0.
>
> Please also make sure that either the cups user or cups group has read
> and write access to /dev/ulpt0.
> I think most people use permissions like: root:cups 0660 (-rw-rw).
>
> Jan-Espen Pettersen

Also make sure that /vad/cache/cups is writeable by group cups. 

-- 
FreeBSD 7.0-CURRENT #6: Sat Jul  1 12:22:48 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpxT5SXx7ptc.pgp
Description: PGP signature


Re: CUPS, USB printers & "Permission Denied"

2006-06-29 Thread Nicolas Blais
>
> I found that the usb backend stalled here before actually doing any
> work. Before I've done any actual debugging of the backend, I suspect
> that it is being blocked on a status read attempt, though this is only
> my current guess.
>
> Here is a workaround:
>
> In printers.conf () you will probably find a line like this:
>
> DeviceURI usb:/dev/ulpt0
>
> change usb: to file:, so that it looks something like this:
>
> DeviceURI file:/dev/ulpt0
>
> Then restart cups. Cups will not read any status information from the
> printer, but at least it can print. Be warned about unknown side effects.
> :)
>
> Jan-Espen Pettersen

Thanks, that did fix the problem! I'll be adding your hint to the PR/99460.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 [EMAIL 
PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgp8ROuPyslzH.pgp
Description: PGP signature


Re: CUPS, USB printers & "Permission Denied"

2006-06-25 Thread Nicolas Blais
On Sunday 25 June 2006 23:32, John Nielsen wrote:
> On Sunday 25 June 2006 20:04, Anthony Agelastos wrote:
> > On Jun 25, 2006, at 7:35 PM, John Nielsen wrote:
> > > On Sunday 25 June 2006 19:28, Anthony Agelastos wrote:
> > >> I updated CUPS and I cannot print to my USB laser printer. The web
> > >> interface shows the following:
> > >>
> > >> hp_LaserJet_1160Le (Default Printer) "Unable to open USB device
> > >> "usb:/dev/ulpt0": Permission denied"
> > >> Description: Hewlett-Packard LaserJet 1160Le
> > >> Location: Den
> > >> Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended)
> > >> Printer State: stopped, accepting jobs, published.
> > >> Device URI: usb:/dev/ulpt0
> > >>
> > >> Doing a `dmesg | grep ulpt0`, I get
> > >>
> > >> ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00,
> > >> addr 2,
> > >> iclass 7/1
> > >> ulpt0: using bi-directional mode
> > >>
> > >> The printer itself works (I plugged it directly into my MacBook
> > >> and it
> > >> printed fine). To ensure it wasn't an awkward build error, I issued a
> > >>
> > >> `portupgrade -fR cups`
> > >>
> > >> and rebuilt it and everything it is dependent upon. Does anyone
> > >> else have
> > >> any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq
> > >> 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006
> > >> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL  i386).
> > >
> > > Just a "me too" so far with an el cheapo Lexmark USB laser printer
> > > (E210).
> > > Are you using the foomatic script? I am, with a PPD from
> > > linuxprinting.org.
> >
> > I am not sure, actually (it was so long ago, I do not remember how I
> > got it working). I installed hpijs and "Make and Model" mentions
> > Foomatic/hpijs, so perhaps. I am sorry I could not be of more
> > assistance with this question.
> >
> > > I'm going to try backing up and blowing away my etc/cups dir, re-
> > > updating
> > > the port, reinstalling foomatic and my ppd, and see if that makes any
> > > difference. I'll post whatever I learn.
> >
> > Thank you for posting your findings and for your quick reply.
>
> No luck. I basically re-installed everything (including config files and
> the foomatic filters) from scratch. I also changed the permissions
> on /dev/ulpt0 to be 0664 for root:cups. That prevents the permissions
> error, but I still get nothing from the printer. The message that comes up
> in the cups web interface when I try to print a test page is:
>
> "/usr/local/libexec/cups/backend/usb failed"
>
> I did get my other printer (on a different machine) working with cups 1.2.0
> by just changing the permissions on the device node. I hadn't ever set this
> printer up with cups before today, though. It's using gutenprint.
>

After playing with the permissions on ulpt, I can print a test page, though 
half of it comes out after I manually feed my printer. 

After that half-printed page, anything I try to print after will get me a "USB 
port busy; will retry in 30 seconds..." message and it never prints.


-- 
FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpyMgvKTbUbJ.pgp
Description: PGP signature


Re: CUPS, USB printers & "Permission Denied"

2006-06-25 Thread Nicolas Blais
On Sunday 25 June 2006 19:28, Anthony Agelastos wrote:
> Hello all,
>
> I updated CUPS and I cannot print to my USB laser printer. The web
> interface shows the following:
>
> hp_LaserJet_1160Le (Default Printer) "Unable to open USB device
> "usb:/dev/ulpt0": Permission denied"
> Description: Hewlett-Packard LaserJet 1160Le
> Location: Den
> Make and Model: HP LaserJet 1160 Foomatic/hpijs (recommended)
> Printer State: stopped, accepting jobs, published.
> Device URI: usb:/dev/ulpt0
>
> Doing a `dmesg | grep ulpt0`, I get
>
> ulpt0: Hewlett-Packard hp LaserJet 1160 series, rev 1.10/1.00, addr 2,
> iclass 7/1
> ulpt0: using bi-directional mode
>
> The printer itself works (I plugged it directly into my MacBook and it
> printed fine). To ensure it wasn't an awkward build error, I issued a
>
> `portupgrade -fR cups`
>
> and rebuilt it and everything it is dependent upon. Does anyone else have
> any ideas? I am running an early 6.1-STABLE (FreeBSD dell.home.iq
> 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 01:04:32 EDT 2006
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/IQKERNEL  i386).

Same here.

I have opened a bug report : http://www.freebsd.org/cgi/query-pr.cgi?pr=99460

-- 
FreeBSD 7.0-CURRENT #4: Sun Jun 25 12:13:31 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpU3SZDzC3ik.pgp
Description: PGP signature


Re: Sound Problem in KDE

2006-06-02 Thread Nicolas Blais
On Friday 02 June 2006 19:50, Gerard E. Seibert wrote:
> Upon completion of a fresh installation of KDE on FreeBSD 6.1, I have been
> unable to get the sound to work correctly in KDE. Upon starting up of KDE,
> this error message is displayed:
>
> Sound server informational message:
> Error while initializing the sound driver:
> device /dev/dsp can't be opened (Device busy)
> The sound server will continue, using the null output device.
>
> I have tried rebooting the system, but the problem remains. since KDE did
> work with FSBD 5.4 on this PC, I am not sure what the problem might me.

You haven't provided a lot of information (sound card, dmesg etc...) but try 
this:

Add this in your /etc/sysctl.conf file:
hw.snd.pcm0.vchans=4
hw.snd.maxautovchans=4

Nicolas.

-- 
FreeBSD 7.0-CURRENT #0: Sat May 27 11:58:25 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgp8VBTIBO32j.pgp
Description: PGP signature


Re: Why are people singing there postings on this mailling list ?

2006-04-15 Thread Nicolas Blais
On Saturday 15 April 2006 10:23, Benjamin Lutz wrote:
> On Saturday 15 April 2006 15:23, Kees Plonsz wrote:
> > Is is so important to know that the question or answer came from
> > that person ? I don't think so.
> > Even if it were so, for me it is too much trouble to import every key
> > into my key-database from a key-server.
>
> I sign emails for the same reason I sign my snail-mail letters with a pen.
> I like providing authenticity. Whether the recipient actually checks the
> signatures is not that important, important is that if the need or desire
> arises, he can.
>
> I don't import every key I come across either, usually only those keys for
> which I get signatures on a regular basis.
>
> > On the other hand, those who aren't able to read singed messages
> > are confronted with a lot of carbage tekst wich makes the posting
> > harder to read.
>
> Most people use PGP/Mime these days. If your mail client does not support
> PGP, the signature will be surpressed or maybe shown as attachment. Either
> way, that doesn't make the mail content harder to read. And if your Mail
> client doesn't support Mime yet, well, that's your choice, and seeing the
> signature plaintext is far from the worst inconvience you'll have to put up
> with in that case.
>
> > We don't send postings in .html for that same reason.
>
> That's different. Html text means there's no readable content at all for
> non-HTML mail readers. And these are quite common.
>
> I sign my emails for two other reasons. First, I'm advocating adoption of
> PGP by everyone. I wish to sensitize people for the facts that standard
> emails are neither private nor authenticated, and that you can achieve
> these very important things with PGP. Frankly, I find it staggering how
> many people send around confidential information in emails over the public
> internet, without thinking of the consequences.
>
> The second reason is very personal. It takes some effort on my part to sign
> email. I am not using any key agent, which means I enter my keyphrase every
> time I send an email. This makes the process of sending an email more
> conscious for me: I think twice whether I really want to send it. Sometimes
> times I've stopped myself from sending an email I would later regret (a
> flame, or an angry answer, something like that) at the signing stage. It
> means that sending an email is not as much of a fire-and-forget thing for
> me. I like that.
>
> Cheers
> Benjamin

+1, well said.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #1: Sat Apr  8 21:33:25 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpR9hjXEdxUn.pgp
Description: PGP signature


Re: pow function working unexpectedly

2006-04-11 Thread Nicolas Blais
On Tuesday 11 April 2006 19:24, Colin Percival wrote:
> Andy Reitz wrote:
> > So, clearly, something is optimizing the pow() function away when the
> > arguments are hard-coded lvalues, instead of varibles.
> >
> > Now, what that thing *is*, I don't know.
>
> The C compiler precomputes constant expressions; your "pow(2,3)" is
> being rewritten to "8" by the compiler.  Similarly, if you write
> "1 + 2 / 3 + 4 * 5 - 6", the C compiler will turn this into "15"
> rather than producing a series of instructions which computes the
> expression.
>
> When you reference variables, this optimization isn't possible, since
> those variables might be modified before you reach the line where
> they are used.  (Obviously this doesn't happen in your program, but
> the compiler isn't smart enough to figure that out.)
>
> Colin Percival

+1. The compiler sees constants differently from variables (which reside in a 
memory space). With the constant, the optimizer can rewrite the equation with 
its answer.

Anyhow, it can't be seen as a bug because you should include the math library 
whenever you're using a function from it (see man pow). Therefore, if you 
would have included the library in the first place, you would have never 
found this 'oddity'.

Nicolas.

-- 
FreeBSD 7.0-CURRENT #1: Sat Apr  8 21:33:25 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgps4up9lVAOK.pgp
Description: PGP signature


Re: pow function working unexpectedly

2006-04-11 Thread Nicolas Blais
On Tuesday 11 April 2006 19:07, Jonathan Herriott wrote:
> Question then.  Why would it work when I don't use variables if I
> don't include the library?  This question is just out of curiosity.
>
> On 4/11/06, Nicolas Blais <[EMAIL PROTECTED]> wrote:
> > On Tuesday 11 April 2006 18:54, Jonathan Herriott wrote:
> > > I just want to make sure I'm not being stupid before I send in a bug.
> > > The problem seems to be with gcc when using the pow function in the
> > > math.h library.  Here's code that works:
> > >
> > > #include 
> > > #include 
> > >
> > > int main()
> > > {
> > >  printf("%f\n", pow(2,3));
> > >  return 0;
> > > }
> > >
> > >
> > > Now, the following will not compile:
> > >
> > > #include 
> > > #include 
> > >
> > > int main()
> > > {
> > >  int x = 2; // I tried these as doubles too since the pow function
> > > takes doubles
> > >  int y = 3;
> > >
> > >  printf("%f\n", pow(x,y));
> > >  return 0;
> > > }
> > >
> > > I compiled both programs using:
> > > gcc test.c
> > >
> > > The second example gives the following error:
> > >
> > > /var/tmp//ccxtkMwv.o(.text+0x45): In function `main':
> > > : undefined reference to `pow'
> > >
> > > If I comile with g++, I have no issues.  Are these results that I
> > > should have?  If so, why?  If not, I'm going to submit the bug on gcc
> > > (or the linker, but I'm guessing it's the same group).
> > >
> > > Thanks,
> > > Jonathan Herriott
> >
> > gcc -lm test.c works. You forgot to include the math library.
> >

I'm not sure I get your question, but if your not using the math library (from 
variables or functions), then the compiler could care less if it was linked 
with the math library or not.
If your software DOES use a variable or a call from math.h (pow in this case), 
then linking with the math library is a must.

Hope this answers your question, if it doesn't, post a test2.c with what you 
meant and I'll answer best I can.

Nicolas.



-- 
FreeBSD 7.0-CURRENT #1: Sat Apr  8 21:33:25 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpcmezHLPbz5.pgp
Description: PGP signature


Re: pow function working unexpectedly

2006-04-11 Thread Nicolas Blais
On Tuesday 11 April 2006 18:54, Jonathan Herriott wrote:
> I just want to make sure I'm not being stupid before I send in a bug.
> The problem seems to be with gcc when using the pow function in the
> math.h library.  Here's code that works:
>
> #include 
> #include 
>
> int main()
> {
>  printf("%f\n", pow(2,3));
>  return 0;
> }
>
>
> Now, the following will not compile:
>
> #include 
> #include 
>
> int main()
> {
>  int x = 2; // I tried these as doubles too since the pow function
> takes doubles
>  int y = 3;
>
>  printf("%f\n", pow(x,y));
>  return 0;
> }
>
> I compiled both programs using:
> gcc test.c
>
> The second example gives the following error:
>
> /var/tmp//ccxtkMwv.o(.text+0x45): In function `main':
> : undefined reference to `pow'
>
> If I comile with g++, I have no issues.  Are these results that I
> should have?  If so, why?  If not, I'm going to submit the bug on gcc
> (or the linker, but I'm guessing it's the same group).
>
> Thanks,
> Jonathan Herriott

gcc -lm test.c works. You forgot to include the math library.

-- 
FreeBSD 7.0-CURRENT #1: Sat Apr  8 21:33:25 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpWBui9wKY00.pgp
Description: PGP signature


Re: phpmyadmin and Access denied

2006-04-02 Thread Nicolas Blais
On Sunday 02 April 2006 18:18, Reinhold Platzoeder wrote:
> Hi
>
> I have a weird problem here
>
> I have installed phpMyAdmin 2.8.0.2 from port
>
> Apache version = apache-2.2.0_7
> PHP version = php5-5.1.2_1
> MySQL version = mysql-server-5.0.19
>
>
> When I go to the index page I get the following error
>
> #1045 - Access denied for user 'root'@'localhost' (using password: NO)
>
> I have configured the config.inc.php file and this is whats in it
>
> > cat config.inc.php
>
>  /* $FreeBSD: ports/databases/phpmyadmin/files/config.inc.php.sample,v
> 1.1 2005/12/05 11:37:27 garga Exp $ *
>  * Skeleton configuration file -- this file is empty on a fresh
>  * installaton of phpmyadmin.
>  *
>  * Copy any settings you want to override from config.defaults.php
>  *
>  */
> $cfg['PmaAbsoluteUri'] = 'http://www.violetlan.net/phpmyadmin/';
>
> $cfg['blowfish_secret'] = 'whatever';
>
> $cfg['Servers'][$i]['host']  = 'localhost';
>
> $cfg['Servers'][$i]['auth_type'] = 'cookie';
>
> $cfg['Servers'][$i]['user']  = 'root';
>
> $cfg['Servers'][$i]['password']  = '';
>
> $cfg['Servers'][$i]['connect_type']  = 'socket';
>
> $cfg['Servers'][$i]['socket']= '/tmp/mysql.sock';
>
> ?>
>
> Now the funny thing is that when I change the root password to having no
> password I can get into phpmyadmin
>
> Any ideas as to how I can fix this?
>
> Thanks

Try generating your config.inc.php from 
http://www.violetlan.net/phpmyadmin/scripts/setup.php

instead of making one. I had the same problem after an update from 2.7 to 2.8 
and this fixed it.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Apr  1 10:05:34 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpir2IIE7E0g.pgp
Description: PGP signature


-STABLE cvsup this morning breaks wpa_supplicant

2006-03-25 Thread Nicolas Blais
On one of my -STABLE system which uses 802.11g to connect to the network, 
after a cvsup this morning I was no longer able to use wpa_supplicant.

Error message at boot:

Starting wpa_supplicant.
NDIS: Failed to get adapter list (PacketGetAdapterNames)
Failed to initialize driver interface

DHCPREQUEST on ndis0 to 255.255.255.255 port 67

and ndis0 never connects.

I'm guessing it could have something to do with : 
http://www.freebsd.org/cgi/query-pr.cgi?pr=94735

Perhaps whatever this was supposed to fix broke what was running fine before.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #13: Sat Mar 25 09:45:35 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpgLxNYfoKYm.pgp
Description: PGP signature


Re: DVD Burners

2006-02-17 Thread Nicolas Blais
On Friday 17 February 2006 16:41, dgmm wrote:
> On Friday 17 February 2006 21:05, Mike Jeays wrote:
> > On Fri, 2006-02-17 at 14:36 -0500, Sean wrote:
> > > I would like to add a DVD burner to my system.
> > >
> > > Anyone have recommendations on which ones play nice with FreeBSD?
> > > With so many formats I am trying to decide which one will be my best
> > > option.
> > >
> > >   Thanks
> > >   Sean
> > I have an LG DVD burner, which has worked perfectly with FreeBSD from
> > the day it was installed.  There isn't a model number on the front, but
> > the dmesg output may help identify it.
> >
> > acd0: DVDR  at ata1-master UDMA33
>
> Ditto on a similar model.
>
> acd0: DVDR  at ata1-master UDMA33
> --
> Dave

+1

acd0: DVDR  at ata1-master UDMA33

Works great with k3b and dvdrw-tools.
-- 
FreeBSD 7.0-CURRENT #7: Sat Feb 11 16:57:40 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpvAq9tX7HJA.pgp
Description: PGP signature


Re: can't install kdelibs3 port after upgrading

2006-02-03 Thread Nicolas Blais
On Friday 03 February 2006 20:25, Peter wrote:
> I'm running 5.4-STABLE and I'm receiving the following error:
>
>
> checking for pcre-config... /usr/local/bin/pcre-config
> configure: error: You're missing libpcre.
> Download libpcre from http://www.pcre.org or find a binary package for
> your platform.
> Alternatively, you can specify --disable-pcre, but some web pages - using
> regular
> expressions in Javascript code - will not work correctly, the regexp
> support being
> quite limited if libpcre isn't present.
> ===>  Script "configure" failed unexpectedly.
>
>
> What port contains the coveted libpcre?  I already have the pcre port
> installed and there is no other port with the string "pcre".  Isn't
> portupgrade/portmanger supposed to help me here?
>
> Anyone?
>
> --
> Peter
>

Saw that problem too, it works for me when you put back pcre-6.4.

Nicolas.

-- 
FreeBSD 7.0-CURRENT #5: Sat Jan 28 13:49:26 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpiW3HDNOOA2.pgp
Description: PGP signature


Re: Ctrl+Alt+number terminal switching stopped working

2006-01-29 Thread Nicolas Blais
On Sunday 29 January 2006 12:27, Erik Osterholm wrote:
> On Sat, Jan 28, 2006 at 10:58:10PM +1030, Ian Moore wrote:
> > Hi,
> > I've just noticed I can't switch from my X session back to the other vtty
> > screens using Ctrl+Alt+1, Ctrl+Alt+2 etc.
> > I can't seem to find any info on this - is it a known issue or is it just
> > my system? It seems to happen when running both kde & twm, so it's not
> > window manger related.
> >
> > I'm running 5.4-RELEASE and Xorg6.9 built from ports about a week ago.
> > All ports up to date as of 3 nights ago.
> >
> > Cheers,
>
> For starters, isn't it usually Ctrl+Alt+F1, Ctrl+Alt+F2, etc?
>
> Second, there's an option in your xorg.conf file for "DontVTSwitch".
> Could that have accidentally been turned on?
>
> man xorg.conf
>
> Erik
>

Hm, actually, I noticed this too on my R3240 6-STABLE machine with Xorg 
6.9.0+Nvidia drivers.  Nothing changed in the xorg.conf file and it used to 
work with Xorg 6.8.

My 7-CURRENT machine doesn't show this behavior with Xorg 6.9.0.

Nicolas.

-- 
FreeBSD 7.0-CURRENT #5: Sat Jan 28 13:49:26 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpapjUOqwwnr.pgp
Description: PGP signature


Re: C/C++ call to detect cpu?

2006-01-22 Thread Nicolas Blais
On Sunday 22 January 2006 19:53, Derek Ragona wrote:
> Nicolas,
>
> I have commented assembler code for the intel family of CPU's.  This code
> goes back to the i386 and also takes into account the CPU string, and will
> calculate the clock speed.  I do call this as a library function from c/c++
> programs.
>
> Unfortunately this is written for Microsoft's MASM, and I have never ported
> it to gas.
>
> If you want a copy I can send you the assembler source code and/or the
> commented listing as well.
>
>  -Derek
>

Certainly, that would be of great help! Under what license would you be 
releasing the source ? :)

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Jan 21 11:33:22 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpilr8wlaw2e.pgp
Description: PGP signature


Re: C/C++ call to detect cpu?

2006-01-22 Thread Nicolas Blais
On Saturday 21 January 2006 15:33, John Levine wrote:
> >Other than 'grep'ing dmesg, is there a way to know the current cpu such as
> > a struct with the machine's cpu and cpu feature (kinda like a time_t
> > struct)?
>
> $ sysctl hw.model
> hw.model: AMD Athlon(tm) 64 Processor 3000+
>
> If you want more details write a tiny assembler routine that does a
> CPUID instruction and decode the result.  Intel has a detailed application
> note about it at
> http://developer.intel.ru/design/xeon/applnots/241618.htm
>
> R's,
> John

Thanks, that was great help, I was able to get the Processor Name string using 
info from that pdf.  Using asm instead of sysctl will ensure a bit more 
portability.  
Unfortunatly, getting the actual processor speed (in Mhz) is more complicated 
according to that pdf, would you have any suggestions?

Thanks,
Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Jan 21 11:33:22 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgp0D90kwoQcw.pgp
Description: PGP signature


C/C++ call to detect cpu?

2006-01-21 Thread Nicolas Blais
Other than 'grep'ing dmesg, is there a way to know the current cpu such as a 
struct with the machine's cpu and cpu feature (kinda like a time_t struct)?

Portability is not really an issue (though I would be nice if it could run on 
BSD/linux systems).

For example, on one of my systems (from dmesg):
CPU: AMD Athlon(tm) 64 Processor 3000+ (2493.04-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20ff0  Stepping = 0
  
Features=0x78bfbff
  Features2=0x1
  AMD Features=0xe2500800
  AMD Features2=0x1

I would need AMD Athlon(tm) 64 Processor 3000+ (2493.04-MHz 686-class CPU) or 
similar.

Thanks,
Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Jan 21 11:33:22 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpjwJSGS1Q1W.pgp
Description: PGP signature


Re: Programming Book(s)

2006-01-07 Thread Nicolas Blais
On January 7, 2006 03:25 pm, JD Arnold wrote:
> Danial Thom wrote:
> > --- Nicolas Blais <[EMAIL PROTECTED]> wrote:
> >> On January 2, 2006 04:52 pm, Sean wrote:
> >>> Sean wrote:
> >>>> Looking for recommendations on any Unix
> >>
> >> programming books.
> >>
> >>>> I have been out of things for a while so I
> >>
> >> would put my skill level back
> >>
> >>>> to the beginning.
> >>>>
> >>>> Thanks
> >>>> Sean
> >>
> >> ___
> >>
> >>>> freebsd-questions@freebsd.org mailing list
> >
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >
> >>>> To unsubscribe, send any mail to
> >>>> "[EMAIL PROTECTED]"
> >>>
> >>> I forgot to mention that I wish to work with
> >>
> >> C/C++
> >>
> >>>   Thanks again,
> >>>   Sean
> >>
> >> There's a free C++ book which is great :
> >
> > http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
> >
> >> You can also buy the hardcopy on Amazon.
> >>
> >> Nicolas
> >
> > I'd recommend learning C before C++. In order to
> > be an effective unix programmer you must master
> > the C language, as you'll have to examine and
> > modify code in C to do anything substantial.
> > Virtually all major programs and kernels are 'C'
> > based.
>
> I think, in general, this is wrong.  And I think many "professionals"
> also feel that learning C++ is the way to go.  If you just learning,
> you might as well start with C++. For many good reasons, see
> Stroustrup's answer himself:
>
> http://public.research.att.com/~bs/learn.html

I agree, that's how I started anyhow.  
Having done my CS degree couple years ago, I remember my Professor saying: 

Loose the pointers and start referencing! :)

Nicolas.

-- 
FreeBSD 7.0-CURRENT #9: Sat Dec 31 14:24:32 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpBooDNB7zuy.pgp
Description: PGP signature


Re: command to add file contents to end of existing file

2006-01-04 Thread Nicolas Blais
On January 4, 2006 11:40 am, fbsd_user wrote:
> I know I have done this in the past, but having brain fart today.
>
> What is command or command sequence to copy the contents of file B
> to the end of the contents of file A?

you mean something like:

cat filea >> fileb

?
-- 
FreeBSD 7.0-CURRENT #9: Sat Dec 31 14:24:32 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgplLWOe7iF5j.pgp
Description: PGP signature


Re: Programming Book(s)

2006-01-02 Thread Nicolas Blais
On January 2, 2006 04:52 pm, Sean wrote:
> Sean wrote:
> > Looking for recommendations on any Unix programming books.
> > I have been out of things for a while so I would put my skill level back
> > to the beginning.
> >
> > Thanks
> > Sean
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"
>
> I forgot to mention that I wish to work with C/C++
>
>   Thanks again,
>   Sean

There's a free C++ book which is great : 
http://mindview.net/Books/TICPP/ThinkingInCPP2e.html

You can also buy the hardcopy on Amazon.

Nicolas

-- 
FreeBSD 7.0-CURRENT #9: Sat Dec 31 14:24:32 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpjoVRkbbq2d.pgp
Description: PGP signature


Re: Printer Lexmark in FreeBSD

2006-01-02 Thread Nicolas Blais
On January 2, 2006 04:11 pm, Nguyen Danh Hieu wrote:
>  Hi everyone. I am sorry for my poor english but could someone tell me
> how to install and use printer Lexmark Z35 in FreeBSD 6.0. I readed
> somewhere that using printer Lexmark's printer in BSD machine is
> impossible. Is it true everybody?

Though I cannot answer for your specific model, I have a Lexmark E232 which 
runs fine in FreeBSD with the CUPS system (ports/print/cups) using the 
Generic PCL 5e Printer Foomatic/ljet4 driver (ports/print/foomatic*).

If there is no specific driver for the Z35, you can probably make your printer 
work with emulation (like I am using).

See http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing.html
and http://www.cups.org/documentation.php

Nicolas.
-- 
FreeBSD 7.0-CURRENT #9: Sat Dec 31 14:24:32 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpM5tj8NjbFA.pgp
Description: PGP signature


Re: KDE Difficulties

2005-12-26 Thread Nicolas Blais
On December 26, 2005 03:46 pm, Shane Webber wrote:
> Hello,
>I have recently installed FreeBSD6-RELEASE that I've downloaded from
> FBSD.org via Disk1 and 2 onto my Toshiba Satellite P35-S611. I've
> previously purchased several FBSD Power Packs and haven't had this much
> difficulty before with my other systems, then again I've been gone for more
> than four years so I assume I've missed some things. The install was
> completely successful so far, however I don't know how to set the system up
> so that when I use "startx" it defaults to KDE or when I use "startkde"
> from the prompt kde will begin without having a "cannot connect to X
> server" error. I know the X server (XFree86? or Xorg?, I believe it's xorg
> because I use top after using startx) must start prior to any GUI. I've
> searched the handbook and haven't found what I need to get to where I would
> like my system to be. Your assistance would be appreciated. Thanks v/r
> Shane
>

Here's what I use:

In my /etc/ttys file, the line for ttyv8:

ttyv8   "/usr/local/bin/kdm -nodaemon"  xterm   on  secure

This starts kdm (the KDE login manager) at boot. Then I am able to go into KDE 
without any scripts or 'startkde' or anything.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #7: Mon Dec 26 12:43:20 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpN4DmQc12l1.pgp
Description: PGP signature


Re: DVD burning GUI

2005-12-26 Thread Nicolas Blais
On December 26, 2005 01:05 pm, [EMAIL PROTECTED] wrote:
> Hi all,
>
>   Can you point me to some good GUI to CD/DVD burning tools.
>
>   Thank you,
>
> - Marcelo Souza

See /ports/sysutils/k3b

Nicolas.
-- 
FreeBSD 7.0-CURRENT #7: Mon Dec 26 12:43:20 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgp69xeBSYkeo.pgp
Description: PGP signature


Re: "fopen" call...

2005-12-15 Thread Nicolas Blais
On December 15, 2005 04:41 pm, Vasilkov Vasily wrote:
> Hi all..
> this is the part of my source
> 
> FILE *source;
> source = fopen("/home/user/test.c", "r");
> if (source) {
>   printf("fopen error");
>   exit(0);
> };
> 
>   file "/home/user/test.c" exists and its access mode is 777..., but
>   when I run program, I get "fopen error" message...
>
>   Can anybody explain me this subj?
>
>

From man fopen:

RETURN VALUES
 Upon successful completion fopen(), fdopen() and freopen() return a FILE
 pointer.  Otherwise, NULL is returned and the global variable errno is
 set to indicate the error.

That means that your code should be:

 FILE *source;
 source = fopen("/home/user/test.c", "r");
 if (!source) {
   printf("fopen error");
   exit(0);
 };

Nicolas.

-- 
FreeBSD 7.0-CURRENT #4: Sat Dec 10 11:55:08 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgp4AJwFcAyhT.pgp
Description: PGP signature


Re: Problem adding user with pw

2005-12-14 Thread Nicolas Blais
On December 14, 2005 12:44 pm, Ashley Moran wrote:
> Please forgive me if I've missed something obvious, but I've googled for
> this error and get no results.
>
> I want to add a new user with the pw command:
>
>   [EMAIL PROTECTED] cat /etc/pw.conf
>   shellpath = /bin,/usr/bin/,/usr/local/bin
>   shell = sh,csh,tcsh,bash
>   defaultshell = bash
>
>   [EMAIL PROTECTED] which bash
>   /usr/local/bin/bash
>
> but ...
>
>   [EMAIL PROTECTED] pw useradd testuser
>   pw: no default shell available or defined
>
> Does anyone know why I get this error message?
>

Not sure, but since bash is a localy installed shell, try:

defaultshell = /usr/local/bin/bash

-- 
FreeBSD 7.0-CURRENT #4: Sat Dec 10 11:55:08 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpTHtRUtcsQw.pgp
Description: PGP signature


Re: sk0: watchdog timeout

2005-11-29 Thread Nicolas Blais
>
> That's great. But as I said, there's nothing I can configure on my
> switch's side.

Anyway, you and I aren't the only ones with the same problem, under the same 
circonstances.  My forcing of the TX/RX mode does speed up recovery, but 
doesn't fix the actual issue.

The driver has a bug somewhere.  Although I'm not talented enough in driver 
programming, but someone with skills could probably fix this.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #2: Sat Nov 26 10:55:30 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpz5869zM71t.pgp
Description: PGP signature


Re: sk0: watchdog timeout

2005-11-26 Thread Nicolas Blais
On November 26, 2005 09:15 am, Hans Nieser wrote:
> A long, long time ago Vladimir Dvorak wrote:
> > Hello,
> >
> > I have a problem with network card. From time to time kernel says
> >
> > sk0: watchdog timeout
>
> I just ran into the same issue. I have an ASUS A8N-SLI Deluxe in my
> desktop machine which runs FreeBSD 6.0+Xorg+Gnome. It has two on-board
> NICs, the nvidia one and a Marvel one. The nvidia was one big disaster and
> was giving me device timeouts so I never bothered with that one again.

I have an sk0 too on one of my computer's onboard A8V-DX which will timeout 
once in a while too.  I found a way to reduce down time by modifying my 
rc.conf to force 'full-duplex 100Mbps'.  Now, even when it goes into a 
watchdog timeout, I quickly get back my link within that second.

This is what my rc.conf line looks like:

ifconfig_sk0="inet 192.168.1.100 media 100baseTX mediaopt full-duplex netmask 
255.255.255.0"

Nicolas.
-- 
FreeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgp1m2Euu5vqy.pgp
Description: PGP signature


Re: How To Monitor Disk Errors?

2005-11-22 Thread Nicolas Blais
On November 22, 2005 09:05 pm, Drew Tomlinson wrote:
> I have an old machine running 4.11.  It died sometime last night from
> what I think was a disk problem.  The machine was still running and
> still passing packets (it is my firewall) but I could not log in via the
> console, ssh, or telnet.  I powered the machine off/on and heard the
> "click of death" coming from one of the internal IDE drives.  By some
> miracle, the machine did finally boot and is running again.
>
> I'm sure I'm on borrowed time here.  However I would like to find some
> way to monitor drive errors so I know which drive is failing so replace
> the correct drive.  I have two in the machine.  I've checked
> /var/log/messages but see no entries there regarding the drive.  Is
> there some utility that will let me see the current number of errors
> since boot?
>
> Thanks,
>
> Drew

Check out /sysutils/smartmontools in the ports.  It could be what you need.
When installed, a simple smartctl -H /dev/*disk* like :
smartctl -H /dev/ad0 will tell you if your drive is healthy or not.  

You can also set up the smartd which will check your drives at certain 
intervals.

Nicolas
-- 
FreeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgp0ncXariPbZ.pgp
Description: PGP signature


Re: How to access filesystem on 2nd disk ...

2005-11-22 Thread Nicolas Blais
On November 22, 2005 10:05 am, Kiffin Gish wrote:
> On Tue, 2005-11-22 at 09:57 -0500, Jerry McAllister wrote:
> > > I installed freeBSD 5.4 on a system with two hard disks, which I plan
> > > to use as a dedicated fileserver, and following the default sysinstall
> > > setup I have this:
> > >
> > > [EMAIL PROTECTED] df -h
> > > Filesystem SizeUsed   Avail Capacity  Mounted on
> > > /dev/ad0s1a248M 35M193M15%/
> > > devfs  1.0K1.0K  0B   100%/dev
> > > /dev/ad0s1e248M 12K228M 0%/tmp
> > > /dev/ad0s1f 35G573M 31G 2%/usr
> > > /dev/ad0s1d248M1.4M226M 1%/var
> > >
> > > I have three questions:
> > >
> > > 1/ What's the best way to partition my second 20MB hard disk?
> >
> > Well, if it is really only a 20MB drive, I certainly wouldn't
> > break it up at all.
> > But, if it is really 20GB or something like that - your ad0 looks
> > like it is a nominal 36GB or maybe a 40 GB - then it really depends
> > on what you are doing.
>
> Yes I meant 20MB of course (sorry). Megabytes, megabytes, megabytes.

I wasn't aware you could still get 20MB hard drives... Not to insult your 
intelligence, but are you certain you meant 20MB (equivalent of 13 floppy 
disks) and not 20GB (equivalent of ~ 30 cds?)

Nicolas.
-- 
FreeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpcnC4sCtFe1.pgp
Description: PGP signature


Re: Sharing filesystems between FreeBSD and Windows ...

2005-11-22 Thread Nicolas Blais
On November 22, 2005 09:59 am, Kiffin Gish wrote:
> I have a home network running 3 desktop machines with Windows XP Pro,
> and a webserver, fileserver and laptop with FreeBSD 5.x.
>
> What's the best way to be able to exchange files and directory shares
> between the two environments?
>
> It would also be nice to share the printer which is connected to one of
> the Windows boxes via USB.
>
> I hear that Samba is the way to go, but also have heard about such
> client-based utilities like Sharity-light which also do the trick.
>
> Thanks alot in advance.

I use samba+cups at home.  My situation is similar, except my printer is 
connected to one of my FreeBSD machines.  The hardest part of linking FreeBSD 
with Windows isn't the getting the shares to work, but the printers to work, 
and I found it easier to have the printer on FreeBSD and have Windows write 
to it using real drivers (cups in RAW mode).

Actually, it's not as hard at is seems.  Here's what I put in my smb.conf to 
make the printer work:

printing = cups
load printers = yes

[printers]
path = /var/spool/samba
use client driver = Yes
printable = yes
public = yes
guest ok = yes
writable = no

You'll find a lot of help in the Samba documentation and cups is also well 
documented.

Nicolas.

-- 
FreeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpRBuJMv6ydL.pgp
Description: PGP signature


Re: How to access filesystem on 2nd disk ...

2005-11-22 Thread Nicolas Blais
On November 22, 2005 09:41 am, Kiffin Gish wrote:
> I installed freeBSD 5.4 on a system with two hard disks, which I plan to
> use as a dedicated fileserver, and following the default sysinstall
> setup I have this:
>
> [EMAIL PROTECTED] df -h
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/ad0s1a248M 35M193M15%/
> devfs  1.0K1.0K  0B   100%/dev
> /dev/ad0s1e248M 12K228M 0%/tmp
> /dev/ad0s1f 35G573M 31G 2%/usr
> /dev/ad0s1d248M1.4M226M 1%/var
>
> I have three questions:
>
> 1/ What's the best way to partition my second 20MB hard disk?
>
I'll assume you meant 20gb.  The best partition is the one that is the most 
useful for you.  I don't like having partitions above 100gb, and that's a 
personal preference.  I'd use the whole 20gb.  

> 2/ Should I dedicate the whole thing to one mount point, say
> called /extra?
>
If you do decide to use it all, you won't have a choice but to have one hard 
mount point.  Based on what my drives are used for, I will put it in 
different places.

Ex: my backup drive resides in /mnt/backup.  My public share drive resides 
in /usr/local/public_share.

Again, theses are not standards but what I'm most comfortable with.

> 3/ Do I also need swap space on the 2nd drive?
>
Not if you don't need it.

> Thanks alot in advance as usual.

No prob,
Nicolas.
-- 
FreeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpcFsHmIiQL4.pgp
Description: PGP signature


Re: linuxpluginwrapper (was linuxflashplugin)

2005-11-20 Thread Nicolas Blais
On November 20, 2005 09:02 pm, Beecher Rintoul wrote:
> Sorry...Imeant to say pluginwrapper.
> I accidently did a portupgrade on linuxpluginwrapper. That went ok, but now
> I have no plugins in firefox,  either in /usr/X11R6/lib/browser_plugins or
> anywhere else I have found. Any ideas on how to fix this. All of the other
> ports are installed. Libmap.conf is properly installed.
>
>  Beech
>

What happens when you :

cd /usr/X11R6/lib/browser_plugins
ln -s /usr/X11R6/lib/linux-flashplugin6/flashplayer.xpt
ln -s /usr/X11R6/lib/linux-flashplugin6/libflashplayer.so

and so on?
Nicolas.
-- 
FreeBSD 7.0-CURRENT #1: Sat Nov 19 12:36:29 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? (updated 16 Nov 05) : http://www.clkroot.net/security/nb_root.asc


pgpIJrz0ECBSz.pgp
Description: PGP signature


kdeinit stays up after logout

2005-11-12 Thread Nicolas Blais
Hi,

I don't know how long it has been like that, maybe since kde 3.4 but about 1 
in 3 times, kdeinit will stay up and consume my cpu like free beer after 
logout.

I resolve by "killall -KILL kdeinit" and everything is fine until it does it 
again. I haven't found the cause or a real solution so far.

I was wondering if there's a script kdm runs at logout that I can add "killall 
-KILL kdeinit" inside. Anyone know?

Thanks,
Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Nov  5 12:12:36 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpib71Lrk8Fd.pgp
Description: PGP signature


Re: Firefox + acroread7

2005-11-09 Thread Nicolas Blais
On November 8, 2005 07:21 pm, Frank Jahnke wrote:
> We talked about this extensively on the ports list about a month ago,
> when I saw the same thing with Epiphany on 6.0-RC1.  The conclusion was
> that this is a bug in linuxpluginwrapper.  See:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=87404
> To my knowledge, this has not yet been fixed.
>
> Frank
>

Funny thing is that when the link is fixed, it still doesn't work in Firefox, 
but now Konqueror opens pdf within itself (good).

Nicolas.

-- 
FreeBSD 7.0-CURRENT #0: Sat Nov  5 12:12:36 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpkbAIGyqqbV.pgp
Description: PGP signature


safe to delete /usr/local/lib/compat/pkg libs

2005-11-05 Thread Nicolas Blais
Hi,

When I update using portupgrade, sometimes replaced libs are sent 
to /usr/local/lib/compat/pkg, for backward compatibility I presume. 

My question is, how do I know if librairies in that folder are safe to delete? 
I checked today, and there are libs that are 8 months old which I assume 
aren't used since a newer version exists in /usr/local/lib and I always keep 
my system up to date, compiling from source.

Thanks,
Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Nov  5 12:12:36 EST 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgp1uv6m3tNA1.pgp
Description: PGP signature


Re: sk0: watchdog timeout

2005-11-03 Thread Nicolas Blais
On November 3, 2005 06:37 pm, martinko wrote:
> Vladimir Dvorak wrote:
> > Hello,
> >
> > I have a problem with network card. From time to time kernel says
> >
> > sk0: watchdog timeout
> >
> > It has (probably) random behavior.
> >
> > I use FreeBSD 5.4-RELEASE-p8, motherboard is ASUS A8V Deluxe (AMD64,
> > Athlon64XP 3200+) and internal network card from pciconf -v -l
> >
> > [EMAIL PROTECTED]:10:0: class=0x02 card=0x811a1043 chip=0x432011ab 
> > rev=0x13
> > hdr=0x00
> > vendor   = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
> > device   = '88E8001 Gigabit 32-bit Ethernet Controller with
> > Integrated PHY'
> > class= network
> > subclass = ethernet
> >
> >
> > This machine should be sent to serverhouse and I am not sure, if it is
> > ready. :-( Can anyone tell me what is the solution ? To buy another
> > netcard ?
> >
> > Thank you,
> >
> > Vladimir Dvorak
> >
> >
> >
> >
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"
>
> the same chip here and i see the messages from time to time too.
> not sure what's the problem or if there is any at all.
> so far card has been working alright, or at least i haven't noticed any
> issues.
>
> m.
>

Same here too:

sk0: watchdog timeout
sk0: watchdog timeout
sk0: watchdog timeout

with occasional :
sk0: discard frame w/o leading ethernet header (len 10 pkt len 10)
sk0: discard frame w/o leading ethernet header (len 11 pkt len 11)

Network is running fine, though sometimes accessing the internet takes 2-3 
seconds (as if the DNS was not responding) but then is fine. 

-- 
FreeBSD 7.0-CURRENT #0: Sat Oct 29 11:32:52 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpo1i6QGXkzr.pgp
Description: PGP signature


Re: Apache log rotation

2005-10-19 Thread Nicolas Blais
On October 19, 2005 04:54 am, Olivier Nicole wrote:
> Hi,
>
> If one install Apache from the ports, the logs go in /var/log, namely
> in:
>
> ssl_request_log
> httpd-access.log
> ssl_engine_log
> httpd-error.log
>
> Is there a clean way to rotate these logs a la newsyslog?
>
> I know I can use newsyslog to rotate them, but then how to notify
> Apache to use the new log files? I don't expect a signal HUP sent to
> httpd would be enough.
>
> Best regards,
>
> Olivier
>

I use ports/sysutils/cronolog/ which does a great job "transparently".

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Oct 15 12:09:14 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpHDhINjG4hf.pgp
Description: PGP signature


Re: OT: New design

2005-10-05 Thread Nicolas Blais
On October 5, 2005 07:57 pm, Hamza Eraldi wrote:
> Great design!
> Congratulations!
>
> On Wed, 05 Oct 2005 17:43:20 -0500, "Chris" <[EMAIL PROTECTED]> said:
> > I see the site is sporting a new design. I like it.
> >
> >
> > --
> > Best regards,
> > Chris
> >
> > Don't force it,
> > get a bigger hammer.
> > ___

Agreed, but it's missing a direct link to the ports.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpegYimRT7sO.pgp
Description: PGP signature


Re: Password

2005-10-04 Thread Nicolas Blais
On October 4, 2005 09:36 pm, sulie halim wrote:
> Hi there,
>
> i am new to freebsd, and now working as an
> administrator of my college system, which using
> freebsd. my question is, if i have 50 users in the
> systems, how can i view all their usernames and
> passwords? this because i always have problems of them
> forgot thier passwords, and they can't log in to the
> systems. until now, what i did was, delete their
> usernames, and create new ones because i didn't know
> what their passwords either. so any other alternative?
>
> help me. Thanks.
>

You can't view their passwords unless you (or they) saved them in a database 
(which you (they) should really NOT). 

To change a user's passwod without making a new account, use the 'passwd' 
command as root:

[nicblais] ~> su
Password:
[root] /home/nicblais# passwd freakuser
Changing local password for freakuser
New Password:
Retype New Password:

Nicolas.

-- 
FreeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpG8D3iPuFlv.pgp
Description: PGP signature


Samba and/or cups problem with printing

2005-10-04 Thread Nicolas Blais
Hi,

(Please excuse my overly complicated message)

I just bought a usb laser printer (Lexmark E232). After some hours of digging, 
I ended up having it working with cups+foomatic under a Laserjet 4 driver in 
FreeBSD. It works fine.

But, to further complicate things, I wanted my printer to be accessible by XP 
users on the same workgroup so I added a share in samba :

[printers]
path = /var/spool/samba
use client driver = Yes
printable = yes
public = yes
guest ok = yes
writable = no

As user "Alpha"
I can see my share from XP so I tried to print a test page. Windows asks me 
for the drivers, which I provide and my test page prints about 5-6 minutes 
later and most complicated documents don't print.
Then I log in as user "Beta" and he sees the printer, can print instantly and 
everything is fine. Yet user "Alpha" takes hours to print.

So I figured, let's make a second printer in cups to the same physical printer 
and install the same drivers in XP, but this time in user "Beta". Not 
surprisingly, that "new" printer in user "Beta" takes infinitly long to print 
but now user "Alpha" can print instantly using that printer.

Can anyone guess why or how to fix this behavior?

Thanks!
Nicolas.

--
FreeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpFw3yKLlHaY.pgp
Description: PGP signature


Re: http://www.freebsd.org

2005-10-02 Thread Nicolas Blais
On October 2, 2005 10:18 pm, Ansar Mohammed wrote:
> FreeBSD 7.0?
>
> There is a 7.0?
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> > [EMAIL PROTECTED] On Behalf Of Nicolas Blais
> > Sent: October 2, 2005 7:59 PM
> > To: freebsd-questions@freebsd.org
> > Subject: Re: http://www.freebsd.org
> >
> > On October 2, 2005 07:56 pm, Frank J. Laszlo wrote:
> > > Did someone break apache on http://www.freebsd.org?
> > >
> > > Seems to reply to ping requests but the web page doesnt load.
> > >
> > > -Frank
> > > ___
> > > freebsd-questions@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > To unsubscribe, send any mail to
> > > "[EMAIL PROTECTED]"
> >
> > Works here.
> > --

I'm running -CURRENT, which is WIP (work in progress) for 7.0.
See 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgp48ejUDUYX3.pgp
Description: PGP signature


Re: http://www.freebsd.org

2005-10-02 Thread Nicolas Blais
On October 2, 2005 07:56 pm, Frank J. Laszlo wrote:
> Did someone break apache on http://www.freebsd.org?
>
> Seems to reply to ping requests but the web page doesnt load.
>
> -Frank
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Works here.
-- 
FreeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgphNlnk7lgqI.pgp
Description: PGP signature


Re: device permission in devfs.conf not working

2005-10-02 Thread Nicolas Blais
On October 2, 2005 02:07 pm, Micah wrote:
> Nicolas Blais wrote:
> > Hi,
> >
> > I want to be able to use usb drives as a normal user so I added the line
> > :
> >
> > permda0 0777
> > in /etc/devfs.conf
> >
> > But when I plug in the device, da0 and da0s1 is created with default
> > permission :
> >
> > [nicblais] /dev> ll da*
> > crw-r-  1 root  operator0, 148 Oct  2 13:53 da0
> > crw-r-  1 root  operator0, 149 Oct  2 13:53 da0s1
> >
> > Although I can mount it fine as root, I have to chmod 777 to make it work
> > for other users.
> >
> > [nicblais] /dev# chmod 777 da0*
> > [nicblais] /dev# ll da*
> > crwxrwxrwx  1 root  operator0, 148 Oct  2 13:53 da0*
> > crwxrwxrwx  1 root  operator0, 149 Oct  2 13:53 da0s1*
> >
> > I'm assuming it would work if I left the usb drive plugged in while
> > booting but that kinda defeats the purpose of a portable storage media.
> > Is my entry in /etc/devfs.conf not correct?
> >
> > Any help appreciated,
> > Nicolas.
>
> Add a something like this to devfs.rules
> [system=10]
> add path 'da*' mode 0660 group media
>
> Here I relax access to just the media group, but you could obviously
> just use something like "add path 'da*' mode 0777".
>
> Micah

Thanks that worked!
-- 
FreeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgp8Ra3lxCv9Q.pgp
Description: PGP signature


device permission in devfs.conf not working

2005-10-02 Thread Nicolas Blais
Hi,

I want to be able to use usb drives as a normal user so I added the line :

permda0 0777
in /etc/devfs.conf

But when I plug in the device, da0 and da0s1 is created with default 
permission :

[nicblais] /dev> ll da*
crw-r-  1 root  operator0, 148 Oct  2 13:53 da0
crw-r-  1 root  operator0, 149 Oct  2 13:53 da0s1

Although I can mount it fine as root, I have to chmod 777 to make it work for 
other users.

[nicblais] /dev# chmod 777 da0*
[nicblais] /dev# ll da*
crwxrwxrwx  1 root  operator0, 148 Oct  2 13:53 da0*
crwxrwxrwx  1 root  operator0, 149 Oct  2 13:53 da0s1*

I'm assuming it would work if I left the usb drive plugged in while booting 
but that kinda defeats the purpose of a portable storage media.
Is my entry in /etc/devfs.conf not correct?

Any help appreciated,
Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpmFFaK9YA2z.pgp
Description: PGP signature


Re: Mouse cursor invisible in VESA modes?

2005-09-17 Thread Nicolas Blais
On September 17, 2005 09:56 am, Andrew Pogrebennyk wrote:
> Good day!
> My question deals with VESA-patch, which was commited some time ago
> into CURRENT. I dont' know if it is a known bug or a bad luck of mine
> so I ask... Yet before I've tested VESA-patch with 5.3-RELEASE and
> 5.4-RELEASE, and currently I'm using 6.0-BETA4. And everytime I've got
> one the same problem - the mouse cursor disappears when using
> resolutions higher than VESA_800x600. In another words, the mouse still
> works but the cursor is invisible. Also, as far as I remember, I'd been
> encountering some error messages from vidcontrol when using earlier
> versions of this patch, but now they seem to be fixed. However, the
> whole problem still remains.
>
> My system is x86 PC, MB is ASUS A7V8X-X (based on VIA KT400 chipset),
> videocard is ATI Radeon 9600 128MB and mouse is Microsoft IntelliMouse
> Optical 1.1A, plugged into USB (but PS/2 tried as well). Kernel
> contains ony the following console-related stuff:
> options VESA
> options SC_PIXEL_MODE
> options SC_MOUSE_CHAR=0x3
> options SC_HISTORY_SIZE=1200
> I dont' know what else details about my system I need to tell in such
> situation, so excuse me if I missed something important.
>   Regards. Andrew

Same here, but my mouse reappears when I try any resolution in 16-bit depth.  

For example :
vidcontrol @ MODE_280 is [EMAIL PROTECTED] (no mouse) while MODE_279 is 
[EMAIL PROTECTED] works.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Wed Sep  7 18:04:05 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgp7bCmjFWUw9.pgp
Description: PGP signature


Re: crontab : day-of-month support for last-day-of-month

2005-08-30 Thread Nicolas Blais
On August 30, 2005 11:16 am, Kevin Kinsey wrote:
> Nicolas Blais wrote:
> >Hi,
> >
> >Does our crontab allow the use of "L" (as found on
> >http://wiki.opensymphony.com/display/QRTZ1/CronTriggers+Tutorial?decorator
> >=printable) in the day-of-month field which would allow for a job to run
> > on a 31th or feb 28?
> >
> >It would be useful for certain apps like /www/awstats to update their
> > database on the last hour of the month since putting the cron job on the
> > 1st of the month makes the software update in a new month and putting it
> > on the 30th of the month might loose 1 day.
> >
> >Nicolas.
>
> As Lowell noted, "last day" isn't an option currently.  Any number of
> scripting languages, though, are capable of handling this.
>
> Here was a solution we came up with, using PHP, a couple years
> ago:
>
> http://www.daleco.biz/articles/page.php?story=20
>
> I'm sure something like this, or better, would be possible
> with PERL, ruby, etc., or possibly even sh/bash, though I've
> not tried.
>
> HTH,
>
> Kevin Kinsey

Ok, well I'll try to make a patch for my side. I still believe that having the 
option is better that not having it at all, though I may be wrong. 

Thanks for your replies!
Nicolas.

-- 
FreeBSD 7.0-CURRENT #0: Sat Aug 27 13:03:30 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgp3oj85RoOOv.pgp
Description: PGP signature


Re: PHP Session Errors

2005-08-28 Thread Nicolas Blais
On August 28, 2005 04:11 pm, Beecher Rintoul wrote:
> I'm trying to get a new php install  configured, but I'm getting the
> following error when calling session_start ()
>
> Fatal error: Call to undefined function session_start()
> in /usr/local/www/akparadise/session.php on line 4
>
> Does someone have a suggestion? I've been through php.ini and lots of man
> pages but I must be missing something.
>
> The box is running 7.0-CURRENT with Apache2 and
> mod_php5-5.0.4_2,1, both installed from ports.
>
> Thanks,
>
> Beech

Do you have /www/php5-session installed also?
-- 
FreeBSD 7.0-CURRENT #0: Sat Aug 27 13:03:30 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpAkm6t9EABO.pgp
Description: PGP signature


crontab : day-of-month support for last-day-of-month

2005-08-28 Thread Nicolas Blais
Hi,

Does our crontab allow the use of "L" (as found on 
http://wiki.opensymphony.com/display/QRTZ1/CronTriggers+Tutorial?decorator=printable)
 
in the day-of-month field which would allow for a job to run on a 31th or feb 
28? 

It would be useful for certain apps like /www/awstats to update their database 
on the last hour of the month since putting the cron job on the 1st of the 
month makes the software update in a new month and putting it on the 30th of 
the month might loose 1 day.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Aug 27 13:03:30 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpo2FdwoxOh7.pgp
Description: PGP signature


Re: K3B & CD Burner

2005-07-24 Thread Nicolas Blais
On July 24, 2005 08:52 am, Warren wrote:
> I am using FreeBSD 5.4-STABLE
>
> I just installed K3B and when i goto configure it, it dosent detect my CD
> Burner, even though i enter in the location /dev/acd1 .. what am i missing
> that it wont accept or detect my CD Burner ?

Run K3B as root.
-- 
FreeBSD 7.0-CURRENT #4: Sat Jul 16 11:11:37 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD Boot manager

2005-07-18 Thread Nicolas Blais
On July 18, 2005 07:26 pm, Jerry Tarwid wrote:
> I have installed FreeBSD on a box with Windows XP & I installed the FreeBSD
> Boot manager. My question is how do I get rid of the boot manager??? I want
> to uninstall FreeBSD & uninstall the boot manager so my computer will just
> boot windows. I have 2 SATA hard drives, drive 1 has XP on it & drive 2 has
> XP 64 & FreeBSD. I'm using NTFS on both Windows drives. When I installed
> FreeBSD I installed the boot manager & was able to boot into all 3 os's. I
> uninstalled FreeBSD & booted to recovery console & did "fixboot" & "fixmbr"
> & when I tried to boot up I get "boot failure" like the FreeBSD boot
> manager left something in the mbr that fixmbr can't overwrite??? I
> re-installed FreeBSD with the boot manager & am able to boot to all 3 os's
> once again. Can anyone help me???
>
> Thanks,
>
> [EMAIL PROTECTED]
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Try from the command console (in XP or bootable disk):
"fdisk /mbr"

-- 
FreeBSD 7.0-CURRENT #4: Sat Jul 16 11:11:37 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpbnWhcnsPNQ.pgp
Description: PGP signature


Boot in 1024x768x16

2005-07-16 Thread Nicolas Blais
Hi,

Can anyone tell me how to boot in 1024x768x16 (vidcontrol MODE_279) or at 
least have all the ttyv at that resolution after boot. I have seen the sc 
flag 0x0080 to set it at 800x600 but I would want 1024 since my lcd native 
resolution is 1024x768 and in 800x600 the refresh rate causes flicker.

Thanks,
Nicolas.
-- 
FreeBSD 7.0-CURRENT #4: Sat Jul 16 11:11:37 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpBLk1sGmh9s.pgp
Description: PGP signature


Re: Year-old messages

2005-07-03 Thread Nicolas Blais
On July 3, 2005 09:46 am, Svein Halvor Halvorsen wrote:
> How come I get all these year-old messages coming in today?
> I got a couple of dozen of these in both questions@, current@ and [EMAIL 
> PROTECTED]
>
> Here's an exerpt from the headers of one such message
> What's mu.org got to do with this?
>

We all (I presume) got those 2004/2005 messages.

-- 
FreeBSD 6.0-CURRENT #0: Thu Jun 30 23:29:59 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpLpYOfU0Aih.pgp
Description: PGP signature


Re: K3b and audio CD

2005-05-31 Thread Nicolas Blais
On May 31, 2005 04:25 pm, Sergiu - IT wrote:
> Hi, guys !
> I tryed to make an audio CD using K3b, but I've got this error:
>
> "No audio decoder plugins found. You won't be able to add any files to
> the audio project!"
>
> Does anybody know what is this meaning ? Until two days ago it certainly
> worked, but now I get this error. I have't installed anything new. So...
> where is the problem ?
>
> Here is uname -a (in case that it matters):
>
> [EMAIL PROTECTED] uname -a
> FreeBSD sergiu.sergiu.tarnita.net 5.4-RELEASE FreeBSD 5.4-RELEASE #1:
> Thu May 19 21:38:29 EEST 2005
> [EMAIL PROTECTED]:/usr/src/sys/i386/compile/sergiu  i386
> [EMAIL PROTECTED]

I had this problem and it was fixed by updating the ports.  Try it :)

Nicolas.
-- 
FreeBSD 6.0-CURRENT #0: Fri May 27 12:20:45 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpRn2i0hIQAR.pgp
Description: PGP signature


Re: TV application

2005-05-25 Thread Nicolas Blais
>  bktr0: Hauppauge WinCast/TV, Philips FR1216 PAL FM
> tuner, msp3400c stereo, remote control.
>
Also,
Since you've got a PAL tuner, change the NTSC part in my command to PAL and 
check your chanlist to match your region. 
Search : http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html for chanlist.

Nicolas.

-- 
FreeBSD 6.0-CURRENT #2: Sun May 22 11:29:47 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpMsTBxsScim.pgp
Description: PGP signature


Re: TV application

2005-05-25 Thread Nicolas Blais
On May 25, 2005 01:20 pm, Rob wrote:
> Nicolas Blais wrote:
> > mplayer -nocache -tv driver=bsdbt848:
> > device=/dev/bktr:input=1:norm=ntsc:
> > chanlist=us-cable:channel=3 tv://
>
> I'm running 5-Stable. So, I did:
>  # kldload bktr
>  # kldload iicbus
>  # kldload iicbb
>  # kldload smbus

>
> Any idea what's wrong here?
>
> Thanks,
> Rob.

I can't help you with your error messages, but I can tell you that I only use 
bktr without iicbus, iicbb and smbus and it works great.  My dmesg snipped:

bktr0:  mem 0xe3e0-0xe3e00fff irq 11 at device 9.0 on pci0
bktr0: [GIANT-LOCKED]
bktr0: Hauppauge Model 44811 C333
bktr0: Hauppauge WinCast/TV, Philips FR1236 NTSC FM tuner.

Try compiling your kernel with device bktr only to see if that does it.

Nicolas.

-- 
FreeBSD 6.0-CURRENT #2: Sun May 22 11:29:47 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpsIW7R0i4r5.pgp
Description: PGP signature


Re: TV application

2005-05-25 Thread Nicolas Blais
On May 25, 2005 08:51 am, Karel Miklav wrote:
> I've set up FreeBSD on our home computer the other day; my intention was
> to get rid of an old Mandrake installation. It all worked well, except
> for the TV application. Neither fxtv nor xawtv can't hold a candle to
> tvtime on Linux; there's no deinterlacer, no fullsize fullscreen picture
> etc. Am I missing something or it just can't be done?
>

mplayer -nocache -tv 
driver=bsdbt848:device=/dev/bktr:input=1:norm=ntsc:chanlist=us-cable:channel=3 
tv://

Which has all the features you've mentionned.  But the command is long :(... 
so I made a script. Maybe one day it will make it to gmplayer. (kmplayer 
crashes for me).

Nicolas.
-- 
FreeBSD 6.0-CURRENT #2: Sun May 22 11:29:47 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpghjDV6lyTP.pgp
Description: PGP signature


Re: srandomdev() vs srandom() vs arc4random()

2005-05-24 Thread Nicolas Blais
> arc4random() should produce higher quality randomness, although
> srandom() may be good enough for your needs.
>
> > Finally, is there is a way to check if the call srandomdev() exists on
> > other OSes?
>
> Sure, compile a test app in your configure script :-)
>
> Kris

Thanks,
I'm assuming arc4random() is also limited to *BSD?

Nicolas
-- 
FreeBSD 6.0-CURRENT #2: Sun May 22 11:29:47 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpEhkLjnc4lO.pgp
Description: PGP signature


srandomdev() vs srandom() vs arc4random()

2005-05-24 Thread Nicolas Blais
I'm developping a software that uses random generated numbers. Since these 
numbers must be as "chaotic" as possible, I'm using srandomdev(). My problem 
is that I'm only able to compile my software on *BSD and certain distros of 
Linux seem to be stripped of the call. This forces me to rely on 
srandom(time(NULL)) for portability.

I would like to know how "random" (that is, how inprobable a pattern will 
appear) if I use srandom(time(NULL)) instead of srandomdev().
Also, would arc4random() be any better in getting the least pattern creation.
Finally, is there is a way to check if the call srandomdev() exists on other 
OSes?

Thanks for your time,
Nicolas.
-- 
FreeBSD 6.0-CURRENT #2: Sun May 22 11:29:47 EDT 2005 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://66.130.198.54:8081/security/nb_root.asc


pgpz6ce5sxddG.pgp
Description: PGP signature


Re: all users to mount cd's

2005-05-20 Thread Nicolas Blais
On May 20, 2005 06:02 pm, Ryan Winograd wrote:
> Side note: Is it a mistake to be using FreeBSD as a desktop OS? Its main
> purpose is as a server, FreeBSD even admits its goal is not to be a
> desktop OS. 

Funny, I just gave a presentation discussing FreeBSD as a desktop os.

I run FreeBSD as a desktop OS, my wife's cursed Compaq Presario R3240CA runs 
FreeBSD as a desktop OS and I convinced many friends (aka geeks) to try 
FreeBSD as a desktop OS and that was a success.  
I have 4 computers at home and only one is running XP, and that's for games. 
Maybe FreeBSD should only be used for servers instead of desktop, but I'll 
honestly tell you that it does a great job on my computers doing both. At the 
same time.  While making buildworld and ripping/encoding a dvd...

Plus I hate the BSOD.

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


Re: all users to mount cd's

2005-05-20 Thread Nicolas Blais
On May 20, 2005 04:10 pm, Ryan Winograd wrote:
> Is there an easy way to allow any user to mount cd's?
> Well, yes. I have proper perms on cd devs and if a user creates
> a directory he owns he can mount from command line w/ sudo.
>
> There are, however, some requiremnents i am trying to meet.
>
> I would like the mounting process to be much easier. I am using
> KDE and would like to have the cd's mount automatically so that
> the users don't have to know how to use the command line. How
> can I accomplish this?
>
> Thanks in advance for all advice,
> Ryan w
>

Everything in that FAQ still works : 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT

Basically, type sysctl  vfs.usermount=1 or add the line vfs.usermount=1 
to /etc/sysctl.conf so that it changes itself at boot.  
Make sure your cdrom has the correct permission in /etc/devfs.conf (example : 
perm acd0 777).
Make a user-readable folder in the users home directory (/home/myself/cdrom)
Make a fstab entry in /etc/fstab for that user (/dev/acd0 /home/myself/cdrom 
cd9660 ro,noauto 0 0)
Make an device icon on the KDE desktop with that user's fstab entry (found in 
the Device tab).

Anyone sees a mistake in this, please fix,

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


Re: /etc/make.conf weirdness

2005-05-19 Thread Nicolas Blais
On May 19, 2005 03:51 pm, Kris Kennaway wrote:
> On Thu, May 19, 2005 at 03:31:02PM -0400, Nicolas Blais wrote:
> > Hi,
> >
> > This is probably a user problem (me), but why is it that when I put this
> > in /etc/make.conf:
> >
> > .if ${.CURDIR:M*/multimedia/transcode}
> >   WITH_DIVX5=yes WITH_OPTIMIZED_CFLAGS=yes
> > .endif
> >
> > and build transcode, it will only receive WITH_DIVX5 and not the other
> > flag.
> >
> > and if I put this instead:
> >
> > .if ${.CURDIR:M*/multimedia/transcode}
> >   WITH_OPTIMIZED_CFLAGS=yes WITH_DIVX5=yes
> > .endif
> >
> > it will receive WITH_OPTIMIZED_CFLAGS and not the other again?

> > Any way around this?
>
> Put each entry on separate lines, don't try to separate them with
> whitespace.
>
> Kris

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


/etc/make.conf weirdness

2005-05-19 Thread Nicolas Blais
Hi,

This is probably a user problem (me), but why is it that when I put this 
in /etc/make.conf:

.if ${.CURDIR:M*/multimedia/transcode}
  WITH_DIVX5=yes WITH_OPTIMIZED_CFLAGS=yes
.endif

and build transcode, it will only receive WITH_DIVX5 and not the other flag.

and if I put this instead:

.if ${.CURDIR:M*/multimedia/transcode}
  WITH_OPTIMIZED_CFLAGS=yes WITH_DIVX5=yes 
.endif

it will receive WITH_OPTIMIZED_CFLAGS and not the other again?

Same with all the ports such as :

.if ${.CURDIR:M*/multimedia/mplayer}
  WITH_OPTIMIZED_CFLAGS=yes WITHOUT_RUNTIME_CPUDETECTION \
  WITH_RTC=yes WITH_LIBUNGIF=yes WITH_ARTS=yes \
  WITH_FRIBIDI=yes WITH_CDPARANOIA=yes WITH_LIBDV=yes\
  WITH_MAD=yes WITH_SVGALIB=yes WITH_AALIB=yes WITH_THEORA=yes\
  WITH_SDL=yes WITH_ESOUND=yes WITH_VORBIS=yes WITH_XANIM=yes \
  WITH_LIVEMEDIA=yes WITH_MATROSKA=yes WITH_XVID=yes WITH_LZO=yes \
  WITH_XMMS=yes
.endif

will only receive WITH OPTIMIZED_CFLAGS.

Any way around this?

Nicolas.

FreeBSD clk01a 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Thu May 19 09:13:03 EDT 
2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A  i386
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"