Re: How to add sio to 8.2 ?

2011-07-21 Thread perryh
Lars Eighner luvbeas...@larseighner.com wrote:

 I've come to the conclusion that I need sio to be able to use 8.x.

 Can it be as simple as just dropping the code from 7.x into the
 source for 8.x and adding a line to the kernel configuration?

 Or would this be fraught with all kinds of deep traps?

sio(4) was replaced by uart(4) as part of the Giant retirement.
Depending on what you need that uart(4) does not currently have,
it might be easier to improve uart(4) than to resurrect sio(4).
___
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: scrpt help neded...

2011-07-21 Thread Murray Taylor
-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of
per...@pluto.rain.com
Sent: Thursday, 21 July 2011 10:08 PM
To: kl...@thought.org
Cc: freebsd-questions@freebsd.org
Subject: Re: scrpt help neded...

Gary Kline kl...@thought.org wrote:

 I'm looking for a script that takes on arg and lets   me vi/vim
 into the r esults.  Let's say that I'm looking for the string
 201107 in a slew of files.  the script find it with grep---not
 grep -w, just grep.  collect es the filenames and lines (grep -n)
 and saves  then temporarily, then points vim or vi at each
 file+linenumbr and execs it for me.   the fewer keystrokes, the
 better.

To edit each file that contains 201107:

  $ vi ` grep -l 201107 {files to be searched} `

That won't pre-position within the files, but since it's a single
invocation of vi, with each subsequent file being loaded by :n, a
search pattern will persist (unless/until you replace it by entering
a different search pattern).  At the top of the first file, you enter

  /201107

to find the first instance, n to find the second, etc.  After :n
-- at the top of the second file -- n alone will find the first
instance.

OTOH if you want to bring up an xterm containing _the results of
the grep_ you can pipe it into the attached script.  There is no
manpage, but the comments and the (straightforward) parameter
decoding should provide a start.  (There are a few magic numbers,
which ideally should be tweaked for your X11 installation's font
dimensions, but nothing horrible will happen if they are slightly
off.)

-

get your grep script to return the line number of the item to be changed
and 
then use vi -clinenumber filename  this is preposition you on the
line
containing the grepped target.
 


-- 
Murray Taylor
Bytecraft Systems
Special Projects Engineer

 |_|0|_|Absence of evidence
 |_|_|0|is not evidence of absence
 |0|0|0|Carl Sagan



 
---
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material. 

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---

### This e-mail message has been scanned for Viruses by Bytecraft ###
___
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 add sio to 8.2 ?

2011-07-21 Thread Lars Eighner

On Thu, 21 Jul 2011, per...@pluto.rain.com wrote:


Lars Eighner luvbeas...@larseighner.com wrote:


I've come to the conclusion that I need sio to be able to use 8.x.

Can it be as simple as just dropping the code from 7.x into the
source for 8.x and adding a line to the kernel configuration?

Or would this be fraught with all kinds of deep traps?


sio(4) was replaced by uart(4) as part of the Giant retirement.
Depending on what you need that uart(4) does not currently have,
it might be easier to improve uart(4) than to resurrect sio(4).


In the meantime I actually answered my own question. sio is in the source
code for 8.2 (or at least it was not deleted by cvsup).  It certainly
appears that it is only necessary to add device sio to the kernel
configuration.  I have not actually compiled it yet.  I think I might have
to remove uart to keep it from grabbing the COMM devices.

uart cannot properly identify the only internal hardware dial-up modem still
obtainable (and incorrectly identifies its chip) --- the one we all had to
buy to run FreeBSD.  Whether its inability to handle dial-up PPP on demand
is the fault of the new TTY set up (as some have suggested) can only really
be determined by seeing if sio can function in the same environment, but
that uart authors overlooked a piece of hardware required for years in
FreeBSD sort of suggests that perhaps they overlooked other things.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

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


best way to force a single packet to be sent via a specific interface

2011-07-21 Thread Aryeh Friedman
I have both ethernet (the default route and such) and ppp done via
ppp -ddial the man page for ppp(8) says tun0 will not have an IP
assigned until a single packet is sent on it... what is the best way
to have one packet sent on it (ping only always ifaces on multicast,
traceroute seems to have no way to say exit after the first hop and/or
after one packet is sent, tcpdump refuses a -c 0 arg saying it is
illegal)
___
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


Fwd: best way to force a single packet to be sent via a specific interface

2011-07-21 Thread Aryeh Friedman
-- Forwarded message --
From: Aryeh Friedman aryeh.fried...@gmail.com
Date: Thu, Jul 21, 2011 at 4:00 AM
Subject: best way to force a single packet to be sent via a specific interface
To: FreeBSD Mailing List freebsd-questions@freebsd.org


I have both ethernet (the default route and such) and ppp done via
ppp -ddial the man page for ppp(8) says tun0 will not have an IP
assigned until a single packet is sent on it... what is the best way
to have one packet sent on it (ping only always ifaces on multicast,
traceroute seems to have no way to say exit after the first hop and/or
after one packet is sent, tcpdump refuses a -c 0 arg saying it is
illegal)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


best way to replicate system

2011-07-21 Thread Aryeh Friedman
I have set up a machine that is 100% configred and now needs to be
duplicated to an arbitrary number of other machines (23 currently)...
none of the machines have optical drives (or floppies) so it has to be
a USB install... what is the best way to do this all I can think of is
make release or make a diskimage and dd 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


Maintenance script/port

2011-07-21 Thread Jos Chrispijn
Can someone recommend me a text driven maintenance (re)port that informs 
me about the health of my FreeBSD system?
I currently use the standard BSD report information, but like to get 
more information out of my partitions, OS etc.

This program should be ran by schedule and send me the outcome by email.

Thanks in advance.
Jos Chrispijn
___
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: Sendmail not accepting connections on port 25

2011-07-21 Thread Bernt Hansson

2011-07-20 06:24, ssgriffonuser skrev:


I still can't telnet in from an external network.


To me, that sounds like your external network might be blocking outgoing 
traffic on port 25.


Can you connect to any other mailservers on port 25?

%telnet gmail-smtp-in.l.google.com 25
Trying 74.125.77.27...
telnet: connect to address 74.125.77.27: Connection refused
telnet: Unable to connect to remote host

My isp is blocking outgoing traffic on port 25.
___
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-questions] Maintenance script/port

2011-07-21 Thread Howard Jones
On 21/07/2011 09:25, Jos Chrispijn wrote:
 Can someone recommend me a text driven maintenance (re)port that
 informs me about the health of my FreeBSD system?
 I currently use the standard BSD report information, but like to get
 more information out of my partitions, OS etc.
 This program should be ran by schedule and send me the outcome by email.
You can add to the tasks that the xyz system Daily Run report uses to
produce it's report.

Check out periodic(1) and /etc/periodic.conf - the scripts that it uses
live in /etc/periodic and /usr/local/etc/periodic

Howie
___
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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread C. P. Ghost
On Thu, Jul 21, 2011 at 2:05 PM,  per...@pluto.rain.com wrote:
 Gary Gatten ggat...@waddell.com wrote:

 ... can a HAL be developed that runs on BSD that emulates
 Winblow$ such that any driver written for Winblow$ will work
 on *BSD?
 ...
 Something in the back of my head says there was / is something
 along this line already available or in the works, but I can't
 recall for sure.

 I _think_ we may already have something along these lines for
 NDIS (network) drivers, but I don't know how well it works.

Not using it today, but it helped me in the past for some exotic NICs.

Regarding the Windowsulator, I'm wondering if such a compat layer
would be possible. Don't Windows drivers all get created by some kind
of DDK/WDK, against a stable kernel-ABI?

I'm not familiar with Windows, but I don't think a typical windows
driver as written by a hardware vendor would manipulate the windows
kernel internals (data structures) directly, right? If that's correct,
we merely need to catch the ABI up- and down-calls from and to the
windows driver, and translate them into regular FreeBSD syscalls
(maybe augmented by a compat helper library?).

Since this is exactly the approach taken by the Linuxulator, I fail to
see why a similar method hasn't been tried for those windows kernel
driver (binary blobs). Maybe some artificial restrictions like, say,
patents are standing in the way? Or a technical restriction like such
binary blobs being encrypted with a public key, and only usable from
Windows kernel with their own secret key?

Only windows kernel hackers can tell.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: Maintenance script/port

2011-07-21 Thread Ross
I use security/logcheck which informs me via email about new entries
in /var/log/messages and also smartd from sysutils/smartmontools which
will email me when it detects any problems with  SMART disks.

And I also interested in something more.

On Thu, Jul 21, 2011 at 11:25 AM, Jos Chrispijn ker...@webrz.net wrote:
 Can someone recommend me a text driven maintenance (re)port that informs me
 about the health of my FreeBSD system?
 I currently use the standard BSD report information, but like to get more
 information out of my partitions, OS etc.
 This program should be ran by schedule and send me the outcome by email.

 Thanks in advance.
 Jos Chrispijn
 ___
 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: Maintenance script/port

2011-07-21 Thread Peter Vereshagin
Oh freebsd-questions want you buy me a mersedes benz?
2011/07/21 11:37:15 +0300 Ross basarev...@gmail.com = To Jos Chrispijn :
R I use security/logcheck which informs me via email about new entries
R in /var/log/messages and also smartd from sysutils/smartmontools which
R will email me when it detects any problems with  SMART disks.
R 
R And I also interested in something more.
R 
R On Thu, Jul 21, 2011 at 11:25 AM, Jos Chrispijn ker...@webrz.net wrote:
R  Can someone recommend me a text driven maintenance (re)port that informs me
R  about the health of my FreeBSD system?
R  I currently use the standard BSD report information, but like to get more
R  information out of my partitions, OS etc.
R  This program should be ran by schedule and send me the outcome by email.

There are security tasks built into the periodic(8) to be emailed to an admin.
I'd like to know if they can be processed to be the real alarms. There should
be the corresponding tools for this as sych a filtering can be done on an MDA
stage.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.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


build ports from not a root user?

2011-07-21 Thread Peter Vereshagin
Oh freebsd-questions want you buy me a mersedes benz?

I'd like to build my ports from not a root user.
How can I tell the ports system that it should su ( switch user ) before to
build the dependencies?
Can portupgrade handle this?
Dependencies should be installed from a root user.

Thank you.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.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


virtualbox 4.0

2011-07-21 Thread Minipot Gregg
I wanted to get freeBSD but I didn't wan't to dual boot so I used virtualbox
4.0 and downloaded the ISO of the freeBSD amd64 8.2.
It installed fine but when I got to the boot menu and pressed [enter] x2 it
said CPU doesnt support longmode and then come's up saying type '?' to show
comands,
or 'help' to show help.
when I typed either of these commands it says '?' not found or 'help' not
found whats wrong and what should I do?
___
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: virtualbox 4.0

2011-07-21 Thread Matthew Seaman
On 21/07/2011 09:48, Minipot Gregg wrote:
 It installed fine but when I got to the boot menu and pressed [enter] x2 it
 said CPU doesnt support longmode

This indicates trying to run an amd64 (64bit) kernel on an i386 (32bit)
processor.  That's a synthetic processor inside VirtualBox, so unlike
the real world, it's quite cheap to switch from one to the other...

If you go to Settings :: General for your VM, did you choose OS as 'BSD'
and Version as 'FreeBSD 64' ?

I'm assuming the host you're running VirtualBox on is 64bit capable...

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: virtualbox 4.0

2011-07-21 Thread Ross Cameron
Hi there Gregg

You have more than likely configured a 32bit virtual machine and not a 64bit
one.
Make that change to you're VM config and you will more than likely come
right.

Is you're host operating system also 64bit?



 Regards,...
Ross Cameron
eMail : ross.came...@unix.net
Phone : +27 (0)79 491-9954



On Thu, Jul 21, 2011 at 10:48 AM, Minipot Gregg minipotgr...@gmail.comwrote:

 I wanted to get freeBSD but I didn't wan't to dual boot so I used
 virtualbox
 4.0 and downloaded the ISO of the freeBSD amd64 8.2.
 It installed fine but when I got to the boot menu and pressed [enter] x2 it
 said CPU doesnt support longmode and then come's up saying type '?' to show
 comands,
 or 'help' to show help.
 when I typed either of these commands it says '?' not found or 'help' not
 found whats wrong and what should I do?
 ___
 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


multimedia

2011-07-21 Thread hasanhasanli Hasan


Hello everybody
I want to install driver Hauppauge WinTV PVR 250 for FreeBSD. I try for any 
version FreeBSD 7.4 and 8.2. I can't install it.
I have done following:
In Kernel I added next lines:
device  bktr
device  iicbus
device  iicbb
device  smbus 
then I have done 
cp hcwPVRP2.sys /usr/ports/distfiles
cd /usr/ports/multimedia/pvr250/
make install 
Port was installed ok didn't appeared any mistake.
But I can't see any driver cxm
# pciconf -lv 

none2@pci0:4:5:0:   class=0x04 card=0x48010070 chip=0x0803 rev=0x01 
hdr=0x00
    vendor = 'Conexant Inc (Was: Globespan, ICompression Inc)'
    device = 'iTVC15/CX23415 MPEG Codec'
    class  = multimedia
    subclass   = vidHelp me pleave  
  
I  use another port  /usr/ports/multimedia/pvrxxx 
then I 
# make
I have mistake:
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c: In 
function 'cxm_attach':
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1914: 
warning: passing argument 4 of 'bus_setup_intr' from incompatible pointer type
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1914: 
warning: passing argument 5 of 'bus_setup_intr' from incompatible pointer type
/usr/ports/multimedia/pvrxxx/work/modules/cxm/cxm/../../../dev/cxm/cxm.c:1914: 
error: too few arguments to function 'bus_setup_intr' 
Please help me___
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: best way to replicate system

2011-07-21 Thread Warren Block

On Thu, 21 Jul 2011, Aryeh Friedman wrote:


I have set up a machine that is 100% configred and now needs to be
duplicated to an arbitrary number of other machines (23 currently)...
none of the machines have optical drives (or floppies) so it has to be
a USB install... what is the best way to do this all I can think of is
make release or make a diskimage and dd it


dd works but is not optimal, copying a lot of empty disk space. [1]

dump(8) to create filesystem images [1], boot target with mfsBSD [2], 
set up target disk [3], restore(8) over ssh [1].


1. http://www.wonkity.com/~wblock/docs/html/backup.html
2. http://mfsbsd.vx.sk/
3. http://www.wonkity.com/~wblock/docs/html/disksetup.html
___
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: Question about regular expressions

2011-07-21 Thread Daniel Staal

On Wed, July 20, 2011 10:33 pm, dave jones wrote:
 Hi,

 I have a config file below:

 $user=   'root';   // This is the username

 if $user is found, I want to display root.
 Anyone knows how to programming in C or some other language? thank you.

I'm not quite sure what you are asking here.  Found where?  Display where?
 Are we just reading through the config file?  Are we processing some
other file with it's config?

It should be simple in Perl or some similar scripting language, if I knew
what you meant.  (Except for the comment, that could be a Perl file.  If
so, one way to 'process' the config file would be to execute it in your
main program, and then just use the variables assigned in it as regular
variables.)

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: virtualbox 4.0

2011-07-21 Thread Warren Block

On Thu, 21 Jul 2011, Matthew Seaman wrote:


On 21/07/2011 09:48, Minipot Gregg wrote:

It installed fine but when I got to the boot menu and pressed [enter] x2 it
said CPU doesnt support longmode


This indicates trying to run an amd64 (64bit) kernel on an i386 (32bit)
processor.  That's a synthetic processor inside VirtualBox, so unlike
the real world, it's quite cheap to switch from one to the other...

If you go to Settings :: General for your VM, did you choose OS as 'BSD'
and Version as 'FreeBSD 64' ?

I'm assuming the host you're running VirtualBox on is 64bit capable...


Recent versions of VirtualBox claim to be able to run a 64-bit VM on a 
32-bit host if the host CPU is 64-bit and has hardware virtualization 
support: http://forums.virtualbox.org/viewtopic.php?p=33940

(search for 64-bit guest)

So far I've only seen guest kernel panics when booting the kernel on an 
E8400 i386 FreeBSD host.

___
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


sata3 drive on areca 1880

2011-07-21 Thread Theodor-Iulian Ciobanu
Hello everybody, from this first time poster and FreeBSD newbie!

I have a Corsair Force 3 SSD attached to an Areca 1880ix-12 that I
don't know how to configure to use SATA3.

The controller reports 'SATA600+NCQ' as operating mode, but dmesg shows:
da3 at arcmsr0 bus 0 scbus0 target 2 lun 0
da3: Corsair Force 3 SSD R001 Fixed Direct Access SCSI-5 device
da3: 166.666MB/s transfers (83.333MHz DT, offset 32, 16bit)
da3: Command Queueing enabled
da3: 228936MB (468862128 512 byte sectors: 255H 63S/T 29185C)

bonnie++ confirms that max speed, which would be the equivalent of SATA1

I checked /usr/src/sys/dev/arcmsr and it contains not only references
to LSI2108, the chip used in this card, but also this:
** 1.20.00.17   07/15/2010  Ching Huang 
 Added support ARC1880

I tried searching the lists and online for more information, but wasn't able to 
find anything. So my question is - how does one go about making this drive work 
at native speed? Or is SATA3 somehow not yet supported for this card?

I'm running FreeBSD 8.2-STABLE #0: Tue Jul 19 22:38:32 EEST 2011

Regards,

-- 
Theo
___
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: best way to force a single packet to be sent via a specific interface

2011-07-21 Thread Lowell Gilbert
Aryeh Friedman aryeh.fried...@gmail.com writes:

 I have both ethernet (the default route and such) and ppp done via
 ppp -ddial the man page for ppp(8) says tun0 will not have an IP
 assigned until a single packet is sent on it... what is the best way
 to have one packet sent on it (ping only always ifaces on multicast,
 traceroute seems to have no way to say exit after the first hop and/or
 after one packet is sent, tcpdump refuses a -c 0 arg saying it is
 illegal)

I can't parse what you said about ping.  
I seem to recall doing that (with '-I' back when I was doing demand
dialing with ppp(8).
___
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: em0 NIC slow on 8.2-p1 amd64?

2011-07-21 Thread Michael W. Lucas
On Wed, Jul 20, 2011 at 05:19:47PM -0400, Mike Tancsa wrote:
 On 7/20/2011 12:04 PM, Michael W. Lucas wrote:
  Hi,
  
  I'm running FreeNAS 8.0/amd64, with an 8.2-p1 kernel.  When using FTP
  or SCP, performance maxes out around 30MB/s. This is on a gigabit
  network, no errors showing. 
 
 what does
 sysctl -a dev.em
 
 show ?
 
 What kind of switch is the box plugged into ? Can you show the output of
 the switch interface showing how its connected e.g. flow control,
 duplex, interface counters etc.

It's an HP Procurve 3400cl-24g.

  Port  Type  | Enabled Mode Flow Ctrl MDI 
...
  15100/1000T | Yes Auto Disable   Auto


  | Intrusion   MDI   Flow  Bcast 
  Port  Type  | Alert Enabled Status Mode   Mode  Ctrl  Limit 
...
  15100/1000T | NoYes Up 1000FDxMDI   off   0 

 Status and Counters - Port Counters for port 15  

  Name  : data5
  Link Status : Up  
  Totals (Since boot or last clear) :
   Bytes Rx: 2,717,700,038  Bytes Tx: 2,179,415,738 
   Unicast Rx  : 162,116,833Unicast Tx  : 190,514,323   
   Bcast/Mcast Rx  : 51,058 Bcast/Mcast Tx  : 35,257,606
  Errors (Since boot or last clear) :
   FCS Rx  : 0  Drops Rx: 0 
   Alignment Rx: 0  Collisions Tx   : 0 
   Runts Rx: 0  Late Colln Tx   : 0 
   Giants Rx   : 0  Excessive Colln : 0 
   Total Rx Errors : 0  Deferred Tx : 0 
  Rates (5 minute weighted average) :
   Total Rx  (bps) : 2428792Total Tx  (bps) : 5019632   
   Unicast Rx (Pkts/sec) : 0Unicast Tx (Pkts/sec) : 0 
   B/Mcast Rx (Pkts/sec) : 0B/Mcast Tx (Pkts/sec) : 1 
   Utilization Rx  : 00.24 %Utilization Tx  : 00.50 %


dev.em.0.%desc: Intel(R) PRO/1000 Network Connection 7.1.9
dev.em.0.%driver: em
dev.em.0.%location: slot=0 function=0
dev.em.0.%pnpinfo: vendor=0x8086 device=0x108b subvendor=0x8086 
subdevice=0x class=0x02
dev.em.0.%parent: pci1
dev.em.0.nvm: -1
dev.em.0.debug: -1
dev.em.0.rx_int_delay: 0
dev.em.0.tx_int_delay: 66
dev.em.0.rx_abs_int_delay: 66
dev.em.0.tx_abs_int_delay: 66
dev.em.0.rx_processing_limit: 100
dev.em.0.flow_control: 3
dev.em.0.link_irq: 0
dev.em.0.mbuf_alloc_fail: 0
dev.em.0.cluster_alloc_fail: 0
dev.em.0.dropped: 0
dev.em.0.tx_dma_fail: 0
dev.em.0.rx_overruns: 0
dev.em.0.watchdog_timeouts: 0
dev.em.0.device_control: 1075053128
dev.em.0.rx_control: 67141634
dev.em.0.fc_high_water: 10240
dev.em.0.fc_low_water: 8740
dev.em.0.queue0.txd_head: 338
dev.em.0.queue0.txd_tail: 338
dev.em.0.queue0.tx_irq: 0
dev.em.0.queue0.no_desc_avail: 0
dev.em.0.queue0.rxd_head: 375
dev.em.0.queue0.rxd_tail: 374
dev.em.0.queue0.rx_irq: 0
dev.em.0.mac_stats.excess_coll: 0
dev.em.0.mac_stats.single_coll: 0
dev.em.0.mac_stats.multiple_coll: 0
dev.em.0.mac_stats.late_coll: 0
dev.em.0.mac_stats.collision_count: 0
dev.em.0.mac_stats.symbol_errors: 0
dev.em.0.mac_stats.sequence_errors: 0
dev.em.0.mac_stats.defer_count: 0
dev.em.0.mac_stats.missed_packets: 0
dev.em.0.mac_stats.recv_no_buff: 0
dev.em.0.mac_stats.recv_undersize: 0
dev.em.0.mac_stats.recv_fragmented: 0
dev.em.0.mac_stats.recv_oversize: 0
dev.em.0.mac_stats.recv_jabber: 0
dev.em.0.mac_stats.recv_errs: 0
dev.em.0.mac_stats.crc_errs: 0
dev.em.0.mac_stats.alignment_errs: 0
dev.em.0.mac_stats.coll_ext_errs: 0
dev.em.0.mac_stats.xon_recvd: 0
dev.em.0.mac_stats.xon_txd: 0
dev.em.0.mac_stats.xoff_recvd: 0
dev.em.0.mac_stats.xoff_txd: 0
dev.em.0.mac_stats.total_pkts_recvd: 11708739
dev.em.0.mac_stats.good_pkts_recvd: 11708739
dev.em.0.mac_stats.bcast_pkts_recvd: 2121887
dev.em.0.mac_stats.mcast_pkts_recvd: 57365
dev.em.0.mac_stats.rx_frames_64: 464757
dev.em.0.mac_stats.rx_frames_65_127: 4131944
dev.em.0.mac_stats.rx_frames_128_255: 43756
dev.em.0.mac_stats.rx_frames_256_511: 204667
dev.em.0.mac_stats.rx_frames_512_1023: 492040
dev.em.0.mac_stats.rx_frames_1024_1522: 6371575
dev.em.0.mac_stats.good_octets_recvd: 10457944503
dev.em.0.mac_stats.good_octets_txd: 2875493372
dev.em.0.mac_stats.total_pkts_txd: 7967315
dev.em.0.mac_stats.good_pkts_txd: 7967315
dev.em.0.mac_stats.bcast_pkts_txd: 121
dev.em.0.mac_stats.mcast_pkts_txd: 0
dev.em.0.mac_stats.tx_frames_64: 1739777
dev.em.0.mac_stats.tx_frames_65_127: 3871275
dev.em.0.mac_stats.tx_frames_128_255: 270032
dev.em.0.mac_stats.tx_frames_256_511: 412542
dev.em.0.mac_stats.tx_frames_512_1023: 255864
dev.em.0.mac_stats.tx_frames_1024_1522: 1417825
dev.em.0.mac_stats.tso_txd: 427046
dev.em.0.mac_stats.tso_ctx_fail: 0
dev.em.0.interrupts.asserts: 10716051
dev.em.0.interrupts.rx_pkt_timer: 1157
dev.em.0.interrupts.rx_abs_timer: 24
dev.em.0.interrupts.tx_pkt_timer: 359

Re: Horde-4

2011-07-21 Thread Jack L. Stone
At 01:02 AM 7/21/2011 +0200, Per olof Ljungmark wrote:
On 07/20/11 22:07, Jack L. Stone wrote:
 At 11:38 AM 7/20/2011 -0800, Beech Rintoul wrote:
 On Wednesday 20 July 2011 11:22:44 Beech Rintoul wrote:
 On Wednesday 20 July 2011 09:47:33 Jack L. Stone wrote:
 Am running FBSD-7.x and IMAP WU + sendmail-8.4.x + MySQL-5.0.x

 Sorry to bother the list with this but have searched and read everything
 google  horde.org has to offer but I find no solution
 to an important issue I'm having with the installation of horde4.

 Although the port maintainer won't have the broken port for horde4, I
 have successfully installed Horde4 plus several common apps including,
 IMP app for an IMAP mail service.

 All of the horde4 ports including webmail and groupware have been
rewritten
 and comitted. AFAIK everything is working properly. You may be missing
some
 libs or modules, so I would suggest a reinstall.

 The problem is while I have a good install with the Horde4 base frame
and
 the apps, I can login to HORDE just fine, but when going to the IMAP
app,
 my login fails. From what I understand, the same Horde login should work
 for the IMP. Reading the login scripts indicates that as well. I'm using
 MySQL (SQL) as the backend for everything that needs a backend so I may
 be able to handle a large number of users. I've installed Washington Uni
 (WU) Imap server and it's listening on the expected port 143.

 I've worked on this issue over days and weeks, including reinstalls but
 cannot login to IMP for the mail services. In Horde, I can add users
just
 fine and they appear in the MySQL horde database properly. I have a
 couple designated as admins.

 If anyone on this list uses horde and maybe knows what I have missed I
 would appreciate any possible tips to check on. Does IMP not use the
same
 login as I assUme?

 Not necessarily. It all depends on your auth backend configs for both
horde
 and the apps. If you're using IMAP auth, you should be able to login
to imp
 as any regular user on the mail account. It's common to use IMAP auth as
 your general auth backend, that way your users will end up in the right
 account. You also need either SASL auth or Dovecot auth setup along with
 your auth backend. IMAP SSL is required, imp will NOT work with IMAP
plain
 login unless you hack the configs by hand (bad idea).

 Finally, uncheck the disable horde test script box on the main horde
 configs under the general tab, save your configs and navigate to
 horde/test.php, there is a section near the bottom for testing your IMAP
 login. If that isn't successful, you're not going to get much further. If
 the option doesn't exist at all, you don't have all the modules you need.
 It will also give you an idea about the state of everything else.

 Hope this gets you pointed in the right direction :-)

 Beech

 I forgot to say use SASL or Dovecot auth if you also want to access and
 remotely use your sendmail system outside of your horde portal. Horde imp
 shouldn't have any problems out of the box if your IMAP is otherwise
working
 properly.

 Beech
 --

 Good help!

 Should I use Dovecot or Dovecot2 ??


We're using Cyrus-IMAP so I cannot help you with that, but did you 
configure your imapserver in
/usr/local/www/horde4/imp/config/backends.php ?

Specifically the line
'hordeauth' =

This file itself has a lot of useful information on imap settings.
I assume you checked the imap server log files?

While on the Horde4 subject, we are running a test installation and find 
the perfermance of H4 to be considerably slower the its predecessor.

Did anyone here experience this?

Thanks,

Yes, I did configure the IMP backends.php or as I recall backends.local.php
to override the original settings file.

Dunno about the speed as I have never enjoyed that level of use.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
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: em0 NIC slow on 8.2-p1 amd64?

2011-07-21 Thread Michael W. Lucas
On Wed, Jul 20, 2011 at 09:32:27PM +0200, Eduardo Morras wrote:
 At 21:16 20/07/2011, Michael W. Lucas wrote:
 
 It's at gigabit:
 
 em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
 
 options=219bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC
 ether 00:15:17:31:c8:fe
 inet xxx
 media: Ethernet autoselect (1000baseT full-duplex)
 status: active
 
 All seems to be ok, try a netstat -I em0 -d  (it's a capital 'i') to 
 get statistics. If too much packets are dropped recheck cables.
 
 Other options:
 
 a) 30 MB/s looks very strange, do you have pf or similar with a filter rule?
 b) Have you checked your disk i/o performance?
 c) If you generate the data dinamically, may be your producer app is 
 the problem.
 
 About the em specific problem under 8.2 you cite, others can guide 
 better than me.
 
 HTH

No obvious errors on netstat:

netstat -I em0 -d
NameMtu Network   Address  Ipkts Ierrs IdropOpkts Oerrs 
 Coll Drop
em01500 Link#1  00:15:17:31:c8:fe 11709782 0 0  6855755 0 
00 
em01500 139.171.199.0 data5-vm   9546994 - -  7584135 - 
-- 

PF is running, but disabling it makes no difference in throughput.

Disk is mostly idle... not saying it can't be disk, mind you, but
local disk-to-disk copies go much more quickly. I'm testing by copying
an ISO.

And as far as me knowing many more things, well, if I knew what the
problem was, I wouldn't be begging for help like any other user.  :-)

Thanks,
==ml

-- 
Michael W. Lucas
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
Latest book: Network Flow Analysis http://www.networkflowanalysis.com/
mwlu...@blackhelicopters.org, Twitter @mwlauthor
___
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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Chad Perrin
On Thu, Jul 21, 2011 at 05:06:27AM -0700, per...@pluto.rain.com wrote:
 Daniel Staal dst...@usa.net wrote:
 
  The perfect computing device would fit in a pocket, have a screen the
  size of your wall, have a full (and full-sized) keyboard, and your
  choice of pointing devices.  It would be able to play any game you
  wanted to play, hold every movie and song ever recorded along with
  your entire lifetime's collection of documents, and be able to access
  the Internet from anywhere.  It would only need to be recharged as
  often as you sleep.  (And would be able to recharge anywhere.)
 
 It would also be fully encrypted and keyed to your fingerprint or
 retinal scan, so that no thief would be able to extract anything from
 it,

. . . unless he took your thumb or eyeball.



 and the encrypted files would be backed up automatically whenever it
 was recharged to guard against data loss in case of loss, theft,
 damage, malfunction, etc.

Ahhh, good call.

Of course, I'd probably prefer near-realtime versioned backups via DVCS
to an encrypted repository over the network.

(Sorry about accidentally sending an email to you off-list first; I meant
to send it to the list in the first place.)

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


pgpaDiu003R8G.pgp
Description: PGP signature


Re: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Chad Perrin
On Thu, Jul 21, 2011 at 10:52:28AM +0200, C. P. Ghost wrote:
 
 I'm not familiar with Windows, but I don't think a typical windows
 driver as written by a hardware vendor would manipulate the windows
 kernel internals (data structures) directly, right? If that's correct,
 we merely need to catch the ABI up- and down-calls from and to the
 windows driver, and translate them into regular FreeBSD syscalls (maybe
 augmented by a compat helper library?).
 
 Since this is exactly the approach taken by the Linuxulator, I fail to
 see why a similar method hasn't been tried for those windows kernel
 driver (binary blobs). Maybe some artificial restrictions like, say,
 patents are standing in the way? Or a technical restriction like such
 binary blobs being encrypted with a public key, and only usable from
 Windows kernel with their own secret key?

It may not be anything so exotic.  On a per-release basis, the MS Windows
ABIs and APIs change far more dramatically than the Linux kernel, and are
far less transparent to developers; they must in many cases be discovered
by experimentation, being closed source software.  Over a given period of
time, the changes to Linux may be greater in number and magnitude (I'm
not a kernel hacker, so I wouldn't know for sure), but they're spread out
over time rather than bundled in a major collection of changes with a new
marketing campaign.  This might make it much more difficult to target the
MS Windows ABIs and APIs.

I'm just speculating, though.  As I said, I'm not a kernel hacker.

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


pgpMoc83iHAR2.pgp
Description: PGP signature


Re: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Bruce Cran

On 21/07/2011 15:15, Chad Perrin wrote:
It may not be anything so exotic. On a per-release basis, the MS 
Windows ABIs and APIs change far more dramatically than the Linux 
kernel, and are far less transparent to developers; they must in many 
cases be discovered by experimentation, being closed source software. 
Over a given period of time, the changes to Linux may be greater in 
number and magnitude (I'm not a kernel hacker, so I wouldn't know for 
sure), but they're spread out over time rather than bundled in a major 
collection of changes with a new marketing campaign. This might make 
it much more difficult to target the MS Windows ABIs and APIs. I'm 
just speculating, though. As I said, I'm not a kernel hacker. 


On Windows, the APIs don't change that much (there are new functions for 
NUMA support in Windows 7 for example), but certain ABIs change with 
each service pack. However, since a lot of drivers built for Windows XP 
can still install on Windows 7, an effort appears to be made to maintain 
a stable public ABI - Microsoft recommends using the build environment 
for the earliest version of Windows that you want to target.  On Linux, 
the API/ABI issue is far worse, since you have a different ABI between 
different builds of the same kernel.


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


Re: Question about regular expressions

2011-07-21 Thread Damien Fleuriot


On 7/21/11 4:33 AM, dave jones wrote:
 Hi,
 
 I have a config file below:
 
 $user=   'root';   // This is the username
 
 if $user is found, I want to display root.
 Anyone knows how to programming in C or some other language? thank you.
 
 Regards,
 Dave.
 ___
 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


Let us assume you want to read your file, then display each entry for
$user1 , $user2 and so on:


grep $user my_file | awk '{ print $3}' | sed -e s/\'// | sed -e s/;//


1/ open my_file and only display lines containing $user
2/ display the 3rd item on the line
3/ remove the single quotes and the ;


I'm sure it can be optimized a bit but basically, that'll do what I
assume you want.
___
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: virtualbox 4.0

2011-07-21 Thread Chad Perrin
On Thu, Jul 21, 2011 at 01:18:15PM +0200, Ross Cameron wrote:
 
 You have more than likely configured a 32bit virtual machine and not a 64bit
 one.
 Make that change to you're VM config and you will more than likely come
 right.
 
 Is you're host operating system also 64bit?

It has been about five months, so I may misremember, but I think I had a
very similar problem earlier this year.  I had a 64 bit Win7 system (on a
64 bit processor, naturally -- Intel Core i5).  I installed VirtualBox
and set it up for a 64 bit FreeBSD install, then tried to install 64 bit
FreeBSD; I think it was 8.2, but I didn't keep careful notes that I can
check now.

It failed to work.  I think I got a doesn't support long mode error,
but again I am not 100% certain due to the passage of time and the fact I
have not really thought about it in the interim.

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


pgpHEzQa4ThEq.pgp
Description: PGP signature


Re: build ports from not a root user?

2011-07-21 Thread Damien Fleuriot
On 7/21/11 12:02 PM, Peter Vereshagin wrote:
 Oh freebsd-questions want you buy me a mersedes benz?
 

What the f... ?


 I'd like to build my ports from not a root user.

That is possible but exceedingly highly inconvenient.
What is the reason for doing that ?

I can not come up with a scenario where one would want to do that.

Rather than the means you'd like to use, tell us the end you're trying
to accomplish.

In other terms: what are you trying to do ? (and don't tell me building
a port as a non root user)


 How can I tell the ports system that it should su ( switch user ) before to
 build the dependencies?

I don't think you can.


 Can portupgrade handle this?

Nope.


 Dependencies should be installed from a root user.
 

And the rest of your ports too.
___
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: build ports from not a root user?

2011-07-21 Thread Daniel Staal

On Thu, July 21, 2011 6:02 am, Peter Vereshagin wrote:

 I'd like to build my ports from not a root user.
 How can I tell the ports system that it should su ( switch user ) before
 to
 build the dependencies?
 Can portupgrade handle this?
 Dependencies should be installed from a root user.

Install sudo, and (as long as your permissions are set correctly) the
ports system can do everything except the install and configure from a
user in the 'wheel' group.

Daniel 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: virtualbox 4.0

2011-07-21 Thread Adam Vande More
On Thu, Jul 21, 2011 at 8:38 AM, Warren Block wbl...@wonkity.com wrote:

 Recent versions of VirtualBox claim to be able to run a 64-bit VM on a
 32-bit host if the host CPU is 64-bit and has hardware virtualization
 support: http://forums.virtualbox.org/viewtopic.php?p=33940
 (search for 64-bit guest)

 So far I've only seen guest kernel panics when booting the kernel on an
 E8400 i386 FreeBSD host.


That functionality has been around awhile, probably at least around the time
Vbox was introduced to FreeBSD ports.  I used to use 64 bit VM's on a 32 bit
FreeBSD host, but the only stipulation was only one 64 bit VM could be run
at a time.  I didn't have any stability issues.  This was in the early 3.X
series and I haven't tried recently.

-- 
Adam Vande More
___
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: em0 NIC slow on 8.2-p1 amd64?

2011-07-21 Thread Eduardo Morras


Have you tried other protocols? Http, rsync... It maybe a problem at 
client side, some ftp clients can set a maximun ftp transfer, like 
filezilla, winscp, 



___
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: em0 NIC slow on 8.2-p1 amd64?

2011-07-21 Thread Michael W. Lucas
On Thu, Jul 21, 2011 at 05:01:57PM +0200, Eduardo Morras wrote:
 
 Have you tried other protocols? Http, rsync... It maybe a problem at 
 client side, some ftp clients can set a maximun ftp transfer, like 
 filezilla, winscp, 

FTP and NFSv3 both have similar results.

==ml

-- 
Michael W. Lucas
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
Latest book: Network Flow Analysis http://www.networkflowanalysis.com/
mwlu...@blackhelicopters.org, Twitter @mwlauthor
___
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: build ports from not a root user?

2011-07-21 Thread Peter Vereshagin
Oh freebsd-questions want you buy me a mersedes benz?
2011/07/21 16:53:58 +0200 Damien Fleuriot m...@my.gd = To 
freebsd-questions@freebsd.org :
DF What the f... ?

favorite song lyrics, np.

DF  I'd like to build my ports from not a root user.
DF 
DF That is possible but exceedingly highly inconvenient.
DF What is the reason for doing that ?

Security. Because of the limitations the non-root user can have.
This should decrease the probability of the bad port to ruin the system during
the build process.
Such a thing can be happening only in a specific conditions due to the
particular build environment and can or can not be a subject of a port author's
intentions.
The good admin practice exclamates that if the task does not need the
permission than it should not have it. Building of a a single port is certainly
one of those situations.

DF I can not come up with a scenario where one would want to do that.

Shall I put here the examples of the distributions those are building their
packages from a non-root user? There should certainly be the ones.

DF Rather than the means you'd like to use, tell us the end you're trying
DF to accomplish.

You mean about feature enhancement here, the what feature do I need in terms of
functionality and how it should make me better immediately after that.
The security isn't about ROI but it's business model is insurance.
What I need is the more security which is about to keep my things from getting
worse.
But it's not a bad thing ;-)

DF In other terms: what are you trying to do ? (and don't tell me building
DF a port as a non root user)
DF 
DF 
DF  How can I tell the ports system that it should su ( switch user ) before 
to
DF  build the dependencies?
DF 
DF I don't think you can.
DF 
DF 
DF  Can portupgrade handle this?
DF 
DF Nope.

But it seem to handle the dependencies in the every separate 'make' command?
I suppose it should have a tweak to do the 'make install' on the every port in
the dependencies chain in the 'su -' parameter.
Think I will dig it out. One day.
But I'm pretty sure there's anyone on the list who knows this from
portupgrade's sources.

DF  Dependencies should be installed from a root user.
DF And the rest of your ports too.

It's not a problem that I'm asking about.
If I install the port I know the permissions I want for this.
But the ports system may not know that I need the separate environment details
for building.
I think there should be a tweak for this, either in ports or in portupgrade,
that's a question.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.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: build ports from not a root user?

2011-07-21 Thread Peter Vereshagin
You'll never silence the voice of the voiceless, freebsd-questions!
2011/07/21 11:04:57 -0400 Daniel Staal dst...@usa.net = To 
freebsd-questions@freebsd.org :
DS  I'd like to build my ports from not a root user.
DS  How can I tell the ports system that it should su ( switch user ) before
DS  to
DS  build the dependencies?
DS  Can portupgrade handle this?
DS  Dependencies should be installed from a root user.
DS 
DS Install sudo, and (as long as your permissions are set correctly) the
DS ports system can do everything except the install and configure from a
DS user in the 'wheel' group.

Heck I know I can use su or sudo and after

chown -Rf user00:group00 /usr/ports/ /usr/src/ /usr/obj

I can build world or a single port with 'make'. It's easy.

But with ports I know the dependencies will not follow my policy to install the
every single port as:

$ cd /usr/ports/category/port00
$ make
$ su -
# cd /usr/ports/category/port00
# make install
# exit
$ cd /usr/ports/category/port01
... and so on ...

In different words, I want the 'make install' from the partivular port's 
directory to automate

/usr/ports/category/ports00 # make install

behind its scenes like this:

# cd /usr/category/category/dependence-port01
# su user00 -c make
# make every_install_target
# cd /usr/ports/category/ports00
# su user00 -c make
# make every_install_target

Think 'dependence-port01' and 'every_install_target' are self-explanatory.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.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: build ports from not a root user?

2011-07-21 Thread Damien Fleuriot
On 7/21/11 5:19 PM, Peter Vereshagin wrote:
 Oh freebsd-questions want you buy me a mersedes benz?
 2011/07/21 16:53:58 +0200 Damien Fleuriot m...@my.gd = To 
 freebsd-questions@freebsd.org :

 DF  I'd like to build my ports from not a root user.
 DF 
 DF That is possible but exceedingly highly inconvenient.
 DF What is the reason for doing that ?
 
 Security. Because of the limitations the non-root user can have.
 This should decrease the probability of the bad port to ruin the system during
 the build process.
 Such a thing can be happening only in a specific conditions due to the
 particular build environment and can or can not be a subject of a port 
 author's
 intentions.
 The good admin practice exclamates that if the task does not need the
 permission than it should not have it. Building of a a single port is 
 certainly
 one of those situations.
 

While compiling the port itself doesn't require root privileges,
installing it does.

This in turn means the whole make install clean chain requires root
privileges.

The purpose of the ports is to be an easily manageable and installable
collection of packages.

If you're not going to use the ports' installation chain, then perhaps
you should simply configure, build and install from source instead.


 DF I can not come up with a scenario where one would want to do that.
 
 Shall I put here the examples of the distributions those are building their
 packages from a non-root user? There should certainly be the ones.
 
 DF Rather than the means you'd like to use, tell us the end you're trying
 DF to accomplish.
 
 You mean about feature enhancement here, the what feature do I need in terms 
 of
 functionality and how it should make me better immediately after that.
 The security isn't about ROI but it's business model is insurance.
 What I need is the more security which is about to keep my things from getting
 worse.
 But it's not a bad thing ;-)
 

If you want security, you'll want to make /usr read-only and your
problems will go away.

If you're concerned that upgrading a port will break existing ones
because of dependencies, then use a port manager (portmanager,
portupgrade...)

If you're concerned that *compiling* a port will break the system, I
can't see how, the ports are built in a temporary directory.

If you're concerned about a port being rogue and causing malicious
commands while building it, then you shouldn't build that port at all,
even with non-root privileges.


 DF In other terms: what are you trying to do ? (and don't tell me building
 DF a port as a non root user)
 DF 
 DF 
 DF  How can I tell the ports system that it should su ( switch user ) 
 before to
 DF  build the dependencies?
 DF 
 DF I don't think you can.
 DF 
 DF 
 DF  Can portupgrade handle this?
 DF 
 DF Nope.
 
 But it seem to handle the dependencies in the every separate 'make' command?
 I suppose it should have a tweak to do the 'make install' on the every port in
 the dependencies chain in the 'su -' parameter.
 Think I will dig it out. One day.
 But I'm pretty sure there's anyone on the list who knows this from
 portupgrade's sources.
 

But the separate commands are started with the privileges of the
currently running portupgrade process.

And since you need to be root to use portupgrade... ;)

Port managers interact with pkgdb and such, which also require root
privileges.

You do not want to tinker with that.
This is, imho, not a correct approach to security.


 DF  Dependencies should be installed from a root user.
 DF And the rest of your ports too.
 
 It's not a problem that I'm asking about.
 If I install the port I know the permissions I want for this.
 But the ports system may not know that I need the separate environment details
 for building.
 I think there should be a tweak for this, either in ports or in portupgrade,
 that's a question.
 

I don't understand your statement, perhaps you could rephrase 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


make release question

2011-07-21 Thread Aryeh Friedman
Where does make release place the disk images (iso's) by default
___
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: build ports from not a root user?

2011-07-21 Thread Peter Vereshagin
Oh freebsd-questions want you buy me a mersedes benz?
2011/07/21 17:35:02 +0200 Damien Fleuriot m...@my.gd = To 
freebsd-questions@freebsd.org :
DF On 7/21/11 5:19 PM, Peter Vereshagin wrote:
DF  Oh freebsd-questions want you buy me a mersedes benz?
DF  2011/07/21 16:53:58 +0200 Damien Fleuriot m...@my.gd = To 
freebsd-questions@freebsd.org :
DF 
DF  DF  I'd like to build my ports from not a root user.
DF  DF 
DF  DF That is possible but exceedingly highly inconvenient.
DF  DF What is the reason for doing that ?
DF  
DF  Security. Because of the limitations the non-root user can have.
DF  This should decrease the probability of the bad port to ruin the system 
during
DF  the build process.
DF  Such a thing can be happening only in a specific conditions due to the
DF  particular build environment and can or can not be a subject of a port 
author's
DF  intentions.
DF  The good admin practice exclamates that if the task does not need the
DF  permission than it should not have it. Building of a a single port is 
certainly
DF  one of those situations.
DF  
DF 
DF While compiling the port itself doesn't require root privileges,
DF installing it does.

Yes.

DF This in turn means the whole make install clean chain requires root
DF privileges.

but 'make all' does not require root privileges under those conditions:

1. all dependencies are already installed
2. write access to the port directory

so it's pretty simple to replace 'make all install' from the root into the

# su user make
# make install

the dependencies, every of them, to behave like this is the my question.

DF The purpose of the ports is to be an easily manageable and installable
DF collection of packages.

And?

DF If you're not going to use the ports' installation chain, then perhaps
DF you should simply configure, build and install from source instead.

No, thanks. ;-)

DF  DF I can not come up with a scenario where one would want to do that.
DF  
DF  Shall I put here the examples of the distributions those are building 
their
DF  packages from a non-root user? There should certainly be the ones.
DF  
DF  DF Rather than the means you'd like to use, tell us the end you're trying
DF  DF to accomplish.
DF  
DF  You mean about feature enhancement here, the what feature do I need in 
terms of
DF  functionality and how it should make me better immediately after that.
DF  The security isn't about ROI but it's business model is insurance.
DF  What I need is the more security which is about to keep my things from 
getting
DF  worse.
DF  But it's not a bad thing ;-)
DF  
DF 
DF If you want security, you'll want to make /usr read-only and your

How could you know? I made. But it's not only a /usr.

DF problems will go away.

If I had them I should want them to go away.
I want them not to come.

DF If you're concerned that upgrading a port will break existing ones
DF because of dependencies, then use a port manager (portmanager,
DF portupgrade...)

I do, but it's unavoidable.

DF If you're concerned that *compiling* a port will break the system, I
DF can't see how, the ports are built in a temporary directory.

And?
Can you show please the connection between the two:

1. ports are built in a temporary directory
2. compiling a port can not break the system

Thank you.

DF If you're concerned about a port being rogue and causing malicious
DF commands while building it, then you shouldn't build that port at all,
DF even with non-root privileges.

I can never know this for sure before I do.
Port maintainer and port author may not know this too.

The particular example is perl build systems, the Build.PL. It can do
everything and I'm more afraid of it than the traditional Makefile-based perl
build systems.

Another hypothetical example is: Module::Autoinstall-based perl modules. The
port maintainer can have their dependencies already installed from ports, so
(s)he will never even notice that install automation. But the regulare user who
installs them from scratch may end with a coup[le of BSDPAN modules despite
many of them had been already ported and should be installed from ports and not
via the CPAN.pm.

THis can be easily prevented with my proposal.

DF  DF In other terms: what are you trying to do ? (and don't tell me 
building
DF  DF a port as a non root user)
DF  DF 
DF  DF 
DF  DF  How can I tell the ports system that it should su ( switch user ) 
before to
DF  DF  build the dependencies?
DF  DF 
DF  DF I don't think you can.
DF  DF 
DF  DF 
DF  DF  Can portupgrade handle this?
DF  DF 
DF  DF Nope.
DF  
DF  But it seem to handle the dependencies in the every separate 'make' 
command?
DF  I suppose it should have a tweak to do the 'make install' on the every 
port in
DF  the dependencies chain in the 'su -' parameter.
DF  Think I will dig it out. One day.
DF  But I'm pretty sure there's anyone on the list who knows this from
DF  portupgrade's sources.
DF  
DF 
DF But the separate commands are started with the privileges of the
DF 

Re: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Jamie Paul Griffin
On Wed, Jul 20, 2011 at 07:28:24PM -0400, Daniel Staal wrote:
 --As of July 20, 2011 5:45:49 PM -0400, David Jackson is alleged to have 
 said:
 
  but you also have scanners, cameras, joysticks, capture devices for video,
  and so on that many common users love to use. A lot of people use
  computers for writing, home and office business work, and gaming, and
  given the choice between a 3 screen and a 20 screen, you want a 20
  screen. Even facebook is better on a 20 screen.
 
  I stand by what i said, mobile is great for use on a subway, but when you
  get home, you really want a nice 20 screen to work on, and the bigger
  hard drive and faster CPU.
 
 --As for the rest, it is mine.
 
 *All* of which can be connected to a tablet just as easily as a desktop. 
 (Well, except for a faster CPU.)  I know people who do so.
 
 Current tablets have USB, Bluetooth, and HDMI/Displayport.
 
 Can you do everything on a tablet that you can on a dedicated desktop?  No. 
 But you can do most of it, especially if the people writing the software 
 and designing the add-ons know that's the market they have to work with.
 
Adding a variety of devices to a tablet still wouldn't make it an attractive 
option for me. I can't imagine doing my CS degree course-work on one of them, 
it would be a nightmare. I even found working on a laptop frustrating given the 
length of study sessions sometimes. 

Also, due to the nature of the course-work I absolutely could not work with 
anything other than UNIX and so I have to select my hardware around my choice 
of OS which of course is 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


Re: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Daniel Feenberg



On Thu, 21 Jul 2011, Chad Perrin wrote:


On Thu, Jul 21, 2011 at 10:52:28AM +0200, C. P. Ghost wrote:


I'm not familiar with Windows, but I don't think a typical windows
driver as written by a hardware vendor would manipulate the windows
kernel internals (data structures) directly, right? If that's correct,
we merely need to catch the ABI up- and down-calls from and to the
windows driver, and translate them into regular FreeBSD syscalls (maybe
augmented by a compat helper library?).

Since this is exactly the approach taken by the Linuxulator, I fail to
see why a similar method hasn't been tried for those windows kernel
driver (binary blobs). Maybe some artificial restrictions like, say,
patents are standing in the way? Or a technical restriction like such
binary blobs being encrypted with a public key, and only usable from
Windows kernel with their own secret key?


It may not be anything so exotic.  On a per-release basis, the MS Windows
ABIs and APIs change far more dramatically than the Linux kernel, and are
far less transparent to developers; they must in many cases be discovered
by experimentation, being closed source software.  Over a given period of
time, the changes to Linux may be greater in number and magnitude (I'm
not a kernel hacker, so I wouldn't know for sure), but they're spread out
over time rather than bundled in a major collection of changes with a new
marketing campaign.  This might make it much more difficult to target the
MS Windows ABIs and APIs.

I'm just speculating, though.  As I said, I'm not a kernel hacker.


Doesn't the NDIS specification offer a reasonably stable ABI for wireless 
drivers?


I have often thought that supporting NDIS would offer manufacturers a sort 
of halfway house to ease them into proper support for FreeBSD and Linux. 
While it is inferior to open source drivers, it would attract users, and 
with users manufacturers would feel pressure to have better support, which 
would best be achieved with open-source drivers.


Daniel Feenberg



--
Chad Perrin [ original content licensed OWL: http://owl.apotheon.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: build ports from not a root user?

2011-07-21 Thread Damien Fleuriot
On 7/21/11 6:11 PM, Peter Vereshagin wrote:
 Oh freebsd-questions want you buy me a mersedes benz?
 2011/07/21 17:35:02 +0200 Damien Fleuriot m...@my.gd = To 
 freebsd-questions@freebsd.org :
 DF On 7/21/11 5:19 PM, Peter Vereshagin wrote:
 DF  Oh freebsd-questions want you buy me a mersedes benz?
 DF  2011/07/21 16:53:58 +0200 Damien Fleuriot m...@my.gd = To 
 freebsd-questions@freebsd.org :
 DF 
 DF  DF  I'd like to build my ports from not a root user.
 DF  DF 
 DF  DF That is possible but exceedingly highly inconvenient.
 DF  DF What is the reason for doing that ?
 DF  
 DF  Security. Because of the limitations the non-root user can have.
 DF  This should decrease the probability of the bad port to ruin the system 
 during
 DF  the build process.
 DF  Such a thing can be happening only in a specific conditions due to the
 DF  particular build environment and can or can not be a subject of a port 
 author's
 DF  intentions.
 DF  The good admin practice exclamates that if the task does not need the
 DF  permission than it should not have it. Building of a a single port is 
 certainly
 DF  one of those situations.
 DF  
 DF 
 DF While compiling the port itself doesn't require root privileges,
 DF installing it does.
 
 Yes.
 
 DF This in turn means the whole make install clean chain requires root
 DF privileges.
 
 but 'make all' does not require root privileges under those conditions:
 
 1. all dependencies are already installed
 2. write access to the port directory
 
 so it's pretty simple to replace 'make all install' from the root into the
 
 # su user make
 # make install
 
 the dependencies, every of them, to behave like this is the my question.
 

Well, you could always check a port's dependencies like so:

cd /usr/ports/editors/texmacs
grep DEPENDS Makefile

The problem is if there are many dependencies, it won't show all of
them, as per the example below:
BUILD_DEPENDS=  tex:${PORTSDIR}/print/teTeX-base
LIB_DEPENDS=guile.20:${PORTSDIR}/lang/guile \
RUN_DEPENDS=tex:${PORTSDIR}/print/teTeX-base

Notice the \ at the end of LIB_DEPENDS indicating another dependency but
without the LIB_DEPENDS= beginning.

I suppose it can still be dealt with.


Once you've obtained your list of deps, you can always build each of
them by hand.

Of course some might also have dependencies in turn so you'll have to
loop around a bit...

Also, you'll run into trouble running ldconfig as a non-root user,
should that be needed when building a port.


 DF If you're concerned that *compiling* a port will break the system, I
 DF can't see how, the ports are built in a temporary directory.
 
 And?
 Can you show please the connection between the two:
 
 1. ports are built in a temporary directory
 2. compiling a port can not break the system
 
 Thank you.
 

Seeing the port is built in a temporary directory *and* you have access
to the makefiles used by the port, you can easily ensure no existing
system parts will be overwritten.


 DF If you're concerned about a port being rogue and causing malicious
 DF commands while building it, then you shouldn't build that port at all,
 DF even with non-root privileges.
 
 I can never know this for sure before I do.
 Port maintainer and port author may not know this too.
 

Check the port's makefiles.
This is going to be tedious though...


 The particular example is perl build systems, the Build.PL. It can do
 everything and I'm more afraid of it than the traditional Makefile-based perl
 build systems.
 

Then this becomes a matter of trusting or not the perl port that you
installed.

Seeing the downloaded distfile has its checksums verified, it then
becomes a matter of trusting the ports tree itself to guarantee that the
perl package has not been altered.


 DF But the separate commands are started with the privileges of the
 DF currently running portupgrade process.
 
 And the separate command can not drop its porivileges from root?
 

Apparently this hasn't been implemented, possibly the author, like me,
couldn't see any reason he would want to do that.


 DF And since you need to be root to use portupgrade... ;)
 DF 
 DF Port managers interact with pkgdb and such, which also require root
 DF privileges.
 
 They need this only to install the every particular port but they do not need
 root privileges to build it.
 

Again I can see no real reason to implement this.

If you're concerned about damage while compiling the port, what about
damage when running the port's binary ?

You're complicating things by reinforcing security on one side and
leaving the other completely unchecked.

Remember security is like a chain, only as strong as the weakest link.
___
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


Fwd: make release question

2011-07-21 Thread Aryeh Friedman
-- Forwarded message --
From: Aryeh Friedman aryeh.fried...@gmail.com
Date: Thu, Jul 21, 2011 at 12:35 PM
Subject: Re: make release question
To: Nathan Whitehorn nwhiteh...@freebsd.org


On Thu, Jul 21, 2011 at 12:33 PM, Aryeh Friedman
aryeh.fried...@gmail.com wrote:
 found them in CHROOT/R and found I needed to do mkisofs on them to get the 
 image

oops forgot to ask should I use cdrom/dvd1 or ftp to make a bootable USB drive

 On Thu, Jul 21, 2011 at 12:31 PM, Nathan Whitehorn
 nwhiteh...@freebsd.org wrote:
 On 07/21/11 10:42, Aryeh Friedman wrote:

 Where does make release place the disk images (iso's) by default
 ___
 freebsd-hack...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

 On -CURRENT, it places them in /usr/obj/usr/src/release. You can use make
 install DESTDIR=blah to put them somewhere else. On 8.x and earlier it
 places them in CHROOT/R.
 -Nathan


___
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: em0 NIC slow on 8.2-p1 amd64?

2011-07-21 Thread Peter Harrison
Sorry for top posting. My 'phone makes it awkward.

I use ndis for the wifi connection in my netbook. Was trivial to convert the 
Windows driver, and it works without issue.

Anyone know whether it could do 'N' class devices, to address Jerry's 
longstanding (and vocal, and justified) complaint - so that we can have an 
argument about why I'd rather configure my wireless manually in a text file and 
not have it done automagically by the OS and not be side-tracked by the 
non-availability of drivers?



--
Peter Harrison
www.4harrisons.blogspot.com
-Original Message-
From: per...@pluto.rain.com
Sent:  21/07/2011 13:05:54
To: nec...@retena.com
Cc: questi...@freebsd.org; mwlu...@blackhelicopters.org
Subject:  Re: em0 NIC slow on 8.2-p1 amd64?

Eduardo Morras nec...@retena.com wrote:

 If it's not connected at 1 gigabit or not full duplex you can
 force it with ifconfig. If there are too much errors check the
 cable.

Last I heard, this does _not_ work with gigabit unless you can
force-configure both ends of the link.  The negotiation protocol is
such that force-configuring just one end _guarantees_ a mismatch.
___
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: Maintenance script/port

2011-07-21 Thread Jos Chrispijn

Thanks all for your replies. I will check your suggestions.

BR,
Jos Chrispijn

___
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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Daniel Staal

On Thu, July 21, 2011 12:13 pm, Jamie Paul Griffin wrote:

 Adding a variety of devices to a tablet still wouldn't make it an
 attractive option for me. I can't imagine doing my CS degree course-work
 on one of them, it would be a nightmare. I even found working on a laptop
 frustrating given the length of study sessions sometimes.

As I said elsewhere in that email, I don't expect everyone to do so.  I
just know several who have.  As tablets and such get more powerful and the
connection systems get better it will become a more appealing option for
more and more users.

But for a large number of non-technical users, I can see it being the most
appealing option already.

 Also, due to the nature of the course-work I absolutely could not work
 with anything other than UNIX and so I have to select my hardware around
 my choice of OS which of course is FreeBSD.

Which nicely brings us back to where this thread started: What needs to
happen to make sure FreeBSD stays relevant as computing moves to these
devices?  ;)  (Or should FreeBSD try to be relevant to the end-user at
all?  Part of what makes this an appealing option is increased 'cloud
computing', and FreeBSD has an obviously relevant place in that, as a
high-performance and high-reliability server platform.)

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: virtualbox 4.0

2011-07-21 Thread Jamie Paul Griffin
On Thu, Jul 21, 2011 at 07:38:23AM -0600, Warren Block wrote:
 
 Recent versions of VirtualBox claim to be able to run a 64-bit VM on a 
 32-bit host if the host CPU is 64-bit and has hardware virtualization 
 support: http://forums.virtualbox.org/viewtopic.php?p=33940
 (search for 64-bit guest)
 
 So far I've only seen guest kernel panics when booting the kernel on an 
 E8400 i386 FreeBSD host.

I was using VB in a set-up like that up until a few weeks ago. I worked well I 
have to say but I couldn't get a full screen and in the end I installed 
dual-boot instead. This was with Win7(32bit) as the host, FreeBSD(64bit) as 
guest. I didn't try FreeBSD as host because I read that it's lacking USB 
support for the moment.
___
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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Chad Perrin
On Thu, Jul 21, 2011 at 05:13:56PM +0100, Jamie Paul Griffin wrote:
 
 Also, due to the nature of the course-work I absolutely could not work
 with anything other than UNIX and so I have to select my hardware
 around my choice of OS which of course is FreeBSD.

This is a bigger deal than people might realize.  If Android actually
exposed more of the Linux underpinnings it might be somewhat useful to
me, but as it stands it is essentially just a toy.  Unless and until I
get a full-power OS (preferably a real BSD Unix) on a tablet, no amount
of peripherals, ubiquitous network connection, and internal power will
make up for the simple fact it's just a damned toy.

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


pgpYy2RZart7H.pgp
Description: PGP signature


Re: build ports from not a root user?

2011-07-21 Thread Daniel Staal

On Thu, July 21, 2011 11:30 am, Peter Vereshagin wrote:
 You'll never silence the voice of the voiceless, freebsd-questions!
 2011/07/21 11:04:57 -0400 Daniel Staal dst...@usa.net = To
 freebsd-questions@freebsd.org :
 DS  I'd like to build my ports from not a root user.
 DS  How can I tell the ports system that it should su ( switch user )
 before
 DS  to
 DS  build the dependencies?
 DS  Can portupgrade handle this?
 DS  Dependencies should be installed from a root user.
 DS
 DS Install sudo, and (as long as your permissions are set correctly) the
 DS ports system can do everything except the install and configure from a
 DS user in the 'wheel' group.

 Heck I know I can use su or sudo and after

 chown -Rf user00:group00 /usr/ports/ /usr/src/ /usr/obj

 I can build world or a single port with 'make'. It's easy.

 But with ports I know the dependencies will not follow my policy to
 install the
 every single port as:

 $ cd /usr/ports/category/port00
 $ make
 $ su -
 # cd /usr/ports/category/port00
 # make install
 # exit
 $ cd /usr/ports/category/port01
 ... and so on ...

No, it'll _build_ each port as your user, and then try to go to root to
install them.  Which is why I suggested sudo: You can tune it's timeouts,
and only have to enter your password occasionally.  (Why do you trust a
port's dependencies to be built as root if you don't trust the port
itself, after all?)

The other option would be to do something like this:

$ su -
# make depends
# exit
$ make
$ su -
# make install

Which should be fairly close to what you are saying.

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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Chad Perrin
On Thu, Jul 21, 2011 at 01:11:12PM -0400, Daniel Staal wrote:
 On Thu, July 21, 2011 12:13 pm, Jamie Paul Griffin wrote:
 
  Adding a variety of devices to a tablet still wouldn't make it an
  attractive option for me. I can't imagine doing my CS degree course-work
  on one of them, it would be a nightmare. I even found working on a laptop
  frustrating given the length of study sessions sometimes.
 
 As I said elsewhere in that email, I don't expect everyone to do so.  I
 just know several who have.  As tablets and such get more powerful and the
 connection systems get better it will become a more appealing option for
 more and more users.
 
 But for a large number of non-technical users, I can see it being the most
 appealing option already.

If all they want is a toy with a Web browser and an email client, I guess
that works for them.  I don't know if they really count for purposes of
discussing the possible replacement of desktops and laptops, though,
because what they really need is not a general-purpose personal computer
at all.


 
  Also, due to the nature of the course-work I absolutely could not work
  with anything other than UNIX and so I have to select my hardware around
  my choice of OS which of course is FreeBSD.
 
 Which nicely brings us back to where this thread started: What needs to
 happen to make sure FreeBSD stays relevant as computing moves to these
 devices?  ;)  (Or should FreeBSD try to be relevant to the end-user at
 all?  Part of what makes this an appealing option is increased 'cloud
 computing', and FreeBSD has an obviously relevant place in that, as a
 high-performance and high-reliability server platform.)

Getting FreeBSD on my Android smartphone without losing basic
functionality (support for all the hardware on the thing, essentially)
would be a good start.  I'd take NetBSD or OpenBSD, too.

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


pgpvttIGH4ECR.pgp
Description: PGP signature


Re: build ports from not a root user?

2011-07-21 Thread Peter Vereshagin
Oh freebsd-questions want you buy me a mersedes benz?
2011/07/21 18:30:50 +0200 Damien Fleuriot m...@my.gd = To 
freebsd-questions@freebsd.org :
DF On 7/21/11 6:11 PM, Peter Vereshagin wrote:
DF  Oh freebsd-questions want you buy me a mersedes benz?
DF  2011/07/21 17:35:02 +0200 Damien Fleuriot m...@my.gd = To 
freebsd-questions@freebsd.org :
DF  DF On 7/21/11 5:19 PM, Peter Vereshagin wrote:
DF  DF  Oh freebsd-questions want you buy me a mersedes benz?
DF  DF  2011/07/21 16:53:58 +0200 Damien Fleuriot m...@my.gd = To 
freebsd-questions@freebsd.org :
DF  DF 
DF  DF  DF  I'd like to build my ports from not a root user.
DF  DF  DF 
DF  DF  DF That is possible but exceedingly highly inconvenient.
DF  DF  DF What is the reason for doing that ?
DF  DF  
DF  DF  Security. Because of the limitations the non-root user can have.
DF  DF  This should decrease the probability of the bad port to ruin the 
system during
DF  DF  the build process.
DF  DF  Such a thing can be happening only in a specific conditions due to 
the
DF  DF  particular build environment and can or can not be a subject of a 
port author's
DF  DF  intentions.
DF  DF  The good admin practice exclamates that if the task does not need 
the
DF  DF  permission than it should not have it. Building of a a single port 
is certainly
DF  DF  one of those situations.
DF  DF  
DF  DF 
DF  DF While compiling the port itself doesn't require root privileges,
DF  DF installing it does.
DF  
DF  Yes.
DF  
DF  DF This in turn means the whole make install clean chain requires root
DF  DF privileges.
DF  
DF  but 'make all' does not require root privileges under those conditions:
DF  
DF  1. all dependencies are already installed
DF  2. write access to the port directory
DF  
DF  so it's pretty simple to replace 'make all install' from the root into the
DF  
DF  # su user make
DF  # make install
DF  
DF  the dependencies, every of them, to behave like this is the my question.
DF  
DF 
DF Well, you could always check a port's dependencies like so:
DF 
DF cd /usr/ports/editors/texmacs
DF grep DEPENDS Makefile
DF 
DF The problem is if there are many dependencies, it won't show all of
DF them, as per the example below:
DF BUILD_DEPENDS=  tex:${PORTSDIR}/print/teTeX-base
DF LIB_DEPENDS=guile.20:${PORTSDIR}/lang/guile \
DF RUN_DEPENDS=tex:${PORTSDIR}/print/teTeX-base
DF 
DF Notice the \ at the end of LIB_DEPENDS indicating another dependency but
DF without the LIB_DEPENDS= beginning.
DF 
DF I suppose it can still be dealt with.

I suppose portupgrade deals.

DF Once you've obtained your list of deps, you can always build each of
DF them by hand.
DF 
DF Of course some might also have dependencies in turn so you'll have to
DF loop around a bit...
DF 
DF Also, you'll run into trouble running ldconfig as a non-root user,
DF should that be needed when building a port.

As long as I saw the instructions on building from source they wre generally 
all like this:

$ cd /tarball-expanded-0.x.y
$ ./configure
$ make
$ su -
# cd /tarball-expanded-0.x.y
# make install

That important 'su -' is omitted from the ports. And it is about the security.

And... why should I want to change the file /etc/ld.so.cache before the port to
be installed?

DF  DF If you're concerned that *compiling* a port will break the system, I
DF  DF can't see how, the ports are built in a temporary directory.
DF  
DF  And?
DF  Can you show please the connection between the two:
DF  
DF  1. ports are built in a temporary directory
DF  2. compiling a port can not break the system
DF  
DF  Thank you.
DF  
DF 
DF Seeing the port is built in a temporary directory *and* you have access
DF to the makefiles used by the port, you can easily ensure no existing

I don't believe every regular system admin will look inside the every makefile
pf a port and the every of its dependencies (there can be thousands of them) in
order to use the port only.
I can't even say the one should.
And it's certainly not easy, at least for me. Ain't it a shame? ;-)
Meanwhile, the build systems are rather far from always to be the
makefile-based. I have mentioned the Module::Build here and I'm pretty sure
there are the analogous for many technologies other than Perl.
Even when makefile-based, the Module::Autoinstall is a think about it too.

DF system parts will be overwritten.

This is not only the thing to care about. It's not only and all about the
security but about to keeping the system as consistent as possible preventing
it from inconsistences like BSDPAN modules when there are those ported already.

DF  DF If you're concerned about a port being rogue and causing malicious
DF  DF commands while building it, then you shouldn't build that port at all,
DF  DF even with non-root privileges.

Not necessarily malicious but just far from the best possible.

DF  I can never know this for sure before I do.
DF  Port maintainer and port author may not know this too.
DF  
DF 
DF Check the 

Re: build ports from not a root user?

2011-07-21 Thread Daniel Staal

On Thu, July 21, 2011 1:54 pm, Peter Vereshagin wrote:
 Oh Daniel want you buy me a mersedes benz?
 2011/07/21 13:19:40 -0400 Daniel Staal dst...@usa.net = To
 freebsd-questions@freebsd.org :
 DS
 DS On Thu, July 21, 2011 11:30 am, Peter Vereshagin wrote:
 DS  You'll never silence the voice of the voiceless, freebsd-questions!
 DS  2011/07/21 11:04:57 -0400 Daniel Staal dst...@usa.net = To
 DS  freebsd-questions@freebsd.org :
 DS  DS  I'd like to build my ports from not a root user.
 DS  DS  How can I tell the ports system that it should su ( switch
 user )
 DS  before
 DS  DS  to
 DS  DS  build the dependencies?
 DS  DS  Can portupgrade handle this?
 DS  DS  Dependencies should be installed from a root user.
 DS  DS
 DS  DS Install sudo, and (as long as your permissions are set
 correctly) the
 DS  DS ports system can do everything except the install and configure
 from a
 DS  DS user in the 'wheel' group.
 DS 
 DS  Heck I know I can use su or sudo and after
 DS 
 DS  chown -Rf user00:group00 /usr/ports/ /usr/src/ /usr/obj
 DS 
 DS  I can build world or a single port with 'make'. It's easy.
 DS 
 DS  But with ports I know the dependencies will not follow my policy to
 DS  install the
 DS  every single port as:
 DS 
 DS  $ cd /usr/ports/category/port00
 DS  $ make
 DS  $ su -
 DS  # cd /usr/ports/category/port00
 DS  # make install
 DS  # exit
 DS  $ cd /usr/ports/category/port01
 DS  ... and so on ...
 DS
 DS No, it'll _build_ each port as your user, and then try to go to root
 to
 DS install them.  Which is why I suggested sudo: You can tune it's
 timeouts,
 DS and only have to enter your password occasionally.  (Why do you trust
 a
 DS port's dependencies to be built as root if you don't trust the port
 DS itself, after all?)

 That's the question: I don't.
 In that my code example, port00 and port01 can all be (or not be) the
 dependencies for the port I try to install.
 I mean about every single port, including its dependencies, to be
 installed
 that way: build as a user and then install as a root.

Ok, then I've already answered your question several emails ago.  The
ports system will do this automatically with a simple 'make', 'make
install', or 'make depends; make install'.  And you said you knew about
that way of it working.

So, what are we discussing again?

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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Daniel Staal

On Thu, July 21, 2011 1:11 pm, Chad Perrin wrote:

 If all they want is a toy with a Web browser and an email client, I guess
 that works for them.  I don't know if they really count for purposes of
 discussing the possible replacement of desktops and laptops, though,
 because what they really need is not a general-purpose personal computer
 at all.

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

One of the people I know uses this as his work laptop, running Excel,
Powerpoint, Outlook, Word, etc.  (Of course, he's not running Android at
that point...)  The 'laptop' is a tablet in a case with a bluetooth
keyboard.  He uses this _at his desk in the office, next to a desktop
computer._  (Because he can then take the work home with him, or bring it
to a meeting.)

Whether of not it's sane, it's being done.  ;)

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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Antonio Olivares
 Which nicely brings us back to where this thread started: What needs to
 happen to make sure FreeBSD stays relevant as computing moves to these
 devices?  ;)  (Or should FreeBSD try to be relevant to the end-user at
 all?  Part of what makes this an appealing option is increased 'cloud
 computing', and FreeBSD has an obviously relevant place in that, as a
 high-performance and high-reliability server platform.)


Several years ago in 2004 approximately, I came across to LiveBSD a cd
made by Scott Ullrich known as Geek God in the forums.  The livecd was
excellent but there were no longer releases.  I liked the cd which had
kde 3.4.X or so, Now the picture has changed.  With cloud computing,
there is a FreeBSD based one  that I know at least by Scott :

http://scottullrich.posterous.com/

He was a cofounder of the pfsense project(did not know this).  Not
only does MS, Linux distros (Ubuntu, Red Hat, ..., etc) have a cloud
based strategy, but thanks to folks like Scott, FreeBSD has one too!

Even with sarcastic comments(I get them from many folks many times,
about FreeBSD and also Linux) that we(users of FreeBSD/Linux) are
insignificant and nobody cares about our OSes, I certainly hope that
they survive and keep on churning.  I am thankful for FreeBSD and wish
it continued success.  I also use Linux and actually like both and
hate to side one over the other.  I see advantages for both, and
instead of insulting one another, contribute wherever possible^{1}.

Hope that both projects defy the odds and live as long as they can and
for people to contribute whatever they can to achieve that goal.

Regards,

Antonio

{1}  Except on licensing which is a pain in the *... GPL vs BSD licensing.
___
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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Bruce Cran

On 21/07/2011 18:00, Chad Perrin wrote:
I suspect those drivers are the drivers that have *survived*. I saw 
hardware suddenly stop working because of driver issues just between 
SP1 and SP2 of XP -- including, in one case, the hard drive that had 
the OS on it. The system would start booting, then unload the driver 
because it was not compatible, thus losing contact with the very 
hard drive from which it was loading the OS. Maybe I was just lucky, 
though. 


Obviously Microsoft does introduce new driver technologies with new OS 
releases: there was a new video architecture in Vista, for example. 
However, they do seem rather good at supporting older technologies such 
as TDI, and I suspect those drivers that fail aren't very well written.


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


Re: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread C. P. Ghost
On Thu, Jul 21, 2011 at 6:58 PM, Chad Perrin per...@apotheon.com wrote:
 On Thu, Jul 21, 2011 at 05:13:56PM +0100, Jamie Paul Griffin wrote:

 Also, due to the nature of the course-work I absolutely could not work
 with anything other than UNIX and so I have to select my hardware
 around my choice of OS which of course is FreeBSD.

 This is a bigger deal than people might realize.  If Android actually
 exposed more of the Linux underpinnings it might be somewhat useful to
 me, but as it stands it is essentially just a toy.  Unless and until I
 get a full-power OS (preferably a real BSD Unix) on a tablet, no amount
 of peripherals, ubiquitous network connection, and internal power will
 make up for the simple fact it's just a damned toy.

Full ack!

I was considering buying one of those new ARM-based ASUS tablets (1)
to do some ARM assembly programming. Of course, I'd have liked to
replace Android with FreeBSD/arm or another BSD (or even Linux), but
I'm not sure it can be done already. So I'm holding off, because I
don't need a toy, I need a fully working OS on that thing, an OS with
a full suite of compilers etc...

(1): 
http://www.amazon.com/Transformer-TF101-A1-10-1-Inch-Tablet-Computer/dp/B004U78J1G

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

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: build ports from not a root user?

2011-07-21 Thread Daniel Staal

On Thu, July 21, 2011 2:26 pm, Peter Vereshagin wrote:
 Oh Daniel want you buy me a mersedes benz?
 2011/07/21 14:01:04 -0400 Daniel Staal dst...@usa.net = To
 freebsd-questions@freebsd.org :
 DS Ok, then I've already answered your question several emails ago.  The
 DS ports system will do this automatically with a simple 'make', 'make
 DS install', or 'make depends; make install'.  And you said you knew
 about

 No it doesn't.

 'all' target includes 'depends' target.
 'depends' target includes performing 'make install' on the dependencies
 which
 I'd like to avoid.

 This can be avoided if a some tool like the portupgrade has did them
 already.
 It can do it that same way, too: build as a non-root user and then install
 as a
 root user.

 That way the 'make depends' can be done as a non-root user as it's a no-op
 additional check.

So you want to install software without installing it's dependencies
first?  Or build software without installing it's build dependencies
first?

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: build ports from not a root user?

2011-07-21 Thread Bruce Cran

On 21/07/2011 19:31, Daniel Staal wrote:

On Thu, July 21, 2011 2:26 pm, Peter Vereshagin wrote:

Oh Daniel want you buy me a mersedes benz?
2011/07/21 14:01:04 -0400 Daniel Staaldst...@usa.net  =  To
freebsd-questions@freebsd.org :
DS  Ok, then I've already answered your question several emails ago.  The
DS  ports system will do this automatically with a simple 'make', 'make
DS  install', or 'make depends; make install'.  And you said you knew
about

No it doesn't.

'all' target includes 'depends' target.
'depends' target includes performing 'make install' on the dependencies
which
I'd like to avoid.

This can be avoided if a some tool like the portupgrade has did them
already.
It can do it that same way, too: build as a non-root user and then install
as a
root user.

That way the 'make depends' can be done as a non-root user as it's a no-op
additional check.

So you want to install software without installing it's dependencies
first?  Or build software without installing it's build dependencies
first?


The easiest way to build ports under a non-privileged user is probably 
to use portmaster (ports-mgmt/portmaster): it has a PM_SU_CMD which is 
normally set to /usr/local/bin/sudo which it uses whenever it needs to 
elevate to root.


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


Re: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Colin Albert

On 07/21/2011 01:02 PM, Chad Perrin wrote:

On Thu, Jul 21, 2011 at 12:21:47PM -0400, Daniel Feenberg wrote:

Doesn't the NDIS specification offer a reasonably stable ABI for wireless
drivers?

I have often thought that supporting NDIS would offer manufacturers a sort
of halfway house to ease them into proper support for FreeBSD and Linux.
While it is inferior to open source drivers, it would attract users, and
with users manufacturers would feel pressure to have better support, which
would best be achieved with open-source drivers.

I agree that would probably be a productive approach to improving
wireless support over time.  I do not know the technical challenges
associated with getting that working in FreeBSD, though, or how well it
would actually work in practice.

I have used the NDIS wrapper in FreeBSD and Linux few times for a couple 
of different systems. Generally for things I could not choose the 
hardware for for whatever reason.  It does the job for the most part.  I 
think in one particular case  i got the impression that the driver had 
to remain closed due to some FCC restriction on the radio being used.   
With the exception of video(Intel), what other areas of hardware are 
lacking support in FreeBSD? And would the same approach make sense for 
those?


I specifically excepted Intel video because this is an area that is 
currently under development and it requires significant changes to the 
kernel.  From what I understand Intel wrote the open source GEM kernel 
module for Linux under an MIT type license.

___
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: build ports from not a root user?

2011-07-21 Thread Peter Vereshagin
Oh freebsd-questions want you buy me a mersedes benz?
2011/07/21 19:39:45 +0100 Bruce Cran br...@cran.org.uk = To Daniel Staal :
BC to use portmaster (ports-mgmt/portmaster): it has a PM_SU_CMD which is 

Cool. Tried it but couldn't make it to update the only one port, and not to
update its dependencies.

Will look. Mucha Gracias. ;-)

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.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: em0 NIC slow on 8.2-p1 amd64?

2011-07-21 Thread Jerry
On Thu, 21 Jul 2011 16:31:25 +
Peter Harrison articulated:

 Sorry for top posting. My 'phone makes it awkward.
 
 I use ndis for the wifi connection in my netbook. Was trivial to
 convert the Windows driver, and it works without issue.
 
 Anyone know whether it could do 'N' class devices, to address Jerry's
 longstanding (and vocal, and justified) complaint - so that we can
 have an argument about why I'd rather configure my wireless manually
 in a text file and not have it done automagically by the OS and not
 be side-tracked by the non-availability of drivers?

Problem one was that NDIS was not working on 64 bit systems. I believe
that has been addressed; however I cannot confirm it. The last time I
tired was approximately three months ago. It would not work on the
system, ie, the system would not use the driver. I even tried a piece
of shit USB device (N protocol) on another one of my FreeBSD machines,
and that failed also. The last of my FreeBSD laptops is now gone; they
are all Win7 machines. I still have two towers, one with wireless USB
that fails on FreeBSD.

Now, I have absolutely no problem with you manually creating a file(s),
etc to get a connection created. On the other hand, my 10 year old
niece was visiting a few weeks ago. Like all kids, she had her laptop
with her. Upon turning it on, it discovered my wireless network. All I
had to do was give her the password, and she was on. Of course we are
not talking about network discovery and but rather the act of getting a
wireless card working in the first place. To a degree, they are
connected though.

Computers should make life easier, not more complicated. Manually
having to discover what form of encryption is being used on a network
when it can be done automatically, etcetera, just does not suit my
definition of easier. I would much rather be playing a round of golf
while you are debugging a wireless connection. So if you are looking
for an argument as to why you should not be manually forced to
configure a simple device that can and is automatically handled by
other OSs, you will not get an argument from me. That is unless you
think that I should also be forced to do the same. The Marquis de
Sade isn't my hero and I am definitely not into sadism.


-- 
Jerry ✌
jerry+f...@seibercom.net

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

http://www.catb.org/~esr/faqs/smart-questions.html
___
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: build ports from not a root user?

2011-07-21 Thread Damien Fleuriot


On 21 Jul 2011, at 21:40, Peter Vereshagin pe...@vereshagin.org wrote:

 Oh freebsd-questions want you buy me a mersedes benz?
 2011/07/21 19:39:45 +0100 Bruce Cran br...@cran.org.uk = To Daniel Staal :
 BC to use portmaster (ports-mgmt/portmaster): it has a PM_SU_CMD which is 
 
 Cool. Tried it but couldn't make it to update the only one port, and not to
 update its dependencies.
 

That's kinda the point of portupgrade, takes care of the deps for you ;)



 Will look. Mucha Gracias. ;-)
 
 73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
 --
 http://vereshagin.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
___
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: build ports from not a root user?

2011-07-21 Thread Peter Vereshagin
Oh freebsd-questions want you buy me a mersedes benz?
2011/07/21 23:07:41 +0200 Damien Fleuriot m...@my.gd = To Peter Vereshagin :
DF That's kinda the point of portupgrade, takes care of the deps for you ;)

Sounds bad. I meant about such a tool to handle dependencies to keep the 'make
install' from to handle the dependencies.
That is, to read the output of the 'make list-dependencies' or something like
that.

Shutting up but for those reading list archives: ports has the built-in 'su'
feature for 'make install' to be done right after the 'make all'.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.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: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Chad Perrin
On Thu, Jul 21, 2011 at 02:06:04PM -0400, Daniel Staal wrote:
 On Thu, July 21, 2011 1:11 pm, Chad Perrin wrote:
 
  If all they want is a toy with a Web browser and an email client, I guess
  that works for them.  I don't know if they really count for purposes of
  discussing the possible replacement of desktops and laptops, though,
  because what they really need is not a general-purpose personal computer
  at all.
 
 One of the people I know uses this as his work laptop, running Excel,
 Powerpoint, Outlook, Word, etc.  (Of course, he's not running Android at
 that point...)  The 'laptop' is a tablet in a case with a bluetooth
 keyboard.  He uses this _at his desk in the office, next to a desktop
 computer._  (Because he can then take the work home with him, or bring it
 to a meeting.)

Frankly, I'm of the opinion that an office suite is just more toy
software.  It just happens to be toy software with ungodly resource
requirements and a veneer of professionalism.  Until I get the kind of
development environment I have on my FreeBSD systems, ability to run test
environments (Web servers, for instance), and so on, I don't call it a
full-power OS.

If all you're doing with it is email, making slides for another pointless
presentation, and updating your resume, you're still using a toy, or
maybe an appliance.

I suppose others might disagree.

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


pgpGWQRtKkABh.pgp
Description: PGP signature


Re: 2020: Will BSD and Linux be relevant anymore?

2011-07-21 Thread Chad Perrin
On Thu, Jul 21, 2011 at 07:18:21PM +0100, Bruce Cran wrote:
 On 21/07/2011 18:00, Chad Perrin wrote:
 I suspect those drivers are the drivers that have *survived*. I saw 
 hardware suddenly stop working because of driver issues just between 
 SP1 and SP2 of XP -- including, in one case, the hard drive that had 
 the OS on it. The system would start booting, then unload the driver 
 because it was not compatible, thus losing contact with the very 
 hard drive from which it was loading the OS. Maybe I was just lucky, 
 though. 
 
 Obviously Microsoft does introduce new driver technologies with new OS 
 releases: there was a new video architecture in Vista, for example. 
 However, they do seem rather good at supporting older technologies such 
 as TDI, and I suspect those drivers that fail aren't very well written.

I have less faith in the correctness of MS Windows than you, evidently.

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


pgpCxt6P9B6Fc.pgp
Description: PGP signature


Re: build ports from not a root user?

2011-07-21 Thread RW
On Thu, 21 Jul 2011 23:07:41 +0200
Damien Fleuriot wrote:

 On 21 Jul 2011, at 21:40, Peter Vereshagin pe...@vereshagin.org
 wrote:

  Cool. Tried it but couldn't make it to update the only one port,
  and not to update its dependencies.
  
 
 That's kinda the point of portupgrade, takes care of the deps for
 you ;)

portupgrade doesn't upgrade dependencies by default. When it builds a
port, the port installs *missing* dependencies as a side-effect. 
___
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: build ports from not a root user?

2011-07-21 Thread Damien Fleuriot


On 21 Jul 2011, at 23:56, RW rwmailli...@googlemail.com wrote:

 On Thu, 21 Jul 2011 23:07:41 +0200
 Damien Fleuriot wrote:
 
 On 21 Jul 2011, at 21:40, Peter Vereshagin pe...@vereshagin.org
 wrote:
 
 Cool. Tried it but couldn't make it to update the only one port,
 and not to update its dependencies.
 
 
 That's kinda the point of portupgrade, takes care of the deps for
 you ;)
 
 portupgrade doesn't upgrade dependencies by default. When it builds a
 port, the port installs *missing* dependencies as a side-effect. 

My point was, that is the reason people like me for instance use portupgrade or 
portmanager, recursive upgrades.

___
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


script....

2011-07-21 Thread Gary Kline

thanks for the grep - numbered file if string found script!
now you know why i almost cried when i lost it!!

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.51a release of Jottings: http://jottings.thought.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: Sendmail not accepting connections on port 25

2011-07-21 Thread ssgriffonuser

On 07/21/11 01:31, Bernt Hansson wrote:

2011-07-20 06:24, ssgriffonuser skrev:


I still can't telnet in from an external network.


To me, that sounds like your external network might be blocking 
outgoing traffic on port 25.


Can you connect to any other mailservers on port 25?

%telnet gmail-smtp-in.l.google.com 25
Trying 74.125.77.27...
telnet: connect to address 74.125.77.27: Connection refused
telnet: Unable to connect to remote host

My isp is blocking outgoing traffic on port 25.
Yeah, it looks like your right.  I never would've considered my ISP 
blocking outbound traffic from my home, but I suppose it makes sense.  
Thanks a lot for pointing this out, now I just have to get the server 
configured correctly.

___
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: Sendmail not accepting connections on port 25

2011-07-21 Thread Robert Huff

ssgriffonuser writes:

   My isp is blocking outgoing traffic on port 25.

  Yeah, it looks like your right.  I never would've considered my ISP 
  blocking outbound traffic from my home, but I suppose it makes
  sense.

It is my understanding many I.S.P.s in the U,S, do, as part of
spam control procedures.  I am obliged to relay through my I.S.P.;
after some initial set-up issues, this works flawlessly as long as
at least one relay machine is up. 


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