The FreeBSD Diary: 2006-03-12 - 2006-04-01

2006-04-02 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives  
and/or The FreeBSD Diary . 


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: Error compiling kdebase-3.5.2

2006-04-02 Thread Parv
Wrote ganael.laplanche ...

> I'm running FreeBSD 6.1-PRERELEASE #0 on an AMD64 machine. I'm
> trying to update kde to 3.5.2 and getting this error:
...
> konq_run.cc: In member function `virtual void KonqRun::foundMimeType(const 
> QString&)':
> konq_run.cc:84: error: `serverSuggestsSave' undeclared (first use this 
> function)
> konq_run.cc:84: error: (Each undeclared identifier is reported only once for
> each function it appears in.)
> gmake[3]: *** [konq_run.lo] Error 1
>
> Does someone get the same error ? Any idea ?

Yes, same here.

Following gives the impression that serverSuggestsSave() function is
totally missing from the source of kdebase3 ...

  cd $PORTSDIR/x11/kdebase3
  make -V WRKSRC \
  | xargs -I % find % -type f \
  | xargs fgrep serverSuggestsSave
  $WRKSRC/konqueror/konq_run.cc:  if ( serverSuggestsSave() )
  $WRKSRC/konqueror/konq_run.cc:if (!m_bFinished && !tryEmbed) // Open 
selected for a serverSuggestsSave() file
  $WRKSRC/konqueror/konq_mainwindow.cc:  attachment = 
(run->serverSuggestsSave()) ? KParts::BrowserRun::AttachmentDisposition : 
KParts::BrowserRun::InlineDisposition;


... unless that function is supposed to be defined (& available)
outside of kdebase source.


  - Parv

-- 

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


Re: Error compiling kdebase-3.5.2

2006-04-02 Thread Parv
in message <[EMAIL PROTECTED]>,
wrote Parv thusly...
>
> Wrote ganael.laplanche ...
> 
> > trying to update kde to 3.5.2 and getting this error:
> ...
> > konq_run.cc: In member function `virtual void KonqRun::foundMimeType(const 
> > QString&)':
> > konq_run.cc:84: error: `serverSuggestsSave' undeclared (first use this 
> > function)
> > konq_run.cc:84: error: (Each undeclared identifier is reported only once for
> > each function it appears in.)
> > gmake[3]: *** [konq_run.lo] Error 1
...
> Following gives the impression that serverSuggestsSave() function is
> totally missing from the source of kdebase3 ...
> 
>   cd $PORTSDIR/x11/kdebase3
>   make -V WRKSRC \
>   | xargs -I % find % -type f \
>   | xargs fgrep serverSuggestsSave
>   $WRKSRC/konqueror/konq_run.cc:  if ( serverSuggestsSave() )
>   $WRKSRC/konqueror/konq_run.cc:if (!m_bFinished && !tryEmbed) // Open 
> selected for a serverSuggestsSave() file
>   $WRKSRC/konqueror/konq_mainwindow.cc:  attachment = 
> (run->serverSuggestsSave()) ? KParts::BrowserRun::AttachmentDisposition : 
> KParts::BrowserRun::InlineDisposition;
> 
> 
> ... unless that function is supposed to be defined (& available)
> outside of kdebase source.

See also ...

  http://lists.kde.org/?l=kfm-devel&m=114228919121752&w=2


... near the bottom for a possible definition of
serverSuggestsSave().  It is unclear which version of
serverSuggestsSave() would it be and in which file.


  - Parv
  - Anubhav

-- 

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


Re: Postfix inside a jail

2006-04-02 Thread Vaaf

At 22:51 27.03.2006, albi wrote:

On Mon, 27 Mar 2006 22:30:44 +0200
Vaaf <[EMAIL PROTECTED]> wrote:

> >i use several postfix-instances in jails and host, but with this
> >option in /usr/local/etc/postfix/main.cf :
> >
> >inet_interfaces = 192.168.111.111
> ># where 192.168.111.111 is the ip-address of the jail
> >
-- cut --
> Didn't seem to make any difference.

did you apply this for host + all jails ? restarted all the postfix-es
and checked with ps whether they're all running ?

> I still keep mynetworks right?

see here more info about the inet_interfaces option :
http://www.postfix.org/postconf.5.html#inet_interfaces

afaik it doesn't influence the mynetworks settings at all


--
grtjs, albi
gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import


Hello.

I think I'll start a new thread, this is no longer a jail issue.

Thanks man!

Vaaf 


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


Postfix: unable to deliver this message after 4 days

2006-04-02 Thread Vaaf


Hello!

I would appreciate help from kind people.

In return I can design beautiful things for you :)

Anyway ...

Trying to make an addition to my existing setup on myrealdomain.com,
specifically for virtual domains, in this case lalaladomain.com.

Existing setup works. Virtual setup doesn't.

The virtual domain's MX record has been pointed to myrealdomain.com's IP.

FreeBSD 6.0-STABLE + postfix-2.1.6,1 + mysql-5.0.16

I can telnet localhost 25, no problems there.

When I try to send e-mails to [EMAIL PROTECTED], I get:

Reason: unable to deliver this message after 4 days

TCP active open: Failed connect()
Error: Connection timed out

Even though syslog is set to do maillogs, they're all empty!

Apr  2 00:00:01 lala newsyslog[43111]: logfile turned over

# ls -l /var/log/maillog*
#
-rw-r-  1 root  wheel   60 Apr  2 00:00 maillog
-rw-r-  1 root  wheel  120 Apr  2 00:00 maillog.0
-rw-r-  1 root  wheel  120 Apr  2 00:00 maillog.1
-rw-r-  1 root  wheel  120 Apr  1 00:00 maillog.2
-rw-r-  1 root  wheel  119 Apr  1 00:00 maillog.3
-rw-r-  1 root  wheel  118 Mar 31 00:00 maillog.4
-rw-r-  1 root  wheel  119 Mar 31 00:00 maillog.5
-rw-r-  1 root  wheel  120 Mar 30 00:00 maillog.6
-rw-r-  1 root  wheel  120 Mar 30 00:00 maillog.7

# /etc/pf.conf
#
pass in on $ext_if inet proto tcp from any to ($ext_if) port { 21, 
22, 25, 80, 110, 113, 143 } flags S/SA keep state


# /usr/local/etc/postfix/main.cf
#
mail_owner = postfix
home_mailbox = .maildir/

queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
mailbox_command = /usr/local/bin/procmail

mydomain = myrealdomain.com
myhostname = fosho.myrealdomain.com
mynetworks = 213.21.123.0/24, 127.0.0.0/8

myorigin = $mydomain
mydestination = $mydomain, localhost.$mydomain, $myhostname

debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no
html_directory = no

virtual_transport = virtual
virtual_uid_maps = static:125
virtual_gid_maps = static:125
virtual_mailbox_base = /var/spool/virtual
virtual_mailbox_domains = mysql:/usr/local/etc/postfix/v_domain.cf
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/v_mailbox.cf
virtual_alias_maps = mysql:/usr/local/etc/postfix/v_alias.cf

broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd

smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /usr/local/etc/postfix/ssl/smtpd.pem
smtpd_tls_cert_file = /usr/local/etc/postfix/ssl/smtpd.pem
smtpd_tls_CAfile = /usr/local/etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

unknown_local_recipient_reject_code = 450

# /usr/local/etc/postfix/v_alias.cf
#
user = postfix
password = lalalas_password
dbname = mail
table = alias
select_field = goto
where_field = address

# /etc/rc.conf
#
sendmail_enable="YES"
sendmail_flags="-bd"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
sendmail_msp_queue_enable="NO"

# MySQL
#
CREATE DATABASE IF NOT EXISTS mail;
GRANT ALL ON mail.* TO [EMAIL PROTECTED] IDENTIFIED BY 'lalalas_password';

USE mail;
CREATE TABLE IF NOT EXISTS alias (
  address varchar(255) NOT NULL default '',
  goto text NOT NULL,
  domain varchar(255) NOT NULL default '',
  created datetime NOT NULL default '-00-00 00:00:00',
  modified datetime NOT NULL default '-00-00 00:00:00',
  active tinyint(1) NOT NULL default '1',
  PRIMARY KEY (address),
  KEY address (address)
) TYPE=MyISAM COMMENT='Aliases';

USE mail;
CREATE TABLE IF NOT EXISTS domain (
  domain varchar(255) NOT NULL default '',
  description varchar(255) NOT NULL default '',
  aliases int(10) NOT NULL default '0',
  mailboxes int(10) NOT NULL default '0',
  maxquota int(10) NOT NULL default '0',
  transport varchar(255) default NULL,
  backupmx tinyint(1) NOT NULL default '0',
  created datetime NOT NULL default '-00-00 00:00:00',
  modified datetime NOT NULL default '-00-00 00:00:00',
  active tinyint(1) NOT NULL default '1',
  PRIMARY KEY (domain),
  KEY domain (domain)
) TYPE=MyISAM COMMENT='Domains';

USE mail;
CREATE TABLE IF NOT EXISTS mailbox (
  username varchar(255) NOT NULL default '',
  password varchar(255) NOT NULL default '',
  name varchar(255) NOT NULL default '',
  maildir varchar(255) NOT NULL default '',
  quota int(10) NOT NULL default '0',
  domain varchar(255) NOT NULL default '',
  created datetime NOT NULL default '-00-00 00:00:00',
  modified datetime NOT NULL default '-00-00

[Ann] APRIL Printing Specials........

2006-04-02 Thread RG Media



DONT MISS OUR APRIL SPECIALS
WOW...
5000 FULL COLOR 2 SIDED UV BUSINESS CARDS$100
5000 FULL COLOR 2 SIDED UV 4X6 POSTCARDS..$200
5000 FULL COLOR 2 SIDED UV JUMBO POSTCARDS (5.5 X 8.5)$375
1 FULL COLOR 2 SIDED UV 5X7 POSTCARDS..$625
may use 2 different designs on this package (5x7)
GRAPHIC LAYOUTS FOR ANY OF THESE OFFERS ONLY...$100


GOOD THROUGH APRIL 30 2006
24 HOUR TURNAROUND
NATIONWIDE
VISIT US ON THE WEB FOR DETAILS
http://www.rgmedia.net
or call
305.774.1278
WE WILL NOT BE UNDERSOLD
RG Media, Inc., 3661 SW 10 St., Miami, FL 33135
to opt out of this newsletter simply click on the following link and
type in
remove followed by your email address
mailto:[EMAIL PROTECTED]


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


Re: ipnat syntax error?

2006-04-02 Thread Erik Nørgaard

Juergen Heberling wrote:

/etc/ipnat.rules contains:
map  em0 192.168.1.0/24 -> 204.134.75.1-10
.. snip ..


I tried your suggestion of using the cidr notation format and that work; 
thank you!


However I am concerned about overlapping mappings in the cidr range with 
host-to-host maps - my cidr range is a /28, for example,
and I want to map (spoof) some IP address in the middle to, say the web 
or mail servers.  In order to avoid the overlap I was counting on the 
"range" specification on the map command.


Well, my suggestion is not to exhaust your precious /28 address space 
right away. And don't make your life unnecessary difficult, why choose 
the addreses in the middle for bimap?



Rather than using all your external ip's right away I would save some 
for later expansion, and reserve one for debugging. You may need to 
connect a laptop on the external net to figure out what's going on. You 
could do this: x.x.x.0/29 to servers (bimap), x.x.x.8/30 debug and 
future expansion (not mapped), x.x.x.12/30 map for lan clients.


If you stick to cidr you can also write your filter rules in cidr making 
it far easier to read an maintain.


For the mapping, and bimapping consider this:

The /24 network you want to map, it contains at most 254 hosts. If you 
map that network to a single ip, then each host can establish at least 
256 simultaneous connections. My experience is that this is far mor than 
needed in most normal operating environments. I'd suggest using the same 
ip as on the firewall external interface.


If the purpose of binatting is to make one service available, http say, 
then you may consider using rdr. IIRC you can also use rdr to round 
robin load balancing incoming connections.


That way you can have one host serving http and another serving smtp on 
the same external ip. The only reason to use different ip's is if you're 
hosting a number of https servers, each need a different ip.


There's no point in bimapping all ports on a external ip to one single 
internal ip if most of them are blocked by the filter.


Cheers, Erik
--
Ph: +34.666334818  web: www.locolomo.org
S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt
Subject ID:  9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72
Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: vsftpd pam problem

2006-04-02 Thread Bernd Trippel

Quoting Terry <[EMAIL PROTECTED]>:


Hi going by the docs for virtual users i have got to this file vsftpd.pam

auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
account required /lib/security/pam_userdb.so db=/etc/vsftpd_login

From google i gather pam_userdb.so isn't part of OpenPAM which is 
what FreeBSD uses. So how do Freebsd users get round it or am i 
missing some thing really silly.



In my understanding this is correct. There's no pam_userdb.so available for
FreeBSD.
You could use pam_pwdfile.so, which is in the ports-collection. Users are
added/changed e.g. through htpasswd. Works well if you have not a lot of
accounts.

a simple vsftpd.pam could look like this:
auth   required/usr/local/lib/pam_pwdfile.so pwdfile /etc/vsftpd_login
account  required/usr/lib/pam_permit.so



Thanks





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


Re: How to upgrade samba version to 3.0.22

2006-04-02 Thread Jeffrey
Thanks Gerard, I have installed portmanager, but when I try to run 
portmanager, system told me "command not found". Any other thing should I do 
after install?


Jeffrey
- Original Message - 
From: "Gerard Seibert" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, April 01, 2006 10:44 PM
Subject: Re: How to upgrade samba version to 3.0.22



Jeffrey wrote:


Hi,

I am using FreeBSD 6 and install samba from ports collection
/usr/ports/net/samba3. The "make install" download and install samba
3.0.14a. I noticed samba has new version 3.0.22. How can I instal the
new verion?

Thanks,

Jeffrey


There are many different ways to accomplish that feat. To update Samba
plus all of its prerequisites, etc., first update your ports
collection. If you need help with that task, just ask.

Next, install portmanager '/usr/ports/sysutils/portmanager' and then run
it as follows (as root obviously):

portmanager net/samba3 -l -f

That should take care of your problems as well as creating a log file
in '/var/log' that you can inspect later if you so desire. You could
omit the 'f' switch if you desire. It forces all of the dependencies to
be rebuilt if required.

You might also want to consider just using this syntax:

portmanager -u -l -y -f

It will update all installed ports on your system in the correct order
and with the proper dependencies.

HTH

--
Gerard Seibert
[EMAIL PROTECTED]

PGP: http://www.seibercom.net/sig/gerard.asc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"




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


RE: ipf and amule

2006-04-02 Thread fbsd_user
You need to add keep state to the inbound rules for amule ports.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of jorge
alonso
Sent: Saturday, April 01, 2006 11:40 PM
To: [EMAIL PROTECTED]
Subject: ipf and amule


i'm running amule in the box running the ipf. I can't get highid
when
connecting to servers (i cant even connect to servers due to the
lowid
thingy i suppose). If i remove the line:
"block in on vr0 all" amule connects without any problems. What i'am
doing
wrong ?
i have the folowwing rules:

pass in quick on lo0 all
pass out quick on lo0 all

# ISP domain name server
pass out quick on vr0 proto tcp from any to any port = 53 flags S
keep state
pass out quick on vr0 proto udp from any to any port = 53 keep state

pass out quick on vr0 proto icmp from any to any icmp-type 8 keep
state
pass out quick on vr0 proto tcp from any to any port = 80 flags S
keep state
pass out quick on vr0 proto tcp from any to any port = 443 flags S
keep
state

# amule
pass in quick on vr0 proto tcp from any to any port = 4662
pass in quick on vr0 proto udp from any to any port = 4665
pass in quick on vr0 proto udp from any to any port = 4672

block in on vr0 all
#block out on vr0 all

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

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


disable listen on ports

2006-04-02 Thread Niklaus
Hi,
 How do i disable users on a system to run their own http proxy. I
don't want to allow users who have login accounts on my system to
listen to any port . How do i do that.

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


Re: disable listen on ports

2006-04-02 Thread Bill Moran
Niklaus <[EMAIL PROTECTED]> wrote:

> Hi,
>  How do i disable users on a system to run their own http proxy. I
> don't want to allow users who have login accounts on my system to
> listen to any port . How do i do that.

Put up a packet filter.  With IPFW you could do:

ipfw add reject tcp from any to me setup

They could then start all the listening daemons they wanted, but the
kernel would prevent any of them from ever getting a connection.  For
UDP, something like this should work:

ipfw add pass udp from me to any keep-state
ipfw add reject udp from any to me

... which would allow connections to be initiated from the machine, but
not to the machine.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to upgrade samba version to 3.0.22

2006-04-02 Thread Gerard Seibert
Jeffrey wrote:

> Thanks Gerard, I have installed portmanager, but when I try to run
> portmanager, system told me "command not found". Any other thing
> should I do after install?
>
> Jeffrey

Are you absolutely sure you installed it correctly and are typing the 
command correctly? Perhaps you might have to do 'rehash' or some such 
command before it is recognized. I use 'bash' myself, so I am not 
really sure. Did you by chance try a reboot of the system and then try 
running portmanager?

Try typing

portmanager --help

and see what transpires. If that also fails, venture over to /var/db/pkg 
and see if there is a listing for: portmanager-0.4.1_5 . If there is, 
do:

pkg_delete -dvf portmanager-0.4.1_5

Now do a new installation of 'portmanager'. If that also fails, then you 
will need the assistance of someone with a better knowledge of FreeBSD 
then I.

-- 
Gerard Seibert
[EMAIL PROTECTED]

PGP: http://www.seibercom.net/sig/gerard.asc


pgpg0qZwDKREL.pgp
Description: PGP signature


RE: disable listen on ports

2006-04-02 Thread fbsd_user
You need to activate one of the 3 different built in FreeBSD
firewalls.
It well explained in the firewall section of the FreeBSD handbook.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Niklaus
Sent: Sunday, April 02, 2006 10:47 AM
To: [EMAIL PROTECTED]
Subject: disable listen on ports


Hi,
 How do i disable users on a system to run their own http proxy. I
don't want to allow users who have login accounts on my system to
listen to any port . How do i do that.

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

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


Re: vsftpd pam problem

2006-04-02 Thread Terry

>Hi going by the docs for virtual users i have got to this file vsftpd.pam
>>
>> auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
>> account required /lib/security/pam_userdb.so db=/etc/vsftpd_login
>>
>> From google i gather pam_userdb.so isn't part of OpenPAM which is
>> what FreeBSD uses. So how do Freebsd users get round it or am i
>> missing some thing really silly.
>>

In my understanding this is correct. There's no pam_userdb.so available for
FreeBSD.
You could use pam_pwdfile.so, which is in the ports-collection. Users are
added/changed e.g. through htpasswd. Works well if you have not a lot of
accounts.

a simple vsftpd.pam could look like this:
auth   required/usr/local/lib/pam_pwdfile.so pwdfile 
/etc/vsftpd_login

account  required/usr/lib/pam_permit.so


Just to let you know that worked a treat

Thanks

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


RE: Hard Disk problems

2006-04-02 Thread Gayn Winters
> [mailto:[EMAIL PROTECTED] On Behalf Of Shane Ambler
> Sent: Saturday, April 01, 2006 3:10 AM
> To: FreeBSD Mailing Lists
> Subject: Hard Disk problems
> 
> 
> A few days ago I started getting some disk errors and can't 
> seem to find a
> reference to find a way to fix them (other than the obvious re-format)
> 
> 
> The daily security run output contains the following (abbreviated)
> 
> Checking setuid files and devices:
> find: /usr/ports/databases/db43/work/db-4.3.28/db: Input/output error
> find: /usr/ports/devel/git/Makefile: Input/output error
> 
> ~ repeated 32 times for different files (thankfully all in 
> the ports tree)
> 
> tower.home.com kernel log messages:
> > ad0: FAILURE - READ_DMA status=51
> error=40 LBA=139102367
> > ad0: FAILURE - READ_DMA status=51
> error=1 LBA=139102367
> 
> These 2 error codes are repeated a total of 38 times all with 
> the same LBA
> 
> If I start in single user mode and do fsck it takes about 
> half an hour to
> get through and repeats similar errors many times for just 
> about every check
> it does.
> 
> Running #fsck -y >> fsckout (while in multiuser mode) is as follows -
> followed by dmesg output since boot
> 
> > cat fsckout 
> ** /dev/ad0s1a (NO WRITE)
> ** Last Mounted on /
> ** Root file system
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 2259 files, 44188 used, 82651 free (251 frags, 10300 blocks, 0.2%
> fragmentation)
> ** /dev/ad0s1e (NO WRITE)
> ** Last Mounted on /tmp
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 591 files, 4501 used, 122338 free (242 frags, 15262 blocks, 0.2%
> fragmentation)
> ** /dev/ad0s1f (NO WRITE)
> ** Last Mounted on /usr
> ** Phase 1 - Check Blocks and Sizes
> 
> CANNOT READ BLK: 135486944
> UNEXPECTED SOFT UPDATE INCONSISTENCY
> 
> CONTINUE? yes
> 
> THE FOLLOWING DISK SECTORS COULD NOT BE READ: 135486944, 135486945,
> 135486946, 135486947, 135486948, 135486949, 135486950, 
> 135486951, 135486952,
> 135486953, 135486954, 135486955, 135486956, 135486957, 
> 135486958, 135486959,
> 135486960, 135486961, 135486962, 135486963, 135486964, 
> 135486965, 135486966,
> 135486967, 135486968, 135486969, 135486970,
> ** Phase 2 - Check Pathnames
> UNALLOCATED  I=5049385  OWNER=squid MODE=100600
> SIZE=15032 MTIME=Apr  1 21:07 2006
> FILE=/local/squid/cache/00/26/26C2
> 
> UNEXPECTED SOFT UPDATE INCONSISTENCY
> 
> REMOVE? no
> 
> UNALLOCATED  I=5049875  OWNER=squid MODE=100600
> SIZE=10825 MTIME=Apr  1 21:07 2006
> FILE=/local/squid/cache/00/26/26CA
> 
> UNEXPECTED SOFT UPDATE INCONSISTENCY
> 
> REMOVE? no
> 
> UNALLOCATED  I=5049896  OWNER=squid MODE=100600
> SIZE=15008 MTIME=Apr  1 21:07 2006
> FILE=/local/squid/cache/00/26/26D1
> 
> UNEXPECTED SOFT UPDATE INCONSISTENCY
> 
> REMOVE? no
> 
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> LINK COUNT FILE I=5740857  OWNER=squid MODE=0
> SIZE=0 MTIME=Apr  1 21:09 2006  COUNT 0 SHOULD BE -1
> ADJUST? no
> 
> LINK COUNT FILE I=5792561  OWNER=squid MODE=0
> SIZE=0 MTIME=Apr  1 21:07 2006  COUNT 0 SHOULD BE -1
> ADJUST? no
> 
> LINK COUNT FILE I=5875155  OWNER=squid MODE=0
> SIZE=0 MTIME=Apr  1 21:09 2006  COUNT 0 SHOULD BE -1
> ADJUST? no
> 
> LINK COUNT FILE I=5970461  OWNER=squid MODE=0
> SIZE=0 MTIME=Apr  1 21:09 2006  COUNT 0 SHOULD BE -1
> ADJUST? no
> 
> ** Phase 5 - Check Cyl groups
> SUMMARY INFORMATION BAD
> SALVAGE? no
> 
> ALLOCATED FRAGS 1936880-1936911 MARKED FREE
> ALLOCATED FRAGS 1936976-1936983 MARKED FREE
> BLK(S) MISSING IN BIT MAPS
> SALVAGE? no
> 
> ALLOCATED FILE 5740857 MARKED FREE
> ALLOCATED FRAG 22922007 MARKED FREE
> ALLOCATED FILE 5792561 MARKED FREE
> ALLOCATED FILE 5856663 MARKED FREE
> ALLOCATED FILE 5875155 MARKED FREE
> ALLOCATED FRAG 23448111 MARKED FREE
> ALLOCATED FILE 5970461 MARKED FREE
> ALLOCATED FRAG 23889647 MARKED FREE
> ALLOCATED FILE 6077762 MARKED FREE
> ALLOCATED FRAG 24353503 MARKED FREE
> ALLOCATED FRAGS 26021808-26021813 MARKED FREE
> ALLOCATED FRAGS 26301688-26301690 MARKED FREE
> 1534559 files, 15746410 used, 21222026 free (2172530 frags, 
> 2381187 blocks,
> 5.9% fragmentation)
> ** /dev/ad0s1d (NO WRITE)
> ** Last Mounted on /var
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> UNREF FILE I=8278  OWNER=mysql MODE=100600
> SIZE=0 MTIME=Apr  1 19:13 2006
> CLEAR? no
> 
> UNREF FILE I=8301  OWNER=mysql MODE=100600
> SIZE=0 MTIME=Apr  1 19:13 2006
> CLEAR? no
> 
> UNREF FILE I=8306  OWNER=mysql MODE=100600
> SIZE=0 MTIME=Apr  1 19:13 2006
> CLEAR? no
> 
> UNREF FILE I=25696  OWNER=root MODE=140666
> SIZE=0 MTIME=Apr  1 19:13 2006
> CLEAR? no
> 
> ** Phase 5 - Check Cyl groups
> 3681 files, 59732 used, 67107 free (1275 frags, 8229 blocks, 1.0%
> fragmentatio

ISO Image for FreeBSD5.4 that is Current

2006-04-02 Thread Martin McCormick
The FreeBSD site has an installation ISO image for FreeBSD5.4
but it is dated last May.  There have been several core security
updates since then.  should I be looking in a different place to find
a stable 5.x ISO image that is current?

Thank you very much.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Network Operations Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Passing options to Newfs in the FreeBSD installer

2006-04-02 Thread valentin_nils
Hello FreeBSD Fans ;-),

I have a probably simple question,which kept me busy for several days by now.
I have a few years experience with Linux and would like to extend my knowledge
now to the BSD*s.

Hopefully my question is not too stupid so that somebody can point me into the
correct direction. Anyway here we go...

During the FreeBSD installation I would like to pass parameters to the programm
which creates the filesystem *newfs if I understand that correctly.

I would like to pass the following options: nosuid, noexec, userquota &
groupquota to some partitions.

Whatever I do - even when I want to pass only a single option - I get as a error
message "Invalid argument"

1) Are the above options "nosuid, noexec, userquota, groupquota" valid options
to be passed to the installer programme newfs or do I have some misspells here
?

2) How would I separate several options in the installers input screen after
pressing "G", by komma (,) by semicolon (;) or just by space ( ) ?

I did search the mailing lists up and down and consulted my book from Michael
Lucas and googled, but somehow I didnt find the answer.

I would appreciate any replies.

Best regards

Nils Valentin
http://www.be-known-online.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: disable listen on ports

2006-04-02 Thread Niklaus
On 4/2/06, fbsd_user <[EMAIL PROTECTED]> wrote:
> You need to activate one of the 3 different built in FreeBSD
> firewalls.
> It well explained in the firewall section of the FreeBSD handbook.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Niklaus
> Sent: Sunday, April 02, 2006 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: disable listen on ports
>
>
> Hi,
>  How do i disable users on a system to run their own http proxy. I
> don't want to allow users who have login accounts on my system to
> listen to any port . How do i do that.
>

The  downside of it is that i have add all the protocols like ssh in
the white list.
Is there a way only for root user to listen on a port.

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


Re: ISO Image for FreeBSD5.4 that is Current

2006-04-02 Thread Bill Moran
Martin McCormick <[EMAIL PROTECTED]> wrote:

>   The FreeBSD site has an installation ISO image for FreeBSD5.4
> but it is dated last May.  There have been several core security
> updates since then.  should I be looking in a different place to find
> a stable 5.x ISO image that is current?

I do not know of anyone who makes .isos of patch releases available.  It
would be a nice contribution to the community if someone had the time and
bandwidth to do it.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


jdk15 on 6.0

2006-04-02 Thread james g.

FreeBSD Land:

I've seen this question asked on this very list, and once or twice on  
the web, but have yet to find a solution.


I'm attempting to compile jdk15 on an older machine, and at first  
attempted it on a 4.11 install. The failures there encouraged me to  
finally upgrade the machine to 6.0.


So now, I have a fully patched, fresh 6.0 installation. The machine  
has 128MB physical ram, and I doubled the default swap space. When I  
continued to run into memory errors while attempting to compile the  
jdk, I added an additional swap file of 512MB. Even with all this  
additional swap space, I'm getting the following compilation error  
every time:


`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/ 
bsd_i486_compiler2/jvmg'
gmake[3]: Entering directory `/usr/ports/java/jdk15/work/control/ 
build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'

Compiling ../generated/adfiles/ad_i486.cpp
virtual memory exhausted: Cannot allocate memory
gmake[3]: *** [ad_i486.o] Error 1
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/control/build/ 
bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'

gmake[2]: *** [the_vm] Error 2
gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/control/build/ 
bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'

gmake[1]: *** [jvmg] Error 2
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/control/build/ 
bsd-i586/hotspot-i586/tmp'

gmake: *** [jvmg] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk15.


Does jdk15 really require more swapspace? I don't making the  
additional swap file larger, but pushing 1GB of swap already is  
leading me to believe there is another cause.


Any help is greatly appreciated, as I'd really like to get jdk15  
installed and running on this specific machine, despite it's age.


Cheers,
James

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


RE: Hard Disk problems

2006-04-02 Thread Gayn Winters
> You'll probably want to
> reread the section in the Handbook on Moving to a Larger Disk, since
> this is a good time to rethink the sizes of your partitions.

Sorry, this info is in FAQs 9.1 and 9.2 not in the Handbook.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html

-gayn

Bristol Systems Inc.
714/532-6776
www.bristolsystems.com 


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


Re: ACPI disables network (why?)

2006-04-02 Thread Peter

--- "Donald J. O'Neill" <[EMAIL PROTECTED]> wrote:

[...]

Thanks for your insights.

> There's only so many irq's available, sometimes some of
> them are shared. The problem is when some devices don't want to
> share.
> 
> Do 'dmesg | grep storm', and 'dmesg | grep throt' that will tell you 
> what irq has the problem and something is being shutdown.

No matches there.

> You're probably going to have to put your NIC in a different slot.

My adapter is onboard!

--
Peter

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: disable listen on ports

2006-04-02 Thread Erik Nørgaard

Niklaus wrote:

Hi,
 How do i disable users on a system to run their own http proxy. I
don't want to allow users who have login accounts on my system to
listen to any port . How do i do that.


Putting up a packet filter as some suggest may break other things.

Instead, you can take a look at MAC, Mandatory Access Controls. There is 
a module mac_portacl(4) that can control this.


You need to compile your kernel with options MAC and then add 
mac_portacl_load="YES" to loader.conf


But don't ask me how it works, haven't used it.

Cheers, Erik

--
Ph: +34.666334818  web: www.locolomo.org
S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt
Subject ID:  9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72
Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ipfw dosn"t want to run a rule ???? is it possible ? [Was ipfw n'applique pas une regle ???? est-ce possible ?]

2006-04-02 Thread Duane Whitty

michael wrote:

Bonjour,

Ok,

So, i'll correct u're french because u seems to want to learn it and i
think u're french is not to bad
And for my problem do think about a begining of an answer ?

  

Hello,

Thank you for correcting my French.  I need much practice!

As for your ipfw problem, I do not know enough to help you.
I suggest you pose your question again, this time entirely in English
with all the relevant details, to freebsd-questions@freebsd.org and also
to [EMAIL PROTECTED] 


There are many knowledgeable people on
both these lists who may hopefully be willing to help you, especially as
the French language mailing list appears to not be operating any longer.

Sincerely,

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


Re: Passing options to Newfs in the FreeBSD installer

2006-04-02 Thread Erik Trulsson
On Sun, Apr 02, 2006 at 04:24:48PM +, [EMAIL PROTECTED] wrote:
> Hello FreeBSD Fans ;-),
> 
> I have a probably simple question,which kept me busy for several days by now.
> I have a few years experience with Linux and would like to extend my knowledge
> now to the BSD*s.
> 
> Hopefully my question is not too stupid so that somebody can point me into the
> correct direction. Anyway here we go...
> 
> During the FreeBSD installation I would like to pass parameters to the 
> programm
> which creates the filesystem *newfs if I understand that correctly.
> 
> I would like to pass the following options: nosuid, noexec, userquota &
> groupquota to some partitions.
> 
> Whatever I do - even when I want to pass only a single option - I get as a 
> error
> message "Invalid argument"
> 
> 1) Are the above options "nosuid, noexec, userquota, groupquota" valid options
> to be passed to the installer programme newfs or do I have some misspells here
> ?

Those are not options that can be passed to newfs or used when creating the
filesystem.  They are options for mount(8) and can be put in /etc/fstab to
be used when you are mounting the filesystem. (See the mount(8) and fstab(5)
manpages.)


> 
> 2) How would I separate several options in the installers input screen after
> pressing "G", by komma (,) by semicolon (;) or just by space ( ) ?

Assuming that you are still talking about options to newfs, you write the
options exactly as you would do on the command line.
(See the newfs(8) manpage for available options.)

(If you do not have a FreeBSD system available with manpages installed, they
can also be found at http://www.freebsd.org/cgi/man.cgi )

> 
> I did search the mailing lists up and down and consulted my book from Michael
> Lucas and googled, but somehow I didnt find the answer.
> 
> I would appreciate any replies.
> 
> Best regards
> 
> Nils Valentin
> http://www.be-known-online.com

-- 

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


Re: linux-firefox

2006-04-02 Thread Warren Block

On Sat, 1 Apr 2006, Beech Rintoul wrote:


I deinstalled both versions of firefox and deleted any reference to mozilla or
firefox. I carefully went through /var/run and /root. I rebooted and
reinstalled linux-firefox. Still get the error. This is getting old.


Maybe something left hanging around in /compat/linux?

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Hard Disk problems

2006-04-02 Thread Shane Ambler
On 3/4/06 2:49 AM, "Gayn Winters" <[EMAIL PROTECTED]> wrote:

>> [mailto:[EMAIL PROTECTED] On Behalf Of Shane Ambler
>> Sent: Saturday, April 01, 2006 3:10 AM
>> To: FreeBSD Mailing Lists
>> Subject: Hard Disk problems
>> 
>> 
>> A few days ago I started getting some disk errors and can't
>> seem to find a
>> reference to find a way to fix them (other than the obvious re-format)
>> 
>> 
>> The daily security run output contains the following (abbreviated)
>> 
>> Checking setuid files and devices:
>> find: /usr/ports/databases/db43/work/db-4.3.28/db: Input/output error
>> find: /usr/ports/devel/git/Makefile: Input/output error
>> 
>> ~ repeated 32 times for different files (thankfully all in
>> the ports tree)
>> 
>> tower.home.com kernel log messages:
>>> ad0: FAILURE - READ_DMA status=51
>> error=40 LBA=139102367
>>> ad0: FAILURE - READ_DMA status=51
>> error=1 LBA=139102367
>> 
>> These 2 error codes are repeated a total of 38 times all with
>> the same LBA
>> 
>> If I start in single user mode and do fsck it takes about
>> half an hour to
>> get through and repeats similar errors many times for just
>> about every check
>> it does.
>> 
>> Running #fsck -y >> fsckout (while in multiuser mode) is as follows -
>> followed by dmesg output since boot
>> 
>>> cat fsckout 
>> ** /dev/ad0s1a (NO WRITE)
>> ** Last Mounted on /

Snip

>> ad0: FAILURE - READ_DMA status=51
>> error=1
>> LBA=139102393
>> 
>> 
>> 
>> 
>> -- 
>> 
>> Shane Ambler
> 
> Looks to me like your disk subsystem is dying.  Most likely it is just
> the disk ad0.  If you don't have a good backup, do that immediately.
> Get a new disk in there and test it thoroughly (with the manufacturer's
> diagnostics.)  If all is well, restore to it.  You'll probably want to
> reread the section in the Handbook on Moving to a Larger Disk, since
> this is a good time to rethink the sizes of your partitions.
> 
> Incidentally, you can just install the new disk (as ad1), install FBSD
> on it, and dump|restore from ad0 to ad1.
> 
> Once restored, you'll still have to clean up the damage.  This is easier
> if your new new disk has a separate partition for user data, since you
> can use a fresh install of the OS, the ports, etc. and worry about
> repairing the user data as best you can.
> 
> Good luck!
> 
> -gayn
> 
> Bristol Systems Inc.
> 714/532-6776
> www.bristolsystems.com
> 
> 
> 

Thanks.

I was kinda thinking that might be the case. Space isn't an issue (it's a
120GB drive) this is mostly a testing/learning server at home - runs squid
and dns cache for home use (my other half does a lot of auto-surfing to try
and make a few bucks) and apache/mysql for testing web devel.

The files that showed up as i/o errors are all in /usr/ports so no probs
there, I should be able to copy across what is readable to another drive
without any problems or real loss and worthwhile data there is easy to
replace. 

I am fairly new to *nix and was looking to see if I could learn more
disaster recovery - thought there might be a chance that it was just bad
sectors that weren't getting mapped out automagicaly and I could learn to
fix it manually without reformatting. Now I know that if I see it happen
again I should just replace the disk as soon as I can.


-- 

Shane Ambler
Sales Department
007Marketing.com
[EMAIL PROTECTED]


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


port to calculate cisco ip accounting statistics

2006-04-02 Thread Olga Zenkova
Hi, all.

I gather cisco router ip statistics. This statistics
is made weekly by the "ip accounting output-packets"
of IOS. Is there any port to calculate this data?

Thanks,
Olga


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: linux-firefox

2006-04-02 Thread Andrew Pantyukhin
On 4/2/06, Warren Block <[EMAIL PROTECTED]> wrote:
> On Sat, 1 Apr 2006, Beech Rintoul wrote:
>
> > I deinstalled both versions of firefox and deleted any reference to mozilla 
> > or
> > firefox. I carefully went through /var/run and /root. I rebooted and
> > reinstalled linux-firefox. Still get the error. This is getting old.
>
> Maybe something left hanging around in /compat/linux?

Anyway, we need a good truss/ktrace dump.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ISO Image for FreeBSD5.4 that is Current

2006-04-02 Thread Lowell Gilbert
Martin McCormick <[EMAIL PROTECTED]> writes:

>   The FreeBSD site has an installation ISO image for FreeBSD5.4
> but it is dated last May.  There have been several core security
> updates since then.  should I be looking in a different place to find
> a stable 5.x ISO image that is current?

Find info at:
http://www.freebsd.org/releases/snapshots.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Linux migration

2006-04-02 Thread Kevin Kinsey

Norberto Meijome wrote:


On Thu, 23 Mar 2006 14:47:54 +
Wayne <[EMAIL PROTECTED]> wrote:

 


Also another thing that I was thinking about since my original mail,
things like chkconfig and commands like say 'service network
restart'. Does such a thing like a "redhat layer" type project exist
so that emgineers who must convert to freebsd have as much of the day
to day commands available to them while retraining?
   



RHE has its ways, fbsd has others. it's not that hard to carry over
really...you can make an simple  cheatsheet for your engineeres.
 



Or, see below.


IMHO, it's quite simple in Freebsd:
- if service is part of the base os, script is located in /etc/rc.d
- if service is something you have installed, it's located
in /usr/local/etc/rc.d

Likewise, configuration for base services go in /etc, configuration for
ports goes in /usr/local/etc/

( If you can't tell what is part of the base OS or what is added...you
may have other issues at hand :) )

Since you don't have the SysV style scripts in BSD, what gets run
(base-system or added-from-ports) is defined in /etc/rc.conf (default
options for base services are in /etc/defaults/rc.conf . options for
services from ports are usually in the port documentation or the
startup script)

Regardless of this, scripts in either /etc/rc.d or /usr/local/etc/rc.d/
take the same params as RHE : start, stop, restart, status (+ custom
ones in some services/ports).

so 'service network restart' = /etc/rc.d/netif restart
 



Very good --- and, to ease transition:

echo "alias 'service network restart' echo 'Did you mean 
/etc/rc.d/netif restart?' " >> ~/.cshrc


Of course, two issues: shell globbing and the fact that they'll be expecting
bash.  Probably the former is of more consequence, as neither sh/bash
nor csh/tcsh seem to want to accept spaces in commands.  Bash is available
in ports, so using it for wheel level accounts should be fine; the OP should
be cautioned about replacing root's shell, though (Bad Idea(tm), AFAIK).

Nonetheless, it might be a good idea to hack together some kind of
reminder script for some of the RH commands; note, as a somewhat
related example, how many FTPD's accept both "ls" and "dir"  You
could (and I have, before) alias "RHcommand"  "FBSDequivalent", but
that ends up not teaching anybody anything, and adds a layer of murk
between the user and the OS; a layer that is not needed and detrimental
for the most part.

Shouldn't take any major corporate effort, and could be quite helpful.

My $0.02,

Kevin Kinsey

--
My favorite sandwich is peanut butter, baloney, cheddar cheese, lettuce
and mayonnaise on toasted bread with catsup on the side.
-- Senator Hubert Humphrey


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


Re: jdk15 on 6.0

2006-04-02 Thread Andrew Pantyukhin
On 4/2/06, james g. <[EMAIL PROTECTED]> wrote:
> FreeBSD Land:
>
> I've seen this question asked on this very list, and once or twice on
> the web, but have yet to find a solution.
>
> I'm attempting to compile jdk15 on an older machine, and at first
> attempted it on a 4.11 install. The failures there encouraged me to
> finally upgrade the machine to 6.0.
>
> So now, I have a fully patched, fresh 6.0 installation. The machine
> has 128MB physical ram, and I doubled the default swap space. When I
> continued to run into memory errors while attempting to compile the
> jdk, I added an additional swap file of 512MB. Even with all this
> additional swap space, I'm getting the following compilation error
> every time:
>
> `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/
> bsd_i486_compiler2/jvmg'
> gmake[3]: Entering directory `/usr/ports/java/jdk15/work/control/
> build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
> Compiling ../generated/adfiles/ad_i486.cpp
> virtual memory exhausted: Cannot allocate memory
> gmake[3]: *** [ad_i486.o] Error 1
> gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/control/build/
> bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
> gmake[2]: *** [the_vm] Error 2
> gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/control/build/
> bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
> gmake[1]: *** [jvmg] Error 2
> gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/control/build/
> bsd-i586/hotspot-i586/tmp'
> gmake: *** [jvmg] Error 2
> *** Error code 2
>
> Stop in /usr/ports/java/jdk15.
>
>
> Does jdk15 really require more swapspace? I don't making the
> additional swap file larger, but pushing 1GB of swap already is
> leading me to believe there is another cause.
>
> Any help is greatly appreciated, as I'd really like to get jdk15
> installed and running on this specific machine, despite it's age.
>
> Cheers,
> James
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

AFAICT yes, it is possible that 1Gb (try 2Gb to be sure) swap
will solve it. I can start trying to imagine how long it would take
to compile jdk15, though. And even if you do succeed, an
average java application can take about 100Mb of RAM
right from the start. So you should really choose between a
newer box and a sensible programming language.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: port to calculate cisco ip accounting statistics

2006-04-02 Thread Bill Moran
Olga Zenkova <[EMAIL PROTECTED]> wrote:

> Hi, all.
> 
> I gather cisco router ip statistics. This statistics
> is made weekly by the "ip accounting output-packets"
> of IOS. Is there any port to calculate this data?

Look into opensnmp.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jdk15 on 6.0

2006-04-02 Thread james g.


On Apr 2, 2006, at 11:41 AM, Andrew Pantyukhin wrote:


On 4/2/06, james g. <[EMAIL PROTECTED]> wrote:

FreeBSD Land:

I've seen this question asked on this very list, and once or twice on
the web, but have yet to find a solution.

I'm attempting to compile jdk15 on an older machine, and at first
attempted it on a 4.11 install. The failures there encouraged me to
finally upgrade the machine to 6.0.

So now, I have a fully patched, fresh 6.0 installation. The machine
has 128MB physical ram, and I doubled the default swap space. When I
continued to run into memory errors while attempting to compile the
jdk, I added an additional swap file of 512MB. Even with all this
additional swap space, I'm getting the following compilation error
every time:

`/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/
bsd_i486_compiler2/jvmg'
gmake[3]: Entering directory `/usr/ports/java/jdk15/work/control/
build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
Compiling ../generated/adfiles/ad_i486.cpp
virtual memory exhausted: Cannot allocate memory
gmake[3]: *** [ad_i486.o] Error 1
gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/control/ 
build/

bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
gmake[2]: *** [the_vm] Error 2
gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/control/ 
build/

bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
gmake[1]: *** [jvmg] Error 2
gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/control/ 
build/

bsd-i586/hotspot-i586/tmp'
gmake: *** [jvmg] Error 2
*** Error code 2

Stop in /usr/ports/java/jdk15.


Does jdk15 really require more swapspace? I don't making the
additional swap file larger, but pushing 1GB of swap already is
leading me to believe there is another cause.

Any help is greatly appreciated, as I'd really like to get jdk15
installed and running on this specific machine, despite it's age.

Cheers,
James



AFAICT yes, it is possible that 1Gb (try 2Gb to be sure) swap
will solve it. I can start trying to imagine how long it would take
to compile jdk15, though. And even if you do succeed, an
average java application can take about 100Mb of RAM
right from the start. So you should really choose between a
newer box and a sensible programming language.


Thanks for the tip. I upped the additional swapfile size to 2GB and  
tried again, with the same results.


Granted I understand that expecting so much from this little machine  
is really pushing it, it will eventually just be running a small java- 
based server, that unfortunately requires jdk15. I wouldn't ever  
choose it on purpose.


With a total swap size of roughly 2.5GB still generating failures, is  
this a lost cause, or should I be looking for additional solutions?


Cheers,
James

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


Re: Passing options to Newfs in the FreeBSD installer

2006-04-02 Thread Dhénin Jean-Jacques
Very nice answer.

2006/4/2, Erik Trulsson <[EMAIL PROTECTED]>:
> On Sun, Apr 02, 2006 at 04:24:48PM +, [EMAIL PROTECTED] wrote:
> > Hello FreeBSD Fans ;-),
> >
> > I have a probably simple question,which kept me busy for several days by 
> > now.
> > I have a few years experience with Linux and would like to extend my 
> > knowledge
> > now to the BSD*s.
> >
> > Hopefully my question is not too stupid so that somebody can point me into 
> > the
> > correct direction. Anyway here we go...
> >
> > During the FreeBSD installation I would like to pass parameters to the 
> > programm
> > which creates the filesystem *newfs if I understand that correctly.
> >
> > I would like to pass the following options: nosuid, noexec, userquota &
> > groupquota to some partitions.
> >
> > Whatever I do - even when I want to pass only a single option - I get as a 
> > error
> > message "Invalid argument"
> >
> > 1) Are the above options "nosuid, noexec, userquota, groupquota" valid 
> > options
> > to be passed to the installer programme newfs or do I have some misspells 
> > here
> > ?
>
> Those are not options that can be passed to newfs or used when creating the
> filesystem.  They are options for mount(8) and can be put in /etc/fstab to
> be used when you are mounting the filesystem. (See the mount(8) and fstab(5)
> manpages.)
>
>
> >
> > 2) How would I separate several options in the installers input screen after
> > pressing "G", by komma (,) by semicolon (;) or just by space ( ) ?
>
> Assuming that you are still talking about options to newfs, you write the
> options exactly as you would do on the command line.
> (See the newfs(8) manpage for available options.)
>
> (If you do not have a FreeBSD system available with manpages installed, they
> can also be found at http://www.freebsd.org/cgi/man.cgi )
>
> >
> > I did search the mailing lists up and down and consulted my book from 
> > Michael
> > Lucas and googled, but somehow I didnt find the answer.
> >
> > I would appreciate any replies.
> >
> > Best regards
> >
> > Nils Valentin
> > http://www.be-known-online.com
>
> --
> 
> Erik Trulsson
> [EMAIL PROTECTED]
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>


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


hunting for secure fileserver-connection!

2006-04-02 Thread [EMAIL PROTECTED]@mgEDV.net

hi 2 all gurus!

the scenario:
- freebsd-fileserver with encrypted HDD's (GELI) (1.5TB)
- windows (sorry for that, it's a requirement) as client

the quest:
- securely mount shared filesystems from the server from
  the windows client w/o being open to sniffers/network
  hacks (non-weak encryption required)
- files should be accessible like with windows-fileserver
  shares through UNC and/or drive-name(s)
- server and clients should share the same network. (no
  tunnelling etc...)
- authentication should be done against local defined users

what we don't want:
- VPN/IPSEC/... between the hosts
- webdav

we've been looking on solutions like secure nfs over tcp,
samba, etc... but except making it slower, there have been
no real good solutions until yet.

anybody out there, who has a good advice on that?

br & cu...

ps: i know it's crazy, but it should be possible, nope?

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


Re: jdk15 on 6.0

2006-04-02 Thread Helge Preuss
james g. wrote:
>
> On Apr 2, 2006, at 11:41 AM, Andrew Pantyukhin wrote:
>
>> On 4/2/06, james g. <[EMAIL PROTECTED]> wrote:
>>> FreeBSD Land:
>>>
>>> I've seen this question asked on this very list, and once or twice on
>>> the web, but have yet to find a solution.
>>>
>>> I'm attempting to compile jdk15 on an older machine, and at first
>>> attempted it on a 4.11 install. The failures there encouraged me to
>>> finally upgrade the machine to 6.0.
>>>
>>> So now, I have a fully patched, fresh 6.0 installation. The machine
>>> has 128MB physical ram, and I doubled the default swap space. When I
>>> continued to run into memory errors while attempting to compile the
>>> jdk, I added an additional swap file of 512MB. Even with all this
>>> additional swap space, I'm getting the following compilation error
>>> every time:
>>>
>>> `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/tmp/
>>> bsd_i486_compiler2/jvmg'
>>> gmake[3]: Entering directory `/usr/ports/java/jdk15/work/control/
>>> build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
>>> Compiling ../generated/adfiles/ad_i486.cpp
>>> virtual memory exhausted: Cannot allocate memory
>>> gmake[3]: *** [ad_i486.o] Error 1
>>> gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/control/build/
>>> bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
>>> gmake[2]: *** [the_vm] Error 2
>>> gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/control/build/
>>> bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
>>> gmake[1]: *** [jvmg] Error 2
>>> gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/control/build/
>>> bsd-i586/hotspot-i586/tmp'
>>> gmake: *** [jvmg] Error 2
>>> *** Error code 2
>>>
>>> Stop in /usr/ports/java/jdk15.
>>>
>>>
>>> Does jdk15 really require more swapspace? I don't making the
>>> additional swap file larger, but pushing 1GB of swap already is
>>> leading me to believe there is another cause.
>>>
>>> Any help is greatly appreciated, as I'd really like to get jdk15
>>> installed and running on this specific machine, despite it's age.
>>>
>>> Cheers,
>>> James
>>>
>>
>> AFAICT yes, it is possible that 1Gb (try 2Gb to be sure) swap
>> will solve it. I can start trying to imagine how long it would take
>> to compile jdk15, though. And even if you do succeed, an
>> average java application can take about 100Mb of RAM
>> right from the start. So you should really choose between a
>> newer box and a sensible programming language.
>
> Thanks for the tip. I upped the additional swapfile size to 2GB and
> tried again, with the same results.
>
> Granted I understand that expecting so much from this little machine
> is really pushing it, it will eventually just be running a small
> java-based server, that unfortunately requires jdk15. I wouldn't ever
> choose it on purpose.
>
> With a total swap size of roughly 2.5GB still generating failures, is
> this a lost cause, or should I be looking for additional solutions?
Hmm. I successfully compiled jdk15 with 256 MB RAM and 1 GB swap on an
i386 machine. I suspect some other problem with your system. I can offer
no speculation to the nature of your problem though.

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


Re: ISO Image for FreeBSD5.4 that is Current

2006-04-02 Thread Patrick Bowen

Martin McCormick wrote:


The FreeBSD site has an installation ISO image for FreeBSD5.4
but it is dated last May.  There have been several core security
updates since then.  should I be looking in a different place to find
a stable 5.x ISO image that is current?

Thank you very much.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer

OSU Information Technology Department Network Operations Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

 


Martin:

You'll need to install 5.4 from the iso, then use cvsup to update your 
sources with the updates. Then read the handbook and /usr/src/UPDATING 
for the instructions on how to recompile your world and kernel. Your 
other option is to wait for 5.5 which should be out "any day now".


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


passwd and pwd_mkdb

2006-04-02 Thread Tony Tung

Hi,

I just tried changing my password, but it has no effect until I su to  
root and run pwd_mkdb.  Any ideas?  This is on a FreeBSD 5.4 install  
that has since been updated by source to 6.0.


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


Re: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-02 Thread Chris
On 31/03/06, Peter Thoenen <[EMAIL PROTECTED]> wrote:
> Hallo everybody.  Will prob end up PR'ing this but want to post to the
> list first and get some feelers.  At first I thought it was just me but
> as the port maintainer for tor-devel I have had a couple other folk
> email me with the exact same problem (believing tor to be the cause).
> Its not.
>
> Problem: When tor (running in server mode), i2p, or freenet is ran (all
> high bandwidth, high number of concurrent tcp / udp / ip connections,
> maybe 2000+ sim connects @ a constant 4 mb) between the 2 and 4 hour
> mark a system running FBSD 6 will hard crash and power off.  This is
> reproducible (though not on demand, just on arbitrary time between 2
> and 4 hours).
>
> Troubleshooting so far:
>
> - It is NOT an issue on 5.x.  It is an issue on both 6.0 and 6.1BETA4.
>
>
> - It is not easy to reproduce.  I assume a couple hundred people use
> these ports and I have only had a dozen or so report this problem to
> me.  All of the people suffering from this though CAN reproduce this
> crash on demand.  I have to assume though the other 99% of users though
> do not see this error for unknown reasons.
>
> - It is not a port issue (as tor/i2p/freenet all can cause it).  It is
> not a java issue (was another early worry of mine but tor is written in
> C).
>
> - The hard crash does NOT generate a dump or panic for anybody I have
> spoken with.  /var/crash comes up empty every time.
>
> - It is not platform or hardware specific (this was my initial guess).
> I have seen this on both the amd64 and i386 archs.  I have also seen it
> on various motherboards and nic's (bge, nv, em).  To reiterate, running
> 5.x on identical hardware does not cause this crash.
>
> - It is not a tunable or sysctrl issue as far as I can tell.  Spent the
> last month tuning and watching my system limits and all appears to be
> good.
>
> - My gut feeling is this has something to do with the new network stack
> introduced in 6.0.
>
> - When not running one of the aforementioned ports, system does not
> crash.  I have a three week uptime currently on one of my testbeds
> experiencing this problem.  If I start tor / i2p / or freenet I will
> crash within hours.
>
> Help would be appreciated in resolving this or troubleshooting further.
>  I am at a loss here and me (along with a couple other folk that have
> emailed me) have some nice expensive paperweights now as they crash on
> use.  If you are developer and want to look into this, I can provide
> all the info you need, just let me know exactly what it is.
>
> Thanks,
>
> -Peter
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

I am interested in the development of this issue, as everyone appears
disinterested have you submitted a PR?

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


Re: Why are so many people using 4.x?

2006-04-02 Thread Chris
On 30/03/06, Kris Kennaway <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 30, 2006 at 09:51:15AM +0100, Chris wrote:
>
> > > Sorry to hear that, can you point me to the PRs you filed so I can
> > > take a look?
>
> > I didnt do a PR except one for a minor bug since there was nothing
> > logged on it just died, I have kept one machine running 6.0 so I can
> > try and resolve the problem and also will upgrade it to 6.1 on release
> > to see if things are better, should I enable debugging options so it
> > has better chance of logging something?
>
> Yes, you'll want to enable crashdumps (per the developers handbook) at
> least, and adding INVARIANTS and INVARIANT_SUPPORT is also a good idea
> if you're encountering a panic, because it may catch it earlier and at
> the root cause.  If you are seeing a deadlock then enable WITNESS and
> DDB.
>
> Kris
>
>
>

Ok thanks will do this, and if anything useable comes out of it will post it.

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


Re: Timescale for 6.1-RELEASE...

2006-04-02 Thread Chris
On 30/03/06, Harrison Peter CSA BIRKENHEAD
<[EMAIL PROTECTED]> wrote:
> I realise the answer to this question is "when it's ready", but does anyone 
> have a rough idea how close to being ready 6.1 is?
>
> Thanks,
>
> Peter Harrison
>
>
>
> **
> This document is strictly confidential and is intended only for use by the 
> addressee.
> If you are not the intended recipient, any disclosure, copying, distribution 
> or other
> action taken in reliance of the information contained in this e-mail is 
> strictly prohibited.
> Any views expressed by the sender of this message are not necessarily those 
> of the Department
> for Work and Pensions.
> If you have received this transmission in error, please use the reply 
> function to tell us
> and then permanently delete what you have received.
> Please note: Incoming and outgoing e-mail messages are routinely monitored 
> for compliance
> with our policy on the use of electronic communications.
> **
>
>
> The original of this email was scanned for viruses by the Government Secure 
> Intranet (GSi) virus scanning service supplied exclusively by Cable & 
> Wireless in partnership with MessageLabs.
>
> On leaving the GSi this email was certified virus-free
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

I think the closest way of knowing is checking the todo page and when
they mostly say resolved it may be close to been ready.

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


Re: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-02 Thread Kris Kennaway
On Sun, Apr 02, 2006 at 08:22:56PM +0100, Chris wrote:
> On 31/03/06, Peter Thoenen <[EMAIL PROTECTED]> wrote:
> > Hallo everybody.  Will prob end up PR'ing this but want to post to the
> > list first and get some feelers.  At first I thought it was just me but
> > as the port maintainer for tor-devel I have had a couple other folk
> > email me with the exact same problem (believing tor to be the cause).
> > Its not.
> >
> > Problem: When tor (running in server mode), i2p, or freenet is ran (all
> > high bandwidth, high number of concurrent tcp / udp / ip connections,
> > maybe 2000+ sim connects @ a constant 4 mb) between the 2 and 4 hour
> > mark a system running FBSD 6 will hard crash and power off.  This is
> > reproducible (though not on demand, just on arbitrary time between 2
> > and 4 hours).
> >
> > Troubleshooting so far:
> >
> > - It is NOT an issue on 5.x.  It is an issue on both 6.0 and 6.1BETA4.
> >
> >
> > - It is not easy to reproduce.  I assume a couple hundred people use
> > these ports and I have only had a dozen or so report this problem to
> > me.  All of the people suffering from this though CAN reproduce this
> > crash on demand.  I have to assume though the other 99% of users though
> > do not see this error for unknown reasons.
> >
> > - It is not a port issue (as tor/i2p/freenet all can cause it).  It is
> > not a java issue (was another early worry of mine but tor is written in
> > C).
> >
> > - The hard crash does NOT generate a dump or panic for anybody I have
> > spoken with.  /var/crash comes up empty every time.
> >
> > - It is not platform or hardware specific (this was my initial guess).
> > I have seen this on both the amd64 and i386 archs.  I have also seen it
> > on various motherboards and nic's (bge, nv, em).  To reiterate, running
> > 5.x on identical hardware does not cause this crash.
> >
> > - It is not a tunable or sysctrl issue as far as I can tell.  Spent the
> > last month tuning and watching my system limits and all appears to be
> > good.
> >
> > - My gut feeling is this has something to do with the new network stack
> > introduced in 6.0.
> >
> > - When not running one of the aforementioned ports, system does not
> > crash.  I have a three week uptime currently on one of my testbeds
> > experiencing this problem.  If I start tor / i2p / or freenet I will
> > crash within hours.
> >
> > Help would be appreciated in resolving this or troubleshooting further.
> >  I am at a loss here and me (along with a couple other folk that have
> > emailed me) have some nice expensive paperweights now as they crash on
> > use.  If you are developer and want to look into this, I can provide
> > all the info you need, just let me know exactly what it is.
> >
> > Thanks,
> >
> > -Peter
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> >
> 
> I am interested in the development of this issue, as everyone appears
> disinterested have you submitted a PR?

It's not that I'm disinterested, but it's really hard to imagine what
kind of kernel bug could cause your system to power off in this way.

Are any of these applications Linux binaries?  The Linux halt syscall
maps to some other common syscall in FreeBSD, so if a Linux binary is
incorrectly branded as a FreeBSD binary it can shut down the system
when run.

That's the only thing I can think of.

Kris


pgpqBsT18ZO7X.pgp
Description: PGP signature


Re: jdk15 on 6.0

2006-04-02 Thread [EMAIL PROTECTED]
On 4/2/06, james g. <[EMAIL PROTECTED]> wrote:
> Granted I understand that expecting so much from this little machine
> is really pushing it, it will eventually just be running a small java-
> based server, that unfortunately requires jdk15. I wouldn't ever
> choose it on purpose.
>
> With a total swap size of roughly 2.5GB still generating failures, is
> this a lost cause, or should I be looking for additional solutions?

/usr/ports/java/linux-sun-jdk15/
perhaps?

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


Re: jdk15 on 6.0

2006-04-02 Thread Anish Mistry
On Sunday 02 April 2006 14:36, james g. wrote:
> On Apr 2, 2006, at 11:41 AM, Andrew Pantyukhin wrote:
> > On 4/2/06, james g. <[EMAIL PROTECTED]> wrote:
> >> FreeBSD Land:
> >>
> >> I've seen this question asked on this very list, and once or
> >> twice on the web, but have yet to find a solution.
> >>
> >> I'm attempting to compile jdk15 on an older machine, and at
> >> first attempted it on a 4.11 install. The failures there
> >> encouraged me to finally upgrade the machine to 6.0.
> >>
> >> So now, I have a fully patched, fresh 6.0 installation. The
> >> machine has 128MB physical ram, and I doubled the default swap
> >> space. When I continued to run into memory errors while
> >> attempting to compile the jdk, I added an additional swap file
> >> of 512MB. Even with all this additional swap space, I'm getting
> >> the following compilation error every time:
> >>
> >> `/usr/ports/java/jdk15/work/control/build/bsd-i586/hotspot-i586/
> >>tmp/ bsd_i486_compiler2/jvmg'
> >> gmake[3]: Entering directory
> >> `/usr/ports/java/jdk15/work/control/
> >> build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
> >> Compiling ../generated/adfiles/ad_i486.cpp
> >> virtual memory exhausted: Cannot allocate memory
> >> gmake[3]: *** [ad_i486.o] Error 1
> >> gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/control/
> >> build/
> >> bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
> >> gmake[2]: *** [the_vm] Error 2
> >> gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/control/
> >> build/
> >> bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/jvmg'
> >> gmake[1]: *** [jvmg] Error 2
> >> gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/control/
> >> build/
> >> bsd-i586/hotspot-i586/tmp'
> >> gmake: *** [jvmg] Error 2
> >> *** Error code 2
> >>
> >> Stop in /usr/ports/java/jdk15.
> >>
> >>
> >> Does jdk15 really require more swapspace? I don't making the
> >> additional swap file larger, but pushing 1GB of swap already is
> >> leading me to believe there is another cause.
> >>
> >> Any help is greatly appreciated, as I'd really like to get jdk15
> >> installed and running on this specific machine, despite it's
> >> age.
> >>
> >> Cheers,
> >> James
> >
> > AFAICT yes, it is possible that 1Gb (try 2Gb to be sure) swap
> > will solve it. I can start trying to imagine how long it would
> > take to compile jdk15, though. And even if you do succeed, an
> > average java application can take about 100Mb of RAM
> > right from the start. So you should really choose between a
> > newer box and a sensible programming language.
>
> Thanks for the tip. I upped the additional swapfile size to 2GB and
> tried again, with the same results.
>
> Granted I understand that expecting so much from this little
> machine is really pushing it, it will eventually just be running a
> small java- based server, that unfortunately requires jdk15. I
> wouldn't ever choose it on purpose.
>
> With a total swap size of roughly 2.5GB still generating failures,
> is this a lost cause, or should I be looking for additional
> solutions?
You could always just to do a "make package" on another machine with 
6.0 and then just pkg_add on your older system.

-- 
Anish Mistry


pgpE8ZzGxZTxG.pgp
Description: PGP signature


Re: disable listen on ports

2006-04-02 Thread michael
Erik Nørgaard a écrit :

> Niklaus wrote:
>
>> Hi,
>>  How do i disable users on a system to run their own http proxy. I
>> don't want to allow users who have login accounts on my system to
>> listen to any port . How do i do that.
>
>
> Putting up a packet filter as some suggest may break other things.
>
> Instead, you can take a look at MAC, Mandatory Access Controls. There
> is a module mac_portacl(4) that can control this.
>
> You need to compile your kernel with options MAC and then add
> mac_portacl_load="YES" to loader.conf
>
> But don't ask me how it works, haven't used it.
>
> Cheers, Erik
>
I think u're able to use this sample for doing what u want:

# Allow out FreeBSD (make install & CVSUP) functions
# Basically give user root "GOD" privileges.
$cmd 070 $skip tcp from me to any out via $pif setup keep-state uid root


i found it in the ipfw explain page:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html

Michael.




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


Re: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-02 Thread Anish Mistry
On Sunday 02 April 2006 15:22, Chris wrote:
> On 31/03/06, Peter Thoenen <[EMAIL PROTECTED]> wrote:
> > Hallo everybody.  Will prob end up PR'ing this but want to post
> > to the list first and get some feelers.  At first I thought it
> > was just me but as the port maintainer for tor-devel I have had a
> > couple other folk email me with the exact same problem (believing
> > tor to be the cause). Its not.
> >
> > Problem: When tor (running in server mode), i2p, or freenet is
> > ran (all high bandwidth, high number of concurrent tcp / udp / ip
> > connections, maybe 2000+ sim connects @ a constant 4 mb) between
> > the 2 and 4 hour mark a system running FBSD 6 will hard crash and
> > power off.  This is reproducible (though not on demand, just on
> > arbitrary time between 2 and 4 hours).
> >
> > Troubleshooting so far:
> >
> > - It is NOT an issue on 5.x.  It is an issue on both 6.0 and
> > 6.1BETA4.
> >
> >
> > - It is not easy to reproduce.  I assume a couple hundred people
> > use these ports and I have only had a dozen or so report this
> > problem to me.  All of the people suffering from this though CAN
> > reproduce this crash on demand.  I have to assume though the
> > other 99% of users though do not see this error for unknown
> > reasons.
> >
> > - It is not a port issue (as tor/i2p/freenet all can cause it). 
> > It is not a java issue (was another early worry of mine but tor
> > is written in C).
> >
> > - The hard crash does NOT generate a dump or panic for anybody I
> > have spoken with.  /var/crash comes up empty every time.
Ok, so the machines hard lock and require power cycling them?  I'd 
advise throwing in a firewire card into one of these systems and 
setup remote debugging.  There should be some info on the web for 
getting this setup.  With the firewire debugging you should be able 
to access the systems memory space remotely even if there is a hard 
lock and the OS is not responding.  I haven't setup this last part 
myself, but I'm pretty sure I read it was possible.

-- 
Anish Mistry


pgpelOfPEdSGu.pgp
Description: PGP signature


Re: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-02 Thread Kris Kennaway
On Sun, Apr 02, 2006 at 03:43:01PM -0400, Anish Mistry wrote:
> On Sunday 02 April 2006 15:22, Chris wrote:
> > On 31/03/06, Peter Thoenen <[EMAIL PROTECTED]> wrote:
> > > Hallo everybody.  Will prob end up PR'ing this but want to post
> > > to the list first and get some feelers.  At first I thought it
> > > was just me but as the port maintainer for tor-devel I have had a
> > > couple other folk email me with the exact same problem (believing
> > > tor to be the cause). Its not.
> > >
> > > Problem: When tor (running in server mode), i2p, or freenet is
> > > ran (all high bandwidth, high number of concurrent tcp / udp / ip
> > > connections, maybe 2000+ sim connects @ a constant 4 mb) between
> > > the 2 and 4 hour mark a system running FBSD 6 will hard crash and
> > > power off.  This is reproducible (though not on demand, just on
> > > arbitrary time between 2 and 4 hours).
> > >
> > > Troubleshooting so far:
> > >
> > > - It is NOT an issue on 5.x.  It is an issue on both 6.0 and
> > > 6.1BETA4.
> > >
> > >
> > > - It is not easy to reproduce.  I assume a couple hundred people
> > > use these ports and I have only had a dozen or so report this
> > > problem to me.  All of the people suffering from this though CAN
> > > reproduce this crash on demand.  I have to assume though the
> > > other 99% of users though do not see this error for unknown
> > > reasons.
> > >
> > > - It is not a port issue (as tor/i2p/freenet all can cause it). 
> > > It is not a java issue (was another early worry of mine but tor
> > > is written in C).
> > >
> > > - The hard crash does NOT generate a dump or panic for anybody I
> > > have spoken with.  /var/crash comes up empty every time.
> Ok, so the machines hard lock and require power cycling them?  I'd 
> advise throwing in a firewire card into one of these systems and 
> setup remote debugging.  There should be some info on the web for 
> getting this setup.  With the firewire debugging you should be able 
> to access the systems memory space remotely even if there is a hard 
> lock and the OS is not responding.  I haven't setup this last part 
> myself, but I'm pretty sure I read it was possible.

It's not clear what he means by "hard crash", but he also says "and
power off", which is the part that is most confusing to me.

Kris


pgp4BzpzSjEXt.pgp
Description: PGP signature


ACER 1644 acpio errors

2006-04-02 Thread Robin Becker
Hi I'm trying to setup freebsd 6.1 beta on an ACER 1644 laptop. I have 
managed to get wireless going and by following the recipe at 
http://www.mguillaud.net/acer1641/ have removed an acpi problem related 
to boot messages like ACPI-0438: *** Error: Looking up [Z00A] in 
namespace, AE_NOT_FOUND
ACPI-1304: *** Error: Method execution failed [\\_SB_.BAT1._BST] (Node 
0xc199f640), AE_NOT_FOUND


I used acpidump -t -d to get an asl file which I patched following as in 
http://lists.freebsd.org/mailman/htdig/freebsd-acpi/2005-November/002193.html


However, during boot I still see some problems

acpi_bus_number: can't get _ADR
acpi_perf0: failed in PERF_STATUS attach

I have looked at various versions of the asl/dsl, but don't know enough 
to figure out what is best. Can anyone advise?


dmesg output contains the following lines related to acpi

ACPI APIC Table: 
ACPI-0377: *** Info: Table [SSDT] replaced by host OS
ACPI-0377: *** Info: Table [SSDT] replaced by host OS
ACPI-0377: *** Info: Table [SSDT] replaced by host OS
ACPI: overriding DSDT/SSDT with custom table
ACPI-0377: *** Info: Table [DSDT] replaced by host OS
acpi0:  on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_ec0:  port 0x62,0x66 on acpi0
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0:  on acpi0
acpi_perf0:  on cpu0
acpi_perf0: failed in PERF_STATUS attach
device_attach: acpi_perf0 attach returned 6
acpi_perf0:  on cpu0
acpi_perf0: failed in PERF_STATUS attach
device_attach: acpi_perf0 attach returned 6
acpi_throttle0:  on cpu0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  irq 17 at device 28.0 on pci0
pci9:  on pcib1
pcib2:  irq 16 at device 28.1 on pci0
pci10:  on pcib2
pcib3:  irq 18 at device 28.2 on pci0
pci2:  on pcib3
pcib4:  at device 30.0 on pci0
pci6:  on pcib4
acpi_acad0:  on acpi0
battery0:  on acpi0
acpi_lid0:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
acpi_tz0:  on acpi0
atkbdc0:  port 0x60,0x64 irq 1 on acpi0
--
Robin Becker
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-02 Thread Anish Mistry
On Sunday 02 April 2006 15:51, Kris Kennaway wrote:
> On Sun, Apr 02, 2006 at 03:43:01PM -0400, Anish Mistry wrote:
> > On Sunday 02 April 2006 15:22, Chris wrote:
> > > On 31/03/06, Peter Thoenen <[EMAIL PROTECTED]> wrote:
> > > > Hallo everybody.  Will prob end up PR'ing this but want to
> > > > post to the list first and get some feelers.  At first I
> > > > thought it was just me but as the port maintainer for
> > > > tor-devel I have had a couple other folk email me with the
> > > > exact same problem (believing tor to be the cause). Its not.
> > > >
> > > > Problem: When tor (running in server mode), i2p, or freenet
> > > > is ran (all high bandwidth, high number of concurrent tcp /
> > > > udp / ip connections, maybe 2000+ sim connects @ a constant 4
> > > > mb) between the 2 and 4 hour mark a system running FBSD 6
> > > > will hard crash and power off.  This is reproducible (though
> > > > not on demand, just on arbitrary time between 2 and 4 hours).
> > > >
> > > > Troubleshooting so far:
> > > >
> > > > - It is NOT an issue on 5.x.  It is an issue on both 6.0 and
> > > > 6.1BETA4.
> > > >
> > > >
> > > > - It is not easy to reproduce.  I assume a couple hundred
> > > > people use these ports and I have only had a dozen or so
> > > > report this problem to me.  All of the people suffering from
> > > > this though CAN reproduce this crash on demand.  I have to
> > > > assume though the other 99% of users though do not see this
> > > > error for unknown reasons.
> > > >
> > > > - It is not a port issue (as tor/i2p/freenet all can cause
> > > > it). It is not a java issue (was another early worry of mine
> > > > but tor is written in C).
> > > >
> > > > - The hard crash does NOT generate a dump or panic for
> > > > anybody I have spoken with.  /var/crash comes up empty every
> > > > time.
> >
> > Ok, so the machines hard lock and require power cycling them? 
> > I'd advise throwing in a firewire card into one of these systems
> > and setup remote debugging.  There should be some info on the web
> > for getting this setup.  With the firewire debugging you should
> > be able to access the systems memory space remotely even if there
> > is a hard lock and the OS is not responding.  I haven't setup
> > this last part myself, but I'm pretty sure I read it was
> > possible.
>
> It's not clear what he means by "hard crash", but he also says "and
> power off", which is the part that is most confusing to me.
Hmmm...I missed that part.  Yeah, if it powers off then I'm not sure 
what you can do to debug it.

-- 
Anish Mistry


pgpJKidB2g4eI.pgp
Description: PGP signature


Re: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-02 Thread Kris Kennaway
On Sun, Apr 02, 2006 at 04:09:30PM -0400, Anish Mistry wrote:

> > It's not clear what he means by "hard crash", but he also says "and
> > power off", which is the part that is most confusing to me.
> Hmmm...I missed that part.  Yeah, if it powers off then I'm not sure 
> what you can do to debug it.

About all I can think of is to try to reproduce the problem with
enough logging enabled (e.g. running the binary under ktrace), with
sync-mounted filesystem, and hope that the last few entries give the
software developer enough of a clue what the process was doing at the
time of shutdown (the operation itself probably will not be logged)
that he can focus the investigation further.

Kris


pgpAZMr94bNAN.pgp
Description: PGP signature


reconfiguring a package

2006-04-02 Thread Luiz Eduardo Guida Valmont
I'm sorry if this is one of those rtfm cases, but I've exhausted my options
so far (except asking for help here ^^).

When you "make install" a package, for some the first thing you get is a
screen where you choose some compile-time options that affect the package's
dependancies (eg. "postgresql support" when trying to install amarok). The
question is simple: is there a way or a make target that deletes my choices
and / or forces make to ask them again?

I tryed selecting everything for amarok and now both krb5 and heimdal are
indirect dependancies. That wouldn't pose a problem if they did not
conflict, but unfortunately they do.

Any help is appreciated...

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

Re: repeated ssh login attempts/failure/break-in attempts from kiddy script

2006-04-02 Thread Peter N. M. Hansteen
Nathan Vidican <[EMAIL PROTECTED]> writes:

> ie: after 4 failed attempts from IP _BLANK_ in less than _BLANK_ minutes, 
> deny 
> all attempts and drop connection from said IP... possible?

using pf, this is astoundingly easy, see eg

http://www.bgnett.no/~peter/pf/en/bruteforce.html

If you go down this route, you might want to use expiretable
(/usr/ports/security/expiretable) to trim the contents of the table
after a while (I tend to use 24 hours expiry).
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
20:11:56 delilah spamd[26905]: 146.151.48.74: disconnected after 36099 seconds.

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


Re: Indiana goes to DST

2006-04-02 Thread hackmiester / Hunter Fuller
On Tuesday 28 March 2006 09:58, Jacob S wrote:
> On Tue, 28 Mar 2006 10:19:21 -0500
>
> DAve <[EMAIL PROTECTED]> wrote:
> > Not ever having had to configure DST before, any advice on a work
> > around since most OSes provide no DST for my timezone?
While we're on this subject, what do we do when DST is extended?
>
> Sure. Just pick a city in the Eastern Timezone that is _not_in Indiana.
> Then it will automatically follow DST at the appropriate time of year.
> Just about any city on the East Coast should do it.
>
> > tzsetup doesn't state whether DST will be set. Is it just as simple as
> >
> > #date -d dst?
>
> Not sure there, sorry.
>
> HTH,
> Jacob

-- 
--hackmiester
Walk a mile in my shoes and you will be a mile away in a new pair of shoes.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFD/yYl3ApzN91C7BcRAoVVAJ97uhjh30nQ4hd9bQ90gJqiwsLEfgCeKSrg
bVfqEeJ09WhO6Y51WHEHb6o=
=VTUd
-END PGP SIGNATURE-

-BEGIN GEEK CODE BLOCK-
Version: Geek Code v3.1 (PHP)
GCS/CM/E/IT d-@ s: a- C++$ UBLS*$ P+ L+++$ E- W++$ !N-- !o+ K-- !w-- !O-
M++$ V-- PS@ PE@ Y--? PGP++ !t--- 5--? !X-- !R-- tv-- b+ DI++ D++ G+ e
h r+++ z
--END GEEK CODE BLOCK--

Quick contact info:
Work: [EMAIL PROTECTED]
Personal: [EMAIL PROTECTED]
Large files/spam: [EMAIL PROTECTED]
GTalk:hackmiester/AIM:hackmiester1337/Y!:hackm1ester/IRC:irc.7sinz.net/7sinz


pgpWrAuOryDQ3.pgp
Description: PGP signature


Re: reconfiguring a package

2006-04-02 Thread Lars Cleary

Luiz Eduardo Guida Valmont wrote:

I'm sorry if this is one of those rtfm cases, but I've exhausted my options
so far (except asking for help here ^^).

When you "make install" a package, for some the first thing you get is a
screen where you choose some compile-time options that affect the package's
dependancies (eg. "postgresql support" when trying to install amarok). The
question is simple: is there a way or a make target that deletes my choices
and / or forces make to ask them again?

I tryed selecting everything for amarok and now both krb5 and heimdal are
indirect dependancies. That wouldn't pose a problem if they did not
conflict, but unfortunately they do.

Any help is appreciated...

--
[]'s,
Luiz Eduardo

man ports(7) should have all the info you might need.

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


Re: hunting for secure fileserver-connection!

2006-04-02 Thread Chuck Swiger
[EMAIL PROTECTED]@mgEDV.net wrote:
> the scenario:
> - freebsd-fileserver with encrypted HDD's (GELI) (1.5TB)
> - windows (sorry for that, it's a requirement) as client
> 
> the quest:
> - securely mount shared filesystems from the server from
>   the windows client w/o being open to sniffers/network
>   hacks (non-weak encryption required)
> - files should be accessible like with windows-fileserver
>   shares through UNC and/or drive-name(s)
> - server and clients should share the same network. (no
>   tunnelling etc...)
> - authentication should be done against local defined users
> 
> what we don't want:
> - VPN/IPSEC/... between the hosts
> - webdav
> 
> we've been looking on solutions like secure nfs over tcp,
> samba, etc... but except making it slower, there have been
> no real good solutions until yet.
> 
> anybody out there, who has a good advice on that?

If you don't trust CIFS/Samba enough to be secure against local sniffers, and
you won't run IPsec, you're left with odd things like Sun's SecureNFS software,
only I doubt that's available for a FreeBSD fileserver.

If you've got 1.5TB of storage, perhaps you should talk to Auspex or NetApp and
see what the NAS folk have to offer...

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


Re: reconfiguring a package

2006-04-02 Thread Erik Trulsson
On Sun, Apr 02, 2006 at 05:23:26PM -0300, Luiz Eduardo Guida Valmont wrote:
> I'm sorry if this is one of those rtfm cases, but I've exhausted my options
> so far (except asking for help here ^^).
> 
> When you "make install" a package, for some the first thing you get is a
> screen where you choose some compile-time options that affect the package's
> dependancies (eg. "postgresql support" when trying to install amarok). The
> question is simple: is there a way or a make target that deletes my choices
> and / or forces make to ask them again?

'make config' should do the trick.  This (as well as many other make
targets) are described in the ports(7) manpage.

Of course if you already have installed the port you will have to delete
and reinstall it to have it actually use the new settings.


> 
> I tryed selecting everything for amarok and now both krb5 and heimdal are
> indirect dependancies. That wouldn't pose a problem if they did not
> conflict, but unfortunately they do.
> 
> Any help is appreciated...
> 
> --
> []'s,
> Luiz Eduardo

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


-- 

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


Re: reconfiguring a package

2006-04-02 Thread Erik Nørgaard

Luiz Eduardo Guida Valmont wrote:

I'm sorry if this is one of those rtfm cases, but I've exhausted my options
so far (except asking for help here ^^).

When you "make install" a package, for some the first thing you get is a
screen where you choose some compile-time options that affect the package's
dependancies (eg. "postgresql support" when trying to install amarok). The
question is simple: is there a way or a make target that deletes my choices
and / or forces make to ask them again?


Use the make target, 'config', eg:

   # make config install clean

should do. Alternatively, you can simply delete the config from 
/var/db/ports/ that will clear any previous choices.


Erik
--
Ph: +34.666334818  web: www.locolomo.org
S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt
Subject ID:  9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72
Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Indiana goes to DST

2006-04-02 Thread Chad Leigh -- Shire.Net LLC


On Apr 2, 2006, at 2:37 PM, hackmiester / Hunter Fuller wrote:


On Tuesday 28 March 2006 09:58, Jacob S wrote:

On Tue, 28 Mar 2006 10:19:21 -0500

DAve <[EMAIL PROTECTED]> wrote:

Not ever having had to configure DST before, any advice on a work
around since most OSes provide no DST for my timezone?

While we're on this subject, what do we do when DST is extended?


I am sure that an update between now and next Spring will bring us  
updated timezones, so as long as you never update your machine will  
you be SOL, otherwise you will be ok


Chad


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


phpmyadmin and Access denied

2006-04-02 Thread Reinhold Platzoeder
Hi

I have a weird problem here

I have installed phpMyAdmin 2.8.0.2 from port

Apache version = apache-2.2.0_7
PHP version = php5-5.1.2_1
MySQL version = mysql-server-5.0.19


When I go to the index page I get the following error

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

I have configured the config.inc.php file and this is whats in it

> cat config.inc.php
http://www.violetlan.net/phpmyadmin/';

$cfg['blowfish_secret'] = 'whatever';

$cfg['Servers'][$i]['host']  = 'localhost';

$cfg['Servers'][$i]['auth_type'] = 'cookie';

$cfg['Servers'][$i]['user']  = 'root';

$cfg['Servers'][$i]['password']  = '';

$cfg['Servers'][$i]['connect_type']  = 'socket';

$cfg['Servers'][$i]['socket']= '/tmp/mysql.sock';

?>

Now the funny thing is that when I change the root password to having no
password I can get into phpmyadmin

Any ideas as to how I can fix this?

Thanks

-- 
Reinhold Platzoeder

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


Re: phpmyadmin and Access denied

2006-04-02 Thread Nicolas Blais
On Sunday 02 April 2006 18:18, Reinhold Platzoeder wrote:
> Hi
>
> I have a weird problem here
>
> I have installed phpMyAdmin 2.8.0.2 from port
>
> Apache version = apache-2.2.0_7
> PHP version = php5-5.1.2_1
> MySQL version = mysql-server-5.0.19
>
>
> When I go to the index page I get the following error
>
> #1045 - Access denied for user 'root'@'localhost' (using password: NO)
>
> I have configured the config.inc.php file and this is whats in it
>
> > cat config.inc.php
>
>  /* $FreeBSD: ports/databases/phpmyadmin/files/config.inc.php.sample,v
> 1.1 2005/12/05 11:37:27 garga Exp $ *
>  * Skeleton configuration file -- this file is empty on a fresh
>  * installaton of phpmyadmin.
>  *
>  * Copy any settings you want to override from config.defaults.php
>  *
>  */
> $cfg['PmaAbsoluteUri'] = 'http://www.violetlan.net/phpmyadmin/';
>
> $cfg['blowfish_secret'] = 'whatever';
>
> $cfg['Servers'][$i]['host']  = 'localhost';
>
> $cfg['Servers'][$i]['auth_type'] = 'cookie';
>
> $cfg['Servers'][$i]['user']  = 'root';
>
> $cfg['Servers'][$i]['password']  = '';
>
> $cfg['Servers'][$i]['connect_type']  = 'socket';
>
> $cfg['Servers'][$i]['socket']= '/tmp/mysql.sock';
>
> ?>
>
> Now the funny thing is that when I change the root password to having no
> password I can get into phpmyadmin
>
> Any ideas as to how I can fix this?
>
> Thanks

Try generating your config.inc.php from 
http://www.violetlan.net/phpmyadmin/scripts/setup.php

instead of making one. I had the same problem after an update from 2.7 to 2.8 
and this fixed it.

Nicolas.
-- 
FreeBSD 7.0-CURRENT #0: Sat Apr  1 10:05:34 EST 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpir2IIE7E0g.pgp
Description: PGP signature


Re: phpmyadmin and Access denied

2006-04-02 Thread Kevin Kinsey

Reinhold Platzoeder wrote:


Hi

I have a weird problem here

I have installed phpMyAdmin 2.8.0.2 from port

Apache version = apache-2.2.0_7
PHP version = php5-5.1.2_1
MySQL version = mysql-server-5.0.19


When I go to the index page I get the following error

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

I have configured the config.inc.php file and this is whats in it

 


cat config.inc.php
   


* 
* Copy any settings you want to override from config.defaults.php
* 
*/

$cfg['PmaAbsoluteUri'] = 'http://www.violetlan.net/phpmyadmin/';

$cfg['blowfish_secret'] = 'whatever';

$cfg['Servers'][$i]['host']  = 'localhost';

$cfg['Servers'][$i]['auth_type'] = 'cookie';

$cfg['Servers'][$i]['user']  = 'root';

$cfg['Servers'][$i]['password']  = '';

$cfg['Servers'][$i]['connect_type']  = 'socket';

$cfg['Servers'][$i]['socket']= '/tmp/mysql.sock';

?>

Now the funny thing is that when I change the root password to having no
password I can get into phpmyadmin

Any ideas as to how I can fix this?

Thanks
 



Run "mysql -u root" at the system's CLI, and you should get a clue.

My guess is that phpadmin is attempting to use "root" and "" as
its account name and pw for a MySQL login, and you have a password
for the root account other than "" (much as it should be).  Hence, when
you make the SQL root password into , it works   


HTH,

Kevin Kinsey

--
Pure drivel tends to drive ordinary drivel off of the TV screen.


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


Re: reconfiguring a package

2006-04-02 Thread Danny Pansters
On Sunday 02 April 2006 22:23, Luiz Eduardo Guida Valmont wrote:
> I'm sorry if this is one of those rtfm cases, but I've exhausted my options
> so far (except asking for help here ^^).
>
> When you "make install" a package, for some the first thing you get is a
> screen where you choose some compile-time options that affect the package's
> dependancies (eg. "postgresql support" when trying to install amarok). The
> question is simple: is there a way or a make target that deletes my choices
> and / or forces make to ask them again?

The proper way is to use 'make rmconfig'. Can also be done recursively.

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


Re: phpmyadmin and Access denied

2006-04-02 Thread Gerard Seibert
Nicolas Blais wrote:

> On Sunday 02 April 2006 18:18, Reinhold Platzoeder wrote:
> > Hi
> >
> > I have a weird problem here
> >
> > I have installed phpMyAdmin 2.8.0.2 from port
> >
> > Apache version = apache-2.2.0_7
> > PHP version = php5-5.1.2_1
> > MySQL version = mysql-server-5.0.19
> >
> >
> > When I go to the index page I get the following error
> >
> > #1045 - Access denied for user 'root'@'localhost' (using password:
> > NO)
> >
> > I have configured the config.inc.php file and this is whats in it
> >
> > > cat config.inc.php
> >
> >  > /* $FreeBSD:
> > ports/databases/phpmyadmin/files/config.inc.php.sample,v 1.1
> > 2005/12/05 11:37:27 garga Exp $ *
> >  * Skeleton configuration file -- this file is empty on a fresh
> >  * installaton of phpmyadmin.
> >  *
> >  * Copy any settings you want to override from config.defaults.php
> >  *
> >  */
> > $cfg['PmaAbsoluteUri'] = 'http://www.violetlan.net/phpmyadmin/';
> >
> > $cfg['blowfish_secret'] = 'whatever';
> >
> > $cfg['Servers'][$i]['host']  = 'localhost';
> >
> > $cfg['Servers'][$i]['auth_type'] = 'cookie';
> >
> > $cfg['Servers'][$i]['user']  = 'root';
> >
> > $cfg['Servers'][$i]['password']  = '';
> >
> > $cfg['Servers'][$i]['connect_type']  = 'socket';
> >
> > $cfg['Servers'][$i]['socket']= '/tmp/mysql.sock';
> >
> > ?>
> >
> > Now the funny thing is that when I change the root password to
> > having no password I can get into phpmyadmin
> >
> > Any ideas as to how I can fix this?
> >
> > Thanks
>
> Try generating your config.inc.php from
> http://www.violetlan.net/phpmyadmin/scripts/setup.php
>
> instead of making one. I had the same problem after an update from
> 2.7 to 2.8 and this fixed it.
>
> Nicolas.

Make this change:

$cfg['Servers'][$i]['auth_type'] = 'http';

I have that in my config file with a blank password field. It works 
fine.

-- 
Gerard Seibert
[EMAIL PROTECTED]

PGP: http://www.seibercom.net/sig/gerard.asc
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault

2006-04-02 Thread Andrew Reitz

Hello,

I am a long time FreeBSD user of FreeBSD 4.x and Apache 1.3.x. I have  
decided to "get with the times", and upgrade to FreeBSD 6 and  
Apache2. So far, my experience with FreeBSD 6 has been great, but I  
appear to have bumped into a problem with running Apache 2 and php4  
together. By itself, Apache is working fine spitting out static  
pages. However, whenever I try to load a page that needs to go  
through the PHP interpreter, I get a segmentation fault:


nr:/usr/local/etc# tail /var/log/httpd-error.log
[Sun Apr 02 15:54:47 2006] [notice] Graceful restart requested, doing  
restart
[Sun Apr 02 15:54:48 2006] [warn] (22)Invalid argument: Failed to  
enable the 'httpready' Accept Filter
[Sun Apr 02 15:54:49 2006] [notice] Digest: generating secret for  
digest authentication ...

[Sun Apr 02 15:54:49 2006] [notice] Digest: done
[Sun Apr 02 15:54:50 2006] [notice] Apache/2.2.0 (FreeBSD) mod_ssl/ 
2.2.0 OpenSSL/0.9.7e-p1 DAV/2 configured -- resuming normal operations
[Sun Apr 02 15:54:51 2006] [notice] child pid 46107 exit signal  
Segmentation fault (11)
[Sun Apr 02 15:54:55 2006] [notice] child pid 46108 exit signal  
Segmentation fault (11)
[Sun Apr 02 15:54:59 2006] [notice] child pid 46109 exit signal  
Segmentation fault (11)
[Sun Apr 02 15:57:38 2006] [notice] child pid 46110 exit signal  
Segmentation fault (11)
[Sun Apr 02 15:58:15 2006] [notice] child pid 46111 exit signal  
Segmentation fault (11)


And here is some information about my system:

nr:/usr/local/etc# uname -a
FreeBSD nr.tool.no 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Mon Mar  
13 01:11:05 PST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ 
PARAMORE  i386

nr:/usr/local/etc# pkg_info |grep -i apache
apache-2.2.0_7  Version 2.2 of Apache web server with prefork MPM.
php4-4.4.2_1PHP Scripting Language (Apache Module and CLI)
nr:/usr/local/etc# pkg_info |grep -i php
gallery-1.5.2.2 A slick web based photo album written using PHP
libmcrypt-2.5.7_2   Multi-cipher cryptographic library (used in PHP)
php4-4.4.2_1PHP Scripting Language (Apache Module and CLI)
php4-bz2-4.4.2_1The bz2 shared extension for php
php4-gd-4.4.2_1 The gd shared extension for php
php4-gettext-4.4.2_1 The gettext shared extension for php
php4-mbstring-4.4.2_1 The mbstring shared extension for php
php4-mcrypt-4.4.2_1 The mcrypt shared extension for php
php4-mysql-4.4.2_1  The mysql shared extension for php
php4-openssl-4.4.2_1 The openssl shared extension for php
php4-pcre-4.4.2_1   The pcre shared extension for php
php4-session-4.4.2_1 The session shared extension for php
php4-zlib-4.4.2_1   The zlib shared extension for php
phpMyAdmin-2.7.0.2  A set of PHP-scripts to manage MySQL over the web

I have done some Googling, and it seems like there are problems when  
Apache is compiled with threads, but I haven't found anything that I  
consider to be definitive. And of course, while I installed  
everything from ports, I don't remember which knobs I twisted when  
installing. :)


Can anyone supply any hints as to how I can get more debugging  
information (I don't see any core files anywhere), and/or how I can  
fix this problem?


Thanks much in advance,
-Andy Reitz

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


Re: Linux migration

2006-04-02 Thread Norberto Meijome
On Sun, 02 Apr 2006 12:40:21 -0500
Kevin Kinsey <[EMAIL PROTECTED]> wrote:

> Nonetheless, it might be a good idea to hack together some kind of
> reminder script for some of the RH commands; note, as a somewhat
> related example, how many FTPD's accept both "ls" and "dir"  You
> could (and I have, before) alias "RHcommand"  "FBSDequivalent", but
> that ends up not teaching anybody anything, and adds a layer of murk
> between the user and the OS; a layer that is not needed and
> detrimental for the most part.

nice one... /usr/ports/sysutils/rh-transition ? :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ifconfig wepkey on 6.0

2006-04-02 Thread kalin mintchev

hi..  i'm trying again to make my wepkey work..

i load manually wlan_wep. then do this in order:
ifconfig wi0 ssid here-and-now channel 6
ifocnfig wi0 wepmode on
ifconfig wi0 wepkey 1:0x7924092374273503745WEPKEYSTUFF
dhclient wi0

using bind dhclient

i get:
wi0: timeout in wi_cmd 0x0002; event status 0x8008
wi0: timeout in wi_cmd 0x; event status 0x8008
etc.. then it says that the network is down and the wi0 status is changed
to DOWN..

i'm really in need to fix this here as i'm on a convention that uses 128
bit key and i cant get a connection... and i need it badly..

thanks a lot...

>>>   according to the man page of ifconfig in 6.0 the wepkey should be 5
> or
>>> 13 characters
>> ^ascii
>> comes out to a bit more in hex :-)
>> just enter  wepkey 309EFC5AB8
>
>   what do you mean?
>
>   i'm confused now...  sorry. the key is generated by the point - wireless
> router. and i get an hex string back..  no matter what i put in as
> password (or how many ascii characters) i always get the 128 bit hex. so
> when i try it with ifconfig i always get the same error - even without the
> index and the 0x...
>
> ifconfig: SIOCS80211: Invalid argument
>
>> randy
>
>  thanks...
>
>
>
>
>


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


Re: phpmyadmin and Access denied

2006-04-02 Thread Reinhold Platzoeder
On Sun, 2 Apr 2006 17:51:50 -0500
Gerard Seibert <[EMAIL PROTECTED]> wrote:

> Nicolas Blais wrote:
> 
> > On Sunday 02 April 2006 18:18, Reinhold Platzoeder wrote:
> > > Hi
> > >
> > > I have a weird problem here
> > >
> > > I have installed phpMyAdmin 2.8.0.2 from port
> > >
> > > Apache version = apache-2.2.0_7
> > > PHP version = php5-5.1.2_1
> > > MySQL version = mysql-server-5.0.19
> > >
> > >
> > > When I go to the index page I get the following error
> > >
> > > #1045 - Access denied for user 'root'@'localhost' (using password:
> > > NO)
> > >
> > > I have configured the config.inc.php file and this is whats in it
> > >
> > > > cat config.inc.php
> > >
> > >  > > /* $FreeBSD:
> > > ports/databases/phpmyadmin/files/config.inc.php.sample,v 1.1
> > > 2005/12/05 11:37:27 garga Exp $ *
> > >  * Skeleton configuration file -- this file is empty on a fresh
> > >  * installaton of phpmyadmin.
> > >  *
> > >  * Copy any settings you want to override from config.defaults.php
> > >  *
> > >  */
> > > $cfg['PmaAbsoluteUri'] = 'http://www.violetlan.net/phpmyadmin/';
> > >
> > > $cfg['blowfish_secret'] = 'whatever';
> > >
> > > $cfg['Servers'][$i]['host']  = 'localhost';
> > >
> > > $cfg['Servers'][$i]['auth_type'] = 'cookie';
> > >
> > > $cfg['Servers'][$i]['user']  = 'root';
> > >
> > > $cfg['Servers'][$i]['password']  = '';
> > >
> > > $cfg['Servers'][$i]['connect_type']  = 'socket';
> > >
> > > $cfg['Servers'][$i]['socket']= '/tmp/mysql.sock';
> > >
> > > ?>
> > >
> > > Now the funny thing is that when I change the root password to
> > > having no password I can get into phpmyadmin
> > >
> > > Any ideas as to how I can fix this?
> > >
> > > Thanks
> >
> > Try generating your config.inc.php from
> > http://www.violetlan.net/phpmyadmin/scripts/setup.php
> >
> > instead of making one. I had the same problem after an update from
> > 2.7 to 2.8 and this fixed it.
> >
> > Nicolas.
> 
> Make this change:
> 
> $cfg['Servers'][$i]['auth_type'] = 'http';
> 
> I have that in my config file with a blank password field. It works 
> fine.
> 

Thanks
I was not aware of the setup script
That worked for me

-- 
Reinhold Platzoeder

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


Re: Passing options to Newfs in the FreeBSD installer

2006-04-02 Thread valentin_nils

Hi Erik,

I just wanted to say thank you for pointing me into the right direction.

Turns out, I had a somewhat skewed understanding what "newfs" is for. I
understand now that those options noexec and nosuid are to be passed to the
mount command and the quota options must be enabled in the kernel first.


Thank you also especially for the online man page link. That defintely 
helped a

lot as my installation always fell (understandably ;-)

Best regards

Nils Valentin
http://www.be-known-online.com


Quoting Erik Trulsson <[EMAIL PROTECTED]>:

On Sun, Apr 02, 2006 at 04:24:48PM +, 
[EMAIL PROTECTED] wrote:

Hello FreeBSD Fans ;-),

I have a probably simple question,which kept me busy for several 
days by now.
I have a few years experience with Linux and would like to extend my 
knowledge

now to the BSD*s.

Hopefully my question is not too stupid so that somebody can point 
me into the

correct direction. Anyway here we go...

During the FreeBSD installation I would like to pass parameters to 
the programm

which creates the filesystem *newfs if I understand that correctly.

I would like to pass the following options: nosuid, noexec, userquota &
groupquota to some partitions.

Whatever I do - even when I want to pass only a single option - I 
get as a error

message "Invalid argument"

1) Are the above options "nosuid, noexec, userquota, groupquota" 
valid options
to be passed to the installer programme newfs or do I have some 
misspells here

?


Those are not options that can be passed to newfs or used when creating the
filesystem.  They are options for mount(8) and can be put in /etc/fstab to
be used when you are mounting the filesystem. (See the mount(8) and fstab(5)
manpages.)




2) How would I separate several options in the installers input screen after
pressing "G", by komma (,) by semicolon (;) or just by space ( ) ?


Assuming that you are still talking about options to newfs, you write the
options exactly as you would do on the command line.
(See the newfs(8) manpage for available options.)

(If you do not have a FreeBSD system available with manpages installed, they
can also be found at http://www.freebsd.org/cgi/man.cgi )



I did search the mailing lists up and down and consulted my book 
from Michael

Lucas and googled, but somehow I didnt find the answer.

I would appreciate any replies.

Best regards

Nils Valentin
http://www.be-known-online.com


--

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





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


Re: Postfix: unable to deliver this message after 4 days

2006-04-02 Thread James Long
As your subject indicates, this is not a FreeBSD problem.

Postfix support is available via their mailing lists.  Please see
http://www.postfix.org/lists.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Filesystem layout with sperated /boot partition

2006-04-02 Thread valentin_nils
Hello FreeBSD Fans,

I wanted to create a new system and was thinking about the following layout.

Size | Mountpoint | Device name | File system
100M /boot /dev/ad2s1a UFS2+S
1024MB --- /dev/ad2s1b SWAP
15GB / /dev/ad2s1c UFS2

I want to put /boot on its own partition, but somehow I dont have a lot of luck.
I can install the OS, but when I reboot the bootloader will not boot.


No /boot/loader
...
Default: 0:ad(0,a)/boot/kernel/kernel
boot:
No /boot/kernel/kernel
...

1) I wouldnt mind on which partition "/boot" or "/" sits or what its named, but
I would like to separate "/boot" on a different partition and it seems like it
wouldnt boot when I do this. Is this just a matter of updating the bootloader ?
Wouldnt the installer do that automatically ?

2) The part which I dont get is why is "/" always ad2s1a - even when I create
"/boot" first ? ("/boot" will become f.e. ad2s1d) and SWAP will become ad2s1b.

So what I end up with is something like

Size | Mountpoint | Device name | File system
15GB / /dev/ad2s1a UFS2
1024MB --- /dev/ad2s1b SWAP
100M /boot /dev/ad2s1d UFS2+S


Any replies much appreciated.

Best regards

Nils Valentin
http://www.be-known-online.com


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


Re: FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault

2006-04-02 Thread RJ
 Something doesn't seem right with those ports.
  When I have setup a server I use php4-4.4.2_1,  mysql-server-4.1.18_2,
php4-extensions-1.0 and apache.

  I think php4-4.4.2_1 and  php4-mysql-4.4.2_1 will cause a conflict.

 Some correct me if I'm wrong on this.


- Original Message - 
From: "Andrew Reitz" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, April 02, 2006 6:56 PM
Subject: FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault


> Hello,
>
> I am a long time FreeBSD user of FreeBSD 4.x and Apache 1.3.x. I have
> decided to "get with the times", and upgrade to FreeBSD 6 and
> Apache2. So far, my experience with FreeBSD 6 has been great, but I
> appear to have bumped into a problem with running Apache 2 and php4
> together. By itself, Apache is working fine spitting out static
> pages. However, whenever I try to load a page that needs to go
> through the PHP interpreter, I get a segmentation fault:
>
> nr:/usr/local/etc# tail /var/log/httpd-error.log
> [Sun Apr 02 15:54:47 2006] [notice] Graceful restart requested, doing
> restart
> [Sun Apr 02 15:54:48 2006] [warn] (22)Invalid argument: Failed to
> enable the 'httpready' Accept Filter
> [Sun Apr 02 15:54:49 2006] [notice] Digest: generating secret for
> digest authentication ...
> [Sun Apr 02 15:54:49 2006] [notice] Digest: done
> [Sun Apr 02 15:54:50 2006] [notice] Apache/2.2.0 (FreeBSD) mod_ssl/
> 2.2.0 OpenSSL/0.9.7e-p1 DAV/2 configured -- resuming normal operations
> [Sun Apr 02 15:54:51 2006] [notice] child pid 46107 exit signal
> Segmentation fault (11)
> [Sun Apr 02 15:54:55 2006] [notice] child pid 46108 exit signal
> Segmentation fault (11)
> [Sun Apr 02 15:54:59 2006] [notice] child pid 46109 exit signal
> Segmentation fault (11)
> [Sun Apr 02 15:57:38 2006] [notice] child pid 46110 exit signal
> Segmentation fault (11)
> [Sun Apr 02 15:58:15 2006] [notice] child pid 46111 exit signal
> Segmentation fault (11)
>
> And here is some information about my system:
>
> nr:/usr/local/etc# uname -a
> FreeBSD nr.tool.no 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Mon Mar
> 13 01:11:05 PST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/
> PARAMORE  i386
> nr:/usr/local/etc# pkg_info |grep -i apache
> apache-2.2.0_7  Version 2.2 of Apache web server with prefork MPM.
> php4-4.4.2_1PHP Scripting Language (Apache Module and CLI)
> nr:/usr/local/etc# pkg_info |grep -i php
> gallery-1.5.2.2 A slick web based photo album written using PHP
> libmcrypt-2.5.7_2   Multi-cipher cryptographic library (used in PHP)
> php4-4.4.2_1PHP Scripting Language (Apache Module and CLI)
> php4-bz2-4.4.2_1The bz2 shared extension for php
> php4-gd-4.4.2_1 The gd shared extension for php
> php4-gettext-4.4.2_1 The gettext shared extension for php
> php4-mbstring-4.4.2_1 The mbstring shared extension for php
> php4-mcrypt-4.4.2_1 The mcrypt shared extension for php
> php4-mysql-4.4.2_1  The mysql shared extension for php
> php4-openssl-4.4.2_1 The openssl shared extension for php
> php4-pcre-4.4.2_1   The pcre shared extension for php
> php4-session-4.4.2_1 The session shared extension for php
> php4-zlib-4.4.2_1   The zlib shared extension for php
> phpMyAdmin-2.7.0.2  A set of PHP-scripts to manage MySQL over the web
>
> I have done some Googling, and it seems like there are problems when
> Apache is compiled with threads, but I haven't found anything that I
> consider to be definitive. And of course, while I installed
> everything from ports, I don't remember which knobs I twisted when
> installing. :)
>
> Can anyone supply any hints as to how I can get more debugging
> information (I don't see any core files anywhere), and/or how I can
> fix this problem?
>
> Thanks much in advance,
> -Andy Reitz
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006
>
>



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006

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


Re: Filesystem layout with sperated /boot partition

2006-04-02 Thread [EMAIL PROTECTED]
On 4/2/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hello FreeBSD Fans,
>
> I wanted to create a new system and was thinking about the following layout.
>
> Size | Mountpoint | Device name | File system
> 100M /boot /dev/ad2s1a UFS2+S
> 1024MB --- /dev/ad2s1b SWAP
> 15GB / /dev/ad2s1c UFS2
>
> I want to put /boot on its own partition, but somehow I dont have a lot of 
> luck.
> I can install the OS, but when I reboot the bootloader will not boot.
>
>
> No /boot/loader
> ...
> Default: 0:ad(0,a)/boot/kernel/kernel
> boot:
> No /boot/kernel/kernel

Because it instinctively (without the MBR boot manager)
looks for /boot/kernel/kernel in the first partition of the
first active slice on the first drive.

> ...
>
> 1) I wouldnt mind on which partition "/boot" or "/" sits or what its named, 
> but
> I would like to separate "/boot" on a different partition

Why you would want to do this is a bit unclear.

>
> 2) The part which I dont get is why is "/" always ad2s1a - even when I create
> "/boot" first ? ("/boot" will become f.e. ad2s1d) and SWAP will become ad2s1b.
>
> So what I end up with is something like
>
> Size | Mountpoint | Device name | File system
> 15GB / /dev/ad2s1a UFS2
> 1024MB --- /dev/ad2s1b SWAP
> 100M /boot /dev/ad2s1d UFS2+S

That's a sysinstall thing.  If you were to muck about
and install your base system without sysinstall you
could place it wherever.  And it probably still won't
boot.

Part of the reason linux wants to make /boot its
own partition is their ugly habit of not seperating
anything else from root.

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


Re: Filesystem layout with sperated /boot partition

2006-04-02 Thread valentin_nils

Hello,




Because it instinctively (without the MBR boot manager)
looks for /boot/kernel/kernel in the first partition of the
first active slice on the first drive.


But I have choosen to install the Boot loader. ;-o



...

1) I wouldnt mind on which partition "/boot" or "/" sits or what its 
named, but

I would like to separate "/boot" on a different partition


Why you would want to do this is a bit unclear.


I would like to use different mount option later on each partitions - just for
the fun of it ;-). That wouldnt be possible if all is on one partititon. Would
that make any sense ?







That's a sysinstall thing.  If you were to muck about
and install your base system without sysinstall you
could place it wherever.  And it probably still won't
boot.


So whats the solution to this ??? Not installing FreeBSD ? Develop my own Boot
loader ?



Part of the reason linux wants to make /boot its
own partition is their ugly habit of not seperating
anything else from root.



I decide not to comment on this anymore. I didnt came here to start a 
flame war

of the OS's. Let's not go down that road (most come back uglier than before),
lets focus on the technical issue instead.

Best regards

Nils Valentin

http://www.be-known-online.com



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


Fw: FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault

2006-04-02 Thread RJ

- Original Message - 
From: "RJ" <[EMAIL PROTECTED]>
To: "Andrew Reitz" <[EMAIL PROTECTED]>
Cc: 
Sent: Sunday, April 02, 2006 8:02 PM
Subject: Re: FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault


> Something doesn't seem right with those ports.
>   When I have setup a server I use php4-4.4.2_1,  mysql-server-4.1.18_2,
> php4-extensions-1.0 and apache.
>
>   I think php4-4.4.2_1 and  php4-mysql-4.4.2_1 will cause a conflict.
>
>  Some correct me if I'm wrong on this.
>
>
> - Original Message - 
> From: "Andrew Reitz" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, April 02, 2006 6:56 PM
> Subject: FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault
>
>
> > Hello,
> >
> > I am a long time FreeBSD user of FreeBSD 4.x and Apache 1.3.x. I have
> > decided to "get with the times", and upgrade to FreeBSD 6 and
> > Apache2. So far, my experience with FreeBSD 6 has been great, but I
> > appear to have bumped into a problem with running Apache 2 and php4
> > together. By itself, Apache is working fine spitting out static
> > pages. However, whenever I try to load a page that needs to go
> > through the PHP interpreter, I get a segmentation fault:
> >
> > nr:/usr/local/etc# tail /var/log/httpd-error.log
> > [Sun Apr 02 15:54:47 2006] [notice] Graceful restart requested, doing
> > restart
> > [Sun Apr 02 15:54:48 2006] [warn] (22)Invalid argument: Failed to
> > enable the 'httpready' Accept Filter
> > [Sun Apr 02 15:54:49 2006] [notice] Digest: generating secret for
> > digest authentication ...
> > [Sun Apr 02 15:54:49 2006] [notice] Digest: done
> > [Sun Apr 02 15:54:50 2006] [notice] Apache/2.2.0 (FreeBSD) mod_ssl/
> > 2.2.0 OpenSSL/0.9.7e-p1 DAV/2 configured -- resuming normal operations
> > [Sun Apr 02 15:54:51 2006] [notice] child pid 46107 exit signal
> > Segmentation fault (11)
> > [Sun Apr 02 15:54:55 2006] [notice] child pid 46108 exit signal
> > Segmentation fault (11)
> > [Sun Apr 02 15:54:59 2006] [notice] child pid 46109 exit signal
> > Segmentation fault (11)
> > [Sun Apr 02 15:57:38 2006] [notice] child pid 46110 exit signal
> > Segmentation fault (11)
> > [Sun Apr 02 15:58:15 2006] [notice] child pid 46111 exit signal
> > Segmentation fault (11)
> >
> > And here is some information about my system:
> >
> > nr:/usr/local/etc# uname -a
> > FreeBSD nr.tool.no 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Mon Mar
> > 13 01:11:05 PST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/
> > PARAMORE  i386
> > nr:/usr/local/etc# pkg_info |grep -i apache
> > apache-2.2.0_7  Version 2.2 of Apache web server with prefork MPM.
> > php4-4.4.2_1PHP Scripting Language (Apache Module and CLI)
> > nr:/usr/local/etc# pkg_info |grep -i php
> > gallery-1.5.2.2 A slick web based photo album written using PHP
> > libmcrypt-2.5.7_2   Multi-cipher cryptographic library (used in PHP)
> > php4-4.4.2_1PHP Scripting Language (Apache Module and CLI)
> > php4-bz2-4.4.2_1The bz2 shared extension for php
> > php4-gd-4.4.2_1 The gd shared extension for php
> > php4-gettext-4.4.2_1 The gettext shared extension for php
> > php4-mbstring-4.4.2_1 The mbstring shared extension for php
> > php4-mcrypt-4.4.2_1 The mcrypt shared extension for php
> > php4-mysql-4.4.2_1  The mysql shared extension for php
> > php4-openssl-4.4.2_1 The openssl shared extension for php
> > php4-pcre-4.4.2_1   The pcre shared extension for php
> > php4-session-4.4.2_1 The session shared extension for php
> > php4-zlib-4.4.2_1   The zlib shared extension for php
> > phpMyAdmin-2.7.0.2  A set of PHP-scripts to manage MySQL over the web
> >
> > I have done some Googling, and it seems like there are problems when
> > Apache is compiled with threads, but I haven't found anything that I
> > consider to be definitive. And of course, while I installed
> > everything from ports, I don't remember which knobs I twisted when
> > installing. :)
> >
> > Can anyone supply any hints as to how I can get more debugging
> > information (I don't see any core files anywhere), and/or how I can
> > fix this problem?
> >
> > Thanks much in advance,
> > -Andy Reitz
> >
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> >
> >
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date:
31/03/2006
> >
> >
>



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006

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


Re: FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault

2006-04-02 Thread Andrew Reitz


On Apr 2, 2006, at 5:02 PM, RJ wrote:


 Something doesn't seem right with those ports.
  When I have setup a server I use php4-4.4.2_1,  mysql- 
server-4.1.18_2,

php4-extensions-1.0 and apache.

  I think php4-4.4.2_1 and  php4-mysql-4.4.2_1 will cause a conflict.

 Some correct me if I'm wrong on this.


Ni RJ,

I certainly hope that these two ports aren't in conflict -- because  
they are listed together as dependencies on 56 ports (according to my  
'/usr/ports/INDEX-6' file). It looks like I got the php4-mysql  
package when I installed phpMyAdmin (which is how I noticed that PHP  
wasn't working, btw). Here is the relevant line from my INDEX-6 file:


nr:/usr/ports$ grep ^phpMyAdmin INDEX-6
phpMyAdmin-2.7.0.2|/usr/ports/databases/phpmyadmin|/usr/local|A set  
of PHP-scripts to manage MySQL over the web|/usr/ports/databases/ 
phpmyadmin/pkg-descr|[EMAIL PROTECTED]|databases www|| 
apache-1.3.34_4 expat-2.0.0_1 fontconfig-2.3.2_3,1 freetype2-2.1.10_3  
jpeg-6b_4 ldconfig_compat-1.0_6 libdrm-2.0_1 libltdl-1.5.22  
libmcrypt-2.5.7_2 mysql-client-4.1.18_1 pdflib-6.0.3 pecl- 
pdflib-2.0.4 perl-5.8.8 php4-4.4.2_1 php4-bz2-4.4.2_1 php4-gd-4.4.2_1  
php4-mbstring-4.4.2_1 php4-mcrypt-4.4.2_1 php4-mysql-4.4.2_1 php4- 
openssl-4.4.2_1 php4-pcre-4.4.2_1 php4-session-4.4.2_1 php4- 
zlib-4.4.2_1 pkgconfig-0.20 png-1.2.8_3 t1lib-5.1.0_1,1 xorg- 
libraries-6.9.0|http://www.phpmyadmin.net/|||


I would tend to trust the dependency list contained in the port, but  
I'm willing to try uninstalling the php4-mysql package if you think  
it will help.


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


Re: Filesystem layout with sperated /boot partition

2006-04-02 Thread Erik Trulsson
On Mon, Apr 03, 2006 at 02:33:42AM +, [EMAIL PROTECTED] wrote:
> Hello FreeBSD Fans,
> 
> I wanted to create a new system and was thinking about the following layout.
> 
> Size | Mountpoint | Device name | File system
> 100M /boot /dev/ad2s1a UFS2+S
> 1024MB --- /dev/ad2s1b SWAP
> 15GB / /dev/ad2s1c UFS2
> 
> I want to put /boot on its own partition, but somehow I dont have a lot of 
> luck.
> I can install the OS, but when I reboot the bootloader will not boot.

Don't do that.  You can not have /boot as a separate partition.  It just
contains the kernel and the loader.  The other things that are needed for
booting (like /bin/sh or /sbin/mount) reside elsewhere.  (Having /boot as a
separate partition is apparently some Linux-specific convention.)

What is normally done under FreeBSD when you want a small boot partition is
to create /usr and /var as separate partitions which will let you create a
small (100M) '/' partition.  (You will probably also want either a separate
/home partition for user home directories, or let them reside under
/usr/home.  (I think the latter is the default, but I am not 100% sure.)


> 
> 
> No /boot/loader
> ...
> Default: 0:ad(0,a)/boot/kernel/kernel
> boot:
> No /boot/kernel/kernel
> ...
> 
> 1) I wouldnt mind on which partition "/boot" or "/" sits or what its named, 
> but
> I would like to separate "/boot" on a different partition and it seems like it
> wouldnt boot when I do this. Is this just a matter of updating the bootloader 
> ?
> Wouldnt the installer do that automatically ?

See above.  You can't do that.

> 
> 2) The part which I dont get is why is "/" always ad2s1a - even when I create
> "/boot" first ? ("/boot" will become f.e. ad2s1d) and SWAP will become ad2s1b.

You need to boot from "/" and it should be partition 'a' on the slice.  It
is probably possible to change this, but it would be much more pain and
trouble than it is worth.

> 
> So what I end up with is something like
> 
> Size | Mountpoint | Device name | File system
> 15GB / /dev/ad2s1a UFS2
> 1024MB --- /dev/ad2s1b SWAP
> 100M /boot /dev/ad2s1d UFS2+S
> 
> 
> Any replies much appreciated.

A good place to start reading is the online handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
especially the chapter on installing FreeBSD:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html
The FAQ at http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/  might also
prove helpful.

> 
> Best regards
> 
> Nils Valentin
> http://www.be-known-online.com
> 

-- 

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


How to recover /usr and /home directory

2006-04-02 Thread Edwin D. Vinas
Hi,

I have a previous 40GB HDD which crashed during power outage and now no
longer repairable. Before I installed a new HDD, I can still see the
contents of that defective hard disk when booting from a single user mode.
Now, I set it up as slave and installed a new FreeBSD on the new master HDD.
But then, when I mounted the old hard disk, I can no longer see any content
in my /usr and /home directories. These directories are the ones with "hard
error reading" blocks which made FreeBSD not to continue booting due to
unending and irrepariable fsck commands on this filesystem. All my website
files and programs are on that old HDD especially in the /usr directory.
Does the new setup master/slave have somehow caused those files hidden? How
do I mount even the fragmented blocks? Any suggestion on how I can recover
my files? Why is FreeBSD so susceptible to fragmentations when suddenly
turned off or when there is a power outage?

This is what I don't like with FreeBSD; it does not care too much on data!
Even the fsck doesn't tell you that the hard disk is no longer usable as it
will still prompt you to do fsck over and over again. And now, my /usr and
/home suddenly disappeared when mounted. I can still see these two
directories last week but now it seems they're gone.


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


Re: How to recover /usr and /home directory

2006-04-02 Thread Olivier Nicole
> I have a previous 40GB HDD which crashed during power outage and now no
> longer repairable. Before I installed a new HDD, I can still see the
> contents of that defective hard disk when booting from a single user mode.
> Now, I set it up as slave and installed a new FreeBSD on the new master HDD.
> But then, when I mounted the old hard disk, I can no longer see any content
> in my /usr and /home directories. These directories are the ones with "hard


If the old disk gave you access to data when booted in single user,
why not keep it master, put the new disk in slave, boot single user,
mount what you need and copy the information?

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


Re: Filesystem layout with sperated /boot partition

2006-04-02 Thread valentin_nils

Hi Eric,

Thanks for the reply.  I have now a better understanding whats possible with
FreeBSD. One question (last one) which I could not find an answer to in the
online manual is :

How would you do a Dual or multi OS boot machine f.e. with Windows on 
the first

disk, first slice, first partition and FreeBSD on another partition ?

Would I need a boot floppy or perhaps its not possible at all ?

Best regards

Nils Valentin

http://www.be-known-online.com



Quoting Erik Trulsson <[EMAIL PROTECTED]>:

On Mon, Apr 03, 2006 at 02:33:42AM +, 
[EMAIL PROTECTED] wrote:

Hello FreeBSD Fans,

I wanted to create a new system and was thinking about the following layout.

Size | Mountpoint | Device name | File system
100M /boot /dev/ad2s1a UFS2+S
1024MB --- /dev/ad2s1b SWAP
15GB / /dev/ad2s1c UFS2

I want to put /boot on its own partition, but somehow I dont have a 
lot of luck.

I can install the OS, but when I reboot the bootloader will not boot.


Don't do that.  You can not have /boot as a separate partition.  It just
contains the kernel and the loader.  The other things that are needed for
booting (like /bin/sh or /sbin/mount) reside elsewhere.  (Having /boot as a
separate partition is apparently some Linux-specific convention.)

What is normally done under FreeBSD when you want a small boot partition is
to create /usr and /var as separate partitions which will let you create a
small (100M) '/' partition.  (You will probably also want either a separate
/home partition for user home directories, or let them reside under
/usr/home.  (I think the latter is the default, but I am not 100% sure.)





No /boot/loader
...
Default: 0:ad(0,a)/boot/kernel/kernel
boot:
No /boot/kernel/kernel
...

1) I wouldnt mind on which partition "/boot" or "/" sits or what its 
named, but
I would like to separate "/boot" on a different partition and it 
seems like it
wouldnt boot when I do this. Is this just a matter of updating the 
bootloader ?

Wouldnt the installer do that automatically ?


See above.  You can't do that.



2) The part which I dont get is why is "/" always ad2s1a - even when 
I create
"/boot" first ? ("/boot" will become f.e. ad2s1d) and SWAP will 
become ad2s1b.


You need to boot from "/" and it should be partition 'a' on the slice.  It
is probably possible to change this, but it would be much more pain and
trouble than it is worth.



So what I end up with is something like

Size | Mountpoint | Device name | File system
15GB / /dev/ad2s1a UFS2
1024MB --- /dev/ad2s1b SWAP
100M /boot /dev/ad2s1d UFS2+S


Any replies much appreciated.


A good place to start reading is the online handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
especially the chapter on installing FreeBSD:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html
The FAQ at http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/  might also
prove helpful.



Best regards

Nils Valentin
http://www.be-known-online.com



--

Erik Trulsson
[EMAIL PROTECTED]





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


Mail Merging

2006-04-02 Thread Carlos Silva
hi,

someone know a way to merge e-mails?
my intention is to merge old gziped mailing list archives on my mail account.

-- 
Best Regards,

Carlos Silva, CSilva
Web: http://www.csilva.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


watch(8), xwatchwin as courseware [solved by script/tail]

2006-04-02 Thread Andrew Pantyukhin
Hi. I have to teach no-frills freebsd courses. I wonder how
I can arrange all the students seeing on their displays what
I'm typing in my xterm in real-time. I haven't been very
successful with xwatchwin (I've been able to see it in action
but it wasn't very pleasant, and it dumps core on me lately).

watch(1) seems to be ideal for my purposes - students log
on to my box (maybe even gain root privileges if I don't
tweak devfs) and watch my pty. They can even copy and
paste what I'm typing in their xterms. But there's a show-
stopper: it seems that only one snp(4) device can attach to
a tty at the same time and only one watch(1) can use a
snp(4) at the same time.

So what do you suggest?

Hmm... Just as I was typing this I saw a simple solution. I
can use script(1) dumping to a file with -t0 (flush on every
char) and people can just tail -f this file. Performance is
great on a local machine, but is very laggy over NFS... I
tried 'mount -o acregmin=0,acregmax=0' and the
perfomance is almost real-time now.

Great :-) It really is true that many solutions come just as
soon as you try to describe your problem clearly :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mail Merging

2006-04-02 Thread Skylar Thompson

Carlos Silva wrote:


hi,

someone know a way to merge e-mails?
my intention is to merge old gziped mailing list archives on my mail account.

 


What format (e.g. mbox, maildir) are the archives in?

--
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/



signature.asc
Description: OpenPGP digital signature


Re: watch(8), xwatchwin as courseware [solved by script/tail]

2006-04-02 Thread Andrew Reitz


On Apr 2, 2006, at 11:29 PM, Andrew Pantyukhin wrote:


Hi. I have to teach no-frills freebsd courses. I wonder how
I can arrange all the students seeing on their displays what
I'm typing in my xterm in real-time. I haven't been very
successful with xwatchwin (I've been able to see it in action
but it wasn't very pleasant, and it dumps core on me lately).

watch(1) seems to be ideal for my purposes - students log
on to my box (maybe even gain root privileges if I don't
tweak devfs) and watch my pty. They can even copy and
paste what I'm typing in their xterms. But there's a show-
stopper: it seems that only one snp(4) device can attach to
a tty at the same time and only one watch(1) can use a
snp(4) at the same time.

So what do you suggest?

Hmm... Just as I was typing this I saw a simple solution. I
can use script(1) dumping to a file with -t0 (flush on every
char) and people can just tail -f this file. Performance is
great on a local machine, but is very laggy over NFS... I
tried 'mount -o acregmin=0,acregmax=0' and the
perfomance is almost real-time now.

Great :-) It really is true that many solutions come just as
soon as you try to describe your problem clearly :-)


Another potential solution is to use VNC - assuming your students  
have graphical displays. I'm pretty sure that multiple VNC viewers  
(clients) can connect to one VNC server, in watch-only mode.


-Andy.

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


Re: Mail Merging

2006-04-02 Thread Carlos Silva
hi,
the archives are gziped as i said.
the maibox is in IMAP format..

Best Regards,

Carlos Silva, CSilva
Web: http://www.csilva.org/



Skylar Thompson escreveu:
> Carlos Silva wrote:
>
>> hi,
>>
>> someone know a way to merge e-mails?
>> my intention is to merge old gziped mailing list archives on my mail account.
>>
>>  
>>
> What format (e.g. mbox, maildir) are the archives in?

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


Re: Filesystem layout with sperated /boot partition

2006-04-02 Thread Andrew Reitz


On Apr 2, 2006, at 11:16 PM, [EMAIL PROTECTED] wrote:


Hi Eric,

Thanks for the reply.  I have now a better understanding whats  
possible with
FreeBSD. One question (last one) which I could not find an answer  
to in the

online manual is :

How would you do a Dual or multi OS boot machine f.e. with Windows  
on the first

disk, first slice, first partition and FreeBSD on another partition ?

Would I need a boot floppy or perhaps its not possible at all ?


Hi Valentin,

Dual booting FreeBSD along with other Operating Systems is definitely  
possible. And you're right, I couldn't find any reference to how this  
can be done in the Handbook either. :)


Basically, it is my understanding that you will want to add a  
dedicated FreeBSD partition to your disk, and configure the slices  
within that partition as you have learned previously. In terms of how  
to boot, while you can use a floppy, there are many boot managers,  
that once configured, are more convenient to use than floppies.


I did a quick google, and found a guide that seems to cover this  
topic in some depth:


http://www.faqs.org/docs/win_bsd/index.htm

Good luck,
-Andy Reitz.

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