Re: Administrating more than 10 servers

2010-10-24 Thread Randy Belk
This is a must read for multiple UNIX server administration,
http://www.cae.tntech.edu/~mwr/unix_infrastructure_management_from_scratch.pdf
.

On Sun, Oct 24, 2010 at 2:45 PM, Ahmed Ossama  wrote:

> Hi folks,
>
> Lately I was put in charge to administrate 12 FreeBSD servers, and I was
> wonder what is the best way to administrate/monitor/follow-up/update/patch
> these servers such that all work like a clockwise with each other with the
> exact same updates?
>
> I wrote few scripts that notifies me with system failure and updates, but I
> want to manage the servers more efficiently.
>
> Any advice/guide is much appreciated.
> ___
> 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"
>



-- 
- Simplicity is the ultimate sophistication. - Leonardo da Vinci
- Intelligence is not defined by what you know, It's how you use it.
___
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: freecolor: Bus error. software or hardware problem?

2010-07-22 Thread Randy Belk
Have you updated your ports? This was an issue on the amd64 distribution,
but it was fixed.

On Fri, Jul 23, 2010 at 1:21 AM, Antonio Kless wrote:

> Strange freecolor behavior on fresh 8.0-RELEASE system.
>
> # uname -a
> FreeBSD alternate-1.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21
> 15:02:08 UTC 2009 r...@mason.cse.buffalo.edu:
> /usr/obj/usr/src/sys/GENERIC
> amd64
>
> # freecolor -V
> freecolor version 0.8.8
>
> # freecolor
> Bus error
>
>
> I have reinstall 7.3-RELEASE on this server, and get another look of error:
>
> # freecolor
> Bus error: 10
>
>
> Is it software or hardware problem?
>
> --
> Best regards,
> Antonio Kless,
> http://kless.spb.ru/
> ___
> 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"
>



-- 
- Simplicity is the ultimate sophistication. - Leonardo da Vinci
- Intelligence is not defined by what you know, It's how you USE it.
- People who hate Windows use Linux but people who love UNIX use BSD.
___
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: .sh and sed

2010-06-16 Thread Randy Belk
You could always use basename for this. "basename /usr/local/bin/bash"
will display "bash"

On Wed, Jun 16, 2010 at 6:16 AM, Aiza  wrote:
> Trying to use sed to remove the path from the file name.
> Variable has complete path plus the file name
> /usr/local/etc/filename
> Need variable containing only the file name.
> Is the sed utility the best thing to use?
> Is there some other utility better suited for this task.
> How would sed by coded to do this?
>
> Thanks for your help in advance.
> ___
> 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"
>



-- 
- Simplicity is the ultimate sophistication. - Leonardo da Vinci
- Intelligence is not defined by what you know, It's how you USE it.
- People who hate Windows use Linux but people who love UNIX use BSD.
___
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: What VM does FreeBSD run well under

2009-10-31 Thread Randy Belk
On Sat, Oct 31, 2009 at 10:14 AM, stan  wrote:
> I am planing on rebuilding my laptop shortly. I am going to put Ubuntu 9.10
> on as the base OS, and I want to be able to run various versions of FreebSD
> as guest OS'es under one of the free (EG not VMWare) virtual machine
> choices.
>
> Which of these does FreebSD run well under?
>
> --
> One of the main causes of the fall of the roman empire was that, lacking
> zero, they had no way to indicate successful termination of their C
> programs.
> ___
> 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"
>


I have tried FreeBSD 7.2 on both VmWare and Virtualbox. Just make sure
you have NTP running, I have experienced time issues. ,




-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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: BSD Professional Job Task Analysis Survey

2009-10-07 Thread Randy Belk
On Wed, Oct 7, 2009 at 3:52 PM, Mikel King  wrote:
> The BSD News Network reports that volunteer as desperately needed to
> complete the BSDP JTA Survey by the deadline of October 16th. The BSD
> Certification Group has been diligently working toward this goal for quite
> some time now.
>
> http://bsdnews.net/index.php/2009/10/07/bsdcertdeadline-approaching-fast-for-the-bsdp-jta-survey/
>
> I am curious how many people on this list were aware of the survey?
>
> Has anyone else actually completed the survey?
>
> Has anyone seen an announcement about this on the FreeBSD lists in the past?
>
> Thanks,
> Mikel
>
> ___
> 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"
>

I have completed it.

-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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: how to display pkg-message

2009-09-06 Thread Randy Belk
On Sun, Sep 6, 2009 at 10:29 AM, Kalle
Møller wrote:
> Looking for that feature to :)
>
> On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse  wrote:
>
>> Hello
>>
>> Could someone remind of the make target for showing messages which are
>> displayed when installing ports please. I thought it was some variant of
>> make showinfo but I can't find one that works. I am assuming that if
>> /files/pkg-message.in exists the this make target would show a
>> result.
>>
>> 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"
>>
>
>
>
> --
>
> Med Venlig Hilsen
>
> Kalle R. Møller
> ___
> 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 is explained in the pkg_info man page.

To Show the install-message file for the installed package
postfix-2.6.3,1 you would enter "pkg_info -D -x postfix | less"

Please read the man page! Also install ports-mgmt/bpkg, it's an awsome utility


-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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: how to display pkg-message

2009-09-06 Thread Randy Belk
On Sun, Sep 6, 2009 at 12:21 PM, Randy Belk wrote:
> On Sun, Sep 6, 2009 at 10:29 AM, Kalle
> Møller wrote:
>> Looking for that feature to :)
>>
>> On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse  wrote:
>>
>>> Hello
>>>
>>> Could someone remind of the make target for showing messages which are
>>> displayed when installing ports please. I thought it was some variant of
>>> make showinfo but I can't find one that works. I am assuming that if
>>> /files/pkg-message.in exists the this make target would show a
>>> result.
>>>
>>> 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"
>>>
>>
>>
>>
>> --
>>
>> Med Venlig Hilsen
>>
>> Kalle R. Møller
>> ___
>> 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 is explained in the pkg_info man page.

 To Show the install-message file for the installed package
 postfix-2.6.3,1 you would enter "pkg_info -D -x postfix | less"

 Please read the man page! Also install ports-mgmt/bpkg, it's an awsome utility


--
 - Amiga, The Computer for the creative Mind!
 - UNIX is basically a simple operating system, but you have to be a
 genius to understand the simplicity.
 - People who hate Microsoft Windows use Linux but people who love UNIX use BSD.





-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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: 'alias' + sudo

2009-09-04 Thread Randy Belk
On Fri, Sep 4, 2009 at 10:50 AM, George Davidovich wrote:
> On Thu, Sep 03, 2009 at 08:10:36PM -0400, Jerry wrote:
>> On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote:
>>
>> > alias spico='/usr/local/bin/sudo pico -m' and be done with it.
>
> Instead of an extra alias, why not export $VISUAL or $EDITOR, and rely
> on sudoedit(8)?
>
>> That is what I am currently doing; however,there are other commands
>> that I want to use that are not available when used via sudo without
>> modifying the alias. I did not realize that sudo had such a
>> limitation.
>
> It's not a "limitation".  It's a feature.  ;-)  Re-read the sudo
> manpage.
>
> I'd be surprised if most of your aliases would ever require root
> privileges, and are anything but one-off shortcuts for your personal
> use.
>
> For those that do, I'd suggest replacing them with a function (or
> script) that tests for root privileges (using something like id(1)), and
> invokes sudo when appropriate.
>
> Otherwise, you may want to consider using 'su -m'.  That will your
> current environment unmodified and all your existing aliases will remain
> available for use.
>
> --
> George
> ___
> 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"
>


There is a way for what you are wanting to do.
Make an alias for sudo that looks like this "sudo='sudo -E (Your default shell)"
Since I use zsh my alias looks like this sudo='sudo -E zsh'
It perserves all of your aliases, paths, and everything else

.

-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freeBSD logo

2009-06-25 Thread Randy Belk
On Thu, Jun 25, 2009 at 3:56 PM, Randall Wood wrote:
> On Thu, Jun 25, 2009 at 08:16:12AM -0800, Peter Giessel wrote:
>> >I want to make a t-shirt with the caption "The Power to Serve" but I can't
>> >find it in a good resolution. Can you send it to me?
>>
>> Vector formats (which would allow you to produce any resolution you want)
>> are available here:
>> http://www.freebsd.org/logo.html
>
> Isn't there some sort of restriction on how the logo can be used?  I wrote a 
> post for my website about FreeBSD (PC-BSD, actually) and went looking for the 
> FreeBSD.  I recall there some restrictions on Daemon.  Or are those days over?
>
> One of my favorite looking mascots, by the way.  What a cutie.
> ___
> 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"
>

The BSD Daemon is Copyrighted by Marshall Kirk McKusick, see
http://www.mckusick.com/beastie/mainpage/copyright.html.
I contacted Mr. McKusick, and his response is below



-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freeBSD logo

2009-06-25 Thread Randy Belk
On Thu, Jun 25, 2009 at 4:56 PM, Randy Belk wrote:
> On Thu, Jun 25, 2009 at 3:56 PM, Randall Wood wrote:
>> On Thu, Jun 25, 2009 at 08:16:12AM -0800, Peter Giessel wrote:
>>> >I want to make a t-shirt with the caption "The Power to Serve" but I can't
>>> >find it in a good resolution. Can you send it to me?
>>>
>>> Vector formats (which would allow you to produce any resolution you want)
>>> are available here:
>>> http://www.freebsd.org/logo.html
>>
>> Isn't there some sort of restriction on how the logo can be used?  I wrote a 
>> post for my website about FreeBSD (PC-BSD, actually) and went looking for 
>> the FreeBSD.  I recall there some restrictions on Daemon.  Or are those days 
>> over?
>>
>> One of my favorite looking mascots, by the way.  What a cutie.
>> ___
>> 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"
>>
>
> The BSD Daemon is Copyrighted by Marshall Kirk McKusick, see
> http://www.mckusick.com/beastie/mainpage/copyright.html.
> I contacted Mr. McKusick, and his response is below
>
>
>
> --
> - Amiga, The Computer for the creative Mind!
> - UNIX is basically a simple operating system, but you have to be a
> genius to understand the simplicity.
> - People who hate Microsoft Windows use Linux but people who love UNIX use 
> BSD.
>

Sorry guys, I thought I attached the file but I guess I didn't. Anyway
here is my correspondence with him.
This was concerning my FreeBSD Wallpaper site,
http://picasaweb.google.com/randy.belk/FreeBSDWallpaper.
Sorry for the plug, ;-)

Mr. McKusick's response:

> Mr. McKusick,
>
> I have the site back up and I have also added that your
> are the copyright holder of the BSD Daemon on the top
> right of the page.
>
> I am providing these to the FreeBSD community for free!

Your usage of the BSD Daemon in this context is acceptable.
Please note however that many of the variations that are
used on the wallpaper designs are not owned by me. They have
been created by other people and I do not have the right to
grant your use of those variations on the BSD Daemon. When
you grab a wallpaper to add to your collection you should
ensure that the person that you got it from allows it to be
redistributed.

Marshall Kirk McKusick

-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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: xinetd for FreeBSD 6.2

2009-04-06 Thread Randy Belk
On Mon, Apr 6, 2009 at 10:42 PM, Madhusudan R  wrote:
> Hi,
>
> I'd like to know the version of xinetd that can be run on FreeBSD 6.2. And
> where can I find it?
>
> Anything else I need to know before I start using xinetd on the aforemention
> platform.
>
> Thanks!
> Madhu
> ___
> 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"
>



To install xinitd use the following command as root
cd /usr/ports/security/xinetd/ && make install clean

-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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: w(5) shows non-existent or lost process?

2009-02-17 Thread Randy Belk
On Tue, Feb 17, 2009 at 7:43 AM, Anton Shterenlikht  wrote:
> The who (or w, or finger) command shows that I'm still logged into ttyp5,
> even though I have rebooted the  box many times since. Does this mean
> the corresponding entry in /var/run/utmp is wrong and shouldn't be there, or 
> is there
> still some process attached to ttyp5?
>
> ouput of w:
>
> USER TTY  FROM  LOGIN@  IDLE WHAT
> mexasp41:32pm - w
> mexasp5   :0. 26Jan09 21days -
>
> ps ax | grep ttyp5
>  shows no process
>
> Looking at w(1) man page it seems that "-" in WHAT can be an indication
> that the process failed but not cleanly and that there could be some forked
> sub-process still alive. Does this make sense? Which other commands I can use
> to see what's going on?
>
> many thanks
> anton
>
> --
> Anton Shterenlikht
> Room 2.6, Queen's Building
> Mech Eng Dept
> Bristol University
> University Walk, Bristol BS8 1TR, UK
> Tel: +44 (0)117 928 8233
> 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"
>

LSOF is your friend! The port is located in /usr/ports/sysutils/lsof
To find out what is using ttyp5 type in "lsof | grep ttyp5" and it
should show you the process




-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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"