Re: Comparing two lists

2011-05-07 Thread Matthew Seaman
On 07/05/2011 01:09, Rolf Nielsen wrote:
 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?

comm(1)

Which does exactly what you want -- showing lines that belong to one
file or another, and lines that belong to both.  The limitation is that
the files need to be sorted before being compared.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


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


FreeBSD logon screen

2011-05-07 Thread pwnedomina

there is any logon screen manager for freebsd?
sometimes computer is idle for sometime and i would like to add a logon 
screen in 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: Comparing two lists

2011-05-07 Thread Chad Perrin
On Sat, May 07, 2011 at 02:09:26AM +0200, Rolf Nielsen wrote:
 
 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?

Disclaimer:

This should probably be done with Unix command line utilities, and most
likely by way of comm, as others explain here.  On the other hand, the
others explaining that have done an admirable job of giving you some
pretty comprehensive advice on that front before I got here, so I'll give
you an alternative approach that is probably *not* how you should do it.

Alternative Approach:

You could always use a programming language reasonably well-suited to
admin scripting.  The following is a one-liner in Ruby.

ruby -e 'foo = File.open(foo.txt).readlines.map {|l| l.chomp}; \
bar = File.open(bar.txt).readlines.map {|l| l.chomp }; \
foo.each {|num| puts num if bar.include? num }'

Okay, so I'm kinda stretching the definition of one-liner if I'm
using semicolons and escaping newlines.  If you really want to cram it
all into one line of code, you could do something like replace the
semicolons (and newline escapes) with the and keyword in each case.

http://pastebin.com/nPR42760

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


pgpHck3jffPmG.pgp
Description: PGP signature


Re: FreeBSD logon screen

2011-05-07 Thread Eitan Adler
On Sat, May 7, 2011 at 9:12 AM, pwnedomina pwnedom...@gmail.com wrote:
 there is any logon screen manager for freebsd?
 sometimes computer is idle for sometime and i would like to add a logon
 screen in it..

I'm guessing you mean a screen locker for X, not a logon screen.  Take
a look at x11/xlockmore or x11/xscreensaver.
If you do want a logon screen take a look at x11/gdm (gnome) and
x11/xdm both of which act as a display manager and a logon screen.



-- 
Eitan Adler
___
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: about ulpt speed

2011-05-07 Thread Wojciech Puchar


Larger postscript files are transmitted longer.

I am not sure but seems it is not printer problem. Any ideas what to 
check/change in ulpt?


It's worth trying unlpt.  But if the sending time is proportional to the file


already tried. The only difference is that printer doesn't know when each 
jobs end - so pressing cancel on printer by user mean nothing more will 
ever print after that ;) - as cancel works by ignoring data until end of 
job.


speed is same.


size, it's probably not that.


Yes it's not that. i tried making dumb 200MB postscript file and pressed 
cancel just after starting sending data. so printer just had to receive 
and ignore data - got 2.5MB/s with

cat file /dev/ulpt0

tried

dd if=file of=/dev/ulpt0 bs=1m - same speed.

in actual printouts it's more like 200kB/s or less.

It may be printer's problem but not it's postscript processor

Kyocera FS-3920DN have identical CPU and identical amount of RAM and 
handles printouts by LAN at 100Mbit/s speed even on complex postscript 
files.


Do you have any idea what to check more ?

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


Re: about ulpt speed

2011-05-07 Thread Wojciech Puchar

another idea.
ulpt shows like that

ugen1.3: Kyocera at usbus1
ulpt0: Kyocera Kyocera FS-2020D, class 0/0, rev 2.00/1.00, addr 3 on usbus1
ulpt0: using bi-directional mode

for parallel lpt port on some printers disabling bi-di mode solves most 
problems.


can this be disabled on ulpt or it is irrevelant?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD logon screen

2011-05-07 Thread Chad Perrin
On Sat, May 07, 2011 at 09:17:12AM -0400, Eitan Adler wrote:
 On Sat, May 7, 2011 at 9:12 AM, pwnedomina pwnedom...@gmail.com wrote:
  there is any logon screen manager for freebsd?
  sometimes computer is idle for sometime and i would like to add a logon
  screen in it..
 
 I'm guessing you mean a screen locker for X, not a logon screen.  Take
 a look at x11/xlockmore or x11/xscreensaver.
 If you do want a logon screen take a look at x11/gdm (gnome) and
 x11/xdm both of which act as a display manager and a logon screen.

A much simpler screen locker is slock:

 pkgsearch -d slock
/usr/ports/x11/slock
DESC:: 
Simple screen locker utility for X

WWW: http://tools.suckless.org/slock

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


pgpkG386Tugkg.pgp
Description: PGP signature


Re: Sending a Fax

2011-05-07 Thread Bill Tillman
I knew this thread would bring up some ironies. For the record it's all in 
their 
minds. E-Mails have been upheld in the US Court system as legal documents. And 
those people afraid or distrusting of e-mail have only to give me their fax 
number and watch how quickly I can send them bogus fax documents. Like I said, 
it's all in their minds. Faxing is no safer or more secure than any other form 
of comminication. Its simply a waste of ink, toner and paper as far as I'm 
concerned.

I just finished an assignment at a dinosaur of a company which still prints of 
sets of huge D and E size drawings for their estimating department. When I 
showed them the things you can do with a software package like Bluebeam Revu, 
they scoffed at it because it costs $189 per seat. I showed them how they were 
wasting $200 to $500 each week printing out huge sets of drawings. In just on 
month they could have bought enough licensed copied of Revu to account for this 
and then stop printing so much paper which only ends up in the trash. Their 
secretaries were still sending out proposals via fax even when the client 
requested a PDF be sent by e-mail. Their reason for this was, This is the only 
way we know how and we've done it like this for so long, we don't want to 
change.

IMHO...Faxing is so last century.





From: David Brodbeck g...@gull.us
To: FreeBSD Questions questi...@freebsd.org
Sent: Fri, May 6, 2011 1:30:58 PM
Subject: Re: Sending a Fax

On Fri, May 6, 2011 at 3:47 AM, Bill Tillman btillma...@yahoo.com wrote:
 I read the other replies to your post so let me put in my 2 cents worth. For 
the
 last few years, I have basically abandoned faxing in favor of e-mailing PDF 
and
 other document files. Paperless is not only more efficient but its green too.

Believe it or not, there are industries where faxing is still the
norm.  Many industrial suppliers want purchase orders by fax.  It also
seems to be the common way that pharmacies communicate with doctors'
offices.  These are conservative industries where email (and
especially, email attachments) are still viewed with some suspicion.
A lot of times these days the actual endpoint is a digital fax system,
though; sometimes the fax never actually reaches paper.
___
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: Sending a Fax

2011-05-07 Thread Reed Loefgren

On 05/07/11 08:30, Bill Tillman wrote:

I knew this thread would bring up some ironies. For the record it's all in their
minds. E-Mails have been upheld in the US Court system as legal documents. And
those people afraid or distrusting of e-mail have only to give me their fax
number and watch how quickly I can send them bogus fax documents. Like I said,
it's all in their minds. Faxing is no safer or more secure than any other form
of comminication. Its simply a waste of ink, toner and paper as far as I'm
concerned.

I just finished an assignment at a dinosaur of a company which still prints of
sets of huge D and E size drawings for their estimating department. When I
showed them the things you can do with a software package like Bluebeam Revu,
they scoffed at it because it costs $189 per seat. I showed them how they were
wasting $200 to $500 each week printing out huge sets of drawings. In just on
month they could have bought enough licensed copied of Revu to account for this
and then stop printing so much paper which only ends up in the trash. Their
secretaries were still sending out proposals via fax even when the client
requested a PDF be sent by e-mail. Their reason for this was, This is the only
way we know how and we've done it like this for so long, we don't want to
change.

IMHO...Faxing is so last century.





From: David Brodbeckg...@gull.us
To: FreeBSD Questionsquesti...@freebsd.org
Sent: Fri, May 6, 2011 1:30:58 PM
Subject: Re: Sending a Fax

On Fri, May 6, 2011 at 3:47 AM, Bill Tillmanbtillma...@yahoo.com  wrote:

I read the other replies to your post so let me put in my 2 cents worth. For
the
last few years, I have basically abandoned faxing in favor of e-mailing PDF

and

other document files. Paperless is not only more efficient but its green too.

Believe it or not, there are industries where faxing is still the
norm.  Many industrial suppliers want purchase orders by fax.  It also
seems to be the common way that pharmacies communicate with doctors'
offices.  These are conservative industries where email (and
especially, email attachments) are still viewed with some suspicion.
A lot of times these days the actual endpoint is a digital fax system,
though; sometimes the fax never actually reaches paper.
___
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


Bill,

I'd like to add to this that, in my opinion, the real issue these days 
is the emailing of unencrypted business papers. I take the position that 
*nothing* is ever deleted from an email server these days; or from those 
servers that are just relaying, no matter what the RFC says. I shake my 
head at what people send to their correspondents, that they would never 
think of discussing with a stranger. And yet they do just that via the 
spool.


Regards,

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


fix an audio conversion script to work through multiple directories and convert mp3s to ogg vorbis

2011-05-07 Thread Antonio Olivares
Dear kind FreeBSD users,

I have a dilemma, I have a collection of songs in mp3 form from old
cd's that I ripped.  Sadly, the mp3s can play but with a screeching
sound :(.  I have confirmed that by converting the mp3's to ogg vorbis
format, the screeching sound is lost.  So I have decided to convert my
songs to ogg vorbis.  I have found a script that converts from any
sound format to mp3, but I modified it to convert to ogg at 128 k
which is default.  The script that I modified is found at :

http://en.linuxreviews.org/HOWTO_Convert_audio_files

However, when I run it, I have to switch to the folder where the mp3's
are at and run

$ ./convert2ogg mp3
and when it is done
$ ./renamer

to rename the songs from *.mp3.ogg to *.ogg and then delete the mp3's
manually.

==
[olivares@acer-aspire-1 Download]$ cat renamer
#!/bin/sh

for i in *.mp3.ogg
 do
   mv $i $(echo $i|sed 's/mp3.ogg/ogg/g')
 done

[olivares@acer-aspire-1 Download]$ cat convert2ogg
#!/bin/sh
#
# Usage: convertoogg fileextention
#
if [ $1 =  ];then
  echo 'Please give a audio file extention as argument.'
  exit 1
fi

for i in *.$1
do
  if [ -f $i ]; then
  rm -f $i.wav
  mkfifo $i.wav
  mplayer \
   -quiet \
   -vo null \
   -vc dummy \
   -af volume=0,resample=44100:0:1 \
   -ao pcm:waveheader:file=$i.wav $i 
  dest=`echo $i|sed -e s/$1$/ogg/`
  oggenc -b 128 $i.wav $dest
  rm -f $i.wav
fi
done

==

My question is the following:
How can I run the script to recursively find all mp3's and convert
them to ogg vorbis(with ogg extension already in place/or rename them
in one step[instead of running two scripts] and deleting the mp3's)
all in one time?

Say I have a folder with songs:

Los Invasores de Nuevo Leon - Disc 1
  - Disc 2
  - Disc 3
 .
 .
   - Disc 20

And instead of going in manually and running the above scripts through
each folder, run a modified script that will recursively find all
mp3's in the directories and convert them to ogg, rename them and
delete the mp3's?  I know it can be done, but I am not expert and am
afraid to screw up [see thread of updating freebsd with portmaster -af
in case you have doubts].  I tend to shoot myself in the foot :(

Something like
$ find -iname *.mp3 -exec ./convert2ogg ~/Los\ Invsores\ de\ Nuevo\ Leon/mp3

or similar that can do the job with a modified convert2ogg file that
can rename the output correctly in the first step.  Any
suggestions/advice/comments/observations are welcome.  I will attempt
this on Monday on my machine at work since it is the one that has the
screeching sound :(

I will also try to get back a machine[the one with # portupgrade -af ,
# portmaster ?,etc]

Regards,

Antonio
___
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: Sending a Fax

2011-05-07 Thread Antonio Olivares
 I'd like to add to this that, in my opinion, the real issue these days is
 the emailing of unencrypted business papers. I take the position that
 *nothing* is ever deleted from an email server these days; or from those
 servers that are just relaying, no matter what the RFC says. I shake my head
 at what people send to their correspondents, that they would never think of
 discussing with a stranger. And yet they do just that via the spool.


I second your opinion.  Now that recording conversations  emails
between people, they save everything for later coming back with
lawsuits/blackmail/etc.  There are many examples but one that comes to
mind is the Brett Favre scandal with then Jet's reporter Jen Sterger.
That was a text, and *it apparently was saved since 2008* and it
became a scandal, this of course last year and now the *LOCKOUT * :(
These people make too much money already and they want more :(  Sorry
for drifting out of topic.

An example where paperless documents are preffered, take a look at IRS
they will require users to file electronically starting next year.
They want to save paper and this is a government agency.  Schools are
implementing this too, they want to send messages to their
teachers/workers/staff because ultiimately saving the environment is
more important (too many dead trees)

Regards,

Antonio
___
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 Chip Camden
Quoth Chad Perrin on Saturday, 07 May 2011:
 On Sat, May 07, 2011 at 02:09:26AM +0200, Rolf Nielsen wrote:
  
  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?
 
 Disclaimer:
 
 This should probably be done with Unix command line utilities, and most
 likely by way of comm, as others explain here.  On the other hand, the
 others explaining that have done an admirable job of giving you some
 pretty comprehensive advice on that front before I got here, so I'll give
 you an alternative approach that is probably *not* how you should do it.
 
 Alternative Approach:
 
 You could always use a programming language reasonably well-suited to
 admin scripting.  The following is a one-liner in Ruby.
 
 ruby -e 'foo = File.open(foo.txt).readlines.map {|l| l.chomp}; \
 bar = File.open(bar.txt).readlines.map {|l| l.chomp }; \
 foo.each {|num| puts num if bar.include? num }'
 
 Okay, so I'm kinda stretching the definition of one-liner if I'm
 using semicolons and escaping newlines.  If you really want to cram it
 all into one line of code, you could do something like replace the
 semicolons (and newline escapes) with the and keyword in each case.
 
 http://pastebin.com/nPR42760
 
 -- 
 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


You could even just output the intersection of the two lists:

 ruby -e 'puts File.open(foo.txt).readlines.map {|l| l.chomp}  \
 File.open(bar.txt).readlines.map {|l| l.chomp }'

And to comply with DRY:

 ruby -e 'def fl(f) File.open(f).readlines.map {|l| l.chomp}; end; \
 puts fl(foo.txt)  fl(bar.txt)'

-- 
.O. | Sterling (Chip) Camden  | http://camdensoftware.com
..O | sterl...@camdensoftware.com | http://chipsquips.com
OOO | 2048R/D6DBAF91  | http://chipstips.com


pgpMqeRRzE65f.pgp
Description: PGP signature


Re: Link and network level in the tcp/ip stack

2011-05-07 Thread Lokadamus

Am 06.05.2011 23:17, schrieb Erik Nørgaard:

Hi:

This is a generic question about may, should and must:

I have the following setup:

   192.168.28/24
 +---+
 |.196 |.1
SRVGW- RN
 |.28 |.1
 +---+
   10.225.162/24

The server, SRV, has default gateway set to 192.168.28.1, no routing 
has been configured for the 10.225.162/24 network. The gateway is a 
router, no NAT or firewall. Yup, we do have this setup, don't ask why.


Now, the remote node RN pings the server on 192.168.28.196 fine, no 
problem. Then it pings 10.225.162.28 and get destination unreachable.


OK, so I did tcpdump first on the 10.225.162.28 interface, and saw 
icmp echo requests coming in, but no replies going out. Then I did 
tcpdump on the other interface and got this:


13:39:43.233419 arp who-has 192.168.28.1 tell 10.225.162.28

obviously no reply, wrong network.


Can your SRV (10.225.162.28) ping anything in 192.168.28?
I don't think, because your SRV is looking for its gateway, but never 
get an answer from it.

It's subnetmask is to small to reach another subnet.

Put another network card in it with an ip of 192.168.28 and all will 
working.


Sorry for my bad english ;(

Thanks, Erik
___
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: Sending a Fax

2011-05-07 Thread Polytropon
On Sat, 7 May 2011 07:30:29 -0700 (PDT), Bill Tillman btillma...@yahoo.com 
wrote:
 Like I said, 
 it's all in their minds. Faxing is no safer or more secure than any other 
 form 
 of comminication. Its simply a waste of ink, toner and paper as far as I'm 
 concerned.

I fully agree - especially in business. However, there are
FEW, and I may emphasize VERY FEW occassions where faxing
is a welcome solution.

Allow me to give one example - it's the only one I know. :-)

A friend pays his ISP monthly. Due to some mistake on his
side, he mixed some account numbers and got all his money
back, every month, while assuming he had paid. After six
months, the ISP cut his wire. He phoned them and asked for
the reason, and he was told that he didn't pay for a half
year. As he still had all the money on _his_ bank account,
he transferred it and sent a FAX of the banking receipt
to the ISP's accounting department. Less than one hour
later, he was back online.

Faxing is nice if you already have documents in paper form.
It's STUPID to fax if you generate the documents using some
means of modern IT (usually a PC, obviously), then PRINT
it, and THEN fax it - instead of using e-mail. It sounds
even more stupid if you do this internally (inside your
company).

But as I said, I've SEEN that.



 I just finished an assignment at a dinosaur of a company which still prints 
 of 
 sets of huge D and E size drawings for their estimating department. When I 
 showed them the things you can do with a software package like Bluebeam Revu, 
 they scoffed at it because it costs $189 per seat. I showed them how they 
 were 
 wasting $200 to $500 each week printing out huge sets of drawings. In just on 
 month they could have bought enough licensed copied of Revu to account for 
 this 
 and then stop printing so much paper which only ends up in the trash.

I thing you've been facing the common misbelief that
software is not allowed to cost anything, which leads
to either NOT using software, or using pirated copies.



 Their 
 secretaries were still sending out proposals via fax even when the client 
 requested a PDF be sent by e-mail.

Again something I recently encountered: We can't send you a
PDF file. - as the result of being UNABLE to use their everyday
software (export to PDF anyone?).

On the other hand, using a 10+ years old illegal copy of
a well-known... you know... :-)



 Their reason for this was, This is the only 
 way we know how and we've done it like this for so long, we don't want to 
 change.

This attitude will always be funny (for us) when the
technical basis of some procedure is removed (due to
evolution in technology). Then, they surprisingly
and right now encounter problems they can't solve.
And then, it gets REALLY expensive.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How to specify ssid to ifconfig if it begins with '0x'?

2011-05-07 Thread Yuri

ifconfig(8) says:
The SSID is a string up to 32 characters in length and may be specified 
as either a normal string or in hexadecimal when preceded by ‘0x’.


But what if ssid actually begins with ASCII 0x?
'ifconfig wlan0 list scan' shows that my ssid is 0x000. Specifying ssid 
\\0x000 doesn't help. How to specify SSID beginning with 0x?


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: Sending a Fax

2011-05-07 Thread Polytropon
On Sat, 07 May 2011 10:29:46 -0600, Reed Loefgren rloefg...@forethought.net 
wrote:
 I'd like to add to this that, in my opinion, the real issue these days 
 is the emailing of unencrypted business papers.

You do not have ANY idea of how clueless people can be,
do you? :-)

Again, I've seen in REALITY that it was NO PROBLEM for
me to obtain classified and secret documents via a
chain of unencrypted and unprotected WLAN and Windows
shares. No e-mail magic involved. I could even use the
company's printer to tell them the surprising facts. :-)



 I take the position that 
 *nothing* is ever deleted from an email server these days; or from those 
 servers that are just relaying, no matter what the RFC says.

I think so, too, especially if legislation encourages
the providers of those services to store all the messages
they handle for investigation purposes. You can imagine
the standard arguments for that procedures...



 I shake my 
 head at what people send to their correspondents, that they would never 
 think of discussing with a stranger.

This is a result of PC on, brain off. :-)

Popular intant messengers sometimes are even more problematic,
i. e. when the terms of use for those services state that IF
you use the service, you delegate all your rights on the
messages written to the provider of the service.

Bob: i made great invention today will bring many money
Tim: cool tell me more !

I'm sure you know what I'm talking about. :-)
-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD logon screen

2011-05-07 Thread pwnedomina

Em 07-05-2011 14:15, Chad Perrin escreveu:

On Sat, May 07, 2011 at 09:17:12AM -0400, Eitan Adler wrote:

On Sat, May 7, 2011 at 9:12 AM, pwnedominapwnedom...@gmail.com  wrote:

there is any logon screen manager for freebsd?
sometimes computer is idle for sometime and i would like to add a logon
screen in it..

I'm guessing you mean a screen locker for X, not a logon screen.  Take
a look at x11/xlockmore or x11/xscreensaver.
If you do want a logon screen take a look at x11/gdm (gnome) and
x11/xdm both of which act as a display manager and a logon screen.

A much simpler screen locker is slock:

   pkgsearch -d slock
 /usr/ports/x11/slock
 DESC::
 Simple screen locker utility for X

 WWW: http://tools.suckless.org/slock


how can i configure slock to work properly?
___
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: Link and network level in the tcp/ip stack

2011-05-07 Thread Arun
Niether it is a problem of small subnet not NIC card. The problem is of routing 
entries.
 
Just add default route at your node 10.225.162.28, and make the default GW for 
this route as  192.168.28.0/24 or the connected interface. Your SRV node should 
pass it to its default gw 192.168.28.1 which should take care of forwarding it 
to the destination RN. If your SRV node could forward the ping reply then add a 
specific route there like - pkt comes from 10.225.162.0 then forward it to 
192.168.28.1.
Thanks.

__
Before printing, think about your ENVIRONMENTAL responsibility.



 
 --- On Sun, 5/8/11, Lokadamus lokada...@gmx.de wrote:


From: Lokadamus lokada...@gmx.de
Subject: Re: Link and network level in the tcp/ip stack
To: Erik Nørgaard norga...@locolomo.org
Cc: questi...@freebsd.org
Received: Sunday, May 8, 2011, 12:22 AM


Am 06.05.2011 23:17, schrieb Erik Nørgaard:
 Hi:
 
 This is a generic question about may, should and must:
 
 I have the following setup:
 
    192.168.28/24
  +---+
  |.196         |.1
 SRV        GW- RN
  |.28         |.1
  +---+
    10.225.162/24
 
 The server, SRV, has default gateway set to 192.168.28.1, no routing has been 
 configured for the 10.225.162/24 network. The gateway is a router, no NAT or 
 firewall. Yup, we do have this setup, don't ask why.
 
 Now, the remote node RN pings the server on 192.168.28.196 fine, no problem. 
 Then it pings 10.225.162.28 and get destination unreachable.
 
 OK, so I did tcpdump first on the 10.225.162.28 interface, and saw icmp echo 
 requests coming in, but no replies going out. Then I did tcpdump on the other 
 interface and got this:
 
 13:39:43.233419 arp who-has 192.168.28.1 tell 10.225.162.28
 
 obviously no reply, wrong network.
 
Can your SRV (10.225.162.28) ping anything in 192.168.28?
I don't think, because your SRV is looking for its gateway, but never get an 
answer from it.
It's subnetmask is to small to reach another subnet.

Put another network card in it with an ip of 192.168.28 and all will working.

Sorry for my bad english ;(
 Thanks, Erik
 ___
 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
___
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: fix an audio conversion script to work through multiple directories and convert mp3s to ogg vorbis

2011-05-07 Thread Chris Hill

On Sat, 7 May 2011, Antonio Olivares wrote:


My question is the following:
How can I run the script to recursively find all mp3's and convert them 
to ogg vorbis(with ogg extension already in place/or rename them in one 
step[instead of running two scripts] and deleting the mp3's) all in one 
time?


I had a similar (but not identical) problem, and I wrote a script to solve 
it. I wanted to recursively go through a directory tree, find flac files, 
and make mp3s of them while transferring over the ID3 tags, while keeping 
a duplicate directory structure for the mp3s. And don't do the conversion 
if the file already exists.


My script is based on traverse2.sh by Steve Parker, which is at 
http://steve-parker.org/sh/eg/directories/. His tutorial site is extremely 
helpful, and I recommend it.


My script is at http://pastebin.com/77NRE6SZ - maybe you can adapt it to 
your needs.


HTH.

--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging / ]
___
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: firefox-4.0.1,1 crashes

2011-05-07 Thread Janos Dohanics
On Fri, 06 May 2011 23:45:25 +0200
Herbert J. Skuhra h.sku...@gmail.com wrote:

 On Fri, 6 May 2011 09:31:57 -0400
 Janos Dohanics w...@3dresearch.com wrote:
 
 After updating Firefox and all the ports it depends on,
 firefox-4.0.1,1 crashes when trying to use any part of the toolbar
 or the pull-down menu.
 
 I have posted the gdb output:
 
 http://wwwp.3dresearch.com/firefox.bt
 
 I have also recently rebuilt kernel and world (FreeBSD 8.2-STABLE
 i386)
 
 Have you rebuilt your kernel without options P1003_1B_SEMAPHORES?
 
 man sem
 
 -Herbert

Thanks for the pointer - there is no options P1003_1B_SEMAPHORES in
my kernel configuration.

However, now that you mentioned this option, I found this thread:

http://lists.freebsd.org/pipermail/freebsd-questions/2011-January/226492.html

So, perhaps I should rebuild the kernel with this option - I'll let you
know.

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


thunderbird-3.1.10 build error

2011-05-07 Thread Janos Dohanics
Trying to build thunderbird-3.1.10 on a FreeBSD 8.2-STABLE amd64
machine and getting this error:

gmake[4]: Entering directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import'
gmake[6]: Entering directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/extensions/smime/build'
Makefile:84: *** missing separator.  Stop.
gmake[6]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/extensions/smime/build'
gmake[5]: *** [export] Error 2
gmake[5]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/extensions/smime'
gmake[4]: *** [smime_export] Error 2
gmake[4]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/extensions'
gmake[3]: *** [extensions_export] Error 2
gmake[3]: *** Waiting for unfinished jobs
gmake[5]: Entering directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/public'
/usr/ports/mail/thunderbird/work/comm-1.9.2/mozilla/config/nsinstall -D 
../../../mozilla/dist/idl
/usr/ports/mail/thunderbird/work/comm-1.9.2/mozilla/config/nsinstall -D 
../../../mozilla/dist/idl
/usr/ports/mail/thunderbird/work/comm-1.9.2/mozilla/config/nsinstall -R -m 644 
nsIImportService.idl nsIImportModule.idl nsIImportMail.idl 
nsIImportMailboxDescriptor.idl nsIImportGeneric.idl nsIImportAddressBooks.idl 
nsIImportABDescriptor.idl nsIImportSettings.idl nsIImportMimeEncode.idl 
nsIImportFieldMap.idl nsIImportFilters.idl ../../../mozilla/dist/idl
/usr/ports/mail/thunderbird/work/comm-1.9.2/mozilla/config/nsinstall -R -m 644 
_xpidlgen/nsIImportService.h _xpidlgen/nsIImportModule.h 
_xpidlgen/nsIImportMail.h _xpidlgen/nsIImportMailboxDescriptor.h 
_xpidlgen/nsIImportGeneric.h _xpidlgen/nsIImportAddressBooks.h 
_xpidlgen/nsIImportABDescriptor.h _xpidlgen/nsIImportSettings.h 
_xpidlgen/nsIImportMimeEncode.h _xpidlgen/nsIImportFieldMap.h 
_xpidlgen/nsIImportFilters.h ../../../mozilla/dist/include 
gmake[5]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/public'
gmake[5]: Entering directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/src'
gmake[5]: Nothing to be done for `export'.
gmake[5]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/src'
gmake[5]: Entering directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/text/src'
gmake[5]: Nothing to be done for `export'.
gmake[5]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/text/src'
gmake[5]: Entering directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/comm4x/public'
/usr/ports/mail/thunderbird/work/comm-1.9.2/mozilla/config/nsinstall -D 
../../../../mozilla/dist/idl
gmake[5]: Entering directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/comm4x/src'
gmake[5]: Nothing to be done for `export'.
gmake[5]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/comm4x/src'
/usr/ports/mail/thunderbird/work/comm-1.9.2/mozilla/config/nsinstall -D 
../../../../mozilla/dist/idl
/usr/ports/mail/thunderbird/work/comm-1.9.2/mozilla/config/nsinstall -R -m 644 
nsIComm4xProfile.idl ../../../../mozilla/dist/idl
/usr/ports/mail/thunderbird/work/comm-1.9.2/mozilla/config/nsinstall -R -m 644 
_xpidlgen/nsIComm4xProfile.h ../../../../mozilla/dist/include 
gmake[5]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/comm4x/public'
gmake[5]: Entering directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/build'
gmake[5]: Nothing to be done for `export'.
gmake[5]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import/build'
gmake[4]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews/import'
gmake[3]: Leaving directory 
`/usr/ports/mail/thunderbird/work/comm-1.9.2/mailnews'
gmake[2]: *** [export_tier_app] Error 2
gmake[2]: Leaving directory `/usr/ports/mail/thunderbird/work/comm-1.9.2'
gmake[1]: *** [tier_app] Error 2
gmake[1]: Leaving directory `/usr/ports/mail/thunderbird/work/comm-1.9.2'
gmake: *** [default] Error 2
*** Error code 1

Stop in /usr/ports/mail/thunderbird.
*** Error code 1

Stop in /usr/ports/mail/thunderbird.

I'd appreciate your expert advice...

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


Re: FreeBSD logon screen

2011-05-07 Thread Chad Perrin
On Sat, May 07, 2011 at 09:40:56PM +0100, pwnedomina wrote:

 how can i configure slock to work properly?

It should just work.  You can either trigger it by entering the slock
command in a terminal emulator or by setting up a keyboard shortcut,
desktop icon, whatever, in your window manager of choice that executes
the slock command for you.  To get it to unlock, just type in the
password for the user account logged in to X before you locked the X
Window System display and hit Enter.

For more about slock and other options for locking your screen, you can
check out this article:

Lock Your Screen While Away From The Computer
http://blogs.techrepublic.com.com/security/?p=4504

I hope that helps.

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


pgpcByVmNU0R9.pgp
Description: PGP signature


Re: Link and network level in the tcp/ip stack

2011-05-07 Thread Arun
Correction - read NOT in line : If your SRV node could NOT forward the ping 
reply then add a ...

Niether it is a problem of small subnet nor NIC card. The problem is of routing 
entries.
 
Just add default route at your node 10.225.162.28, and make the default GW for 
this route as  192.168.28.0/24 or the connected interface. Your SRV node should 
pass it to its default gw 192.168.28.1 which should take care of forwarding it 
to the destination RN. If your SRV node could NOT forward the ping reply then 
add a specific route there like - pkt comes from 10.225.162.0 then forward it 
to 192.168.28.1.
Thanks.

__
Before printing, think about your ENVIRONMENTAL responsibility.


--- On Sun, 5/8/11, Arun p...@yahoo.com wrote:


From: Arun p...@yahoo.com
Subject: Re: Link and network level in the tcp/ip stack
To: Erik Nørgaard norga...@locolomo.org, Lokadamus lokada...@gmx.de
Cc: questi...@freebsd.org
Received: Sunday, May 8, 2011, 2:00 AM


Niether it is a problem of small subnet not NIC card. The problem is of routing 
entries.
 
Just add default route at your node 10.225.162.28, and make the default GW for 
this route as  192.168.28.0/24 or the connected interface. Your SRV node should 
pass it to its default gw 192.168.28.1 which should take care of forwarding it 
to the destination RN. If your SRV node could forward the ping reply then add a 
specific route there like - pkt comes from 10.225.162.0 then forward it to 
192.168.28.1.
Thanks.

__
Before printing, think about your ENVIRONMENTAL responsibility.



 
 --- On Sun, 5/8/11, Lokadamus lokada...@gmx.de wrote:


From: Lokadamus lokada...@gmx.de
Subject: Re: Link and network level in the tcp/ip stack
To: Erik Nørgaard norga...@locolomo.org
Cc: questi...@freebsd.org
Received: Sunday, May 8, 2011, 12:22 AM


Am 06.05.2011 23:17, schrieb Erik Nørgaard:
 Hi:
 
 This is a generic question about may, should and must:
 
 I have the following setup:
 
    192.168.28/24
  +---+
  |.196         |.1
 SRV        GW- RN
  |.28         |.1
  +---+
    10.225.162/24
 
 The server, SRV, has default gateway set to 192.168.28.1, no routing has been 
 configured for the 10.225.162/24 network. The gateway is a router, no NAT or 
 firewall. Yup, we do have this setup, don't ask why.
 
 Now, the remote node RN pings the server on 192.168.28.196 fine, no problem. 
 Then it pings 10.225.162.28 and get destination unreachable.
 
 OK, so I did tcpdump first on the 10.225.162.28 interface, and saw icmp echo 
 requests coming in, but no replies going out. Then I did tcpdump on the other 
 interface and got this:
 
 13:39:43.233419 arp who-has 192.168.28.1 tell 10.225.162.28
 
 obviously no reply, wrong network.
 
Can your SRV (10.225.162.28) ping anything in 192.168.28?
I don't think, because your SRV is looking for its gateway, but never get an 
answer from it.
It's subnetmask is to small to reach another subnet.

Put another network card in it with an ip of 192.168.28 and all will working.

Sorry for my bad english ;(
 Thanks, Erik
 ___
 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
___
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: i messed up, need to do fsck and also uncomment the /usr line if /etc/fstab

2011-05-07 Thread Chris Rees
On 7 May 2011 04:31, Yuri Pankov yuri.pan...@gmail.com wrote:

 On Fri, May 06, 2011 at 10:06:31PM -0400, Henry Olyer wrote:
  Woe is me.
 
  First, I simply messed up, happens to us all from time to time.  I lost
  power on an laptop running 8.2.
 
  Restarted it but for some reason the fsck didn't run and I lost some
/usr
  files.
 
  I tried to do an fsck manually but because it's mounted I got nowhere.
 So I
  put a comment (#) in front of the /usr line for the /etc/fstab file.
 
  Now, I can't boot.
 
  I need what's on my disk -- of course!

 Boot to single user mode (4 in the boot menu), remount / read-write -
 mount -u -o rw /, edit /etc/fstab (you'll probably need to mount /usr
 manually if what's in /rescue doesn't work for you), reboot.

 You can run fsck from single user mode, as well.


 HTH,
 Yuri

Easiest way in single user if vi complains about termcap and you don't
understand ed...

As Yuri suggested:

# fsck /
# mount -ie /

Then you can just use sed in place;

# sed -i.bak -e 's,#\(.*/usr\),\1,' /etc/fstab

# fsck /usr
# reboot

Hope that helps!

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


Firefox URL Address Bar does not work under 8.1-RELEASE

2011-05-07 Thread Devin Teske
Hi list,

I hope that you can offer some suggestions to help make some sense of this odd 
situation. The situation is that we install FreeBSD 8.1-RELEASE onto standard 
Intel workstation hardware. We then add about 400 packages to the system. On 
top of that, we then add firefox.

Everything works great in the system, even firefox ... that is until you try 
and use the address bar in Firefox to enter a URL. Pressing ENTER has no 
effect. Neither does clicking the green arrow to the right of the URL in the 
address bar. Meanwhile, requesting firefox to visit a URL via the command-line 
works just fine. Clicking through pages and navigating links also works fine. 
The entire system is functional with except to the URL address bar in Firefox.

We then set up a second machine (also workstation-class hardware, though much 
newer). Same thing. System works superbly, with exception to firefox's address 
bar.

Co-workers and I are scratching our head over why this is happening.

We've tried both firefox-3.6 and firefox-3.5 from the FTP archives. We've 
always installed every dependency. Both browser versions have the same problem. 
Both machines have the same problem.

Specifically speaking, we've tried these two packages:

ftp://ftp-archive.freebsd.org/pub/FreeBSD/releases/i386/8.1-RELEASE/packages/All/firefox-3.6.4,1.tbz
ftp://ftp-archive.freebsd.org/pub/FreeBSD/releases/i386/8.1-RELEASE/packages/All/firefox-3.5.10,1.tbz
-- 
Cheers,
Devin Teske

- CONTACT INFORMATION -
Business Solutions Consultant II
FIS - fisglobal.com
510-735-5650 Mobile
510-621-2038 Office
510-621-2020 Office Fax
909-477-4578 Home/Fax
devin.te...@fisglobal.com

- LEGAL DISCLAIMER -
This message  contains confidential  and proprietary  information
of the sender,  and is intended only for the person(s) to whom it
is addressed. Any use, distribution, copying or disclosure by any
other person  is strictly prohibited.  If you have  received this
message in error,  please notify  the e-mail sender  immediately,
and delete the original message without making a copy.

- END TRANSMISSION -

_

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to specify ssid to ifconfig if it begins with '0x'?

2011-05-07 Thread Adam Vande More
On Sat, May 7, 2011 at 2:52 PM, Yuri y...@rawbw.com wrote:

 ifconfig(8) says:
 The SSID is a string up to 32 characters in length and may be specified as
 either a normal string or in hexadecimal when preceded by ‘0x’.

 But what if ssid actually begins with ASCII 0x?
 'ifconfig wlan0 list scan' shows that my ssid is 0x000. Specifying ssid
 \\0x000 doesn't help. How to specify SSID beginning with 0x?


0xNUL79NULNULNUL

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


Re: How to specify ssid to ifconfig if it begins with '0x'?

2011-05-07 Thread Adam Vande More
On Sat, May 7, 2011 at 4:59 PM, Adam Vande More amvandem...@gmail.comwrote:

 On Sat, May 7, 2011 at 2:52 PM, Yuri y...@rawbw.com wrote:

 ifconfig(8) says:
 The SSID is a string up to 32 characters in length and may be specified as
 either a normal string or in hexadecimal when preceded by ‘0x’.

 But what if ssid actually begins with ASCII 0x?
 'ifconfig wlan0 list scan' shows that my ssid is 0x000. Specifying ssid
 \\0x000 doesn't help. How to specify SSID beginning with 0x?


 0xNUL79NULNULNUL


err, 0x4879484848

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


Re: FreeBSD logon screen

2011-05-07 Thread pwnedomina

Em 07-05-2011 21:58, Chad Perrin escreveu:

On Sat, May 07, 2011 at 09:40:56PM +0100, pwnedomina wrote:

how can i configure slock to work properly?

It should just work.  You can either trigger it by entering the slock
command in a terminal emulator or by setting up a keyboard shortcut,
desktop icon, whatever, in your window manager of choice that executes
the slock command for you.  To get it to unlock, just type in the
password for the user account logged in to X before you locked the X
Window System display and hit Enter.

For more about slock and other options for locking your screen, you can
check out this article:

 Lock Your Screen While Away From The Computer
 http://blogs.techrepublic.com.com/security/?p=4504

I hope that helps.

i cant get into work, if i enter the slock command in the terminal it 
just show a black screen.

ive read the README file but its not helping.
my window manager is fluxbox..
___
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: Link and network level in the tcp/ip stack

2011-05-07 Thread Erik Nørgaard

On 7/5/11 4:12 PM, Arun wrote:


Just add default route at your node 10.225.162.28, and make the default
GW for this route as 192.168.28.0/24 or the connected interface. Your
SRV node should pass it to its default gw 192.168.28.1 which should take
care of forwarding it to the destination RN. If your SRV node could NOT
forward the ping reply then add a specific route there like - pkt comes
from 10.225.162.0 then forward it to 192.168.28.1.
Thanks.


Hi:

There can only be one default gateway, anything else doesn't make sense. 
I did try adding a specific route on SRV for RN such that pings arriving 
on 10.225.162.28 would be responded correctly. But, then RN can no 
longer reach 192.168.28.196. No surprise there really.


So, why do we have this setup? Well, some services like ssh that is used 
for administration must arrive on 192.168.28/24 where as the commercial 
service has a dedicated network on 10.225.162/24 and to ensure 
availability and bandwidth we cannot accept to have ssh coming in on 
that network.


I should add that this is a Red Hat Linux, I ask here since the FBSD 
implementation of the tcp/ip stack is considered the reference 
implementation.


So the question is which behaviour is correct, recommended or accepted? 
Stripping the link layer and reply according to the network layer, or 
keeping the link layer?


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


Re: FreeBSD logon screen

2011-05-07 Thread Polytropon
On Sat, 07 May 2011 23:26:21 +0100, pwnedomina pwnedom...@gmail.com wrote:
 i cant get into work, if i enter the slock command in the terminal it 
 just show a black screen.

I think that's what it's intended to do. If you need a
screensaver (including locking functionality) you may
be interested in xlockmore (comand: xlock) or xscreensaver.

Personally, I'm using xlock -mode lament here, and it
is associated to the big key on the top left, Help, on
my Sun USB keyboard so it's easy to reach when leaving
the workstation. :-)



 ive read the README file but its not helping.
 my window manager is fluxbox..

The program works independently from the window manager.
However, you can access the slock command to an icon,
menu entry or key combination, this is usually done by
the configuration utility of the window manager. In my
case (see above) it's the WindowMaker configuration tool
that assigns xlock to a specific key.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: about ulpt speed - solved

2011-05-07 Thread Wojciech Puchar
or clearly - found to be not FreeBSD problem. Printing from windoze using 
postscript gives exactly the same speed.

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


Re: FreeBSD logon screen

2011-05-07 Thread Chad Perrin
On Sun, May 08, 2011 at 12:54:21AM +0200, Polytropon wrote:
 On Sat, 07 May 2011 23:26:21 +0100, pwnedomina pwnedom...@gmail.com wrote:
  i cant get into work, if i enter the slock command in the terminal it 
  just show a black screen.
 
 I think that's what it's intended to do.

Yes, that's what it's intended to do.  It blanks out the screen, and you
have to enter your password to unlock the screen.  It's a very simple
screen locking program for X -- no more, and no less.

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


pgpx2f4kQwWdE.pgp
Description: PGP signature


Re: FreeBSD logon screen

2011-05-07 Thread pwnedomina

Em 08-05-2011 00:24, Chad Perrin escreveu:

On Sun, May 08, 2011 at 12:54:21AM +0200, Polytropon wrote:

On Sat, 07 May 2011 23:26:21 +0100, pwnedominapwnedom...@gmail.com  wrote:

i cant get into work, if i enter the slock command in the terminal it
just show a black screen.

I think that's what it's intended to do.

Yes, that's what it's intended to do.  It blanks out the screen, and you
have to enter your password to unlock the screen.  It's a very simple
screen locking program for X -- no more, and no less.

ive found xscreensaver more usefull. but how can i get in to work every 
time Xorg starts? should i add an entry to .xinitrc?

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


Re: FreeBSD logon screen

2011-05-07 Thread Polytropon
On Sun, 08 May 2011 02:00:26 +0100, pwnedomina pwnedom...@gmail.com wrote:
 ive found xscreensaver more usefull. but how can i get in to work every 
 time Xorg starts? should i add an entry to .xinitrc?
 what should be done?

This - or an entry to ~/.xsession (depends). As far as
I remember, adding an entry

xscreensaver 

should be fine. There are more than one binary installed,
so check out what they do:

xscreensaverxscreensaver-getimage-video
xscreensaver-commandxscreensaver-gl-helper
xscreensaver-demo   xscreensaver-hacks
xscreensaver-getimage   xscreensaver-text
xscreensaver-getimage-file

Note there's also

% man xscreensaver 

with some helpful information - launching and configuration
in detail.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


invalid partition error help needed.

2011-05-07 Thread John Bandur
I was wondering if you can help me I just got this error and i cant get into
my windows os -- I think this os just screw me over or I just did read
anything trying to install the os. But overall I need my windows os back.
Can you help me ? It says invalid partition, idk if there is way to delete
this invalid partition to recover my missing os. Please help. My name is
John and you can contract me by this email directly --
footballnejc...@gmail.com -- PS: I'm using my friend computer. I need
answers, please :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: Link and network level in the tcp/ip stack

2011-05-07 Thread Brian Seklecki

On 5/7/2011 6:41 PM, Erik Nørgaard wrote:

So the question is which behaviour is correct, recommended or accepted?
Stripping the link layer and reply according to the network layer, or
keeping the link layer?


This is the way it in every TCP/IP stack out there.

The routing decision for the reply IP packet of the ICMP message is made 
independently of the upper-OSI-layer TCP state.


In this instance, its a bit inconvenient for you, but having these 
layers abstracted makes for incredible flexibility in TCP/IP; the same 
thinking as small POSIX utilities work independently is more flexible.


--
Brian A. Seklecki bsekle...@probikesllc.com
CE-Pro Bikes, LLC
412-378-3823 (m)
PGP Key Available Upon Request
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD logon screen

2011-05-07 Thread pwnedomina

Em 08-05-2011 02:18, Polytropon escreveu:

On Sun, 08 May 2011 02:00:26 +0100, pwnedominapwnedom...@gmail.com  wrote:

ive found xscreensaver more usefull. but how can i get in to work every
time Xorg starts? should i add an entry to .xinitrc?
what should be done?

This - or an entry to ~/.xsession (depends). As far as
I remember, adding an entry

xscreensaver

should be fine. There are more than one binary installed,
so check out what they do:

xscreensaverxscreensaver-getimage-video
xscreensaver-commandxscreensaver-gl-helper
xscreensaver-demo   xscreensaver-hacks
xscreensaver-getimage   xscreensaver-text
xscreensaver-getimage-file

Note there's also

% man xscreensaver

with some helpful information - launching and configuration
in detail.




man xscreensaver dont display information about fluxbox wm.
ive added an entry to ~/.xsession but it dont works.
what should be done?
___
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: invalid partition error help needed.

2011-05-07 Thread Polytropon
On Sat, 7 May 2011 19:58:34 -0500, John Bandur footballnejc...@gmail.com 
wrote:
 I was wondering if you can help me I just got this error and i cant get into
 my windows os -- I think this os just screw me over or I just did read
 anything trying to install the os. But overall I need my windows os back.
 Can you help me ? It says invalid partition, idk if there is way to delete
 this invalid partition to recover my missing os. Please help. My name is
 John and you can contract me by this email directly --
 footballnejc...@gmail.com -- PS: I'm using my friend computer. I need
 answers, please :D.

You should try to use the tools that Windows intends
for solving such situation. In worst case, recover from
backup (which should return you to the previous state),
e. g. if you deleted the Windows partition and its
content (which means that you can't get back your
Windows).

Without knowledge _what_ gives you the error message
mentioned above, diagnostics are quite complicated, and
so are suggestions for repair procedures. Try to explain
what you did, how you did it, and how the error occurs.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD logon screen

2011-05-07 Thread Polytropon
On Sun, 08 May 2011 02:59:11 +0100, pwnedomina pwnedom...@gmail.com wrote:
 man xscreensaver dont display information about fluxbox wm.

Of course not. :-)

You need to consult the documentation of fluxbox in
order to find out how to integrate it (if needed),
but I think it's _not_ entirely needed, as xscreensaver
has its own configuration program, and if you load
it on session startup, it should run in the back-
ground and react on non-interactivity properly.
But as I said, I'm not using it, so you need to
check the documentation.



 ive added an entry to ~/.xsession but it dont works.
 what should be done?

Add it to ~/.xinitrc then - to be precise: add it to
the file where you also have the entry for your window
manager (in this case, the one with the exec fluxbox
line). Can only be one of those two. :-)




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD logon screen

2011-05-07 Thread pwnedomina

Em 08-05-2011 03:10, Polytropon escreveu:

On Sun, 08 May 2011 02:59:11 +0100, pwnedominapwnedom...@gmail.com  wrote:

man xscreensaver dont display information about fluxbox wm.

Of course not. :-)

You need to consult the documentation of fluxbox in
order to find out how to integrate it (if needed),
but I think it's _not_ entirely needed, as xscreensaver
has its own configuration program, and if you load
it on session startup, it should run in the back-
ground and react on non-interactivity properly.
But as I said, I'm not using it, so you need to
check the documentation.




ive added an entry to ~/.xsession but it dont works.
what should be done?

Add it to ~/.xinitrc then - to be precise: add it to
the file where you also have the entry for your window
manager (in this case, the one with the exec fluxbox
line). Can only be one of those two. :-)





ive added an entry to .xinitrc
# Start the screensaver daemon
xscreensaver -no-splash 

but i cant get into work. what is wrong?

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


Re: FreeBSD logon screen

2011-05-07 Thread pwnedomina

Em 08-05-2011 03:10, Polytropon escreveu:

On Sun, 08 May 2011 02:59:11 +0100, pwnedominapwnedom...@gmail.com  wrote:

man xscreensaver dont display information about fluxbox wm.

Of course not. :-)

You need to consult the documentation of fluxbox in
order to find out how to integrate it (if needed),
but I think it's _not_ entirely needed, as xscreensaver
has its own configuration program, and if you load
it on session startup, it should run in the back-
ground and react on non-interactivity properly.
But as I said, I'm not using it, so you need to
check the documentation.




ive added an entry to ~/.xsession but it dont works.
what should be done?

Add it to ~/.xinitrc then - to be precise: add it to
the file where you also have the entry for your window
manager (in this case, the one with the exec fluxbox
line). Can only be one of those two. :-)




dont know if this is important but when i execute xscreensaver-demo i 
get this output? can be this the problem?


(xscreensaver-demo:10596): libglade-WARNING **: Could not load support 
for `gno

me': Shared object libgnome.so not found, required by xscreensaver-demo
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
Failed to initialize GEM.  Falling back to classic.
dcop: not found
Failed to initialize GEM.  Falling back to classic.
xscreensaver-demo

(xscreensaver-demo:10596): libglade-WARNING **: Could not load support 
for `gno

me': Shared object libgnome.so not found, required by xscreensaver-demo
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
xscreensaver-demo: 19:40:18: Gtk-warning: GtkSpinButton: setting an 
adjustment

with non-zero page size is deprecated
Failed to initialize GEM.  Falling back to classic.
dcop: not found
Failed to initialize GEM.  Falling back to classic.

___
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