Re:Best Laptop to buy for Freebsd Without OS?

2011-02-20 Thread James Phillips


 Date: Sun, 20 Feb 2011 04:23:03 +0100
 From: Polytropon free...@edvax.de
 Subject: Re: Best Laptop to buy for Freebsd Without OS?
 To: Brian Callahan kors...@gmail.com
 Cc: freebsd-questions@freebsd.org
 Message-ID: 20110220042303.0f730c6b.free...@edvax.de
 Content-Type: text/plain; charset=US-ASCII
 
 On Thu, 17 Feb 2011 18:32:59 -0500, Brian Callahan kors...@gmail.com
 wrote:

  and By using the Software, you accept these terms. If
 you do not
  accept them, do not use the software. Instead, contact
 the
  manufacturer or installer to determine its return
 policy. You must
  comply with that policy, which might limit your rights
 or require you
  to return the entire system on which the software is
 installed.
  
  The major OEMs will say OK, then you must return the
 computer, and
  you have no option but to comply. This is true for the
 USA.
 
 Erm... and this is NOT a joke? Don't get me wrong, I had a
 good laugh about this... agreement... but nothing is too
 absurd to be true.
 
 In this specific context, does booting a FreeBSD and
 removing
 the Windows from the disk is equivalent to using the
 soft-
 ware? If I understand it correctly, using relates to
 the
 software, not the hardware.
 
 

Unfortunately, it is *not* a joke unless it is some kind of elaborite prank. I 
don't know why people let computer (and peripheral) vendors get away with it. I 
briefly describe the inserts and stickers included with a computing console 
my sister bought here:
http://forums.xkcd.com/viewtopic.php?f=7t=55819start=120#p2001085

quote
Anyway, as you may know, the End-user does not agree to the Microsoft version 
of the EULA directly. Rather, each manufacturer uses their own modified EULA 
that in turn, references the Microsoft EULA. The important thing is that they 
have changed the language from by clicking agree... to by using the 
(computer)... you agree to the license.
/quote
There is also a seal on the bag holding the computer to that effect.

Just yesterday, made a post complaining about how you can't just buy a General 
Purpose computer anymore:
http://gbxforums.gearboxsoftware.com/showthread.php?p=2227317#post2227317

In it I mention how I tried to buy a GNU/Liunx and BSD compatible printer, only 
to be confronted with:
quote
Please read before opening. Opening this package or using the patented 
cartridge included with this product confirms your acceptance of the following 
license agreement. The patented Return Program cartridge sold with this product 
is provided subject to the restriction that it be used only once. Following 
this initial use, you agree to return the empty cartridge only to Lexmark for 
remanufacturing and recycling. Lexmark provides a prepaid return label in every 
replacement cartridge package. If you don't accept these terms, return this 
unopened package to your point of purchase./quote

Patent law is stronger than copyright law. Lexmark may be able to argue you are 
manufacturing printed documents and are subject to the Patent license. INAL 
either.

After deciding I could not really buy a computer locally, I ordered my latest 
machine from Freedom Included, Inc from in the US.
http://freedomincluded.com/product/lemote-yeeloong/

It is a MIPS-based subnotebook shipping with gNewSense (Linux distro). I don't 
think it is what the OP was looking for since it won't even run Windows without 
qemu (3hour+ compile for all targets). It is also a relatively small machine 
(netbook size). I am also not sure if the wireless would be supported in 
freeBSD.
freedomincluded@freedomincluded:~$ lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 0bda:8189 Realtek Semiconductor Corp. RTL8187B Wireless 
802.11g 54Mbps Network Adapter
Bus 004 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard 
reader
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(Camera not listed)

Regards,

James Phillips



___
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


GNU/Linux NIS tweaks was: FreeBSD Decision

2011-01-15 Thread James Phillips


--- On Sat, 1/15/11, FRLinux frli...@gmail.com wrote:


 Hello,
 
 I'd be curious to hear about any particular tweaking you
 need applying
 on NFS FreeBSD servers. I have used them for the past 8
 years starting
 with 4.x at the time and now with a mix of 6.x 7x and 8.x
 and had not
 to tweak anything.
 
SNIP!
 Cheers,
 Steph
 

It may have to do with what you are doing. At the NFS protocol level, they are 
compatible as far as I can tell. However, in my testing (trying to set up a 
file server in a heterogeneous environment) I had problems configuring NIS 
without editing Makefiles.

GNU/Linux uses 'shadow' to store password and FreeBSD used master.passwd. The 
number of fields between the two differ as well.
From my notes, the options are:
1. Modify makefile to generate a shadow file to keep Linux happy
2. use UNSECURE=true option in /var/yp/Makefile and disable shadow passwords 
in Linux. I decided to go with the second option because NFS uses host-based 
authentication: somebody with root access to a client machine can get both 
files anyway.

Because NFS passes ownership and group information by number, I decided I 
needed I need to use NIS to set send user and group information to keep the 
network sane. For example, james may be user 1001 on one machine and user 
1002 on another. The problem is that the FreeBSD special groups are not 
compatible with the GNU/Linux special groups (less than 1000). 

I resolved this (after an hint from IRC) by editing /var/yp/Makefile to only 
send user groups in a certain window to the client machines.
From my notes:
-both group.byname and group.bygid have the same filter to decide which groups 
to include:[
@$(AWK) -F: '{ if ($$1 != 
   $$1 !~^#.*  $$1 !=+) \
]

Decodes as:
Use 'awk' with a field  separator of ':'
Include a line if:
-it is not blank
-if it is not a commented line, denoted by '#'
-if it is not a line importing groups from NIS, denoted by '+' in the first 
field.

filter can be modified to include only gid's within a certain range: [
@$(AWK) -F: '{ if ($$1 != 
   $$1 !~^#.*  $$1 !=+ 
   $$3 = 1001  $$3 =2000) \
]
/notes

Regards,

James Phillips

I actually was able to log in from a test installation of Debian using that 
hack (files appeared on server as expected). It took some trial and error 
though.

PS: perhaps my difficulty is I don't really want to do programming until the 
fileserver is up, but BSD administrators are expected to do basic scripting.



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

2011-01-14 Thread James Phillips

 Message: 14
 Date: Fri, 14 Jan 2011 19:46:20 +0100
 From: Alessandro Baggi alessandro.ba...@gmail.com
 Subject: FreeBSD Decision
 To: freebsd-questions@freebsd.org
 Message-ID: 4d3099fc.10...@gmail.com
 Content-Type: text/plain; charset=ISO-8859-1;
 format=flowed
 
 Hi list, I don't want make a flame post but I would ask an
 objective 
 opinion, then not a camp opinion, about using FreeBSD or
 Debian Linux in 
 a production environment for solution as such as cluster of
 some 

 Mail Server (qmail), raid software, security support and
 hardware 
 support. 

I prefer Debian and lurk on the list because I want to use FreeBSD for my 
fileserver (which has been a multi-year project, still not in production). I 
originally chose BSD for security, but have decided to stick with it to 
benefit from learning a slightly different way of doing things.

The main flame-worthy difference between the two is licensing: Linux uses the 
GPL, FreeBSD uses a simplified BSD license. You can probably find flame-wars 
about it on the Internet yourself :)

The culture between the two groups is also a little different. Debian actually 
has an IRC channel where users are encouraged to ask questions (#debian on 
irc.freenode.net). Here, they prefer you use this mailing list. The difference 
may be that Debian has a larger community that can support an IRC channel.

The way packages get installed is different as well. Under Debian you are asked 
a series a questions (with user-settable verbosity), and many services are set 
up as automatically as is possible given your answers. Under BSD, services are 
installed disabled by default. This is annoying, but good for security. In 
theory you shouldn't be able to get it working unless you know what you are 
doing.

One thing to keep in mind is that BSD speaks a different POSIX dialect than 
most Linux distros (though that is likely true between Linux distros as well). 
This means things like NFS/NIS won't work without tweaking. One thing I also 
ran into is that md5sum (Debian) ~= md5 (BSD). I suppose you are supposed to 
use SHA2 these days anyway :P

Regards,

James Phillips


___
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: office apps

2010-06-09 Thread James Phillips




 Date: Tue, 8 Jun 2010 18:44:17 -0600
 From: Chad Perrin per...@apotheon.com
 Subject: Re: office apps
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Message-ID: 20100609004417.gc37...@guilt.hydra
 Content-Type: text/plain; charset=us-ascii
 

I don't really like Oo.org either. It is a little better than MS-Office, be 
seems to follow the same general design philosophy.

 
 I wish I'd find a foolproof, simple, transparent way for me
 to see and
 edit well-formatted plain text no matter what nonsense
 bloated featuritis
 infected office suite anyone else wanted to use.

Well, I heard RTF is useful for interoperability between MS word versions, but 
I am not sure how well interoperability between different vendors works in 
practice.
The Wikipedia page says RTF is a proprietary standard:
http://en.wikipedia.org/wiki/Rich_Text_Format

You may also want to use an SGML variant like HTML or XML, but those can be 
tedious to manually edit. For quick messages, Plain ASCII text is much better 
unless you need a different character set. In that case, Unicode text will 
probably work.

Regards,

James Phillips

 
 -- 
 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: Media streaming

2010-05-28 Thread James Phillips
 Date: Fri, 28 May 2010 00:14:09 +0100
 From: Graeme Dargie a...@tangerine-army.co.uk
 Subject: RE: Media streaming
 To: freebsd-questions@freebsd.org
 Message-ID:
     01fb8f39bad0bd49a6d0da8f7897392904f...@mercury.galaxy.lan.lcl
 Content-Type: text/plain;   
 charset=us-ascii

In your first message you said that The Sony TV was DTLA compliant. Because you 
specifically mentioned it, I assumed you knew what that meant. Your streaming 
server *will not* be DTLA compliant unless you are running Windows media center 
edition or something.

I did not want to bring it up, because there was no evidence that your problem 
was DRM related.
 

SNIP!
 Okies well so far I have tried mediatomb, the TV sees the
 server but
 gives the same message as with ushare this server does not
 support be
 useful if it said what it didn't support but there we go. I
 will look at

The server does not support Digital Transmission Content Protection:
http://www.dtcp.com/
Overview presentation:
http://www.dtcp.com/documents/dtcp/DTCP_Overview.pdf

In essence, you are supposed to encrypt the video stream lest you copy it.

I am a little surprised the TV would refuse to work with an unencrypted stream, 
which is why I did not respond to your first post.

Regards,

James Phillips





___
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: Media streaming

2010-05-28 Thread James Phillips


 Date: Fri, 28 May 2010 18:40:14 +0100
 From: Graeme Dargie a...@tangerine-army.co.uk
 Subject: RE: Media streaming
 To: freebsd-questions@freebsd.org
 Message-ID:
     01fb8f39bad0bd49a6d0da8f7897392904f...@mercury.galaxy.lan.lcl
 Content-Type: text/plain;   
 charset=iso-8859-1
 
 
 
 -Original Message-
 From: James Phillips [mailto:anti_spam...@yahoo.ca]
 
 Sent: 28 May 2010 18:23
 To: freebsd-questions@freebsd.org
 Subject: RE: Media streaming
 
  Date: Fri, 28 May 2010 00:14:09 +0100
  From: Graeme Dargie a...@tangerine-army.co.uk
  Subject: RE: Media streaming
  To: freebsd-questions@freebsd.org
  Message-ID:
      01fb8f39bad0bd49a6d0da8f7897392904f...@mercury.galaxy.lan.lcl
  Content-Type: text/plain;   
  charset=us-ascii

Sorry, DRM is an alphabet soup of Standards and industry consortia. I was 
unaware of DLNA and read it as: DTLA. However, if you look at the Overview and 
Vision White Paper, you will see that DTCP/IP (administered by DTLA) is 
required for the link layer of DLNA:
http://www.dlna.org/about_us/roadmap/DLNA_Whitepaper.pdf
- page 4, Table 1

The Wikipedia page lists some software that may or may not work:
http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance

SNIP!
 
 The server does not support Digital Transmission Content
 Protection:
 http://www.dtcp.com/
 Overview presentation:
 http://www.dtcp.com/documents/dtcp/DTCP_Overview.pdf
 
 In essence, you are supposed to encrypt the video stream
 lest you copy it.
 
 I am a little surprised the TV would refuse to work with an
 unencrypted stream, which is why I did not respond to your
 first post.
 
 Regards,
 
 James Phillips
 
 Hi James
 
 I said the TV was DLNA compliant, those links at the brief
 look I had appears to be the sort of encryption you would
 see on a HD signal via HDMI that would prevent you say
 recording HD content to your PVR device and then playing it
 back to a blu-ray recorder and recording it to disc. I had

I get the impression that DTCP is an umbrella DRM standard that that allows 
the other DRM standards to inter-operate. DTCP is administered by the Digital 
Transmission Licensing Administrator: a consortium of five companies including 
Hitachi, Intel, Panasonic, Sony, and Toshiba.

HDMI uses another scheme called High-bandwidth Digital Content Protection 
(HDCP) for encrypting the video.
http://www.digital-cp.com/
http://en.wikipedia.org/wiki/High-bandwidth_Digital_Content_Protection

DTCP will likely intervene in the step where you move the video from the PVR to 
the Blu-ray recorder.

When it comes time to record the information on the disk, a third scheme comes 
into play: Advanced Access Content System (AACS)
http://www.aacsla.com/home
http://en.wikipedia.org/wiki/Advanced_Access_Content_System
The Wikipedia page appears to be more readable.

 done a fair bit of googling on this before posting to the
 list, it seems Sonys' implementation of DLNA is a bit
 loose shall we say, I have seen a lot of people having
 issues with DLNA complaint NAS devices not working with Sony
 TV`s. As I have stated in a previous post it does work with
 wmp12, but it is not elegant or the solution I want for the
 reasons I stated earlier.

I would expect wmp12 to work because Windows Vista and 7 implement DTCP, and 
Microsoft is listed as one of the sponsors of DLNA.

Regards,

James Phillips

PS: my brain hurts reading that too :(

 
 Regards
 
 Graeme
 




___
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


dump/restore (to DVD+R) test failure

2010-05-24 Thread James Phillips
Hello,

It took reading the source code of a backup front-end to figure out that 
incremental backups are not the same thing as multiple incremental backups 
on the same medium; spilling over to the next disk if necessary.

As the handbook (section 18.12.1) says, dump has quirks due to its design 
dating back to 1975. Optical write-once media was punch tape or cards. Seeking 
to the middle of the media was time consuming, so daily tapes were simply 
written from the beginning, then rewound.

So, knowing this, I decided to test a full dump and restore to DVD+R media, 
following the example in the dump(8) man page. I suspect that the example was 
written with DVD-R in mind, but according to wikipedia,
http://en.wikipedia.org/wiki/DVD-R#Recordable_DVD_capacity_comparison
the smaller DVD+R media can handle the example in dump(8) with 184 2048 byte 
blocks to spare (implying the example intended 3576 spare sectors). The package 
for the DVD media just says 4.7 GB with only 2 significant digits.

I used the following command for the dump:
$/sbin/dump -0u -L -C16 -B4589840 -P 'growisofs -Z -dvd-compat 
/dev/cd0=/dev/fd/0' /home

Growisofs said 4700372992 bytes were written on the first disk (my notes don't 
record exactly which disk that was). That works out to 4590208kiB or 2295104 
sectors.
Edit: This matches the Wikipedia number; I assumed it to included zero padding

I tried the restore on a fresh freeBSD 8.0 install with no user accounts 
created (and atapicam not yet enabled):
dusty# cd /home
#restore -r -P 'dd if=/dev/acd0 of=/dev/fd/1 bs=2048 count=2294920'
warning: ./.snap: File exists
expected next file 706561, got 4
unknown tape header type -365754194
abort? [yn] n
resync restore, skipped 162 blocks
expected next file 847904, got 0
acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x10 ascq=0x00
dd: /dev/acd0: Input/output error
2294208+0 records in
2294208+0 records out
4698537984 bytes transferred in 2781.175375 secs (1689407 bytes/sec)
Mount tape volume 2
Enter ``none'' if there are no more tapes
otherwise enter tape name (default: dd if=/dev/acd0 of=/dev/fd/1 bs=2048 
count=2294920)
unknown tape header type -54549208
abort? [yn] n
resync restore, skipped 464 blocks
expected next file 5040133, got 0
1201264+0 records in
1201264+0 records out
2460188672 bytes transferred in 1330.121340 secs (1849597 bytes/sec)
dusty#

The unknown header type errors appear to be unrelated to the major read error 
reported at the end to the first disk. I suspect those may be corruption caused 
by a buffer underrun or local vibration.

Questions:
1. How do I determine which files (if any) are affected? is verbose mode 
required for that?
2. It appears the first disk lost 712 sectors of data (and a total of 896 
sectors of capacity) with that read error. Should I just burn the disks 
1024-4096 sectors short?
3. What is the best way to verify dumps at dump time?

I still have the data on another disk. I can restore it with dd if need be. I 
verified the newfs command appears to create a .snap directory by default now.

Regards,

James Phillips





___
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: [#24512320] Re: Apache22 Upgrade Failure

2010-05-22 Thread James Phillips


 Date: Sat, 22 May 2010 06:43:59 +0100
 From: Matthew Seaman m.sea...@infracaninophile.co.uk
 Subject: Re: [#24512320] Re: Apache22 Upgrade Failure
 To: Odhiambo Washington odhia...@gmail.com
 Cc: questi...@freebsd.org
 Message-ID: 4bf76f1f.8040...@infracaninophile.co.uk
 Content-Type: text/plain; charset=UTF-8
 
SNIP! (Sig now invalid anyway)
 
 On 22/05/2010 24:01:52, Odhiambo Washington wrote:
  Is someone saying that FreeBSD lists are not hosted on
 Mailman? Or is the
  list admin on holiday on the space station? Mailman
 supports regexes for
  blocking, IIRC.
 
 Check the message headers: the bogus replies to you come
 direct from
 mpcustomer.com and don't go anywhere FreeBSD mailman.
 
 Blacklisting supp...@mpcustomer.com
 would be an effective fix, if you
 have that much control over your mail system.
 
     Cheers,
 
     Matthew

While you don't say anything explicitly incorrect, I think it is trickier than 
that: the From: address is listed as freebsd-questions@freebsd.org; is is the 
Reply-To: address that is supp...@mpcustomer.com.

I was also reluctant to report the message as spam since the bulk of it was my 
own message! I don't want replies to my messages being hit by the spam filter. 
IMO, the message body is being used as unique filler text to get past 
Bayesian filters.

I don't claim to know if the effect is intentional or accidental.

-James Phillips





___
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


Is the freeBSD mailing list using an automated ticket system?

2010-05-20 Thread James Phillips
Sorry about the blank post (hit enter by mistake): I feel I may have received a 
phishing e-mail. This may explain why somebody pasted their root password on 
the mailing list over the last few days:


[#24508771] Re: 7.0/i386 to 8.0/amd64 - gmirror/gstripe migration
Wednesday, May 19, 2010 11:11 PM
From freebsd-questions@freebsd.org Thu May 20 05:11:32 2010
X-Apparently-To:anti_spam...@yahoo.ca via 76.13.9.57; Wed, 19 
May 2010 22:11:32 -0700
Return-Path:freebsd-questions@freebsd.org
Received-SPF:   softfail (mta1044.mail.sk1.yahoo.com: domain of 
transitioning freebsd-questions@freebsd.org does not designate 208.43.146.75 as 
permitted sender)
X-YMailISG: 
bN4BmMIcZAoekRfwnHPcFUPXQy4vPFD_clpLPEdD8_d4TtskiryPLE2xsmlo_rObEVSxKsUGQx5NT2Y2Ddw8vTIEq_cR1CouOg9NUfFtDq8mQKWyzHHVLEom6TBQmPilNtvwDy1eUJnIL9G8I.6szaPOCpvbgk5BFS29sElIJWMNe9iRo.tCcbW8fYsQh3dXKD_BwLfjuOKdW5IvqLv2xJRDU4YotTdgtX99kvgNKLthhezb0vr8.mE_ozYBttnGy8mzAWtFDUJL7FRIZIoeAl4mWR_j0GPwT_AS.CwAiwQQLKiSoV0tqPGfDxjCJGON3wio2oakrHY8k.EfacsELaOyS2dV7l5Yj7OGdM5KO5i_5CzXMX1Gtn9LA2OlLX3gz4ix0Zw5EerCT9ZLqi1mt7ZmZVIR7K9nLxh_QfkAL9tWiLRTh0_ap2ek4jEfOmCk9_9P.l2eoqYhsoefWlj_ABQl9ctlSr4Epq6sz_f4Nj.PqKamL1G1T5UDJAuKv5zjbEt.bfkPUhwmIJXIGkB.qlTP9KgtZOYIAnP1BfPen1aQEJC0.y0_3la1jsqjcMyW5V.4RXp5VCzuuXAslYeYkMKqwFrJ36lmZuk1uKvXUBDZONdNqDd2
X-Originating-IP:   [208.43.146.75]
Authentication-Results: mta1044.mail.sk1.yahoo.com 
from=freebsd.org; domainkeys=neutral (no sig); from=freebsd.org; dkim=neutral 
(no sig)
Received:   from 127.0.0.1 (EHLO secure.mpcustomer.com) 
(208.43.146.75) by mta1044.mail.sk1.yahoo.com with SMTP; Wed, 19 May 2010 
22:11:32 -0700
Received:   by secure.mpcustomer.com (Postfix, from userid 99) id 
39DDB279AB3; Thu, 20 May 2010 00:11:32 -0500 (CDT)
To: James Phillips anti_spam...@yahoo.ca
Subject:[#24508771] Re: 7.0/i386 to 8.0/amd64 - gmirror/gstripe 
migration
Date:   Thu, 20 May 2010 00:11:32 -0500
From:   
freebsd-questions@freebsd.org  
Add sender to Contacts
Reply-To:   supp...@mpcustomer.com
Message-ID: a5745526da76cdd0d28769432b216...@secure.mpcustomer.com
X-Priority: 3
X-Mailer:   PHPMailer (phpmailer.sourceforge.net) [version 2.0.4]
X-Uberinst: uber_phase-support
X-Mailer:   Ubersmith
MIME-Version:   1.0
Content-Transfer-Encoding:  8bit
Content-Type:   text/plain; charset=utf-8
Content-Length: 1908
Compact Headers
Hello,

This is an automated response to inform you that your question has been entered 
into our system, and will be reviewed shortly. Your ticket has been submitted 
into the General Support department.

We will respond to you as soon as possible.

==
Please keep this information, and use it when refering to your ticket:

Ticket subject: Re: 7.0/i386 to 8.0/amd64 - gmirror/gstripe migration
Ticket number: 24508771
Ticket link: https://secure.mpcustomer.com/ticket.php?ticket=24508771
Ticket body:  Hi!
SNIPPED

Regards,

James Phillips





___
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: 7.0/i386 to 8.0/amd64 - gmirror/gstripe migration

2010-05-19 Thread James Phillips

 Hi!
 
 I am planning to move from 7.0-REL-i386 to 8.0-REL-amd64 
SNIP!
 Does anyone foresee any serious problems with this 
 plan?  I know doing a whole version upgrade can
 sometimes introduce 
 bugs when dealing with old setups, so I just want to cover
 my bases prior to the work.

This sounds like the kind of thing Release notes were designed for. I was not 
able to find them on the first page of the FreeBSD website, but if you click 
the big Get FreeBSD Now button, there is a link in the table detailing the 
releases:
http://www.freebsd.org/releases/8.0R/relnotes.html

 
 I am backing up this system to another 
 system, so if I end up losing the data or having to rebuild
 the
 array, that's fine, it just sucks having to copy the 2TB of
 data over the wire afterward.

Good idea ;)

FreeBSD no longer supports dangerously dedicated UFS filesystems (section 
2.2.5 of Detailed release notes) but I'm not sure if that is possible with 
gmirror.

 Thanks for your help!
 
 ++AMARU

PS: Your reply to yourself was in the same digest message. Not everybody is in 
your timezone either.

Regards,

James Phillips





___
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 install from floppy

2010-03-06 Thread James Phillips


 Date: Sat, 06 Mar 2010 09:54:38 +
 From: Matthew Seaman m.sea...@infracaninophile.co.uk
 Subject: Re: freebsd install from floppy
 To: per...@pluto.rain.com
 Cc: questi...@freebsd.org,
 plukaw...@gmail.com
 Message-ID: 4b92265e.5030...@infracaninophile.co.uk
 Content-Type: text/plain; charset=UTF-8
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 06/03/2010 09:26:22, per...@pluto.rain.com
 wrote:
  I seem to remember something about the floppy images
 being dropped
  because few current (or even recent) systems have a
 floppy drive at
  all, much less a bootable one.
 
 Yeah, but the floppy disk drive was already obsolete 10
 years ago.  It's
 just taken this long for it to fall down dead.  Good
 riddance to it.
 Why would anyone want an unreliable, slow and tiny capacity
 device when
 you can get GiB capacity USB sticks everywhere nowadays?
 

Correction: Apple stopped selling computers with floppy drives about 10 years 
ago. The floppy drive is not obsolete because there is still no viable 
replacement that has the same (or better) functionality.

The problem with USB sticks is that they don't have user-accessible 
write-protect tabs. If you plug a USB stick into a compromised system, it is 
tainted.

Secure Digital Cards have a write-protect tab, but Secure means secure 
against copying (Copy Protection for Recordable Media), making them 
inappropriate for known good filesystem images.

I have started using CD-ROM booting to install FreeBSD. The problem with CD-R 
images is that any tweaks to the disk image require burning a new disk.

Regards,

James Phillips

Recent Slashdot exchange about exactly this issue:
http://slashdot.org/comments.pl?sid=1565678cid=31302916




  __
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. 
Optimized for Yahoo! Get it Now for Free! at 
http://downloads.yahoo.com/ca/internetexplorer/

___
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: video cam with room view for FreeBSD

2010-03-05 Thread James Phillips

 
 Message: 23
 Date: Fri, 05 Mar 2010 16:33:43 +0100
 From: Bas v.d. Wiel b...@kompasmedia.nl
 Subject: Re: video cam with room view for FreeBSD
  Skype
 Cc: freebsd-questions@freebsd.org
 Message-ID: 4b912457.5040...@kompasmedia.nl
 Content-Type: text/plain; charset=ISO-8859-1;
 format=flowed
 
SNIP!
 In the past I've had reasonable succes using a standard
 camcorder over 
 firewire to do things like this. It's been a few years
 though. If using 
 firewire isn't an issue for you, I'd be happy to delve into
 my pile of 
 notes and see if I can find you something of a howto. The
 advantage of a 
 firewire camera is in the much more standardized protocol
 between PC and 
 camera.
 
 Bas
 

USB cameras are starting to implement a standard protocol as well:
http://en.wikipedia.org/wiki/USB_video_device_class
(Shortened to UVC)
It is apparently a requirement for USB and Vista certification.

From the Wikipedia page:
FreeBSD

Not implemented yet, there are patches available which make Linux kernel USB 
mediadrivers work in userspace by using an asynchronous USB interface. It's the 
first OS allowing to have an entire highspeed USB driver in userland.

Regards,

James Phillips






  __
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

___
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: Compiler Flags problem with core2 CPU

2010-03-01 Thread James Phillips


 Date: Sun, 28 Feb 2010 22:37:27 +0800
 From: Aaron Lewis aaron.lewis1...@gmail.com
 Subject: Re: Compiler Flags problem with core2 CPU
 To: Paul B Mahol one...@gmail.com
 Cc: freebsd-questions@freebsd.org
 Message-ID: 4b8a7fa7.1070...@gmail.com
 Content-Type: text/plain; charset=ISO-8859-1;
 format=flowed
 
 Really ? It's bad to use custom flags to compile kernel ,
 why do you 
 think so ?
 I'd like to know more about this : )
 
 So setting optimize compiler flags is only useful for
 userland stuff ?
 
I laughed at your question because I remember reading somewhere that using 
aggressive optimization options is a good way to find compiler bugs. I think 
that extends of optimizations for new CPU architectures as well. 
I also heard kernel code avoids MMX instructions for some reason: it may have 
to do with interrupt handling (fewer registers=faster?). x86 (and AMD64) 
processors are backwards compatible, so you don't strictly need the latest 
instructions.

Regards,

James Phillips






  __
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

___
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: [FR]Lien mort sur install-pre (floppies)

2009-12-20 Thread James Phillips
Translation:
Good day,

In the pre-installation section of the handbook (french version) the link to 
the boot-floppy images is broken.

Regards,

Pierre-Yves Le Borgne

 Date: Sat, 19 Dec 2009 22:26:43 +0100
 From: Pierre-Yves Le Borgne pylaterr...@gmail.com
 Subject: [FR]Lien mort sur install-pre (floppies)
 To: questi...@freebsd.org
 Message-ID:
     6804ee40912191326n66f32dd8x8e8e717f0aa4...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 Bonjour,
 Sur http://www.freebsd.org/doc/fr/books/handbook/install-pre.html
 , un lien
 indiqué (
 ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/8.0-RELEASE/floppies/)
 est
 mort.
 
 Cordialement,
 Pierre-Yves Le Borgne
 

--
 It is not clear to me if he is just trying to point out a documentation bug or 
if the 8.0-RELEASE-i386-bootonly.iso does not work for him.
ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/8.0/

(I was able to confirm the link *is* broken.)

Regards,

James Phillips

 


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.

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


Re: disk with high frequency noise only on FreeBSD

2009-12-12 Thread James Phillips

 Date: Fri, 11 Dec 
2009 23:52:50 +0200  From: ly4uk Root ly...@ukr.net
 Subject: disk with high frequency noise only on FreeBSD
 To: freebsd-questions@freebsd.org
 Message-ID: 1260568370.99298.49.ca...@localhost
 Content-Type: text/plain
SNIP! 
 cleaning), but drive is still squeaking. Now I'm using
 freebsd 8.0, not
 fresh install, got it from seven release (at almost year
 ago) by
 tracking stable branch. All noise came exactly in one
 reboot while
 upgrading to 8.0-RC2.
 So, it would be interesting to get Your answer about
 possible
 solutions(if You know such) or maybe some comments(if
 don't). I will be
 very happy for that, many excuse for disturbance.
 

Now, this post is interesting. I'm sure many people with a software 
background may be tempted to write this report off as completely 
implausible. The truth is even non-moving parts such as inductors 
and possibly capacitors can move in response to an applied signal. 
For example, my ADSL modem with no moving parts makes an audible 
hissing noise louder than the (80mm) fan noise of my BSD server.

I have no idea what would be causing this in 8.0-RC2, but I can 
suggest what to look for: anything polling the drive in the audible 
frequency range (20 to 20 thousand times per second). Another 
possiblity is any action the repeats at that rate, but was not 
present in ealier versions. The timer interrupt is in that range, but 
other systems like GNU/Linux (before the tickless kernel) and Windows 
use a similar timer. 
To the original poster: you say this is a laptop. How do you know the 
noise is coming from the hard drive and not some other component like 
the speakers/Network card/fan? 
Regards,

James Phillips


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: Dangerously Dedicated

2009-12-10 Thread James Phillips
 Date: Thu, 10 Dec 2009 03:12:45 +0100
 From: Polytropon free...@edvax.de
 Subject: Re: Dangerously Dedicated
 To: Maxim Khitrov mkhit...@gmail.com
 Cc: freebsd-questions@freebsd.org
 Message-ID: 20091210031245.3fd58187.free...@edvax.de
 Content-Type: text/plain; charset=US-ASCII
 
 On Wed, 9 Dec 2009 20:41:40 -0500, Maxim Khitrov 
mkhit...@gmail.com  wrote:
  On Wed, Dec 9, 2009 at 8:33 PM, Rolf Nielsen
  listrea...@lazlarlyricon.com
 wrote:
   As far as I understand it, it's called
 Dangerously Dedicated because it may
   cause other systems not to recognise the disk.
 Consequently, newfs'ing a
   slice without first partitioning it can hardly be
 DD, since that is what
   other systems do, right?

I think I understand: using the DOS compatible partition (slice) 
table follows the principle of least surprise. That is why I use 
slices for my dedicated BSD machine. 4 places to put your data are 
ostensibly better than 1, and I avoid any possible BIOS bugs if the 
BIOS sees a non-standard MBR. 

  
  That is correct. That slice will not be bootable, but
 you can use it
  to store data.
 
 Being bootable is a matter of what the MBR boot block
 says. In a DD setting, it refers to the first partition
 (that's not within a slice), e. g. ad0a. Especially in
 a multi-OS setting, the use of slices seems to be
 strongly recommended so all operating systems behave
 in the required way (due to compatibility reasons,
 see DOS primary partitions), which limits the number
 of slices to 4.

I would say a common partition format is REQUIRED in a multi-boot 
situation. For PC OS's, that means DOS compatibility.

 
 For plain storage, it's not needed to encapsulate the
 partition with the file system inside a slice, e. g.
 
     ad1  ad1s1  ad1s1e
     {    [     
 (/data)  ]  }
 
 in comparison to
 
     ad1  ad1c
     {    (/data)  }
 
 And as it is known, the c can be omitted, as in
 
     # mount /dev/ad1 /data
 
 

The Detailed 8.0 release notes don't say anything about bootability:
2.2.5 File Systems
  “dangerously dedicated” mode for the UFS file system 
is no longer supported
 http://www.freebsd.org/releases/8.0R/relnotes-detailed.html

I also note that the DOS partition (slice) table is not explictly 
required either: could you use an Apple partiton (slice) table 
instead? 
UFS not supporting DD mode struck me as weird BECAUSE it has to work 
with different architectures. 
Of course, if you are just storing raw data, you don't always *need* 
a filesystem. 

Regards,

James Phillips


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Dangerously Dedicated (was: How do I create large ...)

2009-12-09 Thread James Phillips
 Date: Tue, 8 Dec 2009 22:00:29 +0100
 From: Polytropon free...@edvax.de
 Subject: Re: How do I create large partitions in FreeBSD?
 To: krad kra...@googlemail.com
 Cc: Peter Steele pste...@maxiscale.com,
     freebsd-questions@freebsd.org
 freebsd-questions@freebsd.org
 Message-ID: 20091208220029.2052102f.free...@edvax.de
 Content-Type: text/plain; charset=US-ASCII
 
 On Tue, 8 Dec 2009 20:52:52 +, krad kra...@googlemail.com
 wrote:
  stay away from dangerously dedicated it seems as
 though they are being
  phased out
 
 I've followed the related discussion, but I'm not sure
 what
 to conclude from it... as far as I understood, creating an
 installation dangerously dedicated mode isn't possible
 from sysinstall anymore, but still possible via the
 command
 line tools. I don't see a reason why it is considered to
 be
 something bad, but the inclusion of a carrier slice for
 the OS's partitions has always been recommended. But for
 data disks where only one partition is intended, why
 create
 it inside a slice?
 

I sort of followed the discussion as well. There was some 
disagreement about what dangreously dedicated means. Does it mean 
getting rid of the DOS partition table (slices?)  Or, does it mean 
creating a slice or disks without BSD partitions? The Handbook (18.3) 
says: If the disk is  going to be truly dedicated to FreeBSD, you 
can use the dedicated mode. Otherwise, FreeBSD will have to live 
within one of the PC BIOS partitions. FreeBSD calls the PC BIOS 
partitions slices so as not to confuse them with traditional BSD 
partitions. 
The programer in charge of the change seemed to indicate that the 
Dangerously dedicated mode (I assume that means no BSD partititons) 
conflicts with GEOM: Modular Disk Transformation Framework. GEOM 
appears to be an asbtraction layer for accessing various disks. With 
the move underway to start accessing all disk as SCSI(3 is device 
independent (with translation help)) devices, it probably makes for 
more elegant code. Handbook (19.2 GEOM Introduction) reads:
GEOM permits access and control to classes -- Master Boot Records, 
BSD labels, etc -- through the use of providers, or the special files 
in /dev. Supporting various software RAID configurations, GEOM will 
transparently provide access to the operating system and operating 
system utilities. 
The important thing in that quote is that BSD labels (and Master 
Boot Records) are mentioned specificly. 
Regards,

James Phillips


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd-questions Digest, Vol 287, Issue 13

2009-12-04 Thread James Phillips
Sorry about that (accidentally quoted most the Digest (issue 12) in a reply). 
Need to start using a real email client :(

-james.



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: [Solved] Having problems burning a DVD

2009-12-04 Thread James Phillips


--- On Fri, 12/4/09, Al Plant n...@hdk5.net wrote:

 From: Al Plant n...@hdk5.net
 Subject: Re: [Solved] Having problems burning a DVD
 To: James Phillips anti_spam...@yahoo.ca
 Cc: freebsd-questions@freebsd.org
 Received: Friday, December 4, 2009, 12:26 PM
 James Phillips wrote:
SNIP!
  I noticed that the hash does not match the ISO file.
 Is that normal for DVDs? For CD images I often get the md5
 hash to match.
SNIP!
 Aloha JP,
 
 This is what I use on FreeBSD from the command line to burn
 DVD's.
 I have used it on FreeBSD 8* for a while. (Simple and it
 works.)-
 
Yes, I got that far, hence the [Solved] tag.

I was mainly concerned that I made a mess of my /boot/loader.conf

I am also a little concerned that the DVD only reads a ~1.5MB/s (a little 
faster than 1x), but it appears to work. Burning happened at ~7x according to 
growisofs.

 
 Then Run # growisofs -dvd-compat -Z
 dev/cd0=/usr/home/alp/FreeBSD_7/7.2-RELEASE-p1-i386-disc1.iso
 (all on one line)
 
 Then Use  cd0 as a DVD burner and make the DVD-R
 
 I tested the DVD on a spare box and it installed just
 fine.
 

I found out why the checksum didn't match: the -dvd-compat option adds 6 2048 
byte sectors of zeros to the end of the disk.

So, I was able to verify the md5 sum by reading only the number of sectors 
present in the iso file.

$ dd if=/dev/dvd bs=2048 count=996586 | md5

I noticed the size discrepancy while doing a binary search using the iseek 
(dd)(and count) argument(s) to narrow down the location of the corruption.

Regards,

James Phillips



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: [Solved] Having problems burning a DVD

2009-12-03 Thread James Phillips
Hello,

After making two coasters with a graphical CD burning program using Ubuntu, I 
decided to try using FreeBSD: I want to start backing up to DVD anyway.

After some searching I learned I missed some details in the handbook on the 
first and second reads such as:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html
The program growisofs(1) will be used to perform DVD recording. This command 
is part of the dvd+rw-tools utilities (sysutils/dvd+rw-tools). The dvd+rw-tools 
support all DVD media types.

I had hard time finding the non-existent growisofs package!

These tools use the SCSI subsystem to access to the devices, therefore the 
ATAPI/CAM support must be added to your kernel. If your burner uses the USB 
interface this addition is useless, and you should read the Section 18.5 for 
more details on USB devices configuration.

Using the atapicd driver generated the following error message:
 :-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for device

After the command:
$ growisofs -dvd-compat -Z /dev/acd0=8.0-RELEASE-i386-dvd1.iso
before you ask:
MD5 (8.0-RELEASE-i386-dvd1.iso) = 5336cd827991e4d4cff6d73c4a5ca105
Release announcement: 5336cd827991e4d4cff6d73c4a5ca105

I tried playing with /etc/devfs.conf as suggested by Predrag Punosevac
$ id
uid=1002(backup) gid=1002(backup) groups=1002(backup),5(operator),1003(Share)
$ cat /etc/devfs.conf  |sed 's/#.*//g'
linkcd0 cdrom
linkcd0 dvd
linkcd0 rdvd
own cdrom   root:operator
own dvd root:operator
own rdvdroot:operator
permcd0 0660
permcdrom   0660
permdvd 0660
permrdvd0660
permxpt00660
permpass0   0660
- that sed command was stolen from a script expecting CRlf
-originally used device acd0 (until enabling atapicam)
$ cat /boot/loader.conf
acpi_load=no
apm_load=yes
atapicam_load=yes
#ata_load=yes# enabled by default
scbus_load=yes
cd_load=yes
pass_load=yes
atapicd_load=no
#hw.ata.atapi_dma=1  # enabled by default

With the atapicam driver I was able to somehow get growisofs to go through the 
motions of burning the DVD, even have a kernel message from GEOM reading the 
BSD label:
$ tail /var/log/messages
Dec  3 20:00:00 dusty newsyslog[833]: logfile turned over due to size100K
Dec  3 20:00:28 dusty kernel: GEOM_LABEL: Label for provider acd0t01 is 
iso9660/FreeBSD_Install.

but can't read the disk to verify it:
$ dd if=/dev/cd0 bs=2048 | md5
996592+0 records in
996592+0 records out
2041020416 bytes transferred in 1292.388284 secs (1579263 bytes/sec)
19b087536234b316b64232ba6b1c1799

Umm. Nevermind. I added the block size so nobody would try suggesting it has an 
effect :P  previous error:
$ dd if=/dev/cd0 | md5
dd: /dev/cd0: Invalid argument
0+0 records in
0+0 records out
0 bytes transferred in 0.000721 secs (0 bytes/sec)
d41d8cd98f00b204e9800998ecf8427e


I noticed that the hash does not match the ISO file. Is that normal for DVDs? 
For CD images I often get the md5 hash to match.

The man page for atapicam(4) warns:
atapicam and ATAPI-specific target drivers (acd(4), ast(4), and afd(4))
 can be configured in the same kernel.  Simultaneous access to the same
 device through the SCSI generic drivers and the ATAPI-specific drivers
 may cause problems and is strongly discouraged.

Is there anything special I should do to try to disable the atapicd driver? I 
don't think my 'atapicd_load=no' line in /boot/loader.conf has much of an 
effect.

Regards,

James Phillips



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread James Phillips

 Date: Mon, 30 Nov 2009 20:07:15 +1100
 From: alex a...@mailinglist.ahhyes.net
 Subject: Re: Phoronix Benchmarks: Waht's wrong with FreeBSD
 8.0?
 To: freebsd-questions@freebsd.org
 Message-ID: 4b138b43.4000...@mailinglist.ahhyes.net
 Content-Type: text/plain; charset=ISO-8859-15;
 format=flowed
 
 I didn't know these were released already, but I had a
 look. I was 
 disappointed with the results.
 
 If anyone wants to look here is the link:
 
 http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1

 Linux's ext4 seems to leave UFS and ZFS well behind in a
 number of 
 benchmarks.


My first thought is that Ext4 may be cheating on the benchmarks. The 
performance regressions should probably be concerning though.

Ext4 data loss; explanations and workarounds
http://www.h-online.com/open/news/item/Ext4-data-loss-explanations-and-workarounds-740671.html

Ext4 data loss Bug #317781 (Fix released)
https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781

If you really want to make sure the data in on disk, you have to use fsync() 
or fdatasync(). Even with ext3, if you crash at the wrong time, you will also 
lose data. So it's not the case with ext4 that it's going to truncate files 
ievery time/i a non-redundant component dies. It's not bevery time/b. 
If you fdatasync() or fsync() the file, once the system call returns you know 
it will be safely on disk. With the patches, the blocks will be forcibly 
allocated in the case where you are replacing an existing file, so if you 
crash, you'll either get the old version (if the commit didn't make it) or the 
new version (if the commit did make it). If you really care, you could write a 
program which runs sync() every 5 seconds, or even every 1 second. Your 
performance will be completely trashed, but that's the way things break. - 
Theodore Ts'o  wrote on 2009-03-06




  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread James Phillips


--- On Mon, 11/30/09, Bruce Cran br...@cran.org.uk wrote:

 
 This is actually the way UFS/FFS works too: when my system
 was crashing
 fairly regularly I was a bit surprised to find empty files
 after
 editing them.
 
 Also, I just verified that saving a file, rebooting,
 editing it again
 (with ee(1)) and powering off the system does still result
 in a zero
 length file being on disk.
 

Ok, good to know.

I saw UFS corruption once with frequent restarts, but assumed that was because 
the delayed filesystem checking never had a chance to run.

Since I don't have a UPS I guess backups are doubly important.

-james.



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: slightly complex query - one machine with two network interfaces

2009-11-29 Thread James Phillips


 Date: Sun, 29 Nov 2009 10:16:53 +
 From: John comp.j...@googlemail.com
 Subject: slightly complex query - one machine with two
 network
     interfaces
 To: freebsd-questions freebsd-questions@freebsd.org
 Message-ID: 20091129101652.gb48...@potato
 Content-Type: text/plain; charset=us-ascii
 

 it. Can anyone give me pointers on how to make the wireless
 interface
 more usable? basically, I want to export via either nfs or
 samba some
 shares to the wireless network, but routing ropiness seems
 to kill this.
 

I suggest you should be careful here. By default NFS seems to assume that only 
trusted hosts (not users) will connect. If your share is read-only that may not 
be a problem (depending on the information shared).

You should also make sure samba is using (sufficiently strongly) encrypted 
passwords as well.

You may want to read the security section of the handbook.

Regards,

James Phillips

PS: If I want to be paranoid over wireless I need new hardware. My PII 350 can 
only do SSH (128 bit 3-DES?) at ~1MB/s.



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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 torrent tracker give wierd numbers?

2009-11-27 Thread James Phillips
Hello,

On the Development list somebody mentioned the BitTorrent tracker:
http://torrents.FreeBSD.org:8080/

Looking at this page:
http://torrents.freebsd.org:8080/stats.html?info_hash=329525ff9a0fbd43ee25e50c510564919255403e

I noticed that it lists everyone as being connected for about 8 minutes.

This leads to strange results like my download speed being listed as 1.89 
MB/sec when it is in fact capped at 100kB/sec.


Before downloading, I was wondering why everybody seemed to have such fat pipes 
:P

Regards,

James Phillips



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 7.2, usb mouse, uhub0: device problem

2009-11-21 Thread James Phillips

 Date: Fri, 20 Nov 2009 15:58:27 -0500
 From: Jerry ges...@yahoo.com
 Subject: Re: 7.2, usb mouse, uhub0: device problem
 (IOERROR),
 To: freebsd-questions@freebsd.org
 Message-ID: 20091120155827.7526e...@scorpio.seibercom.net
 Content-Type: text/plain; charset=US-ASCII
 
SNIP!
 
 Thanks! I guess the 'wireless' menu item is either not
 working, or I am
 using it incorrectly on that site.

There is no wireless menu item on the product search page:
http://www.usb.org/kcompliance/view

The Wireless Products Only Radio button refers to products using the Wireless 
USB Standard that I assume is supposed to be some kind of blue-tooth killer. 
(All Retail Categories returns only 117 results)
http://www.usb.org/developers/wusb/

If you select the Hi-Speed Products Only option, only one mouse is returned. 
(I never found serial mice working at only 9600bps unresponsive; barring dirty 
rollers. Newer mice have higher resolution I guess.)

Regards,

James Phillips

PS: I genuinely did not see the radio buttons when looking for menu items (I 
did check the drop-down lists). Not sure how proper it is to declare radio 
buttons not menu items. In my mind, menu items have an immediate effect. I 
have seen web-pages where choosing a drop-down item affects other drop-down 
lists in the page.
PPS: The choices of effect and affect are intentional. This page agrees 
with me (Still not sure if I'm correct):
http://www.writersblock.ca/tips/monthtip/tipsep99a.htm




  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 7.2, usb mouse, uhub0: device problem (IOERROR),

2009-11-20 Thread James Phillips


 Date: Fri, 20 Nov 2009 01:18:10 -0800 (PST)
 From: Mark Terribile materrib...@yahoo.com
 Subject: 7.2, usb mouse, uhub0: device problem (IOERROR),
 disabling
     port 3
 To: freebsd-questions@freebsd.org
 Message-ID: 181765.78137...@web110310.mail.gq1.yahoo.com
 Content-Type: text/plain; charset=us-ascii
 
 Hi,
 
 I just put 7.2 on an Asus P5N7A-VM motherboard (running
 with a Core II Quad 2.33).  This motherboard has a PS/2
 connector for the keyboard but not for the mouse.  When
 I plug a USB mouse in, or connect a PS/2 mouse through an
 appropriate green adaptor (PS/2 mouse/USB) I get the
 following error on the console and in /var/log/messages:
 
 Nov 17 15:35:11 silver kernel: uhub0: device problem
 (IOERROR), disabling port 3
 

You can't just use a PS/2 - USB adapter on *any* mouse; you need a dual 
protocol mouse. It sound like your mouse may be old enough that it only 
supports a PS/2 - RS-232 (9 pin serial) adapter. Your board may have a header 
to allow the easy installation of a serial port, but I have not checked (and 
serial mice may not be auto-magically configured).

Last time I was looking for a mouse, I could not find a PS/2 version. I was 
reluctant to get a USB mouse because none of them are USB Certified 
(http://www.usb.org). Many of them also had a Side-scrolling scroll wheel 
(designed with Vista in mind?) very awkward to use as a middle button.

If you mouse IS a USB mouse, try a different one.

Regards,

James Phillips



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 7.2, usb mouse, uhub0: device problem (IOERROR),

2009-11-20 Thread James Phillips
--- On Fri, 11/20/09, Chuck Swiger cswi...@mac.com wrote:
 On Nov 20, 2009, at 11:06 AM, James Phillips wrote:
  Last time I was looking for a mouse, I could not find
 a PS/2 version. I was reluctant to get a USB mouse because
 none of them are USB Certified (http://www.usb.org). Many of them 
also  had a Side-scrolling scroll wheel (designed with Vista in
 mind?) very awkward to use as a middle button.
 
 It's quite possibly to your credit that you've actually
 checked whether a USB mouse has been tested as compliant,
 but when I do a search for Mice/trackballs/pointers, I get
 68 results, including a dozen or so from both Logitech and
 Microsoft.
 

Ok, I wasn't clear: none of the mice in the local stores I checked 
had the USB certified logo, Including a Logitech one I ended up 
getting. 
I was looking for a $20 mouse, not a $100 mouse, so that may make a 
difference in labling/testing. *shrug* 
Regards,

James Phillips


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: [Solved] Do permissions take time to take effect?

2009-11-18 Thread James Phillips


--- On Wed, 11/18/09, Dan Nelson dnel...@allantgroup.com wrote:


 In the last episode (Nov 17), James
 Phillips said:
  I wanted to create a shared directory writable by all
 users. When it
  initially failed, I assumed there may be a blanket ban
 on writing to
  directories owned by root.  Today, I was able to
 write to the root-owned
  Share directory.  However, when I re-created
 the directory owned by a
  special-purpose Share user, I ran into the same
 problem again.
SNIP!
 
 You are probably in the users group.  Running either
 the groups or id
 command will say for sure.

Yes, I was using the cd and pwd combination as a poor replacement.
It is possible to re-assign the home directory.

$ groups
james Share
$ id
uid=1001(james) gid=1001(james) groups=1001(james),1003(Share)

(I have since deleted the users group: it is a Debian thing, and I had NIS 
set up to NOT export the membership information)
SNIP!
 
 If you are currently either the james or backup user,
 and added the
 Share group membership on another tty, then you may need to
 log out and back
 in for the system to assign your new group membership to
 your session. 
 Filesystem permissions take effect immediately, but group
 memberships are
 assigned once, at login.

This here was the problem. I was not logging out after the changes. However, I 
am in the habit of logging out at the end of the day. As a result, I would get 
the updated permissions when I log in the next day.

Thank-you for your help,

James Phillips



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: hdd voltage

2009-11-17 Thread James Phillips

 Date: Tue, 17 Nov 2009 11:01:15 -0800 (PST)
 From: D?nielisz L?szl? laszlo_daniel...@yahoo.com
 Subject: Re: hdd voltage
 To: freebsd-questions@freebsd.org
 Message-ID: 615511.15311...@web30804.mail.mud.yahoo.com
 Content-Type: text/plain; charset=iso-8859-1
 
 Thank you guys for the interest you bring solving my
 issue!
 
 Actualy I noticed one thing for sure:
 I have to hdd-s in my PC, an 80GB Seagate ATA (the o.s.
 boot hdd) and one 1T Seagate SATA (only for storage), there
 were no problems when I used just the 80GB neither with the
 1T, I noticed only that I'm getting thouse reboots when I
 start to copy about more than 4-5GB from the 1T hdd to my
 laptop (on ftp). Maybe the hdd was too warm after copying
 that amount of data?
 
SNIP!

You don't specify what models you have. The specs for a random, slightly 
higher-end, 1TB SATA Seagate drive states an operating temperature range of 
0C-60C.

http://www.seagate.com/staticfiles/support/disc/manuals/desktop/Barracuda%207200.12/100529369e.pdf
- Page 4, PDF page 11

Found:
http://www.seagate.com/www/en-us/products/desktops/barracuda_hard_drives/barracuda_7200.12/#tTabContentSpecifications


 49 Celsius was the top of the tempature for this hdd, I
 think its normal.


After that Google study, I prefer to keep my drives below 40C if I can. Current 
temp (idle): 41C.
 
Regards,

James Phillips



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Do permissions take time to take effect?

2009-11-17 Thread James Phillips
Hello,

I wanted to create a shared directory writable by all users. When it initially 
failed, I assumed there may be a blanket ban on writing to directories owned by 
root. Today, I was able to write to the root-owned Share directory. However, 
when I re-created the directory owned by a special-purpose Share user, I ran 
into the  same problem again.

$ cd
$ pwd
/home/james
$ cd /home/Share
$ ls -la
total 4
drwxrwxr-x  2 root  users  512 Nov 14 09:39 .
drwxr-xr-x  5 root  wheel  512 Nov 14 09:39 ..
$ grep users /etc/group
users:*:100:james,backup
$ cat  test.txt
What? now it worked?
$ ls
test.txt
$ rm test.txt

***After creating a special Share user***

$ cd /home/Share
$ ls -la
total 4
drwxrwxr-x  2 Share  Share  512 Nov 17 21:04 .
drwxr-xr-x  5 root   wheel  512 Nov 17 21:04 ..
$ cat  test.txt
cannot create test.txt: Permission denied
$ grep Share /etc/group
Share:*:1003:james,backup
$

Incidentally, I had another reason for creating a special-purpose Share user: 
I am exporting /home to Debian (Linux) clients. Since the system groups 
conflict with the Debian choices, I modified /var/yp/Makefile to only export 
users and groups in the range of 1001-2000.

Regards,

James Phillips

PS: the first time, I made the mistake of adding whitespace in /etc/group 
(daily run checks this somehow)
Is a blank line required at the end of the file?
PPS: Tried adding blank line: no effect.



  __
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. 
Optimized for Yahoo! Get it Now for Free! at 
http://downloads.yahoo.com/ca/internetexplorer/
___
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] Filesystem image as root

2009-11-16 Thread James Phillips


--- On Sun, 11/15/09, CyberLeo Kitsana cyber...@cyberleo.net wrote:
 James Phillips wrote:
  Date: Sat, 14 Nov 2009 20:29:59 -0600
  From: CyberLeo Kitsana cyber...@cyberleo.net
  Subject: [FreeBSD Questions] Filesystem image as
 root
 
  The single IDE connector is accessible via the
 legacy ISA
  ports, and is
  thus limited to PIO modes (about 1.6MB/sec max,
 even with
  an actual hard
  drive instead of a CF card).
  
  You are off by an order of magnitude (base 2 or 10):
  Pio mode 0 is ~3.3 MB/s
  Pio mode 4 is ~16.7 MB/s
  
  http://www.pcguide.com/ref/hdd/if/ide/modesPIO-c.html
  
  You can probably set PIO mode 4 for with:
  # atacontrol mode ad0 PIO4
 
 If only that were true in this case.
 
 (85eef1f3)[r...@ss4200 ~]# atacontrol mode ad0 PIO4
 current mode = PIO2
 (85eef1f3)[r...@ss4200 ~]# atacontrol mode ad0 PIO4
 current mode = PIO2
 (85eef1f3)[r...@ss4200 ~]# dd if=/dev/ad0 of=/dev/null
 bs=4096 count=4096
 4096+0 records in
 4096+0 records out
 16777216 bytes transferred in 10.111748 secs (1659181
 bytes/sec)
 
 Nothing I've tried seems to boost the throughput, hence the
 desire to
 use a compressed cached filesystem image.
 
 Thanks for the suggestions, though!
Ouch!

I thought the laptop I was fixing last week was bad: running Vista with a 
10MB/s transfer rate :P

The drive in my Pentium 166 gets 11-12MB/s.

I actually looked up both the PIO modes:
http://en.wikipedia.org/wiki/Programmed_input/output

And the spec sheet (assuming Tom's hardware was wrong) before composing my 
original reply:
Intel® Entry Storage System SS4200-E
Technical product specification [PDF]
http://download.intel.com/support/motherboards/server/ss4200-e/sb/ss4200e_tps_11.pdf

I noted that the ATA port is not listed as a feature, which is not a good sign. 
It does appear in the block-diagram labeled:DOM
Glossary definition: Disk On Module

If I had to guess: Intel did something weird or non-standard to the port, 
so the standard BSD driver does not work properly.
Have you read the ata(4) manual page?
The following  /boot/device.hints are suggested for ISA:
hint.ata.0.at=isa
hint.ata.0.port=0x1f0
hint.ata.0.irq=14
. . . port '1' probably not needed
I had a thought: it could just as easily be pc98 if they don't intend for you 
to touch the firmware.


The firmware has source code available under a GPL license.
EMCLifeLineOEMSW-1.0-GPLComponents.tar.gz
Ver:1.0 Date:9/24/2009  Size:125585 (KB)

EMCLifeLineOEMSW-1.1-GPLComponents.tar.gz
Ver:1.1 Date:9/24/2009  Size:244406 (KB)

If you are worried about license contamination, you may have to get somebody to 
look through that and document any changes (to the ATA interface). Hopefully it 
is based on a well-know code-base like Linux and the diff utility can be used.

Of course, the term components implies they only expose a HAL of some kind.

Regards,

James Phillips

PS:# atacontrol mode ad0 will simply print out the current mode.



  __
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
___
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 Digest, Vol 284, Issue 11

2009-11-15 Thread James Phillips

 Date: Sat, 14 Nov 2009 20:29:59 -0600
 From: CyberLeo Kitsana cyber...@cyberleo.net
 Subject: [FreeBSD Questions] Filesystem image as root
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Cc: CyberLeo cyber...@cyberleo.net
 Message-ID: 4aff67a7.6040...@cyberleo.net
 Content-Type: text/plain; charset=ISO-8859-1
 
 I have been thinking and experimenting for weeks, but I
 cannot figure
 this out.
 
 I have an Intel SS4200 NAS that I wish to use as a ZFS NAS
 with FreeBSD 8.0.
 
 The device has 4 SATA bays, and I don't want to use one for
 a UFS root disk.
 
 I don't want to use up hundreds of megabytes of RAM
 preloading an
 mfsroot that can never shrink.
 
 The single IDE connector is accessible via the legacy ISA
 ports, and is
 thus limited to PIO modes (about 1.6MB/sec max, even with
 an actual hard
 drive instead of a CF card).

You are off by an order of magnitude (base 2 or 10):
Pio mode 0 is ~3.3 MB/s
Pio mode 4 is ~16.7 MB/s

http://www.pcguide.com/ref/hdd/if/ide/modesPIO-c.html

You can probably set PIO mode 4 for with:
# atacontrol mode ad0 PIO4

I am currently using ~ 159MB on my root partition,

At 16.7MB/s that is a 10 second load time; and as you said, frequently used 
files will be cached. (I have a CF card that has 15MB/s symmetric read/write. 
Don't know how special it is.)

With a CF card there should be no seek delay of ~ 10 ms (for reads anyway, 
deleting blocks probably takes 10ms).

Regards,

James Phillips

SNIPPED pivot_root attempt I can't help with.
My summary: maybe you are trying too hard :)



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread James Phillips

 Date: Thu, 12 Nov 2009 10:28:10 -0800 (PST)
 From: James Phillips anti_spam...@yahoo.ca
 Subject: APM
 To: freebsd-questions@freebsd.org
 Message-ID: 784120.47330...@web65508.mail.ac4.yahoo.com
 Content-Type: text/plain; charset=us-ascii
 
SNIP!
 
 I realize the memory can't be shutdown without Hibernation
 support, but the disks can be spun down manually (using
 atacontrol):
 http://forums.freebsd.org/showthread.php?t=1012
 
 However, when I try to do that, I find that the disk wakes
 within 2 seconds of spinning down. I noticed that the
 spindowns are logged. Could the log being written be causing
 the drive to spin up again?
SNIP!
I initially set the time-out to 60 seconds, then 300 seconds in a vain attempt 
to see the actual power savings. With a 900 second time-out, the drive only 
spun down once in the past 12 hours.

It appears that syslogd can defer *one* log entry. Understandable, since you 
don't want to loose too many logs in a power failure.
tail /var/log/messages (trimmed entries from the 300 second time-out):
Nov 13 07:46:59 dusty kernel: ad4: Idle, spin down
Nov 13 07:46:59 dusty kernel: wakeup from sleeping state (slept 00:35:44)
Nov 13 07:47:01 ad4: request while spun down, starting.

It looks like the logging of the spin down woke up the sleeping system. 
Either that, or the computer did not know the actual spin-down time. The sleep 
time was reported to be 2144 seconds: 1244 seconds longer than the the set 
spin-down time (900 seconds).

If it was spun-down when I checked this morning, the difference was less than 
3W. Though, the current drive (5400RPM) uses ~2 fewer watts than the old (7200 
RPM) drive. I'm an not sure, since I replaced RAM, and installed an optical 
drive since measuring my base-line (with the old drive). 

My computer case has noise-dampening foam for the hard-disk. I can't hear if 
the drive is spinning over the inverter in the ADSL modem (9W) and the (quiet) 
fan noise from both the router (21W) and server. I can heard a click when it 
starts up, that is about it.

Regards,

James Phillips



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: APM

2009-11-13 Thread James Phillips
I was going to just respond to myself again, but I see I generated some 
discussion :)

Anyway, In the 
http://forums.freebsd.org/showthread.php?t=1012

page at least two people mentioned the ATAidle utility. It is not recommended 
for the same reason APM isn't: devices sleep without OS consent.

Anyway, I now know the drive saves 5W spun down because this command has 
immediate effect:
# ataidle -o /dev/ad4
Followed shortly by:
Nov 13 16:51:11 dusty kernel: ad4: TIMEOUT-WRITE=DMA retrying (1 retry left) 
LBA=23261855

I settled on (But using the rc.conf format):
ataidle -I 6 -S 10 /dev/ad4
because I think the Idle timer (minutes) and Supsend timer (minutes) stack 
to 16 minutes. Setting the suspend time has an effect of immediately spinning 
down the disk though (mentioned in the man page)

No logging means I have to figure out how often the drive spins up/down using 
other means. (I don't think the wake from idle (disk seems to keep spinning) or 
suspend triggers a message.)

Chuck wrote:
:You might also want to note that 2.5 laptop drives are/should be  explicitly 
designed to spin down and park themselves much more often than generic IDE 
drives are; some generic desktop drives will fail quite rapidly (ie, in a 
matter of months) if you attempt to spin them down many times a day.:

I suspect they are rated for a set number of power-on cycles. If (say) 5 
shutdowns/day kills the drive in months, it must be rated for something like 
1000. (hmm, I should look it up.)

Ideally, I want 1-5 shutdowns a day, depending on use. I know for a fact I want 
the drives shutdown when the server is idling for hours at a time. When set 
for a 15 minute time out (with atacontrol), the drive was not getting spurious 
shut-downs.

--- On Fri, 11/13/09, David Allen the.real.david.al...@gmail.com wrote:

 
  % grep diskless /etc/rc
  dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2
 /dev/null`
  if [ ${dlv:=0} -ne 0 -o -f /etc/diskless ]; then
      sh /etc/rc.initdiskless
  # Run these after determining whether we are booting
 diskless in order
  # to minimize the number of files that are needed on a
 diskless system,
 
 The answer finally appears!
 
 A note to the OP.  The only way I've found to keep a
 disk spun down
 under FreeBSD is using memory devices for both /var and
 /tmp.
 Disabling syslogd isn't enough, nor is modifying
 /etc/crontab, root's
 crontab (or even disabling cron) to limit disk
 access.  But to use
 memory devices and have a normal system, you'll need to
 re-populate
 both /var and /tmp at startup.   Which, it
 turns out, means starting
 with /etc/diskless.

I think I thought of that (putting /var/log in RAM) on my own: it does not 
really fit what my server does though: it is a file server.

I have about 5-6GB set aside (big enough to hold a DVD image) for /var and 
/tmp, and only 256MB of memory. Backing the ramdisk with swap defeats the 
purpose.

Chuck wrote:
rsync -a /var_template /var
That is only half the battle: you need a way to flush it to disk when it 
actually spins up; else risk loosing log data (In the event of power/hardware 
failure).

I suppose a cron job backing up periodic filesytem snapshots is possible, but 
you would have to trigger on the number of interrupts seen by the disk or 
something to avoid waking it. I was thinking /proc/interrupts , but that is a 
Linux feature :P

Do the messages from spinning the disk back up (with atacontrol) have any 
hooks? I suppose if you are desperate, you can (tail+) grep /var/log/messages. 

 Someone should add a section named  Non-Diskless
 Diskless Operation
 to the Handbook.

I like to think what I am doing (with 10 year old hardware) is cutting edge 
research. That is to say, the normal mode of operation for servers is to hold 
your nose and let them run 24/7. It is more reliable that way.

The current trend for mitigating that waste of energy is consolidation. If you 
can put a dozen servers in one box, hopefully only 1 or 2 will be active at 
once.

However, I think drivers and hardware (like NICs with WOL) may have matured to 
the point that it is possible to run non-critical servers (and desktops) in 
such a way that they only turn on when needed. Suspend mode for the newer 
desktops here draw only ~3watts: comparable to the power-off (soft-off) state.


 Thanks again for all the help!
 


  __
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. 
Optimized for Yahoo! Get it Now for Free! at 
http://downloads.yahoo.com/ca/internetexplorer/
___
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


APM

2009-11-12 Thread James Phillips
Hello,

On Tuesday, I was all happy that I got APM working on my pre-2000 Compaq 
Deskpro following these instructions:
http://forums.freebsd.org/showthread.php?t=4619

On Wednesday, after configuring the router to wake the server whenever DHCP 
leases are touched (quickdirty hack), I was disappointed to learn that 
suspend mode saves only ~1watt over the inherent use of the HLT instruction 
by the kernel. 

I was expecting a savings of ~6 watts due to the disk spinning down.
Approx power consumption (+- 1W):
51 Watts (busy; disk + CPU IIRC; not retested with DVD activity)
35 Watts idle
34 Watts suspend
3 Watts off
(Measured using Kill-A-Watt model P4400)

Part of the problem may be that I am not using the on board IDE controllers: 
I am using a Promise (Ultra100TX2) PDC20268

I realize the memory can't be shutdown without Hibernation support, but the 
disks can be spun down manually (using atacontrol):
http://forums.freebsd.org/showthread.php?t=1012

However, when I try to do that, I find that the disk wakes within 2 seconds of 
spinning down. I noticed that the spindowns are logged. Could the log being 
written be causing the drive to spin up again?

apm(4) says that apm gets around that problem by logging the suspend event 
AFTER waking up. I suppose it would be tricky to concurrently log to spin down 
of several disks that way. For example: Say disk with /var/log spins down at 
00:00:05, but the rarely-used /srv drive spins down at 00:00:07. Should the 
logging drive defer recording BOTH spin-down messages, or spin-up, then 
spin-down again at about 00:15:20?

Not that important for a 1W savings, but apm says my BIOS supports the 
following capabilities:
global standby state // Supported sleep modes
global suspend state
resume timer from standby   // Resume timer allows sleep to last 
resume timer from suspend   // specific period of time?
RI resume from standby   // Wake on interrupts, i assume
RI resume from suspend

Would it be possible to coordinate the cron dameon with the suspend timer? Ie: 
wake 15 sec- 5min before next cron job? Not worth it without hibernate support 
though.
apm(4) does not mention suspend timers at all.
acpi(4) mentions timer as a sub-device and feature that can be disabled.

Regards,

James Phillips



  __
Connect with friends from any web browser - no download required. Try the new 
Yahoo! Canada Messenger for the Web BETA at 
http://ca.messenger.yahoo.com/webmessengerpromo.php
___
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 forgets root password

2009-10-23 Thread James Phillips


 Date: Fri, 23 Oct 2009 20:46:03 -0500
 From: Adam Vande More amvandem...@gmail.com
 Subject: Re: freebsd forgets root password
 To: kalin m ka...@el.net
 Cc: freebsd-questions freebsd-questions@freebsd.org
 Message-ID:
     6201873e0910231846j4386baa9g3bd3eab21fed1...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 On Fri, Oct 23, 2009 at 7:56 PM, kalin m ka...@el.net
 wrote:
 
 
 
  hi all 
 
  this is really weird.
  i've must have set up the root password on this new
 machine i got at least
  5 times and after a few reboots this thing forgets
 it.
  i have to go in single user and reset it again and
 again?!?
 
  what can be the reason?
 
 
 Couple guesses:
 
 You keep forgetting the password
 caps lock
 
On my BSD server, I have a keyboard with a failing shift key. This means if I 
touch-type the password one day, and huntpeck the next, the result is not 
the same.

With how flimsy the entry-level keyboards are these days, it may be *almost* as 
likely ;)

Regards,

James Phillips



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: I hate to bitch but bitch I must

2009-10-17 Thread James Phillips



 
 Message: 9
 Date: Sat, 17 Oct 2009 16:07:25 -0400
 From: PJ af.gour...@videotron.ca
 Subject: Re: I hate to bitch but bitch I must
 To: Polytropon free...@edvax.de
 Cc: Steve Bertrand st...@ibctech.ca,   
 freebsd-questions@freebsd.org
     freebsd-questions@freebsd.org
 Message-ID: 4ada23fd.8020...@videotron.ca
 Content-Type: text/plain; charset=UTF-8
 
 Polytropon wrote:
  On Fri, 16 Oct 2009 21:29:04 -0400, PJ af.gour...@videotron.ca
 wrote:
    
  It is simple to understand Emglish but not so
 simple what was meant by
  whoever wrote it...I cannot correct something that
 I do not uderstand...
  come on, man, that should be easy to understand.
      
 
  As English is not my native language, I *now*
 understand the
  meaning of it should; in this case, it seems to mean
 something
  like basically, it is supposed to, but in this case,
 it does
  not, regarding the desired action.
    

 To be as precise as possible, it means normally it should
 work so go
 ahead; then the question is - what do you mean by
 normally.

You made the blunder of using the word should in your definition of should 
:)

 In our case above, the instructions were to do the
 operation with the
 disk not in use and the os in SUM. That's very clear. Now,
 I f they
 wanted to point out a bug, the bug means that there is an
 anomaly under
 certain circumstances - and in this case there really is no
 bug as it is
 very clear as to how the instructions should be used. If
 they consider
 the operation under a live files system a bug, then they
 should just
 make a warning and say something along the lines of do not
 use on live
 system as that may destroy data or something to that
 effect.

As others have mentioned, context is important. Somebody even suggested a 
re-wording dropping the word should.

If there was a risk of data-loss, (somebody noted the program refuses to touch 
a live filesystem,) the bugs section would have read something more like:
(Program) SHOULD NOT try writing to a live file-system.

That is to say, the word should in a Bugs section implies a wish-list item. 
Meaning: it is technically possible, but the maintainers have not done the 
necessary (possibly tedious) work yet.


Regards,

James Phillips


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: usb key problem

2009-10-16 Thread James Phillips

 
 Message: 11
 Date: Fri, 16 Oct 2009 01:32:46 +0200
 From: Polytropon free...@edvax.de
 Subject: Re: usb key problem
 To: PJ af.gour...@videotron.ca
 Cc: freebsd-questions@freebsd.org
 Message-ID: 20091016013246.c0e022e5.free...@edvax.de
 Content-Type: text/plain; charset=US-ASCII
 
 On Thu, 15 Oct 2009 19:18:45 -0400, PJ af.gour...@videotron.ca
 wrote:
  Now that I  have had a few moments to think about
 it, maybe I have to
  give good old cruze and enema and format it under XP
 ... maybe all it
  needs is a clean system on it. ;-)
 
 I'm not sure if USB sticks tend to degrade
 filesystem-wise,
 but when you put such a stick into random Windows PCs,
 it's
 quite possible that data gets messed up. The most ideal
 solution of course is to simply newfs the stick and give
 it
 a UFS file system, but sadly, Windows PC are resistent
 to
 standards, so they won't read it, but will force you to
 use
 old-fashioned MS-DOS-like file systems. :-)
 
To be fair, Windows XP supports the NTFS filesystem that is very feature-rich. 
Although, I recall making a XP machine unbootable trying to format removable 
media with NTFS because only the installer woulds use that filesystem. The 
format utility let me choose between Fat16 and FAt32 or something :P

A better tool, under both Windows (via Cygwin) and BSD, would be ntfsprogs.

http://www.linux-ntfs.org/doku.php?id=ntfsmount

Regards,

James Phillips

 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 
 



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: windoz, how do i install it last

2009-10-06 Thread James Phillips



 Message: 30
 Date: Tue, 6 Oct 2009 07:05:23 -0400
 From: Henry Olyer henry.ol...@gmail.com
 Subject: windoz, how do i install it last
 To: freebsd-questions@freebsd.org
 Message-ID:
     1d7089c40910060405k3ac6f53bx252ade8183f1f...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 So I have a FreeBSD system.
 Is their a way to install windoz?  Say, XP-pro? 
 Or whatever...
 

From the subject I gather you want to shrink the BSD slice, or have room, then 
install Windows.

The fact you are asking the question suggests you don't have your work backed 
up, and won't listen when told to backup your work (takes one to know one). The 
other possibility is that you want to install BSD now, but Windows later.

SNIPPED BACK-UP BOOT SECTOR SUGGESTION (decided it was more trouble than it 
was worth) 

I any case, you need a way to boot FreeBSD without the bootsector, such as the 
installation CD.

As I am not familiar with the gory details, I will refer you to Chapter 2 of 
the Handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html

If you can't get the Windows Boot manager to boot FreeBSD, you will want to use 
the FreeBSD boot manager, mentioned in section: 2.6.3 Install a Boot Manager.

Regards,

James Phillips



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Voting for a native i386/amd64 flash player

2009-10-04 Thread James Phillips



 
 Message: 29
 Date: Sat, 3 Oct 2009 23:45:18 -0600
 From: Chad Perrin per...@apotheon.com
 Subject: Re: Voting for a native i386/amd64 flash player
 To: freebsd-questions@freebsd.org
 Message-ID: 20091004054518.gd37...@guilt.hydra
 Content-Type: text/plain; charset=us-ascii
 
 On Sat, Oct 03, 2009 at 08:01:07AM -0700, James Phillips
 wrote:
  
  I have this fantasy that if I design and build a
 better streaming video
  format, They (broadcasters) will use it, if properly
 marketed.
 
 It may be a fantasy, but as fantasies go, it's not a bad
 one.
 
 
  
  This would be despite the lack of strong DRM or
 license terms (GPL v3
  is OK, right?).
 
 No, it isn't okay, really.

That's ok: I've thought of an out for the licensing issue:
I can write up an RFC. That way the BSD people can boast about their reference 
implementation, while the GNU zealots can be assured that their pure 
implementation won't be leveraged against them.

 
   4. Publishers are authenticated with a
 Public-key infrastructure
 
 That caught my attention.  I don't think we
 necessarily need a mainstream
 style implementation of PKI, though.  I'd say either
 go with simple
 public key digital signatures in the style of OpenPGP or
 take cues from
 the Perspectives plugin for Firefox and do distributed web
 of trust
 style verification.  Certifying Authorities are
 basically just a social
 engineering trick; now, instead of trusting one party, you
 have to trust
 two.

I think I fell into the trap of using buzzwords. I *know* Certifying 
Authorities are an interm scam needed until the general population understands 
how public keys work.

I think PGP style (but binary) signatures on every ~32kB packet solves the 
problem of authentication in the event of of missing packets.

I was envisioning that the CNN's and BBC's of the world would have a series of 
public keys (one for each bureau), while Joe down the street would have 1 or 2 
(one public, one for darknets). 



  
  2. For interoperability, I need to stabilize key
 points of the spec
  before publication. Currently struggling with date
 stamps (taking into
  account leap seconds) (mostly resolved), and a
 transform to allow the
  publisher to be authenticated even if some data is
 missing.
 
 There are copyfree licensed implementations of date
 management that take
 leap seconds into account out there already.  Is there
 some reason you
 can't borrow liberally from them?

Probably because I don't know about them :)

Actually, I was planning to borrow from Unix Time, increasing the resolution, 
and making the number signed (for old recordings).

But, Unix time doesn't do leap seconds, so they have to be added back in.

Just recently, (reading cal(1)) I realized another problem: not everyone uses 
the Gregorian Calendar. Now I have to decide how to take that into account 
sufficiently.

  4. A dual-license may quickly result in a fork that
 implements
  features I really don't want to see. (Read: anything
 deliberately
  incompatible.)
 
 That's just another reason to go with a copyfree license
 instead of the
 GPL.
 

A copyfree license wouldn't have a stick preventing the implementation of an 
effective technological measure as described in Article 11 the 1996 WIPO 
treaty (GPL v3 does).

If the (hypothetical) RFC explicitly says that copy-protection won't work (in 
the security considerations section), MAYBE a judge will decide any 
incompatible implementation is also ineffective at copy protection. 


Regards,

James Phillips





  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Voting for a native i386/amd64 flash player

2009-10-04 Thread James Phillips


--- On Sun, 10/4/09, jhell jh...@dataix.net wrote:

 From: jhell jh...@dataix.net
 Subject: Re: Voting for a native i386/amd64 flash player
 To: James Phillips anti_spam...@yahoo.ca
 Cc: freebsd-questions@freebsd.org
 Received: Sunday, October 4, 2009, 1:07 PM
 
 
 
 On Sun, 4 Oct 2009 08:33 -0700, anti_spam256@ wrote:
Vague specific stuff about an ill-defined video standard 

 
 So how many different subjects are in here that don't
 thread ?
 
 With all due respect: wheres Waldo ?
 

Most on-topic is probably the licensing issue: I like the GPLv3, but many BSD 
users don't like it for the same reasons.

I don't want to publish comprehensive details about my (video format) idea 
until I have the format defined in a forward-compatible way. AS I am fantasy 
land, I think that people will try implementing incompatible versions as soon 
as it's published. The risk is that may happen anyway if my format is not good 
enough. 

I haven't even done testing to find out how well compression is performed. 
Second-Worst case (mono white noise), I estimate that loss-less compression 
will only be able to compress frame changes to ~25% of the original frame size. 
Lossy compression will be a simple averaging of nearby pixels for (multiples 
of) ~4:1 compression. Mpeg is supposed to get up to 300:1.

TL;DR: If you have to ask what the point is, it is probably off-topic and I can 
shut-up now.

Regards,

James Phillips 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Voting for a native i386/amd64 flash player

2009-10-03 Thread James Phillips



 --
 
 Message: 9
 Date: Sat, 3 Oct 2009 06:28:29 +0100
 From: Lucian @ lastdot.org luc...@lastdot.org
 Subject: Re: Voting for a native i386/amd64 flash player
 To: freebsd-questions@freebsd.org
 Message-ID:
     5a3c8f45091008k3c196b6ay1acc3031716d6...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
SNIP!
 
 Better pray for Theora's mass adoption on streaming sites
 :-)
 

I have this fantasy that if I design and build a better streaming video format, 
They (broadcasters) will use it, if properly marketed.

This would be despite the lack of strong DRM or license terms (GPL v3 is OK, 
right?). The idea is I build a public version, then sell a custom corporate 
version that is buzz-word certified with whatever standards they want (except 
strong DRM; incompatible with the license) for ~$30,000 a seat, or some 
volume [del]license[del] purchasing agreement. 
 

I got the idea when I realized that the current formats used by broadcasters 
suck. Most are based on MPEG that had some processing constraints no longer 
present (to the same extent) on modern computers. 
General idea:
1. Do away with the outdated concept of live. There is always a delay. Make 
the delay predictable and visible to the user by sychronizing clocks with NTP. 
A live broadcast would have a calibrated delay ranging from seconds to 
minutes. pre-recorded would be minutes to centuries.
2. Modify Bittorrent  protocol for Steaming media. There is already 
(incompatible) work in this area.
3a. Separate Lossy Compression from Lossless Compression. This will result 
in a variable bit-rate stream. I came up with a (fast) transform so that the 
lossless compression stores only the changes between (key) frames.
3b. Optional Variable frame-rate stream: new frame only needed after a 
certain percentage of the scene changes.
4. Publishers are authenticated with a Public-key infrastructure
5. For UDP or Broadcast, a format variant tolerates data loss with graceful 
degradation.

Main stumbling blocks:
1. trying to do too much at once: file format and protocol rolled into one.
2. For interoperability, I need to stabilize key points of the spec before 
publication. Currently struggling with date stamps (taking into account leap 
seconds) (mostly resolved), and a transform to allow the publisher to be 
authenticated even if some data is missing.
3. Because my idea is variable data-rate, I can't predict what real-world 
compression will be. need to do testing. As compression may be affected my MPEG 
artifacts, need to test with my own raw video. (Loss-less conversion from 
MPEG would be possible.)
4. A dual-license may quickly result in a fork that implements features I 
really don't want to see. (Read: anything deliberately incompatible.)
5. I seem to be pre-occupied with the video compression, ignoring sound.

Regards,

James Phillips

PS: was this too off-topic?


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd-questions Digest, Vol 276, Issue 5

2009-09-15 Thread James Phillips

 
 Message: 15
 Date: Tue, 15 Sep 2009 14:13:17 -0400
 From: Jerry ges...@yahoo.com
 Subject: Re: reporter on deadline seeks comment about
 reported
     security bug in FreeBSD
 To: freebsd-questions@freebsd.org
 Message-ID: 20090915141317.7a41b...@scorpio.seibercom.net
 Content-Type: text/plain; charset=US-ASCII
 
 On Tue, 15 Sep 2009 13:18:29 -0400
 Bill Moran wmo...@potentialtech.com
 wrote:
 
SNIP!
 
 The fact is, that you do in fact notify me. Keeping
 important security
 information secret benefits no one, except for possibly
 those
 responsible for the problem to begin with who do not want
 the
 knowledge of the problem to become public. A multitude of
 software,
 such as Mozilla, publish known security holes in their
 software.
 The ramifications of allowing a user to actively use a
 piece of
 software when a known bug/exploit/etc. exists within it is
 grossly
 negligent.
   

The important question is: known by whom?
Every reviewer brings their own bias and experience. The code has not been 
proven correct, so there is not reason to assume that a Black-hat will find 
the same bug/exploit. If there are more than about 3 unknown exploits, they are 
more likely to find a different one.

IMO, Mozilla is a bad example. I've been bitten by (non-security) bugs going 
back to 1.5 or earlier. Disclosure: I still prefer Lynx.


SNIP!

 


  __
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
___
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: netbooks and sdhci

2009-09-01 Thread James Phillips



 
 Message: 26
 Date: Tue, 01 Sep 2009 12:17:10 -0700
 From: David Horwitt dbo...@aogsquid.ucsd.edu
 Subject: netbooks and sdhci
 To: freebsd-questions@freebsd.org,
 freebsd-mob...@freebsd.org
 Message-ID: 4a9d7336.3050...@aogsquid.ucsd.edu
 Content-Type: text/plain; charset=ISO-8859-1;
 format=flowed
 
 I recently purchased an Asus Aspire One D250-1151, and
 am,overall, 
 pleased with it (running 7,2-RELEASE).
 The alc ethernet is not supported in 7.2 (the ath0 wireless
 is), and I 
 don't care about the video camera.
 
 The '5-in-1' media reader is, unfortunately for me, a USB
 device. (After 
 some detective work, I determined that
 it uses a Reaktek RTS5101 or RTS5111). For my purposes (low
 level SDHC 
 card access), I prefer hardware that is
 supported by the sdhci/mmc subsystem.

My initial assumption was that you are familiar with the specific type of 
device you are asking about. Then, I remembered I was tempted by the SD 
form-factor as well.

I think you are asking for trouble because SD cards support Content Protection 
for Recordable Media (CPRM). One of the features is 'key revocation' 
technology built into each card.

http://www.sdcard.org/developers/tech/

I also read that speed is hampered by the interface design because they wanted 
something they could patent, rather than just re-implementing SPI (Serial 
Peripheral Interface).

The SD card Association has a what would have been a promising floppy 
replacement without those two deliberate design flaws.

If you are aware of that and sill want a SDHC reader, I don't have any reason 
to stop you :)

Regards,

James Phillips

 So my question is: does anybody know _for sure_ of a
 hard-disk netbook 
 with a media reader that uses the sdhci interface
 and is supported by FBSD 7.2 (supported = wireless,X,USB).

SNIP!




  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: questions about FreeBSD

2009-08-31 Thread James Phillips



 
 Message: 20
 Date: Mon, 31 Aug 2009 21:12:39 +1200
 From: Julian R A Manning julian.r.a.mann...@gmail.com
 Subject: questions about FreeBSD
 To: freebsd-questions@FreeBSD.org
 Message-ID:
    
 !!aaayaoslqhhrs5xjqsorentxda7cgaaaektsyylaghfbhcoibfzk6jgba...@gmail.com
     
 Content-Type: text/plain;   
 charset=us-ascii
 
 Dear Sir/Madam
 
 I have some questions about FreeBSD. The questions I had in
 mind are: 

Such general questions imply homework assignment.

Somebody already replied with a link to the Handbook: It mainly covers 
installing and configuring FreeBSD.

 
 .         What type of OS is
 it? Is it single/multi user, multitasking, what
 family does it belong to? 

Yes, it supports all three. Single-user mode is usually reserved for emergency 
system maintenance.
 
 .         General features
 (at least three)? Firewall, GUI, Networking and
 so on. 

Yes, But the GUI is part of the Ports collection (X Window system (xorg))

http://www.freebsd.org/features.html

 .         Minimum Hardware
 Requirements? Processors, RAM, Hard drive space,
 type of monitors and so on. 

Almost anything made in the past 10 years will do.

 
 .         File system
 supported? 
 
 .         Applications (at
 least three)? eg. wordprocessing and so on. 

See the ports collection (Chapter 4 of Handbook).


 It would be very helpful if you could just pass on this
 email to someone who
 has experience with FreeBSD. 
 
 Yours sincerely, Julian Manning
 

Regards,

James Phillips



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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

2009-08-17 Thread James Phillips
; charset=US-ASCII
 
SNIP!
 
 Disclaimer 
 This e-mail transmission contains confidential
 information,
 which is the property of the sender.
 The information in this e-mail or attachments thereto is 
 intended for the attention and use only of the addressee. 
 Should you have received this e-mail in error, please
 delete 
 and destroy it and any attachments thereto immediately. 
 Under no circumstances will the Cape Peninsula University
 of 
 Technology or the sender of this e-mail be liable to any
 party for
 any direct, indirect, special or other consequential
 damages for any
 use of this e-mail.
 For the detailed e-mail disclaimer please refer to 
 http://www.cput.ac.za/email.php 
 

Do you realize that mail sent to this list is available to the general public 
at the following location?
http://lists.freebsd.org/pipermail/freebsd-questions/

To answer your question:
http://www.freebsd.org/features.html

Regards,

James Phillips


  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD for the common man(or woman) (was: upgrade 7.2

2009-08-08 Thread James Phillips



--- On Sat, 8/8/09, freebsd-questions-requ...@freebsd.org 
freebsd-questions-requ...@freebsd.org wrote:


 
 Message: 11
 Date: Sat, 8 Aug 2009 10:46:00 -0600
 From: Chad Perrin per...@apotheon.com
 Subject: Re: FreeBSD for the common man(or woman) (was:
  upgrade 7.2

 
 On Thu, Aug 06, 2009 at 02:56:41PM -0700, James Phillips
 wrote:
  

  
  Following the FreeBSD Handbook, I got stuck on trying
 to get the
  printer to work. The handbook was basicly instructing
 me to write my
  own print driver! I checked the HP website: they will
 release the
  details of the PCL language (version 4 or so) for a
 price. I finally
  got it working by installing the Apsfiler package in
 the ports
  collection (no, did not send the post-card yet; the
 print server is not
  functional yet.)
  
SNIP!
 
 I'm really not sure how to answer this question, I'm
 afraid.  I don't
 think it's a stupid question, and I think I can understand
 what you mean
 about your problems with getting use out of the
 documentation, but I
 haven't had the same problems so I don't know of any quick
 fixes to offer
 in how to get around these problems.  For instance,
 when I installed CUPS
 on a couple of computers here for the first time since I
 started
 installing FreeBSD them, it all seemed very straightforward
 and I didn't
 see anything that could even through hyperbole be described
 as involving
 writing my own printer driver.  I basically just set
 up configuration for
 CUPS, and it worked -- much more easily than it ever did
 with Debian (my
 OS of choice before I migrated stuff to FreeBSD).
 

Okay, after reading this, I used the WayBack Machine to review the printing 
section of the April 17, 2006 version of the Handbook.

I was not able to find anything that is writing a print-driver per-se.
In the Advanced section numerous shell scripts are described (some of which 
use printer commands directly), but they tend to use filters from the ports 
collection:
http://web.archive.org/web/20060417220024/www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html

There is a section in the Simple section that explicitly says PS != PCL.
Part of the problem may be I did not have documentation for my printer, so did 
not know how to put it in postscript mode.

I really did feel I needed the PCL 4 documentation at one point. I'm going to 
have to conclude I was mistaken.

Regards,

James Phillips



  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD for the common man(or woman) (was: upgrade 7.2

2009-08-07 Thread James Phillips

Thank-you for your replies. I guess
my main concern was I'm not sure when to stop banging my
head against the wall and ask for help. The checklist kind
of goes like:

Did you read the FAQ and release notes?
Did you read the handbook?
Did read the man pages?
Did you search the mailing-list archives?

This list is probably best suited to very specific
questions.

Some the stuff I mentioned has little to do with BSD.

--- On Thu, 8/6/09, Polytropon free...@edvax.de
wrote:

 From: Polytropon free...@edvax.de
 Subject: Re: FreeBSD for the common man(or woman)
(was:  upgrade 7.2
 To: James Phillips anti_spam...@yahoo.ca
 Cc: freebsd-questions@freebsd.org
 Received: Thursday, August 6, 2009, 7:45 PM
 On Thu, 6 Aug 2009 14:56:41 -0700
 (PDT), James Phillips anti_spam...@yahoo.ca
 wrote:
SNIP!
 
 
 
 
  I checked the HP website: they will release the
 details of the PCL
  language (version 4 or so) for a price.
 
 The PCL language is usually output by gs (the Ghostscript
 printer
 driver collection that translates PS into PCL and other
 printer
 languages).
 
Yes, I figured this out when I abandoned the Handbook and
looked at the ports collection. I've used GhostScript under
windows as well.
 
 
  I finally got it working by installing the Apsfiler
 package in the
  ports collection (no, did not send the post-card yet;
 the print
  server is not functional yet.)
 
 Personally, I prefer apsfilter to CUPS, but maybe you would
 have liked
 CUPS better. It offers a browser based interface and offers
 lots of
 autodetection functionality. (But you can't install a
 parallel printer
 that isn't connected to the system easily, for example.)
 
I'm wondering how well apsfiler and CUPS cooperate. Samba
uses CUPS by default.

 Setting up a printer with the apsfilter SETUP script is
 very easy as
 long as you know which name the printer has - you mentioned
 HP. And
 if it's a HP Laserjet, you're lucky. You're even more lucky
 if your
 printer does support the PS standard, because then you can
 avoid using
 any printer filter (such as apsfilter) because PS is the
 default output
 format for printing, and it can be fed directly into the
 printer.
 

The printer is a $10 POS I got used. PS output seems to
confuse it. I'm tempted just to get a newer one.

(Laserjet 5L - except it gets confused by PCL 5 as well)
 
 
SNIP!


  made few tweaks of the system to better follow the
 Filesystem
  Hierarchy Standard (such as symlinking /usr/local/etc
 to /etc/opt).
 
 Erm, excuse me? First of all, it's not encouraged to mix OS
 things
 with application things. You know that FreeBSD keeps the
 difference
 between the OS and everything else (which is
located in
 the
 /usr/local subtree). If you're coming from a Linux
 background, I
 could understand that you're not familiar with this
 concept.
 The /usr/local subtree can be completely removed and
still
 leaves
 you with a completely intact and functional OS.
Everything
 that
 you install by ports or packages goes into /usr/local,
and
 of course,
 the configuration files belong there, too.
/usr/local/etc
 has the
 same structure as /etc, but it's reserved for
additional
 software.
 Vice versa, configuration files of locally installed ports
 do not
 belong into /etc.
 
 Refer to 
 
     % man hier
 
 to learn where things are kept on FreeBSD.
 
Using a symlink (/usr/local/etc - /etc/opt) , the
system IS still functional if /local is not mounted.

putting the settings in /etc makes it possible to mount
/usr read-only (in theory).
http://www.pathname.com/fhs/2.2/
According to Wikipedia, it is Linux-specific.

In any case, the changes are minor.
 
SNIP!
 
  That machine is slowly degrading while I try to get
 the fileserver
  working the way I want.
 
 That indicates a major problem. Either your hardware is
 faulty, or you
 are treating the software in the wrong way.

Machine in that sentence refers to win98 client. The HD
activity light stays on for no apparent reason (no
thrashing). I suspect malware, even if the Anti-virus can't
find it :(
 
 
 
  The last time I did a complete re-install (of win98) I
 lost data
  due to a damaged disk that I copied the data to (and
 learned that
  bzip2recover is a quick hack that needs to be
 re-written properly
  according to the source code).
 
 It's completely normal that you lose data on Windows
 platforms.
 That's why you have a UNIX server for backups.

I lost data under Linux that I used for doing the back-up.
I blame the cryptic HD error messages under Linux. Took
years to figure out what happened. I think FreeBSD
hard-drive failure messages were less cryptic.
 
 
 
  I hope to replace windows with wine for the most part,
 but wine
  simply installs the applications in the users' home
 directory
  (breaking the FHS).
 
 No. You run wine as a user application, so you have
 user
 rights only.
 Then, wine of course provides a user-based installation of
 your
 desired Windows program.

An analogy would be to think of Wine like a generic
interpreter like

Re: FreeBSD for the common man(or woman) (was: upgrade 7.2

2009-08-07 Thread James Phillips



--- On Fri, 8/7/09, freebsd-questions-requ...@freebsd.org 
freebsd-questions-requ...@freebsd.org wrote:

 Message: 6
 Date: Fri, 7 Aug 2009 02:04:16 +0200
 From: Polytropon free...@edvax.de

 On Fri, 07 Aug 2009 02:09:51 +0300, Manolis Kiagias son...@otenet.gr
 wrote:
  Windows experience won't help much - mainly due to the
 fact Windows
  forces the users (and admins) to a completely
 different way of thinking
  than FreeBSD. 
 
 That's true. It's even hard to communicate with 'Windows'
 admins
 because of a completey different and misleading terminology
 - and
 sadly often the lack of understanding what they're talking
 about.

I don't believe half the windows dialog boxes. Why would checking for 
available disk space (win 98 installation) take more than 2 seconds?
 
 
 
  The various wizards abstract way too many parts of
 the
  system, to the point where you can configure services
 you don't really
  understand (i.e. a DNS server is a few clicks away and
 there are many
  'recommended' defaults along the way). 
 
 Insecure mode: This is the mode you want. Select it NOW!
 :-)
 

I completely understand the reasoning behind disabled by defaul.

It means it doesn't work until you (hopefully) learn what you are doing.

That said, following the handbook, I managed to enable ssh twice: one as a 
stand-alone process, and once as part of inetd.
 
 
 
 Yes. As I said (elsewhere), FreeBSD is a multi-purpose OS.
 It does
 not know what you are intending to use it for, and it
 doesn't make
 any assumptions. So you have to communicate your
 requirements to the
 system. This requires a certain knowledge, of course.
 
Yes, I learned this with Linux. For Debian the install program works a little 
like a wizard, but to maintain the system, you need to learn what you are 
doing. Reboots don't magically fix or break things.
SNIP!
 
 Once taken the time to set things up, they make you happy
 running for
 a lifetime. :-)
 

I love and hate that about *nix :D

-James




  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD for the common man(or woman) (was: upgrade 7.2

2009-08-06 Thread James Phillips
 to install the FreeBSD testing release (7.x). I had 
been felling guilt about leaving a barely-used computer running 24/7. 
Especially since I wasn't going to trust it with my work aging until I do a 
successful backup/restore.

I finally installed FreeBSD 7.2 (release) on May 9, 2009. However, I now note 
some feature creep:
In addition to file/print and backup server, I want to:
1. Have it sleep when not in use (part of the delay was figuring out how to get 
the router to send the magic packet. I read RFC's to determine the proper way, 
and found a hack that will work on my floppy-based router for my network 
set-up (send it every DHCP lease). 
Proper way:
http://www.freesco.org/support-forum/viewtopic.php?f=15t=17194
(proposal only; rejected due to space constraints)
2. I think I want to move the Voice/Fax/Modem to the machine. Recently I 
realised a lack of WakeOnRing may impair phone answering if machine is sleeping.
3. I still hope to do other things once the machine is working reliably.


So, this long story boils down to the following question:

What is that best way to use the handbook and related documentation (like 
man-pages)?

I am willing to do some reading, but get distracted by irrelevant or sometimes 
too low-level stuff. I want to avoid programing as much as possible until I 
actually have a work-station I am comfortable playing around with. Thinking 
about it in the week before posting this, I think that part of my problem is I 
want to use the documentation to do the right thing rather than experiment. 
Once I move the family's files onto the server, it becomes essential. I won't 
be able to have it out of commission for weeks at a time. I hope with the 
server properly set up, win98 may even be usable again: just do a clean install 
every morning! I even downloaded the Windows 7 RC so that I can be informed 
when I say it sucks.


Regards,

James Phillips

PS: I find it a little annoying that FreeBSD releases faster than I can 
configure my computer! ;)




  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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 for the common man(or woman) (was: upgrade 7.2

2009-08-06 Thread James Phillips



--- On Thu, 8/6/09, Neal Hogan nealho...@gmail.com wrote:


  So, this long story boils down to the following
 question:
 
  What is that best way to use the handbook and related
 documentation (like man-pages)?
 
 
 What?!
 
 Ummm . . . read them. I'm not trying to be too big of a
 dick, but your
 question strikes me as odd. Read them when you come across
 something
 that is troubling you. I suppose there is no need to read
 about, say,
 wifi card drivers that you don't use.
 
  I am willing to do some reading, but get distracted by
 irrelevant or sometimes too low-level stuff. I want to avoid
 programing as much as possible until I actually have a
 work-station I am comfortable playing around with.
 
 How do you expect to get comfortable w/out playing
 around, other
 than, I guess (a'la above) reading the documentation?
 

Put another way: I want a reliable, backed-up file-server before playing around 
on my workstation that would be a separate computer.

I want to build myself a sand-box so I don't have to worry about breaking 
stuff that is unrelated.

Another way of asking the question:

How much of a learning curve is configuring FreeBSD (for Samba, NFS, DVD 
burning (backups) expected to be? Am I reading too much because of a learning 
disability, or do I really need to read and understand that much detail? 

I have some experience with Dos/Windows, and Linux (mainly Debian based).


Regards,

James Phillips


  __
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers and share what you know at http://ca.answers.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Sony PRS-505 Reader and camcontrol load problem

2009-08-03 Thread James Phillips

I like to blame things like that on DRM. Proving it is the tricky part.
http://en.wikipedia.org/wiki/MagicGate

The Wikipedia article says the Sony Portable e-Reader PRS-500 did not support 
MagicGate, but future support is possible through a firmware update.

Regards,

James

 Date: Sun, 2 Aug 2009 16:52:31 +0400
 From: Andrei Crivoi andrei.cri...@gmail.com
 Subject: Sony PRS-505 Reader and camcontrol load problem
 To: freebsd-questions@freebsd.org
 Message-ID:
     332c55d60908020552h4b89e7d5y97e4c8b29f313...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1
 
 Hi gaise,
 i'm trying to mount a memory stick card on my Sony Portable
 Reader PRS-505
 device and constantly getting the Error received from
 start unit command
 message when issuing camcontrol load command.
 Here is the full log:
 
 [r...@morbo /usr/home/andrei]# camcontrol rescan all
 Re-scan of bus 0 was successful
 Re-scan of bus 1 was successful
 
 [r...@morbo /usr/home/andrei]# camcontrol devlist
 Sony PRS-505/UC 1000       
      at scbus1 target 0 lun 0
 (pass0,da0)
 Sony PRS-505/UC:MS 1000       
   at scbus1 target 0 lun 1 (pass1,da1)
 Sony PRS-505/UC:SD 1000       
   at scbus1 target 0 lun 2 (pass2,da2)
 
 [r...@morbo /usr/home/andrei]# camcontrol load 1:0:1
 Error received from start unit command
 
 The most interesting fact - 'camcontrol format' somehow
 saves the situation:
 
 


  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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: Looking for fast graphical web browser

2009-08-01 Thread James Phillips

(Firefox) is a redesign of the Mozilla browser component, similar to Galeon, 
K-Meleon and Camino, but written using the XUL user interface language and 
designed to be lightweight and cross-platform. 
- http://packages.debian.org/stable/web/iceweasel

The Original Poster ruled out dillo because it did not have enough features. I 
fear any featureful, lightweight web-browser is destined to be bloated like 
Firefox, or as some people suggest, Opera.

The introduction of the Document Object Model (and CSS) with HTML 4.0 means 
fast Lynx-style single-pass rendering is out. JavaScript means that websites 
can use an arbitrary amount of CPU time (sometimes deliberately), unless 
throttled.

Regards,

James Phillips

--- On Fri, 7/31/09, freebsd-questions-requ...@freebsd.org 
freebsd-questions-requ...@freebsd.org wrote:


 Date: Fri, 31 Jul 2009 12:30:02 +0200
 From: Wolfgang Riegler w.rieg...@cbtl.de
 Subject: Re: Looking for fast graphical web browser
 To: freebsd-questions@freebsd.org
 Message-ID: 200907311230.02216.w.rieg...@cbtl.de
 Content-Type: text/plain;  charset=iso-8859-1
 
 Give Midori a try. Of course it's a young project and maybe
 there are not all 
 of the features of Firefox or Opera, but Midori is
 lightweight and really 
 fast. It's based on WebKit, so there should be no problem
 with standard 
 conform websites.
 
 Wolfgang
 
 



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org