make deinstall within /usr/ports/lang - need to recover default language installs

2013-03-19 Thread Rob Navarro
Hi Chaps,

I typed make deinstall within the /usr/ports/lang directory of a
FreeBSD 9.0 and mistakenly lost Perl, Python, Ruby and a whole host of
default compiled languages.

How can I get back to the default FreeBSD default installed language
state (with Perl installed etc)?

Crossing my fingers that I need not re-install the OS...

Kind regards,

Rob

___
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: make deinstall within /usr/ports/lang - need to recover default language installs

2013-03-19 Thread David Demelier
lang/ contains all languages and so on ruby, lua, python, perl.. Of course
you removed perl since you typed make deinstall in that parent port tree.

You can type make install in /usr/ports/lang/perl5.14 to install it again.
You don't need to reinstall FreeBSD, you're not on Windows here, you can
repair everything :)

Note: there is no perl installed by default, it's in the ports for few
years now.

Regards,



2013/3/19 Rob Navarro robnav...@gmail.com

 Hi Chaps,

 I typed make deinstall within the /usr/ports/lang directory of a
 FreeBSD 9.0 and mistakenly lost Perl, Python, Ruby and a whole host of
 default compiled languages.

 How can I get back to the default FreeBSD default installed language
 state (with Perl installed etc)?

 Crossing my fingers that I need not re-install the OS...

 Kind regards,

 Rob

 ___
 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




-- 
Demelier David
___
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: make deinstall within /usr/ports/lang - need to recover default language installs

2013-03-19 Thread Matthew Seaman
On 19/03/2013 07:54, Rob Navarro wrote:
 Hi Chaps,
 
 I typed make deinstall within the /usr/ports/lang directory of a
 FreeBSD 9.0 and mistakenly lost Perl, Python, Ruby and a whole host of
 default compiled languages.
 
 How can I get back to the default FreeBSD default installed language
 state (with Perl installed etc)?

Ummm the default state is with just the base system installed: no
extra languages like perl or python and no other additional software
packages.

 Crossing my fingers that I need not re-install the OS...

Nope.  You absolutely do not need to do that -- all you did will have
affected the ports, which on FreeBSD is a distinct entity from the base
system.

To recover, you simply need to re-install the appropriate ports.  If you
know what you want installed, then it's easy: you can just feed a list
of those ports into portmaster(8) or portupgrade(8).

If you don't know what you need installed in order to support various
end user programs, then there are various ways of checking that the
dependencies of the required ports are installed.  For instance, if
you're using pkgng, you could run 'pkg check -da'  At worst, and
requiring the least amount of extra software, just try re-installing the
packages in question.  This should work, but you might end up doing a
lot of strictly unnecessary recompiling.

Matthew



___
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: make deinstall within /usr/ports/lang - need to recover default language installs

2013-03-19 Thread Rob Navarro
Dear Chaps,

Thank you very much for responding so quickly. Curiously the freeBSD 9.0
was installed with the standard answers to a sysinstall session and did
contain a version of perl.

I now seem to be in the state of discovering which languages I need and
then re-installing. Is there a list/database for freeBSD 9.0 standard
sysinstalls languages that I can view and use to re-install (via pkg_add
-v -r perl  etc) ?
[there must a config file for sysinstall to use itself]

Kind  regards,

Rob

 lang/ contains all languages and so on ruby, lua, python, perl.. Of
 course you removed perl since you typed make deinstall in that parent
 port tree.

 You can type make install in /usr/ports/lang/perl5.14 to install it
 again. You don't need to reinstall FreeBSD, you're not on Windows
 here, you can repair everything :)

 Note: there is no perl installed by default, it's in the ports for few
 years now.

 Regards,


On 19/03/2013 01:19, Matthew Seaman wrote:
 On 19/03/2013 07:54, Rob Navarro wrote:
 Hi Chaps,

 I typed make deinstall within the /usr/ports/lang directory of a
 FreeBSD 9.0 and mistakenly lost Perl, Python, Ruby and a whole host of
 default compiled languages.

 How can I get back to the default FreeBSD default installed language
 state (with Perl installed etc)?
 Ummm the default state is with just the base system installed: no
 extra languages like perl or python and no other additional software
 packages.

 Crossing my fingers that I need not re-install the OS...
 Nope.  You absolutely do not need to do that -- all you did will have
 affected the ports, which on FreeBSD is a distinct entity from the base
 system.

 To recover, you simply need to re-install the appropriate ports.  If you
 know what you want installed, then it's easy: you can just feed a list
 of those ports into portmaster(8) or portupgrade(8).

 If you don't know what you need installed in order to support various
 end user programs, then there are various ways of checking that the
 dependencies of the required ports are installed.  For instance, if
 you're using pkgng, you could run 'pkg check -da'  At worst, and
 requiring the least amount of extra software, just try re-installing the
 packages in question.  This should work, but you might end up doing a
 lot of strictly unnecessary recompiling.

   Matthew



 ___
 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


EU Regulation and gvfs

2013-03-19 Thread Ralf Mardorf
Hi,

there's an issue with gvfs.

Regarding to an EU Regulation external drives must spin down after a
while, but gvfs make external drives spin up and down again and again so
they don't stay asleep.

I own a new WD Elements and within one week it aged by years.

I marked a thread about this issue as solved, but it isn't, it's just a
workaround. For some drives it's possible to disable it, but for drives
where you can't open the case it can be impossible to do it.

One way to safe lifetime then is to touch the drive in short intervals,
to avoid a spin down and the other way is to remove gvfs and to mount
block devices, not only USB devices, by a workaround.

Other USB gear, but block devices, don't need gvfs, such as WiFi
adapters.

Since I'm short in time at the moment, I only tested Arch Linux and
Ubuntu Linux intensively [1].

I'm cross-posting this information, hopefully you understand why I'm
doing this.

Regards,
Ralf

[1]
From: Ralf Mardorf
To: linux-audio-user
Subject: [solved] External USB 2 HD for real-time recording
Date: Tue, 19 Mar 2013 08:43:57 +0100

On Mon, 2013-03-18 at 18:12 +0100, Ralf Mardorf wrote:
 The issue that the drive will spin up and down again and again can be
 avoided.
 
 I removed
 
 - thunar-volman
 - tumbler
 - gvfs
 
 on Arch Linux. No packages depend on those packages for my Arch Linux.
 The drive keeps asleep, even with still one partition mounted.
 Later I'll add one package after the other, to find out what does cause
 the access and I also will take a look at Ubuntu.

Arch Linux:

Only gvfs needs to be removed, no need to remove thunar-volman and
tumbler. However, thunar-volman without gvfs seems to be useless.
Tumbler doesn't cause issues, but I don't know what it's good for. To
see thumbnails with Thunar it isn't needed.

I keep thunar-volman and tumbler on Arch and only removed gvfs. For my
Arch nothing depends on gvfs, so it was the only package I had to remove.



Ubuntu Quantal:

root@q:~# apt-get purge gvfs
The following packages will be REMOVED:
  brasero* gvfs* gvfs-backends* gvfs-fuse* nautilus* nautilus-sendto*
nautilus-share*

Who cares about the packages that depend on it? I anyway use Thunar
instead of Nautilus and K3b instead of Brasero.



Résumé:

So who is to blame?


By EU Regulation external drives must spin down.

I even didn't completely read the German blah blah blah,
http://www.heise.de/newsticker/meldung/Ab-2010-Maximal-2-Watt-im-Standby-Betrieb-von-Haushaltsgeraeten-PCs-und-Unterhaltungselektronik-Update-193947.html
and I won't search for links in English.

Xfce doesn't depend on gvfs, neither the Arch, nor the Ubuntu packages.
Until now it seems to be, that without gvfs, partitions can't be mounted
with a file browser, they have to be mounted by CLI. It's not only an
issue for the USB drive, but also for USB sticks.

It takes 30 minutes, then the WD Elements spins down and stays asleep.
If you don't like this,than blame the EU.
If you like it, then blame gvfs.

Does VirtualBox still see my iPad 2 connected by USB when gvfs is
removed?

No problem, even an USB stick and even the
external USB hard disk are available by VirtualBox.


Is my KORG nanoKONTROL still accessible after removing gvfs?

It still does show up in QjackCtl's ALSA tab.

___
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

IPC Shared memory segment

2013-03-19 Thread Vagner
Hi all!
Tell me please, how may I remove shared memory segment like this:

T:m shmid:65537 shmkey:0 mode:--rw-rw-rw- owner:root group:wheel creator:root 
cgroup:wheel
NATTCH:2 SEGSZ:1048576000 CPID:2982 LPID:54375 ATIME:10:29:12 DTIME:15:56:14 
CTIME:10:51:00

Pid 2982 and pid 54375 is killed.

-- 
Respectfully,
Stanislav Putrya
System administrator
FotoStrana.Ru Ltd.
ICQ IM: 328585847
Jabber-GoogleTalk: root.vagner
mob.phone SPB: +79215788755
mob.phone RND: +79525600664
email: vag...@bsdway.ru
email: put...@playform.ru
email: root.vag...@gmail.com
site: bsdway.ru
site: fotostrana.ru


 ( ) ASCII ribbon campaign
  X  - against HTML, vCards and
 / \ - proprietary attachments in e-mail
___
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: IPC Shared memory segment

2013-03-19 Thread Julien Cigar

On 03/19/2013 13:06, Vagner wrote:

Hi all!
Tell me please, how may I remove shared memory segment like this:

T:m shmid:65537 shmkey:0 mode:--rw-rw-rw- owner:root group:wheel creator:root 
cgroup:wheel
NATTCH:2 SEGSZ:1048576000 CPID:2982 LPID:54375 ATIME:10:29:12 DTIME:15:56:14 
CTIME:10:51:00

Pid 2982 and pid 54375 is killed.



man ipcrm

--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
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: Handbook Jail Chapter rewrite available for critique

2013-03-19 Thread Jov
useful doc,greate job!

find a mybe copy/past mistake in 16.7.1:


 *exec.stop*   This is the normal script used to *start *the jail.


should be:
*exec.stop*   This is the normal script used to *stop *the jail.

regards,

2013/3/19 Fbsd8 fb...@a1poweruser.com

 To all interested parties;

 I have completed the final draft of the total rewrite of FreeBSD's
 handbook Chapter 16 on Jails.

 Before submitting my work for submission to the documentation group for
 insertion in the handbook I am looking for critique of the work to find
 errors in concept, wrong use of words, or anything to make it better.

 All feedback welcomed.

 Use this URL to access it  
 http://www.jails.a1poweruser.**com/http://www.jails.a1poweruser.com/


 Thank You.

 __**_
 freebsd-curr...@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**currenthttp://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to freebsd-current-unsubscribe@**
 freebsd.org freebsd-current-unsubscr...@freebsd.org




-- 
Jov
blog: http:amutu.com/blog http://amutu.com/blog
___
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

adding a TrueType font

2013-03-19 Thread Matthias Apitz

Hello,

I have a need for a very special font (which is used for the chars how
they are teached to my son in school in first grade). I have found the
TTF file and installed it as:

$ file /usr/local/lib/X11/fonts/TrueType/DruckschriftBayern.ttf 
/usr/local/lib/X11/fonts/TrueType/DruckschriftBayern.ttf: TrueType font data

and did the additional steps as described in the handbook
http://www.freebsd.org/doc/handbook/x-fonts.html

The new font shows up fine in some KDE apps, in firefox etc.; as well I
can see it with fc-list(1) as:

$ fc-list | fgrep BY
Druckschrift BY WOK:style=Medium

but I can't use is, for example with xterm, it says:

$ xterm -fn 'Druckschrift BY WOK'
xterm: cannot load font Druckschrift BY WOK

and even more magic: I can set it in 'kedit' via preferences, but when I
launch it from cmd line it says:

$ kedit --fn 'Druckschrift BY WOK'
QFont::setRawName(): Invalid XLFD: Druckschrift BY WOK

Any idea why is this? I'd like to have it in xterm or in uRxvt, even
better.

Thanks

matthias
-- 
Matthias Apitz   |  /\ ASCII Ribbon Campaign: www.asciiribbon.org
E-mail: g...@unixarea.de |  \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X  - No proprietary attachments
phone: +49-170-4527211   |  / \ - Respect for open standards
___
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


w and who don't list users in FreeBSD 9.0 and 9.1

2013-03-19 Thread Istvan Gabor
Hello:

I have both FreeBSD 9.0 and 9.1 on two different computers.
w and who commands do not list logged in users in any of them
(either for root or a regular user).

The output of w is:

root@:/root # w
 4:56PM  up 10 mins, 0 users, load averages: 0.18, 0.26, 0.20
USER   TTY  FROM  LOGIN@  IDLE WHAT
root@:/root #

And the output of who:

root@:/root # who
root@:/root #

Why is this and how can I fix it?

Thanks,

Istvan

ps: I tried google search but w and who are not good search terms.

___
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: adding a TrueType font

2013-03-19 Thread uki
2013/3/19 Matthias Apitz g...@unixarea.de:
 I have a need for a very special font (which is used for the chars how
 they are teached to my son in school in first grade).
For such unusual fonts, or fonts that are not in package of some kind
I pu them into ~/.fonts and have the following in my .xinitrc (don't
know how that applies to gnome or kde):
  xset +fp $HOME/.fonts
  xset fp rehash

You might have to run mkfontdir if your ~/.fonts is not 'a font dir' yet.
___
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 and who don't list users in FreeBSD 9.0 and 9.1

2013-03-19 Thread Ruben de Groot
On Tue, Mar 19, 2013 at 04:59:56PM +0100, Istvan Gabor typed:
 Hello:
 
 I have both FreeBSD 9.0 and 9.1 on two different computers.
 w and who commands do not list logged in users in any of them
 (either for root or a regular user).
 
 The output of w is:
 
 root@:/root # w
  4:56PM  up 10 mins, 0 users, load averages: 0.18, 0.26, 0.20
 USER   TTY  FROM  LOGIN@  IDLE WHAT
 root@:/root #
 
 And the output of who:
 
 root@:/root # who
 root@:/root #
 
 Why is this and how can I fix it?

This can happen if your kernel and world are out of sync.

Ruben

___
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 and who don't list users in FreeBSD 9.0 and 9.1

2013-03-19 Thread Ralf Mardorf
On Tue, 2013-03-19 at 16:59 +0100, Istvan Gabor wrote:
 I tried google search but w and who are not good search terms.

Indeed, it for sure isn't easy, but did you try with quotes and other
options?

http://lmgtfy.com/?q=freebsd+%22who+command%22

I don't know if there is a solution, but you're at least not the first
who experienced this issue.

___
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


fresh binary packages for 9.1 / 9 stable

2013-03-19 Thread CeDeROM
Hey hey :-)

Are there any news on fresh binary packages for 9.1-RELEASE / 9-STABLE? :-)

Best regards,
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.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: w and who don't list users in FreeBSD 9.0 and 9.1

2013-03-19 Thread Nikos Vassiliadis

On 19/3/2013 6:03 μμ, Ruben de Groot wrote:

On Tue, Mar 19, 2013 at 04:59:56PM +0100, Istvan Gabor typed:

Hello:

I have both FreeBSD 9.0 and 9.1 on two different computers.
w and who commands do not list logged in users in any of them
(either for root or a regular user).

The output of w is:

root@:/root # w
  4:56PM  up 10 mins, 0 users, load averages: 0.18, 0.26, 0.20
USER   TTY  FROM  LOGIN@  IDLE WHAT
root@:/root #

And the output of who:

root@:/root # who
root@:/root #

Why is this and how can I fix it?


This can happen if your kernel and world are out of sync.


It can also happen if /var/run/utx.active is corrupt. Could you
try deleting it? It will be re-created after a successful login.

Nikos

___
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: OT: Installing 9.1 without re-partitioning hard drive

2013-03-19 Thread Warren Block

On Mon, 18 Mar 2013, Ralf Mardorf wrote:


On Mon, 2013-03-18 at 09:00 -0600, Warren Block wrote:

On Mon, 18 Mar 2013, Ralf Mardorf wrote:
Standard practice for this list is to Cc the responder and the list,
because people are not required to subscribe to post.


That makes sense and does explain why my last mail came through the
list, while my broken MUA didn't use the address, I used to subscribe to
this list. So a smarter MUA should provide different reply settings for
replying to different lists. I should take a look at the mailman
settings, since at the moment I receive 2 mails in case of Cc'ing, IIRC
this can be disabled.


Mailing list settings may not help, since it's really up to the sender. 
But it's easy to filter out duplicates with maildrop or procmail.

___
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: Current Way To Update Sources Rebuild World/Kernel? -- SOLVED

2013-03-19 Thread Drew Tomlinson

On 3/17/2013 3:16 PM, Polytropon wrote:

On Sun, 17 Mar 2013 15:07:35 -0700, Drew Tomlinson wrote:

I've been away for a while.  In the past, the proper way to update a
system was to grab current sources via cvsup and then rebuild world and
kernel.  But now I see cvsup is no longer supported.

Correct. The new way to obtain sources is via Subversion.
The OS will hopefully soon get a csup equivalent (svnup)
so you don't need to install a port with heavy dependencies.




The handbook talks
about freebsd-update.  I do not want binary upgrades but is this the
tool to replace cvsup to update sources?

Basically freebsd-update updates the system binarily, as you
said. But it can also be used to only update sources. In order
to do this, edit /etc/freebsd-update.conf to contain the line
Components src (means: you remove all the other components
such as world and kernel). Then you proceed to reinstall
from source as known.




How do I use it to replace the
old way that went something like this:

cvsup sources
make buildworld
make buildkernel
make installkernel
mergemaster
make installworld

(I'm not sure I have that in the exact proper order but it was something
like that).

The exact proper order can be found in the comment header of
/usr/src/Makefile. You should stick to that order to avoid
problems. Also see the corresponding handbook section.




So is freebsd-update what I need?

As explained above - or make yourself familiar with SVN, which
is the CVSup / csup replacement.




Is there a page that describes the
steps to accomplish this?

See man freebsd-update and the comments in /etc/freebsd-update.conf
for details. Also see the Handbook's section about updating.


Thanks for the replies.  Using freebsd-update seemed the simplest method 
since it was already included.  Worked just fine for getting the 
sources.  And following the steps listed in comments in 
/usr/src/Makefile worked for building and installing the sources.


Cheers,

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.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


How To Get App To Start At Boot?

2013-03-19 Thread Drew Tomlinson
I installed Splunk which is not part of the ports tree.  It's a 
proprietary app that I downloaded and installed on it's own.  I start it 
with '/usr/local/splunk/bin/splunk start'.  It should also be stopped 
with '/usr/local/splunk/bin/splunk stop'.  In an attempt to automate it, 
I created this symlink in /usr/local/etc/rc.d:


lrwxr-xr-x   1 root  wheel28 Mar  3 12:32 splunk - 
/usr/local/splunk/bin/splunk


However it's still not automatic.  I can run '/usr/local/etc/rc.d/splunk 
start' at the command line and that works.


What do I need to do to get this automated?

Thanks,

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.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: How To Get App To Start At Boot?

2013-03-19 Thread Michael Sierchio
On Tue, Mar 19, 2013 at 2:13 PM, Drew Tomlinson d...@mykitchentable.net wrote:
 I installed Splunk which is not part of the ports tree.  It's a proprietary
 app that I downloaded and installed on it's own.  I start it with
 '/usr/local/splunk/bin/splunk start'.  It should also be stopped with
 '/usr/local/splunk/bin/splunk stop'.  In an attempt to automate it, I
 created this symlink in /usr/local/etc/rc.d:

Not the way to do it at all. ;-)

(assuming /opt/splunk*/bin is in your path)

# splunk enable boot-start

This installs the script below as /etc/rc.d/splunk.  You then merely
need to put splunk_enable=YES in /etc/rc.conf

Questions like this are better answered by searching the splunk FAQs,
etc.  Lots of good info there.


#!/bin/sh

# PROVIDE: splunkd
# REQUIRE: LOGIN
# KEYWORD: shutdown

# /etc/rc.d/splunk
# init script for Splunk.
# generated by 'splunk enable boot-start'.


. /etc/rc.subr

name=splunk
extra_commands=status
rcvar=`set_rcvar`
eval ${rcvar}=\${${rcvar}:-'NO'}

splunk_start()
{
${splunk_home:-/opt/splunkforwarder}/bin/splunk start
--no-prompt --answer-yes $@
}
start_cmd=splunk_start

splunk_stop()
{
${splunk_home:-/opt/splunkforwarder}/bin/splunk stop  $@
}
stop_cmd=splunk_stop

splunk_restart()
{
${splunk_home:-/opt/splunkforwarder}/bin/splunk restart  $@
}
restart_cmd=splunk_restart

splunk_status()
{
${splunk_home:-/opt/splunkforwarder}/bin/splunk status  $@
}
status_cmd=splunk_status

load_rc_config $name
run_rc_command $@
___
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: cannot ssh into a box with DHCP assigned IP address

2013-03-19 Thread Drew Tomlinson

On 2/20/2013 5:55 AM, Anton Shterenlikht wrote:

From feenb...@nber.org Wed Feb 20 13:39:28 2013

From: Fleuriot Damien m...@my.gd
To: me...@bristol.ac.uk
Subject: Re: cannot ssh into a box with DHCP assigned IP address
Date: Wed, 20 Feb 2013 10:31:22 +0100
Cc: freebsd-questions@freebsd.org

On Feb 20, 2013, at 10:28 AM, Anton Shterenlikht 
me...@bristol.ac.uk wrote:

 I have a laptop with FreeBSD -current,
 with ip address assigned via DHCP.
 The laptop has neither a static ip address,
 nor a domain.

 I can ping the laptop fine, but cannot


I doubt that you can ping 172.21.220.12 from 137.222.187.241 as 
172.21.220.12 is private IP address space and is not routed across the 
Internet.



 ssh into it. The sshd is running, /etc/ssh/ssd_config
 seems fine, /etc/hosts.allow is fine.
 However, /etc/hosts is just the default:

While on the problem machine, can you ssh to localhost? ssh to the IP
address?

yes to both

I would suspect the problem is in /etc/hosts.allow
 or /etc/hosts.deny,

The first non-comment line in /etc/hosts.allow is
ALL : ALL : allow

and I don't have /etc/hosts.deny:

root@zzz:~ # ls /etc/hosts*
/etc/hosts  /etc/hosts.equiv
/etc/hosts.allow/etc/hosts.lpd
root@zzz:~ #

or perhaps the subnet mask is incorrect.

Well.. what should it be?
I have on the problem box (ssh server):

wlan0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 1
500
 ether 00:21:5c:50:68:c3
 inet 172.21.220.12 netmask 0xfc00 broadcast 255.255.255.255
 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
 media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
 status: associated
 ssid eduroam channel 1 (2412 MHz 11g) bssid 00:3a:98:62:cd:a0
 country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 14 bmiss 10 scanvalid 450
 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
 protmode CTS wme roaming MANUAL

I'm trying to ssh from 137.222.187.241.

I wonder, perhaps it somehow built into the
Eduroam wireless, provided by the University,
that the devices connected to it cannot be
accessible. They can only initiate outgoing
connections, but all incoming connections are
somehow blocked? Given that the majority of
the devices will be unsecured MS boxes, maybe
the university thought that this is wise idea
for safety. Perhaps I can investigate this
with my IT guys.

Or I might be talking complete nonsense here, not my area at all.


It is kind of built in as you say.  The Eduroam wireless network 
appears to be a private network sitting behind a NAT gateway.  Thus what 
happens when you access the Internet is that your laptop sends that 
request to the NAT gateway on the Eduroam network.  The NAT gateway 
strips off your private IP address and replaces it with a public IP 
address , marks the connection in its table, and sends it on it's way.  
Then when the answer comes back from the Internet, the NAT gateway 
strips off the public IP address and replaces with your private IP 
address, and sends it to your laptop.


While on the Eduroam network, go to http://whatismyip.com.  You will see 
that your IP is not 172.21.220.12.  It will be a public IP address that 
Eduroam uses.


Bottom line is that the only way you could ssh to your laptop from the 
Internet is if you got the university to give you a public IP address 
and port and then they set up NAT and port forwarding on their network 
to point that public IP address to your laptop private IP address ssh port.


Since I doubt you will have much luck with that, I suspect the short 
answer is you can't ssh to your laptop from the Internet when it's 
connected to your university network.


I'm sure this isn't the answer you wanted but hopefully this will save 
you some frustration.


Cheers,

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.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


Intel microcode update

2013-03-19 Thread kaltheat
 
Hi,
 
I was wondering how to update microcode of an Intel CPU and came across
cpucontrol and sysutils/devcpu-data . But last mentioned port is not up-to-date
anymore. I searched Intel's webpages for microcode updates and found archives
for Linux containing one single microcode.dat file. Could someone tell me if
that file is compatible with FreeBSD? As devcpu-data installs .fw files it
might be proper to convert/compile microcode.dat in some way. How?
 
Regards,
kaltheat
 

___
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: configure recursively and build question

2013-03-19 Thread kaltheat
On Tue, Mar 12, 2013 at 05:45:07PM +0100, Istvan Gabor wrote:
 Hello:
 
 As there are no compiled FreeBSD 9.1 packages for pkg_tools I decided to 
 build them.
 Last I started to build kde3. First I issued make configure-recursive in
 /usr/ports/x11/kde3, then make install clean, and left the computer for 
 overnight to work.
 I expected a successful build by the morning but instead I found a screen 
 requiring some
 config options (for apache). I selected the options and the build went on.
 But later other config windows came up, so far for mysqlclient, sane-backends,
 tk, tcl, libxine and sdl. So my question are:
 
 What is configure-recursive good for then? I thought it is for preventing 
 interactions
 during the build process. Ho can I really configure everything in one step 
 and leave
 the computer alone?
 
 Second, after I've done a configure-recursive, how can I start it over from 
 scratch in case
 I want to change some config option? If I reissue make configure-recursive,
 I get only no configuration needed messages.
 
 Thanks,
 
 Istvan

make config-recursive seems to be buggy.
It seems not to be recursive as this would mean that with every change of an 
option of
the root port or it's dependencies dependencies of the root port might change. 
This could mean
that make config needs to be invoked for a port that wasn't in the inital 
dependecy list of root
port.
The root of all evil seems to be in /usr/ports/Mk/bsd.port.mk line 6187 ff.

You might want to use ports-mgmt/portmaster. It creates options-files of a port 
and it's dependencies
in a better way before starting to compile ports.

Regards,
kaltheat


___
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


Dumb down a Netgear Smart Switch

2013-03-19 Thread Al Plant

Aloha,

Anybody on our list who can tell me how to set a Netgear GS108T 8 Port 
Smart Switch (Gigabit) to pass thru to a modem under FreeBSD. I have 2 
other (non Smart) ones working with FreeBSD just fine in my rack and 
need to  have the new one connect with a DSL modem on a static address.


The instructions they sent me along with the switch that was a 
replacement for a non smart one at no charge is the type for using a 
DHCP service on Microsoft. (I cant complain about the up grade but its 
over kill for my purpose.


Any help would be appreciated.

~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
  + http://hawaiidakine.com + http://freebsdinfo.org +
  + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   email: n...@hdk5.net 
All that's really worth doing is what we do for others.- Lewis Carrol

___
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