Re: Help Finding ZFS snapshots

2011-09-05 Thread Rolf Nielsen

2011-09-05 17:23, Gene skrev:

On Mon, 05 Sep 2011 10:48:22 -0400, Daniel Staal wrote

--As of September 5, 2011 8:13:52 AM -0500, Gene is alleged to have said:


Using FreeBSD 8.1, amd64 - I wanted to recover files from a snapshot of
usr/home. Everything I've found via googling refers to a link such as
path/zfs/.snapshot


--As for the rest, it is mine.

Try path/.zfs.  ;)

(Which, on my system, then has a 'snapshot' directory, which holds
all the snapshots.)

Daniel T. Staal



No such luck. The following:

cd /
ls -R | grep -i zfs

finds only 'zfs' directories in the source tree and ports.

Other ideas? I know the snapshots exist, I can see 'em with
zfs list -t snapshot.


The .zfs directory is normally hidden, so it won't even show up on
ls -a
output.

You have to either explicitly cd to it or make it visible by

zfs set snapdir=visible filesystem
___
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: find and remove ?

2011-05-15 Thread Rolf Nielsen

2011-05-15 19:41, Jack L. Stone skrev:

At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote:

The comamnd:
#find /path/to/start/deleting -type d -name _vti_\*
worked fine to give the listing of what to delete, but when just adding the
-delete at the end didn't delete, just ran the listing again.


I forgot that adding the -type d won't let it delete non-empty
directories. Try running it like:
find /path/to/start/deleting -name _vti_\* -delete



(^_^)





Nope. Thate didn't delete either.

Jack

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

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




find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \;
___
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: find and remove ?

2011-05-15 Thread Rolf Nielsen

2011-05-15 19:50, Rolf Nielsen skrev:

2011-05-15 19:41, Jack L. Stone skrev:

At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote:

The comamnd:
#find /path/to/start/deleting -type d -name _vti_\*
worked fine to give the listing of what to delete, but when just
adding the
-delete at the end didn't delete, just ran the listing again.


I forgot that adding the -type d won't let it delete non-empty
directories. Try running it like:
find /path/to/start/deleting -name _vti_\* -delete



(^_^)





Nope. Thate didn't delete either.

Jack

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

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




find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \;


Pardon my answering my own post, but after reading the find manpage, I 
think perhaps


find -d /path/to/start/deleting -type d -name _vti_\* -exec rm -Rd {} \;

would be better. The -d option makes find visit the contents of a 
directory before the directory itself. The one without the -d option
deletes the topmost directory it finds and then tries to traverse 
downwards, which of course causes a warning. It still works though.

___
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: Comparing two lists [SOLVED (at least it looks like that)]

2011-05-07 Thread Rolf Nielsen

2011-05-07 05:11, Yuri Pankov skrev:

On Sat, May 07, 2011 at 04:23:40AM +0200, Rolf Nielsen wrote:

2011-05-07 02:09, Rolf Nielsen skrev:

Hello all,

I have two text files, quite extensive ones. They have some lines in
common and some lines are unique to one of the files. The lines that do
exist in both files are not necessarily in the same location. Now I need
to compare the files and output a list of lines that exist in both
files. Is there a simple way to do this? diff? awk? sed? cmp? Or a
combination of two or more of them?

TIA,

Rolf


sort file1 file2 | uniq -d


I very seriously doubt that this line does what you want...

$ printf a\na\na\nb\n  file1; printf c\nc\nb\n  file2; sort file1 file2 | 
uniq -d
a
b
c


Ok. I do understand the problem. Though the files I have do not have any 
duplicate lines, so that possibility didn't even cross my mind.





Try this instead (probably bloated):

sort  file1 | uniq | tr -s '\n' '\0' | xargs -0 -I % grep -Fx % file2 | sort | 
uniq

There is comm(1), of course, but it expects files to be already sorted.


The files are sorted, so comm would work. Several people have already 
suggested comm, though I haven't tried it, as combining sort and uniq 
does what I want with my specific files.





HTH,
Yuri



___
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: Comparing two lists [SOLVED (at least it looks like that)]

2011-05-07 Thread Rolf Nielsen

2011-05-07 05:16, b. f. skrev:

2011-05-07 02:09, Rolf Nielsen skrev:

Hello all,

I have two text files, quite extensive ones. They have some lines in
common and some lines are unique to one of the files. The lines that do
exist in both files are not necessarily in the same location. Now I need
to compare the files and output a list of lines that exist in both
files. Is there a simple way to do this? diff? awk? sed? cmp? Or a
combination of two or more of them?

...

sort file1 file2 | uniq -d


If the lines aren't repeated in only one file...


They aren't (see my reply to Yuri Pankov). :)



For future reference, comm(1) exists to handle problems like this,
although (of course) TIMTOWTDI.

b.



___
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: Comparing two lists

2011-05-07 Thread Rolf Nielsen

2011-05-07 07:28, Robert Bonomi skrev:

 From listrea...@lazlarlyricon.com  Fri May  6 20:14:09 2011
Date: Sat, 07 May 2011 03:13:39 +0200
From: Rolf Nielsenlistrea...@lazlarlyricon.com
To: Robert Bonomibon...@mail.r-bonomi.com
CC: freebsd-questions@freebsd.org
Subject: Re: Comparing two lists

2011-05-07 02:54, Robert Bonomi skrev:

   From owner-freebsd-questi...@freebsd.org  Fri May  6 19:27:54 2011
Date: Sat, 07 May 2011 02:09:26 +0200
From: Rolf Nielsenlistrea...@lazlarlyricon.com
To: FreeBSDfreebsd-questions@freebsd.org
Subject: Comparing two lists

Hello all,

I have two text files, quite extensive ones. They have some lines in
common and some lines are unique to one of the files. The lines that do
exist in both files are not necessarily in the same location. Now I need
to compare the files and output a list of lines that exist in both
files. Is there a simple way to do this? diff? awk? sed? cmp? Or a
combination of two or more of them?



If the files have only 'minor' differences -- i.e. no long runs of lines
that are in only one fie -- *and* the common lines are  in the same order
in each file, you can use diff(1), without any other shennigans.

If the above is -not- true, and If you need _only_ the common lines, AND
order is not important, then sort(1) both files, and use diff(1) on the
two sorted versions.


Beyond that it depends on what you mean by 'extensive' ones.  megabytes?
Gigabytes? or what??





Some 10,000 to 20,000 lines each. I do need only the common lines. Order
is not essential, but would make life easier. I've tried a little with
uniq, as suggested by Polyptron, but I guess 3am is not quite the right
time to do these things. Anyway, thanks.


Ok, 20k lines is only a medium-size file. There's no problem in fitting
the entire file 'in memory'.  ('big' files are ones that are larger than
available memory. :)


By quite extensive I was refering to the number of lines rather than 
the byte size, and 20k lines is, by my standards, quite a lot for a 
plain text file. :P

But that's beside the point. :)



Using uniq:
sort  {{file1}} {{file2}} |uniq -d


Yes, I found that solution on
http://www.catonmat.net/blog/set-operations-in-unix-shell
which is mainly about comm, but also lists other ways of doing things. I 
also found

grep -xF -f file1 file2
there, and I've tested that one too. Both seem to be doing what I want.



to maintain order, put the following in a file, call it 'common.awk'

  NR==FNR   { array[$0]=1; next; }
{ if (array[$0] == 1) print $0; }

then use the command:

   awk -f common.awk {{file1}} {{file2}}

This will output common lines, in the order they occur in _file2_.




I took the liberty of sending a copy of this to the list although you 
replied privately.

___
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


Comparing two lists

2011-05-06 Thread Rolf Nielsen

Hello all,

I have two text files, quite extensive ones. They have some lines in 
common and some lines are unique to one of the files. The lines that do 
exist in both files are not necessarily in the same location. Now I need 
to compare the files and output a list of lines that exist in both 
files. Is there a simple way to do this? diff? awk? sed? cmp? Or a 
combination of two or more of them?


TIA,

Rolf
___
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: Comparing two lists

2011-05-06 Thread Rolf Nielsen

2011-05-07 02:33, Polytropon skrev:

On Sat, 07 May 2011 02:09:26 +0200, Rolf Nielsenlistrea...@lazlarlyricon.com  
wrote:

Hello all,

I have two text files, quite extensive ones. They have some lines in
common and some lines are unique to one of the files. The lines that do
exist in both files are not necessarily in the same location. Now I need
to compare the files and output a list of lines that exist in both
files. Is there a simple way to do this? diff? awk? sed? cmp? Or a
combination of two or more of them?


I would suggest using a combination of sort, uniq and diff.
Those are base system tools.




Ah. I didn't know about uniq. That sure helped. :)
Thanks.
___
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: Comparing two lists

2011-05-06 Thread Rolf Nielsen

2011-05-07 02:54, Robert Bonomi skrev:

 From owner-freebsd-questi...@freebsd.org  Fri May  6 19:27:54 2011
Date: Sat, 07 May 2011 02:09:26 +0200
From: Rolf Nielsenlistrea...@lazlarlyricon.com
To: FreeBSDfreebsd-questions@freebsd.org
Subject: Comparing two lists

Hello all,

I have two text files, quite extensive ones. They have some lines in
common and some lines are unique to one of the files. The lines that do
exist in both files are not necessarily in the same location. Now I need
to compare the files and output a list of lines that exist in both
files. Is there a simple way to do this? diff? awk? sed? cmp? Or a
combination of two or more of them?



If the files have only 'minor' differences -- i.e. no long runs of lines
that are in only one fie -- *and* the common lines are  in the same order
in each file, you can use diff(1), without any other shennigans.

If the above is -not- true, and If you need _only_ the common lines, AND
order is not important, then sort(1) both files, and use diff(1) on the
two sorted versions.


Beyond that it depends on what you mean by 'extensive' ones.  megabytes?
Gigabytes? or what??





Some 10,000 to 20,000 lines each. I do need only the common lines. Order 
is not essential, but would make life easier. I've tried a little with 
uniq, as suggested by Polyptron, but I guess 3am is not quite the right 
time to do these things. Anyway, thanks.

___
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: Comparing two lists [SOLVED (at least it looks like that)]

2011-05-06 Thread Rolf Nielsen

2011-05-07 02:09, Rolf Nielsen skrev:

Hello all,

I have two text files, quite extensive ones. They have some lines in
common and some lines are unique to one of the files. The lines that do
exist in both files are not necessarily in the same location. Now I need
to compare the files and output a list of lines that exist in both
files. Is there a simple way to do this? diff? awk? sed? cmp? Or a
combination of two or more of them?

TIA,

Rolf


sort file1 file2 | uniq -d
___
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: bash can not find most of my commands

2011-02-22 Thread Rolf Nielsen

2011-02-22 17:40, Alokat skrev:

Hi,

I have changed my shell from csh to bash ...


Why?
Do you use root as your regular login?


But after that I have to call reboot like /sbin/reboot.

How can I change that without changing the shell. :)

my /root/.profile:

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin

export PATH
HOME=/root
export HOME
TERM=${TERM:-cons25}
export TERM
PAGER=more
export PAGER

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



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


Status of UDF driver on FreeBSD?

2011-02-03 Thread Rolf Nielsen

Hello,

I've never given this any thought, until I recently bought a Blu-ray 
drive, and realised that I can neither mount commercial Blu-ray discs or 
watch the films with mplayer. As I understand the problem, it is because 
FreeBSD has no support for newer versions of UDF and that Blu-ray films 
use UDF 2.50 or 2.60. I did find some suggestion for a Summer of Code 
project to port the NetBSD implementation of UDF, and that that has 
support for newer versions, and also write support. So my question is, 
is there any work being done on this, and if so, what is its status?


Sincerely,

Rolf Nielsen
___
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: Status of UDF driver on FreeBSD?

2011-02-03 Thread Rolf Nielsen

2011-02-03 22:38, Alexander Best skrev:

On Thu Feb  3 11, Rolf Nielsen wrote:

Hello,

I've never given this any thought, until I recently bought a Blu-ray
drive, and realised that I can neither mount commercial Blu-ray discs or
watch the films with mplayer. As I understand the problem, it is because
FreeBSD has no support for newer versions of UDF and that Blu-ray films
use UDF 2.50 or 2.60. I did find some suggestion for a Summer of Code
project to port the NetBSD implementation of UDF, and that that has
support for newer versions, and also write support. So my question is,
is there any work being done on this, and if so, what is its status?


i don't think anybody is working on this atm. please also note that there's
a PR related to this issue [1]. also openbsd seems to have support for udf
2.50 and 2.60, too.

cheers.
alex

[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/120989


I see. Thanks. It's not that important to me, because I am able to 
create UDF Blu-ray discs (e.g. with matroska files or audio files) that 
are readable in my Blu-ray player, and that seems more important than 
being able to play films on my computer. However, it would be fun to 
have a bdauthor similar to dvdauthor, and being able to create BD Video 
discs (that may of course be possible without being able to actually 
read the discs on the computer; I've never been able to get anything 
vcdimager creates to work on my computer, but they work perfectly on 
every DVD player I've tried). Discussions about such an authoring app 
isn't for this list though, and that's why I brought up only the UDF 
bit. Anyway, thanks for replying.


Rolf




Sincerely,

Rolf Nielsen




___
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: HPLIP 3.10.9 problems on FreeBSD 8.1

2011-01-26 Thread Rolf Nielsen

2011-01-26 18:04, Bahman Kahinpour skrev:

Hi FreeBSD people,
I am trying to make my HP LaserJet P1102 work on FreeBSD 8.1 and
towards that goal I installed HPLIP 3.10.9 from the Ports Collection.
But there are two problems:
1.First, when I try to run HPLIP in the GUI (GNOME), it closes once
it's opened. It remains open for less than a second.
2.Second, it does not recognize my printer. When I use the
command-line tools it just simply does not recognize my printer. This
is while the printer is recognized on the USB bus, I confirm it by
using usbconfig.

mail# uname -a
FreeBSD mail.freebsdsystem.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon
Jan 24 23:09:14 IRST 2011
r...@mail.freebsdsystem.net:/usr/obj/usr/src/sys/GENERIC  i386
mail# usbconfig
ugen0.1:EHCI root HUB Intel  at usbus0, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON
ugen1.1:EHCI root HUB Intel  at usbus1, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON
ugen0.2:product 0x0020 vendor 0x8087  at usbus0, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=SAVE
ugen1.2:product 0x0020 vendor 0x8087  at usbus1, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=SAVE
ugen1.3:Optical Mouse Genius  at usbus1, cfg=0 md=HOST spd=LOW
(1.5Mbps) pwr=ON
ugen1.4:HID Keyboard Device vendor 0x0e6a  at usbus1, cfg=0 md=HOST
spd=LOW (1.5Mbps) pwr=ON
ugen1.5:HP LaserJet Professional P1102 Hewlett-Packard  at usbus1,
cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
mail#

Can you give me a little help? Has anyone ever managed to get this
printer (HP P1102) working on FreeBSD?

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



I've never used that specific printer, but the first thing that comes to 
mind is the lack of ulpt entries. Do you have


device  ulpt

in your kernel config file, or

ulpt_load=YES

in your /boot/loader.conf ?

If not, try one of them.


Hm. I just checked the output of my usbconfig, and it also shows no 
ulpt, though I do have it. And I also checked the GENERIC config file, 
and it does include ulpt, at least for 8.2-PRERELEASE amd64. So, you may 
actually have it. But that's still the first thing I'd look for if I 
were you.


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


Re: How to label a GELI device

2011-01-25 Thread Rolf Nielsen

2011-01-25 15:07, J. Porter Clark skrev:

On Tue, Jan 25, 2011 at 10:45:52AM +0200, Nikos Vassiliadis wrote:

J. Porter Clark wrote:

I have an encrypted partition, /dev/da0s1d.  I can use geli
attach da0s1d and obtain a device /dev/da0s1d.eli, which is a
UFS filesystem.  All that works just fine.

I'd like to label /dev/da0s1d so that I don't have to refer to
the exact drive number, etc., which might change if I reboot
with a USB stick in the system or whatever.  But glabel puts the
label in the last sector, which is where GELI stores metadata.


You don't have to worry about this. geli uses the last sector for
its metadata and creates a device with one sector less to its clients.
The original device is 2048 sectors, the device geli provides is 2047
sectors:

moby# diskinfo /dev/md0 /dev/md0.eli
/dev/md0512 1048576 20480   0
/dev/md0.eli512 1048064 20470   0


There is no way for the internal GEOM to mess with the external's
metadata.


That's fine, but I want to label the external /dev/md0, not
the internal /dev/md0.eli.

What I eventually want to do is to geli attach the device
using a name that doesn't depend on drive numbering.



Correct me if I'm wrong anyone.
You need to first label da0s1d

e.g. like so

glabel label data da0s1d

then geli init the labeled device

e.g. like so

geli init -l 256 -s 4096 label/data

then

geli attach label/data

That will give you a device node called /dev/label/data.eli, that you 
can newfs and mount. Unfortunately, since you already encrypted da0s1d, 
you may have to back it up, and restore the data after you've redone it. 
I had this problem a few years ago, and I had to back up and restore, 
but perhaps it's been made simpler now? Though I doubt it.


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


Re: How to label a GELI device

2011-01-25 Thread Rolf Nielsen

2011-01-25 19:13, J. Porter Clark skrev:

On Tue, Jan 25, 2011 at 03:29:37PM +0100, Rolf Nielsen wrote:


Correct me if I'm wrong anyone.
You need to first label da0s1d

e.g. like so

glabel label data da0s1d

then geli init the labeled device

e.g. like so

geli init -l 256 -s 4096 label/data


Unfortunately, this step overwrites the label.


It does not. I just tested it with a file backed md device, and 
hexdumped it after each step (creating the file, mdconfig it, label the 
md device and encrypting it).
After the first two steps, I got just zeros, after labeling it, I got 
the last sector containing the label, and after encrypting it, I got the 
second last sector (i.e. the last sector of the labeled device) 
containing the eli data and the last secor still containing the label.


If it does overwrite the label, you most likely specified the da0s1d to 
the geli init command. You need to specify label/data (replace data 
with the name you choose).


If I try

to repeat the glabel command, then the geli metadata is
overwritten.


That will give you a device node called /dev/label/data.eli, that you
can newfs and mount. Unfortunately, since you already encrypted da0s1d,
you may have to back it up, and restore the data after you've redone it.
I had this problem a few years ago, and I had to back up and restore,
but perhaps it's been made simpler now? Though I doubt it.


I think that this is the problem.


___
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: use of menus crashes Firefox?

2011-01-18 Thread Rolf Nielsen

2011-01-18 23:56, Keith Seyffarth skrev:


OK. This is still being a problem.  I've removed Firefox 3.6 from my
system and installed Firefox 3.5. Use of menus doesn't cause 3.5 to
crash, but it sill has problems. On some web sites, the browser dumps
core. For example trying to log in, create an account, or retrieve a
password at forum.parallels.com which leaves this core (as processed
by gdb):

Core was generated by `firefox-bin'.
Program terminated with signal 12, Bad system call.
#0  0x29d7f16b in ?? ()


Now, again, this is in Firefox 3.5. That message isn't very informative
to me, but maybe it is helpful to someone else?

Again, this started after updating GTK on December 18 or so, following
the instructions in /usr/ports/UPDATING


Among the things that will cause Firefox to dump core in 3.5 or 3.6 are
visiting some web sites (see above), accepting a signed secure
certificate the first time (once it crashes Firefox, it's not a problem
on subsequent visits), attempting to accept a questionable certificate
(either telling Firefox to accept the certificate permanently or not),
or exiting Firefox.

In firefox 3.6, anything that generates a menu will also crash the
browser.

I have tried
So far I have tried the following:

* Remove the .mozilla directory and start firefox without extensions,
   plugins, or customizations
* Force reinstall of Firefox (portupgrade -F)
* Remove and reinstall Firefox
* Force reinstall of the mouse input driver
* Remove and reinstall xorg and components
* Remove and reinstall Fluxbox window manager
* pkg_deleteing all firefox plugins and nspluginwrapper
* Uninstalling Firefox 3.6 and installing Firefox 3.5 (helpful, but not
   fixed)
* running portupgrade -aOW again


I'm wondering if this can't be fixed short of formatting and starting
over, but I'd really hope to avoid a very M$Windows solution like
that... Any further ideas?

Keith S.
___
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



Are you by any chance overriding CFLAGS in /etc/make.conf? Or perhaps 
even compiling using a gcc version not in the base system? I had that 
exact problem with Firefox 3.6 (and with Thunderbird as well) and menus 
when compiling with gcc45 and/or overriding CFLAGS. It went away when I 
re-built Firefox (well, actually, I re-built everything, world, kernel 
and all the ports) using the stock compiler and removed all CFLAGS 
overrides.


Rolf
___
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: use of menus crashes Firefox?

2011-01-18 Thread Rolf Nielsen

2011-01-19 00:42, Keith Seyffarth skrev:


Rolf,

Thanks for the info.


Are you by any chance overriding CFLAGS in /etc/make.conf? Or perhaps


No, /etc/make.conf is just three lines:

WITH_CUPS=yes
# added by use.perl 2010-12-22 15:53:20
PERL_VERSION=5.10.1



even compiling using a gcc version not in the base system? I had that
exact problem with Firefox 3.6 (and with Thunderbird as well) and menus
when compiling with gcc45 and/or overriding CFLAGS. It went away when I
re-built Firefox (well, actually, I re-built everything, world, kernel
and all the ports) using the stock compiler and removed all CFLAGS
overrides.



I'm not aware of anything I've done that would have switched
compilers. How would I tell? This is the version output:

# gcc --version
gcc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Keith



Changing the gcc version is something you do actively, otherwise you get 
the stock compiler. Here's how to do it

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/custom-gcc/configuring-ports-gcc.html

Since you do not override CFLAGS, I can't help you, because using 
default settings made my problems go away. The only difference is that I 
don't use cups, but I doubt that would make a difference for Firefox, 
and that I have perl 5.12.2.


Rolf
___
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: [Probably a bit OT] A question about mail systems [SOLVED]

2011-01-17 Thread Rolf Nielsen

2011-01-17 11:04, Maciej Milewski skrev:
...

 

  I find using ~/.forward for this a bit of an ugly hack, but as long as

  I'm the only one using this computer, I can live with it, though I would

  prefer to have it in /etc/mail/aliases instead, but that just gives me

  warnings about deliver not being run as the correct user (yes, I did try

  with the -d option). If someone knows how to fix that, I'd be greatful,

  but it's not that important, at least not for the time being, so don't

  lose any sleep over it for me.

 

  Anyway, thanks again for the input,

 

  Rolf Nielsen

As you left sendmail and not mention about reconfiguring it I think that
you should do it according to Dovecot wiki:

http://wiki.dovecot.org/LDA/Sendmail

Maciej



I read that, and according to the instructions, it assumes sendmail is 
set up for virtual hosting and that local system mail is not handled by 
deliver. The way I have it configured now, and the way I want it, I have 
no virtual hosting (what would be the point of that with one user 
account?), and all mail, including local system mail, is passed through 
deliver. This way I only need one mail reader, regardless of where the 
mail comes from and which mailbox it's sent to. And since I also have 
root's mail forwarded to my regular user account (via 
/etc/mail/aliases), I get all mail, whether local system mail or from 
the outside world, transparently delivered to ~/Maildir, and I can 
read it from whichever IMAP capable client I choose.

___
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: [Probably a bit OT] A question about mail systems [SOLVED]

2011-01-15 Thread Rolf Nielsen

2011-01-08 13:26, Rolf Nielsen skrev:

Hello,

I have several e-mail addresses, and to make it easier to read them all,
I use fetchmail to get the messages from the servers and deliver them to
one local account. And I have a POP3 server running so I can read that
local account's mail from e.g. thunderbird or even from my cell phone.

The POP3 server I use is mail/popd from the ports, but I'm not very
happy with it. Among other things it occasionally messes up attached
files, so I want to switch.

Moreover, I'd like to use maildir instead of a single file mailbox, so
I'd like to switch from sendmail to e.g. postfix.

The problem is that my knowledge about e-mail configuration is somewhat
limited. I've found several tutorials and HOWTOs on getting postfix and
either a POP3 or an IMAP server up and running, but they were all aimed
at quite advanced setups, meant for serving entire domains, and most of
them involved having the users in a MySQL database. I've fiddled a bit
with it, but I can't seem to get postfix to deliver the mail.

So here's what I want to do.

1. Have fetchmail get the messages.

2. Have an MTA (is that the right name, I always confuse them) deliver
them locally to a maildir.

3. Have either a POP3 or an IMAP server from which I can retrieve the
messages to whichever client I choose.

1 isn't a problem unless I need to make some radical changes.

How do I set up 2 in the easiest possible way? Can anyone point me to a
tutorial or HOWTO that I've missed? Or perhaps give me some tips on how
to do it?

For 3, can anyone recomend a good server that's easy to get up and
running and which, obviously, handles maildir? Preferably one that can
do both POP3 and IMAP, in case my needs change later. A good tutorial or
HOWTO, or maybe some pointers?

If I've left something out or I need to clarify anything, please let me
know. I'll do what I can to help you help me. :)

Thanks in advance,

Rolf Nielsen


Thanks for the input I received from you guys. I've got things running 
in a way I'm quite happy with now. And with your input and a little 
further digging on my part, it turned out to be pretty simple.


I kept sendmail, set up dovecot as an IMAP server, and put
| /usr/local/libexec/dovecot/deliver in ~/.forward. That's all I did. 
And it works just like I want it to. Realising it was that simple made 
me laugh at myself. But then again, mail servers isn't my area of expertise.


I find using ~/.forward for this a bit of an ugly hack, but as long as 
I'm the only one using this computer, I can live with it, though I would 
prefer to have it in /etc/mail/aliases instead, but that just gives me 
warnings about deliver not being run as the correct user (yes, I did try 
with the -d option). If someone knows how to fix that, I'd be greatful, 
but it's not that important, at least not for the time being, so don't 
lose any sleep over it for me.


Anyway, thanks again for the input,

Rolf Nielsen
___
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


[Probably a bit OT] A question about mail systems

2011-01-08 Thread Rolf Nielsen

Hello,

I have several e-mail addresses, and to make it easier to read them all, 
I use fetchmail to get the messages from the servers and deliver them to 
one local account. And I have a POP3 server running so I can read that 
local account's mail from e.g. thunderbird or even from my cell phone.


The POP3 server I use is mail/popd from the ports, but I'm not very 
happy with it. Among other things it occasionally messes up attached 
files, so I want to switch.


Moreover, I'd like to use maildir instead of a single file mailbox, so 
I'd like to switch from sendmail to e.g. postfix.


The problem is that my knowledge about e-mail configuration is somewhat 
limited. I've found several tutorials and HOWTOs on getting postfix and 
either a POP3 or an IMAP server up and running, but they were all aimed 
at quite advanced setups, meant for serving entire domains, and most of 
them involved having the users in a MySQL database. I've fiddled a bit 
with it, but I can't seem to get postfix to deliver the mail.


So here's what I want to do.

1. Have fetchmail get the messages.

2. Have an MTA (is that the right name, I always confuse them) deliver 
them locally to a maildir.


3. Have either a POP3 or an IMAP server from which I can retrieve the 
messages to whichever client I choose.


1 isn't a problem unless I need to make some radical changes.

How do I set up 2 in the easiest possible way? Can anyone point me to a 
tutorial or HOWTO that I've missed? Or perhaps give me some tips on how 
to do it?


For 3, can anyone recomend a good server that's easy to get up and 
running and which, obviously, handles maildir? Preferably one that can 
do both POP3 and IMAP, in case my needs change later. A good tutorial or 
HOWTO, or maybe some pointers?


If I've left something out or I need to clarify anything, please let me 
know. I'll do what I can to help you help me. :)


Thanks in advance,

Rolf Nielsen
___
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: [Probably a bit OT] A question about mail systems

2011-01-08 Thread Rolf Nielsen

2011-01-08 16:01, Matthew Seaman skrev:

On 08/01/2011 12:26, Rolf Nielsen wrote:

So here's what I want to do.

1. Have fetchmail get the messages.


Should not be a problem.


2. Have an MTA (is that the right name, I always confuse them) deliver
them locally to a maildir.


While you can use an MTA it's not actually necessary in this case.  What
you absolutely do need is a Local Delivery Agent (a.k.a Mail Deliver
Agent: MDA) of which there are several available.  You should be able to
hook them up directly to fetchmail.

Some LDAs that understand Maildir --

procmail  -- stand-alone mail filtering and delivery application.
deliver   -- part of dovecot IMAP server


3. Have either a POP3 or an IMAP server from which I can retrieve the
messages to whichever client I choose.


dovecot works very well serving Maildir via IMAP.  As mentioned
elsethread, dovecot v2 isn't really stable yet.  Also lacks some of
the add-ons like managesieve.  For a quiet life, stick to dovecot v1
for the moment.


1 isn't a problem unless I need to make some radical changes.

How do I set up 2 in the easiest possible way? Can anyone point me to a
tutorial or HOWTO that I've missed? Or perhaps give me some tips on how
to do it?


IIRC there's a '-m' flag to fetchmail which is what you want.

The other bit of this is setting up dovecot without needing to install
LDAP or MySQL or whatever.  That's not very difficult actually, and
covered in the Dovecot Wiki.  Either use PAM authentication from Dovecot
(in which case usernames, passwords etc. will be identical to what you
use to log into your server), or use a local passwd format file.

While you don't need an MTA for *reading* e-mail like this, you will
definitely need one for sending e-mail.  The good news is that it can be
on some completely different system eg. provided by your ISP, or via
gmail etc.

Cheers,

Matthew



Thanks to all who've replied so far. Matthew's ideas strike me as the 
most interesting ones, and I will certainly explore them and see if I 
can get it working.
I guess I should have explained in my original post that I neither need 
nor want an SMTP server locally, since I use the one my ISP provides, 
but I didn't know about the MDA option.


Thanks again,

Rolf
___
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: SD/CF card reader

2010-12-27 Thread Rolf Nielsen

2010-12-28 01:26, Polytropon skrev:
...


Still the method of issuing something like

# true  /dev/da1


Try
# mount /dev/da1 /mnt

That makes GEOM taste the card, thus creating the device node(s) for the 
partition(s) on the card. And as long as you don't reboot, the device 
node(s) remain even when you remove the card, so you only need to do 
that the first time you access the card after rebooting.
A dirty hack, but it has worked for me since I started using CF cards on 
a regular basis. Though I would also welcome some kind of automatic 
creation of the device node(s).




looks wrong - even if it works. It looks like: And now we
are overwriting the whole memory card with... erm... with
the truth, but at least we're overwriting it. This just
gives me a scary impression. There should be something
more correct, such as resetting some bus via camcontrol
or re-reading a structure via usbdevs, but no  access
to the whole card.




...
___
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: Can't remove or move file

2010-08-20 Thread Rolf Nielsen

2010-08-20 18:00, Rem P Roberti skrev:

This is a new one for me.  I converted a YouTube selection using
youtube_dl and the file that was created was named -elDeJaPWGg.flv. When
I try to rename it, or delete it, I get an error message thus:

root@ ~: rm -elDeJaPWGg.flv
rm: illegal option -- e
usage: rm [-f | -i] [-dIPRrvW] file ...
unlink file

No switch with either the rm or mv command works. What is actually going
on here?

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





The problem is that the filename contains a dash, which rm interprets as 
an indication that the next character is a switch. Use unlink instead, 
i.e. unlink -elDeJaPWGg.flv.

___
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: resize freebsd slice

2010-06-12 Thread Rolf Nielsen

2010-06-12 15:50, Giorgos Tsiapaliokas skrev:

i have a problem while i am trying to restore the dump files..

i followed your instructions but when i give

restore -rf /backup/root.dump i receive the following error:

expected next file 188417,got 4


and the output of ls in the /mnt directory is:
.snap
restoresymtable
terietor


what is going on?
___
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





Either you executed dump without the L flag when the filesystem was 
mounted rw or, if you did give the L flag, some file changed while dump 
was creating the snapshot from which to create the dump. When dumping / 
it's ALWAYS safer to have it mounted read only. In my first reply, I 
suggested you boot into single user and create the dump from there.


I've had the same type of message several times, but I've never found 
them to cause any harm. However, I never dump sensitive data from a 
read/write mounted fs. If possible I re-mount it read only, otherwise I 
boot into single user.


And to be rudely honest: HAVE YOU READ ANYTHING ANYONE HAS WRITTEN?
___
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: resize freebsd slice

2010-06-11 Thread Rolf Nielsen

2010-06-11 15:30, Giorgos Tsiapaliokas skrev:

hello,

in my machine i have gentoo and freebsd installed.

i was using gentoo until i installed successfully FBSD,now i want to make my
FBSD slice bigger..

i have 4 slices:

ad0s1-gentoo
ad0s2-linux swap
ad0s3-free space (no type)
ad0s4-FBSD
ad0s4a-/
ad0s4b-FBSD swap
ad0s4c-/home

how can i make my ad0s4a and ad0s4c slices bigger?
P.S.: i want to take space from ad0s3

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





Firstly, ad0s4 is slice. ad0s4a and ad0s4c are not slices, but 
partitions within the ad0s4 slice.
Secondly, the c partition of ANY slice is expected to cover the entire 
slice, i.e. NOT be used for a file system. Perhaps it is possible to do 
so, but it is not recommended. For historical reasons, I've been told, 
and that history goes farther back than my *nix experience, and I never 
researched it further. Perhaps someone else can enlighten us.


With that in mind, if I were you, I'd backup the / and /home partitions, 
delete the s4 slice and make the s3 slice cover the combined space of 
the current s3 and s4 slices (using either fdisk directly or 
sysinstall's interactive frontend to fdisk) without touching s1 and s2, 
and then partition the new s3 like this.


ad0s3a -- /
ad0s3b -- swap
ad0s3d -- /home

To make backups, just boot into single user and do not mount / rw. 
You'll need some extra storage, e.g. a USB disk, to store the backup.
To do the reslicing, repartitioning and restoring the backups, you'll 
need to boot from some other medium, e.g. the LiveFS CD. When making and 
restoring the backups, you may also need to have a writable /tmp 
directory. You can accomplish this by


mdmfs -M -S -s 20m md /tmp

which will give you a 20 MB filesystem stored in RAM with soft-updates 
disabled. That should be sufficient.


This is how I would do it. Perhaps someone else has a better, simpler 
approach.

___
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: diablo-jdk-1.6 firefox plugin... doesn't work

2010-05-26 Thread Rolf Nielsen

2010-05-26 17:02, Neil Short skrev:

New installation. having some problems.

diablo-jdk-1.6 plugin isn't working in firefox.

Some pertinent output:

carmen# java -version
java version 1.6.0_07
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

carmen# pkg_info | grep diablo
diablo-jdk-1.6.0.07.02_9 Java Development Kit 1.6.0_07.02

carmen# pkg_info | grep firefox
firefox-3.6.3,1 Web browser based on the browser portion of Mozilla


IIRC it has been said several times on this list, that java doesn't work 
for firefox 3.6 on FBSD yet. I doubt you'll find it comforting, but I'm 
just as annoyed as you about it.

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


Re: What`s mistake in MYKERNEL?

2010-04-12 Thread Rolf Nielsen

On 2010-04-12 17:24, oleg wrote:

Hi all users of Free BSD!

I am really hopeing that someone can assist me here.
Got some mistake in the course of assemblage kernel. Can`t understand
myself, what`s wrong?
My system is:
FreeBSD 8.0-STABLE-201002 #0: Tue Feb 16 21:05:59 UTC 2010
That tree of src directory updated with csup successful.
Look the attached files.
Please, let me know, what mast i do?
Many thanks for the help.



___
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



PROCFS requires PSEUDOFS. Either uncomment PSEUDOFS or commernt out 
PROCFS. Moreover, the option COMPAT_IA32 recently was renamed 
COMPAT_FREEBSD32, but I'm not sure exactly when that happened. You might 
want to try changing it.

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


Re: What`s mistake in MYKERNEL?

2010-04-12 Thread Rolf Nielsen

On 2010-04-12 17:24, oleg wrote:

Hi all users of Free BSD!

I am really hopeing that someone can assist me here.
Got some mistake in the course of assemblage kernel. Can`t understand
myself, what`s wrong?
My system is:
FreeBSD 8.0-STABLE-201002 #0: Tue Feb 16 21:05:59 UTC 2010
That tree of src directory updated with csup successful.
Look the attached files.
Please, let me know, what mast i do?
Many thanks for the help.



___
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


You also need to uncomment ppbus, since it's required by all other 
parallel port devices. And if you plan to run X, you should uncomment 
pty as well, but that shouldn't cause linking of the kernel to fail.

___
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: Tool to produce A5 booklet from A4 pages PS / PDF

2010-04-01 Thread Rolf Nielsen

On 2010-04-02 02:27, Polytropon wrote:

In order NOT to try to reinvent the wheel, I'd like to ask
if anyone knows a tool that does helps to produce a printable
and foldable booklet from A4 pages.

I'm searching for a tool that scales down and reorders A4
pages (from a document, usually PS or PDF) in a way that
the result can be printed with a duplex printer (content
on both sides of the paper sheet) and then be folded in
the middle in order to get a book (or let's better call
it a booklet) in A5 format. Additionally, the booklet
can be stapled where it has been folded (using the proper
mechanical tool).

Of course, this just seems useful for standard A paper
formats (A4 / A5) which keep the aspect ratio sqrt(2)
(or nearly 1.414:1) even after folding or combining:

   A4
+--++--+
|  ||  |
|  A5  ||  A5  |
|  ||  |
+--++--+

Illustration here:
http://upload.wikimedia.org/wikipedia/commons/8/8a/A_size_illustration.svg

Depending on the real page number, it would require to
completely re-order and rotate (90 or 270 degree) the
contained pages, depending where they will appear on the
result paper.

For example, page 1 needs to be placed on page 1, top,
rotated 270 degrees, while the lase page also has to be
placed on page 1, bottom, rotated 270 degrees. Page 2
will be on page 2 (which is the rear side of page 1),
top, rotated 90 degrees... and now my imaginary force
is failing. :-) All pages have to be scaled down to
50% of their original size, of course.

In ideal case, the number of pages to be processed this
way is modulo 4, because 4 pages go to one sheet (two
per side).

So basically, I'm searching for a program that does the
renumbering and rotation magic, provided PS or PDF files
as input, and also as output.

What tool can you suggest to do so?


print/psutils-a4 has tools to do the job for you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Automatic Way to Tell if a FreeBSD system is 64 or 32-bit?

2010-03-16 Thread Rolf Nielsen

On 2010-03-16 18:02, Martin McCormick wrote:

Is there a FreeBSD command similar to the Linux arch
command?

I have built a fairly decent Bourne shell script to run
just after installing mfsbsd on a target system. It figures out
the likely boot drive, formats it and then begins to build a
FreeBSD system on it. The script could intelligently ask for the
64-bit or 32-bit trees if it could determine whether it was
running on the i86 or 64-bit system.

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





Does uname -p do it for you?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


kmem_size / arc_max ratio

2010-02-02 Thread Rolf Nielsen

Hello everyone,

I recently installed more RAM in my computer; increased it from 4GB to 
8GB. Mainly to be able to use a larger arc for zfs. Now my question is, 
how much memory does the kernel need apart from the arc? I currently 
have kmem_size_max 512MB bigger than arc_max. I haven't run into any 
problems so far. I use my computer as desktop only, running WindowMaker 
and normally having xconsole, emiclock, firefox with 5+ tabs, 
thunderbird, amsn, sunbird, thunar, ktorrent and upto 5 or 6 xterms.


My loader.conf looks like this:

vfs.root.mountfrom=zfs:sysroot
vm.kmem_size_max=5G
vm.kmem_size=5G
vfs.zfs.arc_max=4608M
vm.pmap.pg_ps_enabled=1
zfs_load=YES
nvidia_load=YES

I am considering increasing kmem_size, kmem_size_max and arc_max by 
1024MB each. The idea behind that, is that when I had 4GB RAM I had 
kmem_size and kmen_size_max set to 2GB and never had any trouble with 
user memory running out, so I believe 2GB user memory should still be 
enough. Please correct me if I'm wrong. ;)
Anyway, the main question is, should 512MB difference between kmem and 
arc be enough, or should I increase it? Or could I even decrease it? 
I've had very noticably increased performance with larger arc size, so I 
would like to set it as high as possible without causing problems for or 
degradation of other kernel tasks and/or user applications.

Please let me know if you need any further information about my system.

Cheers,

Rolf Nielsen
___
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: Generating normally distributed random numbers.

2010-01-31 Thread Rolf Nielsen

On 2010-01-31 15:53, Jason Lenthe wrote:



I am working on a project where I have the need to generate normally
distributed random positive integers, preferably unsigned 64 bit (or
even longer if possible) integers. More specifically, I will need the
ability to supply the expected value and the standard deviation for the
desired distribution, so a standard normal distribution will not do.

Is there anyone out there who knows how to accomplish this? I have no
idea whatsoever, and for all I know there may already be a function that
does this in the math library. I'm quite accomplished when it comes to
math, but strangely I've never programmed computers for it.



Thank you for your suggestions. I haven't yet looked too carefully into 
them, so I haven't decided which approach to use. But your suggestions 
have given me ideas to work on.


Thanks,

Rolf Nielsen
___
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


Generating normally distributed random numbers.

2010-01-30 Thread Rolf Nielsen

Hi all,

I am working on a project where I have the need to generate normally 
distributed random positive integers, preferably unsigned 64 bit (or 
even longer if possible) integers. More specifically, I will need the 
ability to supply the expected value and the standard deviation for the 
desired distribution, so a standard normal distribution will not do.


Is there anyone out there who knows how to accomplish this? I have no 
idea whatsoever, and for all I know there may already be a function that 
does this in the math library. I'm quite accomplished when it comes to 
math, but strangely I've never programmed computers for it.


Any help will greatly appreciated.

Cheers,

Rolf Nielsen
___
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: Server set up

2010-01-15 Thread Rolf Nielsen

On 2010-01-16 02:42, Sam Fourman Jr. wrote:

On Fri, Jan 15, 2010 at 4:37 PM,davidowe...@yahoo.co.uk  wrote:


I will be deleting the Window's stuff on the machine

How would i SSH to the Linux pc and what software should i install


one of the first things you should understand is FreeBSD is Not Linux
___
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





Many believe FreeBSD is Unix (and many would say that it really is, in 
all respects but its name, however that isn't the issue here). Moreover, 
I've got the impression lots of people truly believe Linux is just 
another name for Unix. And I do know for a fact that there are people 
who even believe Unix is another name for Linux.


With such ideas, I guess it's easy to assume FreeBSD is just another 
Linux distro. Isn't it time we try to correct this? I try to do my part 
in that respect, by explaining to anyone who says, Oh, you're running 
Linux? that there is a difference. And that the difference matters. It 
may not matter to them. But it does matter to me. And I think it matters 
to most FreeBSD users. And I also believe it actually matters to Linux 
users, at least the more serious ones.

___
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: Server set up

2010-01-15 Thread Rolf Nielsen

On 2010-01-16 03:44, Kaya Saman wrote:








Many believe FreeBSD is Unix (and many would say that it really is, in
all respects but its name, however that isn't the issue here).
Moreover, I've got the impression lots of people truly believe Linux
is just another name for Unix. And I do know for a fact that there are
people who even believe Unix is another name for Linux.


BSD is a UNIX like OS.. developed way back when by Berkley
university in the US. Can't remember the dates but for that there's
Google! In fact Wikipedia has a great tree diagram showing the
origination of UNIX.

Anyhow UNIX was developed at the end of the 60s by Bell Labs who back
then was part of ATT in the US. But had many bugs and quirks and so a
not-like-UNIX mode was developed according to my Cisco CCNA lecturer who
was lecturing at university way before even then.

FreeBSD is now an offshoot of BSD and one of a few within the family
tree but is it's own take on BSD.



With such ideas, I guess it's easy to assume FreeBSD is just another
Linux distro. Isn't it time we try to correct this? I try to do my
part in that respect, by explaining to anyone who says, Oh, you're
running Linux? that there is a difference. And that the difference
matters. It may not matter to them. But it does matter to me. And I
think it matters to most FreeBSD users. And I also believe it actually
matters to Linux users, at least the more serious ones.
___
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



Linux is just a kernel with lots of GPL and GNU software strapped to it
developed by Linuz Torvalds back I'm sure it was 83 or perhaps was
discussed back then. The first Linux distro to come out was back in ~93.

Just to add without going completely off topic; there are many UNIX-like
OS's available today including: BSD, Solaris, Linux, AIX, HP-UX and one
of yesteryear called IRIX developed by Silicon Graphics.

Back on to topic now ;)

First work out what you want to use; Linux or FreeBSD then after you
have decided start to learn it as it is extremely different from the M$
world and if used in its most raw sense involves no graphical interface
or point-click nonsense!

I would recommend using FreeBSD on old outdated h/w as the Linux kernel
can be a bit heavy wrapped around a distro as vibrant as Fedora, or
Debian and similar. That is without custom building kernels and packages
specifically designed for the system in question. Although you would do
this if using an embedded system as pointed out previously or if needing
some very specific non-generic purpose.

Just remember now that you have entered into the UNIX world that Google
is your only friend and although there are many people on various lists
and forums who can help and assist, they will not be pleased or welcome
someone who has failed to use the main basic rule of any thing. As if it
can't be Googled it most likely 99.9% doesn't exist!!!

Regards,

Kaya





Hi Kaya,

Firstly, just for clarity, I do know all of that, and the original 
poster of this thread is the one you CC'ed.


Secondly (also just for clarity, I guess), most of your post is OT, as 
it is basically a reply to my post, and my post was OT as it was simply 
a reaction to the original poster's mistake of saying Linux and meaning 
FreeBSD.


Cheers,

Rolf Nielsen

P.S. No, I'm not trying to be a smart arse. ;)
___
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


Correcting misconceptions? (was Re: Server set up)

2010-01-15 Thread Rolf Nielsen

On 2010-01-16 04:53, Jon Radel wrote:

Rolf Nielsen wrote:


Secondly (also just for clarity, I guess), most of your post is OT, as
it is basically a reply to my post, and my post was OT as it was
simply a reaction to the original poster's mistake of saying Linux and
meaning FreeBSD.


Which makes your latest, what, OT cubed?


Point taken. Subject changed...


On a marginally more serious
note, how would you propose to start an effort to spearhead the BSD is
not Linux, Linux is not UNIX, but good luck telling them apart until
you're a propeller head like us educational campaign? (Harking back to
your, Isn't it time we try to correct this, query.) There are probably
more useful messages to try get out about FreeBSD than, No, it's not
Linux, and we'll beat the snot out of you if you get confused in public.


The part I wanted to correct is the idea that FreeBSD is a Linux distro. 
Whether or not people believe Linux is Unix, I don't really care about. 
My point was that if people believe Linux is another name for Unix or 
even that Unix is another name for Linux may be the cause of the 
misconception that FreeBSD is a Linux distro.


And of course there are more meaningful messages, and more important 
ones. I never suggested it should be made top priority. I said I think 
it matters, not that it's the foundation on which the world stands. And, 
without changing my belief that it does matter, I will say that most 
importantly for me, I know the difference and that is one of the reasons 
why I chose FreeBSD.


How it should be done? A good start would be to not just say It's not 
Linux if someone asks, but give a brief explanation to why it isn't. 
Handing out leaflets or making t-shirts isn't what I had in mind; it's 
not that an important issue. And beating the snot out of people isn't 
quite my idea of education.

___
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: Crontab not working logwatch.pl [FreeBSD 8 stable]

2010-01-13 Thread Rolf Nielsen

On 2010-01-13 21:43, Jeronimo Calvo wrote:

Hi folks,

Im having probs when a root crontab located on /var/cron/tabs/root

with this content
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.DUtgfVoBT0 installed on Wed Jan 13 20:08:29 2010)
# (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v
1.31.2.1 2009/08/03 08:13:06 kensmith Exp $)
* * * * * ~/.profile ; /bin/bash /var/log/auto_auth.sh
* * * * * ~/.profile ; /usr/bin/perl /local/sbin/logwatch.pl

both of them are sending logs to my email, when runned from the
command line works, but not from crontab
any ideas?



The keywords here are
# DO NOT EDIT THIS FILE - edit the master and reinstall.

Either edit the system crontab, /etc/crontab, or, to edit root's 
crontab, run crontab -e as root.

___
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: Crontab not working logwatch.pl [FreeBSD 8 stable]

2010-01-13 Thread Rolf Nielsen

On 2010-01-13 22:04, Jeronimo Calvo wrote:

did a crontab -r, a a new crontab -e, using:

* * * * * $HOME/.profile ; /bin/bash /var/log/auto_auth.sh
* * * * * $HOME/.profile ; /usr/bin/perl /local/sbin/logwatch.pl

tailing the /var/log/cron I can see that is being executed every
minute... but no emails arrived with is the proof that the script has
worked.



2010/1/13 Rolf Nielsenlistrea...@lazlarlyricon.com:

On 2010-01-13 21:43, Jeronimo Calvo wrote:


Hi folks,

Im having probs when a root crontab located on /var/cron/tabs/root

with this content
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.DUtgfVoBT0 installed on Wed Jan 13 20:08:29 2010)
# (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v
1.31.2.1 2009/08/03 08:13:06 kensmith Exp $)
* * * * * ~/.profile ; /bin/bash /var/log/auto_auth.sh
* * * * * ~/.profile ; /usr/bin/perl /local/sbin/logwatch.pl

both of them are sending logs to my email, when runned from the
command line works, but not from crontab
any ideas?



The keywords here are
# DO NOT EDIT THIS FILE - edit the master and reinstall.

Either edit the system crontab, /etc/crontab, or, to edit root's crontab,
run crontab -e as root.







Please don't top post.

Firstly, don't rely on environment variables being set correctly when 
running from cron. If you really want to use root's crontab, substitute 
/root for $HOME.
Secondly, bash should be in /usr/local/bin, not in /bin. And it's a 
third party shell not included by the system. It has to be installed 
from ports. You should use /bin/sh instead.
Thirdly, instead of putting the interpreter path on the command line, 
put it on the first line of your scripts, i.e.

#!/bin/sh in the first one
and
#!/usr/bin/perl in the second one.
___
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


zpool upgrade - is it safe?

2010-01-12 Thread Rolf Nielsen

Hi all,

I just upgraded to a more recent version of 8.0-STABLE, and I noticed 
during boot that zfs had changed from version 13 to version 14. Is it 
safe to run zpool upgrade -a on a system while in multiuser, or will I 
have to take some security measures, such as creating a complete backup 
and/or booting into singleuser?


Rolf Nielsen
___
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: zpool upgrade - is it safe?

2010-01-12 Thread Rolf Nielsen

On 2010-01-12 22:57, krad wrote:



2010/1/12 Rolf Nielsen listrea...@lazlarlyricon.com
mailto:listrea...@lazlarlyricon.com

Hi all,

I just upgraded to a more recent version of 8.0-STABLE, and I
noticed during boot that zfs had changed from version 13 to version
14. Is it safe to run zpool upgrade -a on a system while in
multiuser, or will I have to take some security measures, such as
creating a complete backup and/or booting into singleuser?

Rolf Nielsen
___
freebsd-questions@freebsd.org mailto: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
mailto:freebsd-questions-unsubscr...@freebsd.org


Its fine to upgrade a pool in multi user mode as it is with most things
zfs. However beware when up upgrade a pool as once you have you cant go
back, and if you want the revert to your previous install you wont be
able to. Therefore a general rule of thumb is unless you need a new
feature on a new pool version dont upgrade it. A least wait a few weeks
until your new install is fully bedded in and tested


Thanka. Since I have no idea what passthrough-x aclinherit support 
does and I've been fine without it so far, I guess I'll stick with 
version 13 for now then. :)

___
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: Burning an audio CD

2009-12-30 Thread Rolf Nielsen

On 2009-12-30 23:08, Christian Weisgerber wrote:

Today I tried to burn an audio CD.  This may actually be the first
time I ever did this.

I'm sure there are all kinds of GUIey tools, but I took the simple
route: expanded a few high-quality MP3s to raw PCM with mpg123,
then put a CD-R in the drive and burned it with

   burncd -f /dev/acd0 -d audio *

That seemed to work.  Afterwards, I tried to play the CD with XMMS.
That also worked fine.

Then I put the CD into my car CD player, which was the reason for
the whole exercise.
11 tracks (ok)... playing track 1... (nothing)... ERROR CD.

The player does not like the CD.

Is there anything obvious I missed?



I was about to suggest adding fixate to the command line, like so

burncd -f /dev/acd0 -d audio * fixate

but then I read in the man page that it's ignored if -d is given 
(obviously now that I think about it, since DAO normally implies 
fixating). However, it may be worth trying anyway.


You may also want to try sysutils/cdrtools-devel, which is a lot more 
competent than burncd. However, as you have an ATAPI CD burner, you will 
need atapicam in your kernel. Either add


device atapicam

to your kernel config, recompile, install and reboot or

kldload atapicam

as root in the console or an xterm.

To automate it, add

atapicam_load=YES

to your /boot/loader.conf.

Good luck,

Rolf Nielsen
___
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: Burning an audio CD

2009-12-30 Thread Rolf Nielsen

On 2009-12-30 23:50, Roland Smith wrote:

On Wed, Dec 30, 2009 at 11:23:40PM +0100, Rolf Nielsen wrote:

On 2009-12-30 23:08, Christian Weisgerber wrote:

Today I tried to burn an audio CD.  This may actually be the first
time I ever did this.

I'm sure there are all kinds of GUIey tools, but I took the simple
route: expanded a few high-quality MP3s to raw PCM with mpg123,
then put a CD-R in the drive and burned it with

burncd -f /dev/acd0 -d audio *

That seemed to work.  Afterwards, I tried to play the CD with XMMS.
That also worked fine.

Then I put the CD into my car CD player, which was the reason for
the whole exercise.
11 tracks (ok)... playing track 1... (nothing)... ERROR CD.

The player does not like the CD.

Is there anything obvious I missed?



I was about to suggest adding fixate to the command line, like so

burncd -f /dev/acd0 -d audio * fixate

but then I read in the man page that it's ignored if -d is given
(obviously now that I think about it, since DAO normally implies
fixating). However, it may be worth trying anyway.

You may also want to try sysutils/cdrtools-devel, which is a lot more
competent than burncd. However, as you have an ATAPI CD burner, you will
need atapicam in your kernel. Either add

device atapicam

to your kernel config, recompile, install and reboot or

kldload atapicam

as root in the console or an xterm.

To automate it, add

atapicam_load=YES

to your /boot/loader.conf.


The user that runs cdrecord also requires write access to the /dev/xpt0 device
and the /dev/passN device! See devfs.conf(5) and devfs.rules(5) for making
device permissions permanent.

Roland


Roland:
Oh yes, I forgot about that. Thanks for adding it. :)

Christian:
Another thought occured to me. Though unlikely, it is possible that your 
car CD player doesn't play CD-R's or that it has problems with the 
particular brand CD-R's you used.

___
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


Supressing dd output

2009-12-23 Thread Rolf Nielsen

Hello everyone,

I'm wondering if there's a way to supress the summary output from dd. 
I'm working on a backup script, that encrypts the backups, and after 
encrypting overwrites the unencrypted file several times using dd. I've 
tried to redirect the output with 21  /dev/null but it doesn't work. 
Since I run the script from the daily_local variable in periodic.conf, 
and the script backs up 11 filsystems (ZFS) to separate files, the mail 
from periodic daily gets ridiculously long, and most of it being dd 
summaries.


I guess I could hack the source code of dd, but I'd prefer not to have 
to. Has anyone got any ideas?


Thanks in advance and Merry Christmas to all of you,

Rolf Nielsen
___
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: [NOT SOLVED]Re: Loading kernel modules for virtualbox via script

2009-12-21 Thread Rolf Nielsen

Leslie Jensen wrote:





You where right! One of them loaded the other so problem solved :-)

Thank you!


You where right, but it's the wrong order

They must be loaded in the reverse order.

Sorry





This is purely empirical knowledge, and I can't back it up by 
documentation. If module A requires module B to function, but not to 
load, module B will be loaded after module A. Have you tried changing 
which module you specifically load (i.e. if you now have module A 
specified in loader.conf and module B is demand loaded, try removing 
module and specify module B instead) to see if it reverses the order? It 
probably won't, since that would imply circular dependencies, but I'd 
try it anyway, if for nothing else, just to rule the possibility out.

___
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: Loading kernel modules for virtualbox via script

2009-12-21 Thread Rolf Nielsen

Leslie Jensen wrote:


Following the suggestion here:
http://forums.freebsd.org/showpost.php?p=45664postcount=5

To load two kernel modules via a script in /etc/rc.d/

Produces the following:

WARNING: Ignoring old-style startup script /etc/rc.d/

I found the answer here:

http://sourceforge.net/tracker/index.php?func=detailaid=2896643group_id=151951atid=782616 




I would like a suggestion on how to load the modules!

Thanks

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






Can't you load the modules from /boot/loader.conf? AFAIK VirtualBox 
places its modules in /boot/modules, which makes them loadable by 
load_modulename=YES in /boot/loader.conf, where modulename should be 
replaced by the filename of the module(s), omitting the leading path and 
the .ko suffix, e.g. nvidia_load=YES loads /boot/modules/nvidia.ko.

___
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: Loading kernel modules for virtualbox via script

2009-12-21 Thread Rolf Nielsen

Leslie Jensen wrote:


On 2009-12-21 17:35, Rolf Nielsen wrote:

Leslie Jensen wrote:


Following the suggestion here:
http://forums.freebsd.org/showpost.php?p=45664postcount=5

To load two kernel modules via a script in /etc/rc.d/

Produces the following:

WARNING: Ignoring old-style startup script /etc/rc.d/

I found the answer here:

http://sourceforge.net/tracker/index.php?func=detailaid=2896643group_id=151951atid=782616 





I would like a suggestion on how to load the modules!

Thanks

/Leslie







Can't you load the modules from /boot/loader.conf? AFAIK VirtualBox
places its modules in /boot/modules, which makes them loadable by
load_modulename=YES in /boot/loader.conf, where modulename should be
replaced by the filename of the module(s), omitting the leading path and
the .ko suffix, e.g. nvidia_load=YES loads /boot/modules/nvidia.ko.


Correction

I read in the same post that the loading order was important, and the 
way I understood it was that, if I load via loader.conf I could not be 
sure that the order is correct!








If the order is important, one probably depends on the other. Try 
loading only one of them and see if it automagically loads the other one.


Or I guess you could simply load them from /etc/rc.local. Though that 
is, AFAIK, no longer a recommended way to do things, it does still work.
I start a few things from there, simply because I couldn't be bothered 
with writing an rc.d script.

___
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: Any chance ZFS becoming default?

2009-12-19 Thread Rolf Nielsen

Reko Turja wrote:

under Other Kernel:
ZFS as default


So anyone running 32bit or under 2Gb of memory don't need to bother with 
FreeBSD anymore after 9.0 RELEASE?


Since when does changing the default action imply making the previous 
default impossible or even difficult? And since when does adding an 
ability to a piece of software imply removing another? I can't find 
anything suggesting that support for UFS is to be removed by 9.0. 
Neither from the kernel or from sysinstall.

___
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: editing a binary file

2009-12-17 Thread Rolf Nielsen

Anton Shterenlikht wrote:

I'm creating binary files in fortran.
Fortran adds 4 byte record delimiters at the beginning
and the end of each record, which, in the case of a binary
file, is just at the beginning and at the end of the file.
I need to delete these record delimiters, because the
software I use to visualise the binary files interprets
them as data. But I don't know how. I've looked at
hexdump and od, but those are only dumping (I think)
file contents, and I cannot see how to edit a file with them.

Any advice?

many thanks
anton



Hello Anton,

My bet would be /usr/ports/editors/hexedit. Been a while since I've used 
it, but AFAIR, it has a curses or a curses like interface, and it's 
fairly simple to use, yet sufficiently powerful for most normal binary 
editing. If you want a GUI, I believe gnome (and probably KDE as well) 
has its own hex editor.


Good luck,

Rolf
___
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: editing a binary file

2009-12-17 Thread Rolf Nielsen

Anton Shterenlikht wrote:

On Fri, Dec 18, 2009 at 02:09:58AM +0100, Rolf Nielsen wrote:

Anton Shterenlikht wrote:

I'm creating binary files in fortran.
Fortran adds 4 byte record delimiters at the beginning
and the end of each record, which, in the case of a binary
file, is just at the beginning and at the end of the file.
I need to delete these record delimiters, because the
software I use to visualise the binary files interprets
them as data. But I don't know how. I've looked at
hexdump and od, but those are only dumping (I think)
file contents, and I cannot see how to edit a file with them.

Any advice?

many thanks
anton


Hello Anton,

My bet would be /usr/ports/editors/hexedit. Been a while since I've used 
it, but AFAIR, it has a curses or a curses like interface, and it's 
fairly simple to use, yet sufficiently powerful for most normal binary 
editing. If you want a GUI, I believe gnome (and probably KDE as well) 
has its own hex editor.


thank you. hexedit does the job on small files, but is quite
clunky. If I've a xGB file and I need to delete the first and
the last record, this becomes quite hard, if at all possible.

I didn't appreciate it's not that simple.

Perhaps I can read a file with C and write back? I can't
remember if C supports binary files, and whether it
also writes some record delimiters.

many thanks
anton



How about one of these then?


http://www.freebsd.org/cgi/url.cgi?ports/editors/bless/pkg-descr
Main Features
-
  * Efficient editing of large data files.
  * Multilevel undo - redo operations.
  * Customizable data views.
  * Fast data rendering on screen.

http://www.freebsd.org/cgi/url.cgi?ports/editors/lfhex/pkg-descr
Features:
   - Low memory usage with respect to filesize. Opening a 2gig file 
requires

 only ~1.4megs of additional memory.
   - Fast load times.
   - Fast save times.
   - Infinite undo/redo.
   - Conversion dialog
   - Search function.
   - Shows modified regions in alternate color.
   - Scalable working area. Resize can use as much screen as you give it.
   - Multiple editing modes (can switch on the fly)
   - Runtime configurable bytes per column.
   - binary comparison user interface

I haven't tried either of them myself, but they do look promising.

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


Native PDF viewer

2009-12-16 Thread Rolf Nielsen

Hi all,

Since I don't have Linux compat layer activated, and I have no need for 
it, I'd like to ask if anyone can suggest a native PDF viewer (I'm not 
fond of the idea of installing a compat layer for just one application). 
Currently I'm using GIMP to view PDF files, but since GIMP opens them 
either as several single pictures (one per page) or one picture with 
several layers (one layer per page), it gets a little hard to browse 
through the pages, especially with big documents, e.g. my camera manual.


I founed several apps among the ports, too many to test them all, so if 
anyone has ideas or can tell me what the pros and cons are for some of 
those apps, I'd greatly appreciate it.


Cheers,

Rolf Nielsen
___
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: Native PDF viewer

2009-12-16 Thread Rolf Nielsen

Ed Jobs wrote:

On Wednesday 16 December 2009 05:04, Rolf Nielsen wrote:

Hi all,

Since I don't have Linux compat layer activated, and I have no need for
it, I'd like to ask if anyone can suggest a native PDF viewer (I'm not
fond of the idea of installing a compat layer for just one application).
Currently I'm using GIMP to view PDF files, but since GIMP opens them
either as several single pictures (one per page) or one picture with
several layers (one layer per page), it gets a little hard to browse
through the pages, especially with big documents, e.g. my camera manual.

I founed several apps among the ports, too many to test them all, so if
anyone has ideas or can tell me what the pros and cons are for some of
those apps, I'd greatly appreciate it.

Cheers,

Rolf Nielsen


hi, i'm either using epdfview (cause it's lightweight and low on deps) or 
emacs (which last week i discovered that it can display pdf files) depending 
on my mood.

if you are not familiar with emacs, epdfview is a very good (GTK) client.



Thanks Ed,

epdfview it is. Does exactly what I want. And does it in my native 
language. :)


Rolf
___
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: Root exploit for FreeBSD

2009-12-12 Thread Rolf Nielsen

Sam Fourman Jr. wrote:

Are you sure that OpenBSD has a better record?



I found this for loose reference.
http://en.wikipedia.org/wiki/OpenBSD#Security_and_code_auditing

I will say that even though on the surface OpenBSD appears to have a
better track record security wise
I tend to use FreeBSD for my desktop needs because of things like
Nvidia Graphics (esp now that there is amd64 support)


Where's that? The Nvidia site says nothing about it yet, and the 
makefile for x11/nvidia-driver still says ONLY_FOR_ARCHS=i386. I'm 
eagerly waiting for it, but I can't find anything other than a forum 
post (I don't have the address handy at this computer, but I know it's 
somewhere in the mailing list archive) from Zander at Nvidia corporation 
saying it's on its way.



also wine works in FreeBSD and some of my clinets still run windows apps.

I find FreeBSD is the middle ground the world needs between Linix and OpenBSD

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





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


Re: Dangerously Dedicated

2009-12-09 Thread Rolf Nielsen

RW wrote:

On Wed, 9 Dec 2009 11:42:31 -0800 (PST)
James Phillips anti_spam...@yahoo.ca wrote:


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? 


It means the former.
___
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





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?

___
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: malformed man pages

2009-12-05 Thread Rolf Nielsen

Sagara Wijetunga wrote:

Charlie Kester wrote:

On Fri 04 Dec 2009 at 22:38:22 PST Sagara Wijetunga wrote:

Michael Powell wrote:

Sagara Wijetunga wrote:

[snip]

We use /usr/bin/less from ftp://ftp.gnu.org/gnu/less, the
less-382.tar.gz, unpatched.


Why?

Does the less need to be patched in FreeBSD? If so, is there such a
patch exist?



Uhmm, this may sound a little strange, but why not use the one 
included as part of the system? In other words, there was no need to 
'install' less. Remove whatever you installed and use the right one. 
It even has a man page, e.g., man less and you will see a man page 
for the included one unless you've made a total mess of your man pages.


I suspect there may be a possibility of bringing Linuxisms to your 
approach to FreeBSD. While there may be some amount of crossover, 
FreeBSD is not Linux. Learn FreeBSD as if it were new to you and 
leave the Linuxisms aside.


-Mike



In Tomahawk Desktop, we try to make as much as possible all 
components of the OS are separately installable by the user, 
therefore, all components are separately upgradeable. We have a 
really running well OS based on FreeBSD sources though there are some 
hopefully minor issues to be resolved. We are about to release the OS

for developer preview.


In other words, you're only using the kernel from FreeBSD, but replacing
all or most of the userland stuff with your own versions? Not only the
stuff in /usr/local/bin but also stuff in /usr/bin?

As Michael said, that's a Linuxism.

___
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
Yes, mostly we use FreeBSD kernel and libs. Almost everything else is 
installed separately, eg. gcc, binutils, etc. are patched and installed 
under package users. We have so far installed about 550 packages, 
FreeBSD is just one of them. You can list what is installed from FreeBSD 
by running listpkg -s freebsd, -s is to get a sorted output.


But we still use a smaller number of FreeBSD userland stuff for the 
moment but the objective is to drop that also in our future versions and 
replace them with proper packages from original projects.


You may call it Linuxism but we have produced an user upgradeable 
system, our users do not have wait till ports are ready, eg, Qt 4.6 is 
not ready on FreeBSD ports tree, we are releasing Tomahawk Desktop with 
Qt 4.6, OpenVG, etc. To install KDE 4.4, you just download the sources 
and compile, that's all. We are not 100% ready but we are at least 99% 
there. Hopefully many may appreciate our efforts.


Regards
Sagara





___
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






So basically you're trying to create a GNU/FreeBSD (GNU OS with a 
FreeBSD kernel, analogously to GNU/Linux being GNU OS with a Linux 
kernel)? Why not just stick with Linux?

___
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


ZFS pools of consisting of several mirrors

2009-12-01 Thread Rolf Nielsen

Hello,

In experimenting a bit with ZFS, I, among other things, tried something 
like this


zpool create -R /test test mirror file[01]0 mirror file[01]1 mirror 
file[01]2 mirror file[01]3 mirror file[01]4 mirror file[01]5


This, according to zpool status, gives me a (file backed) pool 
consisting of six mirrors, each mirror consisting of two files. Now for 
my question. Exactly how is the pool built? Is it...


1. A RAID0 of the six mirrors?

2. A mirror of two RAID0 arrays, each array consisting of the six files 
file0[0-5] and file1[0-5] respectively?


3 and 4. Like 1 and 2 above, but with JBOD instead of RAID0?

5. Some other way I haven't thought about?

I guess it's 1 or 3, as the zpool status output shows me six mirrors, 
but which is it? And, provided my guess is correct, is there a way to 
implement 2 or 4 without involving geom_stripe or geom_concat?


Sincerely,

Rolf Nielsen
___
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: ZFS pools of consisting of several mirrors

2009-12-01 Thread Rolf Nielsen

Dan Nelson wrote:

In the last episode (Dec 01), Rolf Nielsen said:

In experimenting a bit with ZFS, I, among other things, tried something
like this

zpool create -R /test test mirror file[01]0 mirror file[01]1 mirror 
file[01]2 mirror file[01]3 mirror file[01]4 mirror file[01]5


This, according to zpool status, gives me a (file backed) pool consisting
of six mirrors, each mirror consisting of two files.  Now for my question. 
Exactly how is the pool built?  Is it...


1. A RAID0 of the six mirrors?

2. A mirror of two RAID0 arrays, each array consisting of the six files 
file0[0-5] and file1[0-5] respectively?


3 and 4. Like 1 and 2 above, but with JBOD instead of RAID0?

5. Some other way I haven't thought about?

I guess it's 1 or 3, as the zpool status output shows me six mirrors, 
but which is it? And, provided my guess is correct, is there a way to 
implement 2 or 4 without involving geom_stripe or geom_concat?


It's 1/3/5.  Each mirror is independant, and writes are balanced across the
mirrors based on space usage.  If you add another mirror to grow the pool,
it will get most of the writes until the usages balance out.

You usually don't want to build an array with options 2 or 4, since a single
drive failure will degrade the entire mirror half.  Consider if you have 


concat00 - file01 file02 file03 file04 file05
concat01 - file11 file12 file13 file14 file15
mirror0 - concat0 concat1

If file01 fails, concat00 fails, causing mirror0 to become degraded.  When
you replace file01, mirror0 will have to resynch all of concat00 from
concat01 since it doesn't know about the subdevices.  If you don't replace
file01, and then file15 fails, you have lost your entire volume (unless you
do some hackery to swap file05 and file15 to create a functioning concat01).



Good point. Thanks for the reply.
___
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: Loader does not load after reinstall with previous mirrored disk attached

2009-11-18 Thread Rolf Nielsen

Glen Barber wrote:

Hello,

First off, this is not a real I need help post, though there are a
few questions that I'd like to get insight on, if possible - it is
more for informative purposes in the archives, should someone run into
this very random problem in the future. Additionally, I believe this
is far too unlikely this will happen to many others to consider it to
be a problem, thus submitting a PR.

The story, cut down from its original 3 hour length:

For some time, I was dual-booting OpenSolaris and FreeBSD, on 500GB
SATA and 250GB IDE disks, respectively.  When I lost the need to run
OpenSolaris (Flash), I purchased a second 500GB SATA disk.  I added
the original SATA disk to gmirror, and synced the 250GB FreeBSD
install to the 500GB SATA drive.  Once that finished, I removed the
250GB disk, and installed the second 500GB disk, adding it to the
mirror.

All was fine, except I was not using all of the drive space available.
 This past weekend, I decided to create a slice to cover the remaining
250GB, initially to try ZFS, which failed for the following reason.
Here is where question 1 comes into play.

1.)  What is the correct way to completely break a gmirror setup,
replacing /dev/mirror/gm0 with the original /dev/adN configuration?
Is the assumption that once you initialize gmirror, you will never
need/want to go back to a single disk setup?  Is there a clean way to
fix boot0 so it does not look for a mirror, short of
'vfs.root.mountfrom' in loader.conf?

After rendering my system unbootable since I use a USB keyboard, and
was not able to do anything at the 'mountroot' prompt, I decided it
may be a good time for me to finally upgrade to 64-bit, where I
purchased an additional 4GB RAM and burned a bootonly amd64 disc.  It
wasn't a big deal for me since I knew my data was mirrored and
available.  However, I did consider purchasing a PS/2 keyboard to fix
the system... But, let's be honest, who can resist an upgrade? :-)

Here is the real reason for my post (besides archival purposes).
Because I never disconnected the secondary disk (from the original
mirror), it caused the loader to hang upon boot - no errors, just a
blinking cursor on the top-left side.  One answer I received about
this, which makes perfect sense considering what I saw when I was
trying to figure out what was happening (until I disconnected the
second disk to avoid writing over it accidentally), is that the new
loader and the previous loader were in conflict at boot.  Once the
secondary disk was disconnected, the system booted fine.  Which brings
me to my second question:

2.)  loader problem?  In hindsight, I can expect the loader to hang
with two MBRs, but should this be expected?  If the loader did not get
confused, any insight to what may have actually happened, since I
could not see any output whatsoever?

Regards,



Hi Glen,

I recently, successfully, broke a gmirror by simply issuing gmirror 
clear on all the disks, three in my case. Since gmirror stores metadata 
in the last sector of the disks (according to the gmirror man page) and 
everything else is untouched, issuing a gmirror clear reverts the disks 
to single disk usage, and since the data isn't striped, the system will 
be able to read the data and mount the filesystem(s).


This is my experience. However, I have found no documentation about 
breaking a gmirror, and I may just have been lucky. The data I had was 
properly backed up, so if it hadn't worked, I could have restored it, 
and since I needed the extra space, I gave it a try.


So, like I said, this worked for me, but I can't back my clam, neither 
by documentation nor reports from others, so I would still recommend 
backing your data up before issuing gmirror clear.


Cheers,

Rolf Nielsen
___
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: Effing HAL

2009-10-30 Thread Rolf Nielsen

Adam Vande More wrote:

On Fri, Oct 30, 2009 at 3:18 PM, Freminlins freminl...@gmail.com wrote:


2009/10/30 Adam Vande More amvandem...@gmail.com



Where's your config files, your errors logs, your stats?


I am not going to reply to you after this because you are blinkered. I'm
not going to waste my time with you. I've given you more than enough to feed
on, but you just can't smell the coffee.




Adam Vande More



MF.




Okay go play with your ISA bus, while the rest of us enjoy PCI.




Seems this is more about control than actual quality of software. One 
wants to keep control, one wants to release control completely to the 
software.


Personally I prefer to keep control, therefore I have disabled HAL. Does 
that mean my system is bad? I can't see that it does. Does it mean I say 
HAL is crap? It could, but I haven't tried enough to make such an 
accusation.


I'd like to draw a parallel (this will be pretty basic, but a more 
involved discussion will be far too much OT).
I'm type 1 diabetic, and I use an insulin pump. The basic purpose of 
having a pump instead of several injections a day, is replacing the 
long-acting insulin with a constant feed of rapid-acting insulin, thus 
mimicking a functioning pancreas. And for the longest time, that was all 
they did. And the user had to tell the pump how much insulin he/she 
needed, both the constant feed and with meals.
Nowdays, the pumps have evolved, and with most of them, one can simply 
tell it what a meal contains, and it calculates the proper amount of 
insulin. And the next generation will constantly measure the blood sugar 
and decide the amount of insulin automagically.


Just like those evolved pumps will be great for people who don't want to 
bother, HAL may be an excellent idea for people who don't want to 
congfigure everything themselves. And just like I prefer to decide how 
much insulin I want rather than having a machine decide for me, I prefer 
to configure my computer and all installed software rather than have 
software configure itself... Does that mean I am an idiot? If so, then 
I'm proud to be an idiot.

___
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: upgrading openoffice.org with portmaster

2009-06-24 Thread Rolf Nielsen

Boris Samorodov wrote:

On Wed, 24 Jun 2009 00:39:22 +0200 kenneth hatteland wrote:


when I start upgrading openoffice.org it switches from my localized
language build to standard us en.



Anyone have an idea how to force upgrade to stick with my norwegian
build with portmaster ??



Platform freebsd 7.2 stable (x86)


I have at /etc/make.conf for russian language:
-
.if ${.CURDIR:M*/editors/openoffice.org-3}
LOCALIZED_LANG=ru
.endif
-

I'm not sure if Norwegian is nb or something else though. But
you have an idea.


WBR


Norwegian should be no if I'm not mistaken.If you install 
ports-mgmt/portconf, you get a means to configure default knobs for 
ports, that's not dependant on which portmanager you use.

___
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