Xorg doesn't go back correctly to console when closed on FreeBSD 9.0

2012-04-12 Thread Gabriel Marchi
Hi all,
I´m running 9.0-RELEASE on my laptop, everything works fine, except when I
try go back to console I get a black screen.

dmesg: http://pastebin.com/U45duS5n
xorg.conf: http://pastebin.com/qERavJs0
Xorg.0.log: http://pastebin.com/143m0gWB
pciconf: http://pastebin.com/ZfQ6daGC

Thanks in advance.
Gabriel Marchi

*

*
___
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


FreeBSD 7.3 RC1 - gmirror - changed devices name

2010-02-16 Thread Gabriel Lavoie
Hello everyone,
 I just upgraded my system to 7.3 RC1, from 7.1, to test it. I had
a lot of trouble with my gmirror setup as none of my providers were
recognized. It happened that the HARDCODED flag was set on both my
providers and my hard disk drives device nodes changed name from 7.1
to 7.3RC1. Removing the HARDCODED flag from a FixIt live CD and
rebooting solved the problem. How comes device nodes can change name
from a release to another? Both my hard disk drives went from ad8 and
ad10 to ad4 and ad6...

Thank you,

Gabriel
___
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: jpeg-7

2009-07-23 Thread Gabriel Lavoie
Hello,
 check /usr/ports/UPDATING... You have to rebuild everything
depending on jpeg...

Gabriel

2009/7/20 ajtiM lum...@gmail.com:
 Hi!

 My system: FreeBSD 7.2, KDE 3.5.10.

 I updated jpeg-7 with portupgrade -fr jpeg-* and looks that evrything works
 fine (GIMP, Firefox...) except GQview 2.15 (gqview-devel). It doesn't show
 jpg, gif, png or better from 100 pictures it shows one or maybe two. It show
 just black square.
 Did I forgot to rebuilt something or it is problem with GQview. pleaee?

 Thanks in advance...
 --
 Mitja
 -
 http://starikarp.redbubble.com
 ___
 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




-- 
Gabriel Lavoie
glav...@gmail.com
___
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: Opinion request about a file server

2009-06-08 Thread Gabriel Lavoie
If you want to use gmirror + gjournal on the root filesystem (/), be
sure to use FreeBSD 7.2. A bug prevented the system to boot on unclean
shutdown because the replay of the journal took too much time and
FreeBSD wanted to mount non-existant (yet) devices. It caused me a lot
of trouble when I installed my server and finally I had to leave the
root filesystem without gjournal as a workaround.

Gabriel

2009/6/8 Valentin Bud valentin@gmail.com:
 On Mon, Jun 8, 2009 at 10:06 AM, DA Forsyth d.fors...@ru.ac.za wrote:

  I think my file/print/mail server is a bit overkill:
  http://w3.mutehq.net:8008/sysinfo/

 Nice, esp when you compile world.   Last year I upgraded our server
 to a Core 2 Duo 1.8Ghz, Intel DG965 board.  2GB RAM.  Previous board
 was an ASUS P3 1.1GHz, which now hosts my backup server.  Both ran
 FreeBSD file/print/email/web services perfectly.  I upgraded to get
 the onboard SATA sockets so I could increase our available disk space
 (4x500GB in RAID5 for data).

 However, a nice benefit is that the Core2 will compile world in 1/4
 the time, and user don't notice the server is 'busy'.

 SO, to the original question, yes that motherboard will work just
 fine.   What are you doing for system backups?  A single drive is not
 enough.  I recommend a mirror pair at least, and suggest a second box
 for backups.



 Hello community,

  Thanks everybody for their thoughts. After reading your posts and some
 articles over the
 weekend I will take the gmirror(8) + gjournal(8) road.

  The backups will be done offsite because the company which I'm doing this
 for
 is a friend of my boss and we do have a lot of spare space or our servers.

 thanks once again,
 v



 --
 network warrior since 2005
 ___
 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




-- 
Gabriel Lavoie
glav...@gmail.com
___
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: Opinion request about a file server

2009-06-05 Thread Gabriel Lavoie
I think my file/print/mail server is a bit overkill:

http://w3.mutehq.net:8008/sysinfo/

2009/6/5 Valentin Bud valentin@gmail.com:
 Hello community,

  I have an old computer (ASRock P4Dual-915GL) with Intel P4
 CPU at 3.0Ghz and 2Gb of RAM.

  I am asking the list maybe is somebody out there with a similar
 configuration
 and running FreeBSD on such a system as a File Server and Print Server
 using samba.

  What i mainly try to achieve, talking in storage space, is 2 HDD of 1TB in
 mirroring using gmirror(8) and 1 separate HDD of 500Gb.

  So do you think the system I've mentioned would handle the load? The server
 will be
 used by 4 people for storage of all sorts of files that can be found in
 Design and daily
 Office World (Photoshop, Illustrator, etc, Word Documents, etc).

 Thank you,
 v
 --
 network warrior since 2005
 ___
 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




-- 
Gabriel Lavoie
glav...@gmail.com
___
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: Opinion request about a file server

2009-06-05 Thread Gabriel Lavoie
Much less than a Pentium 4! Exactly I don't know. This server is a
normal PC with a 380W PSU (still too much for the hardware). The funny
thing is that the CPU in it (Pentium Dual Core E5200 45nm) is supposed
to draw under 4W of power when idle with EIST enabled. This power draw
on Intel 45nm CPUs had been tested with a Core 2 Quad! What I can say
is that this server uses a lot less power than the Pentium II (dual
CPU) it replaced and it's much more powerful. It really made a
difference in my electricity bill.

2009/6/5 Chris Rees utis...@googlemail.com:
 2009/6/5 Gabriel Lavoie glav...@gmail.com:
 I think my file/print/mail server is a bit overkill:

 http://w3.mutehq.net:8008/sysinfo/


 What a waste... How much power does that chug??

 Chris

 --
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
 A: Top-posting.
 Q: What is the most annoying thing in a mailing list?




-- 
Gabriel Lavoie
glav...@gmail.com
___
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: GEOM_JOURNAL on a 550G partition - opinions ?

2009-02-04 Thread Gabriel Lavoie
Hi,
two 500gb hard drives under gmirror/gjournal and no problem here.
I've had a few problems with the root partition under gjournal in
FreeBSD 7.0. With an unclean shutdown, the journal replay wasn't done
quickly enough before the kernel tried to mount the root partition,
failing to do so because the device node is only created after the
journal has been replayed. I reported the bug and it has been
corrected in HEAD but I don't know if the correction made its way on
7.1. So, my / partition is on gmirror only with soft-updates and the
rest of my system has gjournal on top of gmirror. Made a lot of test
by resetting the system and removing/putting back a hard drive and the
system always came back in a clean state.

Gabriel

2009/2/4 Manolis Kiagias sonic200...@gmail.com:
 Hugo Silva wrote:
 Hi list,

 For a server I will be setting up, I am considering using gjournal on
 the partition that will hold all the www data.

 The journaled partition (mounted async) would be mostly read from,
 uploads would not be very frequent and most sites wouldn't write to
 the disk. Logs would be kept elsewhere.

 This server will have two hard disks, mirrored (gmirror) at the disk
 level.



 Here are my questions:


 - Will the fact that gmirror is underneath the journal
 (/dev/mirror/gm0s1f.journal) affect performance ? (either positively
 or negatively)
   (* I would be keeping the journal in the same provider)

 I can only tell you this works. Have not done any real measurements on
 this stuff, as most of my systems are normally not under high load.
 I've done this for a friend's SAMBA server, who is storing very large
 photo files all the time.  In fact, I am just preparing our local LUG
 server in exactly this way.
 At least in theory gmirror can be set to balance (round-robin) reads
 from the disks, so read should be improved. On the other hand, the
 journaling implementation in gjournal writes everything twice, so expect
 to have some significant overhead there.
 Ivan Voras has done some performance testing on several filesystems,
 including UFS with soft updates and journaling. See the results in this
 post:

 http://lists.freebsd.org/pipermail/freebsd-questions/2008-December/188131.html


 - Would reads / writes be faster? considerably faster ? (gjournal)
 I've seen different numbers from different places, the impression I
 got is that reads should be faster while writes will be substantially
 slower - is this correct ?


 It seems so, at least for the writes.


 - What about reliability ? From the manpage, I know that if I
 journaled the entire mirror, I would not need to sync it after an
 unclean shutdown.
   Going from the assumption that this will not be so for a single
 journaled partition, will there be any interference between gjournal
 and gmirror ?

 I haven't had any reliability problems combining gmirror and gjournal.
 To my experience, gjournal syncs the gmirror almost instantly after an
 unclean shutdown.



 - I've never had an UFS2 partition filled with more than 200G of data,
 so I am not sure what to expect for 550G with soft-updates (I expect
 this partition to hold close to 550G of data) - real numbers about
 this would also be helpful.


 Any personal experiences concerning gjournal or gmirror+gjournal are
 greatly appreciated!


 As I said, I've been using both (and combined) for quite some, and
 haven't faced any problems caused by the software.  I even recovered
 from a serious hardware problem, without losing any data. For
 performance measuring I guess you would have
 to setup a test system and see by yourself if it is acceptable.
 ___
 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




-- 
Gabriel Lavoie
glav...@gmail.com
___
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: Keeping FreeBSD updated (the binary way)

2009-01-23 Thread Gabriel Lavoie
Since I started using FreeBSD with 6.2 on my home server, I studied
this problem very well. In the default installation, there are a daily
system check script and a daily security check script included in
periodic. You can easily configure your system so e-mails are sent to
you every days with the output of the execution of those scripts
(usually sent to root). Also, freebsd-update can also be configured as
a cron job that will fetch the latest update and send you an e-mail if
core system updates are available. portsnap cron job will be executed
in the security periodic job and will tell you if any of your
installed ports need to be updated for security reasons. So...

I always check the output of those runs in my e-mails every morning or
every few days. If there is an update available from freebsd-update, I
install it and I reboot the complete server if there is an update for
the kernel or a used kernel module, or only a few services that depend
on the updated files (often sshd). About my ports, I only upgrade
those that get security notices. This way my system has been very
stable, up to date and it doesn't take too much time to maintain it in
this state. The only time where I upgrade all my ports is when I
update my entire system to a newer FreeBSD revision (7.0 - 7.1,
etc.). I'll also likely stay on a particular revision of FreeBSD until
the security updates are ended for it. I first went from 6.2 to 6.3 on
my old server because 6.3 was flagged for long term support (2 years).
Went from 6.3 to 7.0 because I replaced my old server (Dual Pentium
II) with new hardware. And I went from 7.0 to 7.1 because some new
drivers were available to better support my new hardware (EIST on 45nm
Intel CPUs, Atheros L1E network adapter). Now my hardware is well
supported, my system is very stable and I will likely stay on 7.1
until January 2011 (end of support for security updates).

I hope it helps,

Gabriel

2009/1/23 Svein Halvor Halvorsen svei...@lvor.halvorsen.cc:
 Svein Halvor Halvorsen svei...@lvor.halvorsen.cc wrote:

 Is it possible to pkg_add -r packages from -STABLE on the latest
 -RELEASE? That is, will the following work, or slowly render my
 system to an incoherent state:

 RW wrote:

 It'll work most of the time, but occasionally it will fail, when a
 STABLE package relies on a library or other feature that's not in the
 release.

 A compromise might be to stick to the release packages, until portaudit
 reveals a significant vulnerability and then switch to Stable until
 the next release.

 But when that happens, should I upgrade just the one affected package, or
 grab updates for all my installed packages, to make sure all packages on the
 system is concurrent? That is, made from the same ports tree at some point
 in time.


Svein Halvor
 ___
 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




-- 
Gabriel Lavoie
glav...@gmail.com
___
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: freebsd-update and latest security patches

2009-01-08 Thread Gabriel Lavoie
It depends. This update was related to the flaw found in OpenSSL
recently. Since this update didn't touch the kernel, it's normal that
your're still on the 7.1-RELEASE kernel. The kernel version changes
only when an update touches it directly.

Gabriel

2009/1/8 Ivailo Bonev ibb_o...@mbox.contact.bg:
 I've tried to install latest security patches with
 # freebsd-update fetch
 # freebsd-update install
 # reboot
 but after reboot
 # uname -r tells me that I have
 7.1-RELEASE
 If I understand corectly from handbook, it should tells me -p1?
 Is there somthing that I am missing?
 ... and sorry for my bad English :)

 ___
 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




-- 
Gabriel Lavoie
glav...@gmail.com
___
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: Updating from 7.0 to 7.1

2009-01-08 Thread Gabriel Lavoie
For me it was worth the effort as 7.1 has the driver for the network
interface found on my motherboard (Atheros L1E) and has an updated est
(SpeedStep) driver that support my CPU (45nm Pentium Dual Core E5200).
The update using freebsd-update was quick and went smoothly. Also, the
new scheduler is now enabled but I can't tell yet if it performs
better on an SMP system.

Gabriel

2009/1/8 David Karapetyan david.karapet...@gmail.com:
 Hello, I was wondering if it was worth the time or effort to update from
 fbsd 7.0 to 7.1. From what I see, the only major change is the inclusion
 of dtrace. I am leaning towards not switching, but it seems a lot of
 people are.

 On Thu, Jan 08, 2009 at 05:50:24PM -0500, Gabriel Lavoie wrote:
 It depends. This update was related to the flaw found in OpenSSL
 recently. Since this update didn't touch the kernel, it's normal that
 your're still on the 7.1-RELEASE kernel. The kernel version changes
 only when an update touches it directly.

 Gabriel

 2009/1/8 Ivailo Bonev ibb_o...@mbox.contact.bg:
  I've tried to install latest security patches with
  # freebsd-update fetch
  # freebsd-update install
  # reboot
  but after reboot
  # uname -r tells me that I have
  7.1-RELEASE
  If I understand corectly from handbook, it should tells me -p1?
  Is there somthing that I am missing?
  ... and sorry for my bad English :)
 
  ___
  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
 



 --
 Gabriel Lavoie
 glav...@gmail.com
 ___
 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

 --
 --
 Best,
 David Karapetyan
 http://davidkarapetyan.homeunix.com
 University of Notre Dame
 Department of Mathematics
 255 Hurley Hall
 Notre Dame, IN 46556-4618
 Phone: 574-631-5706
 Cell:  202-460-5173
 Fax:   574-631-6579

 ___
 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




-- 
Gabriel Lavoie
glav...@gmail.com
___
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: Intel Pentium Dual Core E5200 and Enhanced Speedstep

2008-12-09 Thread Gabriel Lavoie
2008/12/9 Ian Smith [EMAIL PROTECTED]
 [ skipping lots until you've seen how powerd goes on it .. and please
  drop gmail's HTML attachments on messages to the FreeBSD lists]

I found the option to disable HTML in the reply. Is it better now?

I enabled powerd and it seems to work for now.

 Ok.  If updated est code isn't in 7.0p6 you maybe could apply a patch if
 you won't be upgrading to 7.1, assuming I'm right about recent new code.

I do plan to upgrade to 7.1 when it's out as it will probably include
the driver for my onboard network adapter.

 There may be some BIOS stuff about SpeedStep options too.  Basically you
 should expect FreeBSD to ignore BIOS settings, except how they influence
 the ACPI implementation, but some BIOSes can contain surprises.

Yes, there are options about SpeedStep.

 I suspect 3-4W, even per core, would be at a much lower freq than 1GHz,
 probably nearer the minimum of ~125MHz.

The  5W consumption isn't even at the lowest speed. The 45nm CPUs are
supposed to have an excellent power efficiency. Under Windows/Linux,
Enhanced Intel SpeedStep Technology (EIST) doesn't step down the
frequency at the lowest value possible. On my C2D (65nm), like I said,
it drops to 2 GHz from 2.66. It seems the idle power consumption of
those C2D is around 15W. With EIST on the 45nm Intel CPUs, the idle
power usage has been tested to be under 4W with a quad-core unit, and
this is not at the lowest possible frequency. The 1.25 GHz frequency I
see in the BIOS is probably related to the frequency step down EIST
automatically does as with my C2D, the BIOS always shows 2 GHz but
under Windows/Linux, when the CPU is working, the frequency comes back
to 2.66 GHz. I guess that the FreeBSD est driver needs to work with my
processor to enable this behaviour.

See this:
http://www.intel.com/cd/channel/reseller/asmo-na/eng/203838.htm
http://www.tomshardware.com/reviews/intel-penryn-4ghz-air-cooling,1712-13.html

 No, if it were based on load while looking at the BIOS it'd show you the
 lowest speed for sure.  This sounds like a selection more than a report?

No, it's a report.

 2GHz is hardly idling .. maybe there's a BIOS option affecting that too,
 but it should only affect the starting freq, which powerd should ignore.

The 2 GHz is the stop down EIST does when the CPU is idling. I was
surprised to see this when I got my C2D last January. I was wondering
why the CPU was at 2 GHz when it was supposed to be running at 2.66
GHz.


 Under powerd it should drop right back at idle.  In fact there've been
 problems with some machines dropping back to 125, 100, even 75MHz under
 no or very light load, such that interactive responsiveness is shot and
 some processes needing fast interrupt response (bursts of wifi traffic,
 for one) have had issues, prompting some recent new work on algorithms
 for powerd on SMP systems.

I noticed that after I enabled powerd. At 313 MHz with my system the
responsiveness took a hit. I enabled powerd with those parameters and
it seems to step up the frequency quickly enough. Responsiveness
doesn't seems to be a problem with a polling time of 100ms.

powerd_flags=-i 90 -r 90 -p 100


 See cpufreq(4) about all this, and especially you might want to set
 debug.cpufreq.lowest to some sensible minimum freq, say 3-500MHz?

 The acpi@ list is really a better place for this; not too many of the
 heavy hitters there seem to have much spare time to read questions@ and
 where I'm mostly just an interested bystander, trying to learn :)

I'll ask there if there are still problems after I check my BIOS
settings tonight.


 cheers, Ian

Gabriel



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


Re: freebsd-update

2008-11-27 Thread Gabriel Lavoie
I've also got some problem with freebsd-update, under 7.0. I installed them
to update to 7.0-RELEASE-p6 and when I fetch them again I get the following:

[EMAIL PROTECTED] /home/wildchild]# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 7.0-RELEASE from update1.FreeBSD.org...
done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 7.0-RELEASE-p6:
/boot/kernel/linker.hints

If I install and fetch them over and over again, this file will always
appear as needing an update.

Gabriel

2008/11/26 gahn [EMAIL PROTECTED]

 Hi, all:

 i did freebsd-update fetch and i got message:

 No updates needed to update system to 6.3-RELEASE-p6

 what does that suppose to mean? My current system (this one is online) is
 p4.

 Thanks all.



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




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


Re: Setting up gmirror

2008-11-06 Thread Gabriel Lavoie
As I asked in another thread, what is the problem with the load algorith?

Thanks

2008/11/6 Volodymyr Kostyrko [EMAIL PROTECTED]

 Carl wrote:

  What are the considerations in choosing between load, prefer,
 round-robin, and split balance algorithms?


 load is currently not good at high loads, pr's pending...

 --
 Sphinx of black quartz judge my vow.

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




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


Re: gmirror + gjournal setup question

2008-11-06 Thread Gabriel Lavoie
Thanks for your reply. I finally understood that with the power failure
tests I made.

Gabriel

2008/11/6 Volodymyr Kostyrko [EMAIL PROTECTED]

 Gabriel Lavoie wrote:

 Hello,
 I would like to know what is the best way to setup gmirror + gjournal,
 on a slice level on two hard drives. Do I set up a mirrored journal
 partition + mirrored journalized slice (gmirror on top of gjournal) on
 which
 I create my labels with bsdlabels (will create /dev/mirror/name.journal,
 /dev/mirror/name.journala, /dev/mirror/name.journalb). Or I setup a
 journalized slice on both hard drive and then I mirror /dev/ad0s1.journal
 and /dev/ad1s1.journal (gjournal on top of gmirror)? I have hard time to
 figure out what would be the best, if I want to avoid mirror rebuild on
 power failure and I want fast fsck. I'd also like to make this setup on my
 1st slice (which contains the root filesystem).


 man gjournal:
 ...
 When gjournal is configured on top of gmirror(8) or graid3(8)
 providers,
 it also keeps them in a consistent state, thus automatic
 synchronization
 on power failure or system crash may be disabled on those providers.
 ...

 I think journaling a mirrored partition can be much better.

 --
 Sphinx of black quartz judge my vow.

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




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


Re: BSDstats: New High Water Mark: 25 000+ Hosts Reporting In

2008-11-05 Thread Gabriel Lavoie
That's strange, because I enabled the reporting on my system but its CPU
that wasn't on the list didn't appear.

Gabriel

2008/11/4 Marc G. Fournier [EMAIL PROTECTED]

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1



 - --On Tuesday, November 04, 2008 12:25:39 -0500 Gabriel Lavoie
 [EMAIL PROTECTED] wrote:

  When are the stats updated on bsdstats.org?

 real-time ... and they aren't for all time, the #s are based on systems
 reporting in over the past 60 days, so you will periodically see a bit of
 back
 tracking, depending on when in the cycle hosts reported in ... if I reload
 the
 page a few times, I may see it go from 25 013 - 25 103 - 25 143 - 25 140
 ...
 but the overall is an upward increase in numbers ...


 
  Thanks
 
  Gabriel
 
  2008/11/4 Marc G. Fournier [EMAIL PROTECTED]
 
  On Wed, 5 Nov 2008, andrew clarke wrote:
 
   On Mon 2008-11-03 18:33:57 UTC-0400, Marc G. Fournier ([EMAIL PROTECTED]
 )
  wrote:
 
   For FreeBSD users, you just need to install
 /usr/ports/sysutils/bsdstats
  to set things up.
 
 
  I stopped using bsdstats after it caused my FreeBSD router to take too
  long to boot up after a reboot.  If I recall correctly, I had
  bsdstats_enable=YES in /etc/rc.conf and after the reboot bsdstats
  was called before ppp was able to start, so it couldn't connect to the
  bsdstats server.  On the other hand this was a while ago and I am
  going by memory, so I may be wrong about what happened or it was just
  a coincidence.  At the time I was more interested in getting the
  router running so I didn't really care for debugging what was going
  on.  I realise this is a bit of a vague bug report, so feel free to
  ignore it.
 
 
  There is an optional flag for 'reporting on reboot' ... the original
 script
  only did reporting monthly, out of periodic, but some ppl (ie. using
  laptops) suggesting an optional flag so that when they rebooted, they
 would
  be counted also ...
 
  And you are correct, just change:
 
  bsdstats_enable=YES
 
  to
 
  bsdstats_enable=NO
 
  And 'on reboot' will eb disabled, and only periodic will be used ... at
 a
  minimum, you just need:
 
  monthly_statistics_enable=YES
 
  in /etc/periodic.conf, wich will only report OS/version and skip the
  devices/ports reports ...
 
  
  Marc G. Fournier   Hub.Org Networking Services (
 http://www.hub.org
  )
  Email . [EMAIL PROTECTED]  MSN .
 [EMAIL PROTECTED]
  Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  [EMAIL PROTECTED]
 
 
 
 
  --
  Gabriel Lavoie
  [EMAIL PROTECTED]
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 [EMAIL PROTECTED]



 - --
 Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org
 )
 Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
 Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.9 (FreeBSD)

 iEYEARECAAYFAkkRHfcACgkQ4QvfyHIvDvMP1gCfWcuWqCGNWSR5HuGSO4vgRwLb
 Y0EAn3+Pi3/1+eM/mxmKFrF7AFTMQBbv
 =yRDb
 -END PGP SIGNATURE-




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


Re: BSDstats: New High Water Mark: 25 000+ Hosts Reporting In

2008-11-05 Thread Gabriel Lavoie
Good, my system finally appeared.

Gabriel

2008/11/5 Gabriel Lavoie [EMAIL PROTECTED]

 That's strange, because I enabled the reporting on my system but its CPU
 that wasn't on the list didn't appear.


 Gabriel

 2008/11/4 Marc G. Fournier [EMAIL PROTECTED]

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1



 - --On Tuesday, November 04, 2008 12:25:39 -0500 Gabriel Lavoie
 [EMAIL PROTECTED] wrote:

  When are the stats updated on bsdstats.org?

 real-time ... and they aren't for all time, the #s are based on systems
 reporting in over the past 60 days, so you will periodically see a bit of
 back
 tracking, depending on when in the cycle hosts reported in ... if I reload
 the
 page a few times, I may see it go from 25 013 - 25 103 - 25 143 - 25
 140 ...
 but the overall is an upward increase in numbers ...


 
  Thanks
 
  Gabriel
 
  2008/11/4 Marc G. Fournier [EMAIL PROTECTED]
 
  On Wed, 5 Nov 2008, andrew clarke wrote:
 
   On Mon 2008-11-03 18:33:57 UTC-0400, Marc G. Fournier (
 [EMAIL PROTECTED])
  wrote:
 
   For FreeBSD users, you just need to install
 /usr/ports/sysutils/bsdstats
  to set things up.
 
 
  I stopped using bsdstats after it caused my FreeBSD router to take too
  long to boot up after a reboot.  If I recall correctly, I had
  bsdstats_enable=YES in /etc/rc.conf and after the reboot bsdstats
  was called before ppp was able to start, so it couldn't connect to the
  bsdstats server.  On the other hand this was a while ago and I am
  going by memory, so I may be wrong about what happened or it was just
  a coincidence.  At the time I was more interested in getting the
  router running so I didn't really care for debugging what was going
  on.  I realise this is a bit of a vague bug report, so feel free to
  ignore it.
 
 
  There is an optional flag for 'reporting on reboot' ... the original
 script
  only did reporting monthly, out of periodic, but some ppl (ie. using
  laptops) suggesting an optional flag so that when they rebooted, they
 would
  be counted also ...
 
  And you are correct, just change:
 
  bsdstats_enable=YES
 
  to
 
  bsdstats_enable=NO
 
  And 'on reboot' will eb disabled, and only periodic will be used ... at
 a
  minimum, you just need:
 
  monthly_statistics_enable=YES
 
  in /etc/periodic.conf, wich will only report OS/version and skip the
  devices/ports reports ...
 
  
  Marc G. Fournier   Hub.Org Networking Services (
 http://www.hub.org
  )
  Email . [EMAIL PROTECTED]  MSN .
 [EMAIL PROTECTED]
  Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  [EMAIL PROTECTED]
 
 
 
 
  --
  Gabriel Lavoie
  [EMAIL PROTECTED]
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 [EMAIL PROTECTED]



 - --
 Marc G. FournierHub.Org Hosting Solutions S.A. (
 http://www.hub.org)
 Email . [EMAIL PROTECTED]  MSN .
 [EMAIL PROTECTED]
 Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.9 (FreeBSD)

 iEYEARECAAYFAkkRHfcACgkQ4QvfyHIvDvMP1gCfWcuWqCGNWSR5HuGSO4vgRwLb
 Y0EAn3+Pi3/1+eM/mxmKFrF7AFTMQBbv
 =yRDb
 -END PGP SIGNATURE-




 --
 Gabriel Lavoie
 [EMAIL PROTECTED]




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


Re: BSDstats: New High Water Mark: 25 000+ Hosts Reporting In

2008-11-04 Thread Gabriel Lavoie
When are the stats updated on bsdstats.org?

Thanks

Gabriel

2008/11/4 Marc G. Fournier [EMAIL PROTECTED]

 On Wed, 5 Nov 2008, andrew clarke wrote:

  On Mon 2008-11-03 18:33:57 UTC-0400, Marc G. Fournier ([EMAIL PROTECTED])
 wrote:

  For FreeBSD users, you just need to install /usr/ports/sysutils/bsdstats
 to set things up.


 I stopped using bsdstats after it caused my FreeBSD router to take too
 long to boot up after a reboot.  If I recall correctly, I had
 bsdstats_enable=YES in /etc/rc.conf and after the reboot bsdstats
 was called before ppp was able to start, so it couldn't connect to the
 bsdstats server.  On the other hand this was a while ago and I am
 going by memory, so I may be wrong about what happened or it was just
 a coincidence.  At the time I was more interested in getting the
 router running so I didn't really care for debugging what was going
 on.  I realise this is a bit of a vague bug report, so feel free to
 ignore it.


 There is an optional flag for 'reporting on reboot' ... the original script
 only did reporting monthly, out of periodic, but some ppl (ie. using
 laptops) suggesting an optional flag so that when they rebooted, they would
 be counted also ...

 And you are correct, just change:

 bsdstats_enable=YES

 to

 bsdstats_enable=NO

 And 'on reboot' will eb disabled, and only periodic will be used ... at a
 minimum, you just need:

 monthly_statistics_enable=YES

 in /etc/periodic.conf, wich will only report OS/version and skip the
 devices/ports reports ...

 
 Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org
 )
 Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
 Yahoo . yscrappy   Skype: hub.orgICQ . 7615664

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




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


Re: gjournal: journaled slices vs. journaled partitions

2008-11-04 Thread Gabriel Lavoie
: ad10s2
   Mediasize: 497958451200 (464G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: HARDCODED
   GenID: 0
   SyncID: 1
   ID: 2007880058

Geom name: root
State: COMPLETE
Components: 2
Balance: split
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 4098555256
Providers:
1. Name: mirror/root
   Mediasize: 1073022976 (1.0G)
   Sectorsize: 512
   Mode: r1w1e1
Consumers:
1. Name: ad8s1a
   Mediasize: 1073023488 (1.0G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: HARDCODED
   GenID: 0
   SyncID: 1
   ID: 3394521634
2. Name: ad10s1a
   Mediasize: 1073023488 (1.0G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: HARDCODED
   GenID: 0
   SyncID: 1
   ID: 3774466459


Gabriel


2008/11/4 Volodymyr Kostyrko [EMAIL PROTECTED]

 Carl wrote:

 Volodymyr Kostyrko wrote:

  I have some setups were gjournal was put on device rather the on
 partition, i.e.:

 [umgah] ~ gmirror status
  NameStatus  Components
 mirror/umgah0  COMPLETE  ad0
  ad1
 [umgah] ~ gjournal status
  Name  Status  Components
 mirror/umgah0.journal N/A  mirror/umgah0
 [umgah] ~ glabel status
 Name  Status  Components
   ufs/umgah0root N/A  mirror/umgah0.journala
 label/umgah0swap N/A  mirror/umgah0.journalb
ufs/umgah0usr N/A  mirror/umgah0.journald
ufs/umgah0var N/A  mirror/umgah0.journale


 Does the above suggest that you've ended up with individual journal
 providers for each partition anyway? If so, where are they and have you
 really achieved anything functionally different? Are they at the end of
 their individually associated partitions or all together somewhere else? Has
 the ill-advised journaled small partition issue been successfully overcome
 through what you've done?


 First, there is only one journal - for /dev/mirror/umgah0 and it is named
 /dev/mirror/umgah0.journal. Anything else is just a bsdlabel partitions,
 there are four of 'em.


  [umgah] ~ mount
 /dev/ufs/umgah0root on / (ufs, asynchronous, local, noatime, gjournal)
 devfs on /dev (devfs, local)
 /dev/md0 on /tmp (ufs, asynchronous, local)
 /dev/ufs/umgah0var on /var (ufs, asynchronous, local, noatime, gjournal)
 /dev/ufs/umgah0usr on /usr (ufs, asynchronous, local, noatime, gjournal)
 devfs on /var/named/dev (devfs, local)

 And yes, mirror autosynchronization is turned off, gjournal takes care of
 that too.

 It's not stated in manual, but gjournal is typically transparent for any
 type of access, just in case of UFS file system is marked as journaled so
 any metadata writes can be distinguished from data writes. Without that
 gjournal does literally nothing.


 And what does this mean for your swap partition?


 Just nothing, it's just swap. It can't be journaled.

  Laszlo Nagy wrote earlier:

 Another tricky question: why would you journal a SWAP partition?


 Volodymyr, does your assertion that gjournal does nothing when a file
 system is not UFS mean that there is no penalty with regard to your swap
 partition despite the existence of mirror/umgah0.journalb?


 I haven't seen any perfomance decrease in this configuration. And according
 to manual and articles about gjournal it should work this way.

  Any chance you'd like to share your command sequence for constructing your
 gmirror'd and gjournal'd filesystem, Volodymyr? :-)


 If we have two disks (ad0, ad1) it should look like this:

  gmirror label -b load -n umgah0 ad1

 We are getting all drive gmirrored without synchronization (we don't need
 it - journal would take care of any discrepancies) and with load balance
 (load was fixed not so long ago in stable and should be fine to go with).

  gjournal label mirror/umgah0

 We are creating a journal on top of our gmirror. It eats 1G from the end of
 the disks and gives us the rest to use.

  bsdlabel -wB mirror/umgah0.journal

 We are writing the standard bsdlabel to the disk and making it bootable.
 After that we will get one partition 'a'.

 spam
 Yes, no fdisk. I don't think this old piece of rough junk is ever needed on
 machine running FreeBSD solely. It just takes space, it requires
 compatibility to forgotten-and-abandoned standards and gives nothing more.
 You have your server dual-booting Windows or Linux? This is the only case
 you need fdisk for.
 /spam

  bsdlabel -e mirror/umgah0.journal

 Now we are splitting our journal to some partitions. I did it this way:

 # /dev/mirror/umgah0.journal:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
  a:   524288   164.2BSD
  b: 16777216   *  swap
  c: 7793256140unused0 0 # raw part, don't
 edit
  d: 33554432 *4.2BSD
  e: * *4.2BSD

 After that we can format this filesystems:

  newfs -J -L umgah0root /dev/mirror/umgah0.journala
  newfs -J -L umgah0var /dev/mirror/umgah0.journald
  newfs -J -L umgah0usr /dev/mirror/umgah0.journale

 And label the swap

Re: gjournal: journaled slices vs. journaled partitions

2008-11-04 Thread Gabriel Lavoie
2008/11/4 Volodymyr Kostyrko [EMAIL PROTECTED]

 2008/11/4 Gabriel Lavoie [EMAIL PROTECTED]:
  When building this setup I got one big problem. If the root filesystem
 (/)
  was on a gjournal provider, an unclean shutdown when data was being
 written
  on the disk rendered the system completely unbootable. I got this
 message:
 
  GEOM_MIRROR: Device mirror/gm launched (2/2)
  GEOM_JOURNAL: Journal 3672855181: mirror/gma contains data.
  GEOM_JOURNAL: Journal 3672855181: mirror/gma contains journal.
  GEOM_JOURNAL: Journal 3868799910: mirror/gmd contains data.
 
  GEOM_JOURNAL: Journal 3868799910: mirror/gmd contains journal.
  GEOM_JOURNAL: Journal mirror/gmd consistent.

 Just one thing - you have two separate journaled partitions, one
 journal per one partition.


Yes, this is the test setup I made with one journal for / and one journal
for /usr. Only an unclean journal on / rendered the journal unbootable. An
unclean journal on /usr gave me no problem.

If I put the journal on the slice level, with the root filesystem over the
journal. Resetting the system while writing data on any filesystem causes
the problem as the journal is shared to the root filesystem too.




  Trying to mount root from ufs:/dev/mirror/gm.journal
 
  Manual root filesystem specification:
  fstype:device  Mount device using filesystem fstype
 
 eg. ufs:da0s1a
  ? List valid disk boot devices
  empty line  Abort manual input
 
 
  mountroot ?
 
  List of GEOM managed disk devices:
 
   mirror/gmd.journal mirror/gmd mirror/gmc mirror/gma mirror/gm
 ad10s1c
  ad10s1b ad8s1c ad8s1b ad10s2 ad10s1 ad8s1 ad10 ad8 acd0
 
  As you can see, in the proposed list of disk devices devices to boot on,
  mirror/gm.journala is absent. As I and Ivan Voras, that I contacted
 about
  this problem, found, the GEOM_JOURNAL thread that is supposed to mark the
  journal consistent takes too much time to do it with the root
 filesystem's
  provider and the kernel try to mount a device that doesn't yet exist. A
 bug
  report has been opened about this problem. For my final setup I decided
 to
  put the root filesystem on a separate mirrorred slice of 1GB. Since this
  slice isn't often written on, not many rebuilds should occur in case of
  power failure. And I made my power failure test by hitting the reset
  button while writing data on this filesystem and the rebuild on 1GB
 doesn't
  takes too much time (at most 20-30 seconds).

 Good to hear it, i've fallen for that too, but the machine isn't
 powercycled at all and runs on guaranteed power. I had the similar
 problems with described setup on virtual test machine too, yet
 entering anything at mountroot prompt gave gjournal a chance to keep
 up and needed partition comes up eventually... I didn't reported that,
 thought it was a virtual machine issue.


Same thing here, I had a backup installation on another slice and when I
gave this one on the prompt, as soon as I hit Enter, GEOM_JOURNAL was
marking the journal consistent. I'm happy to hear that I'm not the only one
that had this problem. As for my setup. I put / on its own 1GB mirrored
slice with auto-synchronization and soft-updates and I put the other
filesystems (/home /usr /var /tmp) on a second fully mirrored/journalised
slice (with the journal at the slice level), with auto-synchronization on
power failure turned off and async mount option.

As for the bug report, I consider this is an easily reproductible bug and I
hope it will be solved soon! :)



  Now I have the question. Why the load algorith wasn't recommended? Is
 it
  fixed in 7.0-RELEASE-p5?

 Nope...

 http://www.freebsd.org/cgi/query-pr.cgi?pr=113885

 --
 Sphinx of black quartz judge my vow.



Gabriel

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


gmirror + gjournal setup question

2008-10-29 Thread Gabriel Lavoie
Hello,
 I would like to know what is the best way to setup gmirror + gjournal,
on a slice level on two hard drives. Do I set up a mirrored journal
partition + mirrored journalized slice (gmirror on top of gjournal) on which
I create my labels with bsdlabels (will create /dev/mirror/name.journal,
/dev/mirror/name.journala, /dev/mirror/name.journalb). Or I setup a
journalized slice on both hard drive and then I mirror /dev/ad0s1.journal
and /dev/ad1s1.journal (gjournal on top of gmirror)? I have hard time to
figure out what would be the best, if I want to avoid mirror rebuild on
power failure and I want fast fsck. I'd also like to make this setup on my
1st slice (which contains the root filesystem).

Thanks

Gabriel

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


Re: will freebsd run on apple intel xserve

2007-12-14 Thread Gabriel Rossetti
George Hartzell wrote:
 Jason Joines writes:
I'm a Linux guy who has inherited some apple xserve boxes. 
   Surprisingly I've discovered that I really hate os x.  For the intel 
   xserve boxes, Linux isn't an option.  The CPUs are amd64 architecture. 
   
AMD64on an Intel X-Serve box? I think you got it wrong there...
Anyways, EFI support for Xeon CPUs should work without a problem, even
for linux.
I'm not sure about EFI support, I think it's fine in CURRENT, from what
I've read on the net.

Good luck,
Gabriel
   The EFI capable Linux bootloader, has had beta support for amd64 since 
   July.  However, the Linux kernel just got support to boot via EFI and 
   amd64 in a release candidate patch this month.  It'll probably be quite 
   a while before a distribution has an installer with what I need.
   
At any rate, I've always wanted to try one of the BSDs.  Will 
   FreeBSD install on an apple intel xserve?  If not does anyone know if 
   another BSD or some other open source NIX will work?

 I can't give you a direct answer, but I was running 6-STABLE on an
 8-way mac pro up until a couple of weeks ago (I had to give it back to
 it's owners and I'm waiting until after the next wwdc to buy my
 own...).

 I used bootcamp to partition a spare disk, then just booted from a
 freebsd cd and installed onto that partition.  I ended up using refit
 as a boot doohickey (initially from an refit cd, eventually taking a
 chance on installing it onto the disk itself).

 There wasn't anything too surprising.

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

   

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


Re: php5

2007-09-25 Thread Gabriel Dragffy

On 25 Sep 2007, at 00:20, Thomas Abthorpe wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 24 September 2007 18:59:00 Bill Banks wrote:

I just installed php5 but if I goto index.php it wants to download it
and not display it. What am I missing?


You are likely missing the following lines from your httpd.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps



Also make sure you compiled the apache module. If installing from  
ports it asks you. However, if you installed from a package it won't  
have this enabled. Assuming you're using apache, natch.

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


Gvinum and RAID 5 (again)

2007-09-25 Thread Gabriel Dragffy

Hi,

I've found out that gvinum won't let you grow a RAID 5 system without  
obliterating it first. Something that I haven't been able to  
ascertain is if gvinum will let you add discs to a RAID 5 array later  
on as hot spares?


Many thanks for so much help

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


Re: Netatalk

2007-09-24 Thread Gabriel Dragffy


On 24 Sep 2007, at 06:16, Ted Mittelstaedt wrote:



Gabriel,

Ignore Martin he doesen't know how to get it running
so he's pulling the old spurning what he cannot do
refer to the Aesop fable Fox and the Grapes for more
information.

If you run OS9 emulation under OSX you need AFP.

Many older print servers only speak AFP

AFP handles the split resource/data fork properly,
Samba does not.  You will see this in a number of
minor ways.

To get it running:

define NETATALK in kernel and recompile


cd /usr/ports/net/netatalk
make  WITH_SRVLOC=yes install

add the following in /etc/rc.conf:

slpd_enable=YES
netatalk_enable=YES
atalkd_enable=YES
cnid_metad_enable=YES
afpd_enable=YES

cd /usr/ports/net/howl
make install

cd /etc
vi rc.conf
add in
mdnsresponder_enable=YES
mdnsresponder_flags=-f /usr/local/etc/mDNSResponder.conf

then create the config file as such

vi /usr/local/etc/mDNSResponder.conf
BigMac _afpovertcp._tcp local.  548
BigMac _ssh._tcpServers. 548

MUST BE TABS BETWEEN ITEMS and NEWLINE AT END!
BigMac is your servername

test with slptool findsrvs service:service-agent
and mDNSResponder lookups

your problem is that afpd only advertises over appletalk, not over
tcp/ip.  Since your Macs are all OSX they don't listen to appletalk
announcements.  They listen to appletalk-over-tcp/ip announcements
which use the rendezevous protocol which is what mdnsresponder is
all about.

One important note - try to keep the samba shares separate
from the appletalk shares.  Samba clients do not update the
desktop file when they move/change/delete files which will result in
a corrupted desktop file. (ie: CNID database)  If that happens do  
this:



/usr/local/etc/rc.d/netatalk.sh stop

cat /usr/local/etc/AppleVolumes.default

(shares are listed at the bottom)

go to each share with the problem and rename the directory, ie:

cd /home/shares/Public
mv .AppleDB .AppleDB-temp-backup

restart netatalk

/usr/local/etc/rc.d/netatalk.sh start

verify people can mount the shares and get to their files

Delete the .AppleDB-temp-backup dirs.

Ted

PS:  Appletalk is older networking technology but there is
nothing wrong with it and it works no worse than newer
technologies.



Thank you so much for this comprehensive reply. I can see there are  
several things in there that I didn't get, as they were missed out in  
my other guides. Seems like a small nightmare setting up netatalk,  
hope it will be worth it!


Thanks again, I really appreciate it.

Gabe

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


Re: Why is sendmail in the core of FreeBSD?

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 11:22, cpghost wrote:


On Sat, 22 Sep 2007 19:30:59 +0300
Abdullah Ibn Hamad Al-Marri [EMAIL PROTECTED] wrote:


On 9/22/07, Wojciech Puchar [EMAIL PROTECTED] wrote:

i personally use only sendmail.



Yep... if it works, don't 'fix' it.


same with any other things :)


I would prefer to have postfix vs sendmail since it built with
security in mind


Ditto here. I've switched to postfix after a talk by
Wietse Venema at the SANE 1998:
  http://www.sane.nl/events/sane98/daily/19/venema.html
(postfix was still named VMailer back then)
and never looked back since. I was lucky doing so, because
soon after, there had been a flurry of sendmail exploits,
while postfix kept chugging along undisturbed. But more
importantly, its behaviour under stress and huge traffic
bursts is excellent.


I have a russian friend, he's a sysadmin, works exclusively with  
FreeBSD. He reckon Postfix is also great under pressure. Since  
sendmail is in the core of FreeBSD, does that mean it will quickly  
get security updates when exploits are found?

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


packages compiled from source

2007-09-23 Thread Gabriel Dragffy
Hi, trying to find out where the complete packge files are for the  
packges that I compiled from ports. I wanted to save these somewhere  
so I wouldn't have to recompile them in the future. The handbook  
doesn't shed any light on this:(


Best regards

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


Re: packages compiled from source

2007-09-23 Thread Gabriel Dragffy
Many thanks too all who ansered, that's really helpful. I just had a  
hard time compiling lighttpd and php5 together, so wanted to save  
them as packages to spare me the headache in the near future.


Have read the ports man I see that I can change the PACKAGES in the  
environment, but how do I change the environment. Would I edit /etc/ 
make.conf at a guess?


On 23 Sep 2007, at 15:35, Karol Kwiatkowski wrote:


Kris Kennaway wrote:

Gabriel Dragffy wrote:

Hi, trying to find out where the complete packge files are for the
packges that I compiled from ports. I wanted to save these somewhere
so I wouldn't have to recompile them in the future. The handbook
doesn't shed any light on this:(


They are not saved separately but you can create backups using
pkg_create -b.


In addition, you can use 'package' (or 'package-recursive') target
instead of 'install' to create packages automagically. In that case
target directory is set by PACKAGES variable.

Have a look at ports(7) manpage for details.

Cheers,

Karol

--
Karol Kwiatkowski   karol.kwiat at gmail dot com
OpenPGP 0x06E09309



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


Re: Netatalk

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 16:13, Martin Hepworth wrote:

Why you need netatalk - you still got some old MacOS 8/9 machines  
about?


--


no, they are all os x macbook pros. However we sometimes access over  
the internet using AFP, and this uses encrypted passwords which is  
safer. Also, afp integrates very well with the mac machines, better  
than samba and far better than NFS. I've been using FreeNAS which has  
worked well, but unfortunately freezes every few hours, so it's  
useless. Trying to build my own version of it.


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


Re: Software RAID5

2007-09-23 Thread Gabriel Dragffy


On 22 Sep 2007, at 09:03, Wojciech Puchar wrote:


If you google for gvinum you'll find tutorials etc.

AFAICT, you can't have the root device on a RAID5 gvinum. Just make a
small root partition.


yes you can
__


Hi Wojciech

Would you be able to give me any tips or know of any howtos that  
explain installing freebsd root on to gvinum raid5 array? I really  
cannot find any tutorials for this :(


Many thanks

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


Re: Software RAID5

2007-09-23 Thread Gabriel Dragffy


On 22 Sep 2007, at 01:13, Maxim Khitrov wrote:


On 9/21/07, Gabriel Dragffy [EMAIL PROTECTED] wrote:

Hi all

Hoping to get some help setting up software RAID5. Guides on the
internet seem to be few and far between, and official documentation
is a little too technical. Basically I have 3 x 500GB hard drives
which I'd like to have in a raid5 configuration, using software, root
partition on their too would be a bonus. I'd be grateful for  
assistance.


Best regards

Gabriel



From what I know, you're not going to be able to boot from them.

However, a simple solution to that is to get a 64+ MB USB flash drive
and put the kernel on that. Just use fdisk and bsdlabel to write the
boot blocks. As long as the kernel has all needed drivers and you
specify which root device to use (either via kernel configuration or
/etc/fstab), that should allow you to put everything else on the RAID
array. This is how I currently do full-disk encryption on my laptop
using GELI. Kernel is outside, everything else is encrypted, same idea
for RAID.



Hi Maxim

This sounds good. How exactly did you manage to encrypt discs and  
then install freebsd there? I can just about setup software raid once  
freebsd is installed, but by then I am unable to use a hard drive  
because it already has freebsd on it.


Regards

gabe

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


Re: Netatalk

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 19:14, Martin Hepworth wrote:

Beg to differ on the AFP vs samb issues from what we use at work  
using a mixed environment (*nix, windoze and Mac's).


the filetyping goes alot better using smb than appletalk with MacOS  
X, and smb will use encrypted passwds (however poorly encoded) by  
default, and even SMB is alot faster than AFP which is horrible slow.


You'll find that using a VPN to access over the internet alot more  
secure in any case.


anyway a quick google gives this..

http://www.caboo.se/articles/2006/1/18/apple-file-sharing-via-freebsd




Thanks, I've already read that link, what was suggested didn't work.

I don't mind using smb, but I have a question or two I would be glad  
if you could answer:

Can you connect to a smb server over the internet?

For example in OS X give the address as smb://example.com?

Also, how would you get the passwords encrypted? Is this done by  
default.


Best regards

Gabe

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


Re: packages compiled from source

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 19:51, Karol Kwiatkowski wrote:


Please try not to top-post while replying to freebsd mailing list. It
makes it hard to follow reading from the archives. Comments below.



I'm sorry, was I guilty of top-posting? Didn't mean to :P


Gabriel Dragffy wrote:

On 23 Sep 2007, at 15:35, Karol Kwiatkowski wrote:

Kris Kennaway wrote:

Gabriel Dragffy wrote:

Hi, trying to find out where the complete packge files are for the
packges that I compiled from ports. I wanted to save these  
somewhere

so I wouldn't have to recompile them in the future. The handbook
doesn't shed any light on this:(


They are not saved separately but you can create backups using
pkg_create -b.


In addition, you can use 'package' (or 'package-recursive') target
instead of 'install' to create packages automagically. In that case
target directory is set by PACKAGES variable.

Have a look at ports(7) manpage for details.


Many thanks too all who ansered, that's really helpful. I just had a
hard time compiling lighttpd and php5 together, so wanted to save  
them

as packages to spare me the headache in the near future.

Have read the ports man I see that I can change the PACKAGES in the
environment, but how do I change the environment. Would I edit
/etc/make.conf at a guess?


PACKAGES is environmental variable - you'll want to change the  
variable,

not the environment ;)

To change it system wide permanently - yes, editing /etc/make.conf  
would

be a good idea. The alternatives are setting it in your shell
environment (depends on what you use) or defining it at install time
(every time) with something like 'make PACKAGES=/some/dir package'.  
And

there are probably other methods, too :)


Thanks, I'll look in to this, glad that my wild guess wasn't too far  
wide


Regards

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


Re: Software RAID5

2007-09-23 Thread Gabriel Dragffy


On 23 Sep 2007, at 19:30, Matthew Seaman wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Roland Smith wrote:


The things that you should encrypt are /home and maybe /var.


and swap.  Encrypting the swap is really quite important.

Cheers,

Matthew



Oh you know what? I grabbed an ubuntu disc, in the installation I  
configured each of the three hard drives with a 1GB partition which  
became software RAID 1, and the rest of the space another partition  
which became RAID 5 doodah. I configured all this during the  
installation using that debian installer, booted no probs. Next thing  
was to:

sudo -i
sudo aptitude update
sudo aptitude install netatalk -y

OK, done, RAID 5 system, with the OS running on RAID 1, netatlk  
installed and working a few seconds after, total time was about 45  
minutes. I've spent 4 days chasing my tail in freebsd. Wish freebsd  
would be able to help me out with software raid in sysinstall. I'd  
still very much like to figure out how to do this in freebsd, but  
unfortunately spending two weeks to do it makes me look incompetent  
to my employers. FreeBSD is running a web/database/email server and  
doing a fantastic job for that, so it might just be a case of horses  
for courses...


Regards

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


Re: migrate from postfix to qmail

2007-09-22 Thread Gabriel Dragffy


On 22 Sep 2007, at 05:29, Lotfi kecir wrote:


HI, thank's for your post.
to give answer to your answer: i rent a dedicated server (Fedora 6)  
witch
has qmail installed on. and in my old Server witch is in our office  
turn has

Postfix.
The new sever has as Admin panel Plesk.
I already create all email acounts and now i'm looking to transfert  
all my

user acount mailboxes.
and i don't have any idea to do it.
Thanks for your help


Yeah right. I don't have hands-on experience with any MTA other than  
Postfix, but I never read a good thing about qmail. Thing is, I work  
for a design company - we have 3 VPSs two using Plesk and another on  
extend, I noticed that behind the scenes it is Qmail for all of them.  
How come it is used by these control panels when it is so poor? Just  
a small whine from me :)


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


Re: Software RAID5

2007-09-22 Thread Gabriel Dragffy


On 22 Sep 2007, at 08:42, Roland Smith wrote:


On Fri, Sep 21, 2007 at 11:50:58PM +0100, Gabriel Dragffy wrote:

Hi all

Hoping to get some help setting up software RAID5. Guides on the  
internet
seem to be few and far between, and official documentation is a  
little too
technical. Basically I have 3 x 500GB hard drives which I'd like  
to have in
a raid5 configuration, using software, root partition on their too  
would be

a bonus. I'd be grateful for assistance.


What you need for RAID5 is gvinum(8), which replaces the older vinum 
(4)

driver.



Hi, reading the BSD Handbook I did find this out and I've been trying  
to use it.



If you google for gvinum you'll find tutorials etc.


I have found a couple of tutorials but like I said it is either too  
technical, or not descriptive enough and none of them describe root  
on raid 5 :(




AFAICT, you can't have the root device on a RAID5 gvinum. Just make a
small root partition.


I read in the FreeBSD hanbook that I can have root on raid 5 by doing  
the following:
There is another option as well, to have /boot/loader (Section  
12.3.3) load the vinum kernel module early, before starting the  
kernel. This can be accomplished by putting the line:

geom_vinum_load=YES
into the file /boot/loader.conf.

This was on the following page: http://www.freebsd.org/doc/ 
en_US.ISO8859-1/books/handbook/vinum-root.html


The handbook is good, but it only describes how to do raid 0 and raid  
1, it says I can do raid 5 but doesn't describe the process. I also  
totally stumped at how to make a raid 5 device and install freebsd on  
it - the sysinstall doesn't allow the configuration of raid arrays  
and I can only install to a slice. I need access to tools such as  
gvinum before installation... but how? Oh the pain!


best regards

gabriel





Roland
--
R.F.Smith   http://www.xs4all.nl/ 
~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much  
appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID:  
C321A725)


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


Re: Software RAID5

2007-09-22 Thread Gabriel Dragffy

On 22 Sep 2007, at 01:13, Maxim Khitrov wrote:


However, a simple solution to that is to get a 64+ MB USB flash drive
and put the kernel on that. Just use fdisk and bsdlabel to write the
boot blocks. As long as the kernel has all needed drivers and you
specify which root device to use (either via kernel configuration or
/etc/fstab), that should allow you to put everything else on the RAID
array. This is how I currently do full-disk encryption on my laptop
using GELI. Kernel is outside, everything else is encrypted, same idea
for RAID.

I haven't ever done software RAID in FreeBSD, so can't help you with
the practical aspects of it. But I will say that technical or not, man
pages are still the best way to learn about these things. From what I
can see, RAID 5 is done through vinum, and GEOM offers RAID 3. Someone
else here may be able to tell you which one is better to use.

It's also worth noting that with software, the performance of RAID 5
is not going to be very good. I generally advise against software RAID
5. If you want good performance and reliability using software RAID,
the best bet is RAID 10, but there the utilization is 50%. I think
that if you can afford another 500GB drive and performance is
important to you, a software RAID 10 using GEOM will perform much
better. It is also easier to recover, and you can lose two drives (not
any two, but still) without completely losing all the data.



Hi, thank you for your post. I read the following in the BSD handbook  
which lead me to believe I could have root on RADI5:


quote
There is another option as well, to have /boot/loader (Section  
12.3.3) load the vinum kernel module early, before starting the  
kernel. This can be accomplished by putting the line:

geom_vinum_load=YES
into the file /boot/loader.conf.
/quote

That's here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/ 
handbook/vinum-root.html


I appreciate your post about using an alternative system to RAID 5.

Many thanks

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


Why is sendmail in the core of FreeBSD?

2007-09-22 Thread Gabriel Dragffy
Just been wondering about this. If you do a standard install of  
FreeBSD it includes things such as a basic FTP daemon, all the  
various utilities such as df, ls, etc. SSHD etc. I assum these are  
all in FreeBSDs core, as developed in the same CVS repo. Having read  
the mails on this list for several weeks it seems obvious that most  
people regard Postfix or EXIM to be the best MTAs, so I'm wondering  
why is sendmail the MTA that is integral to FreeBSD? Wouldn't it be  
ace to have the default one be Postfix or something?


Regards

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


Re: Software RAID5

2007-09-22 Thread Gabriel Dragffy


On 22 Sep 2007, at 12:19, Roland Smith wrote:


To elaborate, the loader doesn't know about the RAID layout. It is  
only

usable _after_ the kernel has loaded.


I read in the FreeBSD hanbook that I can have root on raid 5 by  
doing the

following:
There is another option as well, to have /boot/loader (Section  
12.3.3)
load the vinum kernel module early, before starting the kernel.  
This can be

accomplished by putting the line:
geom_vinum_load=YES
into the file /boot/loader.conf.


The thing is that vinum is not gvinum! Gvinum is a replacement for  
vinum
using the GEOM framework. I guess nobody has gotten around to  
update the

handbook yet.



Did you read the handbook? They say at the beginning of the chapter  
20 (20.1):


Starting with FreeBSD 5, Vinum has been rewritten in order to fit  
into the GEOM architecture (Chapter 19), retaining the original  
ideas, terminology, and on-disk metadata. This rewrite is called  
gvinum (for GEOM vinum). The following text usually refers to Vinum  
as an abstract name, regardless of the implementation variant. Any  
command invocations should now be done using the gvinum command, and  
the name of the kernel module has been changed from vinum.ko to  
geom_vinum.ko, and all device nodes reside under /dev/gvinum instead  
of /dev/vinum. As of FreeBSD 6, the old Vinum implementation is no  
longer available in the code base.


So that makes me think they have updated the handbook.

and in the chapter 20.9.1 it says:
load the vinum kernel module early, before starting the kernel. This  
can be accomplished by putting the line:

geom_vinum_load=YES
into the file /boot/loader.conf.

For Gvinum, all startup is done automatically once the kernel module  
has been loaded, so the procedure described above is all that is  
needed. The following text documents the behaviour of the historic  
Vinum system, for the sake of older setups.


It seems perfectly clear the handbook has both been updated and is  
saying i can have root on raid, or am I mistaken? 
___

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


Re: Why is sendmail in the core of FreeBSD?

2007-09-22 Thread Gabriel Dragffy


On 22 Sep 2007, at 12:34, Andrew Pantyukhin wrote:


On Sat, Sep 22, 2007 at 11:55:51AM +0100, Gabriel Dragffy wrote:
Just been wondering about this. If you do a standard install of  
FreeBSD it
includes things such as a basic FTP daemon, all the various  
utilities such

as df, ls, etc. SSHD etc. I assum these are all in FreeBSDs core, as
developed in the same CVS repo. Having read the mails on this list  
for
several weeks it seems obvious that most people regard Postfix or  
EXIM to
be the best MTAs, so I'm wondering why is sendmail the MTA that is  
integral

to FreeBSD? Wouldn't it be ace to have the default one be Postfix or
something?


At the time sendmail was integrased into FreeBSD other MTA's were
pretty much out of the question. Ever since then, the integration
has been very well-maintained (thanks to gshapiro) and changing
the default MTA to something else is simply not worth the pain
that comes with it.

Personally I use Postfix wherever I need an MTA, it only takes a
few minutes to install it from ports. The benefit of ports is you
can configure all the options you need. We can't keep mysql
client and dovecot sasl in the base system, most people would
have to reinstall Postfix from ports even if it was the default
MTA in our base.


I see, thank you for the heads-up. It is interesting. Personally I  
try to use the software that comes with the OS where possible.  
Especially in the case of FreeBSD, as I find the core software is  
rock solid and I love that. I think I'll learn how to configure  
sendmail and try sticking with it. At least it is documented somewhat  
in the handbook.


Many thanks to all

Regards

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


Netatalk

2007-09-22 Thread Gabriel Dragffy
I've been following several different tutorials on the net for  
getting netatalk working. I've compiled in the neccessary option to  
the kernel, installed the port. Added various things to rc.conf, run / 
usr/local/etc/rc.d/netatalk start  and... nothing :( I think the  
problem is that all the tutorials I have found are years our of date.  
Does someone know how to get the modern port of netatalk on 6.2 working?


Many thanks

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


Software RAID5

2007-09-21 Thread Gabriel Dragffy

Hi all

Hoping to get some help setting up software RAID5. Guides on the  
internet seem to be few and far between, and official documentation  
is a little too technical. Basically I have 3 x 500GB hard drives  
which I'd like to have in a raid5 configuration, using software, root  
partition on their too would be a bonus. I'd be grateful for assistance.


Best regards

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


Lighttpd won't serve up php pages - 500 internal server error

2007-09-12 Thread Gabriel Dragffy

Hi all

I've install php5 and php5-extensions from the latest ports and also  
lighty too. I compiled php5 with fastcgi support.


In lighttpd's error log I see the following:
2007-09-12 17:32:06: (mod_fastcgi.c.1731) connect failed: Connection  
refused on unix:/tmp/php-fastcgi.socket-3
2007-09-12 17:32:06: (mod_fastcgi.c.2885) backend died; we'll disable  
it for 5 seconds and send the request to another backend instead:  
reconnects: 0 load: 1

2007-09-12 17:32:06: (mod_fastcgi.c.2658) child signaled: 11
2007-09-12 17:32:06: (mod_fastcgi.c.2462) unexpected end-of-file  
(perhaps the fastcgi process died): pid: 26390 socket: unix:/tmp/php- 
fastcgi.socket-3

2007-09-12 17:32:06: (mod_fastcgi.c.3211) child signaled: 11
2007-09-12 17:32:06: (mod_fastcgi.c.3254) response not received,  
request sent: 850 on socket: unix:/tmp/php-fastcgi.socket-3 for / 
phpinfo.php , closing connection



I added the following to php.ini: cgi.fix_pathinfo = 1.


And the relevant sections of lighttpd.conf are:
server.modules  = (
mod_access,
   mod_fastcgi, )
server.document-root= /usr/local/www/data/

fastcgi.server = ( .php =
   ( localhost =
 (
   socket = /tmp/php- 
fastcgi.socket,
   bin-path = /usr/local/bin/php- 
cgi

 )
   )
)


The web page shown just displys 500 - Internal Server Error.

Thank you

Gabriel



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


Hunks failed, is this bad?

2007-09-11 Thread Gabriel Dragffy

Hi all

I hope you can help me.

I have a clean install of freebsd. I changed to /usr and made ports  
directory. Then I ran portsnap fetch and then extract. Then I changed  
to ports-mngmt/portmanager and did   make install clean.


When I try to install any port using either 'make install clean' or  
'portmanager www/lighttpd' (for example) I see hunks failed in  
stdout. As an exaple I saw one of these flas by when installing  
lighttpd:


|--- /usr/ports/Mk/bsd.port.mk  Tue Nov  8 01:02:51 2005
|+++ bsd.port.mkWed Nov 16 02:16:57 2005
--
Patching file bsd.port.mk using Plan A...
Hunk #1 failed at 2049.
1 out of 1 hunks failed--s

As far as I can tell I see similar errors no matter what port I try  
to install. Is this a problem?


Many thanks

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


Hunks failed, is this bad?

2007-09-11 Thread Gabriel Dragffy

Hi all

I hope you can help me.

I have a clean install of freebsd. I changed to /usr and made ports  
directory. Then I ran portsnap fetch and then extract. Then I changed  
to ports-mngmt/portmanager and did   make install clean.


When I try to install any port using either 'make install clean' or  
'portmanager www/lighttpd' (for example) I see hunks failed in  
stdout. As an exaple I saw one of these flas by when installing  
lighttpd:


|--- /usr/ports/Mk/bsd.port.mk  Tue Nov  8 01:02:51 2005
|+++ bsd.port.mkWed Nov 16 02:16:57 2005
--
Patching file bsd.port.mk using Plan A...
Hunk #1 failed at 2049.
1 out of 1 hunks failed--s

As far as I can tell I see similar errors no matter what port I try  
to install. Is this a problem?


Many thanks

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


Hello

2007-09-06 Thread Gabriel Dragffy

Dear list members.

I just wanted to say hi to all of you. My name is Gabriel, and I have  
just been setting up a FreeBSD server at work, having moved from Linux.


There are just a couple of things that aren't working quite as I  
would like, and I was hoping someone might be kind enough to help me  
out. I've been using the FreeBSD handbook, and I must say it is quite  
superb, and makes starting with FreeBSD much easier.


Using sysinstall I enabled anonymous FTP, with uploads allowed in the  
folder /incoming. Uploading works a treat, however the files don't  
have permissions to be downloaded again (by anon user). I know I  
could change this by executing a cron job every two minutes that  
would chmod the files in /incoming. But surely there must be a far  
better way...? The FreeBSD handbook says it doesn't recommend  
allowing anon users to d/load files uploaded anonymously, however I  
would still like to implement this.


I'd be very appreciative for any help.

Best regards

Gabriel Dragffy

[EMAIL PROTECTED]


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


Script to list ports knobs and options

2007-08-28 Thread Gabriel Linder
Hi list,

First forgive me if this is not the ideal list for this thread, and
please redirect me to the good one.

After this discussion[1] I did spend some time in order to improve the
script provided by Maxim Khitrov, and here is the result :

- show all knobs supported by ports not yet installed, with an asterisk
if the knob is enabled in ports.conf (make.conf is not supported now)
- show all options supported by ports not yet installed, with an
asterisk if the option is enabled in /var/db/ports/$portname/options
- full color listing (only if CLICOLOR is defined and the output is not
redirected)

The goal is to tweak knobs (and options) before running make
config-recursive or make install. Work for me on 6-STABLE and tested
with xorg, gnome2 and some lighter ports. The files are available with
a screenshot at this URI[2], of course portconf is required.

I am aware of only one caveat : due to heuristics used to display
options, they may appear twice (this is why I used two colors to
display options). There are probably other problems, so don't hesitate
to point mistakes or inefficiencies.

I wonder if it could be integrated to the ports tree when finished,
what's your opinion on this ?

Thanks for your attention :)

[1]
http://lists.freebsd.org/pipermail/freebsd-questions/2007-August/156101.html
[2] http://athanatos.free.fr/FreeBSD/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Ports build parameters (knobs)

2007-08-22 Thread Gabriel Linder
Hello,

During the build of the graphical portion of my new FreeBSD-powered
laptop I noticed that some knobs are not listed in /usr/ports/KNOBS and
so, I can't add them to make.conf before building the packages.

When I run make fetch-recursive for fluxbox, I get :

WITH_DEBUG=yes  Build with debugging symbols
WITH_DOCHTML=yesInstall the HTML documentation
WITH_DOCPDF=yes Install the PDF documentation
WITH_GNOME=yes  Enable GNOME support
WITH_IMLIB2=yes Enable Imlib2 (pixmap themes) support
[snip]

and for libiconv :

WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets
WITH_EXTRA_PATCHES=yes  Apply extra patches (fixes cp932, adds
EUCJP-MS)

GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
EXTRA_PATCHES are not... Is there a way to have the full list of
supported build options ? Or maybe I am wrong and these settings are not
supposed to be in make.conf but in /var/db/ports/portname/options, if
so please let me know :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ports build parameters (knobs)

2007-08-22 Thread Gabriel Linder
On Wed, 22 Aug 2007 13:17:17 +0200
Roland Smith [EMAIL PROTECTED] wrote:

 On Wed, Aug 22, 2007 at 09:54:08AM +0200, Gabriel Linder wrote:
  Hello,
  
  During the build of the graphical portion of my new FreeBSD-powered
  laptop I noticed that some knobs are not listed in /usr/ports/KNOBS
  and so, I can't add them to make.conf before building the packages.
 
 I don't see why not.
  

Because I was thinking that everything possible was included
in /usr/ports/KNOBS, which is not the case, I know now.

  When I run make fetch-recursive for fluxbox, I get :
  
  WITH_DEBUG=yes  Build with debugging symbols
  WITH_DOCHTML=yesInstall the HTML documentation
  WITH_DOCPDF=yes Install the PDF documentation
  WITH_GNOME=yes  Enable GNOME support
  WITH_IMLIB2=yes Enable Imlib2 (pixmap themes) support
  [snip]
  
  and for libiconv :
  
  WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets
  WITH_EXTRA_PATCHES=yes  Apply extra patches (fixes cp932,
  adds EUCJP-MS)
  
  GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
  EXTRA_PATCHES are not... Is there a way to have the full list of
  supported build options?
 
 Look at the port Makefile.
 

That's an idea, but I was looking for a list similar
to /usr/ports/KNOBS, if such a list exists. If not, I guess I will have
to run grep on /usr/ports :)

  Or maybe I am wrong and these settings are not
  supposed to be in make.conf but
  in /var/db/ports/portname/options, if so please let me know :)
 
 If they aren't OPTIONS, just list them in make.conf like this;
 
 .if ${.CURDIR:M*/x11-wm/fluxbox}
 WITH_IMLIB2=yes
 .endif
 
 This way the variables are only defined when make is called from a
 directory that ends in x11-wm/fluxbox.

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


Re: Ports build parameters (knobs)

2007-08-22 Thread Gabriel Linder
On Wed, 22 Aug 2007 09:32:34 -0400
Maxim Khitrov [EMAIL PROTECTED] wrote:

 On 8/22/07, Gabriel Linder [EMAIL PROTECTED] wrote:
  Hello,
 
  During the build of the graphical portion of my new FreeBSD-powered
  laptop I noticed that some knobs are not listed in /usr/ports/KNOBS
  and so, I can't add them to make.conf before building the packages.
 
  When I run make fetch-recursive for fluxbox, I get :
 
  WITH_DEBUG=yes  Build with debugging symbols
  WITH_DOCHTML=yesInstall the HTML documentation
  WITH_DOCPDF=yes Install the PDF documentation
  WITH_GNOME=yes  Enable GNOME support
  WITH_IMLIB2=yes Enable Imlib2 (pixmap themes) support
  [snip]
 
  and for libiconv :
 
  WITHOUT_EXTRA_ENCODINGS=yes Disable extra character sets
  WITH_EXTRA_PATCHES=yes  Apply extra patches (fixes cp932,
  adds EUCJP-MS)
 
  GNOME and DEBUG are listed in /usr/ports/KNOBS, but IMLIB2 and
  EXTRA_PATCHES are not... Is there a way to have the full list of
  supported build options ? Or maybe I am wrong and these settings
  are not supposed to be in make.conf but
  in /var/db/ports/portname/options, if so please let me know :)
 
 My experience has shown that it's always best to look at the Makefile
 of any port you are about to install. That's the most reliable way to
 learn about the port and the knobs it supports. However, this can be
 rather tedious when installing something with a few hundred
 dependencies (like gnome), so I actually came up with a solution to
 speed things up.
 
 First of all, you should install portconf from ports-mgmt and use it
 to specify port-specific options. It's a much cleaner way of doing
 things than using if statements in make.conf. You can also easily
 transfer the configuration to other systems. In addition to
 port-specific options, you can use * to set global knobs. Here's the
 start of my ports.conf file just to give you an idea:
 
 *:WITHOUT_BDB|\
   WITHOUT_DEBUG  |\
   WITHOUT_DEBUGGING  |\
   WITHOUT_IPV6   |\
   WITHOUT_NLS|\
   WITHOUT_PROFILE|\
   WITH_OPTIMIZED_CFLAGS  |\
   WITH_TTF_BYTECODE_ENABLED
 converters/libiconv:  WITHOUT_EXTRA_ENCODINGS
 lang/php5:WITHOUT_CGI|\
   WITH_MULTIBYTE

I did not know this tool, thanks :)

 And so on... Now as far as actually discovering what knobs are
 available, I wrote a simple script to do this. The contents are below,
 save them as /usr/local/sbin/getknobs or something similar. The idea
 is this; when you are about to install a port, run getknobs from the
 port's directory. The script uses 'make missing' to determine all the
 other ports that are about to be installed, then goes through their
 port directories and searches all the files for WITH/WITHOUT_*
 patterns. You then get a nice print out of all the knobs that you can
 configure before running make install for the current port.
 
 Since this script is using make missing you will not get the knobs for
 ports that are already installed. The script was meant to be used from
 the very beginning (i.e. starting from a clean system), so that on
 each step you are only shown knobs for ports that aren't already
 configured. You can easily modify this behavior if you want. You may
 also need to adjust the regular expression used to find the knobs.

Wow, this is a great idea with a wonderful script. Thanks you !
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Resolution problem with i810 and Xorg 7.2

2007-08-13 Thread Gabriel Linder
On Mon, 13 Aug 2007 18:26:10 +0300
Ghirai [EMAIL PROTECTED] wrote:

 (EE) I810(0): Failed to allocate framebuffer. Is your VideoRAM set
 too low ??

I had this error on my laptop, and solved it by running 6-STABLE. It
seems to be related to the agp module which refuses to load on
6.2-RELEASE (hardware too recent, probably).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.2. Can I get 128x48 (or similar) console screens?

2007-08-02 Thread Gabriel Linder
On Thu, 2 Aug 2007 12:20:29 +
Alan Mackenzie [EMAIL PROTECTED] wrote:

 Hi, FreeBSD!
 
 I'm a long time GNU/Linux user, and I'm considering changing over to
 FreeBSD.  Why?  To escape the upgrade tread-mill.  Every time a new
 Debian release comes out, I say Oh no, not again!, scarcely looking
 forward to the weeks of pain getting it to work properly.  I'm not
 sure I prefer the alternative, something like Ubuntu or PCLinux,
 where you just shut your eyes, lie back and think of South Africa,
 not knowing quite what's getting installed on your PC.  And finding
 the usable nuggets of information in the vast swathes of Linux
 documentation scattered diffusely over the Internet isn't fun either.
 
 Anyway, back to the point!  I do most of my work in Linux on virtual
 console screens, which are set up at 128x48 characters courtesy of the
 framebuffer thing in the Linux kernel.  Previously, I had used
 SVGATextMode, which did much the same.  I just don't much like GUIs,
 since they are cluttered up with toolbars, dialog boxes, scrollbars,
 wine bars, start bars, crowbars, , and tend to steal key
 sequences which I want to belong to applications.
 
 I haven't found any like facility in 6.2, so far: I downloaded the
 documentation last night (the CD image 6.2-RELEASE-i386-docs.iso) and
 had a general browse through it (the English version).  It's nicely
 written, but I didn't find what I was looking for.  Then I grepped
 through it with
 
 find . -name *.txt | xargs grep '[1-9][0-9]*x[1-9][0-9]*'
 
 without finding anything helpful.  80x60 isn't enough!
 
 Is it possible I've missed something relevant?  Or is there some sort
 of add-on utility which would give me consoles with (approximately)
 128x48?
 
 My hardware is a desktop PC with a 1.2 GHz Athlon and a Matrox G400
 AGP video card.
 
 Thanks in advance for the help!
 


Hi Alan,

That was the first question I asked myself, too :)

Everything about this and many other things such as how to stay up
to date are explained in the handbook, you may want to read it.

For virtual consoles resolution you can check this manual page :
http://www.freebsd.org/cgi/man.cgi?query=vidcontrol
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


powerd on dual core

2007-07-24 Thread Gabriel Linder

Hi,

I use a T2300 Core Duo laptop with SMP kernel and powerd enabled on 
FreeBSD 6.2.


When I try to check my CPU settings with sysctl dev.cpu I get a value 
only for dev.cpu.0.freq (no dev.cpu.1.freq, but there are some fields 
for dev.cpu.1), so I wonder if powerd manage only one core or if the two 
cores are running at the same speed ?

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


Swap size

2007-07-19 Thread Gabriel Linder

Hi,

I plan to setup FreeBSD 6.2-RELEASE on my Core Duo laptop with 1GB of RAM.

The handbook says ideal swap size is 2xRAM, so should I use 2GB of 
swap ? This seems a bit huge to me, I never used more than 400MB on Linux.
If so, is there a limit of swap partition size (or number) on i386 (for 
Linux it's 2GB per partition and 32 partitions max, but I don't know for 
FreeBSD) ?


I plan to use two slices so I can have 2x1GB of swap anyway, I'm just 
curious :-)

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


Re: Swap size

2007-07-19 Thread Gabriel Linder

[LoN]Kamikaze wrote:

Derek Ragona wrote:

At 03:03 AM 7/19/2007, Gabriel Linder wrote:

Hi,

I plan to setup FreeBSD 6.2-RELEASE on my Core Duo laptop with 1GB of
RAM.

The handbook says ideal swap size is 2xRAM, so should I use 2GB of
swap ?

Yes unless you know how many applications will ever be run and their run
size.  The 2xRAM is so you can always have a reasonable performance
allowing swap.  You can still run out of swap, and this will cause a
panic.  With disks so cheap, why not use 2XRAM?


Running out of swap doesn't cause a panic, it causes the largest process to be
killed.



 This seems a bit huge to me, I never used more than 400MB on Linux.
If so, is there a limit of swap partition size (or number) on i386
(for Linux it's 2GB per partition and 32 partitions max, but I don't
know for FreeBSD) ?


For a Desktop System 400M should be enough, I don't remember my Desktop system
to ever use more than 1m of swap. However, the swap size should be large enough
for a dump during a panic. So if you want to be able to do some debugging if
you ever run into panics, your swap should be at least as large as your memory.
Assuming that you might add more memory one day something between 2 or 4GB of
swap look reasonable to me.




Thanks for the precisions, I will go for 2xRAM so.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Disklabel, partition d is usable or not ?

2007-07-18 Thread Gabriel Linder

Hi,

This may sound as a dumb question, but during my 6.2-RELEASE (i386) 
setup I notice the following in the handbook :
 Remember [...] that partitions b, c, and d have conventional meanings 
that you should adhere to.


But the partition d is used by sysinstall (with both automatic defaults 
and manual setup), maybe this entry should be fixed if d has no more 
special meaning ?


Please note that this is the first time I use FreeBSD and this 
mailing-list :-)

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


Re: raid or not raid

2007-05-27 Thread Gabriel Rossetti
Jerry McAllister wrote:
 On Thu, May 24, 2007 at 06:07:58AM -0500, [EMAIL PROTECTED] wrote:

   
 On 24/05/07, kalin mintchev [EMAIL PROTECTED] wrote:
 
 so nobody on this list knows anything about raid?
 wrong list?

   
 hi all..

 i have a box in a remote hosting facility that claims that the machine 
 
 has
   
 two discs raided in it but df and fstab show only one disc with a bunch 
 
 of
   
 slices.
 under devices there is another name - ad6 - but it's not mounted 
 
 anywhere.
   
 the one i see both in df and the fstab is ad4 with one big slice and
 different partitions

 they insist there are 2 raided discs in tha machine. the os is 5.4 and i
 think at that point the raid drivers were still considered 
 
 'experimental'.
   
 it makes sense to me that if i don't see a second drive in the fstab 
 
 there
   
 isn;t any mounting which means that there is no raid going on...

 is there any other way i can make sure if raid is actually on?
 would there will be any logs somewhere?
 the machine has been up for about 2 years and the dmesg is long gone...

 thanks.

 
 Lots of people here know plenty about RAID,
 but you don't provide very much information.

 If dmesg itself returns none of the startup info,
 you can look in /var/log/dmesg.[today|yesterday].

 /usr/sbin/pciconf can tell you what controller(s)
 may be attached.

 A proper RAID will show up as a single device,
 just like any hard drive (but different).

 It does seem odd to me that a (supposed) RAID
 would show up as /dev/ad4.
 

 A hardware raid will look like any other drive to the system.
 If it is SATA raid, it should be adN
 It is it SAS raid, it should be daN.

   
I have an SATA RAID controller (rocketraid 1640) and the drive shows up
as daN and not adN
When I tested the controller without the driver loaded the DRIVES showed
up ad adN, I put
drives in caps because this is what I think is happening here, the
driver isn't loaded and/or no
RAID devices were created, so the RAID controller's drives just show up
as drives and the
controller is just used as a non-RAID controller. I suspect this is why
he sees a second disk.

Gabriel
 Some systems allow you to address the drives as either individual
 drives or as the raid - maybe until you have configured it or
 something.   Anyway, on a Dell 2950 I could see both designations
 but figured out which was the raid and used it and all was fine.

 jerry

   
 Possibilities:
 Your RAID really is on /dev/ad4 and /dev/ad6 is
 something unexplained.
 Your RAID controller is unsupported in 5.x and
 not Doing The Right Thing but somehow still (kind
 of) working as a normal [S]ATA controller.
 Your RAID controller is unsupported in 5.x and
 your hosting company realised this and wired
 the shebang up as a normal [S]ATA controller
 because they couldn't get FreeBSD to install
 otherwise.
 There is a RAID controller and there are two disks
 connected to it, but the controller was not set up
 correctly.
 There is a RAID controller and there are two disks
 connected to some other controller which might lead
 to some interesting phone calls.
 Your remote hosting company put a RAID with two
 disks in some random machine and someone else
 is complaining on some other list about the inverse
 of your problem.

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

   

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


Re: edit files in single-user-mode, the output is all messed up

2007-05-16 Thread Gabriel Rossetti
Christian Walther wrote:
 On 11/05/07, Gabriel Rossetti [EMAIL PROTECTED] wrote:
 Hello,

 I have never been able to figure out how to do this, and I usually end
 up copying the file to be edited to a floppy  et be able to edit it from
 another machine, but there has to ba a way to do it! Everytime I go into
 single-user-mode and I have to edit a file, the output to stdout is
 messed up (looks like there are no \n). I tried several editors (vi, ee,
 edit (ee I think),  and I get the same thing, useless to say that it's
 impossible to edit the files. The only editor that works, is vim, but
 it's not always installed. Does anyone know why this happens? And does
 anyone know how to fix it?

 You could try to set a decent TERM-variable, such as

 TERM=vt100
 export TERM

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

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


Re: edit files in single-user-mode, the output is all messed up

2007-05-16 Thread Gabriel Rossetti
Jerry McAllister wrote:
 On Fri, May 11, 2007 at 04:51:48PM +0200, Christian Walther wrote:

   
 On 11/05/07, Gabriel Rossetti [EMAIL PROTECTED] wrote:
 
 Hello,

 I have never been able to figure out how to do this, and I usually end
 up copying the file to be edited to a floppy  et be able to edit it from
 another machine, but there has to ba a way to do it! Everytime I go into
 single-user-mode and I have to edit a file, the output to stdout is
 messed up (looks like there are no \n). I tried several editors (vi, ee,
 edit (ee I think),  and I get the same thing, useless to say that it's
 impossible to edit the files. The only editor that works, is vim, but
 it's not always installed. Does anyone know why this happens? And does
 anyone know how to fix it?
   

 The two main problems are making sure the editors are available
 and making sure you have a terminal type that will work.

 Do the following:
   fsck -p
   mount -u /
   mount -a
   swapon -a

 To make sure files are available.

 Then, for termtype, if you are using tcsh which is most common on FreeBSD do
   set term=vt100

 or if in sh do as Christian Walther indicated

 jerry


   
Ok, thanks Jerry!
 You could try to set a decent TERM-variable, such as

 TERM=vt100
 export TERM

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

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


edit files in single-user-mode, the output is all messed up

2007-05-11 Thread Gabriel Rossetti
Hello,

I have never been able to figure out how to do this, and I usually end
up copying the file to be edited to a floppy  et be able to edit it from
another machine, but there has to ba a way to do it! Everytime I go into
single-user-mode and I have to edit a file, the output to stdout is
messed up (looks like there are no \n). I tried several editors (vi, ee,
edit (ee I think),  and I get the same thing, useless to say that it's
impossible to edit the files. The only editor that works, is vim, but
it's not always installed. Does anyone know why this happens? And does
anyone know how to fix it?

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


Can't get FreeBSD to boot automatically from RAID 5 system

2007-05-09 Thread Gabriel Rossetti
Hello,

I purchased a RocketRaid card + 3 disks, and moved my FreeBSD 6.1 to it
using dump, I then changed my fstab
entry to use da0s1d for /, I made sure that the it is bootable, I told
my raid controller to be bootable, I set it up to boot in my BIOS as the
first device, I added the kernel module to the /boot/default/loader.conf
so tha it is loaded, I modified the loader.cong so that the
root_dev=disk0s1d, but when I reboot, it says Invalid partition and
prompts me to enter the correct partition. It apperently tried to use
0:da(0,a)/boot/loader so I tell it to use 0:da(0,d)/boot/loader and it
boots, everything works fine. I must have forgotten to do something,
because it always tries to boot da0s1a instead of da0s1d.

Does anyone have an idea on how I can tell it to boot from da0s1d?

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


Re: Can't get FreeBSD to boot automatically from RAID 5 system

2007-05-09 Thread Gabriel Rossetti
Frank Wissmann wrote:
 FreeBSD boots by default from the a-partition and IMK you can't change
 this. Try to setup your rootdev as disk0s1a instead of disk0s1d and it
 will work.

 Regards

 Frank

How can I do that? When I use sysinstall to create my partitions it
automatically create's it as da0s1d. If you ment to modify my
root_dev=disk0s1b  (in /boot/default/loader.conf) back to it's default
value (an a-partition) Then how is this going to help?

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


Re: Can't get FreeBSD to boot automatically from RAID 5 system

2007-05-09 Thread Gabriel Rossetti
Gabriel Rossetti wrote:
 Frank Wissmann wrote:
   
 FreeBSD boots by default from the a-partition and IMK you can't change
 this. Try to setup your rootdev as disk0s1a instead of disk0s1d and it
 will work.

 Regards

 Frank

 
 How can I do that? When I use sysinstall to create my partitions it
 automatically create's it as da0s1d. If you ment to modify my
 root_dev=disk0s1b  (in /boot/default/loader.conf) back to it's default
 value (an a-partition) Then how is this going to help?

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

   
I get what happened... when I created my partitions, I had my old disk
installed, since I was booting from it, so the a-partition was already
taken, now that it is gone, I would have to rename it, is that possible?

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


Re: Can't get FreeBSD to boot automatically from RAID 5 system

2007-05-09 Thread Gabriel Rossetti
Frank Wissmann wrote:
 Well, I think if you boot your computer from a cdrom and edit with
 bsdlabel you get into an editor where you can change the d into an a.
 That must be the solution you want.

 Regards

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

ok, thanks, I'll do that

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


Re: Can't get FreeBSD to boot automatically from RAID 5 system

2007-05-09 Thread Gabriel Rossetti
Alex Zbyslaw wrote:
 Matthew Seaman wrote:

 Gabriel Rossetti wrote:

 How can I do that? When I use sysinstall to create my partitions it
 automatically create's it as da0s1d.
 Use:

  bsdlabel -e da0s1
  

 There's also a trick you can use in sysinstall.  It will only ever
 assign an a partition to /.  So if you have some partition which you
 know will act as a root partition, but isn't actually going to be one
 right now, *lie*.  Set the mount point to / and get assigned e.g.
 da0s1a then *change* the mountpoint with M (I think) back to whatever
 you're calling this partition right now e.g. /root2.  Make sure you
 turn off softupdates (S?) if changing the mountpoint turns them back
 on.  Once the a partition has been assigned, it won't be re-assigned
 just because you changed the mountpoint.

 Of course, this means that you have to assign all the pseudo-root
 partitions before you assign any real root partition otherwise
 sysinstall will likely complain about the duplicate mountpoint.  (Or
 change the real root mountpoint, do your pseudo roots, then change the
 real root back to /).

 Of course, it doesn't help you now, but if there's a next time...

 --Alex



Thank you Alex, yes, like you said, there's always a next time :-)

Gabriel

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


Re: Locking SSH Users to $HOME

2007-04-11 Thread Gabriel Rossetti

L33T Networks wrote:

Using the SSHD server, how can I lock users SSH'ing into a box into their
home directory, without having access to the /usr/home directory as a whole?


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

  
What about creating a jail? Whis wikipedia article explains it ; 
http://en.wikipedia.org/wiki/Freebsd_jail


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


Best software raid 5 software?

2007-03-21 Thread Gabriel Rossetti

Hello,

I am about to switch to software raid 5 for my personal server. I know 
hardware raid 5 is better, but being a student I'd rather not invest in 
a raid adapter now, plus my cpu is being used at about 0.0% 24/24 7/7, 
so it needs some exercise :-)


I've heard of several software-based raid-5 projects, mainly of Vinum, 
has anybody tested it or any other ones?

Which would you suggest?

Thank you,
Gabriel

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


Re: Special User Account Question

2007-02-06 Thread Gabriel O'Brien

You want /usr/ports/security/sudo :)

It can do (the equivalent of) all that and much more.

cheers,
Gabriel

--
Gabriel O'Brien
IT Analyst, CBC Technology
w: 416-205-8740 m: 416-576-0088

Sean Murphy wrote:
I would like to setup a FreeBSD user account that has specific rights to 
certain files.  This special user should not be able to login or ssh 
in.  Certain other user accounts must first login as them and then use 
su into the special account (to become that special user) thus gaining 
access to specific files.  This is a situation where a group or group 
permissions will not help this problem.


Any ideas?

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

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


ssh w/ rsa certs not working

2007-01-24 Thread Gabriel Rossetti

Hello,

I tried to setup ssh on a FreeBSD 4.8 (OpenSSH_3.5p1) to use 
certificates to log in to a FreeBSD 6.1 (OpenSSH_4.2p1) machine, but it 
still asks for a password.
I did the same setup, same steps, to get the FreeBSD 6.1 machine to log 
into a Gentoo Linux (OpenSSH_4.5p1) machine without any problems.


Having done that, I can be fairly sure that my steps are correct, I 
followed this guide : 
http://backuppc.sourceforge.net/faq/ssh.html#how_do_i_setup_openssh


The user needing to log in is root (I know this is not good and turned 
off by default), so I re-enabled root login with ssh but like I said 
above, I get a password

prompt when I do : ssh -l root machine2 whoami

Does anyone have an idea as of why it is not working?

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


Re: **questions** ssh w/ rsa certs not working

2007-01-24 Thread Gabriel Rossetti



Matt Ruzicka wrote:

On Wed, 24 Jan 2007, Gabriel Rossetti wrote:

The user needing to log in is root (I know this is not good and 
turned off by default), so I re-enabled root login with ssh but like 
I said above, I get a password

prompt when I do : ssh -l root machine2 whoami



Not sure if there is more going on as well, but you might want to set 
PermitRootLogin without-password in your sshd_config on the server you 
are trying to access.  This /should/ give you a bit more security in 
that someone won't be able to brute force your root password if I 
understand it, but will allow you to login using the sshd keys (if 
they are set up properly).  Might also check file and directory perms 
on .ssh and the different key and authorized_keys2 files involved if 
you haven't already, seems perms often bite me..


I have rwx for user and nothing for group and others. Thanks for the 
safety tip, I'll do that. I added the -v param to ssh and I found this :


debug1: Remote: Your host 'machine2' is not permitted to use this key 
for login.


after playing around with it I found two problems :

1) FreeBSD uses ~/.ssh/authorized_keys and not ~/.ssh/authorized_keys2 
like linux



2) I had put :

from=machine1 ssh-rsa [base64 key, eg: ABwBCEAIIALyoqa8]

to limit from where I can login, in my ~/.ssh/authorized_keys and it 
doesn't seem to like that (from=machine1 )


any ideas why it doesn't like the 2nd point?

Thanks,
Gabriel


Matt Ruzicka - Senior Systems Administrator
FRII
970-212-0728  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



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


Re: chpass -p dilema

2006-11-19 Thread Gabriel O'Brien

David,

I doubt there's much you're going to be able to do other than reset the 
password.  'pjones' doesn't look like a valid password hash of any kind 
so I can't think of a way to crack it even if you wanted to do something 
like that.  Of course I will bow to anybody who has superior knowledge 
of crypt, etc. as this is not an area with which I have a lot of 
expertise. From my PoV, essentially what you are trying to do is crack 
the system at this point and unless you set it up poorly or are 
incredibly lucky I don't think it's worth the effort to bother, the only 
advantage you have over a random attacker is knowledge of the (invalid) 
password hash (and a regular user account to work from).


A couple of thoughts: do you use sudo on this system?  (If you don't you 
should consider it when you've resolved this problem, amongst other 
excellent features which might aid in remote administration, out of the 
box it only requires you to know your own password to become root.)  Is 
it possible to get somebody local at your datacentre to drop the system 
into single user mode and change the password?  Do you have any other 
back doors or accounts that run with elevated privs?


Even if the datacentre folks are not knowledgeable WRT FreeBSD/Unix you 
could guide them through the steps required pretty trivially ('boot -s; 
enter; passwd').  Of course there are risks in terms of security, but 
it all depends on your requirements and the criticality of this system, 
I know I personally wouldn't want to drive for 2 hours to reset a root 
password unless I really had to. I only mention this because at my 
workplace we have operators at our corporate datacentre who are 
non-technical (at least on our platforms) who we can and do occasionally 
walk through procedures that require local access when we are dealing 
with emergencies remotely.


Another thought for the future, whenever I do something that might have 
the potential to lock me out of the root account I make certain I have a 
second shell open somewhere that I can use to un-fudge whatever I just 
did and I only sit 7 floors away from most of the servers I'm 
responsible for and about a 10 minute subway ride from the rest!  Don't 
be too bummed out though, you will probably never do this again... I 
can't tell you how many commands and utilities I have learned inside out 
*after* I used them wrong and this one is pretty painless... no data loss!


Sorry I'm not of more help... good luck!

cheers,
Gabriel

--
Gabriel O'Brien
IT Analyst, MPS-EN-CBC.ca
w: 416-205-8740 m: 416-576-0088


David McCord wrote:

Dear list,

I made a error that changed the root password to something unknown.
Experimenting, I intended to change the password of pjones, but instead
changed the root password since I gave no user argument. As root, I said:
chpass -p pjones

I logged out then logged back in as my username, then su'd to root. Would
not accept the old pw, and wouldn't accept pjones. I'm stuck with an
unknown root password.

man chpass tells me the argument provided with -p is the encrypted password
in crypt format, but doesn't provide enough detail to know where to go from
here. I know I can go to the computer and startup in single user and change
the root password. This computer is 2 hour round trip for me, which I'd
like to avoid. Can anyone help?

Thanks,
David

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

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


Re: Why sendmail?

2006-09-01 Thread Gabriel O'Brien

Erik Trulsson wrote:


For those people who prefer to use some other MTA it is not difficult to
install one from ports and use it instead of Sendmail. 


Indeed.  While I do sometimes question the sense of defaulting to 
sendmail due to its baggage, it's so trivial to change the MTA that it's 
largely a non-issue.  In the interest of being close to a reference 
implementation of BSD it does make some sense as a default even if I'd 
never run it on a prod box myself.  It hardly seems worth the churn.


Insert $0.02 here.

cheers,
Gabriel

--
Gabriel O'Brien
IT Analyst, MPS-EN-CBC.ca
w: 416-205-8740 m: 416-996-5679
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please Help

2006-09-01 Thread Gabriel O'Brien
You should try to post a bit more information, what services?  Which 
version of FreeBSD?


Take a look at 'man rc.conf' and the scripts in /etc/rc.d and 
/usr/local/etc/rc.d


You'll probably want something like '/etc/rc.d/mydaemon start'

cheers,
Gabriel

--
Gabriel O'Brien
IT Analyst, MPS-EN-CBC.ca
w: 416-205-8740 m: 416-996-5679


Benjamin Quaynor wrote:

Hello,
   
   
  I need a command line to start my services.
   
   
  Best Regards,
   
  Ben

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


Re: Why sendmail?

2006-09-01 Thread Gabriel O'Brien

Gerard Seibert wrote:


I agree for the most part. There is an option to install another MTA
when installing FBSD. However, it might be nice if there were
instructions on how to accomplish the following.


snipped a bunch of good ideas

I agree with you, logically I would say that perhaps this should go in 
the Postfix/exim/(insert favorite MTA here) ports.  Postfix already asks 
you if you want to update your /etc/mail/mailer.conf and it wouldn't be 
much more effort to add the make.conf change, etc. as well.


Might be a good patch to create/suggest to the maintainers.

Even a verbose message to the console on 'make install' would be a good 
start.


cheers,
Gabriel

--
Gabriel O'Brien
IT Analyst, MPS-EN-CBC.ca
w: 416-205-8740 m: 416-996-5679


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


Re: include format for /etc/rc.conf

2006-08-30 Thread Gabriel O'Brien
You might want to look at /etc/rc.conf.local, though I would consider 
just writing a script to handle what you want to do since rc.conf.local 
isn't really the FreeBSD way, seems to be more of an OpenBSD approach.


See: 'man rc'

cheers,
Gabriel

--
Gabriel O'Brien
IT Analyst, MPS-EN-CBC.ca
w: 416-205-8740 m: 416-996-5679

Dan Mahoney, System Admin wrote:

Hey all,

Are there any supported formats for INCLUDES in /etc/rc.conf such that I 
can drop default configs into /etc/rc.conf and then have files in a 
certain directory (ala includerc) override them?  Basically, I'd like to 
do mass-updates of several dozen machines' configs normally found in 
/etc/rc.conf, but then have per-machine configs (like hostnames) elsewhere.


-Dan Mahoney

--

Don't be so depressed dear.

I have no endorphins, what am I supposed to do?

-DM and SK, February 10th, 1999

Dan Mahoney
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---

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



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


FreeBSD 5.4: 'cp -p' does not behave as documented

2006-08-28 Thread Gabriel O'Brien

Hi folks,

FreeBSD 5.4-RELEASE-p6 i386

We have a script in our environment that is used to back up our mail 
logs.  In essence it does:


cp -p /var/log/maillog.0.bz2 /stats/maillogs/maillog-testcopy.bz2

According to the cp man page:

snip

-p  Cause cp to preserve the following attributes of each source file
in the copy: modification time, access time, file flags, file mode,
user ID, and group ID, as allowed by permissions.

If the user ID and group ID cannot be preserved, no error message
is displayed and the exit value is not altered.

snip

However, when I run this script or when I do a cp -p manually I am seeing:

cp: chown: /stats/maillogs/maillog-copy-test.bz2: Permission denied

For the record the user does not actually have permissions to do the 
chown, however we would still like to use 'cp -p' in order to preserve 
the remainder of the attributes and according to the docs this should be 
possible.  Does anybody have any insight?


I note this issue does not appear to exist on our FreeBSD 6.1 boxes.

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


PAM/SSH/OPIE configuration without /etc/passwd

2006-04-20 Thread Gabriel O'Brien

Hi there,

I'm currently playing around with OPIE/PAM on 6.0-RELEASE-p7 and have 
managed to stump myself with what I thought would be a relatively simple 
setup...


My goal is to have SSH allow authorized_keys and OPIE authentication but 
deny all other forms of authentication.  Obviously I want authentication 
to be denied if the user has neither configured as well.


For the record OPIE is working for authenticating su, and I can use it 
as an option for sshd logins so I don't think my problem lies there.  I 
simply can't turn logins with /etc/passwd off and still use OPIE.


Initially I thought it would be as simple as making sure that my 
sshd_config file was configured to use PAM and then commenting out the 
pam_unix line in /etc/pam.d/sshd:


# auth
authrequiredpam_nologin.so  no_warn
authsufficient  pam_opie.so no_warn 
no_fake_prompts

authrequisite   pam_opieaccess.so   no_warn allow_local
#auth   sufficient  pam_krb5.so no_warn 
try_first_pass
#auth   sufficient  pam_ssh.so  no_warn 
try_first_pass
#auth   requiredpam_unix.so no_warn 
try_first_pass


However after playing around for a bit I realized that this opened up 
the system to logins without any authentication if the user didn't have 
OPIE configured at all (and the docs warn about ending a chain without a 
required policy line.  So I tried replacing pam_unix with:


authrequiredpam_deny.so no_warn

However for some reason even if OPIE is available it still fails to 
authenticate using PAM so I guess I misunderstood how sufficient works 
(at least with respect to pam_deny in a chain) since I would expect it 
to break out of the chain if pam_opie passes which it should if the 
account has an entry in /etc/opiekeys.  I've included my sshd_config 
below as well.


Port 22
Protocol 2
AllowGroups ssh-users
DenyGroups nologin
PasswordAuthentication no
PermitEmptyPasswords no
PermitRootLogin no
UsePAM yes
ChallengeResponseAuthentication yes
PubkeyAuthentication yes
StrictModes yes
UseDNS yes
UsePrivilegeSeparation yes
X11Forwarding no
TCPKeepAlive yes
MaxAuthTries 3
MaxStartups 8:50:16
Compression delayed
Banner /etc/ssh/sshd-login-banner
Subsystem   sftp/usr/libexec/sftp-server

I've read the docs here: 
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pam/index.html


I thought I understood them but, I'm sure that there's just something 
simple that I'm missing and I can't find any examples of somebody else 
who has used this exact configuration anywhere. This is my first venture 
in the land of PAM so any help would be greatly appreciated!


cheers,
Gabe

--
Gabriel O'Brien
email: [EMAIL PROTECTED]

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


AND COBOL

2006-03-07 Thread Gabriel
HI, I WOULD LIKE TO KNOW IF RMCOBOL RUNS IN FREEBSD, THANKS.

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


PC card has no functions!

2005-11-03 Thread gabriel n/a


  Im sure that this problem has been solved before but looking through
  all the other posts i cant seem to find any information about it.

  i just installed freebsd 5.4 i386 on my old ibm thinkpad. now that im
  starting to get familiar with this new operating system i want to be
  able to access the internet but it will not connect. I have narrowed
  the problem down to a message which i get

  pccard1: Card has no functions!

  cbb1:PC Card card activation failed

  my ethernet card is a 3com megahertz 10Mbps lan 3cxe589et

  if you could help me I would appreciate it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste

When i run ./configure to install netperf i get this error:
failed to get size of sin_port in struct sockaddr_in.

What can i do to solve this?

Pleas someone help me! I reaaly need to do this works fast!
João Gabriel Sapucahy Chiste
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste
I already have downloaded netperf. I need to run configure before 
compile.

But i got that error.
You have installed netperf before?
Em 09/06/2005, às 12:23, Paul Schmehl escreveu:

--On Thursday, June 09, 2005 11:26:06 -0300 João Gabriel Sapucahy 
Chiste [EMAIL PROTECTED] wrote:



When i run ./configure to install netperf i get this error:
failed to get size of sin_port in struct sockaddr_in.

What can i do to solve this?


cd /usr/ports/benchmark/netperf

make install clean

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/



João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste

I don't have a internet connection on this machine...
But i think if i install using ports i will get the same error that i 
get compiling, don't you think?

Em 09/06/2005, às 14:26, Tim Erlin escreveu:


João Gabriel Sapucahy Chiste wrote:
I already have downloaded netperf. I need to run configure before 
compile.

But i got that error.
You have installed netperf before?


He is suggesting that you install it from the ports tree, rather than
downloading the source and compiling it.

--Tim Erlin


Em 09/06/2005, às 12:23, Paul Schmehl escreveu:


--On Thursday, June 09, 2005 11:26:06 -0300 João Gabriel Sapucahy
Chiste [EMAIL PROTECTED] wrote:


When i run ./configure to install netperf i get this error:
failed to get size of sin_port in struct sockaddr_in.

What can i do to solve this?


cd /usr/ports/benchmark/netperf

make install clean

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/



João Gabriel Sapucahy Chiste

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


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




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste
I put the netperf-2.4.0.tar.gz in the location that ports telling and 
tried to install from ports and then i get this:

applying freebsd patchesblabla
File to patch:

Which file should i type?

Em 09/06/2005, às 14:26, Tim Erlin escreveu:


João Gabriel Sapucahy Chiste wrote:
I already have downloaded netperf. I need to run configure before 
compile.

But i got that error.
You have installed netperf before?


He is suggesting that you install it from the ports tree, rather than
downloading the source and compiling it.

--Tim Erlin


Em 09/06/2005, às 12:23, Paul Schmehl escreveu:


--On Thursday, June 09, 2005 11:26:06 -0300 João Gabriel Sapucahy
Chiste [EMAIL PROTECTED] wrote:


When i run ./configure to install netperf i get this error:
failed to get size of sin_port in struct sockaddr_in.

What can i do to solve this?


cd /usr/ports/benchmark/netperf

make install clean

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/



João Gabriel Sapucahy Chiste

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


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




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste

I'm a programmer but i'm still not compiled this stuff
I`m on a Lan with a DHCP server and i can ping but the DNS names are 
not configured i put them in resolv.conf but don't worked.
When i run dhclient i get an ip address, but i get this message addres 
family not supported by protocol family.


Em 09/06/2005, às 15:59, Paul Schmehl escreveu:

--On Thursday, June 09, 2005 15:10:11 -0300 João Gabriel Sapucahy 
Chiste [EMAIL PROTECTED] wrote:



I put the netperf-2.4.0.tar.gz in the location that ports telling and
tried to install from ports and then i get this:
applying freebsd patchesblabla
File to patch:

Which file should i type?

You can't do it that way.  First, you need to make sure your ports are 
up to date.  *Then* install netperf using the port.  (I just did, on 
5.4 RELEASE, and it installed without a hitch.)  The port installed 
netperf-2.3pl1.tar.gz, not netperf-2.4.0.tar.gz.  If you want 2.4.0, 
you're on your own, and you'll have to figure out how to get it to 
compile on FreeBSD.  The netperf Makefile *might* be helpful.  It 
might also be helpful to look at the port files after typing make.  
You'll find that there are 14 patchfiles in the files/ directory and a 
configure script in the scripts/ directory.


I'm betting you can't compile this port yourself, unless you're a 
programmer and you understand configure and Makefile instructions 
clearly. Or maybe you can - but you're pretty much on your own.


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste

Should i enable ipv6?
i see a inet6 address when i give ifconfig. It's that enough?
Em 09/06/2005, às 17:21, Paul Schmehl escreveu:

--On Thursday, June 09, 2005 17:12:39 -0300 João Gabriel Sapucahy 
Chiste [EMAIL PROTECTED] wrote:



I'm a programmer but i'm still not compiled this stuff
I`m on a Lan with a DHCP server and i can ping but the DNS names are 
not

configured i put them in resolv.conf but don't worked.
When i run dhclient i get an ip address, but i get this message addres
family not supported by protocol family.

Seems like you should resolve this problem first, before trying to 
install more software.  I'm not sure I'm following you though.  If you 
put your DNS servers' IP addresses in resolv.conf, then you shouldn't 
be having a problem with name resolution.


What's generating the family not supported error?  Ping?  Did you 
enable IPV6 on this box?


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste

i have a problem resolving names
when i give ping www i get host name lookup failure
and when i run dig i get connection refused
Em 09/06/2005, às 17:32, Paul Schmehl escreveu:

--On Thursday, June 09, 2005 17:28:14 -0300 João Gabriel Sapucahy 
Chiste [EMAIL PROTECTED] wrote:



Should i enable ipv6?
i see a inet6 address when i give ifconfig. It's that enough?


No, not unless your network uses it, which is unlikely.

It's normal for ifconfig to report the ipv6 address as well as the 
ipv4 address.


Can you describe the problem you're having more accurately?  I'm not 
sure what is wrong, except that you seem to be having a problem 
resolving names.


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste

yes
now i realized that i can't create resolv.conf...:(
I get this message:
 out of inodes.
 unable to create resolv.conf
Em 09/06/2005, às 17:49, Tim Erlin escreveu:


João Gabriel Sapucahy Chiste wrote:

i have a problem resolving names
when i give ping www i get host name lookup failure
and when i run dig i get connection refused


Can you ping the DNS server by IP?

--Tim Erlin


Em 09/06/2005, às 17:32, Paul Schmehl escreveu:


--On Thursday, June 09, 2005 17:28:14 -0300 João Gabriel Sapucahy
Chiste [EMAIL PROTECTED] wrote:


Should i enable ipv6?
i see a inet6 address when i give ifconfig. It's that enough?



No, not unless your network uses it, which is unlikely.

It's normal for ifconfig to report the ipv6 address as well as the
ipv4 address.

Can you describe the problem you're having more accurately?  I'm not
sure what is wrong, except that you seem to be having a problem
resolving names.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]



João Gabriel Sapucahy Chiste

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




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste
now i get the dns working but i need to know where i put the router 
address, because the dhcp it's not working.


Em 09/06/2005, às 17:49, Tim Erlin escreveu:


João Gabriel Sapucahy Chiste wrote:

i have a problem resolving names
when i give ping www i get host name lookup failure
and when i run dig i get connection refused


Can you ping the DNS server by IP?

--Tim Erlin


Em 09/06/2005, às 17:32, Paul Schmehl escreveu:


--On Thursday, June 09, 2005 17:28:14 -0300 João Gabriel Sapucahy
Chiste [EMAIL PROTECTED] wrote:


Should i enable ipv6?
i see a inet6 address when i give ifconfig. It's that enough?



No, not unless your network uses it, which is unlikely.

It's normal for ifconfig to report the ipv6 address as well as the
ipv4 address.

Can you describe the problem you're having more accurately?  I'm not
sure what is wrong, except that you seem to be having a problem
resolving names.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]



João Gabriel Sapucahy Chiste

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




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste
Now i get the network ok and ports working, i tried with other 
softwares but i can't download netperf because i have messed up with 
distinfo, what you have in this file?

Em 09/06/2005, às 17:32, Paul Schmehl escreveu:

--On Thursday, June 09, 2005 17:28:14 -0300 João Gabriel Sapucahy 
Chiste [EMAIL PROTECTED] wrote:



Should i enable ipv6?
i see a inet6 address when i give ifconfig. It's that enough?


No, not unless your network uses it, which is unlikely.

It's normal for ifconfig to report the ipv6 address as well as the 
ipv4 address.


Can you describe the problem you're having more accurately?  I'm not 
sure what is wrong, except that you seem to be having a problem 
resolving names.


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste

now says that i need to edit makefile  to my plataform... :(
Em 09/06/2005, às 19:54, Paul Schmehl escreveu:

--On Thursday, June 09, 2005 19:44:20 -0300 João Gabriel Sapucahy 
Chiste [EMAIL PROTECTED] wrote:


Now i get the network ok and ports working, i tried with other 
softwares
but i can't download netperf because i have messed up with distinfo, 
what

you have in this file?


MD5 (netperf-2.3pl1.tar.gz) = b74314d78af31cb13516fb9a372d2e86
SIZE (netperf-2.3pl1.tar.gz) = 836110

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




João Gabriel Sapucahy Chiste

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


Re: I can't install netperf

2005-06-09 Thread João Gabriel Sapucahy Chiste

Uhuhu i finally get this thing working, thanks i lot Paul :D

Sorry for i'm beeing so newbie and annoying.

[]'s

Em 09/06/2005, às 20:37, João Gabriel Sapucahy Chiste escreveu:


now says that i need to edit makefile  to my plataform... :(
Em 09/06/2005, às 19:54, Paul Schmehl escreveu:

--On Thursday, June 09, 2005 19:44:20 -0300 João Gabriel Sapucahy 
Chiste [EMAIL PROTECTED] wrote:


Now i get the network ok and ports working, i tried with other 
softwares
but i can't download netperf because i have messed up with distinfo, 
what

you have in this file?


MD5 (netperf-2.3pl1.tar.gz) = b74314d78af31cb13516fb9a372d2e86
SIZE (netperf-2.3pl1.tar.gz) = 836110

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




João Gabriel Sapucahy Chiste

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




João Gabriel Sapucahy Chiste

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


Re: Main web site out of date

2005-05-18 Thread Gabriel O'Brien
You must have a faulty web cache or something between you and the 
freebsd.org site, I just checked and 5.4 and 4.11 are there for me. 
(5.4 was there about an hour or two after it was out last week).

-Gabe
Gabriel M. O'Brien
http://web.quay.net/
Patrikios wrote:
I say, is there a good reason why the main FreeBSD web site
(www.freebsd.org) is always out of date by comparison with
the mirrors?  Anyone relying on your main site will still
not know about the availability of 4.11 or 5.4.
Kind regards,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SSH2 and ZSH

2005-05-18 Thread Gabriel O'Brien
Unless you have a good reason to I wouldn't replace OpenSSH, I'm not 
aware of any particular functionality that is provided by a different 
implementation of SSH that is not present in the BSD standard OpenSSH. 
I wouldn't mess with this unless I was sure I knew why I was doing so.

You can turn off OpenSSH in your /etc/rc.conf file by changing:
sshd_enable=YES
to
sshd_enable=NO
That said it would sound to me like you have a path problem not and SSH 
problem with your shell.  I'm not familiar with ZSH but something like 
'echo $PATH' should tell you what paths are being searched when you run 
commands.  Do a 'find / -name ping' and compare this with your $PATH 
list.  Some shells don't (by default) include the sbin directories in a 
normal user's path, FreeBSD installs ping by default in /sbin and a 
number of other utilities (that in some UNIX/Linux distributions are 
regular user utilities) are found under /sbin and /usr/sbin.

My advice: ditch your replacement SSH and check your paths, my 
expectation is that the default port of zsh probably has a sane 
configuration.

-Gabe
Gabriel M. O'Brien
http://web.quay.net/
Joe Wood wrote:
I recently installed FreeBSD 5.4 on a new server.everything is smooth and
works fine. The other day I installed the non commercial version of SSH2
from ssh.com. I've had shell accounts that used it before and thought it
would be good to have. My first issue is that the normal sshd from openssh
keeps trying to start instead of the new sshd2. When initially installing
freebsd should I have said no to the question about enabling ssh logins?
Secondly is that the majority of zsh's commands do not work when I use the
ssh2 daemon.simple things like ping and top cannot be used because it says
they are not found. Has anyone had this issue or can point me in the
direction to resolve it.
 

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


named ntpd quirkyness

2005-05-17 Thread Gabriel O'Brien
Hi folks,
I've a FreeBSD 5.4 system here that is running an ipfw firewall, ntpd, 
BIND, etc. and I'm having a strange little problem whenever I reboot my 
system.  This system is a gateway multihomed with 4 interfaces and 
connected to the internet via plain old PPPoE/ADSL.  For the most part 
everything seems to be working like a charm however whenever I reboot 
the server I have two issues:

1) named doesn't seem to be able to bind to the tun0 interface properly, 
I've got a few theories about this but none of them have gotten me 
anywhere!  At first I thought it was my firewall rules, but after 
playing around with it, including building a firewall with options 
IPFIREWALL_DEFAULT_TO_ACCEPT and turning off all the rules I'm starting 
to think that wasn't it.  I've wondered if it can't connect becasue that 
interface doesn't exist yet (since it's PPPoE), but I'm not sure about 
that either.

At any rate the symptom is that named is listening and accepting queries 
on all of the interfaces including loopback, except the tun0 interface. 
 There's currently nothing in the logs to suggest anything awry, though 
for a while I was getting these errors:

May  9 21:03:48 sol named[284]: creating IPv4 interface tun0 failed; 
interface ignored

I can't figure out what I might have done to stop those errors from 
appearing but they don't anymore.

2) ntpd doesn't connect properly to it's servers via the tun0 interface 
though this symptom is much more intermittent and I don't have any hard 
evidence other than my own two eyes to actually prove it ever happened. 
 As of right now it's working fine.

I've been trying to sort out this problem on and off for about a month 
of so on both 5.3 and 5.4 and haven't had a whole lot of luck.  I'm 
wondering if anyone has any suggestions as to where I can look to sort 
this out.  I have a doable workaround, essentially I just log in after a 
reboot and restart named and then everything is fine, but it's a bit of 
a hassle and if I forget eventually my server will stop resolving (when 
the zone expires in various caches out there)... this is how I 
discovered it the first time.  I can post some more info on my setup if 
anyone thinks it will help, but I won't clutter up inboxes with loads of 
config files unless it's necessary.

Thanks in advance for any help!
-Gabe
Gabriel M. O'Brien
http://web.quay.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Just installed FreeBSD

2005-03-07 Thread gabriel
*tsk tsk tsk* If I were you, I'd take a long, deep look at the freebsd
Handbook.  If you expect freebsd to be _anything_ like red-cr*p linux
you are sadly mistaken.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

Cheers!

On Mon, 7 Mar 2005 00:20:28 -0800 (PST), Katsuki Hirata
[EMAIL PROTECTED] wrote:
 Hi, I just installed FreeBSD and I have no clue how to
 run it. I'm sure it's installed right. When I boot,
 and after loginging with both root and/or another
 username, I don't know what to do from there on. How
 do I get gnome or KDE on? Is it supposed to be a
 graphical thing like Windows or Redhat linux? what's
 the command to load the operating system
 
 __
 Celebrate Yahoo!'s 10th Birthday!
 Yahoo! Netrospective: 100 Moments of the Web
 http://birthday.yahoo.com/netrospective/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 


-- 
gabriel,

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


Re: D-Link NIC.

2005-03-07 Thread gabriel
Okay, so I've managed to get the Wless nic talking to the Access Point
(per the logs) but I'm having problems getting an ip address. Check
out the dhclient output:

dolores# dhclient -v ndis0
Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on BPF/ndis0/00:11:95:87:8b:e4
Sending on   BPF/ndis0/00:11:95:87:8b:e4
Sending on   Socket/fallback
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ndis0 to 255.255.255.255 port 67 interval 19
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
dolores#

here's the ifconfig ndis0 output:

ndis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet6 fe80::211:95ff:fe87:8be4%ndis0 prefixlen 64 scopeid 0x4 
inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255
ether 00:11:95:87:8b:e4
media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
status: associated
ssid [EMAIL PROTECTED] 1:[EMAIL PROTECTED]
channel 8 authmode OPEN powersavemode OFF powersavesleep 100
rtsthreshold 2312 protmode CTS
wepmode MIXED weptxkey 1
wepkey 1:104-bit

Anyone that has experienced this before? Any ideas?

Thanks!

On Sun, 6 Mar 2005 11:00:58 -0800, gabriel [EMAIL PROTECTED] wrote:
 Thats a good script. How did you install the ndis driver/wrapper? -
 Cause I think some of the problem may be there.
 
 Cheers!
 
 On Sun, 6 Mar 2005 19:54:38 +0100, Fabian Keil
 [EMAIL PROTECTED] wrote:
  Subhro [EMAIL PROTECTED] wrote:
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-freebsd-
[EMAIL PROTECTED] On Behalf Of gabriel
Sent: Sunday, March 06, 2005 2:57
To: freebsd-questions
Subject: Re: D-Link NIC.
   
Can anyone provide any insight?
   
ndis0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 00:11:95:87:8b:e4
media: IEEE 802.11 Wireless Ethernet autoselect
status: no carrier
ssid 
channel -1 authmode OPEN powersavemode OFF powersavesleep 100
rtsthreshold 2312 protmode CTS
wepmode OFF weptxkey 1
dolores#
 
  How do you set up the NIC?
 
  I use a small script to load and unload the driver:
 
  #!/bin/sh
 
  case $1 in
 
  start)
 echo Activating WLAN
 kldload ndis
 kldload if_ndis
 
 ifconfig ndis0 ssid ec60bfg3b4 wepkey 1:0x12345678911234567891123456 
  wepmode on
 ifconfig ndis0 inet 192.168.1.49
 
 route add 0.0.0.0 192.168.1.1
 ;;
  stop)
 echo Deactivating WLAN
 kldunload if_ndis
 kldunload ndis
 ;;
  esac
 
  exit 0
 
  DHCP works as well, but I don't use it.
 
if I try to use dhcp the ip address will just go to zeroes. :\
  
  
   Are you positive that the DHCP function of your AP works perfectly? I am
   asking thing because I have come across a couple of routers which happily
   routes packets to static IPs but messes everything up as soon as it is 
   asked
   to handle DHCP.
 
  I guess the DHCP server is working, but Gabriel's kernel is lacking device 
  bpf
  which is needed for dhclient.
 
  Otherwise the IP is set to 0.0.0.0 without error message, just as described.
 
   Also I strongly feel something fishy in the WLAN interface being detected 
   as
   ndisX instead of wiX.
 
  This is expected behaviour.
 
  Regards
  Fabian
  --
  http://www.fabiankeil.de
 
 
 --
 gabriel,
 
 Member of:
 FreeBSD-Announce
 FreeBSD-Hardware
 FreeBSD-Multimedia
 FreeBSD-questions
 


-- 
gabriel,

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


Re: D-Link NIC.

2005-03-06 Thread gabriel
Thats a good script. How did you install the ndis driver/wrapper? -
Cause I think some of the problem may be there.


Cheers!

On Sun, 6 Mar 2005 19:54:38 +0100, Fabian Keil
[EMAIL PROTECTED] wrote:
 Subhro [EMAIL PROTECTED] wrote:
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:owner-freebsd-
   [EMAIL PROTECTED] On Behalf Of gabriel
   Sent: Sunday, March 06, 2005 2:57
   To: freebsd-questions
   Subject: Re: D-Link NIC.
  
   Can anyone provide any insight?
  
   ndis0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
   ether 00:11:95:87:8b:e4
   media: IEEE 802.11 Wireless Ethernet autoselect
   status: no carrier
   ssid 
   channel -1 authmode OPEN powersavemode OFF powersavesleep 100
   rtsthreshold 2312 protmode CTS
   wepmode OFF weptxkey 1
   dolores#
 
 How do you set up the NIC?
 
 I use a small script to load and unload the driver:
 
 #!/bin/sh
 
 case $1 in
 
 start)
echo Activating WLAN
kldload ndis
kldload if_ndis
 
ifconfig ndis0 ssid ec60bfg3b4 wepkey 1:0x12345678911234567891123456 
 wepmode on
ifconfig ndis0 inet 192.168.1.49
 
route add 0.0.0.0 192.168.1.1
;;
 stop)
echo Deactivating WLAN
kldunload if_ndis
kldunload ndis
;;
 esac
 
 exit 0
 
 DHCP works as well, but I don't use it.
 
   if I try to use dhcp the ip address will just go to zeroes. :\
 
 
  Are you positive that the DHCP function of your AP works perfectly? I am
  asking thing because I have come across a couple of routers which happily
  routes packets to static IPs but messes everything up as soon as it is asked
  to handle DHCP.
 
 I guess the DHCP server is working, but Gabriel's kernel is lacking device 
 bpf
 which is needed for dhclient.
 
 Otherwise the IP is set to 0.0.0.0 without error message, just as described.
 
  Also I strongly feel something fishy in the WLAN interface being detected as
  ndisX instead of wiX.
 
 This is expected behaviour.
 
 Regards
 Fabian
 --
 http://www.fabiankeil.de
 


-- 
gabriel,

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


5.3 and building world

2005-03-06 Thread gabriel
Alright so when upgrading to 5.3 from 5.2 I cvsuped the source which
obviously got GENERIC overwritten. My question is, besides the
instructions on /usr/src/Makefile(?) is there another way to update
the source and be able to specify a custom kernel?

Cheers!

-- 
gabriel,

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


Re: 5.3 and building world

2005-03-06 Thread gabriel
Yep, I know enoguh to read through the handbook, the problem lies in
the fact that if I use make buildkernel KERNCONF=MYKERNEL I get a stop
error which says I have to buildworld first (even though I have before
this step). Thats the reason for the question. But thanks anyway

Cheers!


On Sun, 6 Mar 2005 11:59:55 -0800, Kent Stewart [EMAIL PROTECTED] wrote:
 On Sunday 06 March 2005 11:17 am, gabriel wrote:
  Alright so when upgrading to 5.3 from 5.2 I cvsuped the source which
  obviously got GENERIC overwritten. My question is, besides the
  instructions on /usr/src/Makefile(?) is there another way to update
  the source and be able to specify a custom kernel?
 
 There is a whole chapter on configuring your own kernel. They show you
 how to cp GENERIC to your own name and then use it. See
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
 
 They show you both the config way and the new build[install]kernel way
 of maintaing your kernel. I log everything and have the individual
 commands in shell scripts so that a mistake won't do something
 unexpected.
 
 Kent
 
 
  Cheers!
 
 --
 Kent Stewart
 Richland, WA
 
 http://users.owt.com/kstewart/index.html
 


-- 
gabriel,

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


Re: 5.3 and building world

2005-03-06 Thread gabriel
Yeah thats the thing, I guess I should actually paste the error and
the sequence. I'll do that when I get home.

Cheers!

On Sun, 6 Mar 2005 12:19:33 -0800, Kent Stewart [EMAIL PROTECTED] wrote:
 On Sunday 06 March 2005 12:01 pm, gabriel wrote:
  Yep, I know enoguh to read through the handbook, the problem lies in
  the fact that if I use make buildkernel KERNCONF=MYKERNEL I get a
  stop error which says I have to buildworld first (even though I have
  before this step). Thats the reason for the question. But thanks
  anyway
 
 Ah, you didn't say that. If you cvsup, you have to do the buildworld
 first. You need to figure out why buildkernel can't find the obj files
 in /usr/obj. If you already have a current installed world with a
 generic kernel, you can use the config MYKERNEL way of building a new
 kernel.
 
 Kent
 
 
  Cheers!
 
  On Sun, 6 Mar 2005 11:59:55 -0800, Kent Stewart [EMAIL PROTECTED]
 wrote:
   On Sunday 06 March 2005 11:17 am, gabriel wrote:
Alright so when upgrading to 5.3 from 5.2 I cvsuped the source
which obviously got GENERIC overwritten. My question is, besides
the instructions on /usr/src/Makefile(?) is there another way to
update the source and be able to specify a custom kernel?
  
   There is a whole chapter on configuring your own kernel. They show
   you how to cp GENERIC to your own name and then use it. See
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelcon
  fig.html
  
   They show you both the config way and the new build[install]kernel
   way of maintaing your kernel. I log everything and have the
   individual commands in shell scripts so that a mistake won't do
   something unexpected.
  
   Kent
  
Cheers!
  
   --
   Kent Stewart
   Richland, WA
  
   http://users.owt.com/kstewart/index.html
 
 --
 Kent Stewart
 Richland, WA
 
 http://users.owt.com/kstewart/index.html
 


-- 
gabriel,

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


Re: CGI script executing and Apache help (2nd try important)

2005-03-06 Thread gabriel
How about pasting that httpd.conf?

Cheers!

On Sun, 6 Mar 2005 17:19:02 -0500 (EST), Shawn B [EMAIL PROTECTED] wrote:
 I am running FreeBSD-4.8 with Apache 1.3 installed. I
 changed the htdocs directory in httpd.conf to
 /home/user1/public_html/ and I added a /cgi-bin/ in
 the same user directory. Scripts will not execute from
 the cgi-bin, as the scripts contents are displayed in
 the browser window. I went through httpd.conf using
 the search feature in Easy Editor, editing sections
 that have .cgi in it. Now, I am stumped as to how to
 get the CGI scripts to execute.
 
 Thanks,
 
 Shawn B.
 FreeBSD newbie
 
 __
 Post your free ad now! http://personals.yahoo.ca
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 


-- 
gabriel,

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


  1   2   3   >