Re: For My Edification

2011-05-03 Thread Polytropon
On Mon, 02 May 2011 20:07:54 -0500, Kevin Kinsey k...@daleco.biz wrote:
  On Mon, 2 May 2011 18:47:11 -0400, Louis Marrerolouis_marr...@yahoo.com 
   wrote:
  Being familiar only with general knowledge on the Windows XP that I use
  daily, I've gone on the web to find out more information on some of the
  terms used by this programmer, such as BSD,
  Berkeley Software Distribution, from which FreeBSD is
  derived. There are other BSDs.
 
 
 
  shell terminal,
  A dialog terminal that runs an interactive shell, a
  command-line processor that you use to issue commands
  to the system. The term's origin is the terminal,
  a stand-alone device (often called dumb terminal)
  that served the same purpose - communicate with the
  computer - without being a real computer.
 
 
 Windows systems also have a command interpreter,

I didn't claim they haven't. :-)



 though (arguably) it's hardly used and considered
 arcane by most users.  On all the NT and later systems
 this is cmd.exe.

There also is an additional tool called something like
Power shell (not fully sure, I'm not a Windows person)
that is more like a UNIX shell than CMD.EXE, which has
its origins in the COMMAND.COM of DOS - not the _real_ DOS
of course. :-)

Using a command line interpreter in Windows violates
the concept of that specific environment, so its
hardly known that it even does exist.

Also detaching control from a Windows system isn't
something typical (e. g. starting jobs on a computer
that you're currently not sitting infront of), but I
think it's possible to do so, via some kind of remote
access, RDP-based. At least it's comparable.




  My very basic question is this: Is it even
  possible to install a second OS, like FreeBSD on an existing Windows-based
  computer?
  That's easily possible. You need to do a proper partitioning
  of the hard disk and then install FreeBSD into a free partition.
 
  You can also make use of so-called Live systems, a thing
  not common to Windows: This is an installed and configured
  operating system that you boot from a CD, DVD or USB stick.
  You do NOT have to install it.
 
 
 
 And this is the only *real* interesting input.  Download
 Sun's Virtual machine software, VirtualBox (I believe
 they just released version 4.0.6) and you can set up a
 FreeBSD machine *inside* your windows machine with
 no need to add any additional hardware or do any
 repartitioning of the hard disk.

Good advice, I didn't think of this primarily, simply
because I'm neither a multi-booter nor a user of
software that runs on any Windows. Using a virtualized
environment gives you the chance NOT to deal with
hardware issues in the first place, while keeping your
disk content fully intact. System power and disk space
shouldn't be any problem today.

This reminds me to the following link I have in my
bookmarks box: How about trying VirtualBSD?

http://www.virtualbsd.info/

Although the homepage states it's primarily intended
for VMWare, it should also work with VirtualBox (see
navigation tab on the right).



  I'd be grateful for any information.
  I may point you to the EXCELLENT documentation online: The
  FreeBSD Handbook and the FAQ. Those are QUALITY material
  not comparable to anything you find in Windows land. If
  you're dealing with IT matter, you'll have no problem to
  determine _what_ to read. Those resources can be easily
  accessed through the FreeBSD web page, but can also used
  locally (maybe on systems without Internet or web access).
 
 +1 for the FreeBSD Handbook.  Ten years ago, I downloaded
 it, and now scores of people in my area think I'm the guru to
 match all 'Nix gurus.  Of course, they're all Windows users ;-)

I would like to add the excellent manpages of the system.
Unlike many Linusi, those manpages are kept current by the
FreeBSD operating system developers and their documentation
assistants. So whenever you're not fully sure about something,
use man something. This applies to commands, configuration
files, kernel interfaces, library calls and maintenance
procedures. *Everything* is well documented. And you don't
even need Internet access to get that information, as the
manpage doesn't direct you to some arbitrary Wiki on the
web. :-)




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


Get the dev.cpu.0.temperature from sysctl(3)

2011-05-03 Thread David Demelier

Hello,

I would like to get the dev.cpu.0.temperature node from sysctlbyname(). 
It seems this node is an opaque type but how to check it and store it to 
the appropriate variable type ?


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: For My Edification

2011-05-03 Thread Nikola Pavlović
On Mon, May 02, 2011 at 06:47:11PM -0400, Louis Marrero wrote:
 
 Here are some questions that can help my understanding:
 
 
 1. I know that Windows is an OS, and Linux/Unix as well as FreeBSD
 are other Operating System.  My very basic question is this: Is it even
 possible to install a second OS, like FreeBSD on an existing Windows-based
 computer?
 

Others have given you fine answers so I'll just point out something I
think might be a good advice for a Unix novice: if you decide to install
a Linux try to go with one of the more traditional distributions (I've
recently read someone call then time wasters :)) like Slackware, Arch
Linux or similar.  The reason is they don't encourage you do do stuff
the Windows way (like, for example, Ubuntu does).  If you need to learn
about Unix you'll learn much faster and better in such an environment.
Both Slackware and Arch are BSD styled which is a little unusual in the
Linux land.  Of course, it's probably better to get the real thing and
install one of the BSDs, FreeBSD probably being the sanest choice for a
newcomer because of it's outstanding documentation (The FreeBSD Handbook
is really a clear step-by-step guide to FreeBSD, and doesn't assume any
prior Unix knowledge).

  
 
 2. Is it possible to link my Windows laptop to a web server with
 Unix or FreeBSD and exercise Unix/Linux commands.  If so, how is that done?
 

There is a number of servers that offer free shell accounts (a web
server is a different thing) so you can practice and learn even without
installing anything but PuTTY (an SSH client for Windows).  I've never
used any of them so I can't recommend any particular, but you can find a
list of such servers on http://shells.red-pill.eu/ (it seems there are a
few of them with FreeBSD).



-- 
What is love but a second-hand emotion?
-- Tina Turner

___
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: For My Edification

2011-05-03 Thread Daniel Staal

--As of May 3, 2011 9:46:04 AM +0200, Polytropon is alleged to have said:


I would like to add the excellent manpages of the system.
Unlike many Linusi, those manpages are kept current by the
FreeBSD operating system developers and their documentation
assistants. So whenever you're not fully sure about something,
use man something. This applies to commands, configuration
files, kernel interfaces, library calls and maintenance
procedures. *Everything* is well documented. And you don't
even need Internet access to get that information, as the
manpage doesn't direct you to some arbitrary Wiki on the
web. :-)


--As for the rest, it is mine.

And, vice-versa, you don't need a FreeBSD box to read them, if you have the 
web: They are all posted online at http://www.FreeBSD.org/cgi/man.cgi for 
you to read.


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
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


access an extended partition

2011-05-03 Thread sofiane chabane
  Good morning,
  I have installed FreeBSD in a multiboot way on my PC but till now I can't 
access my extended partition. Indeed, on my PC I have 4 primary partitions that 
I organized like this:
 

 Primary partition 1 : WinRE of windows vista

 Primary partition 2 : windows Vista

 Primary partition 3 : FreeBSD

 Primary partition 4 that is the extended one contains:
   
 Logical partition 1 : windows XP
   
 Logical partition 2 : a Gnu/Linux distribution
   
 Logical partition 3 : Data

So, the problem is that I can't access the extended partion especially the Data 
one. This is my first problem.

 The second one is this: 
 I'd like to change my profil picture (on my logging screen-I'm using KDE) and 
put my personal photo for example; I have tried but kdbm inducates that it 's 
impossible to do it.
 These are the problems I've encountered, so I hope I were concise.
 Thank you very much for being so kind and help me to solve these problems.

 
 Best Regards
  


___
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: For My Edification

2011-05-03 Thread Robert Huff

Daniel Staal writes:

   I would like to add the excellent manpages of the system.
   Unlike many Linusi, those manpages are kept current by the
   FreeBSD operating system developers and their documentation
   assistants. So whenever you're not fully sure about something,
   use man something. This applies to commands, configuration
   files, kernel interfaces, library calls and maintenance
   procedures. *Everything* is well documented. And you don't
   even need Internet access to get that information, as the
   manpage doesn't direct you to some arbitrary Wiki on the
   web. :-)
  
  And, vice-versa, you don't need a FreeBSD box to read them, if
  you have the web: They are all posted online at
  http://www.FreeBSD.org/cgi/man.cgi for you to read.

It is worth noting there are reference works - intended for
those who already know something about a topic/program - not
tutorials intended to teach concepts and terminology on how to do a
specific task.
At this point I usually recommend the most recent edition of
_/The Unix System Administration Handbook/_.  It is well-written; it
covers flavors other than FreeBSD; and it goes into enough of the
conceptual infrastructure to be very useful in diagnosing some kinds
of breakage.


Robert Huff






___
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


OT: Security question (openssl vs openssh)

2011-05-03 Thread Mark Moellering

Everyone,
I am looking into setting up a webserver to hold some very sensitive 
information.  I am trying to figure out which is more secure, forcing 
any web connections to be done using an ssh tunnel or forcing ssl.
I have not been able to figure out if one is definitively much more 
secure than another or if they are close to the same.  I would have 
initially thought the ssh tunnel was more secure but knowing that ssl 
can use AES-256, I am now wondering if that isn't adding a complexity 
for little extra security.


Thanks in advance

Mark Moellering
___
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: Security question (openssl vs openssh)

2011-05-03 Thread Maxim Khitrov
On Tue, May 3, 2011 at 10:22 AM, Mark Moellering m...@msen.com wrote:
 Everyone,
 I am looking into setting up a webserver to hold some very sensitive
 information.  I am trying to figure out which is more secure, forcing any
 web connections to be done using an ssh tunnel or forcing ssl.
 I have not been able to figure out if one is definitively much more secure
 than another or if they are close to the same.  I would have initially
 thought the ssh tunnel was more secure but knowing that ssl can use AES-256,
 I am now wondering if that isn't adding a complexity for little extra
 security.

 Thanks in advance

 Mark Moellering

I don't think there is any extra security in tunneling an HTTP
connection over SSH. Use authentication is a different matter, but the
encryption algorithms are the same. Most web servers have an option of
configuring what ciphers are allowed (same as OpenSSH, by the way), so
you can easily restrict HTTPS connections to just AES-256 or any other
cipher you prefer.

The bigger issue will be how to prevent MITM attacks. With SSH, you
have to make sure that the clients have the correct public key ahead
of time or provide a way to verify the key during the first
connection.

With HTTPS you can get a certificate from an existing CA, which allows
clients to verify the server identity without any extra work on your
part. As an alternative, you can create your own CA and distribute the
public key to the clients, which is pretty similar to SSH, except that
it's much easier to change the server certificate later on.

- Max
___
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: Security question (openssl vs openssh)

2011-05-03 Thread Jon Radel


On 5/3/11 10:22 AM, Mark Moellering wrote:


Everyone,
I am looking into setting up a webserver to hold some very sensitive
information. I am trying to figure out which is more secure, forcing any
web connections to be done using an ssh tunnel or forcing ssl.
I have not been able to figure out if one is definitively much more
secure than another or if they are close to the same. I would have
initially thought the ssh tunnel was more secure but knowing that ssl
can use AES-256, I am now wondering if that isn't adding a complexity
for little extra security.

Thanks in advance

Mark Moellering


I'd say that that's a really hard problem to answer definitively, but my 
gut reaction is that the less complex solution is less likely to involve 
configuration screw-ups which compromise security.  Particularly if 
other administrators are or will be involved, that which is too clever 
just begs for innocent, even if clueless, changes that compromise 
assumptions upon which the security depends.


In any case, I'd worry more about how I handle user authentication and 
authorization than squeezing the last little drop of warm fuzzies out of 
the encryption setup.  To the extent that if you already have a fully 
trusted infrastructure in place for ssh keys, you might want to consider 
using ssh tunnels for that reason alone.


Or, to put it another way, if your security is going to fall, it's much 
more likely that it's going to involve a poor configuration choice, a 
user that screws up big time, or a back door to the data, than a 
successful technical attack against TSL or SSH.


--Jon Radel
j...@radel.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: For My Edification

2011-05-03 Thread Chad Perrin
On Tue, May 03, 2011 at 09:46:04AM +0200, Polytropon wrote:
 
 There also is an additional tool called something like Power shell
 (not fully sure, I'm not a Windows person) that is more like a UNIX
 shell than CMD.EXE, which has its origins in the COMMAND.COM of DOS -
 not the _real_ DOS of course. :-)

It's *not* really much like a Unix shell, actually.  For instance, it
doesn't have the Unix pipeline (which cmd.exe *does* have).  Instead, it
assumes everything you'll be passing around in it is basically a
serialized object in the tradition of the .NET framework.  It is, in
short, more of a glue code development tool for .NET developers than a
proper command shell.

You can abuse it as a command shell if you want to, but in my experience
the REPL for the R6RS (Scheme) implementation called Ypsilon serves as a
better command shell than PowerShell.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpanbM1ozc7r.pgp
Description: PGP signature


/etc/newsyslog.conf and denyhosts

2011-05-03 Thread Janos Dohanics
What is the correct way to rotate denyhosts log files?

In /etc/newsyslog.conf I have:

/var/log/denyhosts  644 12  *   $M1D0
JC  /var/run/denyhosts.pid

However, denyhosts does not log in the new file.

-- 
Janos Dohanics
___
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: Security question (openssl vs openssh)

2011-05-03 Thread Bill Campbell
On Tue, May 03, 2011, Mark Moellering wrote:
 Everyone,
 I am looking into setting up a webserver to hold some very sensitive  
 information.  I am trying to figure out which is more secure, forcing  
 any web connections to be done using an ssh tunnel or forcing ssl.
 I have not been able to figure out if one is definitively much more  
 secure than another or if they are close to the same.  I would have  
 initially thought the ssh tunnel was more secure but knowing that ssl  
 can use AES-256, I am now wondering if that isn't adding a complexity  
 for little extra security.

Our solution for critical services like this is to run the
service only on a private LAN segment which is available from the
outside world only through an OpenVPN connection.  The OpenVPN
connection requires unique keys for each client which are easily
revoked if a laptop is lost or stolen or on employee termination.

It also isolates the web service from other external attacks via
insecure PHP scripts and such.

Bill
-- 
INTERNET:   b...@celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186  Skype: jwccsllc (206) 855-5792

If the personal freedoms guaranteed by the Constitution inhibit the
government's ability to govern the people, we should look to limit those
guarantees.  -- President Bill Clinton, August 12, 1993
___
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: Unix basics (was Re: For My Edification)

2011-05-03 Thread ill...@gmail.com
On 2 May 2011 19:37, Chris Hill ch...@monochrome.org wrote:
 On Mon, 2 May 2011, Louis Marrero wrote:

 Being familiar only with general knowledge on the Windows XP that I use
 daily, I've gone on the web to find out more information on some of the
 terms used by this programmer, such as BSD, shell terminal, nc -u,
 etc.  Since my friend knows that my computer is strictly MS Windows, when my
 friend writes down something like In a shell terminal type nc -u
 10.101.97.200 . it makes me wonder what I'm missing.

 When he says shell terminal, think command prompt. nc is netcat, but I
 didn't know Windows had that. In your friend's defense, I use Windows every
 day (at work) and I can't always remember what things are called. Especially
 since MS changes terminology every now and then, evidently just for the hell
 of it.

 1.  I know that Windows is an OS, and Linux/Unix as well as FreeBSD are
 other Operating System.  My very basic question is this: Is it even possible
 to install a second OS, like FreeBSD on an existing Windows-based computer?

 Yes. You can either set it up for dual boot - either by adding a second hard
 drive, or by partitioning your existing drive if there's space - or you can
 run another OS within a virtual machine of some sort. The latter would need
 a pretty fast machine if the guest OS is to have decent performance.

 Having said that, I found it easier to get started using an old PC that was
 too slow to run a modern Windows, but perfectly fine for a GUI-free BSD. I'm
 typing this on an old Dell that I bought on ebay.


Another possibility is to install cygwin ( http://www.cygwin.com/ )
which will give you a rather goodly number of unix/gnu programs,
though they have the unfortunate habit of defaulting to bash, and
if you install a compiler and some basic build tools a nigh-unto
infinite number of programs become available.

That said, buying an older, cheap machine to install FreeBSD on
is probably the easiest.  And who doesn't enjoy buying more stuff?

 2.  Is it possible to link my Windows laptop to a web server with Unix or
 FreeBSD and exercise Unix/Linux commands.  If so, how is that done?

 The server's admin would have to give you a shell account. Most commercial
 ISPs won't do that, but maybe your friend will.


With PuTTY, you can connect to any unix/linux/bsd machine
with sshd enabled (though you need an account on that
machine to actually log in).
( http://www.chiark.greenend.org.uk/~sgtatham/putty/ )

X forwarding onto a windows machine
( http://www.math.umn.edu/systems_guide/putty_xwin32.html )
may be best reserved for the 201 course.

-- 
--
___
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: /etc/newsyslog.conf and denyhosts

2011-05-03 Thread Janos Dohanics
On Tue, 3 May 2011 13:03:25 -0500 (CDT)
Robert Bonomi bon...@mail.r-bonomi.com wrote:

  From owner-freebsd-questi...@freebsd.org  Tue May  3 12:17:12 2011
  Date: Tue, 3 May 2011 12:40:37 -0400
  From: Janos Dohanics w...@3dresearch.com
  To: freebsd-questions@freebsd.org
  Subject: /etc/newsyslog.conf and denyhosts
 
  What is the correct way to rotate denyhosts log files?
 
  In /etc/newsyslog.conf I have:
 
  /var/log/denyhosts  644 12  *
  $M1D0 JC  /var/run/denyhosts.pid
 
  However, denyhosts does not log in the new file.
 
 Denyhosts has to be informed that the logfile has changed, so that it
 can close and re-open the logfile.   It may be possible by sending it
 a 'signal', or you may have to kill/restart it.  See the
 documentation for denyhosts.
 
 Newsyslog itself does _not_ notify/restart any daemons  you have to
 do this yourself.

Thank you, I'll just set up a cron job to restart it

-- 
Janos Dohanics
___
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: /etc/newsyslog.conf and denyhosts

2011-05-03 Thread Glenn Sieb
On 5/3/11 2:32 PM, Janos Dohanics wrote:
 Denyhosts has to be informed that the logfile has changed, so that
 it can close and re-open the logfile.   It may be possible by
 sending it a 'signal', or you may have to kill/restart it.  See
 the documentation for denyhosts.
 
 Newsyslog itself does _not_ notify/restart any daemons  you have
 to do this yourself.

From the man page for newsyslog.conf:

 path_to_pid_file
  This optional field specifies the file name containing a daemon's
  process ID or to find a group process ID if the U flag was speci-
  fied.  If this field is present, a signal_number is sent the
  process ID contained in this file.  If this field is not present,
  then a SIGHUP signal will be sent to syslogd(8), unless the N
  flag has been specified.  This field must start with `/' in order
  to be recognized properly.

 signal_number
  This optional field specifies the signal number that will be sent
  to the daemon process (or to all processes in a process group, if
  the U flag was specified).  If this field is not present, then a
  SIGHUP signal will be sent.

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


Enabling composite-out in a video card.

2011-05-03 Thread Chris Rees
OK, so in what can only be described as a ridiculous shot in the dark...

I've got my Macbook running as a server under my TV, and I was trying
to connect the video-out to the TV.

However... my mini-DVI-VGA plugged into the VGA-composite adaptor
isn't working (surprise surprise)

Is there a command can put in to force TV-out through VGA (through DVI?)?

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Enabling composite-out in a video card.

2011-05-03 Thread Mark

 From: Chris Rees utis...@gmail.com
 Subject: Enabling composite-out in a video card.
 To: freebsd-questions@freebsd.org
 Date: Tuesday, May 3, 2011, 2:06 PM
 OK, so in what can only be described
 as a ridiculous shot in the dark...
 
 I've got my Macbook running as a server under my TV, and I
 was trying
 to connect the video-out to the TV.
 
 However... my mini-DVI-VGA plugged into the VGA-composite
 adaptor
 isn't working (surprise surprise)
 
 Is there a command can put in to force TV-out through VGA
 (through DVI?)?
 
 Chris

read the man page for the Xorg driver, you may need to enable it in the 
xorg.conf. I guess you are running freeBSD??? 



___
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


Can I bridge the same subnet across a VPN?

2011-05-03 Thread Geoff Roberts
Hi,

Is it possible to join two sites with the same subnet across a VPN?

I have two sites that have the same subnet/mask.

I need these two separated networks to behave as one across a VPN.

All configuration examples I've come across so far assume that each site will 
have a different subnet. Eg, one site with 192.168.1.0/24 the other with 
192.168.2.0/24

I control the firewalls at each end. One will be a pfsense firewall, the other 
an existing FreeBSD 7.4 system.

For example I would want to be able to do the following:

Site A   Site B
--   --
Firewall A 10.1.1.3  - Firewall B 10.1.1.4
  |   |
Subnet: 192.168.20.0/24   Subnet: 192.168.20.0/24

Happy to use either IPSec or OpenVPN to actually encrypt the traffic.

Kind regards,

Geoff


___
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: Enabling composite-out in a video card.

2011-05-03 Thread Chris Rees
On 3 May 2011 20:21, Mark redt...@sbcglobal.net wrote:

 From: Chris Rees utis...@gmail.com
 Subject: Enabling composite-out in a video card.
 To: freebsd-questions@freebsd.org
 Date: Tuesday, May 3, 2011, 2:06 PM
 OK, so in what can only be described
 as a ridiculous shot in the dark...

 I've got my Macbook running as a server under my TV, and I
 was trying
 to connect the video-out to the TV.

 However... my mini-DVI-VGA plugged into the VGA-composite
 adaptor
 isn't working (surprise surprise)

 Is there a command can put in to force TV-out through VGA
 (through DVI?)?

 Chris

 read the man page for the Xorg driver, you may need to enable it in the 
 xorg.conf.

D'oh, thanks!

 I guess you are running freeBSD???

Oh dear, I must have looked really clueless. Yes I am!

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Get the dev.cpu.0.temperature from sysctl(3)

2011-05-03 Thread Roland Smith
On Tue, May 03, 2011 at 10:12:33AM +0200, David Demelier wrote:
 Hello,
 
 I would like to get the dev.cpu.0.temperature node from sysctlbyname(). 
 It seems this node is an opaque type but how to check it and store it to 
 the appropriate variable type ?

The best way to determine this is to read the source. I did that some time ago
to fix the temperature display in sysutils/conky. 

The sysctl dev.cpu.0.temperature returns an integer, see
/sys/dev/coretemp/coretemp.c (look for the string temperature), and you'll 
see:

/*
 * Add the temperature MIB to dev.cpu.N.
 */
sc-sc_oid = SYSCTL_ADD_PROC(device_get_sysctl_ctx(pdev),
SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)),
OID_AUTO, temperature,
CTLTYPE_INT | CTLFLAG_RD,
dev, 0, coretemp_get_temp_sysctl, IK,
Current temperature);

If you look at the definition of coretemp_get_temp_sysctl in the same file:

coretemp_get_temp_sysctl(SYSCTL_HANDLER_ARGS)
{
device_t dev = (device_t) arg1;
int temp;

temp = coretemp_get_temp(dev) * 10 + TZ_ZEROC;

return (sysctl_handle_int(oidp, temp, 0, req));
}

So the returned value is an 'int'. Note that TZ_ZEROC is #defined as 2732 at
the beginning of the file. The returned value is therefore the temperature
in Kelvin times ten.

On my machine, it gives e.g.:

sysctl dev.cpu.0.temperature
dev.cpu.0.temperature: 46.0C

If we check the 'raw' return value;

sysctl -b dev.cpu.0.temperature|hd
  78 0c 00 00   |x...|
0004

Running this value with the abovementioned algorithm in reverse through a
calculator, we get

   (0x0c78-2732)/10 = 46°C

Hope this helps.


Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpXPbScJFToy.pgp
Description: PGP signature


Re: Can I bridge the same subnet across a VPN?

2011-05-03 Thread Kevin Wilcox
On Tue, May 3, 2011 at 15:19, Geoff Roberts ge...@apro.com.au wrote:

 Is it possible to join two sites with the same subnet across a VPN?

Yes.

 I have two sites that have the same subnet/mask.

 I need these two separated networks to behave as one across a VPN.

That's understandable. You may want to consider breaking the /24 into
two /25s, one at each site, and routing the connection instead but
that's not necessary and you can indeed use a bridge with few issues.

 Happy to use either IPSec or OpenVPN to actually encrypt the traffic.

We've done it as a demo of what you can do with OpenVPN, it's trivial
once you get some configuration issues straight in your head (or
that's how it worked for me).

To bridge in OpenVPN, take a look at:

http://openvpn.net/index.php/open-source/documentation/miscellaneous/76-ethernet-bridging.html

kmw
___
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: Get the dev.cpu.0.temperature from sysctl(3)

2011-05-03 Thread David Demelier

On 03/05/2011 21:40, Roland Smith wrote:

On Tue, May 03, 2011 at 10:12:33AM +0200, David Demelier wrote:

Hello,

I would like to get the dev.cpu.0.temperature node from sysctlbyname().
It seems this node is an opaque type but how to check it and store it to
the appropriate variable type ?


The best way to determine this is to read the source. I did that some time ago
to fix the temperature display in sysutils/conky.

The sysctl dev.cpu.0.temperature returns an integer, see
/sys/dev/coretemp/coretemp.c (look for the string temperature), and you'll 
see:

 /*
  * Add the temperature MIB to dev.cpu.N.
  */
 sc-sc_oid = SYSCTL_ADD_PROC(device_get_sysctl_ctx(pdev),
 SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)),
 OID_AUTO, temperature,
 CTLTYPE_INT | CTLFLAG_RD,
 dev, 0, coretemp_get_temp_sysctl, IK,
 Current temperature);

If you look at the definition of coretemp_get_temp_sysctl in the same file:

coretemp_get_temp_sysctl(SYSCTL_HANDLER_ARGS)
{
 device_t dev = (device_t) arg1;
 int temp;

 temp = coretemp_get_temp(dev) * 10 + TZ_ZEROC;

 return (sysctl_handle_int(oidp,temp, 0, req));
}

So the returned value is an 'int'. Note that TZ_ZEROC is #defined as 2732 at
the beginning of the file. The returned value is therefore the temperature
in Kelvin times ten.

On my machine, it gives e.g.:

 sysctl dev.cpu.0.temperature
dev.cpu.0.temperature: 46.0C

If we check the 'raw' return value;

 sysctl -b dev.cpu.0.temperature|hd
   78 0c 00 00   |x...|
 0004

Running this value with the abovementioned algorithm in reverse through a
calculator, we get

(0x0c78-2732)/10 = 46°C

Hope this helps.


Roland


Thanks a lot!

I had a look into the src and I saw the format IK used to register the 
sysctl node but I was also surprised that IK was not defined in man 
sysctl(9)


But I finally understood that K should means Kelvin :)

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


FreeBSD 9.0-RELEASE

2011-05-03 Thread Mike Seda

Hi All,
When will FreeBSD 9.0-RELEASE be available?

I remember reading that it would be ready in May 2011. I just wanted to 
see if it was on schedule or not.


Thanks,
Mike
___
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 9.0-RELEASE

2011-05-03 Thread ill...@gmail.com
On 3 May 2011 15:11, Mike Seda mas...@stanford.edu wrote:
 Hi All,
 When will FreeBSD 9.0-RELEASE be available?

 I remember reading that it would be ready in May 2011. I just wanted to see
 if it was on schedule or not.


Dr. Who has been running it for two regenerations already.

Get with the program, Nyssa!

-- 
--
___
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 9.0-RELEASE

2011-05-03 Thread Jerry McAllister
On Tue, May 03, 2011 at 12:11:07PM -0700, Mike Seda wrote:

 Hi All,
 When will FreeBSD 9.0-RELEASE be available?
 
 I remember reading that it would be ready in May 2011. I just wanted to 
 see if it was on schedule or not.

I don't remember seeing that.
Anyway, go to the FreeBSD Release Engineering web site for information.

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

jerry


 
 Thanks,
 Mike
 ___
 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


How to delete a line from setenv?

2011-05-03 Thread Alexander Lardner
Hi list,
This is a very basic question, but how do I delete a value from setenv? I
screwed up when changing a few things...don't ask. Thanks for any help!
-Alex
___
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 delete a line from setenv?

2011-05-03 Thread Devin Teske
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Alexander Lardner
 Sent: Tuesday, May 03, 2011 5:43 PM
 To: freebsd-questions@freebsd.org
 Subject: How to delete a line from setenv?
 
 Hi list,
 This is a very basic question, but how do I delete a value from setenv? I
screwed
 up when changing a few things...don't ask. Thanks for any help!

unsetenv
-- 
Devin


_

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. 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: FreeBSD 9.0-RELEASE

2011-05-03 Thread Daniel Staal
--As of May 3, 2011 5:33:23 PM -0400, Jerry McAllister is alleged to have 
said:



I don't remember seeing that.
Anyway, go to the FreeBSD Release Engineering web site for information.

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


--As for the rest, it is mine.

While that *should* be good advice, the most current 'upcoming releases' it 
lists are 8.2 and 7.4, both released a couple of months ago now.  (Which it 
does say, at least.)  So it's really fairly useless at the moment.


Basically, as far as I can tell, 9 and/or 8.3 will come out when they come 
out.  No sooner and no later.


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
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 9.0-RELEASE

2011-05-03 Thread Bruce Cran
On Tue, 03 May 2011 20:48:55 -0400
Daniel Staal dst...@usa.net wrote:

 Basically, as far as I can tell, 9 and/or 8.3 will come out when they
 come out.  No sooner and no later.

I think the plan for 9.0 is some time this summer.

-- 
Bruce Cran
___
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