Re: pam_userdb.so: Where is it?

2006-05-10 Thread N.J. Thomas
* Kyrre Nygard <[EMAIL PROTECTED]> [2006-05-10 18:18:23 +0200]:
> > > Does anybody know where pam_userdb.so has gone?
> >
> > FreeBSD doesn't appear to have ever had it, so it hasn't "gone"
> > anywhere. The thread you linked to below suggests exactly that.
> >
> >
> > You could download the source and try and build it.
>
> That's a real good advice. I'll see what I can do with it ...

Kyrre,

More info for you, digging through the archives came up with this:

http://lists.freebsd.org/pipermail/freebsd-questions/2006-April/117922.html

Quoting:

> > 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:
> > 
> > authrequired /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

hth,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RELENG_6 does not compile on RELENG_5

2006-05-11 Thread Thomas Schweikle
Since it is impossible to use the report generator at the moment,
because of error: "There is an error in the configuration of the
problem report form generator. Please back up one page and report
the problem to the owner of that page.
Report 84.158.9.109 is an open proxy server."

Category: misc
Severity: serious
Priority: medium
Class: sw-bug

Which FreeBSD Release You Are Using:
  FreeBSD 5.5-PRERELEASE Environment (output of "uname -a" on
  the problem machine): FreeBSD hazel.tps 5.5-PRERELEASE
  FreeBSD 5.5-PRERELEASE #58: Sun May  7 13:21:56 CEST 2006
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/HAZEL  i386

Full Description:
  #make buildworld
  ...
  /usr/obj/usr/src/sbin/growfs created for /usr/src/sbin/growfs
  ===> sbin/gvinum (obj)
  /usr/obj/usr/src/sbin/gvinum created for /usr/src/sbin/gvinum
  ===> sbin/ifconfig (obj)
  /usr/obj/usr/src/sbin/ifconfig created for /usr/src/sbin/ifconfig
  ===> sbin/init (obj)
  /usr/obj/usr/src/sbin/init created for /usr/src/sbin/init
  ===> sbin/ip6fw (obj)
  /usr/obj/usr/src/sbin/ip6fw created for /usr/src/sbin/ip6fw
  ===> sbin/ipf (obj)
  ===> sbin/ipf/libipf (obj)
  /usr/obj/usr/src/sbin/ipf/libipf created for
/usr/src/sbin/ipf/libipf
  ===> sbin/ipf/ipf (obj)
  mkdir: /usr/obj/usr/src/sbin/ipf/ipf: File exists
  *** Error code 1

  Stop in /usr/src/sbin/ipf/ipf.
  *** Error code 1

  Stop in /usr/src/sbin/ipf.
  *** Error code 1

  Stop in /usr/src/sbin.
  *** Error code 1

  Stop in /usr/src.
  *** Error code 1

  Stop in /usr/src.
  *** Error code 1

  Stop in /usr/src.

  It does not help to remove the file "ipf", then recreate it
  as directory: in this case the "Makefile" in
  "/usr/src/sbin/ipf/ipf" is missing: "I don't know how to make ..."

How to Repeat the Problem:
  - check out RELENG_6:
cvsup -g -L 2 -r 2 /etc/sup/hazel-supfile

where "/etc/sup/hazel-supfile":
  # $FreeBSD: hazel-supfile,v 1.19.2.6
2002/08/06 08:24:46 blackend Exp $

  *default host=cvsup.de.freebsd.org
  #default host=cvsup.freebsd.org

  *default base=/var/db
  *default prefix=/usr

  *default delete use-rel-suffix compress
  src-all   release=cvs tag=RELENG_6
  ports-all release=cvs tag=.

  - run mergemaster
mergemaster -p

  - edit all files which are needed to be changed
vipw
vi /etc/group

  - change to "/usr/src"
  - make buildworld


-- 
Thomas

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


Re: Converting a zsh prompt to bash

2006-05-19 Thread Thomas Dickey
> Hey Dan!
> 
> Your prompt is truly wonderful.
> It inspired me to grow up, as far as my shell is concerned.

hmm - no: grownups use tput rather than hardcoding things.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpaAKCgMiHgm.pgp
Description: PGP signature


Re: upload-only ftp server

2006-05-24 Thread N.J. Thomas
* User Gandalf <[EMAIL PROTECTED]> [2006-05-24 16:32:55 +0200]:
> I looked at the ports tree and I found many ftp servers. I cannot
> choose between them. Can you recommend one for me?

Second the recommendation for vsftpd.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sharing /usr/local/www

2006-05-29 Thread N.J. Thomas
* Kyrre Nygard <[EMAIL PROTECTED]> [2006-05-27 11:12:19 +0200]:
> > > I have a team of designers working on web 2.0 like sites.
> > >
> > > I have added them all to this box, now I'm wondering what's the
> > > most convenient way of giving them all access to /usr/local/www?
>
> > CVS is your friend.
> 
> Yeah I hear a lot of people like CVS.
> 
> But I fail to realize how it might assist me though.

Kyrre,

CVS is a version control tool. A version control tool manages changes to
information, sometimes among multiple people.

It sounds like to me like you really need a version control tool for
what you want to do. CVS is a good choice for this, Subversion is
better.

Yes, there might be scripts that accomplish this, but most (good)
version control tools will:

- allow you to manage changes to data over time

- remember every change ever made to your data, allowing you to
  recover older versions, or see the history of how it changed

- allow access across networks, which allows it to be used by people
  on different computers

- give you the ability for various people to modify and manage (i.e.
  collaborate on) the same set of data from their respective
  locations

(The above was paraphrased from "Version Control with Subversion", by
Collins-Sussman, Fitzpatrick, and Pilato, v1.2, Ch 1.)

You will run into this problem over and over again. Do yourself a favor
and learn how to use a good version control system now, or else you will
find yourself doomed to reinvent it, poorly. (Apologies to H. Spencer.)

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sudoedit, restricting to particular folder

2006-05-30 Thread N.J. Thomas
* Lawrence Horvath <[EMAIL PROTECTED]> [2006-05-30 13:46:33 -0700]:
> I am trying to get sudoedit to only work on a certain folder. So that
> you can only sudoedit files with in the /home/named folder.

The following works for me:

luser ALL = (root) sudoedit /home/luser/foo/*

(Sudo 1.6.8p12, FreeBSD 5.4)

hth,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sudoedit, restricting to particular folder

2006-05-31 Thread N.J. Thomas
* Kirk Strauser <[EMAIL PROTECTED]> [2006-05-30 16:30:45 -0500]:
> > luser ALL = (root) sudoedit /home/luser/foo/*
> 
> Why not give them root while you're at it:
> luser$ cd ~/foo; ln -s /etc/master.passwd; sudoedit ~/foo/master.passwd

Yikes, he's right. Don't put that in your sudoers file.


I found some notes on the sudo mailing lists while Googling, that 

luser ALL = (root) sudoedit /home/luser/foo/

would work one day for all files in /home/luser/foo/, IIRC Todd Miller
said this would come out in version 1.7, but it looks like development
of sudo has stalled, so short of writing your own wrapper script (which
shouldn't be terribly hard) I don't know how to solve the original
problem of restricting sudoedit to a particular directly using sudo
alone.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sudoedit, restricting to particular folder

2006-06-02 Thread N.J. Thomas
* Lawrence Horvath <[EMAIL PROTECTED]> [2006-06-01 22:13:39 -0700]:
> well in that case what can uyou recommend for editing only zone files
> and being able to run rndc, that is my main  goal, i need to lock a
> system so that only "rndc reload", "rndc reconfig" and editing zone
> files is possible by a group of users, any suggestins? and/or how do
> you do this?

Restricting a group of users to run only "rndc reload" and "rndc
reconfig" via sudo is trivial. sudoers(1) will explain how, and
the sudoers file that comes with sudo is chock full of examples.

Off the top of my head, you would do something like this:

User_Alias  DNSOPS= user1, user2, user3
Cmnd_Alias  DNSRELOAD = /usr/sbin/rndc reload
Cmnd_Alias  DNSRECONF = /usr/sbin/rndc reconfig
DNSOPS  ALL   = DNSRELOAD, DNSRECONF

Don't know if that parses properly, but you get the idea.

As far as editing only zone files, if you know the names of the files
that they need to edit, something like this is sufficient:

DNSOPS  ALL   = sudoedit /etc/named.conf
DNSOPS  ALL   = sudoedit /etc/rndc.conf
DNSOPS  ALL   = sudoedit /var/named/zone1
DNSOPS  ALL   = sudoedit /var/named/zone2

However, if your users need to be able to create/modify/rename files
under /var/named (as you mentioned in your OP), then you will need a
properly written wrapper script.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: termcap vs terminfo, less, and Mac OS X

2006-06-02 Thread Thomas Dickey
On Fri, Jun 02, 2006 at 02:26:07PM -0700, Walt Pawley wrote:
> I've been messing about with FreeBSD lately, though mostly I
> use Mac OS X. I've grown accustomed to using "less" as a pager,
> generally preferring the manner in which it would make all the
> scrolled through crud vanish when I was done pawing about in
> it. But "less" didn't behave that way when telnet'd into the
> the FreeBSD boxes on the LAN - whatever got presented scrolled
> "up" into the terminal program's capture buffer.
> 
> After mucking with this for a couple of days, I believe the
> reason is that the termcap description of "xterm-color" in
> FreeBSD doesn't match the "xterm-color" terminfo description in
> either Mac OS X or Linux (which seem to be identical). In
> particular, the "ti" and "te" capabilities are null.

Most of the Linux's have xterm-color the same as in ncurses.
A couple (I've observed) do as in Mac OS X and choose some flavor of
xterm to replace it.  There's no standard choice for the replacement.

The choice of whether to have ti/te null is arbitrary (half of xterm's
users like the alternate screen, half don't).
 
> Is this intentional or something that should be generically "fixed"?

The fix is simply not to use "xterm-color".  It doesn't correspond to
any terminal type, is useful only to people who don't care to find out
what the terminal is.

For instance, you've not identified the terminal type.  Find out what
it is...

xterm supports ANSI color, VT220 emulation and UTF-8
There's an faq at
http://invisible-island.net/xterm/xterm.faq.html
ftp://invisible-island.net/xterm/

The current version of ncurses is 5.5 (20051010)
There's an faq at
http://invisible-island.net/ncurses/ncurses.faq.html

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpL4ZoDPaNQN.pgp
Description: PGP signature


Re: vsftpd uploading rate problem

2006-06-06 Thread N.J. Thomas
* Yuan, Jue <[EMAIL PROTECTED]> [2006-06-06 18:31:43 +0800]:
> The situation is: a computer could download stuffs from my laptop via
> vsftpd at a rate of 10M/s. while uploading stuffs to my laptop at a
> rate of only 300K~400K :( 

Can you test with some other (non-ftp) protocol, and see if you get the
same results? Try scp'ing a large file to and from your laptop.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Converting DocBook into PDF

2006-06-06 Thread N.J. Thomas
* Rico <[EMAIL PROTECTED]> [2006-06-06 03:41:50 +0200]:
> I am working on a documentation project and needs to convert some
> DocBook files into several formats.
> 
> I have installed "xmlto" amongst others and I can convert the DocBook 
> into XHTML, TXT but not into PDF or PS.

This doesn't really help you with your xmlto problem, but I use the
following toolchain to produce PDF from DocBook

- write the XML file against the DocBook DTD

- validate the file with "xmllint --valid --noout foo.xml"
  xmllint is part of libxml2

  (Theoretically, this step is not necessary if you write proper
  XML, but xsltproc does not checks for valid XML (only well
  formed), and if you pass it non-valid DocBook XML, it spits out
  all sort of cryptic errors.)

- use xsltproc to convert to HTML:

  xsltproc --output foo.xhtml 
/usr/local/share/xsl/docbook/xhtml/docbook.xsl foo.xml

  (xsltproc is part of libxslt)

- use xsltproc to convert to FO:

  xsltproc --stringparam  fop.extensions  1 --output foo.fo 
/usr/local/share/xsl/docbook/fo/docbook.xsl foo.xml

- use fop to convert FO to DPF:

  fop foo.fo foo.pdf 

You can find libxml2, libxslt, fop, docbook-xml, and docbook-xsl in
ports.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how does cron exec jobs?

2006-06-08 Thread N.J. Thomas
* Atom Powers <[EMAIL PROTECTED]> [2006-06-07 15:48:35 -0700]:
> I have a cronjob ( cfexecd -F ) that often hangs; but no matter how I
> run it from the shell ( sh -c "cfexecd -F" & ) it never hangs.
> 
> How can I simulate a cron job from the shell?

Whenever you have a problem like this (ie. "foo works perfectly from the
command line but not from cron"), you should always run /usr/bin/env (or
/bin/env) from cron, and then manually run your script with that same
environment (unsetting any envariables you need to get your shell to
match that of the cron environment) -- that will show you fairly quickly
what is wrong.

Usually it is just a PATH issue, but sometimes it may be some missing
envariable that you didn't even realize existed (that your script
depended on it).

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PHP new vulnarabilities

2006-10-15 Thread Thomas Vogt


Paul Schmehl schrieb:
> --On October 15, 2006 4:31:48 PM -0400 DAve <[EMAIL PROTECTED]>
> wrote:
>>
>> That is a bit extreme. I have a full workload, I put in about 60 hours a
>> week (I work a lot of weekends, I'm working now). I have servers running
>> all different version of apps. I can't go around upgrading everything at
>> the drop of a hat. I would be divorced within a month.
>>
>> If you read the security alerts carefully you will find many require a
>> shell (We don't offer them to clients), some require a specific app to
>> be running that you may not need (rm -f /usr/local/bin/vulnerable_app),
>> and sometimes a simple code audit will tell you if you are vulnerable.
>> It is also not uncommon that a security alert is issued for a problem
>> that has not be proven in the wild.
>>
>> There are plenty of reasons to not follow a security alert, many of them
>> quite valid. Upgrading mission critical systems without throughly
>> understanding the implications just because someone screamed SECURITY!,
>> now that is foolhardy.
>>
> That wasn't the situation here.
> 
> Look, there are several possible scenarios where installing a vulnerable
> app is less of a risk than not installing the app at all.  Business
> functionality *is* important.  However, to arbitrarily say "Use
> DISABLE_VULNERABILITIES" is the answer to an app that won't install is
> always a wrong answer.  *At a minimum* it should come with a warning of
> the possible risks.  Furthermore *upgrading* from a non-vulnerabile app
> to a vulnerable app simply because "it's the latest" is foolhardy in the
> extreme.
> 
> I don't think my statement was any more extreme than "Just use
> DISABLE_VULNERABILITIES and you can install the app" with no warning of
> the risks.  *Especially* when the app is as highly scrutinized as php is
> (not to mention how vulnerabilities are being found in it all the time.)


Does "DISABLE_VULNERABILITIES" not say enough?
When he tried to install php he already got the vulnerabilities message
including a web link.

I think this knob was made for a reason.

Cheers,
Thomas
-- 
Terry Lambert:
"It is not unix's job to stop you from shooting your foot. If you so
choose to do so, then it is UNIX's job to deliver Mr. Bullet to Mr Foot
in the most efficient way it knows."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problem compiling kernel under FreeBSD 6.1-RELEASE

2006-11-04 Thread Thomas Lane
Hello,

I am attempting to recompile my kernel, so I made
a modified version of the GENERIC kernel configuration
(included below), and attempted a recompile.  I've
tried both the "Old" and "New" compilation methods
mentioned in the handbook.  Both of them die, telling
me that they have an undefined reference to several
items that appear to be defined in files in the
/usr/src/sys/netgraph directory (exact info below).  I
tried the experiment of building the unmodified
GENERIC kernel configuration, which works, so I must
have fouled something up in my configuration file, but
I have no idea what.  I'm hoping one of you experts
out there might just know what I did from looking at
it. ;)  My system is an old, but not ancient IBM
Thinkpad laptop with a Pentium 4.  I didn't build it
myself, so I'm not exactly certain what all the
hardware in it is, but it has a built-in CD/DVD-ROM
drive, two mouse-substitutes, built-in ethernet,
serial, parallel, USB, and PS/2 ports, a built-in
sound-card of some sort, and a PCMCIA wireless
ethernet card which sadly is incompatible at the
moment.  I believe the graphics card is some flavor of
ATI Radeon, though I don't know an immediate way to
check that without resorting to Micro$#!+.  Any help
is appreciated.
Thanks,
TRL

Error messages:
---
MAKE=make sh /usr/src/sys/conf/newvers.sh FIFTHREALM
cc -c -O2 -pipe -fno-strict-aliasing  -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99  -nostdinc
-I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq
-I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf
-I/usr/src/sys/contrib/dev/ath
-I/usr/src/sys/contrib/dev/ath/freebsd
-I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param
large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
-mno-sse -mno-sse2 -ffreestanding -Werror  vers.c
linking kernel
udbp.o(.text+0x108): In function `udbp_detach':
: undefined reference to `ng_rmnode_self'
udbp.o(.text+0x11b): In function `udbp_detach':
: undefined reference to `ng_unref_node'
udbp.o(.text+0x487): In function `udbp_attach':
: undefined reference to `ng_newtype'
udbp.o(.text+0x4a4): In function `udbp_attach':
: undefined reference to `ng_make_node_common'
udbp.o(.text+0x4de): In function `udbp_attach':
: undefined reference to `ng_name_node'
udbp.o(.text+0x5bd): In function `udbp_attach':
: undefined reference to `ng_unref_node'
udbp.o(.text+0x621): In function
`udbp_in_transfer_cb':
: undefined reference to `ng_package_data'
udbp.o(.text+0x637): In function
`udbp_in_transfer_cb':
: undefined reference to `ng_address_hook'
udbp.o(.text+0x646): In function
`udbp_in_transfer_cb':
: undefined reference to `ng_snd_item'
udbp.o(.text+0x8cd): In function `ng_udbp_rcvmsg':
: undefined reference to `ng_free_item'
udbp.o(.text+0x8d7): In function `ng_udbp_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
udbp.o(.text+0x90b): In function `ng_udbp_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
udbp.o(.text+0x98e): In function `ng_udbp_rcvmsg':
: undefined reference to `ng_address_ID'
udbp.o(.text+0x99d): In function `ng_udbp_rcvmsg':
: undefined reference to `ng_snd_item'
udbp.o(.text+0x9c6): In function `ng_udbp_rcvmsg':
: undefined reference to `ng_free_item'
udbp.o(.text+0x9f6): In function `ng_udbp_rcvdata':
: undefined reference to `ng_free_item'
udbp.o(.text+0xc34): In function `ng_udbp_rmnode':
: undefined reference to `ng_unref_node'
udbp.o(.text+0xc42): In function `ng_udbp_rmnode':
: undefined reference to `ng_make_node_common'
udbp.o(.text+0xc79): In function `ng_udbp_rmnode':
: undefined reference to `ng_name_node'
udbp.o(.text+0xce0): In function `ng_udbp_rmnode':
: undefined reference to `ng_unref_node'
udbp.o(.text+0xd36): In function `ng_udbp_disconnect':
: undefined reference to `ng_rmnode_self'
udbp.o(.rodata+0x20): undefined reference to
`ng_parse_int32_type'
udbp.o(.rodata+0x3c): undefined reference to
`ng_parse_struct_type'
udbp.o(.rodata+0x64): undefined reference to
`ng_parse_int32_type'
udbp.o(.rodata+0x70): undefined reference to
`ng_parse_int32_type'
*** Error code 1

Stop in /usr/obj/usr/src/sys/FIFTHREALM.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
---


Kernel Configuration File:
---
#
# FIFTHREALM -- Modified kernel configuration file for
FreeBSD/i386
#
# For more information on this file, please read the
handbook section on
# Kernel Configuration Files:
#
#   
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in
/usr/share/doc/handbook
# if you've installed the doc distribution, otherwise
always see the
# FreeBSD World Wide Web server
(http://www.FreeBSD.org/) for the
# latest information.
#

Freebsd Fail to boot

2006-12-01 Thread Thomas Wahyudi
Hi, I have freebsd 6.1 and 6.2 RC1 and i trying to install to my desktop 
computer using old motherboard ASUS P4S533 but everytime install is 
finish and trying to boot from HD its make my coumputer reboot and 
reboot again seems something wrong with boot loader, is there something 
i can do to make it work ?


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


Re: Backing up FREEBSD

2006-12-12 Thread N.J. Thomas
* Roger Olofsson <[EMAIL PROTECTED]> [2006-12-12 18:23:50 +0100]:
> If you have a spare machine with the diskspace neeeded then you might
> want to consider rsync over ssh. Rsync can do incremental backups,
> which can be nice and timesaving.

If you are going to go the rsync route, I recommend you check out
rsnapshot, it's in /usr/ports/sysutils/rsnapshot, and their site is
here:

http://www.rsnapshot.org/

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PHP 5 with Apache 1.3

2006-12-18 Thread Thomas Wahyudi

Ian Smith wrote:

Hi all,

bit of a long saga, and a (by now) humble question ..

I reinstalled php5-5.2.0 from its package, after having to deinstall
php 4 and reinstall 5 after the only major glitch on a portupgrade -aPP
on a 5.5-STABLE system upgrading old ports, mostly from 5.4-R days.
  

... cut


What do I need to do to get Apache to execute mod_php5 on .php files?

Cheers, Ian
  
have you check output from /var/log/httpd-error.log ? it should type 
some php version if the php is working correctly or
could you paste here the log from /var/log/httpd-error.log after you 
restart the apache ( assuming you install apache from port too )

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


Dell PERC5 (SAS 5) controller boot flr

2006-12-22 Thread Thomas Kindig
Drive is detected and install is successful, however on reboot the 
drive drops out. Cannot boot in any mode.


This is a new Dell PowerEdge 1950 server with a single 160G ATA HD, 
but with a PERC 5/i controller. I have been to the Dell Support 
boards, but this OS is not supported so they are not obliged to answer.


boot -s fails at the same point. Safe mode gets me to a frozen login 
prompt. I see the DRAC 5 Virtual Media drives listed during the boot, 
but I am not sure how to get a trace of the boot sequence to supply 
here, given the fact that I never mount a file system.



Dell SAS 5 Host Bus Adaptor BIOS
MPTBIOS - 6.06.00.02 2006.04.05
LSI Logic Corp.


HBA   ID  LUN  VENDOR  PRODUCTREVISION   CAPACITY
 ___ ___ ___ ___ __  ___
000 ATA  ST3160812AS J152587 MB
000 DPBACKPLANE  1.00
0 LSILogicSAS1860-IT8.06.48.00


Dell Corp. MPT boot ROM successfully installed!


[...]
mpt0:  port 0xec00-0xecff msm 
0xfc000-0xfc4f,0xfc4e irq 64 at device 0.0 on pc12

mpt0: [GIANT-LOCKED]
mpt0: MPI Version=1.5.12.8
[...]
ums0: Dell DRAC5, rev 1.18/0,00 not supported
ums0: X report 0x0002 not supported
device_attach: ums0 attach returned 6
umass0: DELL  INC. DRAC5 VIRTUAL   MEDIA, rev 2.00/0.00, addr 4
umass1: DELL  INC. DRAC5 VIRTUAL   MEDIA, rev 2.00/0.00, addr 4
[...]
mpt0: mpt_cam_event: 0x16
mpt0: Unhandled Event Notify Frame. Event 0x16 (ACK not required).
unknown: timeout waiting for read DRQ
bce0: link state changed to DOWN
bce1: link state changed to DOWN
acd0: CDRW  at ata0-master UDMA33


(Sorry for the truncated details, but I shot a video and typed in the 
parts that seem most relevant).



Dropping to boot prompt I list the loaded modules and see


[...] mpt_raid.1 mpt.1 mpt_cam.1 mpt_core.1 [...]


For grins, loaded mfi, boot -s, same result.


Thomas Kindig
Technology Support
White Sands Federal Credit Union
505-647-4578

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


Re: Dell PERC5 (SAS 5) controller boot flr

2006-12-22 Thread Thomas Kindig

At 03:00 PM 12/22/2006, Paul Schmehl wrote:
--On December 22, 2006 8:51:43 AM -0700 Thomas Kindig 
<[EMAIL PROTECTED]> wrote:




I'm not clear on why you have PERC5/i with only one drive.  Is the 
drive partitioned and set up with RAID1?


I was thinking I might avoid proprietary controller problems by 
specifying a PE 1950 system with no HW RAID. Second mistake was not 
studying the HW list myownself. I got the same controller, no RAID, 
and now I learn that many shops are running FreeBSD fine on this 
controller with multiple drives and RAID.


I am hoping to remedy the situation by ordering a second drive and 
enabling, setting up RAID0.



'Hope this helps,
Thomas
WSFCU Help Desk
505-647-4578

A friendly reminder to our members: you should not use regular email 
for confidential information. The Credit Union will not use regular 
email for sensitive information. Your privacy is very important to 
us. Help us protect your privacy by using secure channels whenever 
you need to exchange confidential information. See 
<http://www.wsfcu.org/index.asp?p=h&a=124>Email and your 
<http://www.wsfcu.org/index.asp?p=h&a=124>privacy for more information.  


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


Re: Newbie Lynx and Mozilla Firefox Questions

2007-01-04 Thread Thomas Dickey
On Thu, Jan 04, 2007 at 09:42:25AM -0800, Bill Campbell wrote:
> On Thu, Jan 04, 2007, linux quest wrote:
> 
> >I have been searching for tutorials for browsing the Internet using Lynx,
> >but can’t seem to find one anywhere. There aren’t any tutorial either in
> >those Unix books that I bought. What command do I need to type to download
> >Lynx and what command I need to type to run Lynx on FreeBSD?
> 
> You might also want to look at ``links'', a character browser
> that does frames which may be more useful than lynx.

Actually (though this is a poor forum for technical discussion),
lynx allows one to navigate through frames as if they are a separate page.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpPYEHcFLtUm.pgp
Description: PGP signature


RE: Advice on which FreeBSD firewall package to choose.

2007-01-04 Thread Thomas Mullins
I have not used iptables or ipfw.  But, pf is very easy to use, and has
lots of options.  I would give it a try.  I can send some sample configs
if you need.

Shane


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brett Davidson
Sent: Thursday, January 04, 2007 4:26 PM
To: [EMAIL PROTECTED]
Subject: Advice on which FreeBSD firewall package to choose.

Before I start, I'm familiar with IPTables from Linux but am wanting to
use FreeBSD as a firewalling router after seeing it in action on a
heavily-loaded webserver. I like the efficiency of the TCP stack.

Upon reading the handbook I found that I can have my choice of three
firewalls; pf, iptables and ipfw.

What would be the most useful (and easiest) package to use given the
following scenario:

A FreeBSD router comprising of four physical interfaces -
Eth0 is the outside 10Mbyte/s cable connection to the Internet.
Eth1 is a 100Mbit DMZ housing a webserver.
Eth2 is a 100Mb DMZ housing a 802.11g Wireless Access Router. 
(My normal preference is to isolate Wireless LANs from physical
LANS).
Eth3 is the inside LAN. 

Software-based VPN connections out from both the Inside LAN and Wireless
DMZ are required. (Allowing VPN tunnels through the firewall; not
tunnels terminated at the firewall).

Against prudence, they wish to allow torrent connections to the inside
lan and ICQ connections to both the Inside LAN and the Wireless DMZ. The
torrent and ICQ connections will need to be bandwidth-managed so that is
a major consideration for the choice of which firewall to use. Is there
an equivalent to HTB on FreeBSD?

I look forward to your answers...

Regards,
Brett.
___
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: How dangerous a Standard User could be to a FreeBSD box?

2007-01-10 Thread N.J. Thomas
* VeeJay <[EMAIL PROTECTED]> [2007-01-10 13:24:22 +0100]:
> How dangerous a Standard User could be to a FreeBSD box?

Like another poster mentioned, it depends on a variety of factors. Three
things I can suggest to help you minimize security risks from local
users:

- keep your machine and software packages updated

- have policies and procedures in place detailing an Acceptable Use
  Policy (AUP) and the consequences of violating them; and use it
  when you have to (a lot of places have a ton of elaborate and
  well-written AUPs which are never enforced)

- keep your user "shell" machines completely separate from your
  other servers (web, imap, et al.), separate boxes, separate subnet,
  separate passwords, etc.;

  this should be obvious, but a lot of people run a lot of critical
  services on the same machines that they allow users access to and
  then they are surprised when a fork bomb takes down their mail
  infrastructure

hth,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Copying data onto a NTFS partitioned hdd

2005-07-07 Thread Thomas Leveille
On 7/7/05, Warren <[EMAIL PROTECTED]> wrote:
> After some help getting this External HDD mounted in FreeBSD 5.4-STABLE .. i
> now find im unable to copy any of the data from my BSD partition to the NTFS
> hdd .. can bsd write to a NTFS drive or am i doomed to have to use winblows ?
> --
> Yours Sincerely
> Shinjii
> http://www.shinji.nq.nu
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

There's a or ntfs writing is very limited under freebsd. I wouldn't
try if I were you (see the man page on the link) :
http://www.freebsd.org/cgi/man.cgi?query=mount_ntfs&apropos=0&sektion=0&manpath=FreeBSD+5.4-RELEASE+and+Ports&format=html

If you don't have a windows install, you can try using a Linux LiveCD
which includes captive-ntfs. You need a few dll from windows xp but I
think there's a setup which download the windows xp sp1 for you to
retrieve them automatically. But it's not a viable solution if you
plan to copy files to the ntfs partition on a regular basis. I assume
you are in a dual boot environment. I suggest you to format the
external drive in fat32 if you want it to be readable by both Windows
and FreeBSD.

link to captive-ntfs :
http://www.jankratochvil.net/project/captive/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nothing works

2005-07-07 Thread Thomas Leveille
On 7/7/05, Jonathan Arnold <[EMAIL PROTECTED]> wrote:
> I would recommend Greg Lehey's
> "Complete FreeBSD" (note: I helped proofread the book and got a free copy
> for it - but it's still a great book!). I also found "FreeBSD Unleashed" to
> be pretty solid as well.

FreeBSD Unleashed is the only one I bought a few years ago and it's
quite good though there's nothing more than what you find in the
handbook and man pages.

It costs only 60$ for both volumes of the handbook on paper and there
is CD+Hanbook Vol 1 bundle for the same price. Vol.1 covers pretty
much everything a new user should know in the first hours..

freebsd mall :
http://www.freebsdmall.com/cgi-bin/fm

> But my basic advice is to take a deep breath, take things step by step, and
> ask (nicely!) here if/when you have questions.  Take a look at some web
> sites, as there are lots of them out there with helpful advice. Check out
> BSDForums.org for even more help.

>From experience, it's always good to have the information on paper,
especially for someone who doesn't have a second computer with a web
access.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RELEASE 4

2005-08-14 Thread Ted Thomas

I just installed RELEASE 4 on a Dell 800mhz w/128mb ram.

While attempting to install CVSup, I keep encountering patch failures 
like this one:


cosmo4# make install
===>  Vulnerability check disabled, database not found
===>  Extracting for libtool-1.5.10_1
=> Checksum OK for libtool-1.5.10.tar.gz.
===>  Patching for libtool-1.5.10_1
===>  Applying FreeBSD patches for libtool-1.5.10_1
2 out of 8 hunks failed--saving rejects to ltmain.sh.rej
=> Patch patch-ltmain.sh failed to apply cleanly.
=> Patch(es) patch-aa patch-ab patch-ad patch-ae patch-af 
patch-libtoolize.in applied cleanly.

*** Error code 1

Stop in /usr/ports/devel/libtool15.
cosmo4#

I've rat-holed on this, when CvsUp failed, I tried ezm3, that failed; 
then I tried installing libtool alone, that failed...


Originally installed RELEASE 4 from an iso image, but ran into this 
problem. Also could not get GENERIC kernel to compile. So I installed 
again from FTP, and I'm still having the same problems.


Sorry to have to write. It's been years since I had any problem at all 
with FBSD...


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


Re: RELEASE 4

2005-08-15 Thread Ted Thomas
Thanks for the prompt response. FYI, I installed 5.4-RELEASE "over" a 
previous version of 5.3 and made the mistake of assuming that because I 
selected "Standard Install" rather than "Upgrade", I would get a clean 
installation. This morning I reinstalled after removing the entire slice 
(thereby forcing newfs) and everything appears to be working perfectly.


Re:Kris Kennaway's response...

You have stale patches in your ports tree.  I've answered this
question approximately N times, so please search the archives.

Kris

I spent about 30 minutes on the site searching for matches to various 
parts of the error message, read numerous FAQ's, and generally browsed 
the installation guides to try and solve this before writing an e-mail. 
If you or Kris could send me an example of where to search and what to 
search for to find this, it would be helpful. I was using the search 
engine at www.freebsd.org, so I assume that was not the right one.


Really appreciate the help. FreeBSD is a remarkable achievement.
-Ted

Björn König wrote:


Ted Thomas wrote:


I just installed RELEASE 4 on a Dell 800mhz w/128mb ram.



I suppose you mean 5.4-RELEASE?

While attempting to install CVSup, I keep encountering patch failures 
like this one:


cosmo4# make install
===>  Vulnerability check disabled, database not found
===>  Extracting for libtool-1.5.10_1
=> Checksum OK for libtool-1.5.10.tar.gz.
===>  Patching for libtool-1.5.10_1
===>  Applying FreeBSD patches for libtool-1.5.10_1
2 out of 8 hunks failed--saving rejects to ltmain.sh.rej
=> Patch patch-ltmain.sh failed to apply cleanly.
=> Patch(es) patch-aa patch-ab patch-ad patch-ae patch-af 
patch-libtoolize.in applied cleanly.

*** Error code 1

Stop in /usr/ports/devel/libtool15.
cosmo4#

I've rat-holed on this, when CvsUp failed, I tried ezm3, that failed; 
then I tried installing libtool alone, that failed...



Install the package cvsup (or cvsup-without-gui) and update your local 
ports directory before trying to install anything from ports. See also


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html 


("CVSup Method")

Originally installed RELEASE 4 from an iso image, but ran into this 
problem. Also could not get GENERIC kernel to compile.



A few lines from the output might be helpful.

Björn



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


/rescue/vi doesn't work without /usr (no terminal db)

2005-08-25 Thread N.J. Thomas
I just booted into single user on a 5.4-p6 system. I needed to edit
something on the root fs, but /rescue/vi wouldn't work, it complained
about not finding the terminal database.

I saw some mention in the archives from June about fixing this, though I
don't think anything has been comitted yet.

In the meantime, how can I run /rescue/vi without /usr?

thanks,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /rescue/vi doesn't work without /usr (no terminal db)

2005-08-25 Thread N.J. Thomas
* Giorgos Keramidas <[EMAIL PROTECTED]> [2005-08-25 17:10:37 +0300]:
> On 2005-08-25 10:04, "N.J. Thomas" <[EMAIL PROTECTED]> wrote:
> > In the meantime, how can I run /rescue/vi without /usr?
> 
> I don't think you can.  It only needs a read-only /usr though, so if
> /usr is a local filesystem you can probably get away with:
> 
>   # mount -o ro /usr

Yeah, I was actually thinking of the (rare) case when /usr was not
accessible. This time it was, so I got away with it.

But I did find this in rescue(8) however:

BUGS

Most of the rescue tools work even in a fairly crippled system.
The most egregious exception is the rescue version of vi(1),
which currently requires that /usr be mounted so that it can
access the termcap(5) files. Hopefully, a failsafe termcap(3)
entry will eventually be added into the ncurses(3) library, so
that /rescue/vi can be used even in a system where /usr cannot
immediately be mounted.  In the meantime, the rescue version of
the ed(1) editor can be used from /rescue/ed if you need to edit
files, but cannot mount /usr.

I don't know how old this note is, but I hope the failsafe termcap will
be added soon.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /rescue/vi doesn't work without /usr (no terminal db)

2005-08-25 Thread N.J. Thomas
* Alex Zbyslaw <[EMAIL PROTECTED]> [2005-08-25 19:22:48 +0100]:
> >   BUGS
> >
> >   Most of the rescue tools work even in a fairly crippled system.
> >   The most egregious exception is the rescue version of vi(1),
> >   which currently requires that /usr be mounted so that it can
> >   access the termcap(5) files.
>
> Will ex not work?  Since it's just vi without graphics it shouldn't need 
> a termcap (which doesn't mean it won't want one of course).  What was 
> $TERM set to?

/rescue/ex did not work, it gave the same error that /rescue/vi did,
namely that the termcap/terinfo database was not found.

$TERM was set to cons25

> Having said that, I can still remember a time when any sysadmin worth
> tuppence would know how to use ed because that was all that worked on
> a teletype :-)

Yes, /rescue/ed did work, and of course I am glad that something was
working, but ed is infinitely more tedious to work with than vi.

But when things have gone so wrong that you actually have to use the
tools in /rescue, you are generally not in the mood to deal with
something as archaic as ed. =-)

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Interrupt Storm Dell PowerEdge 1850

2005-08-26 Thread N.J. Thomas
* John Straiton <[EMAIL PROTECTED]> [2005-08-26 15:25:40 -0400]:
> While not a solution, I got this to go away by disabling the USB
> ports on the system in the BIOS. I only mention it because it's the
> only other "new" behaviour I'm seeing on this machine versus the
> other boxes I maintain.

Bad mobo perhaps? (I'm presuming the USB is intergrated into it.

Under 4.11, can you use the USB ports successfully?

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't execute a script

2005-09-09 Thread N.J. Thomas
* bob self <[EMAIL PROTECTED]> [2005-09-09 15:01:25 -0400]:
> #!/bin/sh
> echo "pinging"
> #end of scripttest
> 
> If I run "which scripttest", I get /root/bin/scripttest
> 
> But if I try to run this test script I get "scripttest: Command not found."
> 
> Why is that happening?

I've seen something like this happen when there is a non-printing
character on the shebang line (like a CTRL-G or similar). So instead of
running /bin/sh, your shell tries to run "/bin/sh^G" -- which obviously
doesn't exist.

Can you run "xxd /root/bin/scripttest" and show us the output? If you
don't have xxd on your system (it usually is packaged with Vim) you can
try "od -x /root/bin/scripttest".

xxd/od will show right away if there is anything funky on the shebang
line that shouldn't be there.

thanks,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't execute a script

2005-09-09 Thread N.J. Thomas
* bob self <[EMAIL PROTECTED]> [2005-09-09 18:41:35 -0400]:
> 000: 2321 2f62 696e 2f73 680d 0a65 6368 6f20  #!/bin/sh..echo
 ^^   
> 010: 2270 696e 6769 6e67 2e2e 2e2e 220d 0a"pinging"..

Yup, that's your problem. This file is a DOS text file, so its end of
line is a  (0x0d 0x0a) instead  of just  (0x0a).

Normally, that doesn't matter because most Unix utilities are
multi-eol-format aware, but you can't have it in the shebang line
because the OS interprets the extra carriage as part of the command, so
it is looking for /bin/sh^M, which doesn't exist.

Use a utility like dos2unix or some a decent text editor to convert this
to a Unix file format and you'll be good to go.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Strange (newbie) Gateway Errors

2005-09-09 Thread Thomas Dimson
Hi,

Sorry if this is out of place, but I am having an issue with forwarding 
packets on my freebsd-current box from a windows PC.

Here what I'm trying to do:
I have two network cards, one on a university network and one going to a 
router, which is connected to a cable modem. Both cards use the vr driver. 
University is configured through DHCP, private router is just specified (
192.168.1.110 ). I am trying to route traffic to the 
internet through the router while keeping all university traffic internal. 

Problem: 
I run a traceroute from my freebsd box to the university network and it 
works fine. I can access the website (129.97.128.40 ) 
through the internal network. However, using my windows PC - with the 
freebsd server specified as a gateway - it just times out when trying to 
connect to the web site. Any website on the internet works fine, but not the 
intranet. 

Here is my config, I am just setting a static route to the ip of the website 
to test for now:
netstat -r
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1  UGS 0 119789 vr0
localhost localhost UH 0 0 lo0
129.97.128.40/32  cn-rtrev-res15net. UGS 0 12 vr1
192.168.1 link#1 UC 0 0 vr0
192.168.1.1  00:20:78:ce:cb:b4 UHLW 2 154 vr0 1172
192.168.1.107  00:11:95:5d:0b:7f UHLW 1 210110 vr0 945

Internet6:
Destination Gateway Flags Netif Expire
localhost localhost UH lo0
fe80::%vr0 link#1 UC vr0
fe80::20d:88ff:fe7 00:0d:88:7f:42:d0 UHL lo0
fe80::%vr1 link#2 UC vr1
fe80::211:95ff:fee 00:11:95:e2:57:40 UHL lo0
fe80::%lo0 fe80::1%lo0 U lo0
fe80::1%lo0 link#4 UHL lo0
ff01:: localhost U lo0
ff02::%vr0 link#1 UC vr0
ff02::%vr1 link#2 UC vr1
ff02::%lo0 localhost UC lo0

Can anyone provide me with aid, or at least the location of a log file for 
the gateway functions of the machine?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Strange (newbie) Gateway Errors

2005-09-09 Thread Thomas Dimson
Sorry, I should have clarified. I do have that option enabled.

In fact, my machine works perfectly as a gateway to the internet - it just 
fails to forward (or much more likely, recieve) packets from an intranet and 
send it to the machine.

On 9/10/05, Leonidas Tsampros <[EMAIL PROTECTED]> wrote:
> 
> On Fri, Sep 09, 2005 at 08:58:41PM -0400, Thomas Dimson wrote:
> > Hi,
> >
> > Sorry if this is out of place, but I am having an issue with forwarding
> > packets on my freebsd-current box from a windows PC.
> >
> > Here what I'm trying to do:
> > I have two network cards, one on a university network and one going to a
> > router, which is connected to a cable modem. Both cards use the vr 
> driver.
> > University is configured through DHCP, private router is just specified 
> (
> > 192.168.1.110 <http://192.168.1.110> <http://192.168.1.110>). I am 
> trying to route traffic to the
> > internet through the router while keeping all university traffic 
> internal.
> >
> > Problem:
> > I run a traceroute from my freebsd box to the university network and it
> > works fine. I can access the website (129.97.128.40<http://129.97.128.40><
> http://129.97.128.40>)
> > through the internal network. However, using my windows PC - with the
> > freebsd server specified as a gateway - it just times out when trying to
> > connect to the web site. Any website on the internet works fine, but not 
> the
> > intranet.
> >
> > Here is my config, I am just setting a static route to the ip of the 
> website
> > to test for now:
> > netstat -r
> > Routing tables
> >
> > Internet:
> > Destination Gateway Flags Refs Use Netif Expire
> > default 192.168.1.1 <http://192.168.1.1> <http://192.168.1.1> UGS 0 
> 119789 vr0
> > localhost localhost UH 0 0 lo0
> > 129.97.128.40/32 <http://129.97.128.40/32> <http://129.97.128.40/32> 
> cn-rtrev-res15net. UGS 0 12 vr1
> > 192.168.1 link#1 UC 0 0 vr0
> > 192.168.1.1 <http://192.168.1.1> <http://192.168.1.1> 00:20:78:ce:cb:b4 
> UHLW 2 154 vr0 1172
> > 192.168.1.107 <http://192.168.1.107> <http://192.168.1.107> 
> 00:11:95:5d:0b:7f UHLW 1 210110 vr0 945
> >
> > Internet6:
> > Destination Gateway Flags Netif Expire
> > localhost localhost UH lo0
> > fe80::%vr0 link#1 UC vr0
> > fe80::20d:88ff:fe7 00:0d:88:7f:42:d0 UHL lo0
> > fe80::%vr1 link#2 UC vr1
> > fe80::211:95ff:fee 00:11:95:e2:57:40 UHL lo0
> > fe80::%lo0 fe80::1%lo0 U lo0
> > fe80::1%lo0 link#4 UHL lo0
> > ff01:: localhost U lo0
> > ff02::%vr0 link#1 UC vr0
> > ff02::%vr1 link#2 UC vr1
> > ff02::%lo0 localhost UC lo0
> >
> > Can anyone provide me with aid, or at least the location of a log file 
> for
> > the gateway functions of the machine?
> 
> Try to add gateway_enable="YES" in /etc/rc.conf and run either
> 
> # /etc/routing start [as root]
> 
> or reboot the pc.
> 
> Actually , when you want your freebsd to act as a gateway , you have
> to set the sysctl variable net.inet.ip.forwarding to 1. However , the
> gateway_enable options takes care of this.
> 
> 
> ___
> 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: Strange (newbie) Gateway Errors

2005-09-10 Thread Thomas Dimson
Hi,
I am running: FreeBSD-6.0Beta4

I don't have natd configured in the slightest. My assumption was that I 
didn't need to run it because I have a router assigning the IP addresses and 
doing NAT for my cable modem, while my university is assigning me an IP 
address for the second interface. Maybe I do need to run it. Can someone 
point me in the direction of an install guide, or quickly explain it - the 
man page confused me half to death.

Also: what was that information about having natd on both interfaces? I know 
that's nonstandard, so how would you configure that?

My /etc/rc.conf:
# Created: Fri Sep 9 02:14:16 2005
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
defaultrouter="192.168.1.1 "
gateway_enable="YES"
#natd_enable="YES"
#natd_interface="vr0"
#natd_flags="-s -u -m"
#hostname="rn-revwdb13.uwaterloo.ca "
hostname="presidenturkel"
ibcs2_enable="YES"
ifconfig_vr0="inet 192.168.1.110  netmask 
255.255.255.0 "
ifconfig_vr1="DHCP"
kern_securelevel="1"
kern_securelevel_enable="YES"
linux_enable="YES"
nfs_client_enable="YES"
saver="daemon"
sendmail_enable="NO"
sshd_enable="YES"
svr4_enable="YES"
usbd_enable="YES"
# -- sysinstall generated deltas -- # Fri Sep 9 19:53:50 2005
router_flags="-s"
router="/sbin/routed"
router_enable="YES"

PS: I haven't tried doing too much on this, obviously I uncommented the 
lines about natd without much success.

On 9/10/05, Jason Morgan <[EMAIL PROTECTED]> wrote:
> 
> On Sat, Sep 10, 2005 at 07:48:18AM -0500, [EMAIL PROTECTED] wrote:
> > I too have been having these errors and inability to setup a network.
> >
> > Please ref: Home Network Setup Problem
> >
> > Possible problem with natd? netstart? arp?
> >
> > Donald
> 
> Without knowing what you've tried, it's hard to give you some advice.
> What's your rc.conf look like? Have you set the appropriate kernel
> options? Version of FreeSBD?
> 
> Jason
> ___
> 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: Strange (newbie) Gateway Errors

2005-09-10 Thread Thomas Dimson
Hi,

I appreciate all the help.

I attached the file for you. Gmail does http URLs for no particular reason. 
I tried setting up a static route for all university bound traffic on the 
router however it seems to not have aided one bit. Whenever I run a tracert 
on my windows box (that is connected to the freebsd) it dies after the hop 
to my freebsd box. Is there any log or anything that I could see? I have the 
distinct impression that it is sending fine, but possibly just not recieving 
any data. Also, all the router_enable="YES" stuff is just things I looked in 
sysinstall for that may have helped me self-remedy my problem.

Thanks a lot,
Thomas Dimson
[EMAIL PROTECTED]

On 9/10/05, Giorgos Keramidas <[EMAIL PROTECTED]> wrote:
> 
> On 2005-09-10 11:58, Thomas Dimson <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I am running: FreeBSD-6.0Beta4
> >
> > I don't have natd configured in the slightest. My assumption was that I
> > didn't need to run it because I have a router assigning the IP addresses 
> and
> > doing NAT for my cable modem, while my university is assigning me an IP
> > address for the second interface. Maybe I do need to run it.
> 
> It's very likely that you need to run it. What IP address does DHCP
> assign to your ``vr1'' interface? Can you repost the output of the
> following commands, but as plain text attachments? Their previous copy
> in upthread messages is almost unreadable because of mailer induced
> wrapping and reformatting of the text.
> 
> It would be interesting to see:
> 
> # ifconfig -a
> # netstat -rn
> 
> > ifconfig_vr0="inet 192.168.1.110 <http://192.168.1.110> <
> http://192.168.1.110> netmask
> > 255.255.255.0 <http://255.255.255.0> <http://255.255.255.0>"
> > ifconfig_vr1="DHCP"
> 
> Hmmm, are you sure these http URLs are necessary here. i don't think so...
> 
> > # -- sysinstall generated deltas -- # Fri Sep 9 19:53:50 2005
> > router_flags="-s"
> > router="/sbin/routed"
> > router_enable="YES"
> 
> Hmmm, is this __really__ necessary?
> 
>
[EMAIL PROTECTED] ifconfig -a
vr0: flags=8843 mtu 1500
inet 192.168.1.110 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::20d:88ff:fe7f:42d0%vr0 prefixlen 64 scopeid 0x1
ether 00:0d:88:7f:42:d0
media: Ethernet autoselect (100baseTX )
status: active
vr1: flags=8843 mtu 1500
inet6 fe80::211:95ff:fee2:5740%vr1 prefixlen 64 scopeid 0x2
inet 129.97.245.108 netmask 0xff00 broadcast 129.97.245.255
ether 00:11:95:e2:57:40
media: Ethernet autoselect (10baseT/UTP)
status: active
plip0: flags=108810 mtu 1500
lo0: flags=8049 mtu 16384
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4

-

[EMAIL PROTECTED] netstat -nr
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.1UGS 0   132514vr0
127.0.0.1  127.0.0.1  UH  0   75lo0
129.97 129.97.245.1   UGS 0  882vr1
129.97.245/24  link#2 UC  00vr1
129.97.245.1   00:04:9b:1e:20:00  UHLW20vr1   1144
129.97.245.71  52:54:05:f9:67:c8  UHLW12vr1642
192.168.1  link#1 UC  00vr0
192.168.1.100:20:78:ce:cb:b4  UHLW2   92vr0   1196
192.168.1.107  00:11:95:5d:0b:7f  UHLW1  257vr0   1040

Internet6:
Destination   Gateway   Flags  
Netif Expire
::1   ::1   UH  lo0
fe80::%vr0/64 link#1UC  vr0
fe80::20d:88ff:fe7f:42d0%vr0  00:0d:88:7f:42:d0 UHL lo0
fe80::%vr1/64 link#2UC  vr1
fe80::211:95ff:fee2:5740%vr1  00:11:95:e2:57:40 UHL lo0
fe80::%lo0/64 fe80::1%lo0   U   lo0
fe80::1%lo0   link#4UHL lo0
ff01::/32 ::1   U   lo0
ff02::%vr0/32 link#1UC  vr0
ff02::%vr1/32 link#2UC  vr1
ff02::%lo0/32 ::1   UC  lo0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Strange (newbie) Gateway Errors

2005-09-11 Thread Thomas Dimson
Hi,

I solved most of my problem, but thank you for asking. I have it running on 
the internal network simply by enabling (and configuring a little bit) natd 
on the university network.

Now the only problem left:
I am running a server on both machines, but on my windows box it is port 82. 
I have it configured so that the freebsd box will forward port 82 to the 
windows machine, and the router will forward port 82 to the windows machine. 
It works fine, provided a person on the internal network uses the internal 
IP, and a person on the external network uses the external IP. The problem 
arrises when a person on the internal network decides to use the external IP 
(of my cable modem). I ran a tracert from a person's machine, and although 
the request travels through the internal network, it dies on the last hop. 
Is there someway I can wrap it around so that my Freebsd box will be able to 
server the internal network quickly even though a person may connect to an 
external IP? I suppose an easy solution would be just to put a PHP script 
that directs a person to the right IP depending on their config, but I am 
looking for a more transparent solution.

Thanks a lot guys, I really appreciate it,
Thomas Dimson
[EMAIL PROTECTED]

On 9/11/05, Glenn Dawson <[EMAIL PROTECTED]> wrote:
> 
> Did you already solve your problem? If not, I think I know why
> things are working for you, just didn't want to type out the details
> if you had already figured things out. Let me know if you haven't
> and I'll send you the details.
> 
> -Glenn
> 
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make flag to build on a separate disk

2005-09-11 Thread Thomas Sparrevohn
On Sunday 11 September 2005 21:19, Anthony M. Agelastos wrote:
> Hello all,
>
> Once OpenOffice.org 2.0 is released, I plan on building it from Ports
> on my machine (currently 5.4-STABLE... will be 6.0-STABLE after 6.0's
> release). There may be one problem, though, which is my /usr/
> partition only has about 2.4 GB free space available. If memory
> serves, OOo takes up more than that to build. I do have another hard
> drive (mounted at /diskad3) that has over 20 GB of free space
> available. Is it possible to have it use /diskad3 for its temporary
> build directory? I checked the FAQ, Google, and the Handbook and
> didn't find anything. I am reading the make manpage and it
> mentions .OBJDIR, but I am not sure how to use it or if that is
> indeed what I am looking for. Does anyone have any suggestions? Thank
> you for your assistance.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

You can use the 

env WRKDIRPREFIX=/myotherlocation make install 

It will store the ports "work" directory where ever WRKDIRPREFIX points to

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


Intranet/Internet Gateway - Intranet requests to Internet ip time out

2005-09-18 Thread Thomas Dimson
"vr0: flags=8843 mtu 1500
inet6 fe80::20d:88ff:fe7f:42d0%vr0 prefixlen 64 scopeid 0x1
inet 192.168.1.110 netmask 0xff00 broadcast 192.168.1.255
ether 00:0d:88:7f:42:d0
media: Ethernet autoselect (100baseTX )
status: active
vr1: flags=8843 mtu 1500
inet6 fe80::211:95ff:fee2:5740%vr1 prefixlen 64 scopeid 0x2
inet 129.97.245.108 netmask 0xff00 broadcast 129.97.245.255
ether 00:11:95:e2:57:40
media: Ethernet autoselect (10baseT/UTP)
status: active
plip0: flags=108810 mtu 1500
lo0: flags=8049 mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00"

Thank you very much,
Thomas Dimson
[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: Midnight Commander in base distribution set

2006-08-04 Thread Thomas Dickey
On Fri, Aug 04, 2006 at 02:11:20PM -0400, Xiao-Yong Jin wrote:
> Dan Nelson <[EMAIL PROTECTED]> writes:
> 
> > In the last episode (Aug 04), Andrew Gould said:
> >> --- Scott Oertel <[EMAIL PROTECTED]> wrote:
> >> > I use midnight commander on a daily basis, can anyone recommend a
> >> > better, more lightweight tool then mc?
...
> > Actually, mc is pretty lightweight if you disable all the options.  Note

;-)

> Anyway, for a base system, it's still a bit heavy.  In fact, one can
> always do anything with cp/mv  I believe the base system should
> only include the simplest solution, that is, the most fundamental
> tools one needs, and without redundancy.

"anything", given enough time/energy.

This is more lightweight than mc, and does things that mc doesn't:

http://invisible-island.net/ded/

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp6LsdIcAZZm.pgp
Description: PGP signature


Re: Midnight Commander in base distribution set

2006-08-04 Thread Thomas Dickey
On Fri, Aug 04, 2006 at 03:21:06PM -0400, Xiao-Yong Jin wrote:
> > This is more lightweight than mc, and does things that mc doesn't:
> >
> > http://invisible-island.net/ded/
> >
> Interesting.  You can try to make it into the ports tree.

I could - but generally am too busy working on development to be much more
involved with packaging than by giving advice...

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgppd4OhkH3nT.pgp
Description: PGP signature


Re: Midnight Commander in base distribution set

2006-08-06 Thread Thomas Dickey
On Sun, Aug 06, 2006 at 04:44:26PM +0300, Simon Phoenix wrote:
> On Friday 04 August 2006 09:41, Renat S. Nurgaliyev wrote:
> > Please, please, please, include Midnight Commander into the future
> > releases of FreeBSD! It is extremely time-safing and lightweight tool. It
> > can be installed from ports, but what about disconnected PC's? Thanks a
> > lot.
> 
> IMHO no reason for this. Many users never use mc or use another file manager.

otoh, when I demo'd a version of dired 20-odd years ago to Dick Wexelblat,
he commented that it was like getting eyes.

ymmv

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp3Q5wILPh10.pgp
Description: PGP signature


pf.os matching 6.1-RELEASE

2006-09-20 Thread Gouverneur, Thomas

Hi,

 

While making my pf.conf, I wanted to match all my FreeBSD boxes in one rules
and subnet independent.

I've done this by using pf's OS fingerprinting and it worked well since 6.X
releases...

 

The problem is that pf.os doesn't include sets of fingerprint for the latest
FreeBSD

Releases, and then all my rules get screwed with the latest updates. :-/

 

Does someone already have the new fingerprint for FreeBSD boxes?

 

 

Regards,

 

--

Thomas Gouverneur

Junior UNIX Administrator

TI Automotive

 



The information contained in this transmission may contain privileged and 
confidential information.  It is intended only for the use of the person(s) 
named above. If you are not the intended recipient, you are hereby notified 
that any review, dissemination, distribution or duplication of this 
communication is strictly prohibited. If you are not the intended recipient, 
please contact the sender by reply email and destroy all copies of the original 
message.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: pf.os matching 6.1-RELEASE

2006-09-20 Thread Gouverneur, Thomas

Sorry for double-post,

I've found the solution of my problem by adding theses lines to pf.os:

65535:64:1:64:M*,N,W1,N,N,T,S:  FreeBSD:6.x-4::FreeBSD 6.x (1)
65535:64:1:64:M*,N,W0,N,N,T,S:  FreeBSD:6.x-2::FreeBSD 6.x (2)   
65535:64:1:64:M*,N,N,S,N,W1,N,N,T:  FreeBSD:5.4::FreeBSD 5.4  

Regards,


--
Thomas Gouverneur
Junior UNIX Administrator
TI Automotive

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gouverneur, Thomas
Sent: mercredi 20 septembre 2006 10:16
To: 'freebsd-questions@freebsd.org'
Subject: pf.os matching 6.1-RELEASE


Hi,

 

While making my pf.conf, I wanted to match all my FreeBSD boxes in one rules
and subnet independent.

I've done this by using pf's OS fingerprinting and it worked well since 6.X
releases...

 

The problem is that pf.os doesn't include sets of fingerprint for the latest
FreeBSD

Releases, and then all my rules get screwed with the latest updates. :-/

 

Does someone already have the new fingerprint for FreeBSD boxes?

 

 

Regards,

 

--

Thomas Gouverneur

Junior UNIX Administrator

TI Automotive

 



The information contained in this transmission may contain privileged and
confidential information.  It is intended only for the use of the person(s)
named above. If you are not the intended recipient, you are hereby notified
that any review, dissemination, distribution or duplication of this
communication is strictly prohibited. If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the
original message.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

The information contained in this transmission may contain privileged and 
confidential information.  It is intended only for the use of the person(s) 
named above. If you are not the intended recipient, you are hereby notified 
that any review, dissemination, distribution or duplication of this 
communication is strictly prohibited. If you are not the intended recipient, 
please contact the sender by reply email and destroy all copies of the original 
message.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Why is GNATs refusing my posts?

2006-09-20 Thread Thomas Sandford
I recently tried to send a PR (for an updated port), and got the following 
response:


--- 8<---
This is a canned auto-reply to your recent email to the bug submission 
address.


Your message has been identified as likely spam and has been discarded.

If you feel this is an error, please submit your report via the web
interface or directly on the freebsd-bugs mailing list.

--- 8<---

Frankly this is just DUMB. Autoresponding to (as opposed to bouncing) spam 
is most likely going to hit someone other than the spammer.


It gives me ZERO information as to why the mail system didn't like my post, 
so I have no means of working out what I should change to appear less like a 
source of spam.


Since the mail sent was a properly formatted PR (generated by 
devel/porttools), and the mail system got as far as accepting my email 
before generating an autoresponse, it could/should at least have parsed the 
email to see if it looked like a PR before rejecting it.



Furthermore it doesn't even seem to be consistent, since a PR submitted the 
self same way about 4 days ago got through just fine.


I've now got to rewrite the "description" part of the bug submission (since 
it didn't copy my message back to me) and try and work out a way of getting 
past the filter (there's no point in trying to submit the PR through the 
web, as the web form clearly states "Note: copy/paste will destroy TABs and 
spacing, and this web form should not be used to submit code as plain 
text.").


Spam is a major, worldwide problem - but transferring the problem to someone 
else is NOT a solution.


Oh - and if you hadn't guessed - this has really cheesed me off!
--
Thomas Sandford 



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


RE: Restricting access to home directory

2006-09-25 Thread Gouverneur, Thomas

Have a look to: http://www.pizzashack.org/rssh


Regards,

--
Thomas Gouverneur
Junior UNIX Administrator
TI Automotive

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Juszczak
Sent: lundi 25 septembre 2006 8:28
To: Marwan Sultan
Cc: freebsd-questions@freebsd.org
Subject: Re: Restricting access to home directory

Well...

If there was an easy way to restrict users to their home directories using 
SCP or SCPONLY, I would love that instead.

I don't really feel like installing an FTP server just so users can 
connect to my server when they are already used to using sftp-server.

Is there anyway?

-Matt

On Sun, 24 Sep 2006, Marwan Sultan wrote:

> Hi Matt!
>
> If you are talking about givin FTP access only, then
> the easiest way to do it is just adding the user to the file
/etc/ftpchroot
> and thats all!!
> if the file does not exist. then create it.
>
> add to /etc/ftpchroot all users that you want them to ftp but never see
any 
> upper level of shell.
>
> have fun,
> Marwan Sultan
> System Administrator.
>
>> On Sun, 24 Sep 2006 15:09:23 -0400 (EDT)
>> Matt Juszczak <[EMAIL PROTECTED]> wrote:
>> 
>> > I would like to give a user access to my box via some kind of FTP but
>> > restrict him to his home directory.
>> >
>> > I have seen scponlyc, which supposedly can do this, but can't seem to
>> > get it working.
>
> _
> Express yourself instantly with MSN Messenger! Download today it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
>
> !DSPAM:4517000f901501537419863!
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

The information contained in this transmission may contain privileged and 
confidential information.  It is intended only for the use of the person(s) 
named above. If you are not the intended recipient, you are hereby notified 
that any review, dissemination, distribution or duplication of this 
communication is strictly prohibited. If you are not the intended recipient, 
please contact the sender by reply email and destroy all copies of the original 
message.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Restricting access to home directory

2006-09-25 Thread Gouverneur, Thomas

Correct, but you can still use it into a chroot.

Consider: http://www.sdri.co.jp/rssh/CHROOT_en.html


Regards,

--
Thomas Gouverneur
Junior UNIX Administrator
TI Automotive

-Original Message-
From: Matt Juszczak [mailto:[EMAIL PROTECTED] 
Sent: lundi 25 septembre 2006 15:35
To: Gouverneur, Thomas
Cc: 'freebsd-questions@freebsd.org'
Subject: RE: Restricting access to home directory

rssh supports chroots it seems, but no way to actually tie them to their 
home dir.

-Matt

On Mon, 25 Sep 2006, Gouverneur, Thomas wrote:

>
> Have a look to: http://www.pizzashack.org/rssh
>
>
> Regards,
>
> --
> Thomas Gouverneur
> Junior UNIX Administrator
> TI Automotive
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Matt Juszczak
> Sent: lundi 25 septembre 2006 8:28
> To: Marwan Sultan
> Cc: freebsd-questions@freebsd.org
> Subject: Re: Restricting access to home directory
>
> Well...
>
> If there was an easy way to restrict users to their home directories using
> SCP or SCPONLY, I would love that instead.
>
> I don't really feel like installing an FTP server just so users can
> connect to my server when they are already used to using sftp-server.
>
> Is there anyway?
>
> -Matt
>
> On Sun, 24 Sep 2006, Marwan Sultan wrote:
>
>> Hi Matt!
>>
>> If you are talking about givin FTP access only, then
>> the easiest way to do it is just adding the user to the file
> /etc/ftpchroot
>> and thats all!!
>> if the file does not exist. then create it.
>>
>> add to /etc/ftpchroot all users that you want them to ftp but never see
> any
>> upper level of shell.
>>
>> have fun,
>> Marwan Sultan
>> System Administrator.
>>
>>> On Sun, 24 Sep 2006 15:09:23 -0400 (EDT)
>>> Matt Juszczak <[EMAIL PROTECTED]> wrote:
>>>
>>>> I would like to give a user access to my box via some kind of FTP but
>>>> restrict him to his home directory.
>>>>
>>>> I have seen scponlyc, which supposedly can do this, but can't seem to
>>>> get it working.
>>
>> _
>> Express yourself instantly with MSN Messenger! Download today it's FREE!
>> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>>
>> ___
>> 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]"
>
> The information contained in this transmission may contain privileged and
confidential information.  It is intended only for the use of the person(s)
named above. If you are not the intended recipient, you are hereby notified
that any review, dissemination, distribution or duplication of this
communication is strictly prohibited. If you are not the intended recipient,
please contact the sender by reply email and destroy all copies of the
original message.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>
>
> !DSPAM:4517c88b8285209328925!
>

The information contained in this transmission may contain privileged and 
confidential information.  It is intended only for the use of the person(s) 
named above. If you are not the intended recipient, you are hereby notified 
that any review, dissemination, distribution or duplication of this 
communication is strictly prohibited. If you are not the intended recipient, 
please contact the sender by reply email and destroy all copies of the original 
message.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Working with DocBook on FreeBSD nothing but problems

2006-09-27 Thread N.J. Thomas
* Rico Secada <[EMAIL PROTECTED]> [2006-09-27 16:17:20 +0200]:
> [ERROR] property - "background-position-horizontal" is not implemented
> yet.
> 
> Then it just freezes.

I vaguely remember this happening to me when I wasn't checked for
validity against the DocBook DTD.

Putting "xmllint --valid foo.xml" into the build scripts worked out
nicely.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD locks up on J7F4 motherboard

2007-10-13 Thread Thomas Gielfeldt
Hi

Has anyone any experience with the Jetway Motherboards and FreeBSD?

My motherboard is a Jetway 7F4K1G2E-PB has dual gigabit lan (realtek) detected 
as re0 and re1. I'm trying to install FreeBSD 6.2 Release, but as soon as it 
tries to dhcp on re1, it freezes. I have to power off and on.

I've also tried booting an already installed FreeBSD 6.2 stable, but this also 
resulted in a freeze when re1 comes up. It just freezes, no messages or 
anything. 

Somewhere on the net, I saw someone who said that it only happens after a 
cold-reset. I've been part able to confirm this, but even after getting freebsd 
up and running with both nics up, after a while it just locks up.

I've tried changed from auto-sense to e.g. base1000tx full-duplex, but that did 
not resolve the issue either. I'm not entirely sure that the problem are the 
nics, but it seems to point in that direction.

Windows XP runs fine, so it shouldn't be a hardware error. However running XP 
is not the solution to my problems :-)

Does anyone know this problem, or perhaps (even better) a solution to it?

Thanks.

Br,

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


FreeBSD 6.2 on J7F4 locks up

2007-10-17 Thread Thomas Gielfeldt
Hi

I've now also experienced lock ups when building world in in single user mode, 
without using the nics. So the problem might not only be the nics. Cany anyone 
confirm this?

ACPI, SATA, AC97 and USB were disabled when the lock up occurred.

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


Re: postfix problem

2007-10-18 Thread N.J. Thomas
* Bill Banks <[EMAIL PROTECTED]> [2007-10-18 10:44:56 -0400]:
> Im installing postfix on a server. It accept mail from my own network
> but not from the outside. It said "relay access denied". Any clue.

Please post the output of "postconf -n".

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Windows SSH client?

2007-10-25 Thread N.J. Thomas
* Eric F Crist <[EMAIL PROTECTED]> [2007-10-24 14:12:59 -0500]:
> I'm looking for a good, free, SSH client that has line/column numbers  
> at the bottom, similar to SecureCRT.

I'm curious as to why you need the line/column numbers displayed for
your terminal in an SSH client? That seems to me a completely unrelated
function. Most editors (Vi, Emacs, etc.) will give you that info, but
can you explain why need it as necessary component for an SSH client?

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: boot loader

2007-10-26 Thread Thomas Ching
Thanks Doug for your help. I am cc'ing freebsd-questions and I will drop
freebsd-hackers from the next email on.

A few things:
1. it's not a requirement, but I'd like to keep the current partitions
(therefore dual boot) just in case anything goes wrong.
2. can you point me to more readings regarding how I might perform the
following: " However in order to set the new slice bootable you'd have
to then use the disk editor"
3. I guess what you are saying is that if I go with the upgrade path
release 4->5->6, I can do "in place" upgrade over network.

Again appreciate your help.

Thomas 

-Original Message-
From: Doug Barton [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 26, 2007 1:47 PM
To: Thomas Ching
Cc: [EMAIL PROTECTED]
Subject: Re: boot loader

FYI, for future reference this question is really more appropriate for 
[EMAIL PROTECTED]

On Fri, 26 Oct 2007, Thomas Ching wrote:

> Hi, I am trying to do the following with existing systems running 4.5.
> I'd really appreciate if anyone has any hints, pointers, opinions, or
> even just "you should talk to this other group" for me.
>
> 1.Existing system: FreeBSD 4.5 based with FreeBSD boot loader
> (boot0) in MBR

You're not planning to dual-boot anything, right? Just boot and run one 
operating system?

> 2.I am trying to install a new software based on either FreeBSD
> 6.2 or later, or LINUX with the following restrictions:
>
>   a.  No console access
>   b.  No media access other than serial port, Ethernet,
> existing HD with 4.5 installed (i.e. NO CD/DVD, floppy, USBetc)
>
> 3.The hard drive (1) has enough empty space (currently not
> partitioned/used) so I can create a new slice to put the new
OS/software
> in and boot from the new OS, but I am not sure how I can achieve that.

You definitely can't use any of the standard installation methods
without 
console access. You also can't dual boot without console access.

> 1.Is it possible for me to boot of FreeBSD 4.5 and "run an
> installation over Ethernet/ftp"?

No.

> 2.Is it possible for me to "tar up a FreeBSD 6.2" partition, put
> onto the 4.5 disk (new partition) then "sysinstall" (or something like
> that) to make the system boot from the new partition?

You could theoretically install onto a local system, tar it up, then 
unpack it in the unused partition on your remote machine, yes. However
in 
order to set the new slice bootable you'd have to then use the disk 
editor, and if you get even one thing the tiniest bit wrong, you've 
bricked it.

If I were in your position I'd do this with make world, but that's going

to take a long time because you'll first have to update to the 
latest RELENG_4, then 5-stable, then 6-stable (at least) and then if you

don't want to have to do this again for a while I'd update to 7.0 when
it 
is released.

The other alternative is to bribe someone who is local to do the 
installation for you, which all things considered would probably be
easier 
all around.

hope this helps,

Doug

-- 

 This .signature sanitized for your protection

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


Harddisk encryption with geli: key's block size

2007-10-27 Thread Thomas Hobbes
Hi,

I want to encrypt my mobile computer's data-partition with a
passphrase, 128 bit AES and HMAC/MD5. A lot of people use different
block sizes to generate keys with dd. There are examples with block
sizes of 64, 32k and 128k in geli's man-page, but I couldn't find out
why they were used. Spidering 'geli + "key bs"' discovered that there
are some more values used, i.e. 128, 512 and 1k. What is a reasonable
block size to use?

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


Re: Now it is ntpd that can't find anything

2007-10-31 Thread N.J. Thomas
* jekillen <[EMAIL PROTECTED]> [2007-10-30 17:12:19 -0800]:
> I set up ntpd on FreeBSD 6.2 and am getting complaints from ntpd that
> there is no route to such and such address.

Please post the output of "ntpq -p".

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Now it is ntpd that can't find anything

2007-11-01 Thread N.J. Thomas
* <[EMAIL PROTECTED]> [2007-10-31 16:08:10 -0800]:
> > > I set up ntpd on FreeBSD 6.2 and am getting complaints from ntpd
> > > that there is no route to such and such address. It gives what
> > > appears to be an interface card address.
>
> ntpq -p
>  remote   refid  st t when poll reach   delay   offset  jitter
> ==
>  2610:1f8:d8:2:2 .INIT.  16 u-   6400.0000.000 4000.00
>  2001:4830:1210: .INIT.  16 u-   6400.0000.000 4000.00
>  hydrogen.cert.u 164.67.62.1942 u   10   643   13.909  -261.61   2.936
>  pubts2-sj.witim 64.125.78.85 2 u8   643   20.023  -256.60   2.883
> 
> Here are the console messages:
> ntpd (706) send to(2610:1f8:d8:2:216:cbff:fea3:4b2e:) no route to host
>   "   " "   (2001:4830:1210:0;280:10ff:fe00:48b9)   "
>
> are these ipv6 addresses? Or are they expecting authentication and
> refusing connections?

The last two time servers seem to be communicating fine with your ntp
daemon. The bad ones look like IPv6 sites to me. What time servers do
you have listed in your ntp.conf file?

What is the output of "grep -i server /etc/ntp.conf"?

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: imap-uw and sasl

2007-11-01 Thread Thomas Abthorpe
Try adding the following you /etc/make.conf

WITH_SSL_AND_PLAINTEXT=yes # imap-uw
WITH_ENTOURAGE_BRAIN_DAMAGE=yes # imap-uw


On 01/11/2007, Michael Grant <[EMAIL PROTECTED]> wrote:
> I just installed imap-uw and saslauthd on my box.  I'm having trouble
> getting it to accept plain text logins (in fact any logins at all).
> I'm trying to authenticate people in the passwd file.
>
> I get the following in the maillog:
>
> Nov  1 11:14:53 myhost ipop3d[97953]: Unexpected client disconnect,
> while reading line user=??? host=example.com [10.20.30.40]
>
> Yes, the user=??? is just like that with the question marks.  I am
> definitely sending the username.
>
> I'm thinking it might be a sasl problem or something I've not
> configured with saslauthd but I don't see it.
>
> I see these messages in /var/log/messages but they do not seem
> correlated with the time of the I tried to login (and there's many
> fewer of them):
>
> Nov  1 11:00:32 charm ipop3d[87124]: Login failed user=myname
> auth=myname host=example.com [10.20.30.40]
>
>
> Ideas?  Suggestions where to look for more error messages?
>
> Michael Grant
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>



-- 

Thomas Abthorpe, FreeBSD Ports Committer
[EMAIL PROTECTED], http://people.freebsd.org/~tabthorpe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Now it is ntpd that can't find anything

2007-11-01 Thread N.J. Thomas
* jekillen <[EMAIL PROTECTED]> [2007-11-01 15:43:53 -0800]:
> These are the servers I have listed:
[...]
> I suppose I should find ones that are reachable via ipv4.

Better yet, use the NTP Pool Project. If you including the following in
your ntp.conf:

server 0.pool.ntp.org prefer
server 1.pool.ntp.org prefer
server 2.pool.ntp.org prefer

That should work well.

See http://www.pool.ntp.org/ for more info.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Now it is ntpd that can't find anything

2007-11-02 Thread N.J. Thomas
* RW <[EMAIL PROTECTED]> [2007-11-02 14:34:05 +]:
> > server 0.pool.ntp.org prefer
> > server 1.pool.ntp.org prefer
> > server 2.pool.ntp.org prefer
> 
> You don't need any of the prefers. Using prefer like this simply
> disables the clustering algorithm, and degrades the accuracy. 

Yeah, I had copied this out of my larger config file which had other
servers non-essentials listed in there, I should have removed the prefer
tags before giving it to OP.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: vim doesn't preserve the terminal content

2007-11-03 Thread Thomas Dickey
On Fri, Nov 02, 2007 at 04:00:05PM -0700, Pete Slagle wrote:
> Yuri wrote:
> 
> > I use vim both on Linux and FreeBSD.
> > On Linux after I exit vim original screen content is restored.
> > On FreeBSD vim leaves the last content viewed in vim.
> > 
> > How do I make vim preserve the screen?
> > 
> > Thanks,
> > Yuri
> 
> This behavior is controlled by xterm settings.

I didn't notice that he mentioned xterm
(if he's not using xterm, it's harder to fix ;-)
 
> Try holding the control key and middle-clicking with the mouse on an
> xterm window. You should see an "Enable Alternate Screen Switching" option.
> 
> See 'man 1 xterm' or http://www.x.org/archive/X11R6.8.0/doc/xterm.1.html

http://invisible-island.net/xterm/xterm.faq.html#xterm_tite
http://invisible-island.net/xterm/manpage/xterm.html

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpRWaizlHUvA.pgp
Description: PGP signature


Smartmontools: Load_Cycle_Count increasing rapidly

2007-11-04 Thread Thomas Hobbes
Hi,

there are some reports that Ubuntu GNU/Linux 7.10 "kills harddisks":
http://ubuntudemon.wordpress.com/2007/10/28/laptop-hardrive-killer-bug-how-to-discover-whether-you-are-affected/

I can confirm this behaviour for FreeBSD 6.2 STABLE 200710 i386 and
smartmontools-5.37_2 from the portscollection. My Load_Cycle_Count is
increasing about 1 cycle per minute. So maybe Smartmontools is causing
this problem?

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


Re: Smartmontools: Load_Cycle_Count increasing rapidly

2007-11-04 Thread Thomas Hobbes
There's a way to stop the Load_Cycle_Count growing by installing
ataidle from the portscollection and disabling APM with ataidle -P 0 0
0. The Load_Cycle_Count is constant after that. This reduces
battery-runtime but that's much better than destroying your harddisk.

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


Synaptics Touchpad doesn't work on 64-bit FreeBSD

2007-11-11 Thread Thomas Hobbes
Hi,

my Synaptics touchpad doesn't work on FreeBSD 200710 amd64. I've add

hw.psm.synaptics_support=1

to my /boot/loader.conf and I've compiled x11-drivers/synaptics and
x11-drivers/xf86-input-mouse.

My dmesg says:

psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Synaptics Touchpad, device ID 0
kldload: Unsupported file type
kldload: Unsupported file type

Xorg says:

Synaptics Touchpad no synaptics event device found (checked 10 nodes)
Synaptics Touchpad The /dev/input/event* device nodes seem to be missing
(EE) xf86OpenSerial: No Device specified.
Synaptics driver unable to open device
(EE) PreInit failed for input device "Synaptics Touchpad"

The touchpad worked fine on FreeBSD 200710 i386. Does anybody know what to do?

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


Re: PHP 5.2.4 FreeBSD 6.3-PRERELEASE squirrelmail-1.4.11

2007-11-15 Thread Thomas Abthorpe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday 15 November 2007 10:17:18 tethys ocean wrote:
> I am running with my newserver on   FreeBSD 6.3-PRERELEASE  PHP 5.2.4
> squirrelmail-1.4.11 now I cant configure  squirrelmail. Whenever I
> write   http://my IP/webmail    I am take some *php  page that is
> download. such like content
> ***snip***

I suspect, if you are running a webserver such as apache, you need to add the 
following configurations lines to httpd.conf

   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps


Thomas

- -- 
Thomas Abthorpe | FreeBSD Ports Committer
[EMAIL PROTECTED]   | http://people.freebsd.org/~tabthorpe
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHPGqE5Gm/jNBp8qARAjzaAJ0cIZ4RzGrOiC6ztkITp+wJDXWB9wCfVHpu
HayCMiePNdKLqtomVqIgRjU=
=RmEL
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ntpd configuration file changes

2007-12-12 Thread N.J. Thomas
* jekillen <[EMAIL PROTECTED]> [2007-12-12 20:42:47-0800]:
> Q: When making changes to ntp.conf it is necessary to restart the
> server?

According to the ntpd docs, yes. The ntpd configuration docs say this:

Ordinarily, ntpd reads the ntp.conf configuration file at startup
time in order to determine the synchronization sources and operating
modes.

> Q: How is that done?

On FreeBSD, it is typically done via "/etc/rc.d/ntpd restart".

> (I suspect ntpd reload or restart per rc script.. along the lines of
> apachectl restart or postfix reload??? Kill -HUP pid ??? ) I am
> looking at FreeBSD handbook and ntp documentation and have not found
> the answers.

See the "Using rc under FreeBSD" section of the Handbook:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcd.html

It is based on Luke Mewburn's excellent NetBSD rc.d system. See the
document, "The Design and Implementation of the NetBSD rc.d system"
(PDF) here, it is an excellent read:

http://www.mewburn.net/luke/bibliography.html

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems with OpenOffice 2.3.1 on FreeBSD

2008-01-01 Thread Thierry Thomas
Le Mar  1 jan 08 à 21:21:43 +0100, Stephen Montgomery-Smith <[EMAIL PROTECTED]>
 écrivait :
 
> My personal wish list is that opencascade builds on FreeBSD-7 with the 
> new stlport, and that octave-forge not be in its current "IGNORE" state. 
>  But I fully appreciate that I must either wait, or help make it happen.

A patch is ready for that, and is available at

<http://people.freebsd.org/~thierry/ports/opencascade.diff>

but I cannot commit it right now: it will fail without the patch
included in PR ports/118958. That means that we have to wait untill the
ports tree is totally unfrozen.

Best regards,
-- 
Th. Thomas.


pgpH41T7RN6Gt.pgp
Description: PGP signature


Re: GUI for file permissions management

2009-11-19 Thread Thomas Adam
2009/11/19 Chad Perrin :
> Someone asked me recently whether a GUI for file permissions management

Anything like:  mc, worker, rox, etc?

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


Re: GUI for file permissions management

2009-11-19 Thread Thomas Adam
2009/11/19 Chad Perrin :
> Those are all filesystem browsers/managers -- right?  I've already told
> the person who asked that many such applications have that kind of
> functionality.  In my initial question to this list, I said:

I know what you mentioned -- unfortunately you're only going to find
what you want as *part* of something much larger -- in this case a
file manager.  And in the examples I gave, those are considered
light-weight, especially midnight commander.

> Do you know if there's anything like *that* available, rather than an
> entire filesystem browser/manager application that just happens to also
> have a way to change permissions on files and directories?

See above.  I have never come across anything standalone, and at this
point, given your somewhat unique requirements, you might be better
off writing one yourself perhaps in Tk or something.  :)

> Also . . . do any of the applications you mentioned provide a way to
> manage things like umasks or home directory default permissions?  In my
> original post to this list, I had also mentioned that sort of thing:

This would be more beneficial as a shell setting -- changing one's
umask at the drop of a hat is almost always the wrong thing to do.

>> >  login.conf or adduser.conf configuration
>
> . . . though I'm not holding my breath on that.  I rather suspect
> managing umasks in login.conf and user directory default permissions in
> adduser.conf is not something anyone has bothered to incorporate in a GUI
> interface.

Correct, see above.  It's not something one would interactively
change. especially as it's a shell setting -- so this GUI app would
have  a hard time enforcing it (c.f. interactive shell instances
already open.)

Kindly,

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


Problem compiling php5 fro ports

2009-11-20 Thread Thomas Vogt
e':
/usr/local/include/php/Zend/zend_execute.h:148: error: 'zend_executor_globals' 
has no member named 'argument_stack'
/usr/local/include/php/Zend/zend_execute.h:151: error: 'zend_executor_globals' 
has no member named 'argument_stack'
/usr/local/include/php/Zend/zend_execute.h:157: error: 'zend_executor_globals' 
has no member named 'argument_stack'
/usr/local/include/php/Zend/zend_execute.h: In function 
'zend_ptr_stack_get_arg':
/usr/local/include/php/Zend/zend_execute.h:162: error: 'zend_executor_globals' 
has no member named 'argument_stack'
In file included from /usr/local/include/php/main/../main/php_config.h:2827,
 from /usr/local/include/php/TSRM/tsrm_config.h:1,
 from /usr/local/include/php/TSRM/tsrm_config_common.h:13,
 from /usr/local/include/php/TSRM/tsrm_virtual_cwd.h:26,
 from /usr/local/include/php/main/php.h:412,
 from /usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/ext/php_config.h: At top level:
/usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';', 'asm' 
or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php.h:412,
 from /usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/TSRM/tsrm_virtual_cwd.h:198: warning: 'struct utimbuf' 
declared inside parameter list
*** Error code 1



I installed php5 extension via package and it works but it's not good if I 
can't compile it by myself.

The System was upgraded from 6.4 to 7.2 with freebsd-update, libtool upgrade 
was done as descriped in UPDATING. PHP4 was installed bevor I tried to upgrade 
to php5. I removed all php4 packages, updated to the latest portstree and tried 
to build php5-extension. No luck.

Information:
FreeBSD hostname 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct  2 12:21:39 
UTC 2009 r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  
i386

Installed Ports/packages
amanda-client-2.6.1p1,1
amanda-server-2.6.1p1,1
apache-2.2.13
aspell-0.60.6_2
autoconf-2.62
autoconf-wrapper-20071109
automake-1.10.1
automake-wrapper-20071109
bigreqsproto-1.0.2
ca_root_nss-3.11.9_2
cclient-2007e,1
cracklib-2.7_2
cups-client-1.3.10_4
cups-image-1.3.10_4
curl-7.19.7
db41-4.1.25_4
docbook-1.4
docbook-4.1_3
docbook-4.2
docbook-4.3
docbook-4.4_2
docbook-4.5_2
docbook-5.0_1
docbook-sk-4.1.2_4
docbook-xml-4.2_1
docbook-xml-4.3
docbook-xml-4.4_1
docbook-xml-4.5
docbook-xsl-1.75.2
expat-2.0.1
fontconfig-2.6.0,1
freetype2-2.3.9_1
gamin-0.1.10_3
gd-2.0.35_2,1
gettext-0.17_1
ghostscript8-nox11-8.64_7
gio-fam-backend-2.20.5
glib-2.20.5
gmake-3.81_3
gnutls-2.8.3
gsfonts-8.11_5
gtar-1.22_1
help2man-1.36.4_3
inputproto-1.5.0
iso8879-1986_2
jasper-1.900.1_8
jbigkit-1.6
joe-3.7,1
jpeg-7
kbproto-1.0.3
lcms-1.18a_1,1
libICE-1.0.4_1,1
libSM-1.1.0_1,1
libX11-1.2.1_1,1
libXau-1.0.4
libXaw-1.0.5_1,1
libXdmcp-1.0.2_1
libXext-1.0.5,1
libXmu-1.0.4,1
libXp-1.0.0,1
libXpm-3.5.7
libXt-1.0.5_1
libcheck-0.9.8
libfpx-1.2.0.12_1
libgcrypt-1.4.4
libgpg-error-1.7
libiconv-1.13.1
liblqr-1-0.4.1
libltdl-2.2.6a_1
libmcal-0.7_2
libmcrypt-2.5.8
libmonetra-7.0.4
libpthread-stubs-0.3
libtool-2.2.6a_1
libxcb-1.4
libxml2-2.7.6
libxslt-1.1.26
lzo2-2.03_2
lzop-1.02.r1
m4-1.4.13,1
mhash-0.9.9.9
mnogosearch31-3.1.21
mysql-client-5.0.87
mysql-scripts-5.0.87
mysql-server-5.0.87
p5-DBD-mysql50-4.012
p5-DBI-1.60.9
p5-Storable-2.21
p5-gettext-1.05_2
pcre-8.00
pdflib-7.0.4
pear-1.9.0
pear-MDB2-2.5.0.b2
pear-MDB2_Driver_mysql-1.5.0.b2
pear-MDB2_Driver_mysqli-1.5.0.b2
pecl-fileinfo-1.0.4
pecl-pdflib-2.1.6_1
perl-5.8.9_3
php5-5.2.11_1
php5-bcmath-5.2.11_1
php5-bz2-5.2.11_1
php5-ctype-5.2.11_1
php5-curl-5.2.11_1
php5-dom-5.2.11_1
php5-extensions-1.3
php5-filter-5.2.11_1
php5-gd-5.2.11_2
php5-gettext-5.2.11_1
php5-hash-5.2.11_1
php5-iconv-5.2.11_1
php5-json-5.2.11_1
php5-mbstring-5.2.11_1
php5-mcrypt-5.2.11_1
php5-mhash-5.2.11_1
php5-mysql-5.2.11_1
php5-mysqli-5.2.11_1
php5-openssl-5.2.11_1
php5-pcre-5.2.11_1
php5-pdo-5.2.11_1
php5-pdo_sqlite-5.2.11_1
php5-posix-5.2.11_1
php5-session-5.2.11_1
php5-simplexml-5.2.11_1
php5-sockets-5.2.11_1
php5-spl-5.2.11_1
php5-sqlite-5.2.11_1
php5-sysvmsg-5.2.11_1
php5-sysvshm-5.2.11_1
php5-tokenizer-5.2.11_1
php5-xml-5.2.11_1
php5-xmlreader-5.2.11_1
php5-xmlwriter-5.2.11_1
php5-xsl-5.2.11_1
php5-zip-5.2.11_1
php5-zlib-5.2.11_1
phpMyAdmin-3.2.3
pkg-config-0.23_1
png-1.2.40
portaudit-0.5.14
portupgrade-2.4.6_3,2
printproto-1.0.4
python26-2.6.2_3
ruby+nopthreads-1.8.7.160_5,1
ruby18-bdb-0.6.5_1
screen-4.0.3_6
t1lib-5.1.2_1,1
tiff-3.9.2
tw_cli-9.5.2
unixODBC-2.2.14_1
unzip-6.0
webalizer-2.21.2_1
xcb-proto-1.5
xcmiscproto-1.1.2
xextproto-7.0.5
xf86bigfontproto-1.1.2
xmlcatmgr-2.2
xmlcharent-0.3_2
xorg-macros-1.2.1
xproto-7.0.15
xtrans-1.2.3
xz-4.999.9_1
zip-3.0

Regards,
Thomas

Tom




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


Re: Problem compiling php5 fro ports

2009-11-20 Thread Thomas Vogt
Hi

Am 20.11.2009 um 13:07 schrieb Mel Flynn:

> On Fri, 20 Nov 2009 12:13:39 +0100, Thomas Vogt 
> wrote:
>> Hello
>> 
>> Maybe someone can help me. I try to compile several php5 extensions from
>> the ports. php5 compiles fine but every extension fails with the same
>> error.
>> 
>> Example: php5-mcrypt
>> 
>> In file included from
>> /usr/local/include/php/main/../main/php_config.h:2827,
>> from /usr/local/include/php/Zend/zend_config.h:1,
>> from /usr/local/include/php/Zend/zend.h:53,
>> from /usr/local/include/php/main/php.h:34,
>> from
>> 
> /usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
>> /usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'file'
> 
> There shouldn't be anything declared there. What is line 1 of that file?

I didn't see it the first time. There was a comment on line 1. Maybe from the 
last freebsd-update procedure.
First line:
Binary file /usr/local/include/php/ext/php_config.h.orig matches

I removed it and now it works.

Thanks
Tom




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


Re: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Thomas Backman
On Nov 30, 2009, at 9:47 AM, O. Hartmann wrote:

> I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
> Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O shows 
> in contrast to all claims that have been to be improoved the opposite.
Corrected link: 
http://www.phoronix.com/scan.php?page=article&item=freebsd8_benchmarks&num=1

And yeah, quite honestly: disk scheduling in FreeBSD appears to suck... The 
only reason I'm not switching from Linux. :(

Regards,
Thomas

(PS. See my thread about horrible console latency during disk IO in the 
archives, very related. DS.)___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Thomas Backman
On Nov 30, 2009, at 12:38 PM, O. Hartmann wrote:

> Thomas Backman wrote:
>> On Nov 30, 2009, at 9:47 AM, O. Hartmann wrote:
>>> I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
>>> Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O 
>>> shows in contrast to all claims that have been to be improoved the opposite.
>> Corrected link: 
>> http://www.phoronix.com/scan.php?page=article&item=freebsd8_benchmarks&num=1
>> And yeah, quite honestly: disk scheduling in FreeBSD appears to suck... The 
>> only reason I'm not switching from Linux. :(
>> Regards,
>> Thomas
>> (PS. See my thread about horrible console latency during disk IO in the 
>> archives, very related. DS.)
> 
> Hello Thomas.
> I recall myself having had similar problems during heavy disk I/O (UFS and 
> ZFS) with stuck console, stuck clients and especially stuck X11-clients. The 
> discussion was really 'hot', but in the end no clear statement was made 
> whether this is disk-i/o related or a deeper problem in the scheduler.
> 
> Sorry for the lack of the link, I thought Phoronix is well known ...
> 
> Oliver
That's too bad, re: the scheduling. It seems to be a quite universal problem, 
yet I haven't seen much effort spent on working on the problem. :/

Re: phoronix, I commented mostly because the site is .com and not .org, so I 
came to a parked domain when I clicked your link. :)
Also, I figured linking directly to the article will help the archives.

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


Re: Setting fonts and other defaults in Xorg--new q? on font menu

2009-12-22 Thread Thomas Dickey
On Tue, Dec 22, 2009 at 02:48:15AM -0800, Mark Terribile wrote:
> >  After finding what you like simply add the lines to ~/.Xdefaults:
> > 
> > XTerm*faceName: Liberation Mono
> > XTerm*faceSize: 10
> 
> Is there a way to change the contents of the xterm font menu without editing
> the xterm source?  If so, how to do it?

Modifying your resource definitions doesn't affect the xterm source...

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgptAy6xsaKMf.pgp
Description: PGP signature


Re: .Xdefaults file

2009-12-23 Thread Thomas Dickey
On Tue, Dec 22, 2009 at 10:10:26PM +, Jamie Griffin wrote:
> On Tue, Dec 22, 2009 at 01:45:52PM -0800, Rem P Roberti wrote:
> 
> > > I think case matters here, i.e. XTerm*, not Xterm or xterm.
>  
> > Exactly the problem.  Thank you!
> 
> Curious, on my system (7.2) my ~/.Xdefaults uses lowercase 'xterm*...'
> values.

That would be the application name (the name by which xterm is invoked),
which also is legal - for the top-level.  It's all in the X manpage...

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpLL3ezp5fjV.pgp
Description: PGP signature


Re: example c program that does "beep"

2009-12-25 Thread Thomas Dickey
On Fri, Dec 25, 2009 at 08:34:39PM +0100, Polytropon wrote:
> On Fri, 25 Dec 2009 18:58:26 +, Anton Shterenlikht  
> wrote:
> > How can I get a beep from c?
> > I looked at curses and syscons.c, but
> > still not clear.
> 
> If you want to use NCURSES / CURSES, it's a bit complicated.

tput bel

(that's part of ncurses - though your configuration iirc doesn't have
a fully-functional tput).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpxYrymOFAfs.pgp
Description: PGP signature


Re: example c program that does "beep"

2009-12-26 Thread Thomas Dickey
On Sat, Dec 26, 2009 at 03:33:27PM +, Anton Shterenlikht wrote:
> On Fri, Dec 25, 2009 at 08:49:14PM +0100, Polytropon wrote:
> > On Fri, 25 Dec 2009 18:58:26 +, Anton Shterenlikht 
> >  wrote:
> > > How can I get a beep from c?
> > > I looked at curses and syscons.c, but
> > > still not clear.
> > 
> > If you want to use NCURSES / CURSES, it's a bit complicated.
> > 
> > Otherwise, just output %c (the character) 0x07, BEL, which
> > generates an audible bell, or beep.
> > 
> > 
> > *** text/plain attachement has been stripped *** RETRY ***
> > 
> > /* beepflash.c
> >  * ---
> >  * cc -Wall -lcurses -o beepflash beepflash.c
> >  *
> >  */
> > 
> > #include 
> > #include 
> > 
> > int main(int argc, char *argv[])
> > {
> > initscr();
> > cbreak();
> > noecho();
> > nonl();
> > intrflush(stdscr, FALSE);
> > keypad(stdscr, TRUE);
> > start_color();
> > 
> > printf("beep: %d\n", beep());
> > fflush(stdout);
> > 
> > printf("flash: %d\n", flash());
> > fflush(stdout);
> > 
> > return 0;
> > }
> 
> Instead of a beep and a flash I get:
> 
> beep: 0./beepflash
>flash: 0
>HAMOR>

That sounds about right, given the code shown above.
If you'd used just
beep();
refresh();

instead of the printf/fflush, it would clear the screen and beep - if the
terminal description says it can do the beep.

In the ncurses sources, progs/clear.c is a simple program which sets
up the terminal and calls the tputs function - something like what you're
trying to do.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpJ5yl6kbLCZ.pgp
Description: PGP signature


Re: example c program that does "beep"

2009-12-26 Thread Thomas Dickey
On Sat, Dec 26, 2009 at 05:16:23PM +, Anton Shterenlikht wrote:
> On Sat, Dec 26, 2009 at 11:50:06AM -0500, Thomas Dickey wrote:
> > 
> > instead of the printf/fflush, it would clear the screen and beep - if the
> > terminal description says it can do the beep.
> 
> I have 
> 
> > echo $TERM
> xterm
> >
> 
> xterm can do beep, can't it?

usually.  I broke it (and fixed it) last spring.
There's a workaround by setting a resource value, noted in the change
comment:

http://invisible-island.net/xterm/xterm.log.html#xterm_243

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpNznqBird5K.pgp
Description: PGP signature


Re: flash-plugin and epiphany

2009-12-26 Thread Thomas Adam
On Sun, Dec 27, 2009 at 06:01:17AM +0900, Byung-Hee HWANG wrote:
> Hello, my desktop's memory is so low (256M). Therefore i can not run
> firefox. Instead, i'm running epiphany. That's too proper to me. Anyway
> is there any way to install flash plugin with epiphany? Currently, my
> version is 8.0-RELEASE. Really i want to see YouTube under FreeBSD!

Why don't you just use something like dl-youtube, and then use mplayer or
something to view the video?

Oh, and last I checked, RAM is cheap --- why can't you at least get 512?

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: xclip

2010-01-01 Thread Thomas Adam
On Fri, Jan 01, 2010 at 09:15:21AM -0600, Charles Howse wrote:
> Hi,
> I have need for a command-line tool to copy to the clipboard in FreeBSD 6.4.
> As in: command | xclip
> Looked at xclip and xclipboard - 
> http://www.freebsd.org/cgi/ports.cgi?query=xclip&stype=all
> 
> I can't tell by the dependencies if this requires the X gui.  I'm running
> command-line-only and DON'T want to install X.
> Can anyone help?  Thanks!

Yes it does require X, because it puts it in the PRIMARY_SELECTION.

What are you trying to do?

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: xclip

2010-01-01 Thread &#x27;Thomas Adam'
On Fri, Jan 01, 2010 at 09:48:28AM -0600, Charles Howse wrote:

> Hi Thomas, thanks for the reply.
> This is kinda gnarly.  I'm using VMware Player on Windows 7, FreeBSD is the
> guest OS.
> I have a script that outputs some text that I would like in the clipboard
> that I can paste into an email in Windows Outlook.

Ah right.  You'll find that won't work at all.

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Crontab not working??

2010-01-13 Thread Thomas K.
On Thu, Jan 14, 2010 at 02:20:07AM +0200, Kaya Saman wrote:

Hi,

> @reboot   root/usr/local/sbin/logwatch.pl
> 02 4 * * * root/usr/local/sbin/logwatch.pl

this format/syntax is only valid for the system contab.

> The interesting thing here is that it shows them as being run:
> 
> rd1# cat /var/log/cron | grep logwatch
> Jan 12 04:02:00 rd1 /usr/sbin/cron[5882]: (root) CMD 
> (root^I/usr/local/sbin/logwatch.pl)
> Jan 13 04:02:00 rd1 /usr/sbin/cron[8898]: (root) CMD 
> (root^I/usr/local/sbin/logwatch.pl)

As you can see, the command is not valid. You should at least get an
error. If the scripts do not set PATH themselvs, try setting it in the
crontab, as the default is rather minimal.

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


About device characteristics and CD/DVD drives

2010-01-14 Thread Thomas Schmitt
Hi,

i have installed
  
ftp://ftp.freebsd.org/pub/FreeBSD/ISO-IMAGES-amd64/8.0/8.0-RELEASE-amd64-dvd1.iso.gz
 
with the intention to provide full technical
support for libburn on FreeBSD. I myself am used
to Linux and older workstation systems.

The MMC stuff to operate CD drives seems to
still work well, thanks to a contribution of
bland in 2006 or alternatively the FreeBSD
driver of upcomming libcdio-0.83.

Nevertheless a few questions arised.
Any link enhanced RTFM is welcome.



- How to detect by a C program that a character
  device is indeed block-wise readable and
  writeable ?
  I.e. devices which would be block devices on
  Linux.

  libburn can emulate DVD+RW on regular files or
  random-access-read-write devices. I would like
  to use USB sticks as ISO 9660 multi-session
  storage. It already works by a hack that boldly
  regards any /dev/da[0-9] as "block device".
  Eligible would be devices which allow to
  lseek(2), write(2), read(2) with 2 kB
  granularity.

  Does handbook 18.2 "Device Names" describe a
  hard rule ? 
  Is every CAM CD drive accessible as /dev/cdN
  and is every /dev/cdN a CAM CD drive ?
  Is every /dev/daN a random-rw storage device ?
  What about fd, fla, sa, ad, ast ?



- How to determine the storage capacity of a
  device file ?

  Most interesting with the random-access
  devices of the previous question.



- How to revive a USB CD drive after power
  cycle ?
  How to kill a stuck cdrecord process ?

$ cdrecord -v -sao -multi dev=2,0,0 test.iso
  reliably gets stuck with SATA and
  USB drive. (One should disable this mode.)
  The stuck SATA drive needs power cycle of the
  whole system. The USB drive should be
  resettable independently but FreeBSD does not
  make it accessible as /dev/cd* after a power
  cycle of the drive.

  It might have to do with the failed cdrecord
  run which still sat there and said:
Writing pregap for track 1 at -150
  (The -150 is normal with SAO. Being stuck is
   not. libburn SAO works fine on FreeBSD 8.0.)
  Nothing but reboot could end that process.

  On Linux, the same drive gets always back to
  life after being power-cycled or re-plugged.
  On FreeBSD i currently have to perform
shutdown -p now
  a bit more often than i would like to.
  (Confessed: i provoke it intentionally.)

  Is there a hard reason why cdrecord is so old
  on the FreeBSD 8.0 DVD ?
  Is there a maintainer for it on FreeBSD ?
  I would like to cooperate.



- Are there specs what mkisofs is supposed to do
  when preparing a bootable FreeBSD image ?
  Anything more than pointing an El Torito record
  to the boot file in the ISO image ?



- Where to read about this phenomenon:
  - xterm on SuSE Linux 10.2
  - ssh to FreeBSD 8.0
  - Backspace key works, Delete key prints "~"
  Strange: My program xorriso uses libreadline.
  Its Delete key does work in the same SSH
  session. Only the one of the shell does not.



- What is the meaning of the ruleset numbers ?

  I combined the advise of the libburn ports
  maintainer and handbook "18.5 USB Storage
  Devices". J.R. Oldroyd enabled my SATA drive
  cd0 by [localrules=10]. The other set
  [localrules=5] is composed from handbook and
  my guessing.
  If i do not repeat the lines about 'pass*'
  and 'cd*' in number 5, then the USB drive
  cd1,pass1 stays rw-r-.
  man 5 devfs.rules does not bring insight.
  I executed after each rules change:
/etc/rc.d/devfs start

  Now working content of /etc/devfs.rules :

  # Advise by J.R.Oldroyd for SATA and libburn:
  [localrules=10]
  # rules for grip and xfburn support
  add path 'acd*' mode 0666
  add path 'cd*' mode 0666
  add path 'pass*' mode 0666
  add path 'xpt*' mode 0666

  # From handbook 18.5 :
  [localrules=5]
  # This is for USB sticks:
  add path 'da*' mode 0666 group operator
  # Why do i have to do this again for USB cd1 ?
  add path 'pass*' mode 0666
  add path 'cd*' mode 0666
  # This i need for USB cd0 if no atapicam is up
  add path 'xpt*' mode 0666
  # This is needed for normal users with acd0 
  # if no atapicam is up
  add path 'acd*' mode 0666

  (I know 0666 is very lax. My advise to users
   is to have an extra group for CD devices.)



- Would there be interest in comments and small
  objections with handbook chapters 18.6 (CDs),
  18.7 (DVDs), 18.12 (Backup) ?
  Especially 18.12.7 ("dump(8) Period") could
  need a little discussion about why, what,
  and how to backup. Coordination seems
  indicated with 18.14 (Snapshots) and the
  optical med

Sound (micro-)interrupts with 8.0 stable/snd_hda/mplayer/vlc

2010-01-16 Thread Thomas Hummel
Hello,

I'm not really sure what the right list is since I cannot isolate the part
of
the system which cause the problem :

I could use a little help on a weird sound issue I'm struggling with :

1. Description :


  When playing audio files, the sound has from few to many
"micro-interrupts"
  (less than 1/4 of a second), randomly but frequently (so this is not hard
to
  reproduce). This seem to occur :

. with any file (I can pick a random audio file to experience it)
. with either mp3 or flaac encoded files
. with mplayer (from the ports collection or hand compiled from svn),
  either with oss or sdl audio output (although sdl seems to have less
"interrupts")
. with vlc

 but

. not with ffplay
. apparently not with xine
. apparently not with amarok

-> so I doubt this may be a harware or a driver issue.

and on a almost idle 4GB RAM machine running only KDE-4 and firefox-3

no hints  shows in /var/log/messages

2. Config :


I'm running :

  . 8.0-STABLE FreeBSD amd64

  . full zfs (no ufs) (files are on a "slow" disk pool (5400 rpm) but moving
them to the "fast" system disk (7200 rpm) doesn't change anything

  . on a (bios up to date) P5Q3 ASUS motherboard

  . with snd_hda sound driver

3. Detailed sound config :
---

% cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0:  at cad 0 nid 1 on hdac0 kld snd_hda
[MPSAFE] (1p:2v/1r:1v channels duplex default)
pcm1:  at cad 0 nid 1 on hdac0 kld snd_hda
[MPSAFE] (1p:1v/1r:1v channels duplex)
pcm2:  at cad 0 nid 1 on hdac0 kld
snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)
pcm3:  at cad 0 nid 1 on hdac0 kld
snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex)

% sysctl -a | grep -i pcm
dev.pcm.0.%desc: HDA Realtek ALC888 PCM #0 Analog
dev.pcm.0.%driver: pcm
dev.pcm.0.%parent: hdac0
dev.pcm.0.play.vchans: 2
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.buffersize: 16384
dev.pcm.0.bitperfect: 0
dev.pcm.1.%desc: HDA Realtek ALC888 PCM #1 Analog
dev.pcm.1.%driver: pcm
dev.pcm.1.%parent: hdac0
dev.pcm.1.play.vchans: 1
dev.pcm.1.play.vchanmode: fixed
dev.pcm.1.play.vchanrate: 48000
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.rec.vchans: 1
dev.pcm.1.rec.vchanmode: fixed
dev.pcm.1.rec.vchanrate: 48000
dev.pcm.1.rec.vchanformat: s16le:2.0
dev.pcm.1.buffersize: 16384
dev.pcm.1.bitperfect: 0
dev.pcm.2.%desc: HDA Realtek ALC888 PCM #2 Digital
dev.pcm.2.%driver: pcm
dev.pcm.2.%parent: hdac0
dev.pcm.2.play.vchans: 1
dev.pcm.2.play.vchanmode: passthrough
dev.pcm.2.play.vchanrate: 48000
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.2.buffersize: 16384
dev.pcm.2.bitperfect: 0
dev.pcm.3.%desc: HDA Realtek ALC888 PCM #3 Digital
dev.pcm.3.%driver: pcm
dev.pcm.3.%parent: hdac0
dev.pcm.3.play.vchans: 1
dev.pcm.3.play.vchanmode: passthrough
dev.pcm.3.play.vchanrate: 48000
dev.pcm.3.play.vchanformat: s16le:2.0
dev.pcm.3.buffersize: 16384
dev.pcm.3.bitperfect: 0

4. mplayer output details :


  . mplayer output for mp3 (no error nor warning message) :

==
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
mpg123: Can't rewind stream by 1606 bits!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)

  . mplayer output for flaac (no error nor warning message) :

==
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 987.7 kbit/69.99% (ratio: 123457->176400)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio decoder)
==
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)

5. ports compile options
--

a) mplayer

% cat mplayer/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for mplayer-0.99.11_14
_OPTIONS_READ=mplayer-0.99.11_14
WITHOUT_DEBUG=true
WITH_RTCPU=true
WITH_OCFLAGS=true
WITH_SIMD=true
WITH_IPV6=true
WITH_X11=true
WITH_X11XV=true
WITH_X11DGA=true
WITH_X11GL=true
WITHOUT_X11XIN=true
WITH_X11VM=true
WITHOUT_X11XVMC=true
WITHOUT_GUI=true
WITH_SDL=true
WITH_VIDIX=true
WITHOUT_SKINS=true
WITH_FREETYPE=true
WITHOUT_RTC=true
WITHOUT_ARTS=true
WITHOUT_ESOUND=true
WITHOUT_JACK=true
WITHOUT_NAS=true
WITHOUT_OPENAL=true
WITH_LIBUNGIF=true
WITHOUT_AALIB=true
WITHOUT_LIBCACA=true
WITHOUT_SVGALIB=true
WITH_LIBDV=true
WITHOUT_MAD=true
WITH_DTS=true
WITHOUT_LIBMPCDEC=true
WITHOUT_LADSPA=true
WI

Re: Sound (micro-)interrupts with 8.0 stable/snd_hda/mplayer/vlc

2010-01-17 Thread Thomas Hummel
On Sun, Jan 17, 2010 at 1:03 AM, Pieter de Goeje  wrote:

Thanks for your reply,

Try increasing the hw.snd.latency sysctl:
>

Going from 5 to 10 doesn't change anything (actually, it seems worse on the
file I tried). So the mystery still stands...

Note that the micro-interrupts don't occur always at the same timestamp in
the file which is playing.
If I play one, let's say 3 times in a row, sound may drop around the same
moment each time but not necessary...

Just thinking out loud here, but maybe you have some non-standard HZ
> configured or powerd configured to clock the CPU back by an extreme amount,
> both could theoretically cause buffer underruns.
>

I'm not quite sure I understand what you're thinking of. Anyway, I haven't
changed any defaults :

% cat /boot/loader.conf
#zfs
zfs_load="YES"
vfs.root.mountfrom="zfs:zroot"

# nividia
nvidia_load="YES"

# sound
snd_hda_load="YES"
hw.snd.default_unit=0

# k3b
atapicam_load="YES"
hw.ata.atapi_dma=1

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


Re: Loader, MBR and the boot process

2010-01-21 Thread Thomas K.
On Fri, Jan 22, 2010 at 05:57:23AM +0200, Dan Naumov wrote:

Hi,

> I recently found a nifty "FreeBSD ZFS root installation script" and
> been reworking it a bit to suit my needs better, including changing it
> from GPT to MBR partitioning. However, I was stumped, even though I
> had done everything right (or so I thought), the system would get
> stuck at Loader and refuse to go anywhere. After trying over a dozen

probably this line is the cause:

dd if=/mnt2/boot/zfsboot of=/dev/"${TARGETDISK}"s1a skip=1 seek=1024

Unless by "swap first" you meant the on-disk location, and not the
partition letter. If swap is partition "a", you're writing the loader
into swapspace.


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


Re: sysinstall and the Right Terminal

2010-01-23 Thread Thomas Dickey
On Sat, Jan 23, 2010 at 08:01:41AM -0600, Martin McCormick wrote:
> Dale Scott writes:
> > I don't have a solution but can report I regularily login to my fbsd 7 
> > and 8 boxes from an Ubuntu laptop using ssh in
> > Terminal and run sysinstall. I've never encountered this problem though.
> 
> Thank you for responding.
> 
> If you type
> 
> echo $TERM 
> 
> or just the command 
> 
> env
> 
> Is TERM = "linux" or something else?

"Terminal" would probably be one of the programs using VTE,
which differs from "linux".

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgplbt0hD0XM4.pgp
Description: PGP signature


Re: 8.0-RELEASE/amd64 - full ZFS install - low read and write disk performance

2010-01-25 Thread Thomas Burgess
It depends on the bandwidth of the bus that it is on and the controller
itself.

I like to use pci-x with aoc-sat2-mv8 cards or pci-e cardsthat way you
get a lot more bandwidth..

On Mon, Jan 25, 2010 at 3:32 AM, Dan Naumov  wrote:

> On Mon, Jan 25, 2010 at 9:34 AM, Dan Naumov  wrote:
> > On Mon, Jan 25, 2010 at 7:33 AM, Bob Friesenhahn
> >  wrote:
> >> On Mon, 25 Jan 2010, Dan Naumov wrote:
> >>>
> >>> I've checked with the manufacturer and it seems that the Sil3124 in
> >>> this NAS is indeed a PCI card. More info on the card in question is
> >>> available at
> >>> http://green-pcs.co.uk/2009/01/28/tranquil-bbs2-those-pci-cards/
> >>> I have the card described later on the page, the one with 4 SATA ports
> >>> and no eSATA. Alright, so it being PCI is probably a bottleneck in
> >>> some ways, but that still doesn't explain the performance THAT bad,
> >>> considering that same hardware, same disks, same disk controller push
> >>> over 65mb/s in both reads and writes in Win2008. And agian, I am
> >>> pretty sure that I've had "close to expected" results when I was
> >>
> >> The slow PCI bus and this card look like the bottleneck to me. Remember
> that
> >> your Win2008 tests were with just one disk, your zfs performance with
> just
> >> one disk was similar to Win2008, and your zfs performance with a mirror
> was
> >> just under 1/2 that.
> >>
> >> I don't think that your performance results are necessarily out of line
> for
> >> the hardware you are using.
> >>
> >> On an old Sun SPARC workstation with retrofitted 15K RPM drives on
> Ultra-160
> >> SCSI channel, I see a zfs mirror write performance of 67,317KB/second
> and a
> >> read performance of 124,347KB/second.  The drives themselves are capable
> of
> >> 100MB/second range performance. Similar to yourself, I see 1/2 the write
> >> performance due to bandwidth limitations.
> >>
> >> Bob
> >
> > There is lots of very sweet irony in my particular situiation.
> > Initially I was planning to use a single X25-M 80gb SSD in the
> > motherboard sata port for the actual OS installation as well as to
> > dedicate 50gb of it to a become a designaed L2ARC vdev for my ZFS
> > mirrors. The SSD attached to the motherboard port would be recognized
> > only as a SATA150 device for some reason, but I was still seeing
> > 150mb/s throughput and sub 0.1 ms latencies on that disk simply
> > because of how crazy good the X25-M's are. However I ended up having
> > very bad issues with the Icydock 2,5" to 3,5" converter jacket I was
> > using to keep/fit the SSD in the system and it would randomly drop
> > write IO on heavy load due to bad connectors. Having finally figured
> > out the cause of my OS installations to the SSD going belly up during
> > applying updates, I decided to move the SSD to my desktop and use it
> > there instead, additionally thinking that my perhaps my idea of the
> > SSD was crazy overkill for what I need the system to do. Ironically
> > now that I am seeing how horrible the performance is when I am
> > operating on the mirror through this PCI card, I realize that
> > actually, my idea was pretty bloody brilliant, I just didn't really
> > know why at the time.
> >
> > An L2ARC device on the motherboard port would really help me with
> > random read IO, but to work around the utterly poor write performance,
> > I would also need a dedicaled SLOG ZIL device. The catch is that while
> > L2ARC devices and be removed from the pool at will (should the device
> > up and die all of a sudden), the dedicated ZILs cannot and currently a
> > "missing" ZIL device will render the pool it's included in be unable
> > to import and become inaccessible. There is some work happening in
> > Solaris to implement removing SLOGs from a pool, but that work hasn't
> > yet found it's way in FreeBSD yet.
> >
> >
> > - Sincerely,
> > Dan Naumov
>
> OK final question: if/when I go about adding more disks to the system
> and want redundancy, am I right in thinking that: ZFS pool of
> disk1+disk2 mirror + disk3+disk4 mirror (a la RAID10) would completely
> murder my write and read performance even way below the current 28mb/s
> / 50mb/s I am seeing with 2 disks on that PCI controller and that in
> order to have the least negative impact, I should simply have 2
> independent mirrors in 2 independent pools (with the 5th disk slot in
> the NAS given to a non-redundant single disk running off the one
> available SATA port on the motherboard)?
>
> - Sincerely,
> Dan Naumov
> ___
> freebsd...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: sysinstall and the Right Terminal

2010-01-25 Thread Thomas Dickey
On Mon, Jan 25, 2010 at 09:25:21AM -0600, Martin McCormick wrote:
> Thomas Dickey writes:
> > "Terminal" would probably be one of the programs using VTE,
> > which differs from "linux".
> 
>   This is all very interesting. Thanks to all. What I
> normally do is start a command-line shell on a Debian Linux box.
> This defaults to a "linux" console. When I ssh somewhere, ssh
> passes the exported $TERM value to the remote host so as I
> understand it, it will use this value in the environment that it
> exports to any application called from that shell. The question
> is whether or not all the escape codes it sends to address the
> terminal and all the escape sequences it looks for to represent
> arrow keys, etc, will still work. 

It should - the remote machine "should" have the same terminal description.

Your local machine however may have initialized the Linux console to expect
UTF-8 encoding, and the remote machine may not know about that.  Line-
drawing wouldn't work properly in that case, but cursor-movement and
keys should.
 
>   The best results, so far, are with using cons25 as the
> TERM value. The Up and Down arrows work right as opposed to going
> right straight to X Exit this menu.

My first impression was that it could be a disagreement between the two
machine whether cursor-application mode is set.  That changes the escape
sequence sent by the cursor-keys.

However, ncurses' descriptions for both say they're using
normal (non-application) mode.  So that doesn't seem to explain it.

It's also possible that the screensize isn't being transmitted (and
"stty -a" would show if it's really 25 lines or not).

> 
>   I appreciate all the input because in this game,
> knowledge is the power to fix it.
> 
> Martin McCormick
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpQLAAPrLnah.pgp
Description: PGP signature


Re: wrong md5 sum of 8.0-RELEASE-amd64-dvd1.iso.gz ??

2010-02-04 Thread Thomas K.
On Fri, Feb 05, 2010 at 09:07:30AM +0530, Shripad R. wrote:

> MD5 (8.0-RELEASE-amd64-dvd1.iso) = 44c016ae8812a266f710d1845722366d
> MD5 (8.0-RELEASE-amd64-dvd1.iso.gz) = add311be2d189cde1d47ba515c05f440
> 
> totally different. Can somebody plz confirm ?

Yes. Different files, different hash. Confirmed.

:-)

> I confirmed the download was complete and uninterrupted, but still just
> concerned about this.

If it wasn't for the user error, you should be. Compare to the correct
hash, or uncompress your downloaded file first.

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


Re: backup terminal title

2010-02-06 Thread Thomas Dickey
On Sat, Feb 06, 2010 at 01:38:11PM +0100, Dominic Fandrey wrote:
> I just started to wonder how portmaster changes the window title
> of my terminal and why it doesn't change it back when it
> terminates.
> 
> Some digging in the portmaster code showed up an escape sequence:
> printf "\033]0;%s\007" "YOUR TEXT GOES HERE"
> 
> Unfortunately I am entirely clueless as to how one could backup
> the old title string to restore it upon termination. It seems
> to me this ought to be a precondition to using this kind of
> feature.

It "can", depending - some people object to the control sequence which
can retrieve the previous value.  I added a push/pop stack for xterm last
year which can work around that (transparently).  I used that in vile
(vi like emacs), and I made a fix for 'screen' which uses it.

see
http://invisible-island.net/xterm/xterm.log.html#xterm_251

For other terminals - some have disabled the objectionable feature,
some have not.  (Some will eventually copy the push/pop feature ;-)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpdNZr7YsZSr.pgp
Description: PGP signature


Re: backup terminal title

2010-02-06 Thread Thomas Dickey
On Sat, Feb 06, 2010 at 01:55:55PM +0100, Matthias Apitz wrote:
> El día Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fandrey 
> escribió:
> 
> > I just started to wonder how portmaster changes the window title
> > of my terminal and why it doesn't change it back when it
> > terminates.
> > 
> > Some digging in the portmaster code showed up an escape sequence:
> > printf "\033]0;%s\007" "YOUR TEXT GOES HERE"
> > 
> > Unfortunately I am entirely clueless as to how one could backup
> > the old title string to restore it upon termination. It seems
> > to me this ought to be a precondition to using this kind of
> > feature.
> 
> Play around with xwininfo(1), like:
> 
> $ xwininfo -tree -root | fgrep xterm
> 
> which prints the titles for all your XTerm windows.

iirc, vim does something like this, but it has the potential for being
very slow (ymmv).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgprUhQe4zlss.pgp
Description: PGP signature


Re: backup terminal title

2010-02-07 Thread Thomas Dickey
On Sat, Feb 06, 2010 at 10:04:49PM -0800, per...@pluto.rain.com wrote:
> Warren Block  wrote:
> > What's the sequence for reading the terminal title?
> 
> If I remembered it I'd have included it :)
> 
> The first 3 results from Googling "xterm escape sequences" are

This is where to start (the other ones are older versions):

http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

By the way, it's the first hit when I ask google the same question.

>   rtfm.etla.org/xterm/ctlseq.html
> 
>   www.faqs.org/docs/Linux-mini/Xterm-Title.html
> 
>   www.kitebird.com/csh-tcsh-book/ctlseqs.pdf
> 
> I'd expect it to be in at least one of them.

That's a nice assumption.  However...

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp34PRPxLogu.pgp
Description: PGP signature


Re: backup terminal title

2010-02-07 Thread Thomas Dickey
On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote:
> I finally got it:
> 
> printf "\033[22;0t"
>   This stores the current icon and window titles on a stack.
> printf "\033[23;0t"
>   This restores them from the stack.
> 
> It works fine with xterm, has no effect on rxvt-unicode (which I
> am using), though.

I wouldn't expect it to work with the other terminals - it takes usually
a year or more before features from xterm get copied into other programs.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp9O40FX1T1V.pgp
Description: PGP signature


Re: backup terminal title

2010-02-07 Thread Thomas Dickey
On Sun, Feb 07, 2010 at 09:49:54AM +0100, Dominic Fandrey wrote:
> I finally got it:
> 
> printf "\033[22;0t"
>   This stores the current icon and window titles on a stack.
> printf "\033[23;0t"
>   This restores them from the stack.
> 
> It works fine with xterm, has no effect on rxvt-unicode (which I
> am using), though.

I wouldn't expect it to work with the other terminals - it takes usually
a year or more before features from xterm get copied into other programs.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpxj4XVJjr07.pgp
Description: PGP signature


Re: openal-soft

2010-02-11 Thread Thomas Zander
On Thu, Feb 11, 2010 at 00:33, b. f.  wrote:

> [openal-patch]

There exists already a PR for this. If the committers are willing to
commit it during the current ports freeze, it'll be in the ports tree
soon.
If not, don't worry. As soon as the ports freeze is over, there will
be a substantial update to the mplayer and mencoder ports after the
freeze, where the switch to openal-soft has already been made.

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


Virtualbox on Freebsd

2010-03-03 Thread Thomas Lawrence

   Hello Guys and Gals,
   Can you clear something up for me.
   Is it possible to install the closed source version of Virtualbox on
   Freebsd8.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps

2007-07-10 Thread Thomas Sparrevohn
On Tuesday 10 July 2007 17:02:46 Abdullah Ibn Hamad Al-Marri wrote:
> On 7/10/07, Kyrre Nygård <[EMAIL PROTECTED]> wrote:
> > Hello.
> >
> > My friend is switching to Linux because FreeBSD is failing on him.
> >
> > When downloading a file from a FreeBSD box and a Linux box on the same
> > network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95
> > Kbps. I have no idea what's wrong, but my man isn't really into good
> > information design (e.g. taking something complex and making it easy),
> > so his system is a mess. Maybe some of you can help me locate where the
> > problem's at?
> >
> > Thanks guys,
> > Kyrre
> 
> Could you please show the uname -a info?
> 

It could be at his router does not understand the RFC1323 extensions -
try setting 

tcp_extensions="NO"

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


Invalid or unrecognized AC97 codec in Creative/Ensoniq CT5880 sound

2007-07-18 Thread Thomas Mueller
I have a problem with onboard sound on a Gigabyte GA-7DXR motherboard, am
trying to determine if the fault is with the software drivers, or if the
AC97 codec is really dead or not there.  I have Linux (Slackware 11.0)
installed, also FreeBSD 6.2, have also made and run live CDs for NetBSD 2007
(v4 beta), Mepis (Linux), OliveBSD (based on OpenBSD), and the DOSDRV on the
CD also doesn't work (no specific messages there).  I  have never had any
sound at all with this motherboard/sound card and am getting ready to buy an
add-on PCI sound card (or USB?).  CPU is AMD Athlon 1400 MHz, I have 40 GB 
Western Digital hard drive.  Other installed OS, besides Linux and FreeBSD,
is DR-DOS 7.03.  I have a logical partition where I could install a 180-day
evaluation version of MS-Windows Server 2003 from a CD that I received in the
mail unsolicited, or could install NetBSD 3.1.  I show the pertinent portions 
of the dmesg files, or /var/log/syslog in the case of Slackware.

Following is from FreeBSD 6.2 installation dmesg:

pcm0:  port 0xd400-0xd43f irq 10 at device 14.0 on pci0
pcm0: AC97 reset timed out.
pcm0: ac97 codec invalid or not present (id == 0)
device_attach: pcm0 attach returned 6

Following is from NetBSD 2007 live CD dmesg:

eap0: interrupting at irq 10
eap0: ac97: unknown (0x) codec; no 3D stereo
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
puc0 at pci0 dev 15 function 0: US Robotics (3Com) 3CP5609 PCI 16550 Modem (com)

Following is from OliveBSD live CD:

eap0 at pci0 dev 14 function 0 "Ensoniq CT5880" rev 0x03: irq 10
eap0: eap1371_read_codec timeout 2
ac97: codec id not read
audio0 at eap0
midi0 at eap0: 

Following is from Mepis (Linux) live CD:

[17179612.82] ALSA /usr/src/modules/alsa-driver/pci/ac97/ac97_codec.c:2060: 
AC'97 0 access is not valid [0x0], removing mixer.
[17179612.836000] ACPI: PCI interrupt for device :00:0e.0 disabled
[17179612.836000] ENS1371: probe of :00:0e.0 failed with error -5
[17179613.10] fuse init (API version 7.8)

With Slackware (Linux) installation, nothing about sound card showed in 
dmesg, but the info showed in /var/log/syslog:

Jul 16 08:55:33 darkstar kernel: ALSA ac97_codec.c:1919: AC'97 0 access is not 
valid [0x0], removing mixer.
Jul 16 08:55:33 darkstar insmod: 
/lib/modules/2.4.33.3/kernel/sound/pci/snd-ens1371.o.gz: init_module: No such 
device
Jul 16 08:55:33 darkstar insmod: 
/lib/modules/2.4.33.3/kernel/sound/pci/snd-ens1371.o.gz: Hint: insmod errors 
can be caused by incorrect module parameters, including invalid IO or IRQ 
parameters.   You may find more information in syslog or the output from 
dmesg
Jul 16 08:55:33 darkstar insmod: 
/lib/modules/2.4.33.3/kernel/sound/pci/snd-ens1371.o.gz: insmod snd-ens1371 
failed

and these lines were repeated many times, as if once weren't enough.

Should I just go ahead and buy a PCI sound card, or is there any sense in
making any further attempts with Linux, NetBSD, FreeBSD, or the 180-day
evaluation version of Windows Server 2003?  I feel like I'm just beating a
dead horse, or dead sound chip/AC97 codec.

Tom

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


Weird Issue with nv 2.1.2 Driver

2007-07-21 Thread Thomas Sparrevohn
Hi 

I am struggling with the nv driver - It does not allow me to use the 1280x1024 
mode with my monitor even when I configure 
the VertHertz etc. manually - However the same configuration file works just 
fine when I am using the vesa driver instead?

Now the really weird thing is that if I generate a configuration file using X 
-configure it generates a configuration file where 
even the vesa mode - while entering the correct resolution gets the Wrong Vert 
and Hortz settings - So some module seems
to overwrite the manually entered values 

Does anybody have an Idea? I would love to be able to use the NV driver in a 
higher resolution than 1024x768?

PS. The Machine has two nVidia 8800 GTX SLI configured cards with one monitor 
connected 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: mc (GNU midnight commander) have I18N problem on FreeBSD?

2007-07-22 Thread Thomas Dickey
On Sun, Jul 22, 2007 at 04:05:35PM +0800, Zhang Weiwu wrote:
> Dear list
> 
> I found mc 4.6.1 behave differently on FreeBSD 6.2 and SuSE 10.2
> 
> 1) run urxvt on FreeBSD 6.2
> 2) run mc 4.6.1, take a screenshot:

perhaps FreeBSD's port for mc has one of the UTF-8 patches,
perhaps it does not.  There's no official upstream patch for it.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgp37i2MqiHDJ.pgp
Description: PGP signature


<    3   4   5   6   7   8   9   10   11   >