Re: Typical times installing from ports via 56k modem?

2002-10-28 Thread Michael Ross
Hiya,

speaking from experience on this one ( I have moved all the way from
freeBSD 4.4-4.7 all with my trusty dial up modem) It is realistic to tackle all
of this from your own modem, it just takes time.

 It took about 1.5 hrs for the CVSUP from 4.6.0 to 4.7, and another 2
 hours for the build (on a P3-500 with 128MB RAM).

That seems a little bit long, was that the only CVSUP you did between the
two? you might be able to speed things up by trying to find a cvsup server
that is closer to you.
 
 My question is... Is it realistic to upgrade via ports with a 56K
 modem? I tried installing a few small things via ports, and it worked well, but I'm
 wondering how long it will take to download and build things like the XFree86,
 or GNOME. Do these things take days, or might I be able to accomplish it
 overnight?

some tips to use that I have found helpfull,

* find a download server that you get good ping times off (search the mirror 
archives and then ping the closest ones to you)
* Run all of your downloads overnight, I find I tend to get better download rates 
from local servers when the network is less congested.
* When downloading ports to install, do make fetch-recursive this will fetch the 
tarballs for the port and for all of the dependecies.. simply a make or a make install 
will download a package, then build it before going onto the next one.

Once the make fetch-recursive is finished you should be able to go through and do a 
simple make install and the port should build without needing to download anything 
else.
* when upgrading ports, get a copy of portupgrade, and use portupgrade -raF - this  
should go through and download the tarballs for the ports you want to upgrade. 
Then later when your off the net do a portupgrade -ra to build them.

Michael Ross 
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: DHCP and an internal web server

2002-11-24 Thread Michael Ross
Hey,

 I understand that there are hardware solutions that allow
 a host to run a web server thu DHCPD, but is there a way 
 of configuring one of my behind-the-firewall server to 
 serve pages.

there are two ways actually,

* get in touch with the person managing your dhcp server, supply them with the 
mac address of your machines network card and have them reserve a specific IP 
for your machine. Then have your dns admin point your domain name to that IP. 
This way whenever your machine requests an IP via DHCP it will get the same 
one.

* email the admin of your dhcp/dns servers and have them setup dynamic dns 
updates. This is a lot more complex then the above suggestion, but it means that 
whenever your machine gets a new IP it automatically updates the dns server 
with your new IP.

 zen.thought.org is an example; i is an older 4.7 system
 hardwired as 10.0.0.247.  Is there a way of configuring
 things to let http://zen.thought.org serve miscellaneous
 essays and references, e.g., for my profs.

the only problem you will hit depends on how willing your dhcp/dns server admins 
are to reconfiguring your server. otherwise you should be fine.

=)

Michael Ross 
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Strange load averages on 5.3-STABLE

2005-03-10 Thread Michael Ross
On Thu, 10 Mar 2005 08:13:53 -0300
Giovanni P. Tirloni [EMAIL PROTECTED] wrote:

 Hi,
 
   This is the output of top:
 
 last pid: 771; load averages: 176.65, 770.13, 926.55 up 0+00:03:13  08:11:07
 48 processes:  1 running, 47 sleeping
 CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle
 Mem: 40M Active, 63M Inact, 45M Wired, 16K Cache, 35M Buf, 99M Free
 Swap: 487M Total, 487M Free
 
PID USERNAME PRI NICE   SIZERES STATETIME   WCPUCPU COMMAND
622 mysql 200 58104K 28040K kserel   0:01  0.64%  0.63% mysqld
587 root  960 16888K 10592K select   0:00  0.00%  0.00% httpd
652 root  960  6252K  4536K select   0:00  0.00%  0.00% snmpd
 [...]
 

Your may have compiled kernel and userland from different sources.
 and programs like ps(1) and top(1) will fail to work until the kernel and 
source code versions are the same. from the handbook is what comes to my mind.

Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: options NO_LKM?

2004-09-17 Thread Michael Ross
Omer Faruk Sen wrote:
I have seen that NO_LKM option has been removed (a long time ago ) 
from supported options in kernel config file.
I want to disable kernel module loading in my system. Is there a way 
for that?

You can do that with securelevels:
see
 man securelevel
   1 Secure mode - the system immutable and system append-only 
flags may
  not be turned off; disks for mounted file systems, /dev/mem, and
  /dev/kmem may not be opened for writing; kernel modules (see
  kld(4)) may not be loaded or unloaded.

Michael
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Diskless setup for 5.3 ?

2004-10-16 Thread Michael Ross
Rob wrote:
Michael Collette wrote:
After running through a stack of little pitfalls in trying to get a 
diskless client running from a 5-CURRENT server I'm down to the last 
nasty here.  

Help is very much appreciated, because I sensed that help with diskless
setup is quite rare on the mailing list (not many people use it?).
Thanks so much in advance!
Rob.

There are two recent articles on the subject there:
   http://www.onlamp.com/topics/bsd/FreeBSD
I did not actually read them, but nevertheless.
HTH
Michael
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: About BSD

2004-10-19 Thread Michael Ross
*NONE* wrote:
Hi, I was just wondering how did you make BSD, how many people did it take you, and 
how long it took to make? I want to see if I and a team of programmers has what its 
got to make an OS one day.
  Thanks
   Tom

-
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 


For the history see:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/history.html

As for the people:
http://www.freebsd.org/doc/en/articles/contributors/index.html
BTW thanks to all of you and to the ones not mentiond there:
You are doing a great job!
Michael
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Nonsensical Web Log Entries

2011-03-09 Thread Michael Ross

Am 09.03.2011, 21:40 Uhr, schrieb pe...@vfemail.net:



Does this entry change your conclusion:

188.134.62.20 - - [09/Mar/2011:12:15:04 -0500] GET  
http://images.google.com/ HTTP/1.1 200 13134 - -




If I do:

%telnet localhost 80

and enter:

GET / HTTP/1.1
Host: images.google.com

I get this in my logfile:

	127.0.0.1 images.google.com - [09/Mar/2011:22:06:48 +0100] GET /  
HTTP/1.1 200 2257 - -


My vhost-Setup serves the default host in the requested host is unknown,
thus 200 OK.



Here's another entry that's too bizarre for words:

 218.172.209.123 - - [09/Mar/2011:15:38:29 -0500] \x16\x03\x01 200  
13107 - -




Talking ssl to a non-ssl vhost. Google that one.



Regards,
Michael
___
freebsd-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: Jails: How do i limit what ifconfig shows?

2011-04-22 Thread Michael Ross

Am 22.04.2011, 22:21 Uhr, schrieb xor xor...@gmail.com:


Hullo
First off, thanks for a lovely operating system 3

I decided to go for FreeBSD perhaps 3 days ago. Before, ive been an
Debian/OpenBSD guy, and ive only used my obsd box for redundant
firewalls and networking. Ive not been running any services off the
boxen.

The reason I decided to go for FreeBSD is because of the Jails. Ive
looked around a bit, but I can not find anything about how to limit
what interfaces that ifconfig shows. I would like it to hide pretty
much everything so that _no_ information about the host systems
networking leaks into the jails. I dont want jails to know anything
but their IP-numbers and which computer to use for DNS lookups,
essentially.

Is there any good text out there that describes how to do this? Ive
searched a bit for it, but Ive been unable to find anything but the
basics.


Maybe you can remove the ifconfig binary from the jail.
Works for me.


Michael
___
freebsd-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: Help with Booting

2011-04-22 Thread Michael Ross

Am 23.04.2011, 00:38 Uhr, schrieb Doug Hardie bc...@lafn.org:

I have an AMD based system that is driving me nuts.  I am trying to  
install 8.2 on it but can't get past the first boot.  I had a system up  
and running on it before, but I had to remove a drive and do the install  
on another computer.  That worked, but now I need to use the built in  
RAID hardware.  As best as I can tell I am going to have to install on  
the the actual hardware.  Motherboard is an Arima NM46X.  The machine  
appears to be about 6 years old.


I have tried to boot the install disk, the live filesystem disk, and the  
memstick image for FreeBSD 7.0 through 8.2.  All of them do exactly the  
same thing:


Bootstart starts.

BTX loader lists the drives and memory

FreeBSD bootstrap loader version 1.1 starts.  I get the build date and  
then a new line with just a '/' on it.  It never begins to spin.  No  
additional I/O occurs with the boot device.


The memstick and CDs are good.  They boot just fine on another computer,  
just not this one.  I have had to work around CD issues in the past, but  
I thought the memstick would work if the BIOS would recognize it and  
boot from it.  It recognizes it and tries to boot.  I need some ideas  
here as the RAID is essential for this application.  Thanks,




Architecture mismatch, trying to boot a amd64 on an i386 machine?



Michael
___
freebsd-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: error in installation of uwsgi

2011-07-08 Thread Michael Ross

Am 08.07.2011, 17:23 Uhr, schrieb Zhong Yubin zhon...@gmail.com:


Hi,  I'm going to setup machine for developing web application in python.
But some errors appear when I install uwsgi using ports. The following is
the first I met:

*cc -c -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-pipe -fno-strict-aliasing -fno-strict-aliasing -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers
-DUWSGI_BUILD_DATE=\08 July 2011 23:09:03\ -DUWSGI_HAS_IFADDRS
-DUWSGI_LOCK_USE_UMTX -DUWSGI_EVENT_USE_KQUEUE
-DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE
-DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_VERSION=\0.9.8.1\
-DUWSGI_VERSION_BASE=0 -DUWSGI_VERSION_MAJOR=9  
-DUWSGI_VERSION_MINOR=8

-DUWSGI_VERSION_REVISION=1 -DUWSGI_VERSION_CUSTOM=\\ -DUWSGI_ASYNC
-DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML
-DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE  
-I/usr/local/include/libxml2

-I/usr/local/include -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3
-DUWSGI_PLUGIN_DIR=\.\ -DUWSGI_SPOOLER
-DUWSGI_DECLARE_EMBEDDED_PLUGINS=UDEP(python);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rpc);UDEP(fastrouter);UDEP(http);UDEP(ugreen);
-DUWSGI_LOAD_EMBEDDED_PLUGINS=ULEP(python);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rpc);ULEP(fastrouter);ULEP(http);ULEP(ugreen);
-In file included from plugins/python/uwsgi_python.h:2,*
* from plugins/python/python_plugin.c:1:*
*/usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such  
file or

directory*
*o spooler.o spooler.c*
 uWSGI compiling embedded plugins 
*
*
After sort of searching in google, I used following command to solve this
problem.

*ln -s /usr/local/include/pth/pth.h /usr/local/include/python2.7/pth.h*


Then I rebuilt this port again. The second error appeared.



I hit that one a few days ago. Haven't solved it.

If it's an option for you, you can compile Python without GNU Pth support.
This will solve your uwsgi installation problem.

Regards,

Michael
___
freebsd-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: Droid fonts

2011-07-13 Thread Michael Ross

Am 13.07.2011, 17:21 Uhr, schrieb Arthur Barlow arthurbar...@gmail.com:


It appears that the port droid-fonts-ttf has a few *.ttf files with
bad checksum numbers.  Anyone know about that?



Not true for a right-now-updated ports tree:

= SHA256 Checksum OK for DroidSans-Bold.ttf.
= SHA256 Checksum OK for DroidSans.ttf.
= SHA256 Checksum OK for DroidSansArabic.ttf.
= SHA256 Checksum OK for DroidSansFallback.ttf.
= SHA256 Checksum OK for DroidSansFallbackLegacy.ttf.
= SHA256 Checksum OK for DroidSansHebrew.ttf.
= SHA256 Checksum OK for DroidSansJapanese.ttf.
= SHA256 Checksum OK for DroidSansMono.ttf.
= SHA256 Checksum OK for DroidSansThai.ttf.
= SHA256 Checksum OK for DroidSerif-Bold.ttf.
= SHA256 Checksum OK for DroidSerif-BoldItalic.ttf.
= SHA256 Checksum OK for DroidSerif-Italic.ttf.
= SHA256 Checksum OK for DroidSerif-Regular.ttf.
= SHA256 Checksum OK for NOTICE.



Michael
___
freebsd-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: semi-OT: Looking for a hosting provider w/ FreeBSD root-servers

2011-08-04 Thread Michael Ross

Am 04.08.2011, 08:56 Uhr, schrieb Matthias Apitz g...@unixarea.de:



Hello,

I have to change my hosting provider, because the actual one does
not want to fullfill my needs. I'm looking for a provider offering
FreeBSD root-servers, best in Europe. Any pointers are wellcome.
Thanks

matthias



http://www.hetzner.de

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


Re: ISO images

2011-08-17 Thread Michael Ross

Am 17.08.2011, 14:55 Uhr, schrieb Julian H. Stacey j...@berklix.com:


Lars Eighner wrote:
ftp protocol does not support command du, so one can't see size of
ftp://ftp.freebsd.orgpub/FreeBSD/ports/amd64/packages-8.2-release/All/




My FTP client shows it at about 32GB total.


Michael
___
freebsd-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 images

2011-08-17 Thread Michael Ross

Am 17.08.2011, 15:59 Uhr, schrieb Julian H. Stacey j...@berklix.com:


Hi,
Reference:

From:   Michael Ross michael.r...@gmx.net
Date:   Wed, 17 Aug 2011 15:28:41 +0200
Message-id: op.v0c013xvhalquq@michael-think


Michael Ross wrote:

Am 17.08.2011, 14:55 Uhr, schrieb Julian H. Stacey j...@berklix.com:

 Lars Eighner wrote:
 ftp protocol does not support command du, so one can't see size of
  
	ftp://ftp.freebsd.orgpub/FreeBSD/ports/amd64/packages-8.2-release/All/




My FTP client shows it at about 32GB total.


Nice to be able to see that.  Which client ?
Do you know it get that ? Maybe it adds size of each file together ?

( I was using /usr/bin/ftp )

Cheers,
Julian


WinSCP on a Windows desktop.

In ports there is ftp/lftp, which has a du command.

I don't know how they get the value, assume they do just that: ls each  
directory and add up.




Michael
___
freebsd-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: -Stable periodic updates

2011-11-05 Thread Michael Ross

Am 05.11.2011, 07:23 Uhr, schrieb Conrad J. Sabatier conr...@cox.net:


Again, go back and read the Handbook sections on using csup, updating
your src and ports trees, etc.  No one is interested in repeating
information that is already available in a complete and detailed form.


Available if you are proficient in English.
The spanish translation is lacking the parts he asks about, and then some.


Regards,

Michael
___
freebsd-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: -Stable periodic updates

2011-11-05 Thread Michael Ross

Am 05.11.2011, 15:36 Uhr, schrieb Zantgo zan...@gmail.com:


I will say my question clear.
If I have FreeBSD-8.2-stable, updated 2011/05/18, what I want to do is  
update the current, as for example 2011/11/01. I am willing to read me a  
manual that tells me how to do  
this.___



I do it like this:

put this in stable-supfile:

*default host=cvsup.de.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_8
*default delete use-rel-suffix

*default compress

src-all

execute:

csup stable-supfile
cd /usr/src
make buildworld
make buildkernel
make installkernel
mergemaster -p
make installworld
mergemaster -a
reboot


You now have updated to a current 8-STABLE.
This is, if 8.3 would exist, you would now have 8.3-STABLE.
If you just want security patches for 8.2 and not go to 8.3 if it comes  
out,

you have to define tag=RELENG_8_2


This is not the same as tag=HEAD.
tag=HEAD gives you CURRENT, which is 9.0-RC1 i believe.
Do not confuse these.


http://www.freebsd.org/doc/en/books/handbook/cvsup.html
http://www.freebsd.org/doc/en/books/handbook/cvs-tags.html
http://www.freebsd.org/doc/en/books/handbook/makeworld.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


Get list of ethernet devices

2011-11-06 Thread Michael Ross

Moin,

I'm setting up a system on an external USB drive,
serving as fallback in case of a server failure:

Customer takes USB drive, plugs it into any of his PCs and boots of it.

Now I am looking for a good method to configure the network:

I could just start dhclient on any NIC which could possibly be there,
thus cramming rc.conf with
ifconfig_em0=DHCP
ifconfig_em1=DHCP
ifconfig_fxp0=DHCP
and so on.

Or I could grep ifconfig or dmesg output for ethernet interfaces and  
dhclient these.


Both sound like a very messy solution.

So I would step beyond my current area of expertise, grep some source from  
sysinstall, bsdinstall or somewhere and do it in C.
But I'm kind of hoping anybody can point me to a readymade solution yet  
unknown to me.



Regards,

Michael


___
freebsd-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: Get list of ethernet devices

2011-11-07 Thread Michael Ross

Am 07.11.2011, 02:19 Uhr, schrieb Warren Block wbl...@wonkity.com:




ifconfig_DEFAULT=DHCP

It's not well documented.  I'd also suggest using SYNCDHCP as more  
likely to work predictably on unknown equipment.


Wow. That's *a lot* easier than what I came up with.

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: Get list of ethernet devices

2011-11-07 Thread Michael Ross
Am 07.11.2011, 02:24 Uhr, schrieb Marco Steinbach  
c...@executive-computing.de:



I'd be interested in testing the results (or possible steps thereto) of  
your efforts in creating a customized, bootable FreeBSD USB stick image,  
if that's feasible.




I am not creating an image at all.

What I did is:
- Download memstick image from freebsd.org, copy to stick
- Plug stick and external drive into computer
- Boot from stick, install to external drive

Worked like a charm.

Next I'll create packages from the software on the server,
pkg_info | cut -d   -f 1 | xargs pkg_create -b
copy them over to the external drive and pkg_add them.

I guess I could just dd the result to another drive, stick or to an image  
file.



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


Re: Burning CD

2011-11-07 Thread Michael Ross

Am 07.11.2011, 22:47 Uhr, schrieb Polytropon free...@edvax.de:


On Mon, 7 Nov 2011 12:59:23 -0800 (PST), C Horman wrote:

Do you have any free software suggestions for burning a CD
in Windows XP if this is the issue?


Sorry, I'm not a Windows person and I don't use 10 years
old software, so I can't give you any suggestion here. :-)


I am,
I do,
and I can :-)

http://www.imgburn.com/


Regards, Michael
___
freebsd-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: Unprintable 8-bit characters

2011-11-08 Thread Michael Ross

Am 09.11.2011, 01:42 Uhr, schrieb Conrad J. Sabatier conr...@cox.net:


Pardon me if this may seem like a stupid question, but this is
something that's been bugging me for a long time, and none of my
research has turned up anything useful yet.

I've been trying to understand what the deal is with regards to the
displaying of the extended 8-bit character set, i.e., 8-bit characters
with the MSB set.

More specifically, I'm trying to figure out how to get the ls command
to properly display filenames containing characters in this extended
set.  I have some MP3 files, for instance, whose names contain certain
European characters, such as the lowercase u with umlaut (code 0xfc
in the Latin set, according to gucharmap), that I just can't get ls to
display properly.  These characters seem to be considered by ls as
unprintable, and the best I've been able to produce in the ls
output is backslash interpretations of the characters using either the
-B or -b options, otherwise the default ? is displayed in their place.


Unsure if I understand you correctly.
(extended 8-bit character set with MSB? utf-16?)
I'm confused by this charset stuff in general.

Assuming you want \0xfc displayed as ü,


cat test.py  python test.py  ls -l


#!/usr/local/bin/python
# -*- coding: utf-8 -*-

f=open('\xfc','w')
f.close()
total 2

-rw-r--r--  1 michael  wheel  29  9 Nov 02:43 test.py
-rw-r--r--  1 michael  wheel   0  9 Nov 02:44 ü


here is what works for me:

in my login class in /etc/login.conf:

:charset=ISO-8859-1:\
:lang=de_DE.ISO8859-1:\

``cap_mkdb /etc/login.conf'' after changes


in /etc/rc.conf:

scrnmap=iso-8859-1_to_cp437
font8x8=cp850-8x8
font8x14=cp850-8x14
font8x16=cp850-8x16


and in /etc/ttys, console type is set to ``cons25l1''


Regards,

Michael
___
freebsd-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: Disable automatic Fallback IP on 9.0-RC2 when a hostname cannot be resolved

2011-11-26 Thread Michael Ross

Am 26.11.2011, 16:44 Uhr, schrieb Moritz Wilhelmy mor...@wzff.de:


Hello,

my 9.0-RC2 installation on furnace.wzff.de keeps connecting to wzff.de
if a hostname cannot be resolved. E.g. telnet foobar 25 connects me to
the SMTP server on wzff.de, same thing for another jail that uses a
subdomain of barfooze.de and tries to connect to barfooze.de if it can't
find a suitable DNS or /etc/hosts record.

I dislike when computers try to be smart like this, and I can't really
think how this is useful, and it also doesn't happen on another machine
that has a subdomain of something set as hostname and is running 8.2, so
I want to disable it. Can anyone give me a hint how to do it?



Add e. g. ``search local'' to /etc/resolv.conf.
The behaviour is explained in man resolv.conf, search.

Or disable wildcard entries in your dns server config.

Regards,

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


Certain users can't start python

2011-12-11 Thread Michael Ross

Hello,

I am ... stuck.

I've been trying to setup mercurials web frontend with apache,
but apache won't start python.
Not as cgi-script, not with mod_python.

Investigating, I found this not only to be a problem with apache.

Situation now:
Users michael and root can run python.
All others can't:

Could not find platform independent libraries prefix
Could not find platform dependent libraries exec_prefix
Consider setting $PYTHONHOME to prefix[:exec_prefix]
ImportError: No module named site


For troubleshooting, I cloned michael to an new user dummy,
i. e. I created the user, copied all .dotfiles from michael over,
adjusted permissions.
dummy can't start python either.

Changing accounts with su does not help:
dummy$ su -l michael
dummy$ su -m michael
*both* can run python,

michael$ su -l dummy
michael$ su -m dummy
*both* can not run python.

Setting PYTHONHOME does not help -- the libraries are found (probably,
the error messages disappear), the ImportError remains.

It's been a couple of long days and maybe I'm missing something obvious?
Any input would be greatly appreciated.

8.2 stable, python 2.7.2.
As for python, I tried reinstalling. No change.

TIA

Michael
___
freebsd-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: Certain users can't start python

2011-12-12 Thread Michael Ross
Am 12.12.2011, 11:26 Uhr, schrieb David Demelier  
demelier.da...@gmail.com:



2011/12/12 Michael Ross g...@ross.cx:

Hello,

I am ... stuck.

I've been trying to setup mercurials web frontend with apache,
but apache won't start python.
Not as cgi-script, not with mod_python.

Investigating, I found this not only to be a problem with apache.

Situation now:
Users michael and root can run python.
All others can't:

   Could not find platform independent libraries prefix
   Could not find platform dependent libraries exec_prefix
   Consider setting $PYTHONHOME to prefix[:exec_prefix]
   ImportError: No module named site


For troubleshooting, I cloned michael to an new user dummy,
i. e. I created the user, copied all .dotfiles from michael over,
adjusted permissions.
dummy can't start python either.



How did dou clone the account ? Does account has a full correct home
path in /etc/passwd ?


Created with adduser, copied .cshrc .profile  the lot over.
Yes, it has a correct home dir.
I can ssh into it from another machine without trouble.







Changing accounts with su does not help:
   dummy$ su -l michael
   dummy$ su -m michael
*both* can run python,

   michael$ su -l dummy
   michael$ su -m dummy
*both* can not run python.

Setting PYTHONHOME does not help -- the libraries are found (probably,
the error messages disappear), the ImportError remains.

It's been a couple of long days and maybe I'm missing something obvious?
Any input would be greatly appreciated.

8.2 stable, python 2.7.2.
As for python, I tried reinstalling. No change.

TIA

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


cheers,

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


Re: Certain users can't start python

2011-12-12 Thread Michael Ross

Am 12.12.2011, 13:22 Uhr, schrieb Tomasz Kowalczyk kowalczf...@gmail.com:


On Monday 12 of December 2011 06:31:46 Michael Ross wrote:

Hello,

I am ... stuck.

I've been trying to setup mercurials web frontend with apache,
but apache won't start python.
Not as cgi-script, not with mod_python.

Investigating, I found this not only to be a problem with apache.

Situation now:
Users michael and root can run python.
All others can't:

Could not find platform independent libraries prefix
Could not find platform dependent libraries exec_prefix
Consider setting $PYTHONHOME to prefix[:exec_prefix]
ImportError: No module named site


For troubleshooting, I cloned michael to an new user dummy,
i. e. I created the user, copied all .dotfiles from michael over,
adjusted permissions.
dummy can't start python either.


Is user 'dummy' in same groups that 'michael' is ?


No, it wasn't. I forgot to add it to the wheel group. (Missing  
something obvious alright).



I think it can be something with permissions, maybe files in
/local/lib/python2.7/ got strange permissions ?


That was it: /usr/local/lib/python2.7 was chmodded 770.
No idea why.

Thanks!


Basically module 'site' (site.py in detail) is loaded by interpreter on  
early

start, so if it can't read it , python will raise this error.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to  
freebsd-questions-unsubscr...@freebsd.org

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


Re: Legacy releases of freeBSD

2011-12-18 Thread Michael Ross

Am 16.12.2011, 21:00 Uhr, schrieb Vong Bui vong...@embarqmail.com:


Hello,
I am trying to learn Unix by using freeBSD and wanted to obtain an  
older version of freeBSD, such as version 3.5, to accompany a book  
about freeBSD published around 1999. Can you point me to where the iso  
images can be found, if they are available for download.


Thank you



ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/ISO-IMAGES/


Regards,

Michael
___
freebsd-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 Kernel Internals Documentation

2012-01-04 Thread Michael Ross

Am 04.01.2012, 23:00 Uhr, schrieb Mario Lobo l...@bsd.com.br:


On Wednesday 04 January 2012 17:47:52 Lyubomir Grigorov wrote:
Mainly to Jerry and Chad, but anyone contributing to the flame and OT  
fest,


How I feel whenever I see people argue on the internet

http://i.imgur.com/biopQ.gif
--
Lyubomir Grigorov (bgalakazam)


Yes! humor.

I think open-sore is really cute, intelligent and funny.



http://ars.userfriendly.org/cartoons/?id=19990206




More so than
winblows or micro$hit.

Even with nicknames we get better results!.

I believe we could all profit from being able to laugh at that too.

___
freebsd-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: 2 distinct DSL lines with same endpoint (8-STABLE)

2012-01-09 Thread Michael Ross
Am 09.01.2012, 21:20 Uhr, schrieb Christoph Egger  
christ...@christoph-egger.org:



Hi all!

  I'm having a FreeBSD 8 gateway that is supposed to do NAT/firewall
stuff with internet coming through 2 distinct DSL modems from the same
carrier. Unfortunately I can only run ppp on one of these lines as the
endpoint address for both lines are the same so bringing up the second
line fails in

| PPp ON elephant Warning: tun1: AIFADDR X.X.X.X - Y.Y.Y.Y returns -1
| Warning: iface add: ioctl(SIOCAIFADDR, X.X.X.X - Y.Y.Y.Y): File exists
| Error: ipcp_InterfaceUp: unable to set ip address

Where Y.Y.Y.Y is already also used for the other ppp connection.

  This seems to be a known Problem with FreeBSD ppp (google turns up
some results) but I haven't found any usefull workarounds. Can anyone
suggest some way to get this kind of setup working?

Regards

Christoph



Maybe netgraph will 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: 2 distinct DSL lines with same endpoint (8-STABLE)

2012-01-09 Thread Michael Ross

Am 09.01.2012, 21:47 Uhr, schrieb Michael Ross g...@ross.cx:

Am 09.01.2012, 21:20 Uhr, schrieb Christoph Egger  
christ...@christoph-egger.org:



Hi all!

  I'm having a FreeBSD 8 gateway that is supposed to do NAT/firewall
stuff with internet coming through 2 distinct DSL modems from the same
carrier. Unfortunately I can only run ppp on one of these lines as the
endpoint address for both lines are the same so bringing up the second
line fails in

| PPp ON elephant Warning: tun1: AIFADDR X.X.X.X - Y.Y.Y.Y returns -1
| Warning: iface add: ioctl(SIOCAIFADDR, X.X.X.X - Y.Y.Y.Y): File  
exists

| Error: ipcp_InterfaceUp: unable to set ip address

Where Y.Y.Y.Y is already also used for the other ppp connection.

  This seems to be a known Problem with FreeBSD ppp (google turns up
some results) but I haven't found any usefull workarounds. Can anyone
suggest some way to get this kind of setup working?

Regards

Christoph



Maybe netgraph will do?


Part two of message:


ng_one2many
http://www.freebsd.org/cgi/man.cgi?query=ng_one2manysektion=4apropos=0manpath=FreeBSD+8.2-RELEASE

or maybe

ng_bridge
http://www.freebsd.org/cgi/man.cgi?query=ng_bridgesektion=4apropos=0manpath=FreeBSD+8.2-RELEASE


Michael




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

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


Re: eliminate character with sed

2012-05-20 Thread Michael Ross

Am 20.05.2012, 18:08 Uhr, schrieb Tim Dunphy bluethu...@gmail.com:


Hello list,

 I have a few php config files that have the windows delimiter
character in them  ('^M') that I would like to get rid of. I'm trying
to use sed to do it, and for some reason I am not having any luck.

Here's the line that I'm trying to use:

 #sed -i '.bak' 's/^M//g' config.php

However when I have a look at the backup file that's been created with
this command, it looks like there was no effect:

?php ^M/*   Global Variables   */^Mif(!defined('DS'))^M
define('DS',DIRECTORY_SEPARATOR);^M^M
if(!defined(_MAINSITEPATH_))^M
define(_MAINSITEPATH_,dirname(__FILE__).DS);^M

I was wondering is someone had a tip on how to run this command
effectively in this situation.

Thanks!
tim



Maybe you can use /usr/ports/converters/dosunix.

Usage:
  dosunix INPUTFILE OUTPUTFILE

DosUnix converts files from DOS text format to Unix text format
by replacing each carriage return  newline pair with a single
newline character.

does not do backups, though.


Michael
___
freebsd-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 /src from command line

2012-05-22 Thread Michael Ross

Am 22.05.2012, 21:43 Uhr, schrieb Jos Chrispijn ker...@webrz.net:

I want to compile my kernel and I read that for this I need to have the  
complete /SRC tree installed.
If I do this via sysinstall, I get either a display that the chosen  
server is not available or these are not available for FreeBSD 9.

Is there a way to update /src by CVSUP or otherwise?

thanks,
Jos Chrispijn



I do it like this:

Copy, read and modify
/usr/src/share/examples/cvsup/stable-supfile
to, e.g.
/root/stable-supfile

then
csup /root/stable-supfile


HTH Michael
___
freebsd-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 /src from command line

2012-05-22 Thread Michael Ross

Am 22.05.2012, 21:59 Uhr, schrieb Michael Ross g...@ross.cx:


Am 22.05.2012, 21:43 Uhr, schrieb Jos Chrispijn ker...@webrz.net:

I want to compile my kernel and I read that for this I need to have the  
complete /SRC tree installed.
If I do this via sysinstall, I get either a display that the chosen  
server is not available or these are not available for FreeBSD 9.

Is there a way to update /src by CVSUP or otherwise?

thanks,
Jos Chrispijn



I do it like this:

Copy, read and modify
/usr/src/share/examples/cvsup/stable-supfile


Sorry, that is

/usr/share/examples/cvsup/stable-supfile

of course.
___
freebsd-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 indicate source directory in other than /usr/src?

2012-05-29 Thread Michael Ross

Am 29.05.2012, 12:10 Uhr, schrieb Thomas Mueller muelle...@insightbb.com:

How does one indicate a system source directory location when in other  
than /usr/src?


That could be necessary when in another directory, for instance running  
ndiscvt.


Or one could be building FreeBSD for a USB stick and want to do the  
heavy work on a hard drive; I could also want to build and install ports  
on the USB stick but do the heavy work on the hard drive.


I couldn't find a variable named SRCDIR anywhere in the documentation,  
in contrast to PORTSDIR, which I did find.


I may also want to build 10-CURRENT from 9-STABLE system without giving  
up the 9-STABLE source tree; I would need both source trees, but then  
after the first successful build of 10-CURRENT, I could use that to  
build updated versions.





I often use nullfs for this kind of thing:

mount -t nullfs /where/your/sources/are /usr/src
mount -t nullfs /some/dir/for/objects /usr/obj


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


Trigger action on link state change

2012-06-15 Thread Michael Ross


Hi all,

i was wondering if there is any ready-made method to trigger an action as  
soon as a link changes state.

Along the lines of
onifdown_em0=/run/this/script
in rc.conf

Background:
Discussing physical data security with a client yesterday: The machine has  
to run 24/7. The filesystem is encrypted on boot, but this doesn't help a  
lot if anybody brings an AC generator to steal the machine *AND* the UPS.  
Best point in time to lock the machine I could think of was when somebody  
pulls the NIC cable.


Regards,

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


Question about gmirror priorities

2012-07-06 Thread Michael Ross

Hi,

the manpage says for ``gmirror label'':

The order of components is important,
because a component's priority is based on its position
(starting from 0 to 255).


so I would expect to have different priorities for the components,
yet both are listed with a priority of 0:


gmirror list

Geom name: gm0
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 1162650455
Providers:
1. Name: mirror/gm0
   Mediasize: 320072932864 (298G)
   Sectorsize: 512
   Mode: r2w2e5
Consumers:
1. Name: ad4
   Mediasize: 320072933376 (298G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 2769583838
2. Name: ad6
   Mediasize: 320072933376 (298G)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 540951176


Where is my misunderstanding?

Regards,

Michael
___
freebsd-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 on FAT32 filesystem?

2012-07-19 Thread Michael Ross

Am 19.07.2012, 13:27 Uhr, schrieb Jakub Lach jakub_l...@mailplus.pl:


This topic went totally off, but anyway there are interesting bits,
do you say that e.g. Gutmann method is totally unneeded?



You may be interested in the epilogue to Gutmann's paper:

http://www.cs.auckland.ac.nz/~pgut001/pubs/secure_del.html#Epilogue

Quote:
For any modern PRML/EPRML drive, a few passes of random scrubbing is the  
best you can do. As the paper says, A good scrubbing with random data  
will do about as well as can be expected. This was true in 1996, and is  
still true now.



Nice picture:
http://en.wikipedia.org/wiki/File:MFM_AFM_JANUSZ_REBIS_INFOCENTRE_PL_HDD_MAGNETIC_MEMORY_EVOLUTION.png



--
View this message in context:  
http://freebsd.1045724.n5.nabble.com/fsck-on-FAT32-filesystem-tp5727015p5728126.html

Sent from the freebsd-questions mailing list archive at Nabble.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to  
freebsd-questions-unsubscr...@freebsd.org

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


Re: fsck on FAT32 filesystem?

2012-07-22 Thread Michael Ross
On Sun, 22 Jul 2012 23:01:41 +0200, Robert Bonomi  
bon...@mail.r-bonomi.com wrote:




I haven't had occasion to dissect a copy of format in years, I don't know
if it still defaults to one write attemptto every sector on the disk.




By default in Windows Vista, the format command writes zeros to the whole  
disk when a full format is performed.


http://support.microsoft.com/kb/941961/en-us


With the addition of the passes-switch, this seems to imply one write  
attempt per sector, but I didn't find any explicit statement to that  
accord.



___
freebsd-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: /tmp filesystem full

2012-08-22 Thread Michael Ross

On Wed, 22 Aug 2012 12:59:13 +0200, Andy Wodfer wod...@gmail.com wrote:


Hi,
I have about 500MB in my /tmp and it seems to be too small when the
periodic LOCATE script runs every week.

What's the best way to increase the size of /tmp ? Could I simply remove  
it

and create a symbolic link ln -s to say /usr/tmp instead (where I have
several hundred GBs free)?

PS! This is on a live server and I would like to keep downtime and  
problems

to a minimum. :-)

Cheers,
Andy


If it's just locate.updatedb filling it up temporarily,
perhaps you can solve this by ommitting part of your filesystem from the  
locate index.


See /etc/locate.rc


Regards,

Michael
___
freebsd-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: Zip file making issues

2010-09-20 Thread Michael Ross

Am 21.09.2010, 05:53 Uhr, schrieb Ryan Coleman edi...@d3photography.com:




As I said in my OP: I could just run a cd to the directory parent and  
do it there - that would solve the problem - but that's simply too  
dangerous if the script generator throws an error on the next set of  
commands (a risk I do not want to take).


Maybe you could:

mount -t nullfs -o ro /where/my/data/is /mnt
cd /mnt
zip ...



Regards,

Michael
___
freebsd-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: Tips for installing windows and freeBSD both.. anyone??

2010-11-09 Thread Michael Ross

Am 10.11.2010, 01:09 Uhr, schrieb Robert Bonomi bon...@mail.r-bonomi.com:

With a GUI there is no way to describe the series of mouse  
'motions'/'clicks'/

'double-clicks'/'drags' and keypresses required to perform an operation.
'screen coordinates' are meaningless when a window, or icon, or button,  
may be

'repositioned' at will.

An _individual_ application may allow scripting via an internal command  
language,
but since it is internal to the app, and *not* part of the GUI, it  
doesn't
'generalize' (no guarantee that similar capability is present in any  
other app)
*AND* is utterly worthless for 'automating' annything that involves more  
than

the single app.


For Windows OSes there is actually a rather nice tool out there,

http://www.autoitscript.com/autoit3/

which allows you to script the GUI cross-app.

Regards,

Michael


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


Re: no apache22, php5 cores

2011-01-21 Thread Michael Ross
Am 22.01.2011, 00:28 Uhr, schrieb Da Rock  
freebsd-questi...@herveybayaustralia.com.au:


Run ps ax | grep httpd. If it doesn't show up then its not working. If  
it says NO_HTTP_ACCEPT or similar its not working either.


Like -DNO_HTTP_ACCEPT in the ps output?

That doesn't mean not accepting http but http accept filter disabled,
i.e. accf_http.ko is not/can not be loaded. The server can work fine  
without it.



Michael
___
freebsd-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: Network configuration in FreeBSD

2008-01-30 Thread Michael Ross
On Wed, 30 Jan 2008 19:35:03 +0100, Bhuvaneswari Ramkumar  
[EMAIL PROTECTED] wrote:


An explicit call to /etc/netstart tells me that the route  devd with  
their
pids are already running - though I dont know if this takes into account  
the

new chages I've done  restarts the network.


Try
/etc/rc.d/netif restart

followed by
/etc/rc.d/routing restart


Michael


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


Re: Fwd: This has begun to annoy me...

2008-02-01 Thread Michael Ross

Am 01.02.2008, 23:14 Uhr, schrieb Kurt Buff [EMAIL PROTECTED]:



 +ad6: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=4570911
 +ad6: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=42958719
 +ad6: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=113343327
 +ad6: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=117315327



Sooner or later. this messages will be followed by something along the  
line of

ad6: WRITE_DMA failed

and you'll get READ_DMA failures as well.

As others have suggested, do not trust this drive.
You may command
atacontrol mode ad6 pio
or put
hw.ata.ata_dma=0
in loader.conf.

The errors will disappear. Use this if you can't backup because the reads  
fail.

Worked for me. YMMV.

I've installed the port, and started the daemon. We'll see what tomorrow  
brings.


Even if smart does not find anything -- use the drive for junk purposes at  
max.


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


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross

Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann [EMAIL PROTECTED]:



It is not finding the FreeBSD versions of libraries. There is no
/usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading
library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if
it's branded.



[EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/usr/lib/librt.so.1
brandelf: error opening file /usr/compat/linux/usr/lib/librt.so.1: No such  
file or directory


[EMAIL PROTECTED] ~]$ brandelf /usr/compat/linux/lib/librt.so.1
File '/usr/compat/linux/lib/librt.so.1' is of brand 'SVR4' (0).

[EMAIL PROTECTED] ~]$ brandelf /usr/lib/librt.so.1
File '/usr/lib/librt.so.1' is of brand 'FreeBSD' (9).


Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross
Am 11.02.2008, 18:53 Uhr, schrieb Wojciech Puchar  
[EMAIL PROTECTED]:



 if not set it and rerun /etc/rc.d/abi


serafina# kldload linux

serafina# /etc/rc.d/abi start
Additional ABI support:.



should be
Additional ABI support:linux.

you miss

linux_enable=YES

in rc.conf


If I linux_enable in rc.conf, the ABI linux support is there.
- is it unreasonable to assume it _should_ be there if I kldload the  
module and restart abi afterwards? -


Nevertheless:

serafina# grep linux_enable /etc/rc.conf
linux_enable=YES

serafina# dmesg -a | grep -A1 ABI
Additional ABI support:
 linux

serafina# /etc/rc.d/abi restart
Additional ABI support: linux.

serafina# /compat/linux/bin/sh
sh-3.00# ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS  
ABI invalid



Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross
Am 11.02.2008, 18:20 Uhr, schrieb Wojciech Puchar  
[EMAIL PROTECTED]:



did you have

linux_enable=YES in your rc.conf

if not set it and rerun /etc/rc.d/abi


serafina# kldload linux

serafina# /etc/rc.d/abi start
Additional ABI support:.

serafina# /compat/linux/bin/sh
sh-3.00# ls
ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS  
ABI invalid


sh-3.00# uname -a
Linux serafina.local 2.4.2 FreeBSD 7.0-PRERELEASE #0: Fri Feb  8 21:57:13  
CET 2008 i686 i686 i386 GNU/Linux


serafina# locate -d: librt.so.1
/usr/compat/linux/lib/librt.so.1
/usr/compat/linux/lib/obsolete/linuxthreads/librt.so.1
/usr/lib/librt.so.1
/usr/obj/usr/src/lib/librt/librt.so.1
/usr/obj/usr/src/tmp/usr/lib/librt.so.1



Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross

Am 11.02.2008, 20:56 Uhr, schrieb Steve Franks [EMAIL PROTECTED]:

So should I be fixing my path, or linking linux/usr/lib to linux/lib, or  
what?



On Feb 11, 2008 12:06 PM, Reid Linnemann [EMAIL PROTECTED] wrote:

work around this by linking
/usr/compat/linux/usr/lib/librt.so.1 to the actual lib at
/usr/compat/linux/lib/librt.so.1



ln -s /usr/compat/linux/lib/librt.so.1 /usr/compat/linux/usr/lib/librt.so.1

works for me.


I am not sure though if and where-to to file a PR (let alone where to look  
for the source to patch).


Just for the record:
serafina# pkg_info | grep linux | awk '{print $1}'
linux-expat-1.95.8
linux-fontconfig-2.2.3_7
linux-xorg-libs-6.8.2_5
linux_base-fc-4_10


Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FW: failure notice

2008-02-12 Thread Michael Ross
Am 12.02.2008, 09:40 Uhr, schrieb Heiko Wundram (Beenic)  
[EMAIL PROTECTED]:



Am Dienstag, 12. Februar 2008 09:03:10 schrieb Da Rock:

Anybody know why this would be happening to me? Every time I post I get
this back, yet my post shows up on the list.


You're sending from a hotmail.com address, without using a hotmail.com  
server

as outgoing mail relay.



I am getting this messages, too, for the address of [EMAIL PROTECTED],  
as OP.

And I _am_ using the gmx.net smtp as outgoing relay (just double-checked).

My bet is 163.com screwed their setup.



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


Re: cups printing with command-line lpr apps (i.e. enscript)

2008-02-12 Thread Michael Ross

Am 12.02.2008, 17:29 Uhr, schrieb Steve Franks [EMAIL PROTECTED]:


I get the following:


nenscript a.cpp

lpr: Unable to connect to /var/run/printer: No such file or directory
lpr: Check to see if the master 'lpd' process is running.
jobs queued, but cannot start daemon.

Exit code: 0


How do I bolt that up to cups?



Maybe you ran into the same thing as I did a few days ago:

Cups comes with its own lpr, /usr/local/bin/lpr.
The apps try the base system lpr in /usb/bin.

You may have to adjust your $PATH to have /usr/local/bin first,
or backup /usr/bin/lpr and ln -s /usr/local/bin/lpr /usr/bin/lpr
Last method has to be repeated after any installworld.


Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: My printer isn't working with freebsd I have a hp laserjet1000

2008-02-21 Thread Michael Ross

Am 21.02.2008, 23:55 Uhr, schrieb paulfromottawa [EMAIL PROTECTED]:


My printer isn't working with freebsd I have a hp laserjet1000

/usr/local/libexec/cups/filter/foomatic-rip failed

So I have tried building the kernel without ulpt, and uploader the  
firmware

but then cups would have local printers selection greyed out.

using boot loader.conf
to load ulpt corected that but still no test prints worked.


Loading ulpt via the loader has the same effect as compiling it into the  
kernel.

Don't do that. You need your printer as a ugen device.

You do have hplip installed? It is in the ports and comes with a  
``hp-setup'' program.

Use filter /usr/local/share/ppd/HP/HP-LaserJet_1010-hpijs.ppd.gz

Maybe this helps: http://foo2zjs.rkkda.com/INSTALL
Look for the section FREEBSD NOTES. It is about uploading firmware to a  
Laserjet 1018.

You probably need to be root to upload.

If your printer is detected by cups, you will still need to replace  
/usr/bin/lpr with /usr/local/bin/lpr for your applications to print.


Check out ``hp-toolbox'', too.

HTH

Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Kernel compilation error for 7.0 ( with IPSEC )

2008-03-03 Thread Michael Ross
Am Mon, 03 Mar 2008 15:15:29 +0300 schrieb Leonid Satanovsky
[EMAIL PROTECTED]:

 Hi, people!
 I've just CvsUPed the src-all collection for RELENG_7_0
 [This is a 7.0-RELEASE, as I understand, am I correct? ]

RELENG_7_0

The release branch for FreeBSD-7.0, used only for security advisories and
other critical fixes.


 trying to compile the source with IPSEC reselts in the following:
 ---   
 ...
 
 xform_ipcomp.o(.text+0xcac):/usr/src/sys/netipsec/xform_ipcomp.c:570: 
 undefined reference to `M_XDATA'
 xform_ipcomp.o(.text+0xcbc):/usr/src/sys/netipsec/xform_ipcomp.c:571: 
 undefined reference to `crypto_freereq'
 xform_ipcomp.o(.text+0xda6):/usr/src/sys/netipsec/xform_ipcomp.c:584: 
 undefined reference to `M_XDATA'
 xform_ipcomp.o(.text+0xdb6):/usr/src/sys/netipsec/xform_ipcomp.c:585: 
 undefined reference to `crypto_freereq'
 *** Error code 1
 
 Stop in /usr/obj/usr/src/sys/TKLGW_7.
 *** Error code 1
 
 Stop in /usr/src.
 *** Error code 1
 
 Stop in /usr/src.
 
 --
 The question: what may be wrong with that?
 

You are missing device crypto in your kernel config.

Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Printing with a laserjet 1018

2008-03-04 Thread Michael Ross

Bob Falanga schrieb:

First of all, thanks to those who have helped me so far.
I have configured the printer and everything looks OK, but when I do a test
print the test page goes into the printer queue and stays there for ever.
The printer doesn't even squeak. First I had to use the print driver for a
laserjet 1010 as I couldn't kind a driver for the 1018. Second the printer
does work under the alternate OS.

Any ideas?



HP printer using CUPS, right?
Try using /usr/local/bin/lpr instead of /usr/bin/lpr.
Same goes for lprm, lpq and friends.
Make sure all your apps do.
Maybe replace /usr/bin/lpr with /usr/local/bin/lpr.
Repeat after installworld.

HTH

Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Looking for a FTP sync'er suggestion

2008-03-11 Thread Michael Ross

Michaël Grünewald schrieb:

Hi,

I am looking for a program able to make a remote FTP site look like a 
copy of a local dir. I feel as if I were dunce-cap-awards(R) nominated, 
but I really did not find one!


In ports/ftp many programs say they do the reverse, and a few say they 
``mirror'' without more explanation. I gave a tried to mirror, ftpmirror 
and ftpsync (among others), all of them broke or failed to be useful.



I need this to publish a web site on a space allocated to me by my ISP, 
I am writing a script that automates publication, and at the very end, I 
 noticed the key-piece was missing!


I usually do it with lftp, in a script like:

[EMAIL PROTECTED] ~]$ cat work/websites/foobar/lftp.upload
#!/usr/local/bin/lftp -f
debug 3;

set dns:fatal-timeout 30;

set ftp:ssl-allow true;

open -u username,password host;

put upload/updating.php -o /index.php || exit 1

mirror --verbose=1 --parallel=1 --delete --reverse \
--exclude .htaccess --exclude .htpasswd \
--exclude index.php --exclude updating.php \
upload / || exit 1

put upload/index.php -o /index.php || exit 1


Then I'll call ./lftp.upload and be done.


Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem about ssh client connection

2008-03-17 Thread Michael Ross
Am Mon, 17 Mar 2008 13:43:17 +0100 schrieb roberto giovoni
[EMAIL PROTECTED]:

 I have an ssh process running on unix_bsd based server.
 Normally to connect remotly to this server I use a putty
 terminal (running on windows XP client).
 
 Now I have the following problem:
 
 when I open a client terminal connection (with a putty terminal)
 the message login as:  is normally displaied.
 
 After I insert my login usermane followed from return key press.
 I wait for password: message request but it isn't displayed.
 Moreover after about 1 minute the putty terminal session is
 automatically closed.
 
 On server site the following message is displaied:
 
 fatal: Timeout before authentication for xxx.xxx.xxx.xxx
 where xxx.xxx.xxx.xxx is client IP address.
 
 Can someone help me to understand what' s happen?

Could be a hostname lookup failure.
I had a similiar problem long time back. If I remember correctly, adding the
WinXP client's hostname to /etc/hosts on the BSD machine fixed it.

Michael

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


Re: removable devices auto umounting

2008-03-20 Thread Michael Ross
Am Fri, 21 Mar 2008 09:40:39 +1000 schrieb Da Rock
[EMAIL PROTECTED]:


 That last point would only occur if the device was still being written
 to- right?

No.
Removing a mounted device will cause a panic, writes pending or not.

Maybe look at the emulators/mtools port, which gives you access to
FAT formatted media without mounting them.

Michael



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


Re: New PATA Drive

2008-10-13 Thread Michael Ross
On Mon, 13 Oct 2008 15:45:44 -0700
Doug Hardie [EMAIL PROTECTED] wrote:

 
 On Oct 13, 2008, at 14:03, David Kelly wrote:
 
  On Mon, Oct 13, 2008 at 01:56:40PM -0700, Doug Hardie wrote:
  I am encountering an issue with a new 160 GB PATA drive.  Its being
  installed on an old system (Pentium II).  The boot process never
  really starts.  It gets in the BIOS to where it checks for drives and
  hangs with the message searching for the primary drive on the
  channel.  Normally I have that disabled because the boot drive is  
  SCSI
  but in that situation it just hangs and there are no messages.  This
  drive is the only device on the channel and it is jumpered for  
  Master.

  Drive:  Seagate ST3160815A

Did you try setting the Capacity Limitation Jumper on the drive?

Worked for me once when installing a contemporary HD into an old
machine yielded a stop while the BIOS tried to detect it.

Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 8.3 with LSI MegaRAID 9265-8i

2012-10-05 Thread Michael Ross

On Fri, 05 Oct 2012 04:26:01 +0200, Joe Mays m...@win.net wrote:

Well, this is a real problem. I have nothing where I am to build and  
burn an ISO, and I am trying to work with someone several states away  
through an IKVM switch. The server-to-be is on a port on the switch and  
I need them to download the ISO via FTP and burn it to a disc and drop  
it in the tray. Right now I'll happily pay $50 to to anyone who can  
provide me with an ISO of 8.3 stable in a location that I can provide to  
the person in missouri so he can download it and create the DVD. I'm  
serious. Paypal is at the ready.


Possible option?:
Have the person at the remote and plug an usb stick into the machine,
install onto that, and continue from there?


Michael


- Original Message - From: Rick Miller  
vmil...@hostileadmin.com

To: Joe Mays m...@win.net
Sent: Thursday, October 04, 2012 9:55 PM
Subject: Re: FreeBSD 8.3 with LSI MegaRAID 9265-8i



On Thu, Oct 4, 2012 at 9:38 PM, Joe Mays m...@win.net wrote:

Which ISO? The driver didn't make it into 8.3-RELEASE. Do you have a
stable/8 iso that was made sometime after the 8.3 release?



No, I was trying to install from 8.3 RELEASE. Where do I get a .iso of  
8.3
STABL:E that will include the new mfi driver? I can't find one on the  
ftp

site.


There is no ISO to download.  The most recent stable/8 code at
http://svn.freebsd.org/base/stable/8/ includes the driver.  Check it
out and build a release ISO based on that code.  Reference the URL
below, but don't pay any mind to patching sysinstall, kernel
config, or Executing/Using the kernel sections and it'll guide you
in building a release.  Once the release is built, run mkisofs on it
and you'll have your ISO.

http://blog.hostileadmin.com/2012/10/01/building-freebsd-with-multiple-kernels/

Also consider reading the release(7) manpage at
http://www.freebsd.org/cgi/man.cgi?query=releaseapropos=0sektion=0manpath=FreeBSD+8.3-RELEASEarch=defaultformat=html
for information on building a release.

-- Take care
Rick Miller


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

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


Re: using /etc/portsnap.conf

2013-01-02 Thread Michael Ross

On Thu, 03 Jan 2013 00:43:36 +0100, Fbsd8 fb...@a1poweruser.com wrote:


Walter Hurry wrote:

On Wed, 02 Jan 2013 12:27:41 -0500, Fbsd8 wrote:


When issuing the portsnap command will it automatically read the
/etc/portsnap.conf file or is the -f option mandatory?
 It will use /etc/portsnap.conf by default. No need for -f unless you  
need to use a different config file.
 By the way, in answer to your question in another thread, you don't  
have to extract the whole tree if you don't want to. Use 'portsnap  
fetch' the first time around, and then portsnap extract the port you  
want. See 'man portsnap', and remember to cater for the dependencies.




My /ect/portsnap.conf looks like this.

# $FreeBSD: src/etc/portsnap.conf,v 1.5.2.1.2.1 2009/10/25 01:10:29  
kensmith Exp $


# Default directory where compressed snapshots are stored.
# WORKDIR=/var/db/portsnap

# Default location of the ports tree
# (target for update and extract).
# PORTSDIR=/usr/ports

# Server or server pool from which to fetch updates.  You can change
# this to point at a specific server if you want, but in most cases
# using a nearby server won't provide a measurable improvement in
# performance.
SERVERNAME=portsnap.FreeBSD.org

# Trusted keyprint.  Changing this is a Bad Idea unless you've received
# a PGP-signed email from security-offi...@freebsd.org telling you to
# change it and explaining why.
KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330

# List of INDEX files to build and the DESCRIBE file to use for each
#INDEX INDEX-6 DESCRIBE.6
#INDEX INDEX-7 DESCRIBE.7
INDEX INDEX-8 DESCRIBE.8

# Example of ignoring parts of the ports tree.  If you know that you
# absolutely will not need certain parts of the tree, this will save
# some bandwidth and disk space.  See the manual page for more details.
#
# WARNING: Working with an incomplete ports tree is not supported and
# can cause problems due to missing dependencies.  If you have REFUSE
# directives and experience problems, remove them and update your tree
# before asking for help on the mailing lists.
#
  REFUSE arabic chinese french german hebrew hungarian japanese
  REFUSE korean polish portuguese russian ukrainian vietnamese
#
# The following is complete list of all the port categories .
#
# REFUSE accessibility archivers astro audio benchmarks biology cad
# REFUSE comms converters databases deskutils devel dns editors emulators
# REFUSE finance ftp games graphics irc java lang mail math mbone misc
# REFUSE multimedia net net-im net-mgmt net-p2p news palm ports-mgmt  
print

# REFUSE science security shells textproc www
# REFUSE x11 x11-clocks x11-drivers x11-fm x11-fonts x11-servers
# REFUSE x11-themes x11-toolkits x11-wm
# REFUSE sysutils
#
  REFUSE accessibility archivers astro audio benchmarks biology cad
  REFUSE comms converters databases deskutils devel dns editors emulators
  REFUSE finance ftp games graphics irc java lang mail math mbone misc
  REFUSE multimedia net net-im net-mgmt net-p2p news palm ports-mgmt  
print

  REFUSE science security shells textproc www
  REFUSE x11 x11-clocks x11-drivers x11-fm x11-fonts x11-servers
  REFUSE x11-themes x11-toolkits x11-wm
# REFUSE sysutils

This should only populate /usr/ports/sysutils

But its not being used because everything is being populated in  
/usr/ports.


I do portsnap fetch followed by portsnap extract

What am I doing wrong here?

I even tried portsnap extract -f /etc/portsnap.conf with no joy.



Just guessing:

Try without the spaces at the beginning of the REFUSE lines?



Michael
___
freebsd-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: Performance Related Question

2013-02-27 Thread Michael Ross
On Wed, 27 Feb 2013 23:05:44 +0100, Frederico Costa fredpo...@mufley.com  
wrote:



Hi everyone...

I have a kind of interesting question when comes to performance of
FreeBSD in different HW. i am not trying to come up with a scientific
reason for measuring performance. :-)

It is just a curiosity, and of course to see if i understand it and
improve performance of my systems.

i am running 2 systems at the moment, lets call them S1 and S2,
running FreeBSD 9.1-RELEASE-p1 amd64:

S1:
Intel Core2 Duo E6550 @ 2.33GHz
2GB RAM
500GB disk (not important probably just for reference)

S2:
2x Dual-Core AMD Opteron 2216 2.4GHz
14GB Ram
320GB disk (not important probably just for reference)

Both the systems are running more or less the same sw, apache, imap
server, postfix, and the needed perl/php/python and running very light
  load. Also both are using a GENERIC kernel and not running X, they are
just text based :-)

 From cpubenchmark.net the cpu performance index are for s1: 1501 and
s2: 1518, so very similar.

As i felt the AMD system seemed slower when comes to compiling, i just
done a performance test which was make buildworld on both of
systems from scratch and the times are:

S1: 2h 12m
S2: 2h 59m



If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.

Buildworld does a lot of I/O, so disk speed is relevant.


Regards,

Michael
___
freebsd-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: Performance Related Question

2013-02-27 Thread Michael Ross
On Wed, 27 Feb 2013 23:38:34 +0100, Frederico Costa fredpo...@mufley.com  
wrote:



On 2013-02-27 22:27, Michael Ross wrote:

If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.
 Buildworld does a lot of I/O, so disk speed is relevant.


Yes, i just made make buildworld.

So i should use make -j2 on the S1(dual core) and -j4 on S2 (2xdualcore)?

And it also makes sense what you say about the I/O.

i will start another to see the results.



Maybe try higher settings.
Handbook ( http://www.freebsd.org/doc/handbook/makeworld.html ) says:


	However, since much of the compiling process is I/O bound rather than CPU  
bound, it is also useful on single CPU machines.


On a typical single-CPU machine, run:
# make -j4 buildworld

	make(1) will then have up to 4 processes running at any one time.  
Empirical evidence posted to the mailing lists shows this generally gives  
the best performance benefit.


	On a multi-CPU machine using an SMP configured kernel, try values between  
6 and 10 and see how they speed things up.






Thanks

fred


On Wed, 27 Feb 2013 23:05:44 +0100, Frederico Costa
fredpo...@mufley.com  wrote:


Hi everyone...
 I have a kind of interesting question when comes to performance of
FreeBSD in different HW. i am not trying to come up with a scientific
reason for measuring performance. :-)
 It is just a curiosity, and of course to see if i understand it and
improve performance of my systems.
 i am running 2 systems at the moment, lets call them S1 and S2,
running FreeBSD 9.1-RELEASE-p1 amd64:
 S1:
Intel Core2 Duo E6550 @ 2.33GHz
2GB RAM
500GB disk (not important probably just for reference)
 S2:
2x Dual-Core AMD Opteron 2216 2.4GHz
14GB Ram
320GB disk (not important probably just for reference)
 Both the systems are running more or less the same sw, apache, imap
server, postfix, and the needed perl/php/python and running very light
  load. Also both are using a GENERIC kernel and not running X, they  
are

just text based :-)
  From cpubenchmark.net the cpu performance index are for s1: 1501 and
s2: 1518, so very similar.
 As i felt the AMD system seemed slower when comes to compiling, i just
done a performance test which was make buildworld on both of
systems from scratch and the times are:
 S1: 2h 12m
S2: 2h 59m


 If I read you right, you didn't ``make -jX buildworld'',
with X being the number of processes to spawn,
so you used just one core on either machine.
 Buildworld does a lot of I/O, so disk speed is relevant.
  Regards,
 Michael

___
freebsd-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 9 and Windows XP

2013-03-09 Thread Michael Ross

On Sat, 09 Mar 2013 21:27:45 +0100, Polytropon free...@edvax.de wrote:

On Sat,  9 Mar 2013 12:07:41 -0800 (PST),  
leeoliveshackelf...@surewest.net wrote:

Good afternoon, FreeBSD enthusiasts.  Can FreeBSD 9.1 be
installed on a computer on which Windows XP currently
resides?


Yes.




If so, how can this installation be done?


First of all, you need a tool to make disk space available;
you can do this by adding an additional hard disk, or by
resizing the Windows partition. As Windows does not
seem to provide native tools to do this


I may misremember, but Win7 does have a functional shrink drive in the  
drive administration console,

and I do think that was there in XP already.


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


Re: No sound with Thinkpad X60

2013-03-15 Thread Michael Ross
On Thu, 14 Mar 2013 23:59:09 +0100, Peter Harrison  
four.harris...@googlemail.com wrote:



Hi list,

I've a problem with sound on a Thinkpad X60, which has an Intel HDA chip.

This is what I see in dmesg:

hdac0: Intel 82801G HDA Controller mem 0xee24-0xee243fff irq 17 at  
device 27.0 on pci0

hdacc0: Analog Devices AD1981HD HDA CODEC at cad 0 on hdac0
hdaa0: Analog Devices AD1981HD Audio Function Group at nid 1 on hdacc0
pcm0: Analog Devices AD1981HD (Analog) at nid 5 and 25,8 on hdaa0
hdacc1: Conexant (0x2bfa) HDA CODEC at cad 1 on hdac0
unknown: Conexant (0x2bfa) HDA CODEC Modem Function Group at nid 2 on  
hdacc1 (no driver attached)


and from sndstat:

FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: Analog Devices AD1981HD (Analog) (play/rec) default

and from mixer:

Mixer vol  is currently set to 100:100
Mixer pcm  is currently set to 100:100
Mixer speaker  is currently set to 100:100
Mixer cd   is currently set to   1:1
Mixer rec  is currently set to   1:1
Mixer igainis currently set to  42:42
Mixer ogainis currently set to 100:100
Mixer monitor  is currently set to  67:67
Recording source: cd

But I have no sound. This is using Gnome 2.32 on 9.1-R. I did initially  
accidentally install Pulseaudio, but have subsequently deleted it and  
reinstalled everything that depended on it without the Pulseaudio  
dependency.


Any thoughts on what I'm doing wrong?

Thanks in advance.


Possibly not helping a lot:

I have a T510 thinkpad with Intel HDA audio, running Windows 7.
I need to have the audio driver *and* the modem driver installed for any  
sound to work.

So possibly the modem part has to be initialised or something.
You have no driver attached on your modem, so maybe that's worth looking  
at.


You could also try if sound works from a terminal without running Gnome at  
all,

just to be sure it's not some Gnome configuration thing.

Regards,

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


Re: No sound with Thinkpad X60

2013-03-15 Thread Michael Ross
On Sat, 16 Mar 2013 00:28:27 +0100, Peter Harrison  
four.harris...@googlemail.com wrote:



Friday, 15 March 2013 at 18:48:24 +0100, Michael Ross said:

On Thu, 14 Mar 2013 23:59:09 +0100, Peter Harrison
four.harris...@googlemail.com wrote:

 Hi list,

 I've a problem with sound on a Thinkpad X60, which has an Intel HDA  
chip.


 This is what I see in dmesg:

 hdac0: Intel 82801G HDA Controller mem 0xee24-0xee243fff irq 17  
at

 device 27.0 on pci0
 hdacc0: Analog Devices AD1981HD HDA CODEC at cad 0 on hdac0
 hdaa0: Analog Devices AD1981HD Audio Function Group at nid 1 on  
hdacc0

 pcm0: Analog Devices AD1981HD (Analog) at nid 5 and 25,8 on hdaa0
 hdacc1: Conexant (0x2bfa) HDA CODEC at cad 1 on hdac0
 unknown: Conexant (0x2bfa) HDA CODEC Modem Function Group at nid 2  
on

 hdacc1 (no driver attached)

 and from sndstat:

 FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
 Installed devices:
 pcm0: Analog Devices AD1981HD (Analog) (play/rec) default

 and from mixer:

 Mixer vol  is currently set to 100:100
 Mixer pcm  is currently set to 100:100
 Mixer speaker  is currently set to 100:100
 Mixer cd   is currently set to   1:1
 Mixer rec  is currently set to   1:1
 Mixer igainis currently set to  42:42
 Mixer ogainis currently set to 100:100
 Mixer monitor  is currently set to  67:67
 Recording source: cd

 But I have no sound. This is using Gnome 2.32 on 9.1-R. I did  
initially

 accidentally install Pulseaudio, but have subsequently deleted it and
 reinstalled everything that depended on it without the Pulseaudio
 dependency.

 Any thoughts on what I'm doing wrong?

 Thanks in advance.

Possibly not helping a lot:

I have a T510 thinkpad with Intel HDA audio, running Windows 7.
I need to have the audio driver *and* the modem driver installed for any
sound to work.
So possibly the modem part has to be initialised or something.
You have no driver attached on your modem, so maybe that's worth  
looking

at.

You could also try if sound works from a terminal without running Gnome  
at

all,
just to be sure it's not some Gnome configuration thing.

Regards,

Michael


Thanks Michael.

Tried turning gnome off. Still no sound from the console. Is there a  
FreeBSD kernel module for the modem?




Don't know.
But stepping back, do you have snd_hda loaded?
( Silly me, should have been the first question. )

Found this:
http://www.bmichelsen.no/blog/2012/01/28/configuring-freebsd-for-x60s/

Regards,

Michael
___
freebsd-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: Client Authentication

2013-03-26 Thread Michael Ross
On Tue, 26 Mar 2013 22:56:37 +0100, Daniel O'Callaghan  
da...@clari.net.au wrote:



On 27/03/2013 4:18 AM, Joseph Olatt wrote:

Any ideas/suggestions on this will be appreciated.  Thanks,

-- Doug

A little while back I wrote a system to do a simple Two Factor
Authentication and dynamic manipulation of PF (Packet Filter) Tables. I
created it to prevent brute-force attacks on the servers that I have
exposed on the Internet.
I'm happy to share a program I wrote which slows down the brute force  
attackers.
It simply counts the SYN packets from a given IP and limits the rate per  
minute by dropping the packet if they are coming too fast.


Uses ipfw divert sockets, so would work if you prefer ipfw over pf.


Me Me Me! ...ahem.
I do prefer IPFW over PF and would very much like to try it out,
so please do share.

Regards,

Michael
___
freebsd-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: Client Authentication

2013-03-26 Thread Michael Ross
On Wed, 27 Mar 2013 01:37:36 +0100, Daniel O'Callaghan  
da...@clari.net.au wrote:



On 27/03/2013 10:37 AM, Michael Ross wrote:
I'm happy to share a program I wrote which slows down the brute force  
attackers.
It simply counts the SYN packets from a given IP and limits the rate  
per minute by dropping the packet if they are coming too fast.


Uses ipfw divert sockets, so would work if you prefer ipfw over pf.


Me Me Me! ...ahem.
I do prefer IPFW over PF and would very much like to try it out,
so please do share.

OK, here 'tis

https://secure.clari.net.au/ratelimit2.tgz

Danny


Thanks!

I'd like to be able to change the time window:

http://gurder.ross.cx/misc/ratelimit.patch



Regards,

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


Re: use of the kernel and licensing

2013-03-31 Thread Michael Ross

On Sun, 31 Mar 2013 16:31:43 +0200, Polytropon free...@edvax.de wrote:


On Sun, 31 Mar 2013 09:39:29 -0400, Joe wrote:

Does one have to file legal paper work with the government to be issued
a copyright on software?


With _which_ government? :-)

Basic understanding of copyright is: The stuff _you_ write
happens automatically under _your_ copyright, because you
are the creator. There is nothing you need to do to achieve
the copyright - it's yours by acting. At the moment you
write something like (C) Joe Sixpack 2012 it's set in
stone.

There might be other ways to prove (!) copyright, e. g. when
one of your files appears in someone else's work, but now
with the originator line saying (C) Nick Nosewhite 2013.
In case of a court trial which involves copyright, you can
prove from your CVS log of creation (or whatever source
management system or even file system you use) that _you_
have been writing that code, nobody else.




Does any software not having a copyright statement or any license
comments included in the source mean that it's public domain?


I would assume this. Imagine a snippet of code with no author
mentioned in it (or in the source it comes from, or any file
it is accompanied by), how would you be able to conclude
something _else_ than this is public domain with _no_
copyright holder?


I think you are wrong here.

quoting http://en.wikipedia.org/wiki/Public_domain_software:
Under the Berne Convention, which most countries have signed, an author  
automatically obtains the exclusive copyright to anything they have  
written, and local law may similarly grant copyright, patent, or trademark  
rights by default. The Berne Convention also covers programs. Therefore, a  
program is automatically subject to a copyright, and if it is to be placed  
in the public domain, the author must explicitly disclaim the copyright  
and other rights on it in some way.


Note the wording explicitly disclaim.

While German law has something like a triviality threshold which may  
well apply to very small code snippets,

i'd say no included license by default means all rights reserved.


Regards,

Michael
___
freebsd-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: List Spam Filtering

2013-05-11 Thread Michael Ross
On Thu, 09 May 2013 02:26:26 +0200, Julian H. Stacey j...@berklix.com  
wrote:



Hi questions@ ( spammer not cc'd )

Reference:

From:   Aaron Seligman aselig...@altitudedigitalpartners.com
Reply-to:   aselig...@altitudedigitalpartners.com
Date:   Wed, 08 May 2013 18:59:07 + (UTC)
Subject:Re: Display  Video Campaigns-Inventory Needed
Message-id: 1368039547.0568389241738...@mf7.sendgrid.net



Happy hump-day,

We have an opportunity with an RTB partner to monetize

INT Geo's; UK, CAN, AUS

Video: (Pre-roll, mid-roll and post-roll)



If list write access was changed to Subscribers Only:
  - List could silently discard such spam.
  - Postmaster@  ( webmaster@ weeding web archives) would have less  
work.
  - Less individual need to select spam phrases to copy to personal  
filters
( less time searching WTF dialect American above meant in English  
;-).


Newbies would be told subscribe before posting in all of:
/etc/motd
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
Automatic list bounce response.
Only clueless, lazy,  spammers might be lost. A net gain.

Cheers,
Julian



I'm curious how much spam you get through this list.

Just counted, and I have about 2 Spams per week for the last month,
that's more than usual.


Regards,

Michael
___
freebsd-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 hangs server completely

2013-05-22 Thread Michael Ross
On Wed, 22 May 2013 15:52:45 +0200, Alejandro Imass aim...@yabarana.com  
wrote:



Hi,

We've been having this problem with a customer for a while and it
seems that some funky query makes MySQL use 100% of CPU. Nevertheless,
even though you can see in top that it's only 1 CPU in 100% (out of 8)
the server eventually becomes useless and stops responding completely.

So my question is, how does a user process hang the whole server? What
system resources could MySQL be draining to make the server stop
responding completely?



In laymans terms - can't do better - MySQL racing itself to obtain a (  
table | memory | file ) lock?


I know I can death-stall the MySQL server at a customer's site if I give  
it a big enough query ( like, DROPping a table, recreating it and pushing  
backup data inside ) while cron's hourly backup-dump is running on the  
database. Just the MySQL server, the machine itself hasn't stalled yet -  
but I'm sitting at the console while doing this, so I don't know what  
would eventually happen if I'd let it sit for a while.



Regards,

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


Re: Any BASIC Gurus around?

2013-06-17 Thread Michael Ross


I'm no BASIC Guru,
but this one line caught my eye while scrolling through your mail:


2010 IF ABS(H1. THEN GOTO 2040


Missing parenthesis?


Regards,

Michael
___
freebsd-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: NATD: net.inet.ip.fw.default_to_accept=1 vs firewall_type=OPEN

2013-10-10 Thread Michael Ross
On Fri, 11 Oct 2013 04:38:45 +0200, Chris Stankevitz  
chrisstankev...@gmail.com wrote:



Hello,

Handbook section 31.9 describes the setup of NAT.

Section 31.9.3 suggests net.inet.ip.fw.default_to_accept=1 during
the first attempts to setup a firewall and NAT gateway.

Section 31.9.5 suggests I specify a predefined firewall ruleset that
allows anything in with firewall_type=OPEN

Question: What is the difference between these two configurations (or
where can I go to learn the difference between the two)?

Thank you,

Chris


Hello,

ipfw always has one default rule, standard is

65535 deny ip from any to any

If you set net.inet.ip.fw.default_to_accept=1, you get

65535 allow ip from any to any

instead.


Specifing firewall_type=OPEN gives you an additional rule

65000 allow ip from any to any


Now, if for example you execute ``ipfw flush'', thus deleting all rules,
this deletes rule 65000, but the default rule stays in effect.
With ...default_to_accept=0 ( standard setting ) you now have disabled  
all network connections and locked yourself out if you're working remote.



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