Re: Code beautification and/or printing utilities that are not part of an editor

2007-04-19 Thread Gable Barber

On 4/19/07, Andrew Falanga [EMAIL PROTECTED] wrote:

Another question for everyone.  Are there any programs, hopefully
available in the ports, that one can use to print source code files to
a printer (or create as a postscript file)?

I'd like something that I can feed a C++ program, have it parse
through the code, print line numbers to the left of the page and
(optionally) color code the syntax.  Does anything like this exist?

If it's something as simple as a string of chained command line aps,
hey, that's fine.  Please someone point me in the correct direction.

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



You might be able to find what you are looking for here:

http://www.freebsd.org/cgi/ports.cgi?query=printingstype=allsektion=all

I see a few potentially interesting ports, although I have no personal
experience with them.

http://cvsweb.freebsd.org/ports/print/mp-a4

http://cvsweb.freebsd.org/ports/print/mp-letter

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


Re: suggestion about freebsd as console server or kvm switch

2007-02-06 Thread Gable Barber

On 2/6/07, Gable Barber [EMAIL PROTECTED] wrote:

On 2/6/07, ann kok [EMAIL PROTECTED] wrote:
 Hi all

 I need the console server function to access the less
 than 4 servers in the data center.

 Do you think it is easy to buy cheap kvm or use
 freebsd to do it?

 lt is easy to setup using freebsd

 Thank you for your suggestion


Perhaps this is what you are looking for:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/console-server/index.html

Good luck,
Gable



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


Re: FreeBSD6.2 DIY wireless AP?

2007-02-02 Thread Gable Barber

On 2/2/07, Roger Olofsson [EMAIL PROTECTED] wrote:

Dear mailing list,

One of the many ideas, inspired by FreeBSD, that passed through my head
is the one about making my own wireless access point using an old
computer with FreeBSD and a wireless nic.

First question, will a Fujitsu USB D1075 wireless nic work for this purpose?



The best place to look, at least initially is:

http://www.freebsd.org/releases/6.2R/hardware-i386.html#WLAN


Second question, any pointers to how to make this small project happen
would be appreciated. I've googled and found some but I like to read up
on different ideas before I decide where to go. I would prefer to use
ipfilter since I've been using that beast for quite some years now, but
I might as well take a closer look at pf if recommended enough.



Ive done this in the past, and I found many resources (howto's
walkthroughs, etc.) available online. There are many different ways to
do it, depending on what your needs are.

My suggestion would be to find a wireless nic, that is well supported,
and go from there. Fr me, once I had a nicely supported card, the rest
was relatively easy.


Thanks in advance!

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



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


Sorta OT - Backup solutions Mac to FreeBSD

2007-01-26 Thread Gable Barber

Hello all,
I have been poking around the 'Net a bit looking for an easy to use
backup solution for our Mac's (1 mini, 1 powerbook, more in the
future).

Basically there is a server, offsite (FBSD 6.2) with 2 RAID 5 arrays.
I would like to be able to set the 2 (for now) clients to
automatically, incrementally backup certain directories, nightly.
Something encrypted would be nice aswell.

This one looks interesting to me:

http://sourceforge.net/projects/areca/

If anyone has used an open source solution for this , I would
genuinely appreciate hearing about it.

Thanks in advance -

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


Re: Sorta OT - Backup solutions Mac to FreeBSD

2007-01-26 Thread Gable Barber

On 1/26/07, Doug Hardie [EMAIL PROTECTED] wrote:





RsyncX for Mac will sync to a FreeBSD filesystem.


Thank you.

I will try these out.

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


Re: Best Cheap Wireless card for FreeBSD

2007-01-05 Thread Gable Barber

On 1/5/07, Chris Maness [EMAIL PROTECTED] wrote:

What is the best wireless card, USB or other, that works under FreeBSD?



Not sure what your idea of cheap is, but I have been very happy with
my Atheros based Proxim Orinoco gold b/g pcmcia card.

It cost me around $70.00 (USD) from Amazon, and that was with
expedited shipping, if I remember correctly.


--
Chris Maness
(909) 223-9179
http://www.chrismaness.com




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


Re: mail port 8025 conundrum

2006-02-17 Thread Gable Barber
On 2/17/06, David Banning [EMAIL PROTECTED]
wrote:

  That depends, of course, on what your nsswitch.conf or hosts.conf file
  has been set up for :)

 Nothing to speak of there;

 root# locate nsswitch.conf
 /usr/compat/linux/etc/nsswitch.conf
 /usr/ports/emulators/linux_base/work/linux_base-rh-7.3/etc/nsswitch.conf
 /usr/ports/emulators/svr4_base/files/nsswitch.conf
 root#
 root# locate hosts.conf
 root#
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]



I think you want to look for /etc/hosts ..:)

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


Re: question

2006-02-09 Thread Gable Barber
On 2/9/06, Jose Jesus Ortega [EMAIL PROTECTED] wrote:

 I'm new to freeBSD and have window manager installed and working with
 firefox. I need help setting up the icons. When I install some from the
 ports or packages, I know what dictory they are in but they don't popup on
 the desktop automatically like firefox did. How do I add them to my desktop?
 thanks.

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



That depends greatly on your Window Manager, which one did you install?

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


How to tell if IPF is running?

2006-01-18 Thread Gable Barber
Howdy List...
I am trying to figure out if ipf is running for certain. FreeBSD 6.0-RELEASE
.



I added the following to /etc/rc.conf :

ipfilter_enable=YES
ipmon_enable=YES
ipmon_flags=-Dsvn
ipnat_enable=YES
ipfs_enable=YES

I added a rule file /etc/ipf.conf , and flushed/reloaded ipf with the
command

# ipf -Fa -f /etc/ipf.conf

I have rebooted since the additions to /etc/rc.conf

ps aux | grep ipf

Shows nothing. I do see ipmon in there however.

ipfstat command, shows me stats, so I suppose it is running, but I assumed
(incorrectly?) that I would see ipf with ps aux .

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


Re: How to tell if IPF is running?

2006-01-18 Thread Gable Barber



 Yes, incorrectly, if you have any rules with the log key word, then you
 can se if you get any entries in your log files. I would have default
 rules first in my rule set:

block log in all
block log out all

 And then pass what I positively know is good.

 Cheers, Erik


It seems mostly my misunderstanding of ipf being a kernel module and not
showing up with ps aux.There are log entries, ipfstat shows contuning stats,
and ipmon shows what is being filtered/passed, etc.

Thanks everyone for your quick, concise responses.

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


Re: How to tell if IPF is running?

2006-01-18 Thread Gable Barber
On 1/18/06, Peter [EMAIL PROTECTED] wrote:


 Switch over to pf.




Why do you suggest PF over IPF?

Hope I am not starting a war here.. but I am genuinely interested in the
opinions.

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


Re: How to tell if IPF is running?

2006-01-18 Thread Gable Barber
On 1/18/06, Erik Norgaard [EMAIL PROTECTED] wrote:

 Gable Barber wrote:
  On 1/18/06, Peter [EMAIL PROTECTED] wrote:
 
  Switch over to pf.
 
  Why do you suggest PF over IPF?
 
  Hope I am not starting a war here.. but I am genuinely interested in the
  opinions.

 I used IPF on FBSD until there was some bug in IPF for 5.x some version
 that forced me to switch after an upgrade. The bug has been fixed since
 but I have found no reason to go back.

 There are two things I miss from IPF:

 a) proper accounting: You can't count traffic correctly with stateful
 filtering on pf, pf will count when a rule is matched but once a state
 is established packets for that state are not matched and hence not
 counted.

 b) an active and inactive ruleset: To load a new ruleset you'll have to
 flush everything. You can check syntax of rules before loading and pf
 loads all or nothing, so if there is a syntax error in your ruleset it
 won't be loaded. BUT: You may make syntactically correct changes that
 yet contain errors: Just say you wrote:

block in all from 10.0.0.0/2

 but meant

block in all from 10.0.0.0/24

 In IPF I always used:

# ipf -s  sleep 60  ipf -s

 to give me 60 seconds to verify that I didn't lock myself out.

 Now, that is compensated by in PF you can flush and reload the rules
 only, keeping existing states, so the connection you use for maintenance
 is not torn down.

 The pros for PF are some features to prevent DDoS against servers behind
 your firewall, and advanced queuing features and CARP. The use of macros
 and tables makes it easier to maintain rules, but the lack of groups
 means you have to be more careful structuring your ruleset:

 Rules are read top down _always_ in IPF I really liked groups, even
 though I always kept rules together. It just made it more explicit that
 rules went the same place. PF uses some clever skip ahead to gain the
 speed that proper use of groups give in IPF, and tests have shown that
 pf is faster than IPF in particular when rulesets grow large.

 but you need to be careful writing rules:

 IPF sample:

 block in quick from 10.0.0.0/24 to any head 10
 pass  in quick from 10.0.0.0/24 to 192.168.0.0/24 group 10

 PF sample:

 block in   from 10.0.0.0/24 to any
 pass  in quick from 10.0.0.0/24 to 192.168.0.0/24
 block in quick from 10.0.0.0/24 to any

 The thing is that in the first line of the IPF sample, a default action
 is made for that group. packets matching the head rule but no rules in
 the group will take that action.

 In PF you'll have to include that extra rule in the end to get the same
 behavior.

 So, in short, ipf is really simple and comparatively easy to work with,
 the lack of macros means you generally have to write more but this also
 makes it more explicit what happens as packets traverse the ruleset.

 pf has some really nice features in particular in more complex setups.
 The use of macros means that you can create compact rulesets that can
 easily be adopted to other systems or setups.

 Use what you feel most comfortable with.

 Cheers, Erik



Awesome information, and links.

Thank you Everyone.

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


Onboard sound problem - FBSD 5.2.1 - Epox 8kta3

2005-01-10 Thread Gable Barber
 at device 0.0 on
pci1
info: [drm] Initialized tdfx 1.0.0 20010216 on minor 0
bash-2.05b$



Is this the important part...?

pci0: multimedia, audio at device 7.5 (no driver attached)

Any help is greatly appreciated

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


make depend error - FreeBSD 5.2.1

2005-01-09 Thread Gable Barber
Howdy all,
I am trying to build a new kernel to support the on board sound on my
motherboard.

When I try to  make depend  I get this error:

make: don't know how to make depend. Stop

Anyhelp would be greatly appreciated.

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


Re: make depend error - FreeBSD 5.2.1

2005-01-09 Thread Gable Barber
I reinstalled sources from sysinstall, and all works now..

Since this is the first one I have done, I wanted to learn the old
way..then the new...

Thanks for the help...

Gable


On Sun, 9 Jan 2005 16:08:53 +0100, Fabian Keil
[EMAIL PROTECTED] wrote:
 On Sunday 09 January 2005 15:48, Gable Barber wrote:
  Howdy all,
  I am trying to build a new kernel to support the on board sound on my
  motherboard.
 
  When I try to  make depend  I get this error:
 
  make: don't know how to make depend. Stop
 
  Anyhelp would be greatly appreciated.
 
 Are you sure you're running make in the right directory?
 
 Nevertheless you might try building the Kernel the New Way
 as it is described in
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
 
 Regards
 Fabian
 

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


Re: 5.2.1 install error

2004-12-15 Thread Gable Barber
On Mon, 13 Dec 2004 11:17:02 -0600, Gable Barber [EMAIL PROTECTED] wrote:
 Hello,
 I am trying to install FreebSD 5.2.1 from CD, on the following box, I
 am getting an error when it is installing /usr/ports.
 
 The gear:
 
 Duron 1000
 512meg RAM
 Mylex Acceleraid 150 (DAC960)
 4x9G IBM SCSI drives (7200rpm)
 
 The error :
 
 anic: free: address 0xc978f00 has not been allocated
 
 cpuid:0
 
 syncing discs
 
 from there it counts about 4 lines of 4 digit codes, then reboots..
 
 I have searched the questions archive, and google.com/bsd without much
 avail. There were 2-3 similar posts with no follow ups.
 
 I thouhgt it might be a RAM problem, so I have tested with 2 different
 modules (256each). The error continues to happen.
 
 Possibly CPU?
 
 I am at a loss, thank you in advance for any ideas...
 
 Gable
 


The problem was the SCSI card. For some reason, it didnt like writing
a bunch of small directories and files (installing /usr/ports). It
would pass the error and reboot.

I tried 3 different cpu's on 2 different motherboards. 3 different RAM modules.

If anyone has had any experience with these controllers, and has any
idea where to go, I would certainly appreciate it. I hate to write off
the card as toast..

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


5.2.1 install error

2004-12-13 Thread Gable Barber
Hello,
I am trying to install FreebSD 5.2.1 from CD, on the following box, I
am getting an error when it is installing /usr/ports.

The gear:

Duron 1000
512meg RAM
Mylex Acceleraid 150 (DAC960)
4x9G IBM SCSI drives (7200rpm)

The error :

anic: free: address 0xc978f00 has not been allocated

cpuid:0

syncing discs 

from there it counts about 4 lines of 4 digit codes, then reboots..

I have searched the questions archive, and google.com/bsd without much
avail. There were 2-3 similar posts with no follow ups.

I thouhgt it might be a RAM problem, so I have tested with 2 different
modules (256each). The error continues to happen.

Possibly CPU?

I am at a loss, thank you in advance for any ideas...

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


su: Sorry - 5.2.1 -

2004-11-06 Thread Gable Barber
$ su
su: Sorry
$


The FAQ says to post this first :

$ uname -a
FreeBSD tcb.garagemoderne.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0:
Mon Feb 23 20:45:55 GMT 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
$


And I cant SSH in as root. I am VERY new to FreeBSD, and am lost. I
have been using Linux (RH9/Fedora) for awhile, so I understand some
basics, but I cannot figure this one out.

Thanks in advance for help.

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


Re: su: Sorry - 5.2.1 -

2004-11-06 Thread Gable Barber
thank you for the help...

I will have to wait until I get home to try it..

Thanks again..

G_



On Sat, 6 Nov 2004 17:32:42 +, Daniel Bye
[EMAIL PROTECTED] wrote:
 On Sat, Nov 06, 2004 at 11:23:44AM -0600, Gable Barber wrote:
  $ su
  su: Sorry
  $
 
 In BSD, you need to be a member of group `wheel' to use su.  Login as
 root, and edit the /etc/group file to add your username to wheel.
 
 Alternatively, use the pw command.  Something like this should work:
 
 # ps user mod username -Gwheel
 
 
 
  The FAQ says to post this first :
 
  $ uname -a
  FreeBSD tcb.garagemoderne.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0:
  Mon Feb 23 20:45:55 GMT 2004
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
  $
 
 
  And I cant SSH in as root. I am VERY new to FreeBSD, and am lost. I
  have been using Linux (RH9/Fedora) for awhile, so I understand some
  basics, but I cannot figure this one out.
 
 The default behaviour of SSH in FreeBSD is to not allow remote root
 login.  If you really must allow root login, edit /etc/ssh/sshd_config
 and add a line
 
 PermitRootLogin yes
 
 If you do this, I suggest you disable password authentication and use
 public key authentication instead.
 
 HTH
 
 Dan
 
 --
 Daniel Bye
 
 PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
 PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
  _
   ASCII ribbon campaign ( )
  - against HTML, vCards and  X
 - proprietary attachments in e-mail / \
 ___
 
 
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

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