Re: QEMU + FreeBSD

2009-06-28 Thread Matthias Apitz
El día Friday, June 26, 2009 a las 10:37:14AM -0400, Jim escribió:

 I have installed FreeBSD 7.2 on my notebook in the last week, and
 installed QEmu as well.
 
 I cannot seem to get the network interface working. It works on my
 desktop machine, but that is running 7.0
 
 looking around, I tried to find some other options, and went here:
 http://wiki.freebsd.org/qemu
 
 and got stuck at this step:
  # sysctl net.link.ether.bridge_cfg=fxp0,tap0
  # sysctl net.link.ether.bridge.enable=1
 
 because nothing matching net.link.ether.bridge* exists.
 
 Does anyone know of a current good setup document?
 
 thanks,
 -Jim Stapleton

Jim,

You should have the following kernel modules loaded:

# kldload kqemu
# kldload if_tap
# kldload aio

Then you may either used a devd hook to ifconfig the interface or (as I
do) start 'qemu' as root. It will execute a shell script when it brings
up the interface as:

$ cat /usr/local/etc/qemu-ifup
#!/bin/sh
/sbin/ifconfig $1 172.20.0.1

(for the 'ifconfig' you must be root, or use devd hook, or 'sudo' in the
script). That's all. Set the other end of the NIC in the guest system to
IP 172.20.0.2 end the communication with the host OS (your FreeBSD 7.2)
should be fine. 

To reach the outerworld from the guest, I'm using NAT in the host OS.
Check the FreeBSD handbook how to enable this.

HIH

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
People who hate Microsoft Windows use Linux but people who love UNIX use 
FreeBSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Firefox crashes on yahoo.com

2009-06-28 Thread Frank Shute
On Sat, Jun 27, 2009 at 01:31:09PM +0530, Manish Jain wrote:

 
 Hi,
 
 This seems to be a strange problem with Firefox which I never 
 encountered on my old system. Both Firefox2 and Firefox3 work well the 
 other sites I have tried accessing, but crash on navigating to www.yahoo.com
 
 /usr/home/emmjanex # firefox3 http://www.yahoo.com 
 [1] 2668
 /usr/home/emmjanex # NP_Initialize
 New
 SetWindow
 SetWindow
 NewStream
 WriteReady
 Write
 decoding...
 The program 'firefox-bin' received an X Window System error.
 This probably reflects a bug in the program.
 The error was 'BadImplementation (server does not implement operation)'.
   (Details: serial 31 error_code 17 request_code 140 minor_code 5)
   (Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() 
function.)
 
 [1]+  Exit 1  firefox3 http://www.yahoo.com
 
 
 There is nothing relevant to the crash in Xorg.0.log or console.log
 

Have you tried Firefox3.5? It's in ports as www/firefox3-devel.

I just tried Yahoo! and had no problems.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


(no subject)

2009-06-28 Thread Anton

   Hello freebsd-questions,

 Please, help:

   Howto forward packet from Internet to some intranet address with IPFW?

   --

   --

   Best regards,

Anton= ;[1]mailto:an...@sng.by

Administrator

   Feel free to contact me

   via ICQ 363780596

   via Skype dobryak47

   via phone +375 29 3320987

References

   1. 3Dmailto:an...@sng.by;
___
freebsd-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: scripting suggestion: how to make this command shorter

2009-06-28 Thread gs_stol...@juno.com
On 6/27/09, Zhang Weiwu zhangwe...@realss.com wrote:
 Hello. I wrote this one-line command to fetch a page from a long uri,
 parse it twice: first time get subject  second time get content, and
 send it as email to me.

 $ w3m -dump
 'http://search1.taobao.com/browse/33/n-g,w6y4zzjaxxymvjomxy40--commen
d-0-all-33.htm?at_topsearch=1ssid=e-s5'
 | grep -A 100 ¶Ô±È | mail -a 'Content-Type: text/plain; charset=UTF-8' -s
 '=?UTF-8?B?'`w3m -dump
 'http://search1.taobao.com/browse/33/n-g,w6y4zzjaxxymvjomxy40--commen
d-0-all-33.htm?at_topsearch=1ssid=e-s5'
 | grep ÕÒµ½.*¼þ | base64 -w0`'?=' zhangwe...@realss.com


 The stupid part of this script is it fetches the page 2 times and parse
 2 times, thus making the command very long. If I can write the command
 in a way that the URI only appear once, then it is easier for me to
 maintain it. I plan to put it in cron yet avoid having to modify two
 places when the URI changes (and it does!).

 How do you suggest optimizing the one-liner?

   Whenever I have to look through a long file more than once, I 
copy the relevant sections into another file (a RAM file if it is short enough 
and I have the RAM) and then parse it there as many times as I need to do it.

Criminal Lawyers - Click here.
http://thirdpartyoffers.juno.com/TGL2141/fc/BLSrjpTOVoKXC2vT8bG75jmaBuBBqrFnzp3RY2ufk0rwdaSjMZVA5BqOKCM/
___
freebsd-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: (no subject)

2009-06-28 Thread Glen Barber
2009/6/28 Anton an...@sng.by:

   Hello freebsd-questions,

     Please, help:

   Howto forward packet from Internet to some intranet address with IPFW?


You'll get a better response if you have a subject in the email.

http://www.freebsd.org/doc/en/books/handbook/firewalls-ipfw.html

Forwarding is explained here, but not included in the example.


-- 
Glen Barber
___
freebsd-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 crashes on yahoo.com

2009-06-28 Thread Manish Jain

Frank Shute wrote:

On Sat, Jun 27, 2009 at 01:31:09PM +0530, Manish Jain wrote:


Hi,

This seems to be a strange problem with Firefox which I never 
encountered on my old system. Both Firefox2 and Firefox3 work well the 
other sites I have tried accessing, but crash on navigating to www.yahoo.com



/usr/home/emmjanex # firefox3 http://www.yahoo.com 
[1] 2668
/usr/home/emmjanex # NP_Initialize
New
SetWindow
SetWindow
NewStream
WriteReady
Write
decoding...
The program 'firefox-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
 (Details: serial 31 error_code 17 request_code 140 minor_code 5)
 (Note to programmers: normally, X errors are reported asynchronously;
  that is, you will receive the error a while after causing it.
  To debug your program, run it with the --sync command line
  option to change this behavior. You can then get a meaningful
  backtrace from your debugger if you break on the gdk_x_error() 
  function.)


[1]+  Exit 1  firefox3 http://www.yahoo.com


There is nothing relevant to the crash in Xorg.0.log or console.log



Have you tried Firefox3.5? It's in ports as www/firefox3-devel.

I just tried Yahoo! and had no problems.

Regards,




Hi Frank,

The problem is not restricted to firefox or yahoo.com. There are other 
sites too where this happens. I built Galeon from ports, and it shows 
exactly the same behaviour as firefox2/firefox3 for those sites. So does 
Epiphany (installed from the distribution media).


I doubt whether firefox-3.5 could solve the problem. This seems to be a 
problem with a core library in X or one of the graphics libraries.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
freebsd-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: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-28 Thread Pawel Jakub Dawidek
On Sat, Jun 27, 2009 at 06:20:49PM -0700, Marcel Moolenaar wrote:
 Using the last sector is not only flawed because it creates a race
 condition, it's flawed in the assumption that you can always make
 a geom part of a mirror by storing meta-data on the geom without
 causing corruption. This whole idea of using the last sector was
 so that a fully partitioned disk with data could be turned into a
 mirrored disk. A neat idea, but hardly the basis for a generic
 mirroring implementation when it silently corrupts a disk.

This wasn't the idea:) People started putting gmirror on top of
partitioned disk, because it was easier/simpler/faster than creating
mirror, partitioning and copying the data. I for one never put mirror on
already partitioned disk. Although it is sometimes safe to use the last
sector.  Gjournal already looks for UFS and if UFS is in place, it
figures out if the last sector is in use - it isn't if partition size is
not multiple of UFS block size.

 I think it's better to change gmirror to use the first sector on the
 provider. This never creates a race condition and as such, you don't
 need to invent a priority scheme, that has it's own set of flaws on
 top of it. The only downside is that it's not easy to make a fully
 partitioned and populated disk part of a mirror: one would need to
 move the data forward one sector to free the first sector. This we
 can actually do by inserting a GEOM that does it while I/O is still
 ongoing. The good thing is: we need a class that does exactly this
 for implementing the move verb in gpart.

There were two reasons to use the last sector instead of first:

1. You want to be able to boot from gmirror. If all your data will be
   moved forward your boot sectors and kernel will be harder to find.

2. For recovery reasons you may want to turn off gmirror and still be
   able to access your data.

Note that gmirror can handle the case where disk, slice and partition
share the same last sector - it simply stores provider size in its
metadata, so once it gets disk for tasting it detects its too big and
ignores it, then slice will be given for tasting, but it also has larger
size than expected and will be ignored as well. Finally partition will
be tasted and gmirror configured.

-- 
Pawel Jakub Dawidek   http://www.wheel.pl
p...@freebsd.org   http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!


pgpXtFT4O58hK.pgp
Description: PGP signature


Re[2]: ipfw fwd

2009-06-28 Thread Anton

   Hello Glen,

   Sunday, June 28, 2009, 11:47:41 AM, you wrote:

2009/6/28 Anton an...@sng.by:= /p

  Hello freebsd-questions,

Please, help:

  Howto forward packet from Internet t= o some intranet address
   with IPFW?

You'll get a better response if you have a subj= ect in the email.

   [1] http://www.freebsd.org/doc/en/books/handbook/firewa   lls-ipfw.html

Forwarding is explained here, but not included = in the example.

   Though, ipfw fwd is mentioned there - but their is no explanation ^-(

   --

   Best regards,

Anton   nbs= p;[2]mailto:an...@sng.by

Administrator

   Feel free to contact me

   via ICQ 363780596

   via Skype dobryak47

   via phone +375 29 3320987

References

   1. 3Dhttp://www.freebsd.org/doc/en/books/handbook/fi   2. 
3Dmailto:an...@sng.by;
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


BIND

2009-06-28 Thread Jack Raats

This morning I tried to install BIND, the DNS server.
I downloaded the handbook (English version) and tried to follow the 
instructions giving in the handbook.

But the handbook is outdated OR FreeBSD 7.2-RELEASE-p2 is not correct.
I'm missing make-localhost in /etc/namedb.

Can any help me???

Thanks
Jack 
___

freebsd-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 crashes on yahoo.com

2009-06-28 Thread Roland Smith
On Sun, Jun 28, 2009 at 02:24:03PM +0530, Manish Jain wrote:
  Have you tried Firefox3.5? It's in ports as www/firefox3-devel.
  
  I just tried Yahoo! and had no problems.

I tried yahoo with firefox3 on 7.2-RELEASE-p2 amd64 without problems.

 The problem is not restricted to firefox or yahoo.com. There are other 
 sites too where this happens. I built Galeon from ports, and it shows 
 exactly the same behaviour as firefox2/firefox3 for those sites. So does 
 Epiphany (installed from the distribution media).
 
 I doubt whether firefox-3.5 could solve the problem. This seems to be a 
 problem with a core library in X or one of the graphics libraries.

Are your ports up-to-date? Use portsnap(8) [first time: 'portsnap fetch
extract', afterwards 'portsnap fetch update'] to update your ports tree and
then portmaster(8) ['portmaster -a -B -d'].

If your ports are up-to-date, try rebuilding libX11 and the ports it
depends on ['portmaster -f -x libX11'].

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


pgpWGmqAZI8ZP.pgp
Description: PGP signature


IPFW: Need some help

2009-06-28 Thread Anton

   Hello all,

   I'm new to *nix and now, while configuring IPFW Firewall on FreeBSD
   7.2 = has stuck in a problem:

   After packet from my network is passed to natd demon - it is returning
   t= o firewall (it is normal, as I think ;-) ), but I see another
   abnormal thin= g: when it is returned to firewall, it does not come
   under rule which state= s to allow packet from some host in my
   network, and goes under rule which a= llows packets from FreeBSD box.

   I.e.: packet from 192.168.0.2, directed to 86.57.250.18 comes to
   freebsd= box. First, it comes to rule, which NATs it to interface ng0.
   Then, after = NAT rule, there is rule, which allows packet flow from
   192.168.0.2 to 86.57= .250.18 out via ng0. But, IPFW does not show,
   that any packet is allowed by= this rule - is rather shows that
   packets are allowed by another rule: allo= w all from me to any.

   Need help in explaining in this problem, and how to alter the things
   in = the way i need it (if it is real)

   --

   --

   Best regards,

Anton= ;[1]mailto:an...@sng.by

Administrator

   Feel free to contact me

   via ICQ 363780596

   via Skype dobryak47

   via phone +375 29 3320987

References

   1. 3Dmailto:an...@sng.by;
___
freebsd-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: BIND

2009-06-28 Thread Matthew Seaman

Jack Raats wrote:

This morning I tried to install BIND, the DNS server.
I downloaded the handbook (English version) and tried to follow the 
instructions giving in the handbook.

But the handbook is outdated OR FreeBSD 7.2-RELEASE-p2 is not correct.
I'm missing make-localhost in /etc/namedb.

Can any help me???


Your copy of the handbook out of date.  Try following these instructions:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


named startup problems upgrading from 7.1p4 to 7.1p5 or 7.1p6

2009-06-28 Thread Ian
Hi, I've been meaning to sort this out since the release of 7.1p5, but only 
just got around to it - I have an installation of 7.1 that runs bind and has 
been working fine up until I tried to update the system to 7.1p5 (using 
freebsd-update). As soon as I apply the update  reboot, named loads but the 
startup script hangs.

If I press Ctrl+C, the system continues to boot. If I then run /etc/rc.d/named 
start, named starts, but again the script hangs. I can do DNS lookups while 
named is running, so it seems to be functioning ok.
I tried adding various echo statements to /etc/rc.d/named and found that the 
script seems to run right through. The hang occurs where /etc/rc.subr echoes 
out Starting named after the named script has run and that's where things 
seem to stop! Nothing else that is started by the rc.d scripts hangs, so I'm 
guessing  /etc/rc.subr is ok.

I did a diff of /etc/rc.d/named before  after the upgrade from p4 to p5 (or 
p6 which has the same issue) and there are no changes to the file.
Nothing seems to be logged anywhere that shows a problem, so I really have no 
idea what to check next.

The only named entry in rc.conf is named_enable=YES. Doing a freebsd-update 
rollback restores normal operation and given that bind actually loads 7 seems 
to work apart fromthe hanging script, I suspect there's nothing wrong with my 
bind configuration. 

Any suggestions?

Cheers,
--
Ian
gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc


signature.asc
Description: This is a digitally signed message part.


Re: IPFW: Need some help

2009-06-28 Thread Neal Hogan
2009/6/28 Anton an...@sng.by:

   Hello all,

   I'm new to *nix and now, while configuring IPFW Firewall on FreeBSD
   7.2  has stuck in a problem:

   After packet from my network is passed to natd demon - it is returning
   t o firewall (it is normal, as I think ;-) ), but I see another
   abnormal thin g: when it is returned to firewall, it does not come
   under rule which state s to allow packet from some host in my
   network, and goes under rule which a llows packets from FreeBSD box.

   I.e.: packet from 192.168.0.2, directed to 86.57.250.18 comes to
   freebsd box. First, it comes to rule, which NATs it to interface ng0.
   Then, after  NAT rule, there is rule, which allows packet flow from
   192.168.0.2 to 86.57 .250.18 out via ng0. But, IPFW does not show,
   that any packet is allowed by this rule - is rather shows that
   packets are allowed by another rule: allo w all from me to any.


I'm no IPFW expert, but it seems to me that the packets are already in
and NAT'd. Then they're being redirected internally. Thus being
allowed from 'you' to any (Don't take this explanation as true. It's
merely my understanding from the brief look at the link Mr, Barber
sent you, which you read . . . right?)

   Need help in explaining in this problem, and how to alter the things
   in  the way i need it (if it is real)

Two suggestions for getting more specific help:

1) Look around on the web. There appear to be many discussion about
IPFW and NAT. (eg.,
http://freebsd.rogness.net/redirect.cgi?basic/nat.html).

2) Post your ruleset. This way, folk will know what to alter.



   --

   --

   Best regards,

    Anton             ;                [1]mailto:an...@sng.by

    Administrator

   Feel free to contact me

   via ICQ 363780596

   via Skype dobryak47

   via phone +375 29 3320987

 References

   1. 3Dmailto:an...@sng.by;
 ___
 freebsd-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: named startup problems upgrading from 7.1p4 to 7.1p5 or 7.1p6

2009-06-28 Thread Matthew Seaman

Ian wrote:
Hi, I've been meaning to sort this out since the release of 7.1p5, but only 
just got around to it - I have an installation of 7.1 that runs bind and has 
been working fine up until I tried to update the system to 7.1p5 (using 
freebsd-update). As soon as I apply the update  reboot, named loads but the 
startup script hangs.


If I press Ctrl+C, the system continues to boot. If I then run /etc/rc.d/named 
start, named starts, but again the script hangs. I can do DNS lookups while 
named is running, so it seems to be functioning ok.
I tried adding various echo statements to /etc/rc.d/named and found that the 
script seems to run right through. The hang occurs where /etc/rc.subr echoes 
out Starting named after the named script has run and that's where things 
seem to stop! Nothing else that is started by the rc.d scripts hangs, so I'm 
guessing  /etc/rc.subr is ok.


I did a diff of /etc/rc.d/named before  after the upgrade from p4 to p5 (or 
p6 which has the same issue) and there are no changes to the file.
Nothing seems to be logged anywhere that shows a problem, so I really have no 
idea what to check next.


The only named entry in rc.conf is named_enable=YES. Doing a freebsd-update 
rollback restores normal operation and given that bind actually loads 7 seems 
to work apart fromthe hanging script, I suspect there's nothing wrong with my 
bind configuration. 


Any suggestions?


Are you sure it's not the thing which starts immediately *after* named that is
hanging?  Try running:

  # rcorder /etc/rc.d/* /usr/local/etc/rc.d/* 


and see what should come next.  Note this command shows the order in which
all of the rc scripts in those directories would run, not just the ones you have
enabled in rc.conf, so you may well have to skip a few lines until you get to
something that is enabled.

Cheers,

Matthew


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



signature.asc
Description: OpenPGP digital signature


Re: named startup problems upgrading from 7.1p4 to 7.1p5 or 7.1p6

2009-06-28 Thread Ian
On Sun, 28 Jun 2009 21:43:49 Matthew Seaman wrote:
 Ian wrote:
  Hi, I've been meaning to sort this out since the release of 7.1p5, but
  only just got around to it - I have an installation of 7.1 that runs bind
  and has been working fine up until I tried to update the system to 7.1p5
  (using freebsd-update). As soon as I apply the update  reboot, named
  loads but the startup script hangs.
 
  If I press Ctrl+C, the system continues to boot. If I then run
  /etc/rc.d/named start, named starts, but again the script hangs. I can do
  DNS lookups while named is running, so it seems to be functioning ok.
  I tried adding various echo statements to /etc/rc.d/named and found that
  the script seems to run right through. The hang occurs where /etc/rc.subr
  echoes out Starting named after the named script has run and that's
  where things seem to stop! Nothing else that is started by the rc.d
  scripts hangs, so I'm guessing  /etc/rc.subr is ok.
 
  I did a diff of /etc/rc.d/named before  after the upgrade from p4 to p5
  (or p6 which has the same issue) and there are no changes to the file.
  Nothing seems to be logged anywhere that shows a problem, so I really
  have no idea what to check next.
 
  The only named entry in rc.conf is named_enable=YES. Doing a
  freebsd-update rollback restores normal operation and given that bind
  actually loads 7 seems to work apart fromthe hanging script, I suspect
  there's nothing wrong with my bind configuration.
 
  Any suggestions?

 Are you sure it's not the thing which starts immediately *after* named that
 is hanging?  Try running:

# rcorder /etc/rc.d/* /usr/local/etc/rc.d/*

 and see what should come next.  Note this command shows the order in which
 all of the rc scripts in those directories would run, not just the ones you
 have enabled in rc.conf, so you may well have to skip a few lines until you
 get to something that is enabled.

   Cheers,

   Matthew

Well the fact that if I run  /etc/rc.d/named manually after the system has 
booted, the script also hangs suggests it's not the next process
I have just check however  ntpdate is the next one in the list to be started 
and that does start correctly - you can see it report the clock being 
adjusted. Also, when you do a Ctrl+C to break the named script on bootup, it 
says Script /etc/rc.d/named interrupted.

Something I've just realised is that named stays loaded even when you 'break' 
the script. on bootup and DNS lookups work (I didn't think that was the case 
originally, but it is).

Cheers,
-- 
Ian
gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc


signature.asc
Description: This is a digitally signed message part.


Re: xfburn fails with 'Undefined symbol __malloc_lock'

2009-06-28 Thread Markus Hoenicka
Mel Flynn writes:
  -PP will fail if for some reason the package is not available on the 
  servers. 
  It is better to use -P when crossing major releases, so that any restricted 
  packages that are unavailable on the buildservers are built from source.
  I suspect this is the root of the problem, though they look to be available:

I resorted to reinstalling everything, using -Pk instead of -PP this
time. This apparently helped fix this problem.

thanks
Markus

-- 
Markus Hoenicka
markus.hoeni...@cats.de
(Spam-protected email: replace the quadrupeds with mhoenicka)
http://www.mhoenicka.de
___
freebsd-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: xfburn fails with 'Undefined symbol __malloc_lock'

2009-06-28 Thread Markus Hoenicka
Manolis Kiagias writes:
  Upgrading between major versions requires all installed ports to be
  rebuilt, so they get linked to the new versions of the libraries.
  I suppose you missed this step, older apps may still work but there is a
  problem installing new ones.
  
[...]
  (AFAIR,  if you upgraded via source, you will also need to run make
  delete-old-libs in /usr/src after successfully recompiling ports)

This was kind of an experience, as make delete-old-libs almost bricked
my laptop. Apparently portupgrade failed to upgrade quite a few apps,
for whatever reasons. I deleted all cached packages to make sure
portupgrade -P would fetch the newest. I also had to coerce
/usr/bin/objformat to return elf as the installed objformat
prevented building many ports that could not be installed as
packages. Anyway, everything seems to work ok now.

thanks a lot
Markus

-- 
Markus Hoenicka
markus.hoeni...@cats.de
(Spam-protected email: replace the quadrupeds with mhoenicka)
http://www.mhoenicka.de
___
freebsd-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: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-28 Thread Ivan Voras
2009/6/28 Marcel Moolenaar xcl...@mac.com:

 Using the last sector is not only flawed because it creates a race
 condition, it's flawed in the assumption that you can always make
 a geom part of a mirror by storing meta-data on the geom without
 causing corruption. This whole idea of using the last sector was
 so that a fully partitioned disk with data could be turned into a
 mirrored disk. A neat idea, but hardly the basis for a generic
 mirroring implementation when it silently corrupts a disk.

 I think it's better to change gmirror to use the first sector on the
 provider.

Yes, it would be cleaner to implement but it would also make the
mirrored devices unbootable.

But maybe the class of users needing the functionality is smaller now.

 This never creates a race condition and as such, you don't
 need to invent a priority scheme, that has it's own set of flaws on
 top of it. The only downside is that it's not easy to make a fully
 partitioned and populated disk part of a mirror: one would need to
 move the data forward one sector to free the first sector. This we
 can actually do by inserting a GEOM that does it while I/O is still
 ongoing. The good thing is: we need a class that does exactly this
 for implementing the move verb in gpart.

Looks too complicated and fragile. Maybe there's a need for
metadata-less automatic mirrors in some way, by storing the
configuration somewhere else, possibly in /etc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mysql error

2009-06-28 Thread thanos trompoukis
Hi all, I am new with FreeBSD and I have a problem with mysql.

I have 6.2Release i386
I am running mysql 5.0.27 and It worked perfectly until the time that I
formated  /tmp (for some other reason)
and now when I am trying to connect on mysql *I get this:*

*[r...@leonidas:/]$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/tmp/mysql.sock2' (38)*

*and when I edit /var/db/mysql/leonidas.MSHOME.err  I see this:*

*090628 14:49:19  mysqld started
090628 14:49:19 [Warning] Ignoring user change to 'ser=mysql' because the
user was set to 'mysql' e

090628 14:49:20  InnoDB: Started; log sequence number 0 43655
090628 14:49:20 [ERROR] Can't start server : Bind on unix socket: Permission
denied
090628 14:49:20 [ERROR] Do you already have another mysqld server running on
socket: /tmp/mysql.soc
090628 14:49:20 [ERROR] Aborting

090628 14:49:20  InnoDB: Starting shutdown...
090628 14:49:22  InnoDB: Shutdown completed; log sequence number 0 43655
090628 14:49:22 [Note] /usr/local/libexec/mysqld: Shutdown complete

090628 14:49:22  mysqld ended

*I have checked /tmp and there is no mysql.sock file. (because I formated
/tmp immagine)
I wouldn't like to loose my database, and I have no idea
What I have to do?

Thanx!  :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: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-28 Thread Aisaka Taiga

Ivan Voras wrote:

Yes, it would be cleaner to implement but it would also make the
mirrored devices unbootable.
But maybe the class of users needing the functionality is smaller now.
  
Most dedicated server providers can't afford to use hardware RAID 
systems because that would drastically increase the price of a single 
system; yet many customers want mirroring.

Looks too complicated and fragile. Maybe there's a need for
metadata-less automatic mirrors in some way, by storing the
configuration somewhere else, possibly in /etc.
This might be dangerous in some cases. Imagine booting with two drives 
swapped; such a configuration might lead to data corruption on a volume 
which was enumerated incorrectly or swapped.


--
Kamigishi Rei
KREI-RIPE
___
freebsd-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: named startup problems upgrading from 7.1p4 to 7.1p5 or 7.1p6

2009-06-28 Thread Matthew Seaman

Ian wrote:

Well the fact that if I run  /etc/rc.d/named manually after the system has 
booted, the script also hangs suggests it's not the next process
I have just check however  ntpdate is the next one in the list to be started 
and that does start correctly - you can see it report the clock being 
adjusted. Also, when you do a Ctrl+C to break the named script on bootup, it 
says Script /etc/rc.d/named interrupted.


Something I've just realised is that named stays loaded even when you 'break' 
the script. on bootup and DNS lookups work (I didn't think that was the case 
originally, but it is).


Hmmm 


Anything interesting from named in the system logs?  You might want to
enable /var/log/all.log by following the instructions in /etc/syslog.conf
and then see what output you get by bouncing named.  It's usually pretty
good at pointing out exactly what it thinks the problem is.

You could also try running:

  # /bin/sh -x /etc/rc.d/named start

-- make sure named isn't running when you do that.  There will be quite
a lot of output as the rc system loads all of the various config files,
but you should be able to trace exactly where it's got to when it does hang.

You're using the system-supplied copy of bind aren't you?  Have you got
a valid /etc/named/rndc.conf or /etc/named/rndc.key file so you can use
rndc(8)?  If not, try running:

   # rndc-confgen  /etc/namedb/rndc.conf

and then cut'n'paste the indicated key and controls statements from that
file into named.conf, stripping out the comment characters as you do (of 
course).

If you're using one of the ports versions of named, do exactly the same
thing, but copy or link rndc.conf into /usr/local/etc/ as well.

Cheers,

Matthew


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



signature.asc
Description: OpenPGP digital signature


Re: Firefox crashes on yahoo.com

2009-06-28 Thread Manish Jain

Roland Smith wrote:

On Sun, Jun 28, 2009 at 02:24:03PM +0530, Manish Jain wrote:

Have you tried Firefox3.5? It's in ports as www/firefox3-devel.

I just tried Yahoo! and had no problems.


I tried yahoo with firefox3 on 7.2-RELEASE-p2 amd64 without problems.

The problem is not restricted to firefox or yahoo.com. There are other 
sites too where this happens. I built Galeon from ports, and it shows 
exactly the same behaviour as firefox2/firefox3 for those sites. So does 
Epiphany (installed from the distribution media).


I doubt whether firefox-3.5 could solve the problem. This seems to be a 
problem with a core library in X or one of the graphics libraries.


Are your ports up-to-date? Use portsnap(8) [first time: 'portsnap fetch
extract', afterwards 'portsnap fetch update'] to update your ports tree and
then portmaster(8) ['portmaster -a -B -d'].

If your ports are up-to-date, try rebuilding libX11 and the ports it
depends on ['portmaster -f -x libX11'].

Roland



Hi Roland,

I traced the problem. It's related to flash. When I disable the 
flash plugin, Firefox works smoothly.


I suspect a lot of sites are using a new version of flash, which 
doesn't go down well with the existing browsers.


I run portsnap and portmaster through a daily cron, so the ports 
directory is always up-to-date.


--
Regards
Manish Jain
invalid.poin...@gmail.com
+91-96500-10329

Laast year I kudn't spell Software Engineer. Now I are won.
___
freebsd-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 crashes on yahoo.com

2009-06-28 Thread Roland Smith
On Sun, Jun 28, 2009 at 07:31:55PM +0530, Manish Jain wrote:
 I traced the problem. It's related to flash. When I disable the 
 flash plugin, Firefox works smoothly.

 I suspect a lot of sites are using a new version of flash, which 
 doesn't go down well with the existing browsers.

Are you using the linux-flashplugin?

You could try graphics/gnash as a flash plugin. If it crashes it doesn't
take your browser with it. And it is open source. It doesn't work with
all flash sites, but e.g. youtube works.

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


pgpZEHD8VUahh.pgp
Description: PGP signature


Re: mysql error

2009-06-28 Thread Morgan Wesström


thanos trompoukis wrote:
 Hi all, I am new with FreeBSD and I have a problem with mysql.
 
 I have 6.2Release i386
 I am running mysql 5.0.27 and It worked perfectly until the time that I
 formated  /tmp (for some other reason)
 and now when I am trying to connect on mysql *I get this:*
 
 *[r...@leonidas:/]$ mysql
 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
 '/tmp/mysql.sock2' (38)*
 
 *and when I edit /var/db/mysql/leonidas.MSHOME.err  I see this:*
 
 *090628 14:49:19  mysqld started
 090628 14:49:19 [Warning] Ignoring user change to 'ser=mysql' because the
 user was set to 'mysql' e
 
 090628 14:49:20  InnoDB: Started; log sequence number 0 43655
 090628 14:49:20 [ERROR] Can't start server : Bind on unix socket: Permission
 denied
 090628 14:49:20 [ERROR] Do you already have another mysqld server running on
 socket: /tmp/mysql.soc
 090628 14:49:20 [ERROR] Aborting
 
 090628 14:49:20  InnoDB: Starting shutdown...
 090628 14:49:22  InnoDB: Shutdown completed; log sequence number 0 43655
 090628 14:49:22 [Note] /usr/local/libexec/mysqld: Shutdown complete
 
 090628 14:49:22  mysqld ended
 
 *I have checked /tmp and there is no mysql.sock file. (because I formated
 /tmp immagine)
 I wouldn't like to loose my database, and I have no idea
 What I have to do?
 
 Thanx!  :D

Don't forget to chmod 1777 /tmp
/Morgan
___
freebsd-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: mysql error

2009-06-28 Thread Manolis Kiagias
thanos trompoukis wrote:
 Hi all, I am new with FreeBSD and I have a problem with mysql.

 I have 6.2Release i386
 I am running mysql 5.0.27 and It worked perfectly until the time that I
 formated  /tmp (for some other reason)
 and now when I am trying to connect on mysql *I get this:*

 *[r...@leonidas:/]$ mysql
 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
 '/tmp/mysql.sock2' (38)*

   

Ha, I know this, it happened to me once I messed with tmp, and its
pretty simple: /tmp has the sticky bit set. If you forget it, some
programs fail mysteriously.

So just do a

chown -R root:wheel /tmp (just to be safe) and
chmod -R 1777 /tmp

and all will be fine
___
freebsd-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: mysql error

2009-06-28 Thread Matthew Seaman

thanos trompoukis wrote:

Hi all, I am new with FreeBSD and I have a problem with mysql.

I have 6.2Release i386
I am running mysql 5.0.27 and It worked perfectly until the time that I
formated  /tmp (for some other reason)
and now when I am trying to connect on mysql *I get this:*

*[r...@leonidas:/]$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/tmp/mysql.sock2' (38)*

*and when I edit /var/db/mysql/leonidas.MSHOME.err  I see this:*

*090628 14:49:19  mysqld started
090628 14:49:19 [Warning] Ignoring user change to 'ser=mysql' because the
user was set to 'mysql' e

090628 14:49:20  InnoDB: Started; log sequence number 0 43655
090628 14:49:20 [ERROR] Can't start server : Bind on unix socket: Permission
denied
090628 14:49:20 [ERROR] Do you already have another mysqld server running on
socket: /tmp/mysql.soc
090628 14:49:20 [ERROR] Aborting

090628 14:49:20  InnoDB: Starting shutdown...
090628 14:49:22  InnoDB: Shutdown completed; log sequence number 0 43655
090628 14:49:22 [Note] /usr/local/libexec/mysqld: Shutdown complete

090628 14:49:22  mysqld ended

*I have checked /tmp and there is no mysql.sock file. (because I formated
/tmp immagine)
I wouldn't like to loose my database, and I have no idea
What I have to do?

Thanx!  :D


You've apparently got a copy of mysql still running, despite trashing everything
in /tmp.  You can confirm that by:

  % sockstat | grep mysql

Now, if sockstat shows that mysql is listening on a network interface,
then you may just be able to log into it over a network connection and
shut it down cleanly.  If not, then you have no alternative by to signal
the process to death and then let it repair the datafiles as it restarts.

 * If you have to kill mysql by signalling it:

   At first, try:

   # kill -15 `ps -ax | grep mysqld | cut -d ' ' -f 2`

   If it doesn't work immediately, leave mysql for 5 minutes, and see if it
   has shut down yet.  Try again if not, possibly several times.  Failing that,
   use:

   # kill -9 `ps -ax | grep mysqld | cut -d ' ' -f 2`

   But this last really should be avoided, as it causes the process to crash
   without any opportunity to close itself down nicely.

 * If mysql is listening on a network interface -- preferably any of 
   127.0.0.1:3306, [::1]:3306 or *:3306 


   Try using mysqladmin to shut it down cleanly. Note that mysql does
   special shortcut things when hostname is localhost and tries to use the
   socket in /tmp/mysql.sock -- which doesn't help you at all.  You can force
   it to make a *network* connection to localhost by:

   # mysqladmin -h localhost -P 3306 --protocol=TCP -u root -p shutdown

   This will prompt you for the mysql root password. If mysqladmin doesn't work,
   then try using kill as above.

Your data *should* survive MySQL being forcibly restarted in either of these 
ways.  MySQL takes very great pains to ensure data is written to persistent 
media (ie.
disk) in order to provide proper ACID compliance.  However, if mysql does get 
killed, it will need to do some repair work on data structures when it next 
starts up, and
that can take a while.  Because writing out its PID file is one of the last 
things
mysql does in the startup sequence '/usr/local/etc/rc.d/mysql-server status' 
will
report 'not running' during this repair work, so be a bit patient if you see 
that.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: IPFW: Need some help

2009-06-28 Thread Ruben de Groot
On Sun, Jun 28, 2009 at 02:14:00PM +0300, Anton typed:
 
Hello all,
 
I'm new to *nix and now, while configuring IPFW Firewall on FreeBSD
7.2 = has stuck in a problem:
 
After packet from my network is passed to natd demon - it is returning
t= o firewall (it is normal, as I think ;-) ), but I see another
abnormal thin= g: when it is returned to firewall, it does not come
under rule which state= s to allow packet from some host in my
network, and goes under rule which a= llows packets from FreeBSD box.

This is normal.

That's because the source address has allready been rewritten by natd, so 
your rule about a specific host in your network doesn't apply anymore.
Try moving this rule before the divert rule in your ipfw config.

Ruben

___
freebsd-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: The question of moving vi to /binHi,

2009-06-28 Thread Mark E Doner

Erich Dollansky wrote:

On 26 June 2009 am 10:02:30 Polytropon wrote:
  

Polytropon
From Magdeburg, Germany



big brother is watching me.

An xterm just came up with this message:

The default editor in FreeBSD is vi, which is efficient to use 
when you have learned it, but somewhat user-unfriendly.  To use 
ee (an easier but less powerful editor) instead, set the 
environment variable EDITOR to /usr/bin/ee


Isn't this the best reasoning why it should stay as it is?
  
Wouldn't it be cool if there was an option you could toss in make.conf, 
like VI_PREFIX=foo, which defaults to /usr of course? Then people who 
want to move vi to /bin could rebuild world without worrying about it 
redoing such a move after every big upgrade, and people who don't want 
it moved, do nothing.


Not that I encourage feature creep or anything.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


libtool shared

2009-06-28 Thread alexus
I'm trying to compile something and I'm getting these lines while I'm
doing ./configure

checking if libtool supports shared libraries... no
checking whether to build shared libraries... no

I went and even recompiled libtool

# ./configure | grep -i share
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
#

yet still same thing with my other program, it wont compile shared libraries...

-- 
http://alexus.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: mysql error

2009-06-28 Thread thanos trompoukis
2009/6/28 Matthew Seaman m.sea...@infracaninophile.co.uk

 thanos trompoukis wrote:

 Hi all, I am new with FreeBSD and I have a problem with mysql.

 I have 6.2Release i386
 I am running mysql 5.0.27 and It worked perfectly until the time that I
 formated  /tmp (for some other reason)
 and now when I am trying to connect on mysql *I get this:*

 *[r...@leonidas:/]$ mysql
 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
 '/tmp/mysql.sock2' (38)*

 *and when I edit /var/db/mysql/leonidas.MSHOME.err  I see this:*

 *090628 14:49:19  mysqld started
 090628 14:49:19 [Warning] Ignoring user change to 'ser=mysql' because the
 user was set to 'mysql' e

 090628 14:49:20  InnoDB: Started; log sequence number 0 43655
 090628 14:49:20 [ERROR] Can't start server : Bind on unix socket:
 Permission
 denied
 090628 14:49:20 [ERROR] Do you already have another mysqld server running
 on
 socket: /tmp/mysql.soc
 090628 14:49:20 [ERROR] Aborting

 090628 14:49:20  InnoDB: Starting shutdown...
 090628 14:49:22  InnoDB: Shutdown completed; log sequence number 0 43655
 090628 14:49:22 [Note] /usr/local/libexec/mysqld: Shutdown complete

 090628 14:49:22  mysqld ended

 *I have checked /tmp and there is no mysql.sock file. (because I formated
 /tmp immagine)
 I wouldn't like to loose my database, and I have no idea
 What I have to do?

 Thanx!  :D


 You've apparently got a copy of mysql still running, despite trashing
 everything
 in /tmp.  You can confirm that by:

  % sockstat | grep mysql

 Now, if sockstat shows that mysql is listening on a network interface,
 then you may just be able to log into it over a network connection and
 shut it down cleanly.  If not, then you have no alternative by to signal
 the process to death and then let it repair the datafiles as it restarts.

  * If you have to kill mysql by signalling it:

   At first, try:

   # kill -15 `ps -ax | grep mysqld | cut -d ' ' -f 2`

   If it doesn't work immediately, leave mysql for 5 minutes, and see if it
   has shut down yet.  Try again if not, possibly several times.  Failing
 that,
   use:

   # kill -9 `ps -ax | grep mysqld | cut -d ' ' -f 2`

   But this last really should be avoided, as it causes the process to crash
   without any opportunity to close itself down nicely.

  * If mysql is listening on a network interface -- preferably any of
 127.0.0.1:3306, [::1]:3306 or *:3306
   Try using mysqladmin to shut it down cleanly. Note that mysql does
   special shortcut things when hostname is localhost and tries to use the
   socket in /tmp/mysql.sock -- which doesn't help you at all.  You can
 force
   it to make a *network* connection to localhost by:

   # mysqladmin -h localhost -P 3306 --protocol=TCP -u root -p shutdown

   This will prompt you for the mysql root password. If mysqladmin doesn't
 work,
   then try using kill as above.

 Your data *should* survive MySQL being forcibly restarted in either of
 these ways.  MySQL takes very great pains to ensure data is written to
 persistent media (ie.
 disk) in order to provide proper ACID compliance.  However, if mysql does
 get killed, it will need to do some repair work on data structures when it
 next starts up, and
 that can take a while.  Because writing out its PID file is one of the last
 things
 mysql does in the startup sequence '/usr/local/etc/rc.d/mysql-server
 status' will
 report 'not running' during this repair work, so be a bit patient if you
 see that.

Cheers,

Matthew

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




Thanx! thank you very much guys..!
Finaly it was so simple!!!   aaa, god bless you!!

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


Re: Best practices for securing SSH server

2009-06-28 Thread Chris Rees
2009/6/28 Polytropon free...@edvax.de:
 On Sat, 27 Jun 2009 21:17:11 -0400, Daniel Underwood djuatde...@gmail.com 
 wrote:
 Exactly.  For example, the server in question is a desktop machine
 at work.  I regularly see transfer rates of 13MB/s.  It's at a major
 university, which is by itself another high-risk factor, precisely
 because there are so many (often weakly protected) high-speed
 connections.

 That's a valid point, and I'd like to add that there is some
 consideration: Servers are usually protected with proper means.
 This goes especially for UNIX servers. Desktops, on the other
 hand, can more easily be taken over (especially non-UNIX machines),
 so if an attacker got his foot inside a network, it's very
 useful to him. There are even trading platforms where criminals
 buy and sell whole networks of compromised PCs. Of course,
 everything happening inside such networks should be seen as
 what it is: a threat to security. Just imagine some clever
 guy uses telnet inside such a network to configure the
 server...



You mean like the default alternative to SSH for Windows boxes?

Gotta love their arrogance

Chris



-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
freebsd-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: The question of moving vi to /binHi,

2009-06-28 Thread Chris Rees
2009/6/28 Mark E Doner nuint...@amplex.net:
 Erich Dollansky wrote:

 On 26 June 2009 am 10:02:30 Polytropon wrote:


 Polytropon
 From Magdeburg, Germany


 big brother is watching me.

 An xterm just came up with this message:

 The default editor in FreeBSD is vi, which is efficient to use when you
 have learned it, but somewhat user-unfriendly.  To use ee (an easier but
 less powerful editor) instead, set the environment variable EDITOR to
 /usr/bin/ee

 Isn't this the best reasoning why it should stay as it is?


 Wouldn't it be cool if there was an option you could toss in make.conf, like
 VI_PREFIX=foo, which defaults to /usr of course? Then people who want to
 move vi to /bin could rebuild world without worrying about it redoing such a
 move after every big upgrade, and people who don't want it moved, do
 nothing.

 Not that I encourage feature creep or anything.

Or:

/usr/home/chris amnesiac# ln -s /rescue/vi /bin/vi

### Stop anything meddling with vi!
/usr/home/chris amnesiac# chflags -h schg /bin/vi


Chris

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
freebsd-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: named startup problems upgrading from 7.1p4 to 7.1p5 or 7.1p6

2009-06-28 Thread Mel Flynn
On Sunday 28 June 2009 03:24:26 Ian wrote:

 I tried adding various echo statements to /etc/rc.d/named and found that
 the script seems to run right through.

rc_debug=YES in /etc/rc.conf is REALLY handy for this.
-- 
Mel
___
freebsd-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: libtool shared

2009-06-28 Thread Michael Powell
alexus wrote:

 I'm trying to compile something and I'm getting these lines while I'm
 doing ./configure
 
 checking if libtool supports shared libraries... no
 checking whether to build shared libraries... no
 
 I went and even recompiled libtool
 
 # ./configure | grep -i share
 checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
 yes checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
 yes checking whether the g++ linker (/usr/bin/ld) supports shared
 libraries... yes checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether the f77 linker (/usr/bin/ld) supports shared libraries...
 yes checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether the f77 linker (/usr/bin/ld) supports shared libraries...
 yes
 #
 
 yet still same thing with my other program, it wont compile shared
 libraries...
 

Try using the ports system to install software. May work better.

-Mike


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


FreeBSD 7.2 - iwi error

2009-06-28 Thread Siyan Sabinov Hadzhiev

Hello List ,

I am new in this list , so if these is an old topic forgive me.I have 
successfully installed FreeBSD 7.2 to IBM T43 Laptop.I am using wireless
network with WPA key.My Laptop has Intel Pro Wireless 2200.I installed
iwi driver and firmware successfully.

I am successfully connecting to my home and ofis wireless networks with
wpa supplicant.However every 4 or 5 minutes my connection gets down and
i got iwi0: firmware stuck in state 4 , resetting  and then iwi0
device timeout  errors.These drops my connection , after that it take
30 seconds to my connection come back up.Then after 5 minutes again same
errors and these goes on.

I search a little bit on Google however find nothing usefull.

Is there anybody who faced with same problem?
And is there any solutions or upgrades for that issue.

Best Regards
Siyan

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


www/firefox-devel

2009-06-28 Thread Alexander Best
is anybody out there still using this port? shouldn't it be retired? it's even
older than the regular www/firefox port. people who want to run the latest
unstable firefox version should use www/firefox3-devel.

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


Using ctorrent or other program to seed a torrent

2009-06-28 Thread Kelly Jones
I know how to use ctorrent to create a torrent file, but how do I
actually seed the resulting file so that others can get it, and how do
I 'register' myself w/ a tracker so that others will know what IP
address to connect to, etc?

Can ctorrent seed torrents, or do I need another program for that?

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
___
freebsd-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 7.2 - iwi error

2009-06-28 Thread Jose Garcia Juanino
El domingo 28 de junio a las 20:25:51 CEST, Siyan Sabinov Hadzhiev escribió:
 
 Hello List ,
 
 I am new in this list , so if these is an old topic forgive me.I have 
 successfully installed FreeBSD 7.2 to IBM T43 Laptop.I am using wireless
 network with WPA key.My Laptop has Intel Pro Wireless 2200.I installed
 iwi driver and firmware successfully.
 
 I am successfully connecting to my home and ofis wireless networks with
 wpa supplicant.However every 4 or 5 minutes my connection gets down and
 i got iwi0: firmware stuck in state 4 , resetting  and then iwi0
 device timeout  errors.These drops my connection , after that it take
 30 seconds to my connection come back up.Then after 5 minutes again same
 errors and these goes on.
 
 I search a little bit on Google however find nothing usefull.
 
 Is there anybody who faced with same problem?
 And is there any solutions or upgrades for that issue.

I have such wireless interface on a Dell Latitude D505, and I have
experienced that annoying problem many times.

Enable debug.iwi sysctl and tell us what messages you see in
/var/log/messages log file.

In my own laptop, I saw these messages before the disconnection:

X kernel: Beacon miss: XX = YY

After that I increased bmissthreshold parameter of ifconfig in rc.conf,
and the problem went away.

Hope this helps, and sorry for my poor english.

Best regards


pgppxp8Zi1uS2.pgp
Description: PGP signature


Re: libtool shared

2009-06-28 Thread alexus
On Sun, Jun 28, 2009 at 1:43 PM, Michael Powellnightre...@verizon.net wrote:
 alexus wrote:

 I'm trying to compile something and I'm getting these lines while I'm
 doing ./configure

 checking if libtool supports shared libraries... no
 checking whether to build shared libraries... no

 I went and even recompiled libtool

 # ./configure | grep -i share
 checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
 yes checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
 yes checking whether the g++ linker (/usr/bin/ld) supports shared
 libraries... yes checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether the f77 linker (/usr/bin/ld) supports shared libraries...
 yes checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether the f77 linker (/usr/bin/ld) supports shared libraries...
 yes
 #

 yet still same thing with my other program, it wont compile shared
 libraries...


 Try using the ports system to install software. May work better.

 -Mike


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


company policy not too use ports, any other suggestions?

-- 
http://alexus.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: libtool shared

2009-06-28 Thread alexus
On Sun, Jun 28, 2009 at 6:14 PM, Mel
Flynnmel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
 On Sunday 28 June 2009 12:40:24 alexus wrote:

 company policy not too use ports, any other suggestions?

 Understand GNU autotools in detail, the patches for it in the respective
 ports, how to read config.log and whether all this is worth compliance to
 company policy.
 Note: the above requires at least two weeks of non-productive self-education
 on the boss' clock, judging from the fact you post configure output, rather
 then config.log snippets (without being judgmental or condescending: it shows
 you are just starting with the GNU autotools experience). Recently
 Giorgos posted a nice summary of what you'd need to learn [1].

 Of course, I'm presuming installing/maintaining software is something that
 belongs to your daily tasks. If you only need to fix this specific problem,
 we would need output from config.log around the lines where it says it can't
 build shared libs.

 [1] http://www.freebsd.org/cgi/mid.cgi?db=midid=87hbyk6h02@kobe.laptop
 --
 Mel
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


gc# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:538: checking for gcc
configure:615: checking whether the C compiler (gcc  ) works
configure:629: gcc -o conftestconftest.c  15
configure:649: checking whether the C compiler (gcc  ) is a cross-compiler
configure:654: checking whether we are using GNU C
configure:663: gcc -E conftest.c
configure:681: checking how to run the C preprocessor
configure:702: gcc -E  conftest.c /dev/null 2conftest.out
configure:742: checking for function prototypes
configure:765: gcc -c -O2  conftest.c 15
configure:792: checking for stddef.h
configure:802: gcc -E  conftest.c /dev/null 2conftest.out
configure:828: checking for stdlib.h
configure:838: gcc -E  conftest.c /dev/null 2conftest.out
configure:864: checking for string.h
configure:874: gcc -E  conftest.c /dev/null 2conftest.out
configure:900: checking for size_t
configure:923: gcc -c -O2  conftest.c 15
configure:994: checking for type unsigned char
configure:1003: gcc -c -O2  conftest.c 15
configure:1018: checking for type unsigned short
configure:1027: gcc -c -O2  conftest.c 15
configure:1042: checking for type void
configure:1072: gcc -c -O2  conftest.c 15
configure:1088: checking for working const
configure:1142: gcc -c -O2  conftest.c 15
configure:1163: checking for inline
configure:1174: gcc -c -O2  conftest.c 15
configure:1224: checking for broken incomplete types
configure:1233: gcc -c -O2  conftest.c 15
configure:1248: checking for short external names
configure:1260: gcc -o conftest -O2   conftest.c  15
configure:1275: checking to see if char is signed
configure:1306: gcc -o conftest -O2   conftest.c  15
configure: failed program was:
#line 1282 configure
#include confdefs.h

#ifdef HAVE_PROTOTYPES
int is_char_signed (int arg)
#else
int is_char_signed (arg)
 int arg;
#endif
{
  if (arg == 189) { /* expected result for unsigned char */
return 0;   /* type char is unsigned */
  }
  else if (arg != -67) {/* expected result for signed char */
printf(Hmm, it seems 'char' is not eight bits wide on your machine.\n);
printf(I fear the JPEG software will not work at all.\n\n);
  }
  return 1; /* assume char is signed otherwise */
}
char signed_char_check = (char) (-67);
main() {
  exit(is_char_signed((int) signed_char_check));
}
configure:1323: checking to see if right shift is signed
configure:1358: gcc -o conftest -O2   conftest.c  15
configure: failed program was:
#line 1328 configure
#include confdefs.h

#ifdef HAVE_PROTOTYPES
int is_shifting_signed (long arg)
#else
int is_shifting_signed (arg)
 long arg;
#endif
/* See whether right-shift on a long is signed or not. */
{
  long res = arg  4;

  if (res == -0x7F7E80CL) { /* expected result for signed shift */
return 1;   /* right shift is signed */
  }
  /* see if unsigned-shift hack will fix it. */
  /* we can't just test exact value since it depends on width of long... */
  res |= (~0L)  (32-4);
  if (res == -0x7F7E80CL) { /* expected result now? */
return 0;   /* right shift is unsigned */
  }
  printf(Right shift isn't acting as I expect it to.\n);
  printf(I fear the JPEG software will not work at all.\n\n);
  return 0; /* try it with unsigned anyway */
}
main() {
  exit(is_shifting_signed(-0x7F7E80B1L));
}
configure:1375: checking to see if fopen accepts b spec
configure:1390: gcc -o conftest -O2   conftest.c  15
configure:1436: checking for a BSD compatible install
configure:1488: checking for ranlib
configure:1650: checking libjpeg 

Re: libtool shared

2009-06-28 Thread Mel Flynn
On Sunday 28 June 2009 12:40:24 alexus wrote:

 company policy not too use ports, any other suggestions?

Understand GNU autotools in detail, the patches for it in the respective
ports, how to read config.log and whether all this is worth compliance to
company policy.
Note: the above requires at least two weeks of non-productive self-education
on the boss' clock, judging from the fact you post configure output, rather
then config.log snippets (without being judgmental or condescending: it shows
you are just starting with the GNU autotools experience). Recently
Giorgos posted a nice summary of what you'd need to learn [1].

Of course, I'm presuming installing/maintaining software is something that
belongs to your daily tasks. If you only need to fix this specific problem,
we would need output from config.log around the lines where it says it can't
build shared libs.

[1] http://www.freebsd.org/cgi/mid.cgi?db=midid=87hbyk6h02@kobe.laptop
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Chomium on FreeBSD?

2009-06-28 Thread Daniel Underwood
Is there an effort to build a port of chromium for FreeBSD? I recently
began using chromium on my Linux machine, and the HTML rendering speed
is quite impressive.

When it has the ability to synchronize bookmarks, I'll use it exclusively.
___
freebsd-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: libtool shared

2009-06-28 Thread Michael Powell
alexus wrote:

 On Sun, Jun 28, 2009 at 1:43 PM, Michael Powellnightre...@verizon.net
 wrote:
 alexus wrote:
[snip]
 
 company policy not too use ports, any other suggestions?

Change this company policy as it is unproductive. Sounds like something 
implemented by those lacking experience with FreeBSD. 

The time port maintainers have spent developing patch sets that ensure an 
easy build and install is not being leveraged. The time you spend developing 
your own workarounds to build software with the various autotools is more 
waste, you are duplicating efforts already made by others. The amount of 
time and effort you will spend when it comes time to update is effort 
wasted, because now you are duplicating the efforts of others yet *again*.

If the company policy is dictated by people who have no concept of how to 
manage efficient man-hour usage, and who will not listen when others have 
superior suggestions, your company has other problems besides it's lack of 
knowledge concerning FreeBSD.

-Mike


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


Re: Using ctorrent or other program to seed a torrent

2009-06-28 Thread RW
On Sun, 28 Jun 2009 13:31:41 -0700
Kelly Jones kelly.terry.jo...@gmail.com wrote:

 I know how to use ctorrent to create a torrent file, but how do I
 actually seed the resulting file so that others can get it, and how do
 I 'register' myself w/ a tracker so that others will know what IP
 address to connect to, etc?

There are two kinds of trackers, closed and open. With a closed tracker
you usually have to upload the torrent file on a website. With open
trackers you don't need to do anything other than specify the URLs of
the trackers when you create the torrent file.

 
 Can ctorrent seed torrents, or do I need another program for that?

I would imagine so, or you wouldn't be able to seed after downloading.

With most clients you can place the file or directory in the download
location, load the torrent file and then tell the client to verify the
download. It'll then detect that it's complete and switch to seeding. 


___
freebsd-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: libtool shared

2009-06-28 Thread Charlie Kester

On Sun 28 Jun 2009 at 16:10:51 PDT Michael Powell wrote:

alexus wrote:


On Sun, Jun 28, 2009 at 1:43 PM, Michael Powellnightre...@verizon.net
wrote:

alexus wrote:

[snip]


company policy not too use ports, any other suggestions?


Change this company policy as it is unproductive. Sounds like something
implemented by those lacking experience with FreeBSD.

The time port maintainers have spent developing patch sets that ensure an
easy build and install is not being leveraged. The time you spend developing
your own workarounds to build software with the various autotools is more
waste, you are duplicating efforts already made by others. The amount of
time and effort you will spend when it comes time to update is effort
wasted, because now you are duplicating the efforts of others yet *again*.

If the company policy is dictated by people who have no concept of how to
manage efficient man-hour usage, and who will not listen when others have
superior suggestions, your company has other problems besides it's lack of
knowledge concerning FreeBSD.

-Mike


If management refuses to listen to reason, you can still benefit from
the efforts of the port maintainers by studying their makefiles and
patches. Their stuff builds and installs correctly, or it would never
have been committed into the portstree.  


It's probably a lot easier to understand the FreeBSD porting system than
it is to understand the autotools suite.  ;-)  
___

freebsd-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: The question of moving vi to /bin

2009-06-28 Thread Polytropon
On Thu, 25 Jun 2009 16:15:12 -0500, Gary Gatten ggat...@waddell.com wrote:
 I like M$ Notepad - is there a version of that for FBSD?

You are on the wrong list. Correct your inner state of mind and
try again. :-)

No, seriously: Maybe gnotepad+ appeals to you?



 Actually the old edit from dos is sweet too

Try the Midnight Commander's mcedit editor, it has some of
the functionaliy, keyboard-usage-wise...




-- 
Polytropon
From 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: The question of moving vi to /bin

2009-06-28 Thread Polytropon
On Thu, 25 Jun 2009 22:23:17 -0700, Gary Kline kl...@thought.org wrote:
   what about j, k [down, up].  and h,l  [left, right]?
   why reach over for the arrow keys!  oh, and o, and O
   [open line below/Above], and 
 
   \search
 
   and that's 97 and 44/100ths of what you'll ever need.  

Well, I'm not good at vi. As a lazy guy (TM) I honestly prefer
ee, as long as the cursor keys work. If they don't, well, I
have a vi keyboard reference in my extremely important
documentation folder - and yes, it is a real folder, not a
directory. :-) So if everything fails, there's still vi and
the content of /rescue to get you back working.

Maybe this is because vi scared me when using WEGA (which is
the GDR's equivalent of UNIX System III, run on the P8000
multi-user workstation). Well, we were all young, many many
years in the distant past. :-)



   ps:  when bill j. dies and meets st. pete at the pearly
gate, pete'll say: So what did you do--  And bill
will say, I wrote vi.  red-carpet is rolled out
:_)

When Bill G. arrives at the pearly gate, ol' Pete won't ask
him what he did do, instead send him to MICROS~1 C:\HELL.EXE
with the advice to click on the devil to start the everlasting
pain. :-)



-- 
Polytropon
From 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: The question of moving vi to /bin

2009-06-28 Thread Erich Dollansky
Hi,

On 26 June 2009 pm 14:01:02 Polytropon wrote:
 On Thu, 25 Jun 2009 22:23:17 -0700, Gary Kline 
kl...@thought.org wrote:

 have a vi keyboard reference in my extremely important
 documentation folder - and yes, it is a real folder, not a
 directory. :-) So if everything fails, there's still vi and
 the content of /rescue to get you back working.

 Maybe this is because vi scared me when using WEGA (which is
 the GDR's equivalent of UNIX System III, run on the P8000

was this the russian PDP-11?

 multi-user workstation). Well, we were all young, many many
 years in the distant past. :-)

You want to say 'yesterday'?

  ps:  when bill j. dies and meets st. pete at the pearly
   gate, pete'll say: So what did you do--  And bill
   will say, I wrote vi.  red-carpet is rolled out
 
   :_)

 When Bill G. arrives at the pearly gate, ol' Pete won't ask
 him what he did do, instead send him to MICROS~1 C:\HELL.EXE
 with the advice to click on the devil to start the everlasting
 pain. :-)

I do not think so. He will go directly to heaven. Why? He made all 
computer users pray that no data get lost when the machine 
freezes again.

Erich

___
freebsd-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: The question of moving vi to /bin

2009-06-28 Thread Gary Kline
On Fri, Jun 26, 2009 at 08:01:02AM +0200, Polytropon wrote:
 On Thu, 25 Jun 2009 22:23:17 -0700, Gary Kline kl...@thought.org wrote:
  what about j, k [down, up].  and h,l  [left, right]?
  why reach over for the arrow keys!  oh, and o, and O
  [open line below/Above], and 
  
  \search
  
  and that's 97 and 44/100ths of what you'll ever need.  
 
 Well, I'm not good at vi. As a lazy guy (TM) I honestly prefer
 ee, as long as the cursor keys work. If they don't, well, I
 have a vi keyboard reference in my extremely important
 documentation folder - and yes, it is a real folder, not a
 directory. :-) So if everything fails, there's still vi and
 the content of /rescue to get you back working.
 
 Maybe this is because vi scared me when using WEGA (which is
 the GDR's equivalent of UNIX System III, run on the P8000
 multi-user workstation). Well, we were all young, many many
 years in the distant past. :-)
 


Ah yes true words, never spoken, etc.  And I had 
(past tensed) one of those reference cards ... come to think 
of it.   There're still tricks of vi I don't know.  Or, to
be correct, nvi, which was said to be a feature for feature, bug
for bug clone.  Yes, i am a geek, just not an extremist:)


 
 
  ps:  when bill j. dies and meets st. pete at the pearly
   gate, pete'll say: So what did you do--  And bill
   will say, I wrote vi.  red-carpet is rolled out
   :_)
 
 When Bill G. arrives at the pearly gate, ol' Pete won't ask
 him what he did do, instead send him to MICROS~1 C:\HELL.EXE
 with the advice to click on the devil to start the everlasting
 pain. :-)
 
 
(*Yes*!)

LMAO.   

gary


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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
   For FBSD list: http://transfinite.thought.org/slicejourney.php
The 4.98a release of Jottings: http://jottings.thought.org/index.php

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


Re: The question of moving vi to /binHi,

2009-06-28 Thread Gary Kline
On Fri, Jun 26, 2009 at 06:11:57AM +0200, Polytropon wrote:
 On Fri, 26 Jun 2009 12:03:21 +0800, Erich Dollansky er...@apsara.com.sg 
 wrote:
  What kind of editor do you need for rescue? Just edit one or two 
  lines in some config file to allow the full system to start 
  again.
  
  Rescue does not need an editor programmers are used to edit their 
  source files.
 
 I won't say anything different. For the usual maintenance and
 get the damn thing working again tasks the /rescue editor,
 especially vi, should be enough. Commands are i, a, and :wq.
 From my experience, I can't remember to have used anything
 else.
 

what about j, k [down, up].  and h,l  [left, right]?
why reach over for the arrow keys!  oh, and o, and O
[open line below/Above], and 

\search

and that's 97 and 44/100ths of what you'll ever need.  

gary


ps:  when bill j. dies and meets st. pete at the pearly
 gate, pete'll say: So what did you do--  And bill
 will say, I wrote vi.  red-carpet is rolled out
 :_)


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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
   For FBSD list: http://transfinite.thought.org/slicejourney.php
The 4.98a release of Jottings: http://jottings.thought.org/index.php

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


Re: The question of moving vi to /binHi,

2009-06-28 Thread Glen Barber
On Fri, Jun 26, 2009 at 1:23 AM, Gary Klinekl...@thought.org wrote:


[snip]



        what about j, k [down, up].  and h,l  [left, right]?
        why reach over for the arrow keys!  oh, and o, and O
        [open line below/Above], and

        \search

        and that's 97 and 44/100ths of what you'll ever need.

        gary


        ps:  when bill j. dies and meets st. pete at the pearly
             gate, pete'll say: So what did you do--  And bill
             will say, I wrote vi.  red-carpet is rolled out
             :_)


You really should give credit where it is due.

I wrote vi -- in one weekend! ;)

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


what character is a physical newline

2009-06-28 Thread Aryeh M. Friedman
I am writting a parser (tokenizes all characters among other things) and 
need to know what control char is equivelent to a newline (I do not need 
windows cross compatibility)

___
freebsd-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 character is a physical newline

2009-06-28 Thread Aryeh M. Friedman

Aryeh M. Friedman wrote:
I am writting a parser (tokenizes all characters among other things) 
and need to know what control char is equivelent to a newline (I do 
not need windows cross compatibility)


Forgot to mention before someone recommends lex/yacc and/or some other 
parser generator (I am working in Java) there are internal design 
reasons to my over all project why I am writting a lexer/parser from scratch

___
freebsd-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 character is a physical newline

2009-06-28 Thread Glen Barber
On Sun, Jun 28, 2009 at 10:21 PM, Aryeh M.
Friedmanaryeh.fried...@gmail.com wrote:
 I am writting a parser (tokenizes all characters among other things) and
 need to know what control char is equivelent to a newline (I do not need
 windows cross compatibility)

What do you mean exactly?  What language(s)?  If I understand your
question correctly, the C / C++ / Java / PHP (and I think Perl)
'newline' character is '\n'

-- 
Glen Barber
___
freebsd-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 character is a physical newline

2009-06-28 Thread Aryeh M. Friedman

Glen Barber wrote:

On Sun, Jun 28, 2009 at 10:21 PM, Aryeh M.
Friedmanaryeh.fried...@gmail.com wrote:
  

I am writting a parser (tokenizes all characters among other things) and
need to know what control char is equivelent to a newline (I do not need
windows cross compatibility)



What do you mean exactly?  What language(s)?  If I understand your
question correctly, the C / C++ / Java / PHP (and I think Perl)
'newline' character is '\n'

  
I meant what ascii character does \n actual correspond to (I assume CR 
but just making sure)

___
freebsd-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 character is a physical newline

2009-06-28 Thread Glen Barber
On Sun, Jun 28, 2009 at 10:27 PM, Aryeh M.
Friedmanaryeh.fried...@gmail.com wrote:

 What do you mean exactly?  What language(s)?  If I understand your
 question correctly, the C / C++ / Java / PHP (and I think Perl)
 'newline' character is '\n'



 I meant what ascii character does \n actual correspond to (I assume CR but
 just making sure)


Oh.  IIRC, CR is the DOS way, and LR is the POSIX way.

-- 
Glen Barber
___
freebsd-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 character is a physical newline

2009-06-28 Thread Vince Sabio

** At 22:30 -0400 on 06/28/2009, Glen Barber wrote:

On Sun, Jun 28, 2009 at 10:27 PM, Aryeh M. Friedman wrote:
 

 What do you mean exactly?  What language(s)?  If I understand your
 question correctly, the C / C++ / Java / PHP (and I think Perl)

  'newline' character is '\n'
 

 I meant what ascii character does \n actual correspond to (I assume CR but

  just making sure)


No, CR is a carriage return, which is a \r in C, and is an ASCII 13 (hex 0D).

Newline is a line feed (LF), which is a \n in C, and is an ASCII 10 (hex 0A)


Oh.  IIRC, CR is the DOS way, and LR is the POSIX way.


Not exactly; CRLF is the DOS way, CR is the Macintosh way, and LF is 
Unix/Posix.


HTH.

__
Vince Sabio  vi...@vjs.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: what character is a physical newline

2009-06-28 Thread Aryeh M. Friedman

Glen Barber wrote:

On Sun, Jun 28, 2009 at 10:27 PM, Aryeh M.
Friedmanaryeh.fried...@gmail.com wrote:
  

What do you mean exactly?  What language(s)?  If I understand your
question correctly, the C / C++ / Java / PHP (and I think Perl)
'newline' character is '\n'


  

I meant what ascii character does \n actual correspond to (I assume CR but
just making sure)




Oh.  IIRC, CR is the DOS way, and LR is the POSIX way.

  

Don't you mean LF not LR?
___
freebsd-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 character is a physical newline

2009-06-28 Thread Glen Barber
On Sun, Jun 28, 2009 at 10:39 PM, Aryeh M.
Friedmanaryeh.fried...@gmail.com wrote:
 Oh.  IIRC, CR is the DOS way, and LR is the POSIX way.



 Don't you mean LF not LR?


I did.  I realized it after Vince replied.

-- 
Glen Barber
___
freebsd-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 character is a physical newline

2009-06-28 Thread Glen Barber
On Sun, Jun 28, 2009 at 10:38 PM, Vince Sabiovi...@vjs.org wrote:
 ** At 22:30 -0400 on 06/28/2009, Glen Barber wrote:

 On Sun, Jun 28, 2009 at 10:27 PM, Aryeh M. Friedman wrote:
  

  What do you mean exactly?  What language(s)?  If I understand your
  question correctly, the C / C++ / Java / PHP (and I think Perl)

   'newline' character is '\n'
  

  I meant what ascii character does \n actual correspond to (I assume CR
 but

   just making sure)

 No, CR is a carriage return, which is a \r in C, and is an ASCII 13 (hex
 0D).

 Newline is a line feed (LF), which is a \n in C, and is an ASCII 10 (hex
 0A)

 Oh.  IIRC, CR is the DOS way, and LR is the POSIX way.

 Not exactly; CRLF is the DOS way, CR is the Macintosh way, and LF is
 Unix/Posix.

 HTH.


Thanks for correcting me.

Goes to show that bad advice is worse than no advice. :)

-- 
Glen Barber
___
freebsd-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 character is a physical newline

2009-06-28 Thread Aryeh M. Friedman
Just incase you guys are curious  the reason for  doing the parser from 
scratch is  it is designed to lex/parse families of languages not just a 
single lang for example (there is very large overlap between 
c/c++/java/c#/etc. as there is in the tag langs like XML/HTML)... also 
generators produce unreadable code (and impossible to hand modify if 
you're not quite happy with the generated code) thus I refer to the 
design as a heiractical recursive decent parser (i.e. it lexs/parses the 
commonalties of a family [or set of families {all ascii vs, unicode 
langs for example are a set of families} before it attempts to handle 
the actual lang [or family in the case of set of families]).

___
freebsd-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: The question of moving vi to /bin

2009-06-28 Thread RW
On Thu, 25 Jun 2009 16:15:12 -0500
Gary Gatten ggat...@waddell.com wrote:

 I like M$ Notepad - is there a version of that for FBSD? 

Actually, there is. Wine implements it's own version of notepad.

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


serial modem

2009-06-28 Thread kalin m


hi all...

my first time using serial ports and modems. the modem is hooked up 
using RS-232 cable...


modem specs:

• Baud Rate: 115.2kbps
• Bits: 8
• Stop Bits: 1
• Parity: none
• Hardware Handshaking: Yes


my /etc/ttys:

ttyd0 /usr/libexec/getty std.115200 dialup on
ttyd1 /usr/libexec/getty std.115200 dialup on

then i do:
# kill -HUP 1

ps shows:
62496 0.0 0.2 3184 952 ?? I 10:53PM 0:00.00 /usr/libexec/getty 
std.115200 ttyd0
62667 0.0 0.2 3184 1004 ?? I 11:37PM 0:00.00 /usr/libexec/getty 
std.115200 ttyd1


according to the handbook i would see the above. i'm not sure if i need 
both ttyd0 and 1 since i have hooked only one modem but there is no 
explanation about that in the handbook.


messages says:
Jun 28 23:37:17 moo getty[62667]: open /dev/ttyd1: No such file or directory

and no other entries... so i guess that settles the need of ttyd1!?!

ok. so now i put in /etc/remote:
sio0|com1:dv=/dev/cuad0:br#115200:pa=none:

and, following the instructions in the handbook, try reaching the modem 
doing:

# tip -v cuad0

i get:
tip: unknown host tip0

dmesg says:
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on 
acpi0

sio0: type 16550A
sio0: [FILTER]

and in the /etc/gettytab i have:
std.115200|115200-baud:\
:np:sp#115200:



what next?

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: libtool shared

2009-06-28 Thread alexus
On Sun, Jun 28, 2009 at 8:30 PM, Charlie Kestercorky1...@comcast.net wrote:
 On Sun 28 Jun 2009 at 16:10:51 PDT Michael Powell wrote:

 alexus wrote:

 On Sun, Jun 28, 2009 at 1:43 PM, Michael Powellnightre...@verizon.net
 wrote:

 alexus wrote:

 [snip]

 company policy not too use ports, any other suggestions?

 Change this company policy as it is unproductive. Sounds like something
 implemented by those lacking experience with FreeBSD.

 The time port maintainers have spent developing patch sets that ensure an
 easy build and install is not being leveraged. The time you spend
 developing
 your own workarounds to build software with the various autotools is more
 waste, you are duplicating efforts already made by others. The amount of
 time and effort you will spend when it comes time to update is effort
 wasted, because now you are duplicating the efforts of others yet *again*.

 If the company policy is dictated by people who have no concept of how to
 manage efficient man-hour usage, and who will not listen when others have
 superior suggestions, your company has other problems besides it's lack of
 knowledge concerning FreeBSD.

 -Mike

 If management refuses to listen to reason, you can still benefit from
 the efforts of the port maintainers by studying their makefiles and
 patches. Their stuff builds and installs correctly, or it would never
 have been committed into the portstree.
 It's probably a lot easier to understand the FreeBSD porting system than
 it is to understand the autotools suite.  ;-)
  ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Ok, can we get off subject of managment and get to the actual subject
of this issue?
I didn't had any issues while doing exact same thing on another box,
so, it's this particular box that wont compile it properly
is there any suggestions towards solution for this particular problem
(other then changing managment) =)

-- 
http://alexus.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: what character is a physical newline

2009-06-28 Thread Matthew Seaman

Aryeh M. Friedman wrote:

Glen Barber wrote:

On Sun, Jun 28, 2009 at 10:21 PM, Aryeh M.
Friedmanaryeh.fried...@gmail.com wrote:
 

I am writting a parser (tokenizes all characters among other things) and
need to know what control char is equivelent to a newline (I do not need
windows cross compatibility)



What do you mean exactly?  What language(s)?  If I understand your
question correctly, the C / C++ / Java / PHP (and I think Perl)
'newline' character is '\n'

  
I meant what ascii character does \n actual correspond to (I assume CR 
but just making sure)


On Unix, the end of line character is NL (012 octal, 10 decimal, 0x0a hex) --
see ascii(7).  Some people know it as Ctrl-J

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature