Re: how to enforce password change at first login

2011-03-29 Thread Yuri Pankov
On Wed, Mar 30, 2011 at 06:10:11AM +0100, Michael wrote:
> Hi,
> 
> How can I enforce a user to change his password at first login?
> 
> I want to set up ssh access for my friends but I don't want to know 
> their passwords. And I don't trust they will change it just because I've 
> asked to do so.
> 
> I was thinking I can create account with random password and provide it 
> to my users. Then the system would enforce password change at first login.
> 
> Any clues, please?

Something like:
# pw usermod  -p -1

Anyway, see pw(8).


HTH,
Yuri
___
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"


Random kernel blocking loop message (btx halted)

2011-03-29 Thread David Demelier

Hi folks,

Sometimes (really rare), when I boot these messages appears in a 
infinite loop :


http://markand.malikania.fr/Photo0393.jpg

These messages are printed so fast that I can't read it, happily Scroll 
lock key let me take a picture.


When this appears I have no solution instead rebooting with ctrl + alt + 
delete.


My machine is running on a Intel DH55HC with FreeBSD 8.2-RELEASE amd64.

Cheers,

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


how to enforce password change at first login

2011-03-29 Thread Michael

Hi,

How can I enforce a user to change his password at first login?

I want to set up ssh access for my friends but I don't want to know 
their passwords. And I don't trust they will change it just because I've 
asked to do so.


I was thinking I can create account with random password and provide it 
to my users. Then the system would enforce password change at first login.


Any clues, please?
___
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: Easiest desktop BSD distro

2011-03-29 Thread Polytropon
On Tue, 29 Mar 2011 16:56:14 -0700, Chip Camden  
wrote:
> Quoth Polytropon on Wednesday, 30 March 2011:
> > 
> > T: (a deep sigh while rolling his eyes) No, that's not the fuel,
> >that's the tachometer. It is supposed to point at zero if the
> >car is not started. The fuel indicator is usually to the left
> >and smaller that the tachometer, and it should have E written
> >upon it, then a semicircle, then F.
> > 
> 
> And on a VW, it doesn't say "E" and "F" -- it says "0/1" and "1/1".

That's okay - as long as it doesn't say "1/0" which would
cause the operating system of the car to crash, and you have
to send the onboard computer unit to VW Germany in order to
get it replaced. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Easiest desktop BSD distro

2011-03-29 Thread Antonio Olivares
> It's the same with computers. No matter what you want to do
> with it, there IS something you need to learn, either BEFORE
> you use it, or WHILE you're using it. With some simple means,
> i. e. using the brain, reading, concluding, understanding,
> THINKING, you're fine in this regards - because it's all
> what is needed to advance to the required point.
>

I will add my $0.02 to this thread.  Polytropon & others here, what
they have suggested to OP, is that if he wants to succeed with
FreeBSD, he will need to put some work into it.  As with most things
in life, this is very much true.  There is not much handholding like
Ubuntu/Mint/name-of-some-version-of-linux here, but in all of
them, you have to invest a bit in them too!  I am not an expert and  I
have run into some problems myself, but I can't blame the OS for not
being easy or idiot proof.  I have sometimes gotten into trouble but
the folks here on the list have been very helpful and have answered
most of time.  Exceptions do exist when I was trying to update through
ports system as I am not ***all there when it comes to updating
FreeBSD with ports/cvsup/portmaster, ..., etc***, I have more
experience from the Linux variants, Slackware/Fedora/Slax-now-Porteus/
etc, but that does not detract me from having two machines running
FreeBSD one with XFCE as the desktop and one with KDE.  I have not
messed with the updates though :(, I can trash the machine easily and
that is something one can easily do.

The good thing is that there is plenty of documentation i.e, FAQ,
handbook, and the expertise of this list is also a great thing to
have.

Also, I could say that some folks want to know if there is an easy way
to Math like Geometry and some brillant mathematician said ``there is
no royal path to geometry``.   We can conclude the same for FreeBSD or
other BSD that is out there :)

Hope that you and other users out there don't give up and give it a
shot.  It is a great OS, just that one needs to invest some time and
learn to work with it :)

Regards,

Antonio
___
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: Easiest desktop BSD distro

2011-03-29 Thread Chip Camden
Quoth Polytropon on Wednesday, 30 March 2011:
> 
> T: (a deep sigh while rolling his eyes) No, that's not the fuel,
>that's the tachometer. It is supposed to point at zero if the
>car is not started. The fuel indicator is usually to the left
>and smaller that the tachometer, and it should have E written
>upon it, then a semicircle, then F.
> 

And on a VW, it doesn't say "E" and "F" -- it says "0/1" and "1/1".

-- 
.o. | Sterling (Chip) Camden  | http://camdensoftware.com
..o | sterl...@camdensoftware.com | http://chipsquips.com
ooo | 2048R/D6DBAF91  | http://chipstips.com


pgpjhHYrRMDB7.pgp
Description: PGP signature


Re: Easiest desktop BSD distro

2011-03-29 Thread Polytropon
On Tue, 29 Mar 2011 19:23:19 -0400, Jerry  wrote:
> Your approach to the problem neglects to factor in each individual's own
> level of expertise and desires.

I can just speak from my individual point of view. I do NOT
claim that my experiences and knowledge are universal. Therefore,
my view is limited, which I honestly can admit.



> Example: there are millions of cars and drivers in the world.

Ah, people LOVE car analogies. :-)



> Now, how
> many of those drivers truly want to do more than drive their vehicle
> from point A to point B unencumbered by the nuances of their vehicle?
> Now, if an individual wants to learn to be a class 1 mechanic, that is
> fine; however, requiring it to just operate a vehicle is absurd.

Let me use your example and make a computer relation projection
into that analogy:

People who want to use a car to get from A to be do not have
to be class 1 mechanics. However, they need to know the rules
of the traffic, all the funny signs and the lights, the round
thing in the middle, the 4 round rubber things, the things
where you press with feet, and that special magic key that
makes the engine start. Denying that those require LEARNING
and PRACTICING is just denying reality.

Example:

Tech: Driver tech support. How may I serve you?

Driver: This my car doesn't start.

T: I see. What is the car's brand name, model, manufacture year?

D: I don't know. I bought it to get to the market, why would I
   give a damn.

T: Alright, alright, relax. Let's try to fix it without this
   information (sigh). Is there any fuel in the tank?

D: Hmm Fuel, you say. How would I know?

T: Look at the control panel. Where does the arrow point, E or F?

D: Where is the control panel?

T: It should be tight behind the steering wheel, if you are
   sitting in the driver's chair.

D: Ah! I see... There are a lot of arrows here, which one should
   I look at?

T: Look at the one which has E or F written near it. There might be
   a gas station drawn near it as well.

D: Ahhh! I see. The arrow points at zero.

T: What do you mean, zero?

D: Yes! Right at zero. And there is also x1000 written near the
   arrow. Is that the model of the car? X-1000?

T: (a deep sigh while rolling his eyes) No, that's not the fuel,
   that's the tachometer. It is supposed to point at zero if the
   car is not started. The fuel indicator is usually to the left
   and smaller that the tachometer, and it should have E written
   upon it, then a semicircle, then F.

D: Ahhh. I see, I see! The arrow is between E and F.

T: Excellent! Then we know at least that you have fuel. Now let's
   check the battery. Do you see the steering wheel?

D: Yeah.

T: Press right in the middle of it.

D: (a loud beep) Hey! Is it supposed to do that?

T: (rolls his eyes) Everything is allright, that's your honk.
   If it works, then the battery is fine. Now let's try to start
   the car.

D: Well, damn, I'm telling you it doesn't start. That s why I'm
   calling, moron.

T: (grits his teeth) Still, let s try again! Press the clutch
   pedal, press the brakes, and turn the key.

D: Hey-hey! From the beginning. Where is this catch pedal?

T: CLUTCH under the steering wheel on the left. Did you find it?

D: Found it.

T: Press it down as far as it goes. Good. Now, do you see two
   pedals under the steering wheel to the right?

D: Yeah.

T: The one on the left is the brake. Press it. Did you?

D: Done.

T: Now turn the key in the ignition.

D: How would I do that, if I have both hands busy?

T: Excuse me?

D: I am pressing with the left hand on the catch, the right hand
   on the brake, how the hell am I supposed to turn the key?

T: (chokes from laughter) Allright, let s try again, but this
   time, press the pedals with your feet.

D: Feet? Is that possible?

T: (still chokes from laughter) Yes, it is.

D: Let's try. Hey, that's much easier! Why didn't you tell me right
   away? ... (some fuss is heard) Allright, I pressed it.

T: Now turn the key in the ignition.

D: Where is the ignition?

T: In the base of the steering wheel, to the right.

D: Hmmm. I have the hole, but there is no key there.

T: Well, put it in.

D: What?

T: (loses his patience) The ignition key!

D: How would I know which one is the ignition key?

T: (grabs his head) It is usually the biggest key in the bunch.

D: The bunch.

T: Yes, where you keep the rest of the keys.

D: Ahhh! Well, I lost it two days ago. So what, I need a key?

T: (throws down the receiver) Bep...

D: Hello???

***
Original source here: http://www.techtales.com/tftechs.php?m=200905#9322
I hope it's okay that I put the full text on-list. I have
added some punctuation.



So you see, even in the "easy world of cars", there definitely
IS something you need to know.

It's the same with computers. No matter what you want to do
with it, there IS something you need to learn, either BEFORE
you use it, or WHILE you're using it. With some simple means,
i. e. using the brain, reading, concluding, understanding,

Re: Easiest desktop BSD distro

2011-03-29 Thread Jerry
On Wed, 30 Mar 2011 00:00:07 +0200
Polytropon  articulated:

> On Tue, 29 Mar 2011 17:39:36 -0400, Jerry McAllister
>  wrote:
> > Just a nit here -- I would think of BSD as less cluttered 
> > rather than simpler.   
> 
> The definition of "simple" is individual, it depends on
> present knowledge and the ability of thinking (concluding,
> deriving, understanding).
> 
> Simple things SIMPLE, complex things POSSIBLE. FreeBSD
> utilizes this approach by providing small "units" that
> fulfill a certain purpose and that can be combined to
> do something more complex, instead of trying to build
> a "one size fits all" complex that denies the simplest
> choices. Sadly, such things are more common in software
> than you want them to be...
> 
> 
> 
> > Those that have all the extra built-ins with no thinking required
> > tend to be more complicated, not simpler.  They just cover it up
> > by allowing fewer choices -- as you imply above.  
> 
> A good preconfiguration does help. If common tasks are
> already well prepared, built-ins can be very helpful.
> Instead, you often find a "pile of garbage" in software
> that you're forced to pick what you intend to use, always
> hoping it will work as intended. If problems occur and
> you want to diagnose what's wrong - well, big problem.
> As nobody thought of doing so, you don't have the option
> to diagnose anything.
> 
> Is THAT simple? I don't think so.
> 
>   ++
>   ||
>   |  An error occured! |
>   ||
>   | (Yes)   (No)   (All)   |
>   ||
>   ++
> 
> :-)
> 
> The often called attribute "simple" does take the opportunity
> to LEARN. As it has been initially mentioned, the OP wants
> to learn BSD. So how can anybody learn if there is no way to
> do so, because the "simple" concept states: You'll do it THAT
> way. You can't do it differently. If it doesn't work, it doesn't
> work. Period. Reboot and try again.
> 
> There's also the belief (as in church) that certain systems
> or programs are simple because WHEN problems occur, they are
> ignored, or solving them is delegated to somebody else who
> has the knowledge and experience to do so. For the user, the
> mystic "It's so simple, it does anything on its own!" prevails
> and gets communicated to others, although it's just wrong.
> Aggressive advertising also uses this approach. After all,
> I'll repeat my statement: PCs are not simple. Face it, it's
> a fact. :-)

Your approach to the problem neglects to factor in each individual's own
level of expertise and desires.

Example: there are millions of cars and drivers in the world. Now, how
many of those drivers truly want to do more than drive their vehicle
from point A to point B unencumbered by the nuances of their vehicle?
Now, if an individual wants to learn to be a class 1 mechanic, that is
fine; however, requiring it to just operate a vehicle is absurd.

When I was a kid, I use to tear down motors and rebuild them for
competition racing. Today, I won't even waste my time changing the oil
on my own car. I don't have the time to waste and I can easily afford
to have others who want to do that for a living attend to it.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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: Easiest desktop BSD distro

2011-03-29 Thread Polytropon
On Tue, 29 Mar 2011 15:16:37 -0700, Charlie Kester  
wrote:
> To really learn any operating system, you have to approach it on its own
> terms and be willing to accept that it has its own way of doing things.
> Its own idioms and paradigms.  It has its own history of design
> decisions, unforeseen consequences and problem resolutions.  Some
> problems that arise on one OS never come up on another, because they
> approach things from entirely different angles.  

A very well formed statement.



> The whole point of learning more than one OS, in my opinion, is to
> explore the strengths and weaknesses of different designs, development
> philosophies and ways of using computers.  Otherwise, you're just being
> a software dilettante.

You basically also learn "thinking approaches", to conclude
things and to estimate facts. This of course requires the OS
and programs to act in a deterministic way. When learning
things about UNIX, you learn POSTABLE things. Even if something
is differently named or done on various UNIXes, you *KNOW*
that they actually are the same (or utilizing the same
service, the same principles, the same ideas). Which this
kind of knowledge, you can find your way around in ANY
UNIX operating system (and often even in Linux) because
those share imporant ideas, and don't abandon them just to
look "new" and "shiny". If you know those basic stuff, you're
even able to locate it deep inside software that claims
to be "all new" and "all different". This enables you to
adopt to many variations of the same "old thing" as you
do know what's "inside" it. ONLY THIS KIND of essential
basic knowledge makes you a real professional - in opposite
to dilletantic artists in IT. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Easiest desktop BSD distro

2011-03-29 Thread Polytropon
On Tue, 29 Mar 2011 16:43:47 -0500, Paul Schmehl  
wrote:
> It might even be useful to have an initial screen that offers options such 
> as "Experienced User, Minimal Prompts", "Familiar User, Additional Prompts 
> and "First Time User, Walk me through it step by step."

Even GeoWorks Ensemble had that back in the early 90s:
New user, average user, experienced user. Depending on
the setting, more or less options where shown, and less
or more defaults have been set.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Easiest desktop BSD distro

2011-03-29 Thread Charlie Kester

On Tue 29 Mar 2011 at 13:59:44 PDT Jerry McAllister wrote:

On Tue, Mar 29, 2011 at 02:45:27PM -0500, Jason Hsu wrote:

I want to learn BSD.  I find that the best way to familiarize myself with a distro is to adopt it as my main distro (for web browsing, email, word processing, etc.).  


But the challenge of BSD have so far proven too much for me.  It would take too 
long to configure FreeBSD to my liking.  I couldn't figure out what to enter in 
GRUB to multi-boot Linux and BSD.  I tried PC-BSD, GhostBSD, and DragonflyBSD 
in VirtualBox.  I've found PC-BSD agonizingly slow to install and operate, and 
KDE didn't even boot up when I logged in.  GhostBSD has too many things that 
don't work, such as the keyboard on my laptop and my Internet connection on my 
desktop.  DragonflyBSD didn't boot up in Virtualbox.

I recommend Linux Mint as a first Linux distro.  It's user-friendly, 
well-established, widely used, includes codecs/drivers that Ubuntu doesn't, and 
has a Windows-like user interface.  For those with older computers, I recommend 
Puppy Linux or antiX Linux as a first distro.  I'm looking for the analogous 
choice in the BSD world.

So what do you recommend as my first desktop BSD distro?  What desktop BSD distro is so 
easy to use that even Paris Hilton or Jessica "Chicken of the Sea" Simpson can 
handle it?

Please keep in mind that I have a slow Internet connection, and these BSD 
distros are ENORMOUS.  It took some 12-14 hours to download PC-BSD.


FreeBSD is just one OS.   There are some other BSD's such as PC-BSD, 
but it is not like Lunix with many different candy coatings over the 
same chewy carmel center.  In BSD, each is its own OS, although there 
are definite similarities.


If you really mean to learn BSD, then download the latest FreeBSD RELEASE
(which is 8.2 at the moment) installation ISO, burn it,  install it, 
configure it and use it.   Everything goes on it easily from /usr/ports/...  
Just follow the handbook.   In FreeBSD, the handbook is your friend 
followed by the man pages and Google.  They are very good compared to

what you find elsewhere on other systems.

If you are not willing to do that, then really you are not that
interested in learning it, so why bother.


To put what Jerry said in another way, if what you mean by "configuring
FreeBSD to my liking" is making it look, feel and behave as much as
possible like the Linux and Windows systems you're familiar with, you
aren't really learning FreeBSD at all.  


To really learn any operating system, you have to approach it on its own
terms and be willing to accept that it has its own way of doing things.
Its own idioms and paradigms.  It has its own history of design
decisions, unforeseen consequences and problem resolutions.  Some
problems that arise on one OS never come up on another, because they
approach things from entirely different angles.  


There are also some rather significant differences in the goals and
tastes of the user communities associated with different OSes.  BSD folk
don't necessarily have the same interests as Linux folk, just as Mac
people are different from Windows people, and Windows people are
different from anyone in the world of Unix-like operatings systems.

And Plan 9 people are different from all the rest of them put together.
;)

The whole point of learning more than one OS, in my opinion, is to
explore the strengths and weaknesses of different designs, development
philosophies and ways of using computers.  Otherwise, you're just being
a software dilettante.


So, just whack on FreeBSD and learn it.   Once you know it pretty well
you can play around with dual booting Lunix if you still want to or
maybe you will discover the cleaner and more straightforward BSD system
more to your liking and just stick with it.  Who knows.  It should only
take a few days.

jerry

___
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: Easiest desktop BSD distro

2011-03-29 Thread Paul Schmehl
--On March 29, 2011 2:23:48 PM -0700 Chip Camden 
 wrote:



Quoth William Brown on Wednesday, 30 March 2011:


On 30/03/2011, at 07:15, Chip Camden wrote:

>> So what do you recommend as my first desktop BSD distro?  What
>> desktop BSD distro is so easy to use that even Paris Hilton or
>> Jessica "Chicken of the Sea" Simpson can handle it?
>
> To each their own, but I wouldn't want a system that Paris Hilton could
> handle any more than I'd want a vehicle that a four-year-old can drive.

There is something to be said for the keep it simple principle however.


Yes, but "keep it simple" need not mean "do everything for you."  Often,
a simpler design means more choices, and more choices means more
responsibility and more steps to completion.


I totally agree.  However, there are different degrees of choices.  For 
example, an installer that says, "Now it's time to partition your disk.  Go 
do that, and when you finish, I'll return you to this screen for the next 
step." is demonstrably different from one that says, "Now it's time to 
partition your disk.  Would you like me to use these displayed defaults? 
Or would you like to make your own decisions?"  Then, once you've selected 
option 2 it says, "What would you like to name this partition? (note, you 
MUST have a root partition, represented by "/".


The former is not "user friendly".  The latter is more so.  Yes, you can go 
to the Handbook and read about partitions, and you can google about them 
and learn more, but the first time you install FreeBSD and you're staring 
at that screen, it's daunting for some folks.


It might even be useful to have an initial screen that offers options such 
as "Experienced User, Minimal Prompts", "Familiar User, Additional Prompts 
and "First Time User, Walk me through it step by step."


--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell

___
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: Easiest desktop BSD distro

2011-03-29 Thread Polytropon
On Tue, 29 Mar 2011 17:39:36 -0400, Jerry McAllister  wrote:
> Just a nit here -- I would think of BSD as less cluttered 
> rather than simpler.   

The definition of "simple" is individual, it depends on
present knowledge and the ability of thinking (concluding,
deriving, understanding).

Simple things SIMPLE, complex things POSSIBLE. FreeBSD
utilizes this approach by providing small "units" that
fulfill a certain purpose and that can be combined to
do something more complex, instead of trying to build
a "one size fits all" complex that denies the simplest
choices. Sadly, such things are more common in software
than you want them to be...



> Those that have all the extra built-ins with no thinking required
> tend to be more complicated, not simpler.  They just cover it up
> by allowing fewer choices -- as you imply above.  

A good preconfiguration does help. If common tasks are
already well prepared, built-ins can be very helpful.
Instead, you often find a "pile of garbage" in software
that you're forced to pick what you intend to use, always
hoping it will work as intended. If problems occur and
you want to diagnose what's wrong - well, big problem.
As nobody thought of doing so, you don't have the option
to diagnose anything.

Is THAT simple? I don't think so.

++
||
|  An error occured! |
||
| (Yes)   (No)   (All)   |
||
++

:-)

The often called attribute "simple" does take the opportunity
to LEARN. As it has been initially mentioned, the OP wants
to learn BSD. So how can anybody learn if there is no way to
do so, because the "simple" concept states: You'll do it THAT
way. You can't do it differently. If it doesn't work, it doesn't
work. Period. Reboot and try again.

There's also the belief (as in church) that certain systems
or programs are simple because WHEN problems occur, they are
ignored, or solving them is delegated to somebody else who
has the knowledge and experience to do so. For the user, the
mystic "It's so simple, it does anything on its own!" prevails
and gets communicated to others, although it's just wrong.
Aggressive advertising also uses this approach. After all,
I'll repeat my statement: PCs are not simple. Face it, it's
a fact. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: opening a shared object / failing with Undefined Symbol.

2011-03-29 Thread Jim
On Sat, Mar 26, 2011 at 11:31 PM, Giorgos Keramidas
 wrote:
> On Tue, Mar 22, 2011 at 2:28 PM, Jim  wrote:
>> I have an application that opens two .so files with dlopen(3):
>>  /usr/local/lib/libag_core.so
>>  /usr/local/lib/libag_gui.so
>>
>> Both files exist
>> Running nm(1) against each produces a lot of output, showing all the
>> symbols I know to exist in each library.
>>
>> My application gets a null return from dlopen on the libag_gui.so.
>>
>> dlerror produces the following string:
>>  "/usr/local/lib/libag_gui.so Undefined symbol "agTimingLock"
>>
>> $ nm /usr/local/lib/libag_gui.so | grep agTiming
>>                 U agTimingLock
>>
>> I'm guessing that means that agTimingLock is used in that library but
>> not defined?
>>
>> $ nm /usr/local/lib/libag_core.so | grep agTiming
>> 00141c00 B agTimingLock
>>
>> And this would mean that it is defined in libag_core.so?
>
> Yes, but it's in the uninitialized data section:
>
> % man nm
> ...
>           "B"
>           "b" The symbol is in the uninitialized data section (known as BSS).
>
> What is the "ag" library? Which version are you using? What sort of
> dlopen() call did you try to run?
>

The "ag" library is libagar ( http://libagar.org/ ):

The code amounts to the following:
void * coredl = dlopen("/usr/local/lib/libag_core.so", 0)
void * guidl = dlopen("/usr/local/lib/libag_gui.so", 0)

and the function:
int (*AG_InitCore)(const char * title, int flags);
int (*AG_InitGraphics)(const char * drv);

*((void *)AG_InitCore) = dlsym(coredl, "AG_InitCore");
*((void *)AG_InitGraphics) = dlsym(guidl, "AG_InitGraphics");


The prototypes for the AG_* functions match.


Thanks,
-Jim Stapleton
___
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: Easiest desktop BSD distro

2011-03-29 Thread Polytropon
On Tue, 29 Mar 2011 14:45:27 -0500, Jason Hsu  wrote:
> I want to learn BSD. 

I may emphasize the word LEARN. You'll see why later on. :-)



> I find that the best way to familiarize myself with a distro
> is to adopt it as my main distro (for web browsing, email,
> word processing, etc.).  

This is a typical use for FreeBSD. For example, I'm using it
as my home desktop for many years now.

One thing to keep in mind: In opposite to the Linusi, FreeBSD
does not come in different distributions. It is ONE operating
system. The base system is standardized. You can install
additional software by two means: either from source, using
the ports collection, or from precompiled binary packages.
Depending on your needs, one solution may be better than the
other. You can also use both ways in combination.

Systems like PC-BSD use the FreeBSD operating system (the base
system) and come with software preinstalled and preconfigured.
PC-BSD is very KDE-centric (which maybe is no problem). It
also has a third way of installing software: It seems to be
primarily intended to be friendly to those users who feel
familiar with the strange concept of downloading stuff with
a web browser when they want to install something.



> But the challenge of BSD have so far proven too much for me. 

There is EXCELLENT documentation that will help you: The FAQ
and the handbook can be viewed online. They cover the most
common things related to FreeBSD.

The friendly community of this mailing list will also help
you if you encounter a problem. Please be patient and read
the documentation FIRST. Really, it is that simple, and it
is important.



> It would take too long to configure FreeBSD to my liking. 

Admittedly, building and configuring a system from scratch
takes some time. It also REQUIRES you to have certain knowledge.
Trial & error will lead you nowhere (except into problems).
Still, as you wanted to LEARN FreeBSD, this is a good chance.
You'll learn the basics of UNIX, which are ESSENTIAL if you
want to survive in the UNIX world, no matter if you are on
a BSD, on Linux, or on one of the commercial UNIXes; basically,
you will find yourself in "learning by doing".



> I couldn't figure out what to enter in GRUB to multi-boot
> Linux and BSD. 

As I'm not a "multi-booter", I would assume that it is
sufficient to add an entry to the GRUB configuration file
to point to the slice / partition where you did install
FreeBSD into. It should be /dev/sda, where  is the
correct partition number.

FreeBSD also has its own boot loader. The default MBR boot
system boots FreeBSD. You can also install the boot manager
which would allow you to boot FreeBSD or Linux. I've been
using it in the past, but that was maaany years ago.



> I tried PC-BSD, GhostBSD, and DragonflyBSD in VirtualBox. 

Do you plan to use FreeBSD in a VirtualBox environment or
do you have the chance to install it on "real hardware"?
If so - DO IT. You'll often see better results.

There's also FreeSBIE. It's a lightweight and versatile
FreeBSD live file system that you can boot AND USE from
CD. It's very good for checking hardware compatibility.



> I've found PC-BSD agonizingly slow to install and operate,
> and KDE didn't even boot up when I logged in. 

Maybe you should direct your PC-BSD related questions to the
respective boards or mailing lists.



> GhostBSD has too many things that don't work, such as the
> keyboard on my laptop and my Internet connection on my desktop. 

Okay, that looks like a total no-go.



> DragonflyBSD didn't boot up in Virtualbox.

I'm not sure if this OS - derived from FreeBSD - is primarily
intended for desktop use... but as the BSDs are multi-purpose
operating systems (embedded, desktop, server, mixed forms), it
should be possible...



> I recommend Linux Mint as a first Linux distro. 

I've been starting with Slackware in the 90s... :-)

It taught me the UNIX basics that I can now apply ANYWHERE in
the UNIX world. I'm not sure most "user-friendly" distros do
that anymore, as they tend to hide the essential stuff behind
GUIs. When there is no CLI, you won't learn ANYTHING.



> It's user-friendly, well-established, widely used, includes
> codecs/drivers that Ubuntu doesn't, and has a Windows-like
> user interface. 

The last point would be a no-go for me as I know much better
interfaces (more user-friendly, more productive) from my "IT
career". :-)

Codecs are no problem on FreeBSD, you install them as any other
software. Keep in mind that because of lawyer-blah, lobby-blah
and idiots-blah the codecs are not included in the base system.



> For those with older computers, I recommend Puppy Linux or
> antiX Linux as a first distro.  I'm looking for the analogous
> choice in the BSD world.

All the BSDs have hardware requirements (for the respective
operating systems) that make any "modern" Linux cry. Basically,
you need to CHOOSE WISELY which software you use. There is lots
of good stuff that can even turn "grampa-PCs" into usable
wo

Re: Easiest desktop BSD distro

2011-03-29 Thread Jerry McAllister
On Tue, Mar 29, 2011 at 02:23:48PM -0700, Chip Camden wrote:

> Quoth William Brown on Wednesday, 30 March 2011:
> > 
> > On 30/03/2011, at 07:15, Chip Camden wrote:
> > 
> > >> So what do you recommend as my first desktop BSD distro?  What desktop 
> > >> BSD distro is so easy to use that even Paris Hilton or Jessica "Chicken 
> > >> of the Sea" Simpson can handle it?
> > > 
> > > To each their own, but I wouldn't want a system that Paris Hilton could
> > > handle any more than I'd want a vehicle that a four-year-old can drive.
> > 
> > There is something to be said for the keep it simple principle however. 
> > 
> Yes, but "keep it simple" need not mean "do everything for you."  Often,
> a simpler design means more choices, and more choices means more
> responsibility and more steps to completion.

But often better eventual results.

Just a nit here -- I would think of BSD as less cluttered 
rather than simpler.   

Those that have all the extra built-ins with no thinking required
tend to be more complicated, not simpler.  They just cover it up
by allowing fewer choices -- as you imply above.  

jerry


> 
> -- 
> .o. | Sterling (Chip) Camden  | http://camdensoftware.com
> ..o | sterl...@camdensoftware.com | http://chipsquips.com
> ooo | 2048R/D6DBAF91  | http://chipstips.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: Easiest desktop BSD distro

2011-03-29 Thread Gökşin Akdeniz
> ...I find that the best way to familiarize myself with a distro is to adopt 
> it as my main distro (for web browsing, email, word processing, etc.).

There is no distro in BSDworld. BSD family is complete operating system.
Linux distros are a combination of a kernel and all the tools necessary
for an operating system to work properly.

> 
> But the challenge of BSD have so far proven too much for me.  It would take 
> too long to configure FreeBSD to my liking...
>
BSD operatings system family has many member. Each one is develeoped
with a common criteria that users and -almost- developers are the same
people. So it is not a surprise that you had trouble with the
configuration. The configuration troubles can be solved by reading the
documentation and applying it. Also the hardware has got its nasty part.
Not all hardware are BSD compatible. Some may work and some may not.
Consult the release notes before attempting to installing and trying to
configure the hardware. An unsupported piece of hardware would consume
your time for nothing but pain.
> 
> ...I'm looking for the analogous choice in the BSD world.
>
I have 10+ years old computers that could not run those Linux
distributions you had mentioned but could easily run FreeBSD and OpenBSD
current branches as well as STABLE and RELEASE. There is no analogous
choice for BSD familiy of operatings systems from my point of view
compared to Linux distros you've mentioned. There is no flash for BSD.
Ypu need Linux compatibility and Linux stuff is needed to install flash.
I do not nedd flash. No codec needed on my boxes.
> 
> So what do you recommend as my first desktop BSD distro?
>
There is no BSD distro.
>
> What desktop BSD distro is so easy to use that even Paris Hilton or Jessica 
> "Chicken of the Sea" Simpson can handle it?
>
It is quite common that anyone can suggest PC-BSD for "easy to use"
keeping in mind "casual computer user". Though I am not sure Paris or
Jessica is "casual". I prefer FreeBSD and OpenBSD for my laptops and
desktops also for servers, network management and for all kind of
computing stuff.
> 
> Please keep in mind that I have a slow Internet connection, and these BSD 
> distros are ENORMOUS.  It took some 12-14 hours to download PC-BSD.
> 
Well, try to install OpenBSD as it is straight forward to install.
OpenBSD doetects and configures all the hardware if supported. Installer
is text based. Just answer the questions and you are done. Desktop is
FVWM. You may not like the look and feel. You can install another
desktop or window manager via packages. The ISO files for installation
is quite small ~ 200MiB in size. Consult the OpenBSD FAQ before
downloading and installing it. Patches are released as source code not
binary. You have to compile and install patches, fallow the instructions
of the relevent patches.

And a couple of words:

Read the documentationand make sure you understand it!

Read the release notes and errata!

Check the compatibility of the hardware you have!

Backup you data!

There is no BSD distro thing!

BSD is direct descendent of UNIX! (so things are quite different in BSD
realm)
-- 
Gökşin Akdeniz (Gökşin Akdeniz) 
Anahtar parmakizi/key fingerprint = FE10 8C14 A144 4FDE BE18  D5E3 E758
F49A 8A5D F8AE
[Son kullanma tarihi/expire date: 2011-06-08]



signature.asc
Description: OpenPGP digital signature


Re: Easiest desktop BSD distro

2011-03-29 Thread Chip Camden
Quoth William Brown on Wednesday, 30 March 2011:
> 
> On 30/03/2011, at 07:15, Chip Camden wrote:
> 
> >> So what do you recommend as my first desktop BSD distro?  What desktop BSD 
> >> distro is so easy to use that even Paris Hilton or Jessica "Chicken of the 
> >> Sea" Simpson can handle it?
> > 
> > To each their own, but I wouldn't want a system that Paris Hilton could
> > handle any more than I'd want a vehicle that a four-year-old can drive.
> 
> There is something to be said for the keep it simple principle however. 
> 
Yes, but "keep it simple" need not mean "do everything for you."  Often,
a simpler design means more choices, and more choices means more
responsibility and more steps to completion.


-- 
.o. | Sterling (Chip) Camden  | http://camdensoftware.com
..o | sterl...@camdensoftware.com | http://chipsquips.com
ooo | 2048R/D6DBAF91  | http://chipstips.com


pgppvyL57nMjx.pgp
Description: PGP signature


Re: Easiest desktop BSD distro

2011-03-29 Thread Nerius Landys
> But the challenge of BSD have so far proven too much for me.  It would take 
> too long to configure FreeBSD to my liking.  I couldn't figure out what to 
> enter in GRUB to multi-boot Linux and BSD.  I tried PC-BSD, GhostBSD, and 
> DragonflyBSD in VirtualBox.  I've found PC-BSD agonizingly slow to install 
> and operate, and KDE didn't even boot up when I logged in.  GhostBSD has too 
> many things that don't work, such as the keyboard on my laptop and my 
> Internet connection on my desktop.  DragonflyBSD didn't boot up in Virtualbox.

To boot FreeBSD, you need the code in the master boot record to simply
pass control to the boot sector code sitting in the FreeBSD partiton.
The boot sector code on the FreeBSD partition has everything it needs
to boot FreeBSD.

So, in GRUB:

  title   FreeBSD
  root(hd0,2)
  makeactive
  chainloader +1

(hd0,2) means FreeBSD is on the 3rd partition of the hard drive.

Side note: When you install FreeBSD there is an option to "don't touch
the MBR" (master boot record).  However in practice and with certain
versions of FreeBSD I have found that even with the "don't touch"
selected, it still modifies little things in the MBR.  Therefore, I
would recommend backing up the 512 bytes in the MBR on your system so
that you can restore in case things become unbootable, which was the
case for me when I installed CURRENT a few days ago.

Another side note:  FreeBSD might not be for the faint at heart.  It's
very powerful however.  For me, FreeBSD is an opportunity to learn
more about how computers actually work.  And I'm delighted by the
experience.
___
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: Easiest desktop BSD distro

2011-03-29 Thread William Brown

On 30/03/2011, at 07:15, Chip Camden wrote:

>> So what do you recommend as my first desktop BSD distro?  What desktop BSD 
>> distro is so easy to use that even Paris Hilton or Jessica "Chicken of the 
>> Sea" Simpson can handle it?
> 
> To each their own, but I wouldn't want a system that Paris Hilton could
> handle any more than I'd want a vehicle that a four-year-old can drive.

There is something to be said for the keep it simple principle however. 

> I want to learn BSD.  I find that the best way to familiarize myself with a 
> distro is to adopt it as my main distro (for web browsing, email, word 
> processing, etc.).  
> 
> But the challenge of BSD have so far proven too much for me.  It would take 
> too long to configure FreeBSD to my liking.  I couldn't figure out what to 
> enter in GRUB to multi-boot Linux and BSD.


If you want to learn, then facing challenges is the best way to learn. Be 
prepared to spend some time doing research. Have two computers on hand, one 
with your FreeBSD, and another with linux or something known working on it that 
you can do your research on. Backup everything before you start, in case of the 
worst. I have wiped many machines by accident while learning (and as such learn 
the value of backups and how to restore systems). 

You will not master anything unless you actually put in the time and effort. 
Facing challenges will catalyse this process. 

Sincerely,

William Brown

Research & Teaching, Technology Services
The University of Adelaide, AUSTRALIA 5005

CRICOS Provider Number 00123M
-
IMPORTANT: This message may contain confidential or legally privileged
information. If you think it was sent to you by mistake, please delete all
copies and advise the sender. For the purposes of the SPAM Act 2003, this
email is authorised by The University of Adelaide.

pgp.mit.edu





PGP.sig
Description: This is a digitally signed message part


Re: Easiest desktop BSD distro

2011-03-29 Thread Chip Camden
> So what do you recommend as my first desktop BSD distro?  What desktop BSD 
> distro is so easy to use that even Paris Hilton or Jessica "Chicken of the 
> Sea" Simpson can handle it?

To each their own, but I wouldn't want a system that Paris Hilton could
handle any more than I'd want a vehicle that a four-year-old can drive.

-- 
.o. | Sterling (Chip) Camden  | http://camdensoftware.com
..o | sterl...@camdensoftware.com | http://chipsquips.com
ooo | 2048R/D6DBAF91  | http://chipstips.com


pgpRQg722vvD7.pgp
Description: PGP signature


Re: Easiest desktop BSD distro

2011-03-29 Thread Jerry McAllister
On Tue, Mar 29, 2011 at 02:45:27PM -0500, Jason Hsu wrote:

> I want to learn BSD.  I find that the best way to familiarize myself with a 
> distro is to adopt it as my main distro (for web browsing, email, word 
> processing, etc.).  
> 
> But the challenge of BSD have so far proven too much for me.  It would take 
> too long to configure FreeBSD to my liking.  I couldn't figure out what to 
> enter in GRUB to multi-boot Linux and BSD.  I tried PC-BSD, GhostBSD, and 
> DragonflyBSD in VirtualBox.  I've found PC-BSD agonizingly slow to install 
> and operate, and KDE didn't even boot up when I logged in.  GhostBSD has too 
> many things that don't work, such as the keyboard on my laptop and my 
> Internet connection on my desktop.  DragonflyBSD didn't boot up in Virtualbox.
> 
> I recommend Linux Mint as a first Linux distro.  It's user-friendly, 
> well-established, widely used, includes codecs/drivers that Ubuntu doesn't, 
> and has a Windows-like user interface.  For those with older computers, I 
> recommend Puppy Linux or antiX Linux as a first distro.  I'm looking for the 
> analogous choice in the BSD world.
> 
> So what do you recommend as my first desktop BSD distro?  What desktop BSD 
> distro is so easy to use that even Paris Hilton or Jessica "Chicken of the 
> Sea" Simpson can handle it?
> 
> Please keep in mind that I have a slow Internet connection, and these BSD 
> distros are ENORMOUS.  It took some 12-14 hours to download PC-BSD.

FreeBSD is just one OS.   There are some other BSD's such as PC-BSD, 
but it is not like Lunix with many different candy coatings over the 
same chewy carmel center.  In BSD, each is its own OS, although there 
are definite similarities.

If you really mean to learn BSD, then download the latest FreeBSD RELEASE
(which is 8.2 at the moment) installation ISO, burn it,  install it, 
configure it and use it.   Everything goes on it easily from /usr/ports/...  
Just follow the handbook.   In FreeBSD, the handbook is your friend 
followed by the man pages and Google.  They are very good compared to
what you find elsewhere on other systems.

If you are not willing to do that, then really you are not that
interested in learning it, so why bother.

As for the Grub issue, I have dual booted FreeBSD alongside of 
various MS stuff many times with no problem and no need of Grub.
I just make sure the MS is installed first and then use the FreeBSD MBR.
It is quite plain and not pretty, but works just fine.   I haven't
tried W-7 yet.

But, although I have installed numerous Linux machines, mostly CentOS,
and they use Grub, I have never dual booted a Linux and never had to
configure Grub to deal with that.   I think, a long time and many 
versions ago, the FreeBSD MBR could boot the more well known Linuxen 
in a dual boot situation, but who knows how more weird it has gotten
since then.

I am quite certain that Grub will boot FreeBSD, because FreeBSD still
uses the most standard, most common old fashioned DOS boot protocol
to get started -- and just getting the first block read in and executing
is all you need of the MBR which is what Grub is as well as FreeBSD MBR.

So, just whack on FreeBSD and learn it.   Once you know it pretty well
you can play around with dual booting Lunix if you still want to or
maybe you will discover the cleaner and more straightforward BSD
system more to your liking and just stick with it.  Who knows.
It should only take a few days.

jerry


> 
> -- 
> Jason Hsu 
> ___
> 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-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: Easiest desktop BSD distro

2011-03-29 Thread Anton Shterenlikht
On Tue, Mar 29, 2011 at 02:45:27PM -0500, Jason Hsu wrote:
> I want to learn BSD.  I find that the best way to familiarize myself with a 
> distro is to adopt it as my main distro (for web browsing, email, word 
> processing, etc.).  
> 
> But the challenge of BSD have so far proven too much for me.  It would take 
> too long to configure FreeBSD to my liking.  I couldn't figure out what to 
> enter in GRUB to multi-boot Linux and BSD.  I tried PC-BSD, GhostBSD, and 
> DragonflyBSD in VirtualBox.  I've found PC-BSD agonizingly slow to install 
> and operate, and KDE didn't even boot up when I logged in.  GhostBSD has too 
> many things that don't work, such as the keyboard on my laptop and my 
> Internet connection on my desktop.  DragonflyBSD didn't boot up in Virtualbox.
> 
> I recommend Linux Mint as a first Linux distro.  It's user-friendly, 
> well-established, widely used, includes codecs/drivers that Ubuntu doesn't, 
> and has a Windows-like user interface.  For those with older computers, I 
> recommend Puppy Linux or antiX Linux as a first distro.  I'm looking for the 
> analogous choice in the BSD world.
> 
> So what do you recommend as my first desktop BSD distro?  What desktop BSD 
> distro is so easy to use that even Paris Hilton or Jessica "Chicken of the 
> Sea" Simpson can handle it?
> 
> Please keep in mind that I have a slow Internet connection, and these BSD 
> distros are ENORMOUS.  It took some 12-14 hours to download PC-BSD.
> 

I'm not sure I understand the question.
Have you actually installed FreeBSD?
Are you familiar with FreeBSD Ports system?


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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: Easiest desktop BSD distro

2011-03-29 Thread Gary Gatten
I've always "heard" PC-BSD is the way to go on the desktop, so if that's not 
going too well then I'm not sure.

I don't think there is a BSD that Paris and Jessica would be able to install.  
Then again, that's not really what made them noteworthy.

 
-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Jason Hsu
Sent: Tuesday, March 29, 2011 2:45 PM
To: freebsd-questions@freebsd.org
Subject: Easiest desktop BSD distro

I want to learn BSD.  I find that the best way to familiarize myself with a 
distro is to adopt it as my main distro (for web browsing, email, word 
processing, etc.).  

But the challenge of BSD have so far proven too much for me.  It would take too 
long to configure FreeBSD to my liking.  I couldn't figure out what to enter in 
GRUB to multi-boot Linux and BSD.  I tried PC-BSD, GhostBSD, and DragonflyBSD 
in VirtualBox.  I've found PC-BSD agonizingly slow to install and operate, and 
KDE didn't even boot up when I logged in.  GhostBSD has too many things that 
don't work, such as the keyboard on my laptop and my Internet connection on my 
desktop.  DragonflyBSD didn't boot up in Virtualbox.

I recommend Linux Mint as a first Linux distro.  It's user-friendly, 
well-established, widely used, includes codecs/drivers that Ubuntu doesn't, and 
has a Windows-like user interface.  For those with older computers, I recommend 
Puppy Linux or antiX Linux as a first distro.  I'm looking for the analogous 
choice in the BSD world.

So what do you recommend as my first desktop BSD distro?  What desktop BSD 
distro is so easy to use that even Paris Hilton or Jessica "Chicken of the Sea" 
Simpson can handle it?

Please keep in mind that I have a slow Internet connection, and these BSD 
distros are ENORMOUS.  It took some 12-14 hours to download PC-BSD.

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








"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


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


Easiest desktop BSD distro

2011-03-29 Thread Jason Hsu
I want to learn BSD.  I find that the best way to familiarize myself with a 
distro is to adopt it as my main distro (for web browsing, email, word 
processing, etc.).  

But the challenge of BSD have so far proven too much for me.  It would take too 
long to configure FreeBSD to my liking.  I couldn't figure out what to enter in 
GRUB to multi-boot Linux and BSD.  I tried PC-BSD, GhostBSD, and DragonflyBSD 
in VirtualBox.  I've found PC-BSD agonizingly slow to install and operate, and 
KDE didn't even boot up when I logged in.  GhostBSD has too many things that 
don't work, such as the keyboard on my laptop and my Internet connection on my 
desktop.  DragonflyBSD didn't boot up in Virtualbox.

I recommend Linux Mint as a first Linux distro.  It's user-friendly, 
well-established, widely used, includes codecs/drivers that Ubuntu doesn't, and 
has a Windows-like user interface.  For those with older computers, I recommend 
Puppy Linux or antiX Linux as a first distro.  I'm looking for the analogous 
choice in the BSD world.

So what do you recommend as my first desktop BSD distro?  What desktop BSD 
distro is so easy to use that even Paris Hilton or Jessica "Chicken of the Sea" 
Simpson can handle it?

Please keep in mind that I have a slow Internet connection, and these BSD 
distros are ENORMOUS.  It took some 12-14 hours to download PC-BSD.

-- 
Jason Hsu 
___
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: Using "/etc/rc.d/netif start"

2011-03-29 Thread Nerius Landys
> In my experience, I've found it best to restart 'routing,' as well.
>
> /etc/rc.d/routing restart

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


Re: Using "/etc/rc.d/netif start"

2011-03-29 Thread Jason Helfman

On Tue, Mar 29, 2011 at 10:40:19AM -0700, Nerius Landys thus spake:

First off, I'm on 9.0-CURRENT-i386, but I don't think that will make a
difference for purposes of my question.  I think the freebsd-current
folks are expecting questions that are much harder than this one.

I'm trying to use /etc/rc.d/netif to bring down and bring back up all
network interfaces, because I'm trying to get the correct entries in
/etc/rc.conf for testing some extra network cards.

So right now, my /etc/rc.conf looks like this:

defaultrouter="192.168.0.254"
hostname="elmer.i"
ifconfig_em0="inet 192.168.0.6 netmask 255.255.255.0"

/etc/resolv.conf looks like this:

domain  i
nameserver  192.168.0.254

I'm basically in a LAN.  When I boot up this "elmer.i" machine,
everything works well.

Then, I do the following two commands:

 /etc/rc.d/netif stop
 /etc/rc.d/netif start

After these, I'm still able to ping a raw IP LAN address such as
192.168.0.254.  However, two problems start occurring:

1. I cannot ping an IP address that is outside of my LAN, e.g.

ping 64.156.192.169

PING 64.156.192.169 (64.156.192.169): 56 data bytes
ping: sendto: No route to host

2. DNS (via 192.168.0.254 nameserver) won't work at first, but starts
to magically work when I for example enable sshd and log in to elmer
from another host on the LAN


So the nut of my question is, I think "/etc/rc.d/netif stop" stops
some additional things such as packet routing that the corresponding
"/etc/rc.d/netif start" command won't start back up.  So what is the
best way to bring down the network and bring it back up again for
purposes of testing /etc/rc.conf syntax?


In my experience, I've found it best to restart 'routing,' as well.

/etc/rc.d/routing restart

-jgh

--
Jason Helfman
System Administrator
experts-exchange.com
http://www.experts-exchange.com/M_4830110.html
E4AD 7CF1 1396 27F6 79DD  4342 5E92 AD66 8C8C FBA5
___
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"


Using "/etc/rc.d/netif start"

2011-03-29 Thread Nerius Landys
First off, I'm on 9.0-CURRENT-i386, but I don't think that will make a
difference for purposes of my question.  I think the freebsd-current
folks are expecting questions that are much harder than this one.

I'm trying to use /etc/rc.d/netif to bring down and bring back up all
network interfaces, because I'm trying to get the correct entries in
/etc/rc.conf for testing some extra network cards.

So right now, my /etc/rc.conf looks like this:

defaultrouter="192.168.0.254"
hostname="elmer.i"
ifconfig_em0="inet 192.168.0.6 netmask 255.255.255.0"

/etc/resolv.conf looks like this:

domain  i
nameserver  192.168.0.254

I'm basically in a LAN.  When I boot up this "elmer.i" machine,
everything works well.

Then, I do the following two commands:

  /etc/rc.d/netif stop
  /etc/rc.d/netif start

After these, I'm still able to ping a raw IP LAN address such as
192.168.0.254.  However, two problems start occurring:

1. I cannot ping an IP address that is outside of my LAN, e.g.
> ping 64.156.192.169
PING 64.156.192.169 (64.156.192.169): 56 data bytes
ping: sendto: No route to host

2. DNS (via 192.168.0.254 nameserver) won't work at first, but starts
to magically work when I for example enable sshd and log in to elmer
from another host on the LAN


So the nut of my question is, I think "/etc/rc.d/netif stop" stops
some additional things such as packet routing that the corresponding
"/etc/rc.d/netif start" command won't start back up.  So what is the
best way to bring down the network and bring it back up again for
purposes of testing /etc/rc.conf syntax?
___
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: reverse dns in bind9

2011-03-29 Thread Tim Dunphy
hey guys,

 ok I fixed the reverse zone file and now it's working perfectly!

 @   IN  SOA ns1.summitnjhome.com. bluethundr.gmail.com. (
2011032901  ;serial
14400 ;refresh
3600   ;retry
604800  ;expire
10800;minimum
)

1.168.192.in-addr.arpa.IN  NS  ns1.yournameserver.com.


42  IN  PTR LCENT01.summitnjhome.com.
43  IN  PTR LCENT03.summitnjhome.com.
44  IN  PTR LBSD2.summitnjhome.com.


LBSD2# host 192.168.1.42
42.1.168.192.in-addr.arpa domain name pointer LCENT01.summitnjhome.com.

On Tue, Mar 29, 2011 at 12:25 AM, Jon Radel  wrote:
> On 3/29/11 12:05 AM, Tim Dunphy wrote:
>>
>> hello
>>
>>  no crabby comments on restart at all!
>>
>> LBSD2# /etc/rc.d/named restart
>> Stopping named.
>> Waiting for PIDS: 4970.
>> Starting named.
>>
>> Ah but yes some complaints from the logs
>>
>> Mar 29 04:59:47 LBSD2 named[5469]: master/summitnjhome-reverse.db:10:
>> ignoring out-of-zone data (summitnjhome.com)
>> Mar 29 04:59:47 LBSD2 named[5469]: dns_master_load:
>> master/summitnjhome-reverse.db:11: unexpected end of line
>> Mar 29 04:59:47 LBSD2 named[5469]: dns_master_load:
>> master/summitnjhome-reverse.db:10: unexpected end of input
>> Mar 29 04:59:47 LBSD2 named[5469]: zone 1.168.192.in-addr.arpa/IN:
>> loading from master file master/summitnjhome-reverse.db failed:
>> unexpected end of input
>> Mar 29 04:59:47 LBSD2 named[5469]: zone 1.168.192.in-addr.arpa/IN: not
>> loaded due to errors.
>> Mar 29 04:59:47 LBSD2 named[5469]: running
>>
>>
>>
>> Tho I am not sure why it's complaining about unexpected end of input
>>
>> this is the whole file
>
> Really?  Judging from the line numbers in the log messages, you're missing
> about 3 lines that, I would hope, include something like
>
> IN SOA ns1.summitnjhome.com bluethunder.gmail.com (
>>
>>                         201103271 ; Serial, todays date + todays serial
>>                         8H      ; Refresh
>>                         2H      ; Retry
>>                         4W      ; Expire
>>                         1D)     ; Minimum TTL
>>                 NS      ns1.summitnjhome.com.
>> summitnjhome.com.
>
>   doesn't make much sense as data in this zone, error message 1
>                    ^ Whoa, Nelly, where's the rest of this line? error
> message 2
>
> Oh, never mind, I'm so out of here.ignore all that stuff below, messages
> 3 and 4
>
>> 42               PTR     LCENT01.summitnjhome.com.
>> 43               PTR     LCENT02.summitnjhome.com.
>> 44               PTR     LBSD2.summitnjhome.com.
>> 45               PTR     LCENT02.summitnjhome.com.
>> 46               PTR     LCENT03.summitnjhome.com.
>> 47               PTR     LCENT04.summitnjhome.com.
>> 23               PTR     virtcent01.summitnjhome.com.
>> 24               PTR     virtcent02.summitnjhome.com.
>> 21               PTR     virtcent03.summitnjhome.com.
>> 26               PTR     virtcent04.summitnjhome.com.
>> 27               PTR     virtcent05.summitnjhome.com.
>> 28               PTR     virtcent06.summitnjhome.com.
>> 29               PTR     virtcent07.summitnjhome.com.
>> 30               PTR     virtcent08.summitnjhome.com.
>> 31               PTR     virtcent09.summitnjhome.com.
>> 32               PTR     virtcent10.summitnjhome.com.
>> 33               PTR     virtcent11.summitnjhome.com.
>> 34               PTR     virtcent12.summitnjhome.com.
>> 35               PTR     virtcent13.summitnjhome.com.
>> 36               PTR     virtcent14.summitnjhome.com.
>> 37               PTR     virtcent15.summitnjhome.com.
>> 38               PTR     virtcent16.summitnjhome.com.
>> 39               PTR     virtcent17.summitnjhome.com.
>> 40               PTR     virtcent18.summitnjhome.com.
>> 41               PTR     virtcent19.summitnjhome.com.
>>
>>
>
> --
>
> --Jon Radel
> j...@radel.com
>
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
___
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: Can't rebuild kernel with ZFS v15

2011-03-29 Thread Andre Goree

Thank you for responding.

For two reasons I know it's running zfs v14 after the rebuild:

1)  During boot, a message shows:

ZFS Filesystem version 4
ZFS Storage pool version 14

2)  After getting to the failed root mount point of the boot (after it  
fails to mount my zfs root), I enter:


ufs:/dev/ad4s1a

to get to my boot partition (which must remain UFS obviously, hehe), and  
try to mount my pools with the 'zfsmount' command, however it errors with  
something similar to:


"storage pool version does not match"

I can only get my system working again by manually moving /boot/kernel to  
/boot/kernel.bad (or whatever) and replacing it with the previous kernel.


:(


On Tue, 29 Mar 2011 03:40:17 -0500, krad  wrote:


On 28 March 2011 10:37, Andre Goree  wrote:


Hello,

Ever since I upgraded to 8.2 a few weeks ago, I can't seem to rebuild my
kernel without it being built with ZFS v14 rather than v15.  This is a
problem because I'm using root on ZFS and my box won't boot after the  
kernel

rebuild and reboot.

At first I thought it was because I rebuilt the kernel without  
rebuilding
world, however the same thing happens even after getting up-to-date  
sources

and rebuilding world.  Anyone else having this problem?

Thanks in advance.

Andre Goree
an...@drenet.info
___
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"



what is making you think you are running zfs v14? Are you looking at  
zpool

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



--
Andre Goree
an...@drenet.info
___
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: Can't rebuild kernel with ZFS v15

2011-03-29 Thread krad
On 28 March 2011 10:37, Andre Goree  wrote:

> Hello,
>
> Ever since I upgraded to 8.2 a few weeks ago, I can't seem to rebuild my
> kernel without it being built with ZFS v14 rather than v15.  This is a
> problem because I'm using root on ZFS and my box won't boot after the kernel
> rebuild and reboot.
>
> At first I thought it was because I rebuilt the kernel without rebuilding
> world, however the same thing happens even after getting up-to-date sources
> and rebuilding world.  Anyone else having this problem?
>
> Thanks in advance.
>
> Andre Goree
> an...@drenet.info
> ___
> 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"
>

what is making you think you are running zfs v14? Are you looking at zpool
status?
___
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: printf() leak?

2011-03-29 Thread David Demelier

On 29/03/2011 09:59, Eitan Adler wrote:

Hi David,


It seems printf() always alloc something and does not free it:


What compiler and what optimizations? Most compilers will optimize a
printf without any special formatting into a puts call instead of a
printf call.


I was using clang / gcc without any optimisations.


For example clang -O3 -fomit-frame-pointer (which I use for clarity
here) outputs this code:

 .file   "leak.c"
...
main:   # @main
# BB#0: # %entry
 subl$12, %esp
 movl$str, (%esp)
 calll   puts
 xorl%eax, %eax
 addl$12, %esp
 ret
.Ltmp0:
...
str:
 .asciz   "Hi"
 .size   str, 3
...

  [snip]

==67840== suppressed: 4,096 bytes in 1 blocks


Lets take a look at what valgrind says immediately after this:
==14481== For counts of detected and suppressed errors, rerun with: -v

One of the lines we get is
--14508-- used_suppression:  1 libc puts leak



I didn't see this one, thanks!


Which means it is a known issue and has been specially marked as to
avoid being reported by valgrind.

Lets take a look to see where this suppression happens: in
/usr/local/lib/valgrind/default.supp we find
{
libc puts leak
Memcheck:Leak
fun:malloc
obj:/lib/libc.so.7
obj:/lib/libc.so.7
obj:/lib/libc.so.7
fun:puts
fun:main
}

After some investigation I was able to find the following commit:
http://p4db.freebsd.org/chv.cgi?CH=168767 which shows when this
suppression was added and by whom.

I trust that if you are interested in the details of why this leak is
detected you have the skills to follow up on this by yourself :-)



Thanks a lot for the details.


Thank you for trying to make FreeBSD better!




:-)

--
David Demelier
___
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: printf() leak?

2011-03-29 Thread Eitan Adler
Hi David,

> It seems printf() always alloc something and does not free it:

What compiler and what optimizations? Most compilers will optimize a
printf without any special formatting into a puts call instead of a
printf call.
For example clang -O3 -fomit-frame-pointer (which I use for clarity
here) outputs this code:

.file   "leak.c"
...
main:   # @main
# BB#0: # %entry
subl$12, %esp
movl$str, (%esp)
calll   puts
xorl%eax, %eax
addl$12, %esp
ret
.Ltmp0:
...
str:
.asciz   "Hi"
.size   str, 3
...

 [snip]
> ==67840==         suppressed: 4,096 bytes in 1 blocks

Lets take a look at what valgrind says immediately after this:
==14481== For counts of detected and suppressed errors, rerun with: -v

One of the lines we get is
--14508-- used_suppression:  1 libc puts leak

Which means it is a known issue and has been specially marked as to
avoid being reported by valgrind.

Lets take a look to see where this suppression happens: in
/usr/local/lib/valgrind/default.supp we find
{
   libc puts leak
   Memcheck:Leak
   fun:malloc
   obj:/lib/libc.so.7
   obj:/lib/libc.so.7
   obj:/lib/libc.so.7
   fun:puts
   fun:main
}

After some investigation I was able to find the following commit:
http://p4db.freebsd.org/chv.cgi?CH=168767 which shows when this
suppression was added and by whom.

I trust that if you are interested in the details of why this leak is
detected you have the skills to follow up on this by yourself :-)

Thank you for trying to make FreeBSD better!


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


printf() leak?

2011-03-29 Thread David Demelier

Hello,

It seems printf() always alloc something and does not free it:

#include 
#include 

int
main(void)
{
printf("Hi\n");
return 0;
}

and valgrind ./a.out:

==67840==
==67840== HEAP SUMMARY:
==67840== in use at exit: 4,096 bytes in 1 blocks
==67840==   total heap usage: 1 allocs, 0 frees, 4,096 bytes allocated
==67840==
==67840== LEAK SUMMARY:
==67840==definitely lost: 0 bytes in 0 blocks
==67840==indirectly lost: 0 bytes in 0 blocks
==67840==  possibly lost: 0 bytes in 0 blocks
==67840==still reachable: 0 bytes in 0 blocks
==67840== suppressed: 4,096 bytes in 1 blocks

(The experience on Linux does not leak)

Cheers,

--
David Demelier
___
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: Tape drive for backup soloution

2011-03-29 Thread Gour
On Tue, 29 Mar 2011 16:56:18 +1030
William Brown  wrote:

> Are there any recommendations that you can make about compatible
> solutions. My knowledge in this area is limited. 

My needs are not so big and I use HP Ultrium 448 (LTO-2) drive, but
I'm sure that buying HP's LTO-2 drive will be nice solution for you.

btw, I recently switched from Bacula to Amanda, but I'm just in the
process of moving to (Free)PCBSD, but I'm sure drive is supported
well.

Otoh, I also heard that IBM's drives are not bad and usually cheaper
than HP brand.


Sincerely,
Gour

-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: CDBF17CA




signature.asc
Description: PGP signature