Re: Upgrade 6.1 to 7.1 remotely?

2009-01-29 Thread Adam Vande More

Robert Fitzpatrick wrote:

I have a remote system with no access to boot info. I can get someone to
reset, look at screen, etc. The server is 6.1-RELEASE-p15 and wondering
if there is a path to upgrade to 7.1 remotely. Would it be possible to
do something like this for getting the box to 6.4...

http://www.daemonology.net/blog/2006-11-26-freebsd-6.1-to-6.2-binary-upgrade.html

And then another freebsd-update to 7.1? Seems that box will not let me
portupgrade clamav anymore due to a change from 6.1 :(

../libclamav/.libs/libclamav.so: undefined reference to `gethostbyname_r'
*** Error code 1

  

http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.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


Re: Upgrade 6.1 to 7.1 remotely?

2009-01-30 Thread Adam Vande More

Robert Fitzpatrick wrote:


Thanks, perfect. One of the first things it says to do is a 'portupgrade
-a', which I already know clamav is going to fail. Is this going to
cause problems? And if other packages fail to upgrade, I assume I should
investigate each? However, I don't expect anything else because we only
have mail filtering type packages on this server and all other packages
we installed have upgraded fine and at their latest versions now. We're
also running our own kernel with quota option.

Also, from reading this doc, I'll get the GENERIC kernel with the
upgrade and then I'll just need to rebuild for quotas
You can try to do the steps and ignore clamav failing, then upgrade the 
port after the new kernel is in place.  I guess there is some chance it 
might fail to build after the upgrade for entirely different reasons so 
use that info at your own risk  Making a backup first might be a good idea.


Once the new GENERIC is installed you can edit and rebuild to suit your 
taste, just like you would with a normal kernel change.

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


How to tell what $var assigned PORTVERSION equals.

2009-02-02 Thread Adam Vande More
How does one find out the PORTVERSION of a port when it's in a format 
like such:


PORTVERSION=${KDE4_VERSION}

All the docs/examples I can find easily show PORTVERSION assigned a 
number, not variable.


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: is there any way to increase disk performance ?

2009-02-04 Thread Adam Vande More

Yavuz wrote:

I have freebsd7 (amd64 bit)  and sata2 disk 7200 rpm.

it's running mail server which has services like pop3,imap,smtp and 
webmail on this machine.


When I type systat 1 -vmstat on command line, even I rarely see that 
disk usage hits 100%.

I have no problem as ram and cpu.  they is enough.

is there any way to increase disk performance without causing any 
problem ?



sysctl vfs.read_max=32 can help read performance
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


insert new line in files

2009-02-06 Thread Adam Vande More
I want to insert a new line of text at a certain position in certain 
files recursively under a directory.  More specifically, I want text 
like this:


include('/usr/home/www/imp-sites/default_inventory.php');

to be put into file X at line 37 where file X appears in ./subdir1, 
.subdir2 etc. There are many subdirs or I'd just do it by hand.


I've done stuff like this before with the rpl script and it works well 
as long as there aren't any special characters in the strings.  So I 
assumed I finally hit the point where I'm forced to learn something like 
sed or awk and tried some examples with sed but I can't figure out what 
I'm doing wrong.


I get results like this:

sed '5i\test' test.txt
sed: 1: 5i\test: extra characters after \ at the end of i command

Is sed the right tool for this?  If so, any good primers for BSD sed?
___
freebsd-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: insert new line in files

2009-02-06 Thread Adam Vande More

Dan Nelson wrote:

In the last episode (Feb 06), Adam Vande More said:
  

I want to insert a new line of text at a certain position in certain files
recursively under a directory.  More specifically, I want text like this:

include('/usr/home/www/imp-sites/default_inventory.php');

to be put into file X at line 37 where file X appears in ./subdir1, 
.subdir2 etc. There are many subdirs or I'd just do it by hand.


I've done stuff like this before with the rpl script and it works well as
long as there aren't any special characters in the strings.  So I assumed
I finally hit the point where I'm forced to learn something like sed or
awk and tried some examples with sed but I can't figure out what I'm doing
wrong.

I get results like this:

sed '5i\test' test.txt
sed: 1: 5i\test: extra characters after \ at the end of i command



You want:

sed -e '5i\
test' test.txt

i.e. a linebreak after the backslash.

  

I had actually tried that too:

 sed -e '5i\
? test' text.txt
sed: 1: 5i
test
: command i expects \ followed by text
___
freebsd-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: insert new line in files

2009-02-06 Thread Adam Vande More

Dan Nelson wrote:

I had actually tried that too:

  sed -e '5i\
? test' text.txt
sed: 1: 5i
test
: command i expects \ followed by text



I don't see a backslash in the error message, which means something ate it. 
Are you running this command from something other than the commandline or a

plain sh script?  If you're calling this from another scripting language
(via system() or popen() or something similar), you probably have to double
the backslash so whatever's parsing it out passes one through to sed.
  

This is being executed from stock tcsh

Progress is being made as it works in the test now with the \\ however 
I'm running into more things I don't understand in regards to what I 
need to escape in my input string.


 sed -e '5i\\
include(\'/usr/home/www/imp-sites/default_inventory.php\');' test.txt
Unmatched '.

I also tried escaping ( ) . / to no avail. 
___

freebsd-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: insert new line in files

2009-02-06 Thread Adam Vande More

Adam Vande More wrote:

Dan Nelson wrote:

I had actually tried that too:

  sed -e '5i\
? test' text.txt
sed: 1: 5i
test
: command i expects \ followed by text



I don't see a backslash in the error message, which means something 
ate it. Are you running this command from something other than the 
commandline or a

plain sh script?  If you're calling this from another scripting language
(via system() or popen() or something similar), you probably have to 
double

the backslash so whatever's parsing it out passes one through to sed.
  

This is being executed from stock tcsh

Progress is being made as it works in the test now with the \\ however 
I'm running into more things I don't understand in regards to what I 
need to escape in my input string.


 sed -e '5i\\
include(\'/usr/home/www/imp-sites/default_inventory.php\');' test.txt
Unmatched '.

I also tried escaping ( ) . / to no avail.
nevermind I see I have to \\ that as well.  Okay now I'm going to try to 
find a way to do this with find and xargs

___
freebsd-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: insert new line in files

2009-02-06 Thread Adam Vande More

Steve Bertrand wrote:

Adam Vande More wrote:

  

I also tried escaping ( ) . / to no avail.
  

nevermind I see I have to \\ that as well.  Okay now I'm going to try to
find a way to do this with find and xargs



IMHO, this has become a job for Perl :)

Steve
  

Thanks for help everyone.  My final command was this:

skynet1# find . -name 'filename.php' | xargs sed -i.old -e '37a\\
include(/usr/home/www/imp-sites/default_inventory.php);'

I used double quotes because I couldn't finger out how to the single 
quote.  Good enough for me.

___
freebsd-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: Strange and weird, probably simple, aim DL

2009-02-07 Thread Adam Vande More


Basically it does the same thing. I used the pkg_add as I said, and 
once I finished, I did the rehash thing, and then logging in and out 
doesn't seem to change it. Is there a chance the package itself is messy?


I was told to try whereis and did so, and it said 
/usr/ports/net-im/aim and when I typed the direct path, it said 
permission denied, so I tried su to root, and ran it again, and it 
said the same thing...Which is a little strange being root.
 

If it says something like this:

 whereis aim
aim: /usr/ports/net-im/aim

aim is not installed.  an installed pkg will look something like this:

 whereis pidgin
pidgin: /usr/local/bin/pidgin /usr/local/man/man1/pidgin.1.gz 
/usr/ports/net-im/pidgin



___
freebsd-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: Strange and weird, probably simple, aim DL

2009-02-07 Thread Adam Vande More

Glen Barber wrote:

On Sat, Feb 7, 2009 at 1:15 PM, Akenner slackwarew...@comcast.net wrote:
  

Basically it does the same thing. I used the pkg_add as I said, and once I
finished, I did the rehash thing, and then logging in and out doesn't seem
to change it. Is there a chance the package itself is messy?




It's possible.

  

I was told to try whereis and did so, and it said /usr/ports/net-im/aim and
when I typed the direct path, it said permission denied, so I tried su to
root, and ran it again, and it said the same thing...Which is a little
strange being root.




You were told the wrong command.  Try `which aim'.  Also, try
executing with the full path: /usr/local/bin/aim

Is your ports tree up to date?  man portsnap


  

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


Re: How to troubleshoot why ath0 can't connect to a passwordless wireless network?

2009-02-09 Thread Adam Vande More

Yuri wrote:

Quoting Paul B. Mahol one...@gmail.com:


wlandebug(8) for general 802.11 debuging

ath driver have it's own debug options ... documented in source code 





Thanks!

In the debug log I see the line:
ath0: ieee80211_scan_update: no scanner suppport for mode 8
From source code I see that mode 8 is IEEE80211_M_MONITOR.
As I understand in 'monitor' mode no packets are being sent or received.
When I try to turn it off with 'ifconfig ath0 -monotor' interface 
still seems to stay in monitor mode.


Why wouldn't -monitor turn monitor mode off?

Yuri
Perhaps it is just a typo but shouldn't it be 'ifconfig ath0 -monitor' 
instead of 'ifconfig ath0 -monotor'

___
freebsd-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: xorg 7-current ( kde || nvidia driver ) == desktop crash

2009-02-09 Thread Adam Vande More

Marc G. Fournier wrote:

On Mon, 9 Feb 2009, Glen Barber wrote:

On Mon, Feb 9, 2009 at 8:22 PM, Marc G. Fournier scra...@hub.org 
wrote:

Are you starting hald and dbus via rc.conf?


Yes ... both mouse and keyboard have been working great ...



Well, that's good to hear. ;)

Thought I'd as to be safe.


Ya, that was the easiest problems to search on google and get fixed :)

I'm going to try downgrading to xorg 7.3 ... I'm having headaches with 
fonts (Location bar in firefox3 is unreadable, although all pages are 
fine ... mail messagesin mulberry are unreadable, although the message 
index is *just* readable, etc) ... someone mentioned some changes in 
7.4 concerning fonts, and I figure, my luck, this might be something 
that is trickling into other areas :(


FWIW, I run both KDE and KDE4 w/ nvidia driver dual head on xorg 7.4.  
Following UPDATING resolved the issues I had going from 7.3  7.4.


midco# uname -a
FreeBSD midco.net 7.1-RELEASE FreeBSD 7.1-RELEASE #5: Tue Jan 13 
13:35:17 CST 2009 a...@midco.net:/usr/obj/usr/src/sys/DOMINATOR  i386



midco# pkg_info | grep nvidia
nvidia-driver-177.80 NVidia graphics card binary drivers for hardware 
OpenGL ren

nvidia-settings-180.17 Display Control Panel for X NVidia driver

xorg-7.4X.Org complete distribution metaport


___
freebsd-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: Wordpress Port Question

2009-02-12 Thread Adam Vande More

Darryl Hoar wrote:

Greetings,
I have a question regarding Wordpress and Wordpress-mu ports.   I want to
install wordpress 
on my personal webserver (apache2, mysql, etc).   I have several virtual
hosts all with 
legitimate individual domain names.  IE, www.mydomain.com,
www.anotherdomain.com, 
www.yetanotherdomain.com.   Do I need to install Wordpress or Wordpress-mu

on my server ?

The server has a clean install of Freebsd7 on it.

I googled for my answer, but the comparisons between the two did not make it
clear.

Thanks for any guidance,

-Darryl 
  
The other two respones suggesting referral and sessions are correct as 
well as the warnings on each.  Referrals are notoriously inaccurate and 
adding in sessions/cookie support retroactively can sometimes be a bit 
of a challenge. Depends on how important it is to you, but I think most 
people are satisfied with the vistors metric offered by a package like 
Webalizer or google analytics, although they also have shortcomings.  If 
you only need a ballpark figure, I'd go about it that way.

___
freebsd-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: tab-delimited to csv

2009-02-16 Thread Adam Vande More

John Almberg wrote:
Can anyone suggest a way to convert a tab-delimited file to csv using 
standard unix utilities? I could whip up a Ruby script to do it, but I 
hate to reinvent the wheel.


Thanks: John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org
if you just dealing with a few files, you could use thing like vi or and 
editor w/ regex capbilites to search and replace tabs w/ comma's.


perl -pe ’s/\t/,/g’ table.tsv  table.csv
___
freebsd-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: tab-delimited to csv

2009-02-16 Thread Adam Vande More

John Almberg wrote:


On Feb 16, 2009, at 12:55 PM, Roland Smith wrote:


On Mon, Feb 16, 2009 at 11:55:50AM -0500, John Almberg wrote:

Can anyone suggest a way to convert a tab-delimited file to csv using
standard unix utilities? I could whip up a Ruby script to do it, but


As long as the files don't contain commas themselves,


Right, that's the tricky bit. I could use tr otherwise.




I hate to reinvent the wheel.


I'd whip up that script. There is a shareware tab2csv utility for
windows for $49.95: 
http://www.download32.com/info-pack-com-tab2csv-i31827.html


I'm working on it, right now.

I also saw that windows utility, but doesn't help me much.



OTOH, if you have a spreadsheet program like Gnumeric or OpenOffice
installed, you might be able to script those to import from 
tab-delimited

and export to CSV. Admittedly that is like using a nuke to kill a fly.


Actually, the problem arises because I have a client who is exporting 
a 'database' file from Excel 2000 (don't ask), to .csv, and Excel is 
so stupid that it is not putting quotes around a field that contains 
commas. Duh.


Excel seems to export to tab-delimited format without making any fatal 
errors, but I need a real .csv file for import.


Thus my need to convert from tab to (real) csv.

-- John


There is this:

http://www.sat.dundee.ac.uk/arb/psion/

Have no idea if it complies or works as you want.

But if you're dealing with just one so called database from Excel I 
would go with either checking the settings on the Excel export(in OO.org 
you can specify w/ or w/out quotes) as they may have missed the option.  
Or simply get the original file, open it in OO.org and do it from there 
as was basically suggested earlier.



I would have thought something like would exist as it's certainly useful 
like dos2unix

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


proftpd and sftp

2009-02-17 Thread Adam Vande More
I've got proftpd running on my server and on a whim tried an sftp 
connection for a website I was working on.  To my amazment, transfer 
speeds increase exponentially.  Getting a directory of about 300 files 
totaling around 5M takes around 10 minutes using default proftpd.conf in 
passive mode.  Same directory takes under 2 using sftp.  These options 
are in proftpd.conf


UseReverseDNS off
IdentLookups off

Why is proftpd so much slower than sftp and any pointers on increasing 
my proftpd performance?


--
Adam Vandemore
Systems Administrator
IMED Mobility
(605) 498-1610

___
freebsd-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: proftpd and sftp

2009-02-28 Thread Adam Vande More

Adam Vande More wrote:
I've got proftpd running on my server and on a whim tried an sftp 
connection for a website I was working on.  To my amazment, transfer 
speeds increase exponentially.  Getting a directory of about 300 files 
totaling around 5M takes around 10 minutes using default proftpd.conf 
in passive mode.  Same directory takes under 2 using sftp.  These 
options are in proftpd.conf


UseReverseDNS off
IdentLookups off

Why is proftpd so much slower than sftp and any pointers on increasing 
my proftpd performance?



I didn't receive a response on this so just reposting in hopes I do.
___
freebsd-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: Ports on Macbook

2009-02-28 Thread Adam Vande More

Charles Oppermann wrote:

That depends on where you are domiciled. Under certain scenarios, simply
open the box, or installing the software constitutes acceptance of the
EULA.
  

Yes I'm aware of that, but that kind of agreement isn't valid in Sweden.



That would be tantamount to allowing software piracy in Sweden.  The Mac OS X 
license agreements are contained in a PDF file here:


http://images.apple.com/legal/sla/docs/macosx105.pdf

There is a Swedish language agreement for sales in Sweden.  Using on-line 
translation tools, it appears to be similar to what's already been stated; 
use of the software consistutes acceptance of the agreement.  If you do not 
agree, you are requested to return the software.  Presumably, the retail 
materials contain this agreement, and I'm sure there is digital copy that is 
presented and must be agreed to before use.


I'm sure that Apple has very good lawyers who drafted the license agreements 
and are aware of Swedish law.  While what you are doing may or may not be in 
violation of any licenses, your position that clicking yes or no is not a 
handshake or oral agreement acording to Swedish law seems dubious and 
ill-advised.


Consider what you're suggesting:  If EULA's and license agreements simply 
weren't valid in Sweden, then what would prevent massive piracy from 
occuring?  I would assume that if license agreements in Sweden weren't 
enforcable, someone would be setting up their own software copying business.


...and if that happened, I would expect software companies to change their 
license agreements in order to prevent it.  

  
If you are under 18 you can't make any 
legally binding agreements without your legal guardians permission.

This list is great for many reasons.  This thread is not one of them.  
Trying to convince people to use Hackintosh is about as ridiculous as 
using on-line translation tool to deliver a rendition on Swedish law.


Surely there is a better forum to debate this?  Like off-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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:
Hi, 


I am not sure but as per some internet guide, I have configured the bridge on 
Freebsd(7) Machine with two LAN cards on it

 

I have compiled my KERNEL with (device if_bridge) 

 


and then added code to rc.conf

 
cloned_interfaces=bridge0

ifconfig_bridge0=addm sk0 addm sk1 up
ifconfig_sk0=up
ifconfig_sk1=up  I connected two linux PCs with these two interfaces (sk0 and 
sk1) and tried to ping between them but didnt get any success.configuration seems to be 
ok, but still no traffice is being passed. Can any one give any sugestion ?  Regards!

 
  

What does ifconfig show?
___
freebsd-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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:



 



  

Date: Mon, 2 Mar 2009 16:35:33 +0700
From: o...@cs.ait.ac.th
To: faiz...@hotmail.com
CC: fbsd.questi...@rachie.is-a-geek.net; freebsd-questions@freebsd.org; 
fb...@a1poweruser.com
Subject: Re: Bridging-(How to test and verify that bridging is enabled)

Hi,



Are you using properly crossed cables?


Isnt it enough check for the that two linux can ping each other..
  

Yes and no. You must used crossed Ethernet cable between your FreeBSD
bridge and each of your Linux boxes.

Frankly i am not sure about the cables type but they works PC to PC connectivity. 
  

As someone suggested, what is ifconfig saying on the FreeBSD box? You
should see that both sk0 and sk1 have a status: active. Else it means
you have a cable problem.



sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:69:25
 media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
 status: active

 

 


sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:67:ee
 media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
 status: active

 


here is the ifconfig output for the bridge interface:

bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 0a:54:d7:7e:aa:66

inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255

id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15

maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200

root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
  

I think ifconfig bridge0 should list member interfaces.  Did you add them?
___
freebsd-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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:





 Date: Mon, 2 Mar 2009 07:48:40 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)

 Faizan ul haq Muhammad wrote:
 
 
 
 
 
 
  Date: Mon, 2 Mar 2009 16:35:33 +0700
  From: o...@cs.ait.ac.th
  To: faiz...@hotmail.com
  CC: fbsd.questi...@rachie.is-a-geek.net; 
freebsd-questions@freebsd.org; fb...@a1poweruser.com
  Subject: Re: Bridging-(How to test and verify that bridging is 
enabled)

 
  Hi,
 
 
  Are you using properly crossed cables?
 
  Isnt it enough check for the that two linux can ping each other..
 
  Yes and no. You must used crossed Ethernet cable between your FreeBSD
  bridge and each of your Linux boxes.
 
  Frankly i am not sure about the cables type but they works PC to 
PC connectivity.

 
  As someone suggested, what is ifconfig saying on the FreeBSD box? You
  should see that both sk0 and sk1 have a status: active. Else it means
  you have a cable problem.
 
 
  sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
metric 0 mtu 1500

 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:69:25
  media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, 
flag2)

  status: active
 
 
 
 
 
  sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
metric 0 mtu 1500

 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:67:ee
  media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, 
flag2)

  status: active
 
 
 
  here is the ifconfig output for the bridge interface:
 
  bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 
0 mtu 1500

 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 0a:54:d7:7e:aa:66
 
  inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
 
  id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
 
  maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 
  root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
 
 I think ifconfig bridge0 should list member interfaces. Did you add 
them?


ifconfig bridge0 addm sk0 addm sk1 up
ifconfig sk0 up
ifconfig sk1 up

this configuration exists in rc.conf

  

if ifconfig doesn't print out something like this:

bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 
1500

   ether 4a:be:26:65:75:06
   id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
   maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
   root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
   member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 1 priority 128 path cost 200

   member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 2 priority 128 path cost 20

Then you need to add the member interfaces.
___
freebsd-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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:





 Date: Mon, 2 Mar 2009 08:05:09 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)

 Faizan ul haq Muhammad wrote:
 
 
 
 
   Date: Mon, 2 Mar 2009 07:48:40 -0600
   From: amvandem...@gmail.com
   CC: freebsd-questions@freebsd.org
   Subject: Re: Bridging-(How to test and verify that bridging is 
enabled)

  
   Faizan ul haq Muhammad wrote:
   
   
   
   
   
   
Date: Mon, 2 Mar 2009 16:35:33 +0700
From: o...@cs.ait.ac.th
To: faiz...@hotmail.com
CC: fbsd.questi...@rachie.is-a-geek.net;
  freebsd-questions@freebsd.org; fb...@a1poweruser.com
Subject: Re: Bridging-(How to test and verify that bridging is
  enabled)
   
Hi,
   
   
Are you using properly crossed cables?
   
Isnt it enough check for the that two linux can ping each 
other..

   
Yes and no. You must used crossed Ethernet cable between your 
FreeBSD

bridge and each of your Linux boxes.
   
Frankly i am not sure about the cables type but they works PC to
  PC connectivity.
   
As someone suggested, what is ifconfig saying on the FreeBSD 
box? You
should see that both sk0 and sk1 have a status: active. Else 
it means

you have a cable problem.
   
   
sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
  metric 0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:69:25
media: Ethernet autoselect (1000baseTX full-duplex, flag0, 
flag1,

  flag2)
status: active
   
   
   
   
   
sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
  metric 0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:67:ee
media: Ethernet autoselect (1000baseTX full-duplex, flag0, 
flag1,

  flag2)
status: active
   
   
   
here is the ifconfig output for the bridge interface:
   
bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST 
metric

  0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 0a:54:d7:7e:aa:66
   
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
   
id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
   
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
   
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
   
   I think ifconfig bridge0 should list member interfaces. Did you add
  them?
 
  ifconfig bridge0 addm sk0 addm sk1 up
  ifconfig sk0 up
  ifconfig sk1 up
 
  this configuration exists in rc.conf
 
 
 if ifconfig doesn't print out something like this:

 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 
mtu

 1500
 ether 4a:be:26:65:75:06
 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
 member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 1 priority 128 path cost 200
 member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 2 priority 128 path cost 20

 Then you need to add the member interfaces.

i noted that, following information is missing
 member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 1 priority 128 path cost 200
 member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 2 priority 128 path cost 20

Now i need to know how to add the interfaces..?
Any command do u knw and can help me..?

Regards!!!

http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009

ifconfig bridge0 addm sk0 addm sk1 up
ifconfig sk0 up
ifconfig sk1 up

___
freebsd-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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:


 
  i noted that, following information is missing
  member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
  ifmaxaddr 0 port 1 priority 128 path cost 200
  member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
  ifmaxaddr 0 port 2 priority 128 path cost 20
 
  Now i need to know how to add the interfaces..?
  Any command do u knw and can help me..?
 
  Regards!!!
 
  
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009

 ifconfig bridge0 addm sk0 addm sk1 up
 ifconfig sk0 up
 ifconfig sk1 up

Thanks a lot dear..
it worked. but i m still confused that i have the alternative 
configuration in rc.conf as per guideline here on this page:

http://www.freebsd.org/doc/en/books/handbook/network-bridging.html
it should have worked, but it did not. and here with these commands, 
it is working.. I am able to get reply to ping



Make sure you got the full config in there adjusted to your settings:

cloned_interfaces=bridge0
ifconfig_bridge0=addm fxp0 addm fxp1 up
ifconfig_fxp0=up
ifconfig_fxp1=up

And that you've rebooted.  Assuming you've done those steps correctly, 
it should work.  Generally issue's like that are rooted in typo's and 
misconfigurations.  As your typo count gets incremented,  you will learn 
humility.  ;)  Least that's how it was for me.  Another good rule of 
thumb is if you're following the handbook and it's still doesn't work 
then you're not following the handbook.


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


Re: Linux Compatability

2009-03-18 Thread Adam Vande More

rasz wrote:

hi
i have 2 distinct questions, and first is, i installed a linux app 
(binaries) and it failed

when run complaining that it needs a CPU with SSE instuctions enabled.
does anyone know what this is and related too?
i am running 7.2-prerelease i386 with linux_base-fc4. the only setting 
i have is fallback_elf_brand=3 (no osrelease)

has anyone ever come across this?

2nd question, is the freebsd base (usr/src) documented anywhere, as to 
the programs it entirely contains? i thought developers handbook, but 
all i found is description of the directories in usr/src/ (unless i 
missed it elsewhere). besides that, is there any kind of database app 
in the base system no matter how compact/basic? if not, what would be 
the *closest* in ports?


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


berkley db, sqlite, qdbm are in ports if you need more of a filesystems 
type db.  Nothing exists in the base system AFAIK.


--
Adam Vandemore
Systems Administrator
IMED Mobility
(605) 498-1610

___
freebsd-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: portupdate xorg-server

2009-03-20 Thread Adam Vande More

RW wrote:


IMO this doesn't make any sense. If portupgrade is failing on a port
where manual make install works, then portupgrade simply has a bug.
Any port upgrading tool belongs in a port, because it's more important
that it responds to changes in the ports system than changes in the
base system. 


As to upgrading piecemeal rather than with -a, I don't see how that
helps, and it may actually make things worse by not building in
dependency order.
___

  
As to the first part of your msg, what you said doesn't make any sense 
to me either.  Never did I claim portupgrade fails where a normal make 
install would succeed.  I would appreciate it if you could take my 
example as I state it instead adding stuff to make it sound 
implausible.  Thanks.  When you're doing a massive update, and you run 
into to depedancy issues, you'll know what I'm talking.  Also after you 
get some experience in ports, you'll be able to understand that you 
can't depend on it compiling all the time.  Want an example?  Try 
compiling misc/wanpipe w/ misc/zaptel right now and tell me how far you 
get.  Doing a portupgrade -a on system w/ 1000+ packages installed and 
there's a pretty good chance you'll run into more than one issue with  
something like that or it's lesser cousin.


Upgrading in smaller chunks is easier.  It's actually a fairly common 
principle. 


http://en.wikipedia.org/wiki/Divide_and_conquer_algorithm

One practical example is xorg 1.4 -- 1.5 a lot of us had issues with a 
couple months ago or whenever it was.  Many users wrote in after doing 
something like a portupgrade -a and blaming their display problem from 
xorg on whatever WM they happened to be using.  Had they done it in 
smaller segments, they would easily be able to identify source.  And no, 
it doesn't bring you into dependency hell, it brings you out of it 
easier.   Hope that clears up the confusion for you.

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


Re: Encoding Movies to DVD

2009-04-01 Thread Adam Vande More

Warren Liddell wrote:

Adam Vandemore wrote:

Warren Liddell wrote:
Im chasing an application that basically does the same thing Windows 
Nero Vision does but naturally on FreeBSD .. is there such an 
application or is it something thats command line based ?

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


For those of us who aren't familar with Windows Nero Vision, what 
does it do?


It lets you add verious move files into a list and then converts them 
into DVD format able to be then played by a standard DVD player(non 
computer) as well as adds title menus
Okay, well someone already mentioned mencoder, ffmpeg, and dvdstyler so 
what I would add to that is mencoder is more powerful ffmpeg although 
you can use them for many of the things including most of what you 
mention.  They can create video in dvd-compat mpeg2 format then you use 
dvdstyler to create menus etc.  dvdstyler is a frontend to dvdauthor 
which is cli based.


Another gui video editor/conversion tool is avidemux2 which is pretty good.
___
freebsd-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: csup vs freebsd-update

2009-04-11 Thread Adam Vande More

Andrei Brezan wrote:

Hi all,

I have a strange problem with csup and freebsd-update. I'm using
7.0-RELEASE-p11. If i do:

# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 7.0-RELEASE from update2.FreeBSD.org...
done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 7.0-RELEASE-p11.

All seems ok, i'm up to date.

But if i do:
# csup -L 2 ./standard-supfile
Parsing supfile ./standard-supfile
Connecting to cvsup.hu.FreeBSD.org
Connected to 193.6.222.7
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Updating collection src-all/cvs
 Checkout src/contrib/lukemftpd/src/ftpd.c
 Checkout src/contrib/telnet/telnetd/sys_term.c
 Checkout src/libexec/ftpd/extern.h
 Checkout src/libexec/ftpd/ftpcmd.y
 Checkout src/libexec/ftpd/ftpd.c
 Checkout src/sys/amd64/amd64/exception.S
 Checkout src/sys/conf/newvers.sh
 Checkout src/sys/dev/random/randomdev.c
 Checkout src/sys/dev/random/randomdev_soft.c
 Checkout src/sys/kern/kern_environment.c
 Checkout src/sys/kern/kern_time.c
 Checkout src/sys/kern/uipc_domain.c
 Checkout src/sys/kern/vfs_mount.c
 Checkout src/sys/netinet/tcp.h
 Checkout src/sys/netinet/tcp_output.c
 Checkout src/sys/netinet6/icmp6.c
 Checkout src/sys/netinet6/in6.h
 Checkout src/sys/netinet6/in6_proto.c
 Checkout src/sys/netinet6/nd6.h
 Checkout src/sys/netinet6/nd6_nbr.c
Shutting down connection to server
Finished successfully

./standard supfile is:
*default host=cvsup.hu.FreeBSD.org
*default base=/var/db
*default prefix=/usr

*default release=cvs tag=RELENG_7_0
*default delete use-rel-suffix

*default compress

src-all


If i do again a freebsd-update i get:
# freebsd-update fetch install
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 7.0-RELEASE from update1.FreeBSD.org...
done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 7.0-RELEASE-p11:
/usr/src/contrib/lukemftpd/src/ftpd.c
/usr/src/contrib/telnet/telnetd/sys_term.c
/usr/src/libexec/ftpd/extern.h
/usr/src/libexec/ftpd/ftpcmd.y
/usr/src/libexec/ftpd/ftpd.c
/usr/src/sys/amd64/amd64/exception.S
/usr/src/sys/conf/newvers.sh
/usr/src/sys/dev/random/randomdev.c
/usr/src/sys/dev/random/randomdev_soft.c
/usr/src/sys/kern/kern_environment.c
/usr/src/sys/kern/kern_time.c
/usr/src/sys/kern/uipc_domain.c
/usr/src/sys/kern/vfs_mount.c
/usr/src/sys/netinet/tcp.h
/usr/src/sys/netinet/tcp_output.c
/usr/src/sys/netinet6/icmp6.c
/usr/src/sys/netinet6/in6.h
/usr/src/sys/netinet6/in6_proto.c
/usr/src/sys/netinet6/nd6.h
/usr/src/sys/netinet6/nd6_nbr.c
Installing updates... done.


I know freebs-update is getting the correct files for release 7.0, but i
don't understand where i go wrong with csup. If anyone can point the
obvious that i can't see here please do.

Thank you,
  
I'm not entirely clear what you're trying to do, but freebsd-update is a 
binary upgrade utility and cvsup is source based.  perhaps csup is 
borking w/ how freebsd-update is verifying the files to update.  
however, you should use one or the other not both.  I only use csup when 
doing a major upgrade eg 7.0 - 7.1 and doing a buildworld.  
freebsd-update keeps me up to date on latest patchset.

___
freebsd-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: sorta newb help compiling samba

2009-04-11 Thread Adam Vande More

Karl Vogel wrote:
On Fri, 10 Apr 2009 14:31:06 -0500, 
Adam Vandemore amvandem...@gmail.com said:
  


A How do you handle major builds that use FBSD specific patches
A asterisk for example?

   Fortunately I haven't had to build asterisk or anything else that large.
   If I did, I'd probably try building under Solaris first, and when
   installing under FBSD, I'd examine any patches and put them in by hand.

   My only experience with a major ports build was attempting to upgrade
   Firefox; 20 minutes after starting, I was left with a literally
   unbootable system.  I had to yank the drive, give it to a buddy to
   verify that my files were still present, do a complete installation
   with a more recent FBSD version on a clean drive, and restore my stuff
   from the original system.

   I'm perfectly willing to admit that I botched something in the Firefox
   upgrade, but I've also run into problems installing anything that remotely
   depends on perl.  I use the same version on all my servers, and I got
   tired of seeing unable to find perl-5.8.whatever; configure scripts
   test for capability rather than version number to avoid this problem.
   Some of my servers are not allowed to have any network access, which
   means no chasing dependencies; I put in a CD with some source and run
   a build script.

  
A shot in dark at the problem is upgrading firefox also upgraded perl 
from 5.8.8 to 5.8.9(possibility w/ threaded perl).  If some other of 
your apps expected perl 5.8.8 on boot and didn't find then that could 
cause an issue similar to your description.  Since perl is such a huge 
part of the ports collection, when perl is updated, all of it's 
dependencies should be rebuilt against the new version.  That's 
relatively easy to accomplish using something like portupgrade or 
portmaster.  I've had to take steps like you describe before, but I try 
to keep the things I maintain separately to an absolute minimum as in 
addition to the time consumption aspect of it, I tend to forget things 
which then blow in my face so I find it easier to use more conventional 
means.  Also a good idea to keep on top of /usr/ports/UPDATING as well 
which will give you a heads up on such a thing.  The entry referencing 
the perl upgrade:


20090113:
 AFFECTS: users of lang/perl5.8
 AUTHOR: s...@freebsd.org

 lang/perl5.8 has been updated to 5.8.9. You should update everything
 depending on perl. The easiest way to do that is to use
 perl-after-upgrade script supplied with lang/perl5.8. Please see
 its manual page for details.

___
freebsd-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 'make' command in the ports tree

2009-04-12 Thread Adam Vande More

dede wrote:

Hello,

I'm a long time user of BSDs, and I don't find man pages or 
documentation on the way I can master the port collection (specialy 
the fonction of make).
I found this, interesting: 
http://www.freebsd.org/doc/en/books/handbook/ports-using.html, but 
some interogations persist.
I search a command that list all availables variables that afect 
program installation, and all arguments I can give to the 
/usr/port/Makefile  (I know about 'make search key= and name=' is 
there another?).


Could anyone give me some cool addresses to learn on the subject?


Not sure if I understand your question fully, but this is a great place 
to learn about different options available when manipulating ports.


http://www.freebsd.org/cgi/man.cgi?query=portsapropos=0sektion=0manpath=FreeBSD+7.1-RELEASE+and+Portsformat=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


Re: from very early this morning...

2009-04-15 Thread Adam Vande More



(But if a dual or a quad sucks up too
many watts, that blows much of the original purpose of cutting my
footprint.
  
Newer cpu's(multicore vs single) are pretty efficient, here's an article 
so you don't have to take my word for it.  
http://www.tomshardware.com/reviews/intel-cpu-power-consumption,1750-11.html


also in general if you want lower power consumption look for cpu's w/ 
smaller fab eg in term of power consumption and size 90  65  45

gary


  



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


Re: Can you ACTUALLY print from FreeBSD?

2009-04-20 Thread Adam Vande More

Keith Seyffarth wrote:
Googling that shows it to be a file shared with Windows boxes when you're 
running samba.  I don't know if you set up samba or not, but I would ignore 
this error for now.  It's likely unrelated to the printing problem that you're 
having.



OK. Thanks. I guess. I was kind of hoping that figuring that out might
be the fix...

  

Do you have the startup script:
/usr/local/etc/rc.d/cupsd ?


yes

  

If so, what is the output of /usr/local/etc/rc.d/cupsd status?


currently it's:
cupsd is running as pid 721.

but I did start cups manually since my last reboot.

  
Cupsd was started automatically on reboot by the script.  So that part is 
working fine.



after rebooting the machine, it's:
cupsd is not running.

config info snipped

  
This seems to me to be area to focus on.  Have you tried starting if 
from cli and seeing if any errors show.  Also check logs etc recompile 
cups w/ debugging info if applicable.  I suspect it's not so you may 
have to increase the verbosity in a config file somewhere.  It's been 
awhile since I printed from FreeBSD, but my last experience was positive 
and not nearly as much issue as you're having.  Anyways I suspect 
following cupsd not starting to it's end will result in either solving 
the issue or at least getting to a point where it's easy to resolve.  
You can also try to trace back /usr/local/etc/rc.d/cupsd to see where 
it's failing.

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


Re: Disk usage analysis

2009-04-21 Thread Adam Vande More

Christopher Chambers wrote:

Is there an easy way to analyze disk usage to determine which files and
folders are taking up the most space?


  

du -hd 1 | sort -n

http://www.freebsd.org/cgi/man.cgi?query=duapropos=0sektion=0manpath=FreeBSD+7.1-RELEASE+and+Portsformat=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


Re: mail server/webmail

2009-04-23 Thread Adam Vande More

Frederique Rijsdijk wrote:

Liontaur wrote:

Hi folks, I was searching around but i'm not quite sure what i'm looking
for. I want to have a program that gets the mail from my ISP mail server
(pop), stores the mail permanently, allows me webmail access, and 
also lets
me grab the mail with a mail client (Outlook Express). I'd like to be 
able

to sync the mail with outlook express also. Like if I send a mail over
webmail, that sent mail will also go into the sent box in outlook 
express,

or conversly, perhaps store all the mail on the server and have outlook
express just show the folders and contents stored on the server. But i'd
have to somehow upload all of the mail currently in my outlook 
express. I'll
also need some kind of spam functionality as I get a sizable amount 
of spam.

Currently I use K9 for spam and I quite like it.

I guess you could start to look in the area of:

- /usr/ports/mail/fetchmail (to fetch/store the mail)
- /usr/ports/mail/dovecot (for access to the mail via imap)
- /usr/ports/mail/squirremail or roundcube (webmail w/ imap)
- /usr/ports/www/apache22 for the webmail

As you're then using IMAP, any client that connects to dovecot will 
get the same set of mailfolders (sync).



-- Frederique

I've not used roundcube, but horde imp is a also an IMAP webmail client, 
and I find to be be a much better client than squirrelmail.

___
freebsd-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: kernel panic on SATA drive

2009-12-22 Thread Adam Vande More
On Tue, Dec 22, 2009 at 11:52 AM, Jason jhelf...@e-e.com wrote:

 =


 Any progress for bellow?

 I have the same problem with PCI SATA Controller ST-Lab A-173 Sil3512
 It's not RAID, but when copying to HDD:
 LOG---
 ad6:FAILURE - device detached
 g_vfs_done():ad6s1f[WRITE(offset=38007275520, length=131072)]error = 6
 /usr: got error 6 while accessing filesystem
 panic: softdep_deallocate_dependencies: unrecovered I/O error
 cpuid = 0
 Uptime: 2m18s
 Physical memory: 243 MB
 Dumping 58 MB:unknown: timeout waiting to issue command
 unknown: error issuing WRITE_DMA command


 ** DUMP FAILED (ERROR 5) **
 Automatic reboot in 15 seconds - press any key on the console to abort
 ---END LOG-

 Brgrds,
 Alex


 I just had a drive do the same, it was dying.


-- 
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: Packages vs Ports

2009-12-23 Thread Adam Vande More
On Wed, Dec 23, 2009 at 11:06 AM, Arthur Barlow arthurbar...@gmail.comwrote:

 I've recently run into a new problem.  Pkg_version show that there is a new
 version of Firefox 3.5.  However, when I try to recompile it, I get an
 error
 that the system has run out of swap space, even though I allocated a 512M
 slice for a machine with 256M RAM.  Anyway, when I used to recompile
 Firefox
 it would take over 8 hours.  So I figured that I would just delete it and
 download the new compiled version in a package.  But, the package is still
 not updated yet, and it's been over a week.  How long does it usually take
 for packages to catch up to ports?

 P.S. I'm using FreeBSD 7.2 on an old Gateway Pentium III machine with a 40G
 harddrive.


pkg's are created at the time of release eg 7.2.  They are never updated for
that release.  You can easily create your own with make package or
pkg_create but that requires a successful recompile



-- 
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: Packages vs Ports

2009-12-23 Thread Adam Vande More
On Wed, Dec 23, 2009 at 11:06 AM, Arthur Barlow arthurbar...@gmail.comwrote:

 I've recently run into a new problem.  Pkg_version show that there is a new
 version of Firefox 3.5.  However, when I try to recompile it, I get an
 error
 that the system has run out of swap space, even though I allocated a 512M
 slice for a machine with 256M RAM.  Anyway, when I used to recompile
 Firefox
 it would take over 8 hours.  So I figured that I would just delete it and
 download the new compiled version in a package.  But, the package is still
 not updated yet, and it's been over a week.  How long does it usually take
 for packages to catch up to ports?

 P.S. I'm using FreeBSD 7.2 on an old Gateway Pentium III machine with a 40G
 harddrive.


Also as a temp work around you could create a file backed swap.  Even
slower, but it would work.  You sys isn't really a compiling machine though.

-- 
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: New user - small file server questions and quick GUI question

2009-12-28 Thread Adam Vande More
On Mon, Dec 28, 2009 at 3:49 PM, Kaya Saman kayasa...@optiplex-networks.com
 wrote:

 Hi guys,

 first up I hope I am in the right place as my questions are of a generic
 nature about FreeBSD as I consider myself a new user not having much mileage
 with the OS as of yet!

 Secondly I just wanted to wish everyone a happy Christmas and New Year also
 since we are in that period :-)

 I will start with my GUI question as I believe that it is something simple:

 I attempted an install of 7.2 stable on my laptop and subsequently
 installed X11also. Now I didn't have any Xorg.conf file but each time I
 tried to start X from the CLI using the normal startx command (read the
 documentation through fully beforehand) but I didn't manage to get the mouse
 or keyboard to even work let alone starting the Gnome2 interface.

 Now I don't have that particular machine with me now as it's in another
 country but just wanted to know a few possible causes for the issue. I am
 guessing it's probably tied into not having the xorg.conf file but I will
 install a VM of it soon and be more specific with logs etc as I am used
 to Linux and Sun Solaris I know this is really ad-hoc and frowned upon way
 of asking which will probably earn me minus brownie points but just wanted a
 quick idea of what maybe so when the time comes I can investigate further!


Running with no xorg.conf is fine, but you need to make sure dbus and hal
are started at boot.  Follow the handbook for best results.

http://www.freebsd.org/doc/en/books/handbook/x-config.html



 The second and main question that I wish to ask is more to do with peoples
 opinions or experienced BSD users advice:

 I am looking to setup a small file server which I will use as DNS and NTP
 server also. The reason for selecting FreeBSD is that the system I about to
 install onto doesn't have much memory (not sure how much but probably in the
 region of 300-500MB perhaps) and although Linux would definitely suite this
 kind of system as Solaris needs round 2GB or so for OpenSolaris, I am quite
 interested to learn FreeBSD but also take advantage of the ZFS file system
 which is standard now in version 8.

 I won't be installing a GUI on this machine since it is going to be a
 server so I would like to know if BSD has a small footprint memory and CPU
 wise for me to run on the machine in question which is a PIV?

 Also just to make sure: NFS, Samba, NTPd, and ISC's Bind are all supported
 on FreeBSD aren't they?? I know this is a bit of an RTFM issue here but for
 example the Solaris implementation of NTP and even SNMP are slightly
 different from the GNU or GPL based ones in Linux so therefor I have to ask
 :-)


If you're concerned about system resources, at least from a minimalist
perspective, then ZFS is not for you.  Solaris can't help you with that
either, ZFS is hungry.  ZFS is also not standard, but considered
production ready.  UFS is still the standard, and the only filesystem
supported by the installer without resorting to tricks.

All the other services work well on FreeBSD.


-- 
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: New user - small file server questions and quick GUI question

2009-12-28 Thread Adam Vande More
On Mon, Dec 28, 2009 at 4:42 PM, Kaya Saman samank...@netscape.net wrote:

 I know how strong UFS v.1 is as I use it with Solaris 9, but how about UFS
 v.2 which is what FreeBSD runs?? When compared with ext3 from a
 performance/reliability perspective which one comes on top?


I would say ufs2 easily wins, but remember this is the freebsd-questions
list ;)  There are some differences though, ufs2 uses softupdates, not
journaling(journaling is available and easy to implement via gjournal).
Softupdates I believe are a little faster than journaling, but it's drawback
is long disk checking after a dirty shutdown.  I've never had a ufs specific
issue in hundreds if not thousands of deployments, but nothing is
guaranteed.  ufs does have a great track records and bunch of service hours
logged.



 Also if something goes wrong with the filesystem what are the tools to
 check the drive and repair errors as in Linux I use e2fsck followed by
 device ID.


Example after a dirty shutdown:

 fsck -y


 In fact I am only really after ZFS for its self healing properties as I
 don't mind going with any file system as long as it's stable. Ext3 although
 easily repairable is quite unstable on my systems anyway!


That's actually a bit disconcerting, do you have hardware instability?

-- 
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: What port contains libxcb.so.2, and hoow could I figure this out?

2009-12-29 Thread Adam Vande More
On Tue, Dec 29, 2009 at 8:08 AM, stan st...@panix.com wrote:

 One of my machines is suddenly complaining that it can't find libxcb.so.2.
 This is probably an issue related to a recent attempt to update the
 software
 on this machine, so I figured I'd just rebuild the port that provides this
 library, but I can't figure out how to determine which on that would be.

 I have the feeling that I should be able to use pkg_info for this, but I
 can't seem to figure out how to accomplish this. Is this the right tool? If
 so, how do I use it for this, if not, what is the correct tool?

 Thanks.


it# pkg_info -W /usr/local/lib/libxcb.so.2
/usr/local/lib/libxcb.so.2 was installed by package libxcb-1.5

-- 
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: Blocking a slow-burning SSH bruteforce

2010-01-01 Thread Adam Vande More
On Fri, Jan 1, 2010 at 8:56 AM, David Rawling d...@pdconsec.net wrote:

 I tend to think there's not much I can do about this, but I'll ask anyway.

 I've implemented sshguard to block the normal bruteforce attacks - which
 seems to be working reasonably well.

 However now I have the following:

 Jan  1 17:42:52 timeserver sshd[1755]: error: PAM: authentication error for
 illegal user but from 190.146.246.36
 Jan  1 17:55:09 timeserver sshd[1788]: error: PAM: authentication error for
 illegal user byung from 212.243.41.9
 Jan  1 18:07:38 timeserver sshd[1809]: error: PAM: authentication error for
 illegal user cac from 148.233.140.193
 Jan  1 18:20:06 timeserver sshd[1832]: error: PAM: authentication error for
 illegal user cachou from 121.52.215.180
 Jan  1 18:32:21 timeserver sshd[1851]: error: PAM: authentication error for
 illegal user calla from 212.243.41.9
 Jan  1 18:44:35 timeserver sshd[1884]: error: PAM: authentication error for
 illegal user calube from 83.211.160.211
 Jan  1 19:09:12 timeserver sshd[1923]: error: PAM: authentication error for
 illegal user cancy from 194.51.12.238
 Jan  1 19:21:35 timeserver sshd[1946]: error: PAM: authentication error for
 illegal user candice from 82.106.226.77
 Jan  1 19:46:12 timeserver sshd[1997]: error: PAM: authentication error for
 illegal user candyw from 116.55.226.131

 Now this seems to me to be a dictionary attack on timeserver, and I'd guess
 that it's a botnet behind it. It's rather sophisticated since it's only
 attempting 1 user and password combination per source - so it's far too
 little to trigger the sshguard rules. Even if it did trigger, it wouldn't
 prevent the attacks.

 Apart from switching away from user authentication to private/public keys
 ... is there anything I can do to mitigate these attacks? Any advice
 welcome.

 Dave.


If your passwords are complex, those attacks could come for a million years
on localhost and not get anywhere let alone over a latent network.  Worrying
about that stuff with complex password is akin to devising a plan for
repelling a Godzilla attack.  Another point is these attacks typically try
common passwords, it's a distributed common password attack, not a brute
force.  If you are concerned about this for other reasons, eg you have local
users on the system and you don't enforce a password policy. there are
several utilities for dealing with this.  I'm not familar with sshguard, but
these types of attacks are blocked quite well with denyhosts, since the ip's
are recycled through eventually and you can configure the parameters for
blocking.  Denyhosts also has the ability to download to, and upload from a
shared blocklist.


-- 
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: Virtualbox and bridged interface.

2010-01-01 Thread Adam Vande More
On Fri, Jan 1, 2010 at 5:22 PM, Patrick Lamaiziere patf...@davenulle.orgwrote:

 Hi, Happy new year.

 (FreeBSD 8/i386 - latest test version of VB)

 Is there someone able to make VirtualBox working with a bridged
 interface?

 I've got :
 My gateway/access point on 192.168.1.1/24
 The host on 192.168.1.20/24 via wifi (wlan0)
 The guest on 192.168.1.25/24 bridged with wlan0

 From the guest I can ping the host without problem and vice versa. But
 the guest is not able to reach my gateway.

 With Wireshark listening on wlan0, I can see that the guest is doing
 some ARP requests to get the mac address of the gateway. But there is no
 reply.

 No firewall, net.inet.ip_forwarding=1 (not sure if this is mandatory)

 Any idea?

 Thanks! Regards.


Bridged networking doesn't work on wireless interfaces.

-- 
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: Openoffice3 and aspell

2010-01-01 Thread Adam Vande More
On Fri, Jan 1, 2010 at 12:27 PM, Neil Short nesh...@yahoo.com wrote:

 I just noticed that openoffice (openoffice.org-3.1.1) is not checking my
 spelling. The spell checker on my system is aspell-0.60.6_2.
 gtkspell-2.0.15_1 is also installed. Before sending this email I tried
 installing ispell-3.3.02_4. No improvement.

 How do I get Ooo to check my spelling?
 ==

  What did you do? the man holding the flashlight asked.

  I put down a spider, he said, wondering why the man didn't see; in the
 beam of yellow light the spider bloated up larger than life. So it could
 get away.


There is an OO plugin you need to install for this functionality.


-- 
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: Virtualbox and bridged interface.

2010-01-01 Thread Adam Vande More
On Fri, Jan 1, 2010 at 5:58 PM, Patrick Lamaiziere patf...@davenulle.orgwrote:

 Le Fri, 1 Jan 2010 17:36:30 -0600,
 Adam Vande More amvandem...@gmail.com a écrit :

   Is there someone able to make VirtualBox working with a bridged
   interface?
  
   I've got :
   My gateway/access point on 192.168.1.1/24
   The host on 192.168.1.20/24 via wifi (wlan0)
   The guest on 192.168.1.25/24 bridged with wlan0
 ...

  Bridged networking doesn't work on wireless interfaces.

 Ah ok :(

 I would be happy to know why, briefly. Is it a limitation in the
 wireless connection or a limitation in the operating system (FreeBSD)?

 I've used some bridged guests on Mac OS X and vmware fusion but I don't
 remember if I used the ethernet or the wireless interface.

 To J.D.Bronson: no mac authentication here, thanks for the shot in the
 dark anyway.

 So I will try to setup a vpn between the host and the guest.

 Thanks, Regards


 All the info I have, http://wiki.freebsd.org/VirtualBox

-- 
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: Openoffice3 and aspell

2010-01-02 Thread Adam Vande More
On Sat, Jan 2, 2010 at 1:41 AM, Gary Kline kl...@thought.org wrote:

 On Fri, Jan 01, 2010 at 08:00:28PM -0800, Neil Short wrote:
 
 
  --- On Fri, 1/1/10, Adam Vande More amvandem...@gmail.com wrote:
 
   From: Adam Vande More amvandem...@gmail.com
   Subject: Re: Openoffice3 and aspell
   To: Neil Short nesh...@yahoo.com
   Date: Friday, January 1, 2010, 7:27 PM
   On Fri, Jan 1,
   2010 at 5:58 PM, Neil Short nesh...@yahoo.com
   wrote:
  
  
   An extension?
  
   Mine is called American English Spell Checking 1.0
  
   --
   Adam Vande More
  
  
  Does it include a thesaurus? I found a spell checking extension; but it
 doesn't include a thesaurus. There are some thesaurus dictionaries; but they
 include crummy instructions on how to install them. Weird that in previous
 installations all this stuff was automatically configured by the ports tree.
  Thank you for your communications.
 
  -Neil
 


 The main reason I upgraded to OOo-311 was to have a functional
spellchecker.  I can't find any, even tho but clicking around I
found ``en_US.oxt'' which is a zip file.  The HElp file does not
jibe with what's there in the File - Wizards ... .   Anyway, Adam,
the extension you listed turns out to be the file I downloaded.

How-to install the thing and get it working!?

gary


Tools  Extension Manager  Add

-- 
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: This could be a wild goose chase but ...

2010-01-02 Thread Adam Vande More
On Sat, Jan 2, 2010 at 9:48 AM, Roland Smith rsm...@xs4all.nl wrote:

 On Sat, Jan 02, 2010 at 02:03:10PM -, Graeme Dargie wrote:
  Hi
 
  I have been trying for a day or two to get
  /usr/ports/multimedia/handbrake to install on 8.0-Release AMD64, the
  port just stops bleating about wanting i386, I did some googling and
  found a supposed patch to cure this so it would install but that does
  not seem to make any difference as the patch does not apply correctly.
  Has anyone managed to get this going on AMD64 or am I just chasing the
  proverbial wild goose ?

 Have you looked at alternatives like mencoder, of ffmpeg2theora. They work
 just fine on amd64. They use much the same libraries.

 Mencoder does H.264 encoding very well, But ffmpeg2theora gives _much_
 smaller
 files with good quality. It's weakness is that it cannot handle AC3 (dolby
 digital) very well. So I like to resample the audio first with mencoder,
 and
 then convert to theora video with ogg audio. For a wide-screen (16:9) DVD
 movie;

  mplayer dvd://1 -dumpstream -dumpfile movie.mpg
  mencoder -ovc copy -oac mp3lame -idx -o movie.avi movie.mpg
  ffmpeg2theora --sync --aspect 24:10 --croptop 72, --cropbottom 72 \
  -v 7 -c 2 movie.avi

 File sizes, to give you an idea:

 movie.mpg   6500 MiB
 movie.avi   5800 MiB
 movie.ovg   1750 MiB


avidemux2 also works well, least it did last time I tried it.


-- 
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: 7.2-RELEASE-p5 and kernel panic with mpt driver

2010-01-05 Thread Adam Vande More
On Tue, Jan 5, 2010 at 3:59 PM, Colin Waring 
free...@southportcomputers.co.uk wrote:

 My supfile uses the tag
 *default release=cvs tag=RELENG_7_2

 The docs on stable say to use RELENG_7 for which I assumed was out of date
 with the docs not always being updated frequently. Is there a different tag
 for 7.2 Stable or am I not understanding the different versions?


 Thanks,
 Colin.


Your understanding is incorrect.  RELENG_7 is stable, RELENG_7_0, RELENG_7_1
and RELENG_7_2 are snapshots of RELENG_7.  RELENG_X will always be more
current than RELENG_X_Y.  Trust the docs unless you explicitly know
differently.

-- 
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: Intel PRO/Wireless 2100 ipw WPA

2010-01-07 Thread Adam Vande More
On Thu, Jan 7, 2010 at 11:44 AM, Andreas Rudisch cyb.@gmx.net wrote:

 On Sun, 3 Jan 2010 15:27:55 -0700 (MST)
 Warren Block wbl...@wonkity.com wrote:

  Finishing a complete new install of 8-stable on a Thinkpad T42.  This
  model came with the Intel PRO/wireless 2100.
 
  So far, it has almost but not quite been able to connect using WPA on
  FreeBSD.

 Same here when trying to set up wireless LAN on a T41 with an Intel
 PRO/wireless 2100.

  rc.conf:
  wlans_ipw0=wlan0
  ifconfig_wlan0=WPA DHCP
 
  loader.conf:
  legal.intel_ipw.license_ack=1
  if_ipw_load=YES

 That's what I did too. No joy.

  ifconfig wlan0 scan sees all the nearby access points, including mine.

 Here too.

  wpa_supplicant can't quite attach, but doesn't give up trying.

  /var/log/messages:
  Jan  3 14:49:40 paddy wpa_supplicant[392]: CTRL-EVENT-SCAN-RESULTS
  Jan  3 14:49:40 paddy wpa_supplicant[392]: Trying to associate with
 00:14:bf:cd:a2:0b (SSID='myssid' freq=2412 MHz)
  Jan  3 14:49:50 paddy wpa_supplicant[392]: Authentication with
 00:14:bf:cd:a2:0b timed out.

 Appart from that I got the following in /var/log/messages:
  kernel: ipw0: need multicast update callback

 Since the same setup worked fine on FreeBSD 7.2, maybe this infomation
 regarding ipw is correct after all:

 http://wiki.freebsd.org/8.0TODO#head-637d4dd09847005583f360ebb430cf32b64a4d8b


Yeah I think it was mentioned in one of the beta announcements, but can't
seem to find it now.  Anyways, my laptop is stuck on 7-STABLE due to this.

-- 
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: fsck failed to sync inodes

2010-01-15 Thread Adam Vande More
On Fri, Jan 15, 2010 at 2:27 PM, gahn ipfr...@yahoo.com wrote:

 Hi gurus:

 I booted the system into single user mode and tried to clean up one of my
 corrupted file system:

 fsck -y /dev/ad1s1f

 but in the end, the file system is still dirty. anything else I can do to
 salvage the data?

 Thanks in Advance


Run it again, fsck can require multiple runs to fix the issues.

-- 
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: /etc/hosts.deniedssh

2010-01-18 Thread Adam Vande More
On Mon, Jan 18, 2010 at 4:39 PM, David Southwell da...@vizion2000.netwrote:

 Examples from hosts.deniedssh
 I seem to be on the receiving end of a concerted series of unsuccessful
 break
 in attacks on one of our systems. One small part of the attack has
  resulted
 in over 2000 entries in our hosts.deniedssh file in less than 1 hour.

 I would be interested in any comments on the small example shown below and
 any
 advice.

 Thanks in advance

 David
 r200-40-132-245.static.adinet.com.uy
 mail.munisanmiguel.gob.pe
 port-83-236-241-198.static.qsc.de
 pd95b50ce.dip0.t-ipconnect.de
 v32641.1blu.de
 dubovik.net
 r200-40-132-245.static.adinet.com.uy
 mail.munisanmiguel.gob.pe
 port-83-236-241-198.static.qsc.de
 pd95b50ce.dip0.t-ipconnect.de
 v32641.1blu.de
 dubovik.net
 r200-40-132-245.static.adinet.com.uy
 mail.munisanmiguel.gob.pe
 port-83-236-241-198.static.qsc.de
 pd95b50ce.dip0.t-ipconnect.de
 v32641.1blu.de
 dubovik.net
 r200-40-132-245.static.adinet.com.uy
 mail.munisanmiguel.gob.pe
 port-83-236-241-198.static.qsc.de
 pd95b50ce.dip0.t-ipconnect.de
 v32641.1blu.de
 dubovik.net
 r200-40-132-245.static.adinet.com.uy
 mail.munisanmiguel.gob.pe
 port-83-236-241-198.static.qsc.de
 pd95b50ce.dip0.t-ipconnect.de
 v32641.1blu.de
 dubovik.net
 r200-40-132-245.static.adinet.com.uy
 mail.munisanmiguel.gob.pe
 port-83-236-241-198.static.qsc.de
 pd95b50ce.dip0.t-ipconnect.de
 v32641.1blu.de
 dubovik.net
 r200-40-132-245.static.adinet.com.uy
 mail.munisanmiguel.gob.pe
 port-83-236-241-198.static.qsc.de
 pd95b50ce.dip0.t-ipconnect.de
 v32641.1blu.de
 dubovik.net
 r200-40-132-245.static.adinet.com.uy


Looks like your conf could use some love.  Why are you resolving ip's?
Thresholds can be lowered.  Are you syncing with remote list?

-- 
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: ISO simple non-forking TCP connection forward/balance tool

2010-01-22 Thread Adam Vande More
On Fri, Jan 22, 2010 at 2:01 PM, Chris Peiffer bsdli...@cabstand.comwrote:


 I'm looking for a simple program I can use to forward incoming TCP
 connections to several other addr:port pairs. (including one on the
 machine itself.) Holding the connections open and passing the data
 back and forth until both parties close their ends.

 I need a solution that doesn't fork. One way to do it is just fork
 ad-hoc netcat pipes with inetd, but I'm trying to avoid the process
 overhead.

 An ssh tunnel is another option, but the crypto involves too much cpu
 overhead.

 I've investigaged ipnat rdr rules, but ipnat seems like it's too
 low-level, it wants to divert the packet directly w/o rewriting the
 from addr. This means that the return packet is a mismatch unless I
 make the machine running the forwarder into the router.

 I found a simple program called balance floating around out there,
 but unfortunately it uses an extremely naive fork-after-accept method
 that results in the same process overhead.

 Is there a simple kq-driven tcp forwarder out there? Is there a
 pure-TCP forwarding module for lighttpd? (or some other
 single-threaded app server?)

 Or is there a good way to do it in the kernel that I'm missing, and
 can someone direct me to an ipnat ruleset that creates new
 connections, so the TCP forwarding machine doesn't also need to be a
 router?

 Thanks very much for your help.


A few lines in python should do what you're looking for, see socket lib,
twisted if you have high performance needs.



-- 
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: Raw sockets in jails

2010-01-25 Thread Adam Vande More
2010/1/24 Nathan Butcher n-butc...@fusiongol.com

 I'm just curious as to whether FreeBSD8.0 can support raw sockets on
 some jails and not on others.

 I'm trying to find the jail flags to allow this to happen. Not having
 much luck.
 Any ideas?


http://www.mail-archive.com/freebsd-j...@freebsd.org/msg00978.html


-- 
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: Opteron 1212 w/ 4 GB RAM

2010-01-27 Thread Adam Vande More
On Wed, Jan 27, 2010 at 3:49 PM, Iv Ray po...@verysmall.org wrote:

 We are getting a new web server -

 Singe Dual Core Opteron 1212 w/ 4 GB RAM

 It will have -

 2 x 250 GB SATA gmirror RAID 1

 We will run -

 - Apache 2.x
 - PHP 5.x
 - PostgreSQL 8.x
 - Postfix 2.x

 We have a couple of questions-

 If we are more interested in stability than in features and performance -

 a) Is FreeBSD 8.0 the right for us, or shall we rather go for FreeBSD 7.x?

 b) Is i386 or amd64 the right way?

 Thanks!

 Iv


8.0, amd64 if there's chance you'll ever put more ram in the system.


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


Re: How do you manage your jails?

2010-01-28 Thread Adam Vande More
On Thu, Jan 28, 2010 at 8:21 AM, Christer Solskogen 
christer.solsko...@gmail.com wrote:

 So you have installed a FreeBSD server and setup several jails on your
 system. They run the services they need and everything works smoothly. But
 how do manage all of them? What do you do if you want to run a command on
 all jails? Do you run cfengine/puppy? How do you setup sendmail? Do
 you have sendmail on all jails?
 Do you share ports to all jails? How do you keep ports up to date on them?
 Do you have a set of scripts that you want to share? On
 http://antarctica.no/stuff/UNIX/FreeBSD/jails/ you'll find what I use.

 I'm preparing a talk for BLUG (the local Linux/BSD group) and I want to
 know how
 YOU manage your jails, there sure are more than one way do it.


you should check out /usr/ports/sysutils/ezjail


-- 
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: gjournal on compact flash

2010-01-28 Thread Adam Vande More
On Thu, Jan 28, 2010 at 10:42 AM, Nikos Vassiliadis nvass9...@gmx.comwrote:

 Hi,

 I am using a 40MB journal on a 500MB compact flash.
 Would that be sane, or I am causing more harm than
 good?

 My concerns are:
 1) wear leveling. The journal is on specific part
of the disk writing again and again. That
should be handled by the CF itself. Though
I am not sure it does a good job???
 2) I do care about ungraceful power cycles and I've seen
posts on the net, mentioning:

 More, If
   you interrupt power at arbitrary times while the device is writing,
   you can lose the integrity of the file system being modified. The loss
   is not limited to the 512 byte sector being modified, as it generally
   is  with rotating disks; you can lose an entire erase block, maybe 64K
   at once.

I guess the above comment renders the use
of a journaling filesystem useless. But, doing
some naive tests, power cycling the machine
while writing and checksumming the data after
fsck in preen mode, revealed no error.

 Thanks in advance for any insights, Nikos


Soft Updates seem more appropriate for a 500MB CF drive than gjournal.
AFAIK, they are a wash in terms of reliability, and gjournal needs to write
all data twice meaning it's slower, and increases the wear on the drive.
The big drawback to soft updates is the fsck times after an unclean shutdown
which really shouldn't be an issue on a 500MB drive.

-- 
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: named error sending response: not enough free resources

2010-01-28 Thread Adam Vande More
On Thu, Jan 28, 2010 at 12:59 PM, James Smallacombe u...@3.am wrote:

 To follow up on this: Noticed the issue again this morning, which also was
 accompanied by latency so high that I could not connect (some pings got
 through at very high latency).  I emailed the provider and they told me that
 they had my port on their Ether switch set to 10Mbs.  They switched it to
 100Mbs and only time will tell if that fixes it.

 Does this sound like it could be the entire cause?  I ask because I've
 maxed out pipes before, but never seen it shut all traffic down this much.
 One key difference that I forgot to mention is that this server is running
 TWO instances of named, on two different IPs (for different domains), each
 running a few hundred zones.

 Bottom line:  Would congestion cause this issue, or would this issue cause
 congestion?


I would guess no, but that guess could easily be wrong.  Have you tried
turning up the logging to verbosity to get a better idea of what's
happening?



-- 
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: UDP flooding / Ethernet issues? WAS Re: named error sending response: not enough free resources

2010-01-29 Thread Adam Vande More
On Fri, Jan 29, 2010 at 10:51 AM, James Smallacombe u...@3.am wrote:

 Some updates that may confuse more than inform: I caught this while it was
 happening yesterday and was able to do a tcpdump.  I saw a ton of UDP
 traffic outbound to one IP that turned out to be a colocated server in
 Chicago.  I put that IP in my ipfw rules and once I blocked any to that
 IP, it seemed to stop.  Since then however, the logs have show the same
 issue again and there have been a few brief service disruptions.

 Today's security run output showed this:

 +(RULE NUMBER) 16054161 131965203420 deny ip from any to (blocked IP)

 and more alarmingly, this:

 kernel log messages:
 +++ /tmp/security.BErFHSS3  2010-01-29 03:09:32.0 -0500
 +re0: link state changed to DOWN
 +re0: link state changed to UP
 +re0: promiscuous mode enabled
 +re0: promiscuous mode disabled
 +re0: promiscuous mode enabled
 +re0: promiscuous mode disabled
 +re0: promiscuous mode enabled
 +re0: promiscuous mode disabled

 re0 obviously being the Realtek Ethernet driver.  The server itself never
 went down during this time, but the Ethernet did.  Is there any DOS type of
 event that could cause this, or could the root of the problem be an Ethernet
 hardware or driver issue?  Again, it is not clear to me which is the cause
 and which is the effect.

 Last bit of info:  I just did a: 'tcpdump -n | grep -i udp' and saw a bunch
 of these, coming up a couple of times per second:


promiscuous mode entries are caused by tcpdump

-- 
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: gjournal on compact flash

2010-01-29 Thread Adam Vande More
On Fri, Jan 29, 2010 at 1:39 PM, Nikos Vassiliadis nvass9...@gmx.comwrote:

 fsck time in my case is not an issue. What concerns me mostly is
 a situation where user intervention is required. The CF filesystem
 will be used in a embedded system and should work without user
 intervention. I too feel that geom journaling is not the best
 solution for my needs, but softupdates need more attention than
 gjournal. Perhaps, I should wait for SUJ, which will be in the
 tree soon.

 Nikos


There is an rc flags to automatically do a full fsck instead of backgroud,
but I am unsure exactly what you mean by user intervention.


-- 
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: mysql silently failing to start - suggestions?

2010-01-31 Thread Adam Vande More
On Sun, Jan 31, 2010 at 9:34 PM, John j...@starfire.mn.org wrote:

 If this isn't the right list - if I should try another let me know -
 but since this is the mysql-server-5.4.2 package, and since you
 folks have been so helpful, I thought I'd give it a go.

 Anyway, the system is 8.0-RELEASE and that package is installed,
 and I can't start the server.  Not only can I not start the server,
 but it's not giving me a clue.  I can't find anything anywhere.
 Not in /var/log/messages, not anywhere.  When I run
/usr/local/etc/rc.d/mysqlserver start
 it says Starting mysql., pauses for several seconds (I don't see
 anything go by in top) and then the script exits.  At that point,
 one would expect, there's no /tmp/mysql.sock, there's nothing
 in messages or anywhere else.  With nothing to go on, well, I don't
 know where to start.  Any suggestions?
 --

 John Lind
 j...@starfire.mn.orghttp://lists.freebsd.org/mailman/listinfo/freebsd-questions


I completely switched to postgresql long ago, but maybe I remember enough to
provide a clue, actually this a really application agnostic.

1.  edit the config file to increase verbosity.
2.  start the binary from the commandline, don't run the start-up scripts as
they sometimes mask errors.


-- 
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: adding disk moves ad0 to ad4

2010-02-03 Thread Adam Vande More
On Wed, Feb 3, 2010 at 11:35 AM, Steve Franks bahamasfra...@gmail.comwrote:

 Just curious, having read the handbook section talking about freebsd
 going straight to the hardware and skipping the bios for disk
 numbering, why then, if I stick a sata disk in 'sata0' on the
 motherboard, does it come up as ad0, but if I add a second disk in
 'sata1' or 'pata0', on the next boot, I have no ad0, but ad4 and ad6?
 This seems to be the case with every mobo I've owned in the last 2
 years from a variety of mfr's.  Is there a way around this?  I don't
 care what it comes out as, as long as it stays put...  Since I have
 the only fbsd system at work, I tend to format alot of funky drives
 for people, and it gets anoying having to swap fstab's every time...

 Steve


Use glabel, then you can used the same fstab across disk swaps/machinces

-- 
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: this may be impossible: iis there a way to play streams on our firefox?

2010-02-03 Thread Adam Vande More
On Wed, Feb 3, 2010 at 7:29 PM, Gary Kline kl...@thought.org wrote:



Is there a way of streaming stuff like old tv shows, the
bbc-player, and pbs steams on the freebsd version of firefox35?

thought i'd give it a last try since everything is upgraded on
my desktop.


/usr/ports/www/linux-f10-flashplugin10


-- 
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: this may be impossible: iis there a way to play streams on our firefox?

2010-02-04 Thread Adam Vande More
On Thu, Feb 4, 2010 at 9:56 AM, Mike Clarke jmc-freeb...@milibyte.co.ukwrote:

 Is it just me or is the flash plugin still not fully functional? I'm
 running Firefox 3.5.7 with linux-f10-flashplugin-10.0r42 on
 8.0-RELEASE-p2, some flash videos work but many fail. For example BBC
 iplayer always comes up with a message This content doesn't seem to be
 working. Try again later superimposed over a still image of the start
 of the video. YouTube videos play but without any sound.


I don't have either of those issues.  I've come across a couple of players
that don't work, but all the standard ones like youtube, pbs, bbc all work
perfectly for me.

-- 
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: this may be impossible: iis there a way to play streams on our firefox?

2010-02-04 Thread Adam Vande More
On Thu, Feb 4, 2010 at 10:07 AM, Adam Vande More amvandem...@gmail.comwrote:

 On Thu, Feb 4, 2010 at 9:56 AM, Mike Clarke 
 jmc-freeb...@milibyte.co.ukwrote:

 Is it just me or is the flash plugin still not fully functional? I'm
 running Firefox 3.5.7 with linux-f10-flashplugin-10.0r42 on
 8.0-RELEASE-p2, some flash videos work but many fail. For example BBC
 iplayer always comes up with a message This content doesn't seem to be
 working. Try again later superimposed over a still image of the start
 of the video. YouTube videos play but without any sound.


 I don't have either of those issues.  I've come across a couple of players
 that don't work, but all the standard ones like youtube, pbs, bbc all work
 perfectly for me.


I would like to amemd that statement by saying they work perfectly for me
except for an occasional temporary browser freeze.  This occur when entering
or leaving a page at which point the entire browser will hang for maybe 30
seconds then recover and perform as usual.  This a random event, but
probably occurs at least daily.


-- 
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: autogen gcc makefile.def error Postfix 2.5.6

2010-02-07 Thread Adam Vande More
On Sun, Feb 7, 2010 at 7:55 PM, Danny Edge nocmon...@gmail.com wrote:

 I haven't used FreeBSD in eight years and haven't installed Postfix since
 then. Can someone please help with the GCC error below?

 Thanks.


You'll need to include a lot more info than that.

You can review this page to get the best experience here:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-questions/article.html

Since you've been away so long a review of the handbook would be helpful for
you as well.

The best guess I can make given the info you provided is that you're trying
to built a port without being root.  That isn't going to work, you need
appropriate permissions.

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


Re: FreeBSD's UFS vs Ext4

2010-02-08 Thread Adam Vande More
On Mon, Feb 8, 2010 at 2:57 PM, Jerry McAllister jerr...@msu.edu wrote:

 On Mon, Feb 08, 2010 at 03:12:25PM -0500, Derek Buttineau wrote:

  On 2010-02-08, at 2:58 PM, Chad Perrin wrote:
 
   Can you provide a URL for some discussion of this?  I hadn't heard that
   FreeBSD was moving to Clang.
 
 
  Here's last year's status report where they talk about it:
 
  http://lists.freebsd.org/pipermail/freebsd-stable/2009-May/049873.html
 

 This one looks a little more definitive, but it still uses the
 term 'exploring' rather than saying it is decided.So, keep
 listening.

 jerry


http://www.freebsdnews.net/2009/10/15/clang-llvm-support-on-freebsd/

It's also been talked about on other lists eg current with growing
frequency.  I seem to remember hearing they hoped for it to be ready as an
option for 9.0, although my memory may not be correct on that.

-- 
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: Updating packages in Jails

2010-02-08 Thread Adam Vande More
On Mon, Feb 8, 2010 at 2:35 PM, Richard L. Houston rhous...@rlhc.netwrote:

 Hi everyone,

 First off I am new to FreeBSD. I use Linux professorially and really
 looking forward to getting some FreeBSD boxes in production as well. My
 apologies if my questions are noobish and I have tried Googling for some of
 them but with limited results so I figure I would ask for help from the
 Alpha dogs of FreeBSD on this list.

 So with hat in had I humbly request help in managing jails. I have set up a
 FreeBSD 8.0 install and patched it with freebsd-update. I then created a
 jail based on the instructions from the latest BSDMagazine. It seems to work
 great. Now my issue come in once I try to update the Jail with
 Freebsd-update. FYI, I installed the jail from sysinstall using the minimal
 distribution option. when I run Freebsd-update I was getting:

 Installing updates...chflags: ///libexec/ld-elf.so.1: Operation not
 permitted

 but after restarting the jail I now get Cannot identify running kernel
 The Apache server running on the jail seems to be working fine as is the ssh
 server. Any thought on this issue? Is there a preferred way to update the
 jail env? Remember, noob here, please go easy on me. :)

 Also is there issues with mixing the install of ports from source and via
 pkg_add? Good / bad to mix or no big deal. This is more of a general
 knowledge question, not implying I would be mixing the two types :)

 Thanks all and look forward to being a part of the FreeBSD community.


Use this as a starting point

http://www.freebsd.org/doc/handbook/jails.html

Anyways, host and jail need to run the exact same kernel.  Normally I'll
build my kernel and install it into the base as well as each individual jail
so everything is consistent.

Also check out
/usr/ports/sysutils/ezjail

-- 
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: Updating packages in Jails

2010-02-08 Thread Adam Vande More
On Mon, Feb 8, 2010 at 3:15 PM, Jason jhelf...@e-e.com wrote:

 Use this as a starting point

 http://www.freebsd.org/doc/handbook/jails.html

 Anyways, host and jail need to run the exact same kernel.  Normally I'll
 build my kernel and install it into the base as well as each individual
 jail
 so everything is consistent.


 Why do they need to run the exact same kernel? I didn't see that anywhere
 in
 the document, unless I missed it.

 thanks


They aren't a full form of visualization in terms of having a hypervisor, as
it is dependent the system calls coming from a jail being the same calls
that are present in the host kernel.  Mismatched kernel version could break
that mapping.  Which is also why jails are a faster form of virtualization
because all the call mappings are 1:1.

At least that's my understanding.

-- 
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: Problem building GCC - Postfix install from ports failed

2010-02-08 Thread Adam Vande More
On Mon, Feb 8, 2010 at 3:59 PM, Danny Edge nocmon...@gmail.com wrote:

 I was advised to try this again. New install FreeBSD 7.2 R, installing
 Postfix from cd /usr/ports/mail/postfix  make install clean

 I receive the following error near the end of the install:

 checking whether -fkeep-inline-functions is supported... yes
 updating cache ./config.cache
 creating ./config.status
 creating Makefile
 ===  Building for gcc-4.2.5_20090325
 cd ./..//gcc-4.2-20090325  autogen Makefile.def
 autogen: not found
 gmake: *** [..//gcc-4.2-20090325/Makefile.in] Error 127
 *** Error code 1

 Stop in /usr/ports/lang/gcc42.
 *** Error code 1

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

 Stop in /usr/ports/mail.
 mx#


I guess gcc42 requires /usr/ports/devel/autogen

Looks like the port is missing a dependency for some reason.  Try installing
that port, and resume your gcc build.  If it works you could file a bug
report.

-- 
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: Need help troubleshooting NIC

2010-02-08 Thread Adam Vande More
On Mon, Feb 8, 2010 at 1:19 PM, Mike Galvez gal...@virginia.edu wrote:

 Over the weekend one my servers went down due to extended power failure.
 The file system reports clean, but something has gone sideways with
 networking. The server is a Dell 2950 running 7.0 release, and it's been
 working fine for well over a year. It uses the BCE driver. Ifconfig
 shows it to be up and active and configured with the correct IP, mask
 and gateway, but I can't ping anything.

 I've tested the ethernet connection with a nearby machine and it works.
 I also booted the 2950 from an Ubuntu live CD and the NIC worked, so i
 don't think it's a hardware issue.

 Is there a way I can rebuild the driver without having to rebuild the
 kernel?


What does netstat -r show?

-- 
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: xorgconfig missing FBD_8

2010-02-09 Thread Adam Vande More
On Mon, Feb 8, 2010 at 11:34 PM, Tiv gti...@sbcglobal.net wrote:

 Hi there ---

 I'm writing this to tell you how much FreeBSD has gone downhill since
 version 5.3...

 I don't know who's bright idea it was to remove the xorgcfg and the
 xorgconfig programs,
 but they should be beaten sensless with an IBM AT keyboard. Also if you
 REQUIRE that
 dbus and hald be enabled for so called auto-configuration, put it in the
 dam rc.conf file.

 After an hour of dicking around with the X configuration, and it still
 doesn't work
 I install something else  this is 2010 fer cryin' out load... Linux
 doesn't have this problem.

 thanks for making freebsd a pain in the ass,

 Gary


Reading the documentation to hard for you?


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


python script to backup installed packages

2010-02-11 Thread Adam Vande More
Sometimes you have need to backup installed packages.  I realize most port
management tools do this automatically, but if you're on a system with a lot
of packages installed and one port management tool fails and you use another
to fix it, /usr/ports/packages can become jumbled.  Anyways, I've written a
simple python script which will create a fresh snapshot of all installed
packages.  These are convenient for backups or installing on a new system.

For anyone interested:

from subprocess import Popen, PIPE
import os
s = Popen('pkg_info -a | grep : | grep
Information',shell=True,stdout=PIPE).communicate()[0]

pkg_location = '/data/packages'

packages = []
for line in s.split('\n'):
info = line.replace('Information for ', '').replace(':','')
packages.append(info)

os.chdir(pkg_location)

for package in packages:
s = Popen('pkg_create -b ' +
package,shell=True,stdout=PIPE).communicate()[0]

-- 
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: python script to backup installed packages

2010-02-11 Thread Adam Vande More
On Thu, Feb 11, 2010 at 1:31 PM, Giorgos Keramidas keram...@ceid.upatras.gr
 wrote:

 My own version groks an os.environ['EXTRA_PKG_CREATE_ARGS'] option too
 and inserts the extra options before the [-b, package] arguments of
 pkg_create, so that I can run the script for example with:

env EXTRA_PKG_CREATE_ARGS='-Rvn' ./savepkg.py

 This way package dependencies are saved too (-R option), the output of
 the `pkg_create -b' command is slightly more verbose, and saving the
 same package multiple times doesn't overwrite existing packages of the
 same version (-n option).


Thanks for the tips, I may add some of your functionality to my own.  I
think I might add a couple more features like accepting a backup path from
the command line and an auto create for the dir if it doesn't exist.  One
other thing that might be useful is for it to automatically create an
install script for the backed up packages which takes into account
dependencies.  Almost have a package management system like some other
unnamed OS's then. ;)


-- 
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: PASSWORD LOST!!

2010-02-12 Thread Adam Vande More
On Fri, Feb 12, 2010 at 8:05 AM, John j...@starfire.mn.org wrote:

 People, people - be careful that we are not creating a formula to
 break into FreeBSD servers around the world...

 The only acceptable solution is for someone in Eric's organization
 to secure physical access to the server.  It may be in a co-lo
 situation, but if that's true, they must have a contract open and,
 if nothing else, they terminate the contract and get the machine
 back, though more likely, the contract allows them supervised
 access.  Machines are not perfect - even without losing the root
 password, they break and need maintenance - this is a MAINTENANCE
 event and should be treated as such, just like a hard drive failure
 or a NIC failure.

 Creating a scheme for someone to break into FreeBSD systems remotely
 or to publicize schemes people have created to remotely manage their
 systems in ways that could be used to compromise them is foolishness!

 Regardless of the purity of his intention, Eric is asking us to
 tell him how to break into our homes or steal our cars. ;)


Security through obscurity is no security, hence it is a good exercise.


-- 
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: More on strange 8.0 issues

2010-02-12 Thread Adam Vande More
On Fri, Feb 12, 2010 at 8:49 AM, Chuck Bacon c...@cape.com wrote:

 I have two CD-DVD drives, one PATA and one SATA.  Neither can
 burn a CD, returning either busy or error.  I had to burn the
 8.0-RELEASE-amd64-disc1.iso CD on my old iBook!  And yes, I
 also replaced the ATA drive with one from another box.


It's really extremely difficult to assist you with the amout of information
you provide.   Why would you not include the specific commands you've tried
and their error messages?  Have you tried the burning a cd instructions
presented in the handbook?  Take note of the cdrtools section as that may be
more useful than burncd depending on you situtation.

Final issue, probably no answer.  I installed a ubuntu distro
 on my /dev/ad0s2, with -s1 and -s3 remaining FreeBSD (no -s4).
 My boot loader shows
  F1  FreeBSD   (an older 8.0-RELEASE, GENERIC)
  F2  Linux (new ubuntu)
  F3  FreeBSD   (/backup)
  F5  Drive 1   (a couple more 8.0-RELEASEs :-)
 When I hit F2, I get the the first FreeBSD.  Linux is bypassed.
 When I installed ubuntu from the CD I didn't rewrite the boot.
 Could I have boot FreeBSD if I had installed grub?


Yes grub can boot freebsd.

-- 
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: Perl upgrade problem...

2010-02-12 Thread Adam Vande More
On Fri, Feb 12, 2010 at 2:44 PM, Peter Harrison
peter.piggy...@virgin.netwrote:

 Up till now I've kept Perl on my machine at 5.8.9. I now see from UPDATING
 that upgrading to 5.10 is recommended.

 However, when I follow the instructions, I get the following error:

 laptop# portupgrade -o lang/perl5.10 -f perl-5.8.9_3


if you're referring to this:

20090911:
  AFFECTS: users of lang/perl5.10
  AUTHOR: s...@freebsd.org

  lang/perl5.10 has been updated to 5.10.1.  You should update everything
  that depends on perl.  The easiest way to do that is to use
  perl-after-upgrade script supplied with lang/perl5.10.  Please see its
  manual page for details.

  If you want switch to lang/perl5.10 from lang/perl5.8 please follow
  instructions in the entry 20090328 in this file.

Then you have misunderstood what it's saying.  That only applies to folks
already running 5.10 and if you have no need for that then do nothing
further.  If you really believe you need to run 5.10 then you should follow
the complete instructions from the entry.

-- 
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: Perl upgrade problem...

2010-02-12 Thread Adam Vande More
On Fri, Feb 12, 2010 at 3:03 PM, Matthew Seaman
m.sea...@black-earth.co.ukwrote:


 Err... he's following the right instructions.


ports/UPDATING does not recommend to upgrade.


-- 
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: Perl upgrade problem...

2010-02-12 Thread Adam Vande More
On Fri, Feb 12, 2010 at 3:07 PM, Adam Vande More amvandem...@gmail.comwrote:

 On Fri, Feb 12, 2010 at 3:03 PM, Matthew Seaman 
 m.sea...@black-earth.co.uk wrote:


 Err... he's following the right instructions.


 ports/UPDATING does not recommend to upgrade.


I mean does not recommend going from 5.8 to 5.10 as the op has done.  You
are correctly in the previous entry containing incorrect instructions.


-- 
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: Perl upgrade problem...

2010-02-12 Thread Adam Vande More
On Fri, Feb 12, 2010 at 3:26 PM, Peter Harrison
peter.piggy...@virgin.netwrote:


 I don't need 5.10, but I was prompted to think about upgrading from
 20100205.

 I was trying to follow 20090328, I ran

 pkgdb -Ff (no problem)
 then
 portupgrade -o lang/per5.10 -f perl-5.8.9

 which generated the error given.


 Peter Harrison.


i see, my port tree was out of date, sorry.

-- 
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: netcat (/usr/bin/nc) buffer size too small - alternate utilities?

2010-02-16 Thread Adam Vande More
On Tue, Feb 16, 2010 at 1:42 PM, Nerius Landys nlan...@gmail.com wrote:

 I'm communicating with a server that uses UDP packets.  The server
 receives a UDP packet, and responds with a UDP packet by sending one
 to the initial sender.  The request packets are always very small in
 size, but the response UDP packets can be up to 9216 bytes in size.

 I am using netcat like so:

 echo $REQUEST_BODY | /usr/bin/nc -w 1 -u $PLAYERDB_HOST
 $PLAYERDB_PORT

 The response always gets truncated to 1024 bytes using netcat.

 I wrote my own silly version of netcat specifically suited to my needs
 over UDP, in Java. I then call it like so:

 echo $REQUEST_BODY | /usr/local/bin/java SendUDP $PLAYERDB_HOST
 $PLAYERDB_PORT

 (Source code at the end of this message.)

 With my Java program, I'm able to get up to 9216 bytes in my UDP
 response packet; the response won't be truncated to 1024 bytes like in
 netcat.

 Now I've read the netcat manpage and it says nothing about any buffer
 size or ways to increase it.  I don't really want to use my Java
 program because starting up a JVM for each server query is very
 expensive.  Any ideas of any other tools like netcat that will enable
 me to receive UDP packets up to 9216 bytes in size?


You can try raising OS's UDP buff size:

sysctl kern.ipc.maxsockbuf=8388608

or write an equivalent app in python...

-- 
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: Unable to build kdelibs3

2010-02-17 Thread Adam Vande More
On Wed, Feb 17, 2010 at 5:38 PM, Carmel carmel...@hotmail.com wrote:

 I am still having a problem getting kdelibs3 to build on my FreeBSD-7.2
 system. I believe I have followed all of the directions in the UPDATING
 file. Unfortunately, the build always ends like this:

 Making all in dnssd
 gmake[2]: Entering directory
 `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd'
 ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg
 ./settings.kcfgc; ret=$?; \
if test $ret != 0; then rm -f settings.h ; exit $ret ;  fi
 /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by
 libkdefx.so.6
 gmake[2]: *** [settings.h] Error 1
 gmake[2]: Leaving directory
 `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10'
 gmake: *** [all] Error 2
 *** Error code 1

 Stop in /usr/ports/x11/kdelibs3.


I hope you find a better solution, but mine was to pkg_delete * and rebuild.


-- 
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: Unable to build kdelibs3

2010-02-18 Thread Adam Vande More
On Thu, Feb 18, 2010 at 5:18 AM, Carmel carmel...@hotmail.com wrote:

 That is the same advice I have been given on other forums also.

 I will probably follow the same avenue that a colleague of mine did and
 abandon FBSD until version 8.1 is released and then simply dump the
 entire system and install the newer version. Then again, maybe I will
 just wait until the updated version of KDE is released so as to
 eliminate the hassle of updating a vast number of libraries, etc and
 again experiencing another system failure. I have all ready invested way
 too much time on this problem. This was the worst update I have
 experienced in seven years with FBSD.


FWIW, the last libjpeg update was no peach for me either, but for all the
pains I still think the ports system is superior to other OS's sw
management.   Sometimes the debian respository is a large WTF, and that's
the good one.  Also I posted a script a few days ago that will create a
backup of all currently installed packages.  Useful in a situation like
yours so you could revert to known good set of pkg's until you have time to
deal with the full upgrade.



-- 
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: Mouse not working on virtual box VM

2010-02-18 Thread Adam Vande More
On Thu, Feb 18, 2010 at 10:08 AM, mailinglist mailingl...@ucwv.edu wrote:

 I've successfully got X Windows up and running on a Virtual Box VM on
 FreeBSD 8, however it isn't detecting my mouse.  Any idea on how I can make
 that happen?  As far as I know, there are no guest addition for virtual box
 for FreeBSD..of course that's assuming that would even help.  It might
 not.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


Mouse for freebsd guest works fine here.  There is a guest additions for a
freebsd guest, see the docs.

http://wiki.freebsd.org/VirtualBox

You also need to setup the guest as you would a dedicated host if you wanted
the physical host to have mouse support.

http://www.freebsd.org/doc/handbook/install-post.html
http://www.freebsd.org/doc/handbook/x-config.html

-- 
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: Options for redundant storage cluster?

2010-02-18 Thread Adam Vande More
On Thu, Feb 18, 2010 at 7:00 PM, Matthew Law m...@webcontracts.co.ukwrote:

 Hi,

 hopefully I'm not too far out posting this question here.  It takes in a
 lot of areas so I was unsure where to post it.  If it belongs on another
 ML please advise and I will re-post it there.

 I am researching options for a two node failover storage cluster. This is
 primarily to provide shared storage (either iSCSI or NFS) for XenServer
 VMs.  I am looking to get the best bang for the buck and wondering if
 FreeBSD might be a good choice?

 Hardware-wise we have available two identical supermicro chassis each with
 16 x SAS bays and a choice of AMD or latest Xeon 5500 CPUs, together with
 as many gigabit cards as we need but the budget won't stretch to faster
 networking.  It would be nice to take advantage of ZFS and use two or
 three 8-port SAS HBAs in each server rather than expensive hardware RAID
 cards.

 We don't need to store more than around 2TB but we would like to
 comfortably service around a 75 - 100 VM instances (the VMs on average,
 are not too I/O heavy).  Thin provisioning and snapshots would be nice,
 too.

 My initial thoughts were that we might be able to use ZFS, cheap LSI 8
 port SAS HBAs together with a dozen or so SATA II drives and a couple of
 Intel X25E SSDs to help things along.  It would be great if these boxen
 could network boot, so we can use all the drive bays for storage.  I have
 no idea what options exist for clustering NFS/redundancy.

 I would be very grateful for any advice - especially from anyone who has
 experience in the same scenario.

 Thanks in advance,

 Matt.


I'd say right now ggated/ggatec + heartbeat is sort of roughly equivalent
of  DRBD and heartbeat.  I think many of us are waiting for HAST though.

http://lists.freebsd.org/pipermail/freebsd-announce/2009-October/001279.html


-- 
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: Sysinstall Post-install System Management

2010-02-19 Thread Adam Vande More

 Of course I did forget to install
 www/linux-f10-flashplugin10

 BUT, it doesn't matter that I forgot it.

 [r...@heaven]make install clean
 ===  Vulnerability check disabled, database not found
 = install_flash_player_10_linux.tar.gz doesn't seem to exist in
 /usr/ports/distfiles/flashplugin/10.0r42.
 = Attempting to fetch from
 http://fpdownload.macromedia.com/get/flashplayer/current/.
 fetch:

 http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
 :
 size mismatch: expected 4050308, actual 4050435
 = Attempting to fetch from
 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/flashplugin/10.0r42/.
 fetch:

 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/flashplugin/10.0r42/install_flash_player_10_linux.tar.gz
 :
 File unavailable (e.g., file not found, no access)
 = Couldn't fetch it - please try to retrieve this
 = port manually into /usr/ports/distfiles/flashplugin/10.0r42 and try
 again.
 *** Error code 1

 Stop in /usr/ports/www/linux-f10-flashplugin10.
 [r...@heaven]

 Using Filezilla I ftp'd in and tried to retrieve it manually but

 ftp.freebsd.org/usr/ports/distfiles/flashplugin/ is an empty directory

 Anybody have this port in their local distfiles that I could download?


Better yet, update your ports tree and install the current version

-- 
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: Sysinstall Post-install System Management

2010-02-19 Thread Adam Vande More
On Fri, Feb 19, 2010 at 3:30 PM, Programmer In Training 
p...@joseph-a-nagy-jr.us wrote:

 Everytime I run portsnap update it says it's up to date. So I just
 fetched it and am extracting it right now. I'd run freebsd-udpate but
 that errors out, too.

 You have to run portsnap fetch update (assuming you've run a portsnap
extract earlier)

freebsd-update will do you no go here.


-- 
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: kde4/python26 and pth help.

2010-02-24 Thread Adam Vande More
On Wed, Feb 24, 2010 at 12:11 PM, Jimmie James jimmie...@gmail.com wrote:

 On a freshly installed 8-STABLE box (4 days old) and up to date ports, KDE4
 will not install for me, always the same errors. I've even removed all ports
 and reinstalled from scratch and hit the same errors. I have no
 /etc/make.conf. I'm at a loss here, I have no idea why this is happening.
 I even did a  portupgrade -fRru python26  and tried portmaster, and plain
 old make in the ports that fail.


My script to install from a clean install is

portsnap fetch update
cd /usr/ports/ports-mgmt/portmaster
make install clean  rehash
portmaster -d x11-servers/xorg-server x11-drivers/xf86-input-mouse
x11-drivers/xf86-input-keyboard x11-drivers/{YOUR VIDEO DRIVER PORT}
echo 'dbus_enable=YES\nhald_enable=YES\n'  /etc/rc.conf

then you'll have to do whatever is necessary for video driver install eg
kldload nvidia and make it permanent /boot/loader.conf

Once your driver is live, you create xorg.conf file by

Xorg -config xorg.conf.new
cp xorg.conf.new /etc/X11/xorg.conf

then I manually add in this line to /etc/ttys
ttyv8 /usr/local/kde4/bin/kdm -nodaemon xterm on secure
and comment
ttyv8  /usr/local/bin/xdm -nodaemon  xterm   off secure

Provided you don't have to do anything special for say the nvidia driver,
all's that's do this the hal guys maybe didn't do such a back job after all

As for you error, I don't know what happened.  I used to see those happen on
a massive upgrade when using portupgrade.  I recommend portmaster.  Somehow
python didn't get installed correctly because
/usr/local/include/python2.6/Python.h should exist if python is correctly
installed.



-- 
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: kde4/python26 and pth help.

2010-02-24 Thread Adam Vande More
On Wed, Feb 24, 2010 at 10:47 PM, Jimmie James jimmie...@gmail.com wrote:

 On 02/24/10 23:28, Adam Vande More wrote:



  On Wed, Feb 24, 2010 at 12:11 PM, Jimmie James jimmie...@gmail.com
 mailto:jimmie...@gmail.com wrote:

On a freshly installed 8-STABLE box (4 days old) and up to date
ports, KDE4 will not install for me, always the same errors. I've
even removed all ports and reinstalled from scratch and hit the same
errors. I have no /etc/make.conf. I'm at a loss here, I have no idea
why this is happening.
I even did a  portupgrade -fRru python26  and tried portmaster, and
plain old make in the ports that fail.



 My script to install from a clean install is

 portsnap fetch update
 cd /usr/ports/ports-mgmt/portmaster
 make install clean  rehash
 portmaster -d x11-servers/xorg-server x11-drivers/xf86-input-mouse
 x11-drivers/xf86-input-keyboard x11-drivers/{YOUR VIDEO DRIVER PORT}
 echo 'dbus_enable=YES\nhald_enable=YES\n'  /etc/rc.conf

 then you'll have to do whatever is necessary for video driver install eg
 kldload nvidia and make it permanent /boot/loader.conf

 Once your driver is live, you create xorg.conf file by

 Xorg -config xorg.conf.new
 cp xorg.conf.new /etc/X11/xorg.conf

 then I manually add in this line to /etc/ttys
 ttyv8 /usr/local/kde4/bin/kdm -nodaemon xterm on secure
 and comment
 ttyv8 /usr/local/bin/xdm -nodaemon  xterm   off secure

 Provided you don't have to do anything special for say the nvidia
 driver, all's that's do this the hal guys maybe didn't do such a back
 job after all

 As for you error, I don't know what happened.  I used to see those
 happen on a massive upgrade when using portupgrade.  I recommend
 portmaster.  Somehow python didn't get installed correctly because
 /usr/local/include/python2.6/Python.h should exist if python is
 correctly installed.



 --
 Adam Vande More



 Thanks for the reply,

 Haven't got around to testing X yet, but on 7.2-STABLE it works fine, so
 I'm not too worried about that. It's the python and pth errors that are
 killing me.

  /usr/local/include/python2.6/Python.h  is there, seems correctly
 installed.  Even installing with portmaster and plain old make install it
 _still_ hits those errors of not finding the headers.

 checking for /usr/local/bin/python2.6 version... 2.6
 checking for /usr/local/bin/python2.6 platform... freebsd8
 checking for /usr/local/bin/python2.6 script directory...
 ${prefix}/lib/python2.
 6/site-packages
 checking for /usr/local/bin/python2.6 extension module directory...
 ${exec_prefix}/lib/python2.6/site-packages

 checking for headers required to compile python extensions... not found
 configure: error: Python headers not found

 As well as /usr/bin/ld: cannot find -lpth


it would be looking for  /usr/ports/devel/pth.  Is it installed?  if not,
then there would appear to with a dependency issue.



-- 
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: Where can I find port configuration options?

2010-02-26 Thread Adam Vande More
n Fri, Feb 26, 2010 at 8:06 AM, Xihong Yin x...@gmx.com wrote:

 I know you can set your options when you build a port. But where can I
 find these options for a port? For example, how can I build Firefox with
 the option to disable anti-aliasing font?


Wel the shortterm answer to you problems is somethine like this:

make config

but for long term you should read man ports and at least the ports section
in the handbook.



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


Re: how do I tell ports that perl5.8 should never be installed?

2010-02-28 Thread Adam Vande More
On Sun, Feb 28, 2010 at 2:51 PM, Randal L. Schwartz
mer...@stonehenge.comwrote:


 I've upgraded to Perl 5.10, but when I tried to install a few
 things that depended on perl, the package installed perl5.8, because
 that must be what it was compiled with.

 How do I tell the ports system that perl5.8 should *never* be used, and
 rather
 than install a package that needs it, I can fall back to a port build?

 I'm using portsnap to update things, so I don't think i can just delete the
 5.8 port, because it will likely just get reinstalled.


See /usr/ports/UPDATING and /etc/make.conf

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


Re: how do I tell ports that perl5.8 should never be installed?

2010-02-28 Thread Adam Vande More
On Sun, Feb 28, 2010 at 3:53 PM, Randal L. Schwartz
mer...@stonehenge.comwrote:

  Adam == Adam Vande More amvandem...@gmail.com writes:

 Adam See /usr/ports/UPDATING and /etc/make.conf

 Doesn't help.  Packages that are compiled against 5.8 still want
 to install 5.8.

 I want this to fatal out, so I know to build from port, not use package.

 portinstall -Pc MUMBLE is just too damn easy to give up the -P.


If it completed successly it has to help.  What are the result of each step
so we can isolate the problem.

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


Re: how do I tell ports that perl5.8 should never be installed?

2010-02-28 Thread Adam Vande More

 It completes by installing 5.8.  I'd like to prevent that.

 I'd like the entire portage system to consider 5.8 to be dead, both
 for building from ports, and for installing packages that say they
 depend on that.

 How do I get there?


Can you attach your make.conf?

-- 
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: Remote Building of FreeBSD

2010-03-01 Thread Adam Vande More
On Mon, Mar 1, 2010 at 11:19 AM, Martin McCormick mar...@dc.cis.okstate.edu
 wrote:

 One can almost but not quite remotely build a FreeBSD system
 using mfsbsd. The problem is that in order to install the
 mfsboot.img data on the main boot drive, it is necessary to use
 dd to write it there and a working system already has mounted
 all partitions in the main drive.

The systems I will be upgrading have 1 or more gigabytes
 of RAM available so a memory disk could conceivably hold the
 roughly 40-meg image that must be written to the boot sector of
 the main drive.

For this to work, one must unmount all main drive
 partitions and still be able to do something like:

 dd if=mfsboot.img of=/dev/ad0

After that, the reboot will launch mfsbsd and the rest
 appears to be manageable.

 Martin McCormick WB5AGZ  Stillwater, OK


This seems to be similar to the depenguinator.

http://www.daemonology.net/blog/2008-01-29-depenguinator-2.0.html

Maybe there some approach in there to get you over the hump.

-- 
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: Remote Building of FreeBSD

2010-03-01 Thread Adam Vande More
On Mon, Mar 1, 2010 at 12:00 PM, Martin McCormick mar...@dc.cis.okstate.edu
 wrote:

 Adam Vande More writes:
  This seems to be similar to the depenguinator.

  Maybe there some approach in there to get you over the hump.

 It is exactly the right idea. Funny thing, I actually did turn
 swap off and the image is now sitting there because I thought
 this might be useful. Is there any way to tell the existing
 system to boot from /dev/ad0s1b next time? That would solve the
 problem completely.


Never tried it but this might work:

bsdlabel -B diskslice


-- 
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: Remote Building of FreeBSD

2010-03-01 Thread Adam Vande More
On Mon, Mar 1, 2010 at 12:07 PM, Adam Vande More amvandem...@gmail.comwrote:

 On Mon, Mar 1, 2010 at 12:00 PM, Martin McCormick 
 mar...@dc.cis.okstate.edu wrote:

 Adam Vande More writes:
  This seems to be similar to the depenguinator.

  Maybe there some approach in there to get you over the hump.

 It is exactly the right idea. Funny thing, I actually did turn
 swap off and the image is now sitting there because I thought
 this might be useful. Is there any way to tell the existing
 system to boot from /dev/ad0s1b next time? That would solve the
 problem completely.


 Never tried it but this might work:

 bsdlabel -B diskslice


Since you need to specify a partition other than a, I think you may need to
use boot.config

http://www.freebsd.org/cgi/man.cgi?query=bootsektion=8apropos=0manpath=FreeBSD+8.0-RELEASE

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


Re: how do I tell ports that perl5.8 should never be installed?

2010-03-01 Thread Adam Vande More
On Mon, Mar 1, 2010 at 12:19 PM, Matthew Seaman 
m.sea...@infracaninophile.co.uk wrote:


 As far as I know, there isn't an official way to do this.  What you
 want sounds like a useful addition to the base system to me.

 You could do it in a fairly gross hacky way, like the following. This is
 entirly untested, might not work at all and will certainly be at the
 cost of some alarming error messages:

   # mkdir -p /var/db/pkg/perl-5.8.9_3
   # touch /var/db/pkg/perl-5.8.9_3/+IGNOREME
   # chflags -R noschg /var/db/pkg/perl-5.8.9_3

 Hopefully it chucks a spanner in the works before the package system
 actually installs anything.  Of course, you'll have to update that if
 the perl5.8 port has any sort of version bump[*].

 On second thoughts, writing a small wrapper around pkg_add(1) that greps
 through the @pkgdep lines in the +CONTENTS file from the package tarball
 and bails if it finds the wrong version of perl would be a much cleaner
 approach.  The -M (--master) and -S (--slave) flags to pkg_add look
 interesting in this context.


There is already enough dependency information available to portupgrade to
know this.  portupgrade simply doesn't act on it.  However, as I already
informed Mr. Schwartz, portmaster -P does work.


-- 
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: gnome install: stuck

2010-03-07 Thread Adam Vande More
On Mon, Mar 8, 2010 at 12:46 AM, n dhert ndhert...@gmail.com wrote:

 Laptop with Freebsd 8.0, with gnome installed and
 gdm_enable=YES
 gnome_enable=YES
 in /etc/rc.conf, no changes to /etc/ttys (that is: ttyv8 ... xdm off)
 After reboot, system starts in gnome, gives a greenish background,
 a taskbar at the bottom, with only date/time, a button for 'Universal
 access preferences'  and an icon for the battery.
 In the desktop a grey window with 2 buttons labeled 'Restart' and
 'Shutdown'.
 Clicking either of them makes them be blueish for the time the mouse
 button in pressed, but nothing happens.
 I am stuck in Gnome. Why and how to solve it ?

 (I can only do Ctrl-Alt-F1 to get to the command prompt, but even that
 I have to do twice: the first time it gives a flickering almost entirely
 black
 screen with at the top some half line of flickering ascii characters (can't
 read), doing a Ctrl-Alt-F9 (back to gnome) and again Ctrl-Alt-F1 gives me a
 stable login: prompt.)


Sounds like you are in GDM, not gnome.  There's probably a login button
somewhere, you need to authenticate with the system then you'll be logged
into the desktop.  Also, it's just Alt-F9 to return to the graphical
display, ctrl not needed there.


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


Re: How can I repair wrong /etc/rc.conf ?

2010-03-08 Thread Adam Vande More
On Mon, Mar 8, 2010 at 11:45 PM, oscar Seo oscar...@gmail.com wrote:

 I'm using FreeBSD 6.4 + windowmaker in IBM notebook.
 I edited /etc/rc.conf to use LAN other ip address is different from my home
 address in my school.
 I got error message from this
 [
 /etc/rc.conf: 131: Syntax error: Unterminated quoted string
 Enter full pathname of shell or RETURN for /bin/sh:
 ]
 so that I returned, I decided to edit /etc/rc.conf using vi.
 But freebsd didn't find vi, less any other application.
 I can't modify even if read /etc/rc.conf.
 fortunately I can use cat so I found my fault sting from /etc/rc.conf but I
 can't modify any files cause the system changed into read only file system.
 How can I repair /etc/rc.conf file with fault statements using any editor?

 Thanks in advanced.
 Oscar


The are multiple ways to do this, easiest is to type in at the sh prompt:

mount -a

You would then have access to /usr, vi is in /usr/bin/vi






-- 
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: tao suddenly died

2010-03-09 Thread Adam Vande More
On Tue, Mar 9, 2010 at 9:34 PM, Gary Kline kl...@thought.org wrote:

Aloha Al and thanks for responding.  {god this has been a
long day... .  }

Well, long-story-short, the most unepect thing happened: a
power surge.  I did not realize that my printer was also off
until hours later.  A friend helped me trace the problem and
reset my surgge-protector.  ---It is worth noting that BEFORE
I got my battery [UPS], when things were dead or suddenly
went dead, i  knew right away to check the surge-protector.

nutshell: things are almost back.  it'll be only an hour
before everything is back.

still, this is a warning to get back on the ball and start
looking for a new desktop.

i would be much obliged for ideas on what kind of dell to buy
next.  i say 'dell' because i would like to make life simple
and eventually have one kind of box.  (i have three tower
computers: one is my DNS/mail/web server; one is my pfSense
firewall; one is my laptop.  i COULD use the server as a
desktop, but that would be too much of a risk!

so:: should i be looking for a dual or quad?  i am biased
toward intel because i think the AMD requires more juice.  [[my
only linux server --long dead-- seemed to suck 100w to 107w as
a minimum.]]

suggestions?


I don't really think much of Dell consumer level products or support.  While
they aren't the worst out there, it still doesn't make it very compelling
for me.  Depending on your resources(money) you might consider something
like this:

http://www.ixsystems.com/apollo

While more money than you'd probably spend with dell, here's a couple
reasons to consider it further.

1.  Out the Box compatibility
2.  Great hardware support/warranty service
3.  Vendor backing of your OS
4.  Long term upgradability, this will serve you better than any emachine.
5.  ixsystems is a large supporter of FreeBSD

I believe the TCO of something like that is lower than most alternatives.

One further thought is I don't see a lot sense in the requirement must be a
dell, cause the other ones I have are dell given the amount of machines you
run.  To me, it would make more sense to standardize on something like cpu,
so that you could run one as a build system/package repository.  I know that
settling on one vendor generally means you only need one source for warranty
work, but with stickers on cases and online accounts this isn't such an
issue anymore.


-- 
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: can't ping localhost

2010-03-10 Thread Adam Vande More
On Wed, Mar 10, 2010 at 8:47 PM, Anton Shterenlikht me...@bristol.ac.ukwrote:

 # uname -a
 FreeBSD mech-anton240.men.bris.ac.uk 9.0-CURRENT FreeBSD 9.0-CURRENT #2:
 Tue Mar  9 14:35:40 GMT 2010 
 me...@mech-anton240.men.bris.ac.uk:/usr/obj/usr/src/sys/QOF
  sparc64


  I believe -current has a issue where you can not ping localhost atm
 

 all my machines are current, but some are more current than others..

 Well, the ping issue is just an example.
 My real problem is that sendmail can't send
 anything locally:

 # tail /var/log/maillog
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0irgd029426:
 to=mexas, ctladdr=mexas (1001/1001), delay=01:32:05, xdelay=00:00:00,
 mailer=relay, pri=480031, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred:
 [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2B0hbGe029358:
 to=mexas, ctladdr=mexas (1001/1001), delay=01:33:21, xdelay=00:00:00,
 mailer=relay, pri=570028, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred:
 [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A87g4K005078: to=root,
 delay=18:09:16, xdelay=00:00:00, mailer=relay, pri=3721559,
 relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A87g4L005078: to=root,
 delay=18:09:16, xdelay=00:00:00, mailer=relay, pri=3725184,
 relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A77d4L004977: to=root,
 delay=19:09:19, xdelay=00:00:00, mailer=relay, pri=3903061,
 relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A77d4K004977: to=root,
 delay=19:09:19, xdelay=00:00:00, mailer=relay, pri=3903122,
 relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A3bvPl004242: to=root,
 ctladdr=root (0/0), delay=22:39:01, xdelay=00:00:00, mailer=relay,
 pri=4530195, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
 route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A3c9wG004609: to=root,
 ctladdr=root (0/0), delay=22:38:49, xdelay=00:00:00, mailer=relay,
 pri=4533820, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
 route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A340iF002543: to=root,
 ctladdr=root (0/0), delay=23:12:58, xdelay=00:00:00, mailer=relay,
 pri=4711758, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
 route to host
 Mar 11 02:16:58 mech-anton240 sm-msp-queue[32611]: o2A33vXB002495: to=root,
 ctladdr=root (0/0), delay=23:13:01, xdelay=00:00:00, mailer=relay,
 pri=4801697, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: [127.0.0.1]: No
 route to host
 #


 many thanks
 anton

 --
 Anton Shterenlikht


If you run CURRENT, you would do well to follow the mailing list.

http://groups.google.com/group/mailing.freebsd.current/browse_thread/thread/2ab13c4b31228c88/15dab18a9066e9a2?lnk=raot


-- 
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: problems w/ touching all files?

2010-03-11 Thread Adam Vande More
On Thu, Mar 11, 2010 at 11:05 AM, Richard DeLaurell 
richard.delaur...@gmail.com wrote:

 I made a big mistake the upshot of which is that many of my files
 (including
 many port/makefiles) have the wrong date.

 As a result, I get a lot of failures when trying to install from ports.

 I can get around it by temporarily setting the date, building the port,
 then
 resetting the date, but it is still inconvenient.

 I would rather not do a clean install at this point, but am wondering if
 touching all of the files on my system would solve this problem WITHOUT
 creating any new ones?

 If it would, what might those new complications be?

 As I say, it is not mission-critical at this point, but it would be helpful
 to fix this.

 Thanks for any help.


maybe try a portnsnap fetch extract, touch -m should help on
/usr/ports/distfiles/

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


  1   2   3   4   5   6   7   8   >