Re: perl-threaded

2011-05-24 Thread Jamie Paul Griffin
On Mon, May 23, 2011 at 05:50:39PM -0400, Alejandro Imass wrote:

 Not necessarily, many cpan modules are either thread unaware/innocuous
 or thread safe, though there are exceptions.
 I have re-compiled Perl with threads with pre-installed libraries and
 never had a problem.
 
 You will surely know which things fail when they blow-up or leak you
 to death, when you use threading of course. Especially long-running
 software like mod_perl. But for that, you always have
 maxrequestsperchild ;-)
 
 Now that I mention it, mod_perl would probably need rebuilding IMHO
 just to be on the safe side, wherever _that_ is with threads ;-)
 
 Joking aside, I have scaled tremendously with apache mod_perl +
 mod_worker a rare but exquisite high-scale Web software recipe.
 
Hi Alejandro - I did encounter a few issues, rebuilt them all and it's good. 
Thanks for your reply. 

jamie
___
freebsd-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 wine with nvidia-driver

2011-05-24 Thread alphachi
I have install it successfully and test with World of Warcraft; it's fine.
Thank you very much! :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


info about java ide

2011-05-24 Thread Jamie Paul Griffin
Hello

I need to install a Java ide and I'm looking for advice about which jdk 
component might be best to use with it. I was thinking about using netbeans so 
would I need to use the sun-linux-jdk16 for that or could I use openjdk 
instead. Perhaps diablo-jdk16 would be better, I guess I'd need that to 
actually build the sun version anyway wouldn't I?

Any help would be great. 

Jamie
___
freebsd-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: Filename containing French characters ?

2011-05-24 Thread Frank Bonnet

OK now the filenames are well displayed in the console
\BUT ...

It still does not work with apache ( 404 file not found ! )

here is the log of apache when trying to access a filename
that contains those bloody characters



82.238.8.126 - - [24/May/2011:06:56:01 +0200] GET 
/cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA_Anthony%20Aim%C3%A9e%20Marthe%20Moteh.docx 
HTTP/1.1 404 1337


The problem comes from the %C3%A9e character ( e eacute )

apache is unable to open that filename


On 05/24/2011 06:44 AM, Frank Bonnet wrote:

Thanks that is working :-)

Now I have to test the application ( apache based application )
to see if it is able to open the file.

I'll tell in few hours when arrived to my office


Le 23/05/2011 17:50, Modulok a écrit :
Short answer, use a glob pattern. Assume I have a file named 'à 
fichier.txt':


 ls -l
 -rw-r--r--  1 Modulok  Modulok   12 May 23 09:01 ?? fichier.txt

 mv ?\ fichier.txt aFile.txt

Long answer, for those who want to follow along and fix their 
terminal to

display UTF-8, keep reading...

Step 1: Make a funky file to play along with this min-tutorial:
===

Create a text file with an editor that supports non-ASCII characters. I
created a file named 'filename' which containing this (no newline!):

 à fichier.txt

Step 2: Create the actual file with content
===

I used echo and cat like so in the tcsh shell:

 echo hello world  `cat filename`


Step 3: Show the file in ls
===

As you can see below, the first character of the filename is 
displayed as two
question marks. This is the terminal's way of showing filenames that 
it cannot
display correctly. There are two question marks, because this is a 
two-byte
character. This does *not* mean the filename starts with a literal 
question

mark:


 -rw-r--r--  1 Modulok  Modulok   12 May 23 09:01 ?? fichier.txt

Step 4: (optional) Fix the terminal
===

At this point, let's just fix the terminal so that UTF-8 characters are
displayed correctly. We want to see the French accented 'à', and not 
a bunch of
question marks. To do this, you edit '/etc/login.conf' as root. Add 
two lines
at the bottom of the 'default' section. My default section now looks 
like this:



 default:\
 :passwd_format=md5:\
 :copyright=/etc/COPYRIGHT:\

 ...and so on...

 :charset=en_US.UTF-8:\
 :lang=en_US.UTF-8:

If you're a French operation yours should probably look like this 
instead:


 default:\
 :passwd_format=md5:\
 :copyright=/etc/COPYRIGHT:\

 ...and so on...

 :charset=fr_FR.UTF-8:\
 :lang=fr_FR.UTF-8:

I'm not certain on these for all countries, but the above examples 
work. We
then need to rebuild the actual login database. Execute the following 
command

as root:

 cap_mkdb /etc/login.conf

This generates /etc/login.conf.db from /etc/login.conf. Now log out 
and then

back in!


Step 5: Back to the funky file
==

You should now see the actual accent characters correctly in the 
terminal.

(Assuming your terminal supports this):

 -rw-r--r--  1 Modulok  Modulok   12 May 23 09:01 à fichier.txt

In some ternimals, we cannot type these characters. So you can access 
the
filename through a shell glob pattern. In most shells, the glob 
pattern '?'

matches any single character. The forward slash escapes the space in the
filename.

 mv ?\ fichier.txt aFile.txt


Hope this helps (and doesn't get too mangled.)
-Modulok-

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



--

Frank BONNET

01.45.92.66.17

Service des Moyens Informatiques Generaux

ESIEE PARIS
Cité Descartes / BP 99
93162 NOISY-LE-GRAND Cedex
http://www.esiee.fr http://www.esiee.fr/

___
freebsd-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: opera 11.11 and flash

2011-05-24 Thread Jamie Paul Griffin
On Mon, May 23, 2011 at 07:57:59PM -0300, Mario Lobo wrote:
 
 The attached picture shows Opera 11.10 with the www/opera-linuxplugins port
 installed showing the video as I was typing this. Perfect.
 -- 
 Mario Lobo

Hi Mario - looks good, glad you had more success than I did. To be fair, I 
didn't persevere as much as should have done but, I have to say I am so 
impressed with the new firefox, it works so well on my system so i'm glad it 
worked out that way.

Cheers
Jamie
___
freebsd-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: Filename containing French characters ?

2011-05-24 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Tue May 24 02:32:36 2011
 Date: Tue, 24 May 2011 09:32:20 +0200
 From: Frank Bonnet f.bon...@esiee.fr
 To: freebsd-questions@freebsd.org
 Subject: Re: Filename containing French characters ?

 OK now the filenames are well displayed in the console
 \BUT ...

 It still does not work with apache ( 404 file not found ! )

 here is the log of apache when trying to access a filename that contains 
 those bloody characters



 82.238.8.126 - - [24/May/2011:06:56:01 +0200] GET
 /cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA_Anthony
 %20Aim%C3%A9e%20Marthe%20Moteh.docx HTTP/1.1 404 1337

 The problem comes from the %C3%A9e character ( e eacute )

Please show the output of 
  ls -lb /cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA*
and 
 ls -lb /cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA* \
 | od -xc

And, also with {DOCROOT} (whatever it is) prepended to the paths shown above.

*AlSO* show your apache configuration file -- especially what 'DOCROOT' is.

Lastly, do you have _any_ path-rewriting rules that might result in a
different _actual_ path than the 'requested' one?  Virtually =every- Apache
installation has at least one such rewrite rule.

Please show _all_ such rules/transformations.



___
freebsd-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: Filename containing French characters ?

2011-05-24 Thread Frank Bonnet

On 05/24/2011 10:01 AM, Robert Bonomi wrote:

 From owner-freebsd-questi...@freebsd.org  Tue May 24 02:32:36 2011
Date: Tue, 24 May 2011 09:32:20 +0200
From: Frank Bonnetf.bon...@esiee.fr
To: freebsd-questions@freebsd.org
Subject: Re: Filename containing French characters ?

OK now the filenames are well displayed in the console
\BUT ...

It still does not work with apache ( 404 file not found ! )

here is the log of apache when trying to access a filename that contains
those bloody characters



82.238.8.126 - - [24/May/2011:06:56:01 +0200] GET
/cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA_Anthony
%20Aim%C3%A9e%20Marthe%20Moteh.docx HTTP/1.1 404 1337

The problem comes from the %C3%A9e character ( e eacute )

Please show the output of
   ls -lb /cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA*



ls -lb 11_EM1_SI_AMI*
ls: No match



and
  ls -lb /cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA* \
  | od -xc
ls -lb 
/cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA* | od -xl

ls: No match.

ls -lb in the directory give that :

-rw-r--r--  1 www-data  www-data   18294 24 mai 03:00 
11_EM2_SI_JUIN_CV_AMICHIA_Anthony Aim\351e Marthe Moteh.docx


but wildcards fails as you can see in preceding lines.


And, also with {DOCROOT} (whatever it is) prepended to the paths shown above.


DOCROOT is OK all files that does not contains accentuated characters
are well opened and displayed in web pages.


*AlSO* show your apache configuration file -- especially what 'DOCROOT' is.

Lastly, do you have _any_ path-rewriting rules that might result in a
different _actual_ path than the 'requested' one?  Virtually =every- Apache
installation has at least one such rewrite rule.



no rewriting rules a all


Please show _all_ such rules/transformations.






--

Frank BONNET

01.45.92.66.17

Service des Moyens Informatiques Generaux

ESIEE PARIS
Cité Descartes / BP 99
93162 NOISY-LE-GRAND Cedex
http://www.esiee.fr http://www.esiee.fr/

___
freebsd-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: info about java ide

2011-05-24 Thread Patrick Lamaiziere
Le Tue, 24 May 2011 08:20:45 +0100,
Jamie Paul Griffin grif...@gnix.co.uk a écrit :

Hello,

 I need to install a Java ide and I'm looking for advice about which
 jdk component might be best to use with it. I was thinking about
 using netbeans so would I need to use the sun-linux-jdk16 for that or
 could I use openjdk instead.

I use netbeans with openjdk6 or the sun/oracle version.
That works fine, except the profiler which is not available on FreeBSD.

 Perhaps diablo-jdk16 would be better, I
 guess I'd need that to actually build the sun version anyway wouldn't
 I?

Yes you need java to build java.

If you build java with IPv6 you may have problem with the subversion
module in netbeans, you have to specify -Djava.net.preferIPv4Stack=true
on the java command line (or -J-D in netbeans.conf).

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


Enable Sqlite3 module in python

2011-05-24 Thread Odhiambo Washington
Hello members,

I am on FreeBSD 8.2-STABLE and I am running with python2.7. However I have a
problem:

mail# python2.7 -c 'import sqlite3'

Traceback (most recent call last):
  File string, line 1, in module
  File /usr/local/lib/python2.7/
sqlite3/__init__.py, line 24, in module
from dbapi2 import *
  File /usr/local/lib/python2.7/sqlite3/dbapi2.py, line 27, in module
from _sqlite3 import *
ImportError: No module named _sqlite3


How do I enable the sqlite3 module in python2.7

PS: Is anyone here testing out Mailman 3 with Exim, by any chance?



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.
___
freebsd-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: Enable Sqlite3 module in python

2011-05-24 Thread Maxim Khitrov
On Tue, May 24, 2011 at 4:21 AM, Odhiambo Washington odhia...@gmail.com wrote:
 Hello members,

 I am on FreeBSD 8.2-STABLE and I am running with python2.7. However I have a
 problem:

 mail# python2.7 -c 'import sqlite3'

 Traceback (most recent call last):
  File string, line 1, in module
  File /usr/local/lib/python2.7/
 sqlite3/__init__.py, line 24, in module
    from dbapi2 import *
  File /usr/local/lib/python2.7/sqlite3/dbapi2.py, line 27, in module
    from _sqlite3 import *
 ImportError: No module named _sqlite3


 How do I enable the sqlite3 module in python2.7

Install databases/py-sqlite3. The python installation shows the
following message when it is finished:


Note that some of the standard modules are provided as separate
ports since they require extra dependencies:

bsddb   databases/py-bsddb
gdbmdatabases/py-gdbm
sqlite3 databases/py-sqlite3
tkinter x11-toolkits/py-tkinter

Install them as needed.


- Max
___
freebsd-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: ARP tables in FreeBSD (vs Linux)

2011-05-24 Thread Nikos Vassiliadis

On 5/23/2011 10:46 PM, Rogelio wrote:

I found that a certain Linux gateway was having a difficult time with
thousands of ARP entries (about 13K concurrent ARP entries in 10 min
from ISP subscribers), so I put it behind a Cisco 7201 router and
added an IP helper to the interface.  Now it seems to be working much
much better.


Was the rate of ARPs the problem?
Or the size of the ARP table?

Nikos
___
freebsd-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: Filename containing French Characters

2011-05-24 Thread Robert Bonomi

 Date: Tue, 24 May 2011 10:28:02 +0200
 From: Frank Bonnet f.bon...@esiee.fr
 Subject: Re: Filename containing French characters ?

 On 05/24/2011 10:01 AM, Robert Bonomi wrote:
   From owner-freebsd-questi...@freebsd.org  Tue May 24 02:32:36 2011 
   Date: Tue, 24 May 2011 09:32:20 +0200 From: Frank 
   Bonnetf.bon...@esiee.fr To: freebsd-questions@freebsd.org Subject: 
   Re: Filename containing French characters ?
 
  OK now the filenames are well displayed in the console
  \BUT ...
 
  It still does not work with apache ( 404 file not found ! )
 
  here is the log of apache when trying to access a filename that 
  contains those bloody characters
 
  82.238.8.126 - - [24/May/2011:06:56:01 +0200] GET
  /cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA_Ant=
 hony
  %20Aim%C3%A9e%20Marthe%20Moteh.docx HTTP/1.1 404 1337
 
  The problem comes from the %C3%A9e character ( e eacute )

Not surprising, there is _no_ %C3%A9e character in the file name.  grin

 ls -lb in the directory give that :

 -rw-r--r--  1 www-data  www-data   18294 24 mai 03:00 
 11_EM2_SI_JUIN_CV_AMICHIA_Anthony Aim\351e Marthe Moteh.docx

 but wildcards fails 

Ah so.  

There is an 'unfortunate' line-break in the ls output you show. This may
be *VERY* significant.  IF what is shown above _is_ *exactly* how the output 
appears, then there is a '[NL]' as the first character of the filename. In 
_that_ case, putting a '?' or '*' on the front of the wildcard string 
_should_ expand to the actual file nam.  That is, ls -lb ?11_EM2* should 
succeed.

OTOH, *IF* the ls -lb output appears as one long line, please check the 
output _carefully_, and report _how_many_spaces_ between the last digit of 
the timestamp, and the fist 'visible' character of the file name.  Check 
that count against a file name that you _can_ wild-card.  (I've got a nasty 
suspicion that there is a _space_ or other 'non-printing' character as the 
first character of the filename.) 

*IF* none of the above applies, then (and ONLY then) the following applies:
  1) try fetching the URL:
   
http://{{server}}/cv/ESIEE_MANAGEMENT/Systeme_information/11_EM2_SI_JUIN_CV_AMICHIA_Anthony%20Aim%E9e%20Marthe%20Moteh.docx

  2) NOTE:   filename 'globbing' (what you call 'wildcards') failing to match 
 that filename *is* a genuine bug as regards whatever shell you are 
 using, and you SHOULD file a formal bug report (aka PR) on that issue.

  3) For completeness, try the 'ls -lb  11*' command, while in the data 
 directory, under 'sh', 'tcsh', 'ksh', 'zsh', =and= 'bash'.  file a bug
 report for every shell where the wildcard expansion fails.

 For the bug report, Include the output generated by script(1), showing
 the 'ls -lb' of the entire directory, _and_ the attempt to use a 
 wildcard match. Do _NOT_ edit that script log file in any way.

 the ideal sequence is:
1) invoke script(1).
2) invoke the shell being tested.
3) cd(1) to the relevant directory
4) execute 'ls -lb'
5) execute 'ls -lb 11*
6) exit the shell under test.
7) exit scriot(1)
8) save the 'typescript' file under an appropriate name.

repeat for each shell tested.

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


x11-wm/olvwm

2011-05-24 Thread fredb

Hello,

I have updated ports and when reinstalling I found x11-wm/olvwm which  
I was using was gone from the ports tree.  Why?


Best regards,
Fred


This message was sent using IMP, the Internet Messaging Program.

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


CRUX and FREE BSD

2011-05-24 Thread Ramu Chakravadhanula
hi,

I have to make CRUX and FREE BSD dual boot. Is that possible? how can i do
that?? I have CRUX installed before. now i want to use Free BSD 7.3. please
help me, thank you.

Best regards,
ramu
___
freebsd-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: x11-wm/olvwm

2011-05-24 Thread Julian H. Stacey
fr...@getnet.com wrote:
 Hello,
 
 I have updated ports and when reinstalling I found x11-wm/olvwm which  
 I was using was gone from the ports tree.  Why?

Better ask on po...@freebsd.org

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Mail plain text;  Not quoted-printable, Not HTML, Not base 64.
 Reply below text sections not at top, to avoid breaking cumulative context.
___
freebsd-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: Enable Sqlite3 module in python

2011-05-24 Thread Odhiambo Washington
On Tue, May 24, 2011 at 13:41, Maxim Khitrov m...@mxcrypt.com wrote:

 On Tue, May 24, 2011 at 4:21 AM, Odhiambo Washington odhia...@gmail.com
 wrote:
  Hello members,
 
  I am on FreeBSD 8.2-STABLE and I am running with python2.7. However I
 have a
  problem:
 
  mail# python2.7 -c 'import sqlite3'
 
  Traceback (most recent call last):
   File string, line 1, in module
   File /usr/local/lib/python2.7/
  sqlite3/__init__.py, line 24, in module
 from dbapi2 import *
   File /usr/local/lib/python2.7/sqlite3/dbapi2.py, line 27, in module
 from _sqlite3 import *
  ImportError: No module named _sqlite3
 
 
  How do I enable the sqlite3 module in python2.7

 Install databases/py-sqlite3. The python installation shows the
 following message when it is finished:

 
 Note that some of the standard modules are provided as separate
 ports since they require extra dependencies:

 bsddb   databases/py-bsddb
 gdbmdatabases/py-gdbm
 sqlite3 databases/py-sqlite3
 tkinter x11-toolkits/py-tkinter

 Install them as needed.
 

 - Max



Thanks, Max!



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.
___
freebsd-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: SSD drive not recognized

2011-05-24 Thread Damien Fleuriot


On 5/20/11 5:12 AM, Daniel Staal wrote:
 --As of May 19, 2011 5:30:19 PM -0400, Robert Simmons is alleged to have
 said:
 
 I recently upgraded a hard drive to an SSD drive.  Initially I bought
 a cheap(er) Microcenter house branded SATA II drive (after looking
 around online it turns out it is really an A-Data that was rebranded).
  It was recognized by the BIOS, but not by FreeBSD.  I decided to
 return it and try a name brand (OCZ Vertex 2, 60GB) with the same
 results.  The system is 8.2-RELEASE and this is a fresh install.

 The motherboard (ASRock K8Upgrade-NF3, nForce3 250 chipset) is only
 SATA, not SATA II, but it has another SATA II drive (not SSD) that is
 recognized just fine even without the jumper set to force it to SATA.
 So, I don't think it is a problem with the drive negotiating down to
 SATA, otherwise I don't think the BIOS would recognize it at all.

 What is the best way to figure out why FreeBSD does not recognize the
 drive?
 
 --As for the rest, it is mine.
 
 Well, the traditional first start would be a dmesg.
 
 I'm not sure if there is any possible reason why a SATA II drive might
 not work on a SATA I interface, but I suppose it's a possibility.  A
 good regular HD can fill a SATA I interface, so it could be possible
 that they never expected an SSD to be attached to one.
 
 Daniel T. Staal
 
 ---
 This email copyright the author.  Unless otherwise noted, you
 are expressly allowed to retransmit, quote, or otherwise use
 the contents for non-commercial purposes.  This copyright will
 expire 5 years after the author's death, or in 30 years,
 whichever is longer, unless such a period is in excess of
 local copyright law.
 ---
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org




FYI, this Corsair one works on 8.2-RELEASE

ad16: 30533MB Corsair CSSD-V32GB2 2.2 at ata8-master UDMA100 SATA 3Gb/s

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


Re: CRUX and FREE BSD

2011-05-24 Thread Julian H. Stacey
Hi,
Reference:
 From: Ramu Chakravadhanula boys21cent...@gmail.com 
 Date: Tue, 24 May 2011 16:38:36 +0200 
 Message-id:   banlktinq0y-wkwj7rzrqh08huvquvv_...@mail.gmail.com 

Ramu Chakravadhanula wrote:
 hi,
 
 I have to make CRUX and FREE BSD dual boot. Is that possible? how can i do
 that?? I have CRUX installed before. now i want to use Free BSD 7.3. please
 help me, thank you.

WTF is Crux ? Oh yet another Linux, is that all ;-)
http://en.wikipedia.org/wiki/CRUX
Lightweight, i686-optimized GNU/Linux distribution targeted
at experienced GNU/Linux users and delivered by a tar.gz-based
package system with BSD-style initscripts. It also utilizes
a ports system to install and upgrade applications.

...
CRUX, unlike other GNU/Linux distributions, doesn't include
a GUI installation program. Instead, the user boots the
kernel stored on either a CD or diskette; partitions the
hard disk drive(s) to which the operating system will be
installed (using a program such as fdisk

So There's your answer, type:   
man fdisk 
Then think how much disk you have, if you a spare, how your going
to shrink partitions maybe, repartition,  cross mount.
Which depends on your hardware  Unix skill level.

If you get really stuck, back up your CRUX to other media.  Reinstall
eithe CRUX or BSD, making sure neither OS takes all the disc, leaving
room for the other OS later ..  then restore CRUX data into CRUX
partition.

Good luck

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Mail plain text;  Not quoted-printable, Not HTML, Not base 64.
 Reply below text sections not at top, to avoid breaking cumulative context.
___
freebsd-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: CRUX and FREE BSD

2011-05-24 Thread Julian H. Stacey
Ramu Chakravadhanula wrote:
 hi,
 
 I have to make CRUX and FREE BSD dual boot. Is that possible? how can i do
 that?? I have CRUX installed before. now i want to use Free BSD 7.3. please

PS did you know 8.2 exists ?

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Mail plain text;  Not quoted-printable, Not HTML, Not base 64.
 Reply below text sections not at top, to avoid breaking cumulative context.
___
freebsd-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: x11-wm/olvwm

2011-05-24 Thread C. P. Ghost
On Tue, May 24, 2011 at 3:53 PM,  fr...@getnet.com wrote:
 Hello,

 I have updated ports and when reinstalling I found x11-wm/olvwm which I was
 using was gone from the ports tree.  Why?

I noticed that too, and was bit by that change as well.
Since I love the olvwm look and feel, I'm sad to see
it go from the FreeBSD ports collection.

% grep olvwm /usr/ports/MOVED
x11-wm/olvwm||2011-05-01|Has expired: Upstream disapear and distfile
is no more available

I think we could resurrect this port, using the last available
distfile, which fortunately is still with us:

ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.tar.Z

There are also two patches there:

ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.Patch01.Z
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.Patch02.Z

Unfortunately, I don't know where the old port files have
gone. We *REALLY* should consider moving dead ports to
a separate subdirectory hierarchy (such as /usr/ports/.deadports
or some such), so people interested in resurrecting old ports
could have a look. Just letting then disappear silently is rude
und unnecessary, but that's just IMHO.

 Best regards,
 Fred

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: x11-wm/olvwm

2011-05-24 Thread Julian H. Stacey
C. P. Ghost wrote:
 On Tue, May 24, 2011 at 3:53 PM,  fr...@getnet.com wrote:
  Hello,
 
  I have updated ports and when reinstalling I found x11-wm/olvwm which I was
  using was gone from the ports tree.  Why?
 
 I noticed that too, and was bit by that change as well.
 Since I love the olvwm look and feel, I'm sad to see
 it go from the FreeBSD ports collection.
 
 % grep olvwm /usr/ports/MOVED
 x11-wm/olvwm||2011-05-01|Has expired: Upstream disapear and distfile
 is no more available
 
 I think we could resurrect this port, using the last available
 distfile, which fortunately is still with us:
 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.tar.Z
 
 There are also two patches there:
 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.Patch01.Z
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.Patch02.Z
 
 Unfortunately, I don't know where the old port files have
 gone. We *REALLY* should consider moving dead ports to
 a separate subdirectory hierarchy (such as /usr/ports/.deadports
 or some such), so people interested in resurrecting old ports
 could have a look. Just letting then disappear silently is rude
 und unnecessary, but that's just IMHO.

They'll be in what what people call the Attic I suppose.
man cvs
tells how to extract to particular dates.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Mail plain text;  Not quoted-printable, Not HTML, Not base 64.
 Reply below text sections not at top, to avoid breaking cumulative context.
___
freebsd-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: Filename containing French characters ?

2011-05-24 Thread C. P. Ghost
On Mon, May 23, 2011 at 5:50 PM, Modulok modu...@gmail.com wrote:
 Short answer, use a glob pattern. Assume I have a file named 'à fichier.txt':

(...)

Very good hints indeed.

I once had a directory full of files with strange characters, so I wrote a
little program that replaced every non-ascii char in a filename with its
hex-encoding (like this: Hello%20World%21, % escape char), so
I could manipulate them with the shell. As long as the expanded
filenames didn't hit the MAXNAMELEN limit in sys/dirent.h, it
worked perfectly.

I could dig this C program out of old archives, but I guess that it is
faster to rewrite it on the fly, or even script it with sh(1), tr(1), awk(1),
and find(1)... ;-)

Alternatively to such a run-once-in-a-while program, I could also
imagine a file system layer on top of existing file systems that
would do this conversion automatically, but that's harder to code,
and harder to debug (kernel mode!).

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Filename containing French characters ?

2011-05-24 Thread Frank Bonnet


finally one of our developer has written
a php function that transcode all accentuated
characters to the corresponding non accentuated
thanks to her !!!

but the problem is NOT solved just workarrounded


Le 24/05/2011 19:53, C. P. Ghost a écrit :

On Mon, May 23, 2011 at 5:50 PM, Modulokmodu...@gmail.com  wrote:

Short answer, use a glob pattern. Assume I have a file named 'à fichier.txt':


(...)

Very good hints indeed.

I once had a directory full of files with strange characters, so I wrote a
little program that replaced every non-ascii char in a filename with its
hex-encoding (like this: Hello%20World%21, % escape char), so
I could manipulate them with the shell. As long as the expanded
filenames didn't hit the MAXNAMELEN limit insys/dirent.h, it
worked perfectly.

I could dig this C program out of old archives, but I guess that it is
faster to rewrite it on the fly, or even script it with sh(1), tr(1), awk(1),
and find(1)... ;-)

Alternatively to such a run-once-in-a-while program, I could also
imagine a file system layer on top of existing file systems that
would do this conversion automatically, but that's harder to code,
and harder to debug (kernel mode!).

-cpghost.


___
freebsd-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: Filename containing French characters ?

2011-05-24 Thread Chuck Swiger
On May 24, 2011, at 11:32 AM, Frank Bonnet wrote:
 finally one of our developer has written
 a php function that transcode all accentuated
 characters to the corresponding non accentuated
 thanks to her !!!
 
 but the problem is NOT solved just workarrounded

Sure.  FreeBSD's default filesystem supports UTF8, but not arbitrary 
composition of Unicode characters.  If you want this to work better, you need 
to make sure that you use normalized UTF8 filenames and UTF8 URLs from Apache.

It's likely that a discussion of Unicode normalization would be helpful:

  http://www.unicode.org/reports/tr15/index.html

IBM's ICU (at http://site.icu-project.org/), or Apple's discussion of HFS 
normalization (Unicode Normal Forms D, at 
http://developer.apple.com/library/mac/#qa/qa2001/qa1235.html) would also be 
informative.

Regards,
-- 
-Chuck

___
freebsd-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: x11-wm/olvwm

2011-05-24 Thread Jamie Paul Griffin
On Tue, May 24, 2011 at 07:09:11PM +0200, C. P. Ghost wrote:
 Just letting then disappear silently is rude und unnecessary, but that's just 
 IMHO.

I completely agree. That's happened to me before, I spent so much time getting 
things set up the way I like it for it all to be in vain. We're only users of 
the distribution afterall. 
___
freebsd-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: CRUX and FREE BSD

2011-05-24 Thread Jamie Paul Griffin
On Tue, May 24, 2011 at 04:38:36PM +0200, Ramu Chakravadhanula wrote:
 hi,
 
 I have to make CRUX and FREE BSD dual boot. Is that possible? how can i do
 that?? I have CRUX installed before. now i want to use Free BSD 7.3. please
 help me, thank you.

The best thing would be to delete Linux off the partition and put FreeBSD on 
it. Linux is always disappointing and you'll learn much more from using a 
proper UNIX system. 
___
freebsd-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: x11-wm/olvwm

2011-05-24 Thread Chris Rees
On 24 May 2011 18:09, C. P. Ghost cpgh...@cordula.ws wrote:
 On Tue, May 24, 2011 at 3:53 PM,  fr...@getnet.com wrote:
 Hello,

 I have updated ports and when reinstalling I found x11-wm/olvwm which I was
 using was gone from the ports tree.  Why?

 I noticed that too, and was bit by that change as well.
 Since I love the olvwm look and feel, I'm sad to see
 it go from the FreeBSD ports collection.

 % grep olvwm /usr/ports/MOVED
 x11-wm/olvwm||2011-05-01|Has expired: Upstream disapear and distfile
 is no more available

 I think we could resurrect this port, using the last available
 distfile, which fortunately is still with us:

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.tar.Z

 There are also two patches there:

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.Patch01.Z
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.Patch02.Z

 Unfortunately, I don't know where the old port files have
 gone. We *REALLY* should consider moving dead ports to
 a separate subdirectory hierarchy (such as /usr/ports/.deadports
 or some such), so people interested in resurrecting old ports
 could have a look. Just letting then disappear silently is rude
 und unnecessary, but that's just IMHO.

I don't understand your comment on silence -- they've been deprecated
for a while now.

I'll take a look at resurrecting and hosting it tomorrow, if people
are interested.

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


Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Andy Wodfer
Hi,
One of my FreeBSD servers is currently being attacked (DDOS) and I'm
blocking IP addresses in my firewall. However, there are a large number of
hung tcp connections and I want them gone.

Can anyone help me with a script (command line) that can read a netstat -n
and tcpdrop all IP addresses that has more than 10 connections or a more
manual command where I can input an IP and it will drop all connections from
that IP regardless of port?

Thanks in advance!

Shell scripting isn't what I'm best at unfortunatly ...

Andy
___
freebsd-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: Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Andy Wodfer
Thanks!
That would work on all my servers except this one .. which runs 6.3 STABLE
(due to some old services requiring old software).

Any other suggestions?

Thanks!

Andy


On Tue, May 24, 2011 at 10:42 PM, Greg Larkin glar...@freebsd.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 5/24/11 4:29 PM, Andy Wodfer wrote:
  Hi,
  One of my FreeBSD servers is currently being attacked (DDOS) and I'm
  blocking IP addresses in my firewall. However, there are a large number
 of
  hung tcp connections and I want them gone.
 
  Can anyone help me with a script (command line) that can read a netstat
 -n
  and tcpdrop all IP addresses that has more than 10 connections or a more
  manual command where I can input an IP and it will drop all connections
 from
  that IP regardless of port?
 
  Thanks in advance!
 
  Shell scripting isn't what I'm best at unfortunatly ...
 
  Andy

 Hi Andy,

 This will drop all connections to/from IP address 192.168.22.22:

 tcpdrop -l -a | grep 192.168.22.22 | sh

 Just substitute your desired IP address, and that will do the trick.

 Good luck,
 Greg
 - --
 Greg Larkin

 http://www.FreeBSD.org/   - The Power To Serve
 http://www.sourcehosting.net/ - Ready. Set. Code.
 http://twitter.com/cpucycle/  - Follow you, follow me
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk3cGC8ACgkQ0sRouByUApBlvACfaOneJdIQGiNNo2FYbKJx3EI8
 w58AniK6ZolieHscRFWleR1CoofAtGe8
 =03TM
 -END PGP SIGNATURE-

___
freebsd-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: Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Alejandro Imass
On Tue, May 24, 2011 at 4:29 PM, Andy Wodfer wod...@gmail.com wrote:
 Hi,
 One of my FreeBSD servers is currently being attacked (DDOS) and I'm
 blocking IP addresses in my firewall. However, there are a large number of
 hung tcp connections and I want them gone.


I know it's not what you're asking but for the future try fail2ban. I
can gladly post a simple how to here for FreeBSD.

It's a very simple solution but I have been keeping off pests quite
well with fail2ban. I think it's an awesome and simple framework to
automatically ban IPs and they just move on to the th next server. In
fact you can see the bannings diminish in time as they are the one
that get tired ;-)

Good luck,

--
Alejandro Imass
___
freebsd-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: Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 5/24/11 4:48 PM, Andy Wodfer wrote:
 Thanks!
 That would work on all my servers except this one .. which runs 6.3 STABLE
 (due to some old services requiring old software).
 
 Any other suggestions?
 
 Thanks!
 
 Andy
 

Ok, here goes:

netstat -an | grep ^tcp | grep -v LISTEN | awk '{ print $5 }' | egrep -v
'^(172\.16|192\.168|127\.0)' | cut -f1-4 -d\. | awk '{ a[$1]++ } END {
for (i in a) { if (a[i]  10) { print i; } } }' | xargs -n1 -I % sh -c
'sockstat -c | grep %' | awk '{ print $6   $7 }' | sed -e 's/:/ /g' -e
's/^/tcpdrop /'

Paste that all on one line, and it should print (but not execute!)
tcpdrop commands for IPs that have more than 10 connections to your
server.  The commands will work on 6.x and later versions of the OS,
since it doesn't use tcpdrop -l -a.

If you like the output and want to actually run the tcpdrop commands,
add | sh to the end of the pipeline.

YMMV, because I didn't actually execute the commands. I just printed the
tcpdrop commands, and they looked good.

Good luck,
Greg

 
 On Tue, May 24, 2011 at 10:42 PM, Greg Larkin glar...@freebsd.org wrote:
 
 On 5/24/11 4:29 PM, Andy Wodfer wrote:
 Hi,
 One of my FreeBSD servers is currently being attacked (DDOS) and I'm
 blocking IP addresses in my firewall. However, there are a large number
 of
 hung tcp connections and I want them gone.

 Can anyone help me with a script (command line) that can read a netstat
 -n
 and tcpdrop all IP addresses that has more than 10 connections or a more
 manual command where I can input an IP and it will drop all connections
 from
 that IP regardless of port?

 Thanks in advance!

 Shell scripting isn't what I'm best at unfortunatly ...

 Andy
 
 Hi Andy,
 
 This will drop all connections to/from IP address 192.168.22.22:
 
 tcpdrop -l -a | grep 192.168.22.22 | sh
 
 Just substitute your desired IP address, and that will do the trick.
 
 Good luck,
 Greg

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

- -- 
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/cpucycle/  - Follow you, follow me
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3cHIkACgkQ0sRouByUApDFdQCgtAPatfLnJP7/r2d/OBhy/P9T
VJsAn3mWXgqG4GTa9GzuUuH2pDm4JPbz
=27Nl
-END PGP SIGNATURE-
___
freebsd-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: Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Andy Wodfer
Thanks a lot! That was very helpful!

Things have calmed down now.

However, I was surprised to see how quick the tcp connections came back in
netstat. Have to take a closer look at my firewall I guess.

Cheers!
Andy

On Tue, May 24, 2011 at 11:00 PM, Greg Larkin glar...@freebsd.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 5/24/11 4:48 PM, Andy Wodfer wrote:
  Thanks!
  That would work on all my servers except this one .. which runs 6.3
 STABLE
  (due to some old services requiring old software).
 
  Any other suggestions?
 
  Thanks!
 
  Andy
 

 Ok, here goes:

 netstat -an | grep ^tcp | grep -v LISTEN | awk '{ print $5 }' | egrep -v
 '^(172\.16|192\.168|127\.0)' | cut -f1-4 -d\. | awk '{ a[$1]++ } END {
 for (i in a) { if (a[i]  10) { print i; } } }' | xargs -n1 -I % sh -c
 'sockstat -c | grep %' | awk '{ print $6   $7 }' | sed -e 's/:/ /g' -e
 's/^/tcpdrop /'

 Paste that all on one line, and it should print (but not execute!)
 tcpdrop commands for IPs that have more than 10 connections to your
 server.  The commands will work on 6.x and later versions of the OS,
 since it doesn't use tcpdrop -l -a.

 If you like the output and want to actually run the tcpdrop commands,
 add | sh to the end of the pipeline.

 YMMV, because I didn't actually execute the commands. I just printed the
 tcpdrop commands, and they looked good.

 Good luck,
 Greg

 
  On Tue, May 24, 2011 at 10:42 PM, Greg Larkin glar...@freebsd.org
 wrote:
 
  On 5/24/11 4:29 PM, Andy Wodfer wrote:
  Hi,
  One of my FreeBSD servers is currently being attacked (DDOS) and I'm
  blocking IP addresses in my firewall. However, there are a large
 number
  of
  hung tcp connections and I want them gone.
 
  Can anyone help me with a script (command line) that can read a
 netstat
  -n
  and tcpdrop all IP addresses that has more than 10 connections or a
 more
  manual command where I can input an IP and it will drop all
 connections
  from
  that IP regardless of port?
 
  Thanks in advance!
 
  Shell scripting isn't what I'm best at unfortunatly ...
 
  Andy
 
  Hi Andy,
 
  This will drop all connections to/from IP address 192.168.22.22:
 
  tcpdrop -l -a | grep 192.168.22.22 | sh
 
  Just substitute your desired IP address, and that will do the trick.
 
  Good luck,
  Greg
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

 - --
 Greg Larkin

 http://www.FreeBSD.org/   - The Power To Serve
 http://www.sourcehosting.net/ - Ready. Set. Code.
 http://twitter.com/cpucycle/  - Follow you, follow me
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk3cHIkACgkQ0sRouByUApDFdQCgtAPatfLnJP7/r2d/OBhy/P9T
 VJsAn3mWXgqG4GTa9GzuUuH2pDm4JPbz
 =27Nl
 -END PGP SIGNATURE-

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


canon ip4700 and cups

2011-05-24 Thread Jamie Paul Griffin
hello

i'm trying to get my canon ip4700 printer setup with cups. i'm half way there, 
get to add the printer in the web interface but no driver listed. i've 
installed the ports suggested in the handbook section on cups for drivers. it 
lists drivers for most of the ip series except mine which is typical. as along 
shot i downloaded the source from canon for linux and tried to use the ppd file 
that came with but needless to say it didn't work. 

does anyone use this printer on FreeBSD, if you do i'd love to know how you got 
it set up. 


best wishes, 

jamie
___
freebsd-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: Urgent: Under attack - need tcpdrop help

2011-05-24 Thread Gary Gatten
FWIW:, you may also try null routing the suspicious / bad IP ranges vs. 
adding to firewall confs.  Typically far less overhead, and perhaps easier.  
YMMV.

G


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Andy Wodfer
Sent: Tuesday, May 24, 2011 5:10 PM
To: glar...@freebsd.org
Cc: freebsd-questions
Subject: Re: Urgent: Under attack - need tcpdrop help

Thanks a lot! That was very helpful!

Things have calmed down now.

However, I was surprised to see how quick the tcp connections came back in
netstat. Have to take a closer look at my firewall I guess.

Cheers!
Andy

On Tue, May 24, 2011 at 11:00 PM, Greg Larkin glar...@freebsd.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 5/24/11 4:48 PM, Andy Wodfer wrote:
  Thanks!
  That would work on all my servers except this one .. which runs 6.3
 STABLE
  (due to some old services requiring old software).
 
  Any other suggestions?
 
  Thanks!
 
  Andy
 

 Ok, here goes:

 netstat -an | grep ^tcp | grep -v LISTEN | awk '{ print $5 }' | egrep -v
 '^(172\.16|192\.168|127\.0)' | cut -f1-4 -d\. | awk '{ a[$1]++ } END {
 for (i in a) { if (a[i]  10) { print i; } } }' | xargs -n1 -I % sh -c
 'sockstat -c | grep %' | awk '{ print $6   $7 }' | sed -e 's/:/ /g' -e
 's/^/tcpdrop /'

 Paste that all on one line, and it should print (but not execute!)
 tcpdrop commands for IPs that have more than 10 connections to your
 server.  The commands will work on 6.x and later versions of the OS,
 since it doesn't use tcpdrop -l -a.

 If you like the output and want to actually run the tcpdrop commands,
 add | sh to the end of the pipeline.

 YMMV, because I didn't actually execute the commands. I just printed the
 tcpdrop commands, and they looked good.

 Good luck,
 Greg

 
  On Tue, May 24, 2011 at 10:42 PM, Greg Larkin glar...@freebsd.org
 wrote:
 
  On 5/24/11 4:29 PM, Andy Wodfer wrote:
  Hi,
  One of my FreeBSD servers is currently being attacked (DDOS) and I'm
  blocking IP addresses in my firewall. However, there are a large
 number
  of
  hung tcp connections and I want them gone.
 
  Can anyone help me with a script (command line) that can read a
 netstat
  -n
  and tcpdrop all IP addresses that has more than 10 connections or a
 more
  manual command where I can input an IP and it will drop all
 connections
  from
  that IP regardless of port?
 
  Thanks in advance!
 
  Shell scripting isn't what I'm best at unfortunatly ...
 
  Andy
 
  Hi Andy,
 
  This will drop all connections to/from IP address 192.168.22.22:
 
  tcpdrop -l -a | grep 192.168.22.22 | sh
 
  Just substitute your desired IP address, and that will do the trick.
 
  Good luck,
  Greg
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

 - --
 Greg Larkin

 http://www.FreeBSD.org/   - The Power To Serve
 http://www.sourcehosting.net/ - Ready. Set. Code.
 http://twitter.com/cpucycle/  - Follow you, follow me
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk3cHIkACgkQ0sRouByUApDFdQCgtAPatfLnJP7/r2d/OBhy/P9T
 VJsAn3mWXgqG4GTa9GzuUuH2pDm4JPbz
 =27Nl
 -END PGP SIGNATURE-

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





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
freebsd-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: canon ip4700 and cups

2011-05-24 Thread Adam Vande More
On Tue, May 24, 2011 at 5:12 PM, Jamie Paul Griffin grif...@gnix.co.ukwrote:

 i'm trying to get my canon ip4700 printer setup with cups. i'm half way
 there, get to add the printer in the web interface but no driver listed.
 i've installed the ports suggested in the handbook section on cups for
 drivers. it lists drivers for most of the ip series except mine which is
 typical. as along shot i downloaded the source from canon for linux and
 tried to use the ppd file that came with but needless to say it didn't work.

 does anyone use this printer on FreeBSD, if you do i'd love to know how you
 got it set up.


print/gutenprint

-- 
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: x11-wm/olvwm

2011-05-24 Thread Robert Simmons
On Tue, May 24, 2011 at 4:00 PM, Chris Rees utis...@gmail.com wrote:
 On 24 May 2011 18:09, C. P. Ghost cpgh...@cordula.ws wrote:
 On Tue, May 24, 2011 at 3:53 PM,  fr...@getnet.com wrote:
 Hello,

 I have updated ports and when reinstalling I found x11-wm/olvwm which I was
 using was gone from the ports tree.  Why?

 I noticed that too, and was bit by that change as well.
 Since I love the olvwm look and feel, I'm sad to see
 it go from the FreeBSD ports collection.

 % grep olvwm /usr/ports/MOVED
 x11-wm/olvwm||2011-05-01|Has expired: Upstream disapear and distfile
 is no more available

 I think we could resurrect this port, using the last available
 distfile, which fortunately is still with us:

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.tar.Z

 There are also two patches there:

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.Patch01.Z
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/olvwm4.Patch02.Z

 Unfortunately, I don't know where the old port files have
 gone. We *REALLY* should consider moving dead ports to
 a separate subdirectory hierarchy (such as /usr/ports/.deadports
 or some such), so people interested in resurrecting old ports
 could have a look. Just letting then disappear silently is rude
 und unnecessary, but that's just IMHO.

 I don't understand your comment on silence -- they've been deprecated
 for a while now.

 I'll take a look at resurrecting and hosting it tomorrow, if people
 are interested.

I grabbed the source and took a look at it.  At the end of the README
there is the following line: Bugs may be reported to Scott Oaks
(scott.o...@east.sun.com), who will try to fix bugs whenever he can.
Looks to be the old maintainer from the Sun days.  The tarball that I
grabbed doesn't have the LEGAL_NOTICE file, so it's not clear to me
which Sun license it is under.

It seems that the port depends on the olgx library which also seems to
be deprecated.

On xwinman.org, this wm's development activity is listed as LOW.

So, all of this leads me to point out the following: FOSS is a
volunteer thing.  If a maintainer evaporates and the port gets old, it
is taken out of the ports tree.  It's not gone, you can still get
everything if you pull the old ports tree from a specific data as was
mentioned in another reply.  But, if someone writes FOSS, they don't
_have_ to maintain it.  If you really like it, and it has been
abandoned, by all means, pick it up, dust it off, and start updating
the code.

As a user of FOSS, you are not entitled to updates from the
maintainers.  You are, however, a beneficiary of the maintainer's
volunteering their time and effort to provide you with updates.

That aside.  If you don't have time to maintain it, then look for an
alternative.  I would suggest looking at xwinman.org and see if there
is another wm that has a High development activity that has a
similar look and feel to the one that you want.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org