Re: NATD: net.inet.ip.fw.default_to_accept="1" vs firewall_type="OPEN"

2013-10-10 Thread Chris Stankevitz
On Thu, Oct 10, 2013 at 8:22 PM, Michael Ross  wrote:
> ipfw always has one default rule, standard is
>
> [snip]
>
> Specifing firewall_type="OPEN" gives you an additional rule


Michael,

Thank you that is exactly what I am seeing.

Chris
___
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"


NATD: net.inet.ip.fw.default_to_accept="1" vs firewall_type="OPEN"

2013-10-10 Thread Chris Stankevitz
Hello,

Handbook section 31.9 describes the setup of NAT.

Section 31.9.3 suggests net.inet.ip.fw.default_to_accept="1" "during
the first attempts to setup a firewall and NAT gateway".

Section 31.9.5 suggests I "specify a predefined firewall ruleset that
allows anything in" with firewall_type="OPEN"

Question: What is the difference between these two configurations (or
where can I go to learn the difference between the two)?

Thank you,

Chris
___
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"


NAT: Handbook vs mailing list

2013-10-07 Thread Chris Stankevitz
http://www.freebsd.org/doc/handbook/network-natd.html

http://lists.freebsd.org/pipermail/freebsd-questions/2011-April/229017.html

Hello,

Handbook section 31.9.3 suggests I should, among other things, add the
line ipdivert_load="YES" to /boot/loader.conf when setting up NAT.

The mailing list message linked above suggests that the handbook
information is the "old way" and that the correct way is to set
ipfw_enable and natd_enable in rc.conf.  "Then /etc/rc.d/ipfw will
load ipfw.ko, and if natd_enable is set, will invoke /etc/rc.d/natd,
which loads ipdivert.ko at the right time."

My inclination is to follow the handbook, but I thought I should first
check to ensure the handbook is up-to-date.

Thank you,

Chris
___
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: KDE post-install steps

2010-07-02 Thread Chris Stankevitz
--- On Fri, 7/2/10, Adam Vande More  wrote:
> What you should be doing is following the freebsd handbook,
> it's specifically written for these types of issues.
> 
>  http://www.freebsd.org/doc/en/books/handbook/x11-wm.html

Adam,

Thank you.  I started out with the handbook but before I reached section 
5.7.2.2, wandered to the "FreeBSD Projects: GNOME" page, then to "FreeBSD 
Projects: KDE".  I should have headed back to the handbook.

Thank you,

Chris


  
___
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: KDE post-install steps

2010-07-02 Thread Chris Stankevitz
--- On Fri, 7/2/10, Chris Stankevitz  wrote:
> KDE:
>  1. cd /usr/ports/x11/kde4, make install clean
>  2. [none listed]
> 
> Q: Does KDE installation have a "Step 2"?

2. Add these lines to ~/.xinitrc:
PATH=/usr/local/kde4/bin:$PATH
export PATH
startkde4

3. Use 'startx' to launch KDE.

Chris


  
___
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: KDE post-install steps

2010-07-02 Thread Chris Stankevitz
--- On Fri, 7/2/10, Polytropon  wrote:
> I think KDE also relies on DBUS and HAL

Ok

> and activating the KDE login manager
> for X (kdm) requires an entry in /etc/ttys similar to the
> one that is suggested for Gnome;

GNOME installation docs suggest adding gnome_enable="YES" to rc.conf.  There is 
no suggestion regarding /etc/ttys.

> (I think it is the correct name, or "startkde4" maybe)

Ok


With respect from someone who wants to "get it right" and "not be dependent on 
the mailing list", I have a question:

The KDE installation page make does not describe:
- rc.conf entries, if any
- tty settings, if any
- KDM start procedures, if any
- the name of the .xinitrc command to start KDE, if any

Does this mean:
a) KDE setup is obvious and I am dumb for not knowing
b) I didn't read the man page well enough
c) KDE is meant for power users, I should stick with GNOME.
d) [your idea here]

> And a general note: The "Step 2" does not belong to the
> installation,
> it already belongs to configuration (i. e. enabling the
> just installed
> piece of software).

I see.  Maybe

e) I'm looking in the wrong place.  Read the docs on "KDE configuration" not 
"KDE installation".

Thank you all for helping me these last few days,

Chris


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


KDE post-install steps

2010-07-02 Thread Chris Stankevitz

Installation instructions for GNOME and KDE:
 http://www.freebsd.org/gnome/docs/faq2.html#q1
 http://freebsd.kde.org/instructions.php

GNOME:
 1. cd /usr/ports/x11/gnome2, make install clean
 2. Add 'gnome_enable="YES"' to rc.conf

KDE:
 1. cd /usr/ports/x11/kde4, make install clean
 2. [none listed]

Q: Does KDE installation have a "Step 2"?

Thank you,

Chris




  
___
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: Convert all packages to ports

2010-07-01 Thread Chris Stankevitz
--- On Thu, 7/1/10, Randal L. Schwartz  wrote:
> Chris> Be prepared to answer hundreds of "options"
> questions.  To take the default option you must press
> "TAB, ENTER" to each query.  Have fun!
> 
> I just hit the letter "O" for "OK".

Randal,

Thank you, pressing "O" is indeed easier than TAB, ENTER.  Unfortunately, I 
already pressed TAB, ENTER about a hundred times.  The build is now going.  
Hopefully any extra "TAB, ENTER" sequences I made will be forgotten by 
portmaster and not used to answer any non-options related questions.

Chris



___
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: Convert all packages to ports

2010-07-01 Thread Chris Stankevitz
--- On Thu, 7/1/10, Chris Stankevitz  wrote:
> Q: Is there a simple way to replace each "package" with the
> locally compiled "port"?

portmaster -f -a

> Ideally the procedure will not ask me any questions

Be prepared to answer hundreds of "options" questions.  To take the default 
option you must press "TAB, ENTER" to each query.  Have fun!

Chris

TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, 
ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER, TAB, ENTER


  
___
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: Convert all packages to ports

2010-07-01 Thread Chris Stankevitz
--- On Thu, 7/1/10, Glen Barber  wrote:
> Once "ports" or "packages" are installed,
> there is no 
> differentiation to the system.

Interesting.  If this is true, then I can just start upgrading my 'pkg_add' 
installed packages using ports and eventually they will all be converted over 
to 'make'.

However, your comment seems to be in disagreement with online warnings of "do 
not mix 'pkg_add' packages with 'make' ports".

My original question's intention was to prevent me from having a system where 
some packages were installed with 'pkg_add' while others were installed with 
'make'.

Thank you,

Chris


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


Convert all packages to ports

2010-07-01 Thread Chris Stankevitz
Hello,

I setup my system using "packages".  I have 675 "packages" installed and 0 
"ports" installed.

Q: Is there a simple way to replace each "package" with the locally compiled 
"port"?

Ideally the procedure will not ask me any questions and will leave me with 0 
installed "packages" and 675 installed "ports".

Thank you,

Chris


  
___
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: pkg_add fails due to 'broken pipe'. Is my system in a consistent state?

2010-06-30 Thread Chris Stankevitz
--- On Wed, 6/30/10, Yuri Pankov  wrote:
> /usr/src/usr.sbin/pkg_install/add/main.c
> static char * getpackagesite(void)
> 
> which constructs URL using ftp.freebsd.org unless
> PACKAGESITE and
> PACKAGEROOT are defined.

Perfect, thank you!

Chris 


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


Reinstalling a package

2010-06-30 Thread Chris Stankevitz

http://lists.freebsd.org/pipermail/freebsd-gnome/2010-June/024394.html

In the above post, a FreeBSD GNOME team member recommends "rebuilding and 
reinstalling sysutils/polkit, sysutils/policykit, and sysutils/consolekit".

Q: How do I "rebuild and reinstall" these applications when they were installed 
originally via "pkg_add -r gnome2"?

A: "pkg_add -r polkit" [fails with the message "already installed"]

Thank you,

Chris


  
___
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: pkg_add fails due to 'broken pipe'. Is my system in a consistent state?

2010-06-30 Thread Chris Stankevitz
> From: Kevin Kinsey 
> > Q2: Where on my hard drive are the bytes that tell
> > pkg_add to use 
> > ftp.freebsd.org when downloading packages?
> 
> You mean like inode number, which cylinder

No, I am looking for a file name.

Thank you,

Chris


  
___
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: rc.conf: gnome_enable="YES" - which instructions executed?

2010-06-30 Thread Chris Stankevitz
> From: Rob Farmer 
> >
> > Q: Where on my hard drive can I find the instructions
> executed to "enable" GNOME?
> 
> This enables dbus, avahi, hal, and gdm (assuming that they
> are
> installed, of course). See the files for those things in
> /usr/local/etc/rc.d for the details of what is run.
> 
> See:
> http://www.freebsd.org/gnome/docs/faq2.html#full-gnome

Rob,

Thank you for your response.  I also saw that comment in the docs; however, I 
am actually not interested in knowing what gnome_enable="YES" does.  I should 
have been more clear.

I would like to learn more about how rc operates.  I want to know where on the 
hard drive the instructions are located that activate when I say 
gnome_enable="YES".  I naively thought I would find a file called 
"/usr/local/etc/rc.d/gnome" -- but I did not.  Something more complicated is 
going on.  So my question is -- how is this working?

Thank you,

Chris


  
___
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: rc.conf: gnome_enable="YES" - which instructions executed?

2010-06-30 Thread Chris Stankevitz
> From: Dan Nelson 
> > Q: Where on my hard drive can I find the instructions
> >executed to "enable" GNOME?
> 
> Try:
> 
> grep "name=.*gnome" /usr/local/etc/rc.d/*

Thank you.  This command returns nothing, but it got me looking in the right 
place.

There are multiple references to gnome_enable within files in this directory: 
/usr/local/etc/rc.d/

The references appear like so:

grep gnome /usr/local/etc/rc.d/*
hald:. /usr/local/etc/gnome.subr
hald:hald_enable=${hald_enable-${gnome_enable}}

Thank you,

Chris


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


rc.conf: gnome_enable="YES" - which instructions executed?

2010-06-30 Thread Chris Stankevitz
My rc.conf file has this entry: gnome_enable="YES"

Q: Where on my hard drive can I find the instructions executed to "enable" 
GNOME?

A: /usr/local/etc/rc.d/gnome [bad answer: file does not exist]

Thank you,

Chris



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


pkg_add fails due to 'broken pipe'. Is my system in a consistent state?

2010-06-30 Thread Chris Stankevitz

pkg_add -r gnome2

This command fails repeatedly with "broken pipe" because the FTP connection 
breaks.  When it dies, I just re-run the command.  I'm now on the fifth attempt.

The gnome2 package is a "meta" package that installs many other packages.

Q1: Is it bad for my FreeBSD system that I keep re-issuing the command "pkg_add 
-r gnome2"?  I'm happy FreeBSD isn't responding "already installed".

Q2: Where on my hard drive are the bytes that tell pkg_add to use 
ftp.freebsd.org when downloading packages?

Q3: I've been using this internet connection for years downloading packages for 
other OSes without trouble.  Why is pkg_add/fetch having so much trouble?

Thank you,

Chris


  
___
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: please help me make sense of top's CPU output

2009-11-03 Thread Chris Stankevitz

Dan Nelson wrote:

Junior Hacker Project: add an instantaneous-CPU value (calculated by
subtracting successive ki_runtime values) to the list of things top
calculates and toggle it and weighted-CPU when pressing C.  The toggling
code is already there; it just toggles between two different weighted-cpu
values at the moment.



Makes sense, thank you.  If I want to hack a port program, I go to the 
"work" directory, edit the source, and rebuild.  How do I hack a 
non-port program like top?


Chris
___
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"


please help me make sense of top's CPU output

2009-11-02 Thread Chris Stankevitz
Hello,

I recently performed a CPU intensive task with Xorg.  When I completed the task 
and Xorg no longer was using the CPU, I got this result from top:

===

last pid:  1201;  load averages:  0.24,  0.10,  0.09up 0+00:29:42
63 processes:  1 running, 62 sleeping
CPU:  1.0% user,  0.0% nice,  0.0% system,  0.0% interrupt, 99.0% idle
Mem: 161M Active, 67M Inact, 68M Wired, 1240K Cache, 41M Buf, 1676M Free
Swap: 4060M Total, 4060M Free

  PID USERNAME THR PRI NICE   SIZERES STATE  C   TIMECPU
 1017 cstankevitz1 1040   366M   331M select 0   3:25 35.89% Xorg

===

Note that the "CPU" row reports 99% idle.
Note that the "CPU" column reports 36% Xorg

I have two questions:

1. Why do these two numbers seem to not agree?  One reports the CPU is not 
being used, the other reports Xorg is using the CPU.

2. How can I change my system so that these two numbers seem to agree?

Thank you,

Chris

PS: conky does the same thing -- I assume this means the seemingly disagreeing 
numbers are coming from the FreeBSD kernel.





  
___
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: (no subject)

2009-10-22 Thread Chris Stankevitz

nicholas addei wrote:

please am not able to install gnome on freebsd 7.2,after loging in as root



You need to follow these instructions:

http://www.freebsd.org/gnome/index.html

Chris
___
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: Is this card supported: Broadcom BCM94312MCGSG

2009-10-22 Thread Chris Stankevitz

Yuri wrote:

I have a netbook which I would like to install FreeBSD on.

I am going to order a new harddrive. But will this Broadcom card  be 
supported or I also need to get another miniPCI replacement card?


I got my broadcom 5756ME working by just adding a reference to it in 
if_bge.c and recompiling the kernel:


http://www.mail-archive.com/freebsd-questions@freebsd.org/msg222481.html

Chris
___
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: man quits back to the prompt after CTRL-G

2009-10-13 Thread Chris Stankevitz

Bill Campbell wrote:

The -e and -E options to less control this.  You want neither of
these specified if you don't want to have less automatically exit
at end-of-file.  The ``-e'' option causes it to exit the second
time it hits eof while ``-E'' exits the first time.


Bill,

Thank you for your explanation.  I hope to find that my PAGER 
environment variable is "less -E".  If so, I will drop the -E.


Chris

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


View font selection

2009-10-13 Thread Chris Stankevitz
Hello,

Question: What command should I issue to see what each of my installed x11 
fonts looks like?

Thank you,

Chris


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


man quits back to the prompt after CTRL-G

2009-10-13 Thread Chris Stankevitz
Please try this:

1. at the prompt type "man man" to get the man manual page.
2. press CTRL-G to to to the bottom of the document
3. press k to scroll up one line

You'll notice you cannot perform step 3 because man "quits back to the prompt 
after CTRL-G".

Question: How can I make man not "quit back to the prompt after CTRL-G"?

Thank you,

Chris


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


/ almost out of space just after installation

2009-10-06 Thread Chris Stankevitz
Hello,

I just installed FreeBSD. After I installed it, I was surprised to find only 
26M of space on /.  I used the auto-defaults during the Disklabel portion of 
the install.

[cstankev...@crs-m6300 ~]$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s1a496M430M 26M94%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad4s1e496M 14K456M 0%/tmp
/dev/ad4s1f113G1.9G102G 2%/usr
/dev/ad4s1d2.9G7.9M2.6G 0%/var

Q1: Is 26M free space on / after installing FreeBSD normal?

Q2: Will I be able to install GNOME, Firefox, download 30 MB of files, and 
place them on my GNOME dekstop?  (I believe the desktop is located at 
/home/cstankevitz/.desktop aka on the root partition where there is only 26M of 
free space)

Q3: Which changes, if any, should I make to my system?

Thank you,

Chris


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


Howto: ethernet card on dell M6300

2009-10-06 Thread Chris Stankevitz
I was saddened to find that my ethernet card did not work on my FreeBSD 7.2 
machine.  The bge driver in the kernel did not support the broadcom 5756ME.  
Here is how I got it to work:

1. Set my machine up to compile the kernel (see section 8.5 of manual)

2. Edit /usr/src/sys/dev/bge/if_bgereg.h.  Add a definition for 
BCOM_DEVICEID_BCM5756ME with the value 0x1674 after BCOM_DEVICEID_BCM5755M:
#define BCOM_DEVICEID_BCM5755M  0x1673
#define BCOM_DEVICEID_BCM5756ME 0x1674
#define BCOM_DEVICEID_BCM5780   0x166A

3. Edit /usr/src/sys/dev/bge/if_bge.c.  Add a reference to 
BCOM_DEVICEID_BCM5756ME after BCOM_DEVICEID_BCM5755M:
{ BCOM_VENDORID,BCOM_DEVICEID_BCM5755M },
{ BCOM_VENDORID,BCOM_DEVICEID_BCM5756ME },
{ BCOM_VENDORID,BCOM_DEVICEID_BCM5780 },

4. Compile and install the kernel, and reboot

5. Configure the card using sysinstall

Chris


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


Updating the ports collection

2009-10-06 Thread Chris Stankevitz


The FreeBSD handbook section 4.5.1 describes several methods for 
obtaining the ports collection including CVSup, Portsnap, and sysinstall.


Section 4.5.1 also describes how to update the ports collection, but 
only for the CVSup and Portsnap methods.


Q1: How do I update the ports collection after using sysinstall to 
obtain it?


Q2: Is this explained in the handbook?  If so, where?

Thank you,

Chris

PS: I uses sysinstall to obtain the ports collection from the CD during 
OS install

___
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 "Projects"

2009-10-06 Thread Chris Stankevitz


Hello,

I recently stumbled across "The FreeBSD GNOME Project" webpage which is 
filled with detail and great instructions.  It is located at 
http://www.freebsd.org/gnome/index.html


Q1: Where can I find the FreeBSD page that links to "The FreeBSD GNOME 
project" webpage?


Q2: Where can I find a list of other such "projects"?

Thanks,

Chris
___
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 kernel ethernet device driver

2009-08-21 Thread Chris Stankevitz

Hello,

I once had a problem in linux "sometimes connecting to windows file 
sharing with CIFS is extremely slow."  After too much searching, I 
discovered the problem was a buggy kernel device driver for some lame 
ethernet card I bought.


Which kernel ethernet device driver works best under FreeBSD?  I want to 
purchase an ethernet card that uses that driver.


Thank you,

Chris
___
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: Packages available for different FreeBSD versions

2009-08-17 Thread Chris Stankevitz

Chuck Swiger wrote:
Yes, all of the above.  Basically, ports (or packages) install under 
/usr/local; everything else under /bin, /usr/bin, etc is part of the 
core OS.


Okay, I think I understand now.

Applications on a FreeBSD machine are broken into two categories:
1. Applications installed under /bin, /usr/bin, etc
2. Applications installed under /usr/local

The first group is called "core OS applications".  The second is called 
"ports applications."  FreeBSD developers think carefully before 
deciding in which group to place a new application.


Update applications in the first group using freebsd-update but first 
decide whether you want RELEASE, STABLE, or CURRENT.  Update 
applications in the second group using CVS on the ports tree.


Sometimes applications in the second group will require an update to the 
first group with a message like "Does not compile on FreeBSD < 7.0"


Some applications are in both groups and can exist simultaneously, such 
as GCC.


Thank you for your help everyone.  I am eager to try FreeBSD -- I had to 
install it recently and I loved the documentation.  Been using Gentoo 
for many years.


Chris
___
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: Packages available for different FreeBSD versions

2009-08-17 Thread Chris Stankevitz

Chuck Swiger wrote:
If you just want security updates and no other changes, you'd update 
against RELENG_7_2 instead.


Here are you referring only to security updates to the "core OS" and not 
applications in "ports" such as Firefox?


In the BSDs, the baseline or core OS is separate 
from installed ports or packages, and is updated separately from them.


What's an example of something that is in "the core OS" and not in the 
"ports"?  GCC?  the shells?  the kernel?


Thank you,

Chris
___
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: Packages available for different FreeBSD versions

2009-08-17 Thread Chris Stankevitz

Chuck,

Thank you for your help.  I have two questions:

Chuck Swiger wrote:
Ports are not branched-- there is no STABLE or CURRENT for ports.  The 
same ports tree can be used on 6.x, 7.x, and 8-CURRENT.


1. With what is the STABLE/CURRENT tag associated?
a) "core operating system version number"
b) the ports collection
c) something else

What are the repercussions of never updating the "core operating 
system version number"?


Well, you'll miss ongoing security updates and improvements to the 
system.


2. I thought security updates and improvements to the system would 
arrive via the ports mechanism.  What kinds of things are not updated 
via ports?  (My experience is with Gentoo where everything is updated 
via portage and there is no "core operating system version number").


Thanks again,

Chris
___
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: Packages available for different FreeBSD versions

2009-08-17 Thread Chris Stankevitz

Andrew Gould wrote:

Once you're installed a RELEASE, you can update it to STABLE by


Andrew,

Thank you for your helpful reply.  Please tell me if you think I have 
the correct understanding:


When I install FreeBSD, I am installing a "core operating system version 
number" (your term).  Then I may choose to install the "ports" as either 
"STABLE" or "CURRENT" neither of which is associated with any "core 
operating system version number".  From this point on, all application 
updates will arrive via "ports" .


A question:

Imaging one person installs FreeBSD-6.4 RELEASE and updates to STABLE 
ports.  Another installs FreeBSD-7.2 RELEASE and also updates to STABLE 
ports.  Are there any applications that the FreeBSD-6.4 person cannot 
install (e.g. the latest apache or VirtualBox)?  If so, by what 
mechanism is he prevented?  What are the repercussions of never updating 
the "core operating system version number"?


FYI my experience is with Gentoo which as no "core operating system 
version number".  All system  updates come from "portage" (like your ports).


> ftp://ftp.freebsd.org/pub/FreeBSD/ports/
>
> They are arranged by computer architecture and release number.  There
> are also stable directories for certain releases.

Thank you for providing this.  It raises two questions:

1. If the STABLE ports tree is not associated with a "core operating 
system version number", why are there two directories for STABLE packages:


ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-6-stable/
ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7-stable/

2. What is the difference between these two?
ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7.2-release/
ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7-stable/

My guess:
The first is the packages that were made available in the 7.2 RELEASE CDs.

The second is a directory that is re-created every 5 minutes by updating 
the ports collection and compiling all the applications in it.


Thank you for your help!

Chris
___
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"


Packages available for different FreeBSD versions

2009-08-17 Thread Chris Stankevitz


Hello,

Hello, I have two questions:

1. Is it true that I have the choice to run these versions of FreeBSD:

8.0 CURRENT
7.2 RELEASE
7.2 STABLE
7.2 CURRENT
7.1 RELEASE
7.1 STABLE
7.1 CURRENT
7.0 RELEASE
7.0 STABLE
7.0 CURRENT
6.4 RELEASE
6.4 STABLE
6.4 CURRENT

2. For each of the versions above, what version of GCC and VirtualBox is 
available?  I don't intend for this questions to directly be answered -- 
I'm hoping for a site that lists the versions of all packages available 
for a particular version of FreeBSD like this page for gentoo: 
http://packages.gentoo.org/package/www-client/mozilla-firefox


Thank you,

Chris
___
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: Strange timing when reading from the serial port

2009-08-07 Thread Chris Stankevitz

Chris Stankevitz wrote:
Q: What is the source of the alternating +/- 5ms bias that comes and 
goes every few seconds?


This helps: add these lines to /boot/device.hints and reboot

hint.sio.0.flags="0x20"
hint.sio.1.flags="0x20"

Chris
___
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"


Time quantization when reading from serial port

2009-08-07 Thread Chris Stankevitz


I receive data on the serial port (flags O_NONBLOCK, VMIN=0, VTIME=0, 
B115200).  The time the data shows up is quantized to 5ms.  Where does 
this 5ms quantization comes from?


Increasing kern.hz to 1 does not reduce this effect.

Thank you,

Chris
___
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"


Strange timing when reading from the serial port

2009-08-06 Thread Chris Stankevitz

Hello,

I have a device that sends one byte over the serial line every 10ms.

Using c, I wrote an application that opens the serial port and reads 
bytes in an infinite loop.  I disabled all blocking (O_NONBLOCK, VMIN=0, 
VTIME=0, B115200).  My CPU spends ~100% of its time calling read() 
[which almost always returns 0].


I compute the time each byte shows up using gettimeofday().  By 
differencing the time of successive samples, I can compute the time it 
took each byte to arrive.  Since the bytes are transmitted at 100Hz, I 
expect to find that delta_time is 10ms.


For several seconds I get good results with  delta_time = 10ms  with a 
noise of ~50us


Then performance deteriorates and I get 10ms + with a noise of ~50us and 
a bias that cycles through 0ms, 5ms, 0ms -5ms.


Then results go back to good.

See a graph of this here (y axis is delta_timeval, x axis is time in sec):

http://img218.imageshack.us/img218/4944/plot1t.gif
http://img12.imageshack.us/img12/9693/plot2.gif
http://img10.imageshack.us/img10/5995/plot3.gif

Q: What is the source of the alternating +/- 5ms bias that comes and 
goes every few seconds?


Possible answers:

1. My external device is sending the bytes strangely (I don't believe 
this, but I can use an oscilliscope to confirm).


2. read() doesn't return within 1ms of the data coming in to the serial 
port.


3. gettimeofday() does not return a time good to 1ms

4. none of the above

Thank you for your help!

Chris

PS: I am using 7.2-RELEASE
___
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"