PASSWORD LOST!!

2010-02-08 Thread Eric Petersen

Hey guys,

I have a web/ftp server loaded with FreeBSD. This was done a couple  
of years back. Since then the person or persons that did the original  
install have gone out of business and cannot be found.


Currently I have an issue logging into the ftp. I hooked a monitor up  
to the server and I'm getting "filesystem full" errors and since I  
don't have a password to get in I cannot have it fixed by someone  
that knows UNIX. I have made numerous attempts to contact the person  
that installed on a personal level. But I'm getting the impression he  
has moved with no forwarding.


I you have need for more information I will supply it. I just don't  
know where to start. Our company's ftp is down and doesn't look like  
it will return anytime soon with out further assistance.


Thank you for your time and have a great day.

--
Eric Petersen
Pre-Press Technician
Anderson Brothers Printing Company
4525 41st Street
Sioux City, Iowa 51108
phone: 712.239.
fax: 712.239.3322
e-mail: er...@andersonbrothers.biz



___
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: su to root not prompting for a password

2006-04-17 Thread Petersen
On Monday, April 17, 2006 5:45 PM James Riendeau wrote:

> 
> I upgraded to 6.1 RC-1 from 5.4, and when I su to root, it's not  
> prompting for a password.  I created a new account, and it does the  
> same thing there.  If the user is in the wheel group, it 
> drops to the  
> # prompt.  If not, it echos the BAD SU attempt error message.  I  
> think it has something to do with PAM, but the documentation is not  
> exactly written for those of us who don't have MS/Ph.D.'s in 
> computer  
> science.  Does anyone know how to fix this?  I thought I 
> followed all  
> the directions in /usr/src/UPDATING, but I must have done something  
> wrong, probably while using mergemaster.
> 
> My apologies if this has already been asked, but the search function  
> on lists.freebsd.org won't let me access other search result pages  
> beyond the first, and google didn't help.
> 

You probably clobbered master.passwd when you mergemastered. In all
probability, root now has no password at all. Set one with passwd.

Petersen

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


lprps: ioctl(TIOCFLUSH): Operation not permitted

2006-02-13 Thread Bjarne Wichmann Petersen
Hi

I did something stuppid and messed up my lpd-setup. I looked around in KDE's 
"Printer Manager" in administrator-mode, and even though I didn't apply any 
changes it activated cupsd (should it do that?) which in turn overwrote 
my /etc/printcap. Now I can't get back to the old and working setup.

I've removed /usr/local/etc/rc.d/cups.sh, so /etc/printcap doesn't get 
overwritten any more.

Though I don't have a copy of my /etc/printcap I found older copy (which might 
be identical) which have worked in the past:

laserjet|lp|ps|PS|S|hp|HP LaserJet 1200:\
 :sh:sd=/var/spool/lpd/laserjet:\
 :lp=/dev/lpt0:\
 :mx#0:\
 :if=/usr/local/libexec/psif:

The psif-filter is installed and at that location.

lpd is up and running.

Now, if I try to print anything I get this errormessage in console/syslog:

eb 13 09:50:46 desktop lprps[842]: laserjet: ioctl(TIOCFLUSH): Operation not 
supported by device
Feb 13 09:50:46 desktop lpd[836]: laserjet: job could not be printed 
(cfA010desktop.home)

I've tried to fiddle around with lptcontrol and gets tiocflush-errors for all 
switches but -s.

I have NO idea for where to look next. Google doesn't turn up anything useful 
on tiocflush and I have no idea what it means.

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


Re: FreeBSD 6 on Centrino laptop : how to prolong battery life with cpufreq (like est and estctrl did)

2005-11-13 Thread J. Martin Petersen
Miles Keaton wrote:
>>Miles Keaton wrote:
>>
>>>I'm happily using FreeBSD 6 on a Centrino laptop, but wondering if
>>>anyone can explain ("for dummies") how to use the new cpufreq +
>>>SpeedStep to throttle-down my CPU usage and extend battery life - the
>>>way that sysutils/est and sysutils/estctrl used to do in FreeBSD 5?
> 
> On 11/12/05, J. Martin Petersen <[EMAIL PROTECTED]> wrote:
> 
>>I'm using powerd, it's working great.
> 
> Any advice on usage?  I tried it and got this error:
> 
> # powerd -a minimum
> powerd: lookup freq: No such file or directory

Have you loaded the cpufreq kernel module. I'm not sure if the man-page
is verbose enough on this issue.

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


Re: FreeBSD 6 on Centrino laptop : how to prolong battery life with cpufreq (like est and estctrl did)

2005-11-12 Thread J. Martin Petersen
Miles Keaton wrote:
> I'm happily using FreeBSD 6 on a Centrino laptop, but wondering if
> anyone can explain ("for dummies") how to use the new cpufreq +
> SpeedStep to throttle-down my CPU usage and extend battery life - the
> way that sysutils/est and sysutils/estctrl used to do in FreeBSD 5?

I'm using powerd, it's working great.

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


RE: portupgrade -ar (why?)

2005-10-15 Thread Petersen
Peter Matulis <[EMAIL PROTECTED]> wrote:
> --- Petersen <[EMAIL PROTECTED]> wrote:
> 
>> The -a switch will upgrade a port only if its version number has
>> increased (as you know). 
>> 
>> The -r switch will upgrade a port if one of its dependancies has been
>> upgraded, regardless of whether its version number has changed or
>> not. 
>> 
>> e.g.
>> 
>> Appbar-1.0 depends on libfoo-1.0. Libfoo gets a portbump to 1.1.
>> portupgrade -r libfoo will install libfoo-1.1, plus also force a
>> recompile and reinstallation of appbar-1.0, irrespective of the fact
>> that appbar's version remains the same. Thus, any ABI changes that
>> happened in libfoo that could potentially break appbar that was
>> compiled/linked against the previous version are limited.
>> 
>> In an ideal world, this wouldn't be a problem. ABIs and APIs
>> should remain constant, until a library revision bump (i.e., if
>> libfoo.1's ABI changed and broke apps, it shoulda been bumped to
> libfoo.2). > Most times you can get away with not recompiling a
> port's dependants
>> because developers, but if you don't then it can shoot you in the
>> foot (read the recent list archives regarding openssl-0.9.8 to see
>> an example of this).
> 
> Thank you very much (BTW, there is something missing in your last
> sentence). 
> 

..because developers mostly take ABI breakage into account and tend not
to do it on minor versions, but if you don't...

> One last thing.  Is this the case with the 'R' switch as well?
> 
> 
> 

Well, the -R switch won't force anything to upgrade if it's already at
the latest version. AFAIK (someone please correct me on this if I'm
wrong) it is pointless to use it with the -a switch as -a by its very
nature is upgrading anything that needs upgrading anyway, which includes
any dependancies of a port, and AFAIK -a will sort the upgrades so that
dependancies are done before upgrades (thus, 'portupgrade -a' is
functionally equivalent to 'portupgrade -R *').

Uninstalled dependancies of an installed port are irrelevant in any
portupgrade case, as the port will automatically pull them in as part of
its compilation.

Petersen


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


RE: portupgrade -ar (why?)

2005-10-15 Thread Petersen
[EMAIL PROTECTED] <> wrote:
> --- Jan Grant <[EMAIL PROTECTED]> wrote:
> 
>> On Sat, 15 Oct 2005, Peter Matulis wrote:
>> 
>>> What is the use of specifying the 'r' switch when using the 'a'
>>> switch? 
>>> 
>>> # portupgrade -ar
>>> 
>>> This says to upgrade all ports plus the ones that depend on all
>>> those ports.  Am I missing something?  Wouldn't "the ones that
>>> depend" be upgraded anyway?
>> 
>> Not necessarily. For instance: package P might use library L. A
>> change in L might alter the size and layout of structures exposed to
>> P. The source-level API of L is unchanged; the binary-level ABI is
>> altered. So whilst the source code of P might not have changed, it
>> might (for instance) be using a macro defined by a header in L that
>> will look at the wrong offset in the new structure. These kinds of
>> ABI compatibility problems can be fixed by recompilihng P.
> 
> But still, a port requires upgrading or it does not.  Using 'r',
> portupgrade ultimately checks whether some port should be upgraded.
> Are you saying that the 'r' switch involves a different decision
> making process than 'a'? 
> 
> 

The -a switch will upgrade a port only if its version number has
increased (as you know).

The -r switch will upgrade a port if one of its dependancies has been
upgraded, regardless of whether its version number has changed or not.

e.g.

Appbar-1.0 depends on libfoo-1.0. Libfoo gets a portbump to 1.1.
portupgrade -r libfoo will install libfoo-1.1, plus also force a
recompile and reinstallation of appbar-1.0, irrespective of the fact
that appbar's version remains the same. Thus, any ABI changes that
happened in libfoo that could potentially break appbar that was
compiled/linked against the previous version are limited.

In an ideal world, this wouldn't be a problem. ABIs and APIs should
remain constant, until a library revision bump (i.e., if libfoo.1's ABI
changed and broke apps, it shoulda been bumped to libfoo.2). Most times
you can get away with not recompiling a port's dependants because
developers, but if you don't then it can shoot you in the foot (read the
recent list archives regarding openssl-0.9.8 to see an example of this).

Petersen

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


Re: Software to monitor RAID 5 Hardware on Dell Server.

2005-10-07 Thread J. Martin Petersen
Jayesh Jayan wrote:
> Hi,
> 
> I had disturbed you all with some doubts regarding freebsd before.
> 
> Now i have servers up and running.
> 
> I am using the monitoring tool named nagios for checking the services run on
> the server.
> 
> Now i am in need of a software or so to monitor the RAID hardware ..
> 
> Below is the URL to the specification of Dell server which I use.
> 
> http://www1.us.dell.com/content/products/productdetails.aspx/pedge_2850?c=us&cs=04&l=en&s=bsd#tabtop
>  Please guide me on this.

Have a look at sysutils/megarc from ports. You can use it to query LSI
MegaRAID-based controllers (like the Dell Perc4). It is severely lacking
documentation, but it works. You can for instance use
megarc -dispCfg -a0
to show the status for the RAIDs on the first controller.

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


Re: groupadd/useradd in FreeBSD?

2005-07-28 Thread J. Martin Petersen

Xu Qiang wrote:
Hi, all: 

I am installing MySQL 4.1.13 into my machine. It has finished successfully. But before or after that, I need create some user account rather than root by the command "groupadd mysql" and "useradd -g mysql mysql". 

However, these commands are not found in my FreeBSD 5.3 system. 


Any help on this issue?


You're looking for adduser(8). If you install MySQL from ports, though, 
the user will be added automatically.


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


RE: ssh over a very bad http proxy :(

2005-07-26 Thread Petersen
Lei Sun <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I spent almost entire week, customizing my freebsd server at home, and
> I would like to access it from my work place.
> 
> But it doesn't seems to be possible without making http tunnels
> through an authenticated proxy server.
> 
> I tried to use http-tunnel, it doesn't support the
> authenticated feature.

If you're referring to www/httptunnel, then yes it does. I've personally
used it to push ssh sessions via an authenticated http firewall. It's a
little flakey when the http proxy does something it doesn't like (like
closing the connection - it generally just crashes the hts process), but
it does work. Works fine on cygwin too if you only have a windows
machine at one end. Checkout the -P option.

Petersen



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


Per CPU load statistics

2005-07-12 Thread J. Martin Petersen
Hi

Is it possible to get per CPU (load) statistics? It seems cp_time is a
sum for all the CPUs, so is there another way to get this information?

Cheers, Martin

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


attaching an usb mp3-player to a device

2005-06-13 Thread Bjarne Wichmann Petersen
Hi

I'm trying to attach a mp3-player (usb) to /dev/mp3player but usbd wont "play 
ball". The mp3-player gets attached to /dev/da0.

This is what I've done.

# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
VIA(0x), rev 1.00
 port 1 addr 2: full speed, power 500 mA, config 1, MP3 PLAYER(0x0301), 
ICSI(0x0dda), rev 2.1c
 port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
VIA(0x), rev 1.00
 port 1 powered
 port 2 powered

editing /etc/usbd.conf and inserting:
#MP3 Player
device "MP3 Player"
  devname "da[0-9]+"
  product 0x0301
  attach "rm -f /dev/mp3player; chmod 666 /dev/${DEVNAME}; ln 
-s /dev/${DEVNAME} /dev/mp3player"
  detach "rm -f /dev/mp3player"

before the bottomline: 

device "USB device"

detaching the mp3player, run:

#/etc/rc.d/usbd restart

Attach the mp3player again and it only gets attached to /dev/da0

What am I doing wrong?

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


Re: ircd

2005-06-08 Thread J. Martin Petersen
kalin mintchev wrote:
> 
> hi all...
> 
> i found this 2 lines in the netstat output on one of my machines. we are
> not running ircd and according to nmap ports 3483 and 2143 are closed...
> 
> can somebody please explain??   thanks.
> 
> tcp4   0  0  server.3484  zagreb.hr.eu.und.ircd 
> ESTABLISHED
> tcp4   0  0  server.2143  free.tyranz.com.ircd  
> ESTABLISHED

Try using sockstat (with "-4 -p 6667" for instance) to see who has the
sockets open.

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


Re: VPN through a FreeBSD firewall?

2005-05-03 Thread J. Martin Petersen
Per B wrote:
> Second question: someone told me that the ZyXEL cannot handle 24 Mbit,
> therefor I want to use the FreeBSD box instead. Can FreeBSD handle 24Mbit
> from the ADSL modem? I think it can, anyone against? ;-)

We're using a FreeBSD 5.3 machine with pf and AltQ as our
firewall/gateway/nat-solution for our 26 MBit link. We have about 1000
users, and it works flawlessly, but I guess it depends on what kind of
hardware you're using.

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


Re: Italics not shown properly in OpenOffice

2005-04-14 Thread Bjarne Wichmann Petersen
On Saturday 09 April 2005 18:10, Andreas Davour wrote:
> Hi!
>
> I have a strange problem in OpenOffice 1.1.4 with italics. Text
> formatted as italics doesn't show up in italics on screen. If I cut and
> paste som text from an old document it hows up properly. This is very
> strange, and a quite severe bug - if that's what it is.

I've stumbled over the same som time (years?) ago. If I remember correctly, 
using a different font seemed to "fix" this.

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


Re: xfce4 error

2005-03-25 Thread J. Martin Petersen
Matt Juszczak wrote:
Installed xorg and xfce4 
Then I get the following.  Any ideas?  Thank you!
-Matt
---snip---
heather$ startxfce4
/usr/X11R6/bin/startxfce4: Starting X server
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: FreeBSD 5.3 i386 [ELF]
Current Operating System: FreeBSD heather 5.3-RELEASE FreeBSD 
5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386
Build Date: 25 March 2005
   Before reporting problems, check http://wiki.X.Org
   to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Mar 25 03:26:15 2005
(==) Using config file: "/etc/X11/XF86Config"
xscreensaver: not found
Agent pid 18253

** (xfce-mcs-manager:18257): CRITICAL **: find_master: assertion 
`mixer_handle != -1' failed

** (xfce-mcs-manager:18257): WARNING **: oss: No master volume
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be 
created.
_IceTransSocketUNIXCreateListener: mkdir(/tmp/.ICE-unix) failed, errno = 2
_IceTransMakeAllCOTSServerListeners: failed to create listener for local
xfce4-session: Unable to establish ICE listeners: Cannot establish any 
listening sockets
Agent pid 18253 killed

waiting for X server to shut down The application 'xfce-mcs-manager' 
lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed
the application.
Maybe the following from /usr/ports/UPDATING can help?
|20050126:
|  AFFECTS: users of x11-wm/xfce4
|  AUTHOR: [EMAIL PROTECTED]
|
|  If you use Xorg 6.8.1: Make shure there is an /tmp/.ICE-unix with
|  propper rights. For further informations about that, please refer to
|  2004122
|  Please update all your plugins as well when you update from 4.0.6 to
|  4.2. They all need recompiling to link against the new xfce libraries
Cheers, Martin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: portaudit question

2004-12-10 Thread Petersen
Thomas S. Crum wrote:
> Is there something that I am not updating that portaudit
> would like to see
> done or is this just a generic warning. Either way, please provide
> examples of what I might due to have it stop complaining. I
> can find no
> examples googling the portaudit "note" below.
> 
> # Here's what I did.
> 

> 
> # Here's what I get.
> 
> beta# /usr/local/sbin/portaudit -Fda
> auditfile.tbz 100% of   15 kB   33
> kBps New database installed.
> Database created: Fri Dec 10 08:40:32 EST 2004
> Affected package: FreeBSD-491000
^^

Portaudit is complaining that FreeBSD-491000 itself has a vulnerability.
Specifically within the cvs code as it tells you.

> Type of problem: multiple vulnerabilities in the cvs server code.
> Reference:
> <http://www.FreeBSD.org/ports/portaudit/d2102505-f03d-11d8-81b
> 0-000347a4fa 7d.html> Note: To disable this check add the uuid to
> `portaudit_fixed' in /usr/local/etc/portaudit.conf 0 problem(s) in
> your installed packages found.  
> 

As you can patch the system cvs without bumping the kernel version
number, portupgrade tells you that you can disable the check for this
uuid in portaudit.conf. This of course assumes you actually have patched
the cvs code in the base system (see the multiple security advisories
issued on the cvs vulnerabilities for details on how to patch them
manually, or upgrade to a more recent version/patchlevel of the 4.x
tree).

Petersen

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


devfs HOWTO... where?

2004-10-22 Thread Bjarne Wichmann Petersen

I'm looking for a guide that describes the "magic" of devfs, devfs.conf, 
devfs.rules? Devfs is all "blackbox" to me.

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


R/W mount of / denied

2004-07-27 Thread Lutz Petersen
After a system crash (e.g. a power failure), the terminal-less FreeBSD 
5.2.1-RELEASE I run does not boot up properly any more. Here is an 
excerpt from /var/log/messages:

Jul 25 20:18:04 server kernel: Mounting root from ufs:/dev/ad0s1a
Jul 25 20:18:04 server kernel: WARNING: / was not properly dismounted
Jul 25 20:18:04 server kernel: WARNING: R/W mount of / denied. 
Filesystem is not clean - run fsck
Jul 25 20:18:04 server kernel: WARNING: R/W mount of / denied. 
Filesystem is not clean - run fsck
Jul 25 20:18:04 server kernel: WARNING: /home was not properly dismounted
Jul 25 20:18:04 server kernel: WARNING: /tmp was not properly dismounted
Jul 25 20:18:04 server kernel: WARNING: /usr was not properly dismounted
Jul 25 20:18:04 server kernel: WARNING: /var was not properly dismounted

As a result, BIND does not start up any more, which leaves my FreeBSD 
box in an unusable state (no internet connection, no network connections 
that use DNS). I did not experience this behaviour with 4-STABLE. What's 
wrong here?

The other day I read about a misconfiguration of /etc/fstab (wrong 
fs_passno), which prevented FreeBSD from doing the usual consistency 
checking at startup time. My fstab is looking fine however.

Any help is greatly appreciated,
Lutz
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


R/W mount of / denied

2004-07-26 Thread Lutz Petersen
After a system crash (e.g. a power failure), the terminal-less FreeBSD
5.2.1-RELEASE I run does not boot up properly any more. Here is an
excerpt from /var/log/messages:
Jul 25 20:18:04 server kernel: Mounting root from ufs:/dev/ad0s1a
Jul 25 20:18:04 server kernel: WARNING: / was not properly dismounted
Jul 25 20:18:04 server kernel: WARNING: R/W mount of / denied.
Filesystem is not clean - run fsck
Jul 25 20:18:04 server kernel: WARNING: R/W mount of / denied.
Filesystem is not clean - run fsck
Jul 25 20:18:04 server kernel: WARNING: /home was not properly dismounted
Jul 25 20:18:04 server kernel: WARNING: /tmp was not properly dismounted
Jul 25 20:18:04 server kernel: WARNING: /usr was not properly dismounted
Jul 25 20:18:04 server kernel: WARNING: /var was not properly dismounted
As a result, BIND does not start up any more, which leaves my FreeBSD
box in an unusable state (no internet connection, no network connections
that use DNS). I did not experience this behaviour with 4-STABLE. What's
wrong here?
The other day I read about a misconfiguration of /etc/fstab (wrong
fs_passno), which prevented FreeBSD from doing the usual consistency
checking at startup time. My fstab is looking fine however.
Any help is greatly appreciated,
Lutz
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: StarOffice60 port help

2004-05-26 Thread Bjarne Wichmann Petersen
On Saturday 22 May 2004 09:11, Hermes Trismegistus wrote:
> Is there some documentation for installing port StarOffice60? I have
> looked on freebsd.org, dutifully did my google'ing, and read all files in
> "/usr/ports/editors/staroffice60". When I run "make" in the port
> directory, I just get this stdout:
>
> ===>  staroffice-6.0_2 is an interactive port.
>
> I have the staroffice install binary, and the tar patch. I just need a bit
> of direction. Hopefully, someone can point me in the right direction.

I don't use ports to install staroffice. I just use the linux installscript on 
the CD and install it in /usr/local/staroffice6.0. Then as a user I 
run /usr/local/startoffice/program/setup and make a local installation.

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


Re: [samba] can't print from w2k to bsd printer

2004-05-18 Thread Bjarne Wichmann Petersen
On Sunday 09 May 2004 22:07, Bjarne Wichmann Petersen wrote:

> I've spend several hours trying to get samba to play nice. I can get user
> to login from windows to their bsd-account, mount CD's etc.. But I can't
> get the users to print. I can see the printer and I can install it. But
> when I click on the installed printer I get "access denied".
>
> I've tried everything, dublicating every smb.conf I could find. Trying out
> every options. None helped. Hope someone here can spot what's wrong.
>
> My setup is a desktop PC running FBSD and a laptop with w2k. These are
> connected through a router. The printer is a laserjet and works great on
> the FBSD.

I've managed to "solve" my problems, though I'm not exactly sure on how, and 
it's not perfect yet; ie. it's slow on connecting. But my solution included a 
mixture of medling with my firewall-settings both on the server and windows 
client. And creating a "new" printer in /etc/printcap, that just passes the 
data to the printer (no filters). And perhaps some adjusted samba-setting.

In my firewall (serverside) I opened up to all trafic on port 137-139 and 445 
(I didn't know about port 445 previously).

${fwcmd} add allow tcp from any to any 137-139
${fwcmd} add allow tcp from any to any 445
${fwcmd} add allow udp from any to any 137-139
${fwcmd} add allow udp from any to any 445
${fwcmd} add allow tcp from ${net}:${mask} to me 137-139
${fwcmd} add allow tcp from ${net}:${mask} to me 445
${fwcmd} add allow udp from ${net}:${mask} to me 137-139
${fwcmd} add allow udp from ${net}:${mask} to me 445
${fwcmd} add allow tcp from me to ${net}:${mask} 137-139
${fwcmd} add allow udp from me to ${net}:${mask} 137-139
${fwcmd} add allow tcp from me to ${net}:${mask} 445
${fwcmd} add allow udp from me to ${net}:${mask} 445

The thing that nacks me about my firewall settings is, that it's possible more 
open than nessecary. Any help on what trafic-type that can be closed would be 
great.

On my windows-client I had port 445 closed, though I'm not sure I need to open 
it?

My printcap-entry for samba looks like this:

samba|HP LaserJet 1200 via samba:\
  :sh:sd=/var/spool/lpd/samba:\
  :lp=/dev/lpt0:\
  :mx#0:\

These are the relevant smb.conf entries:

[global]
netbios name = FBSD
server string = "Samba Server"
security = SHARE
encrypt passwords = Yes
wins support = Yes
printing = bsd
printcap name = /etc/printcap
load printers = Yes
print command = lpr -r -P'%p' %s

[printers]
comment = All printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = Yes
use client driver = Yes

To set up a printer from the w2k-client, I used the printer-wizard and chose a 
networkprinter and then searched the network for the printer (hence the 
'browseable = Yes').

Thanks for the pointers in the right direction.

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


Re: help: VCD Player for FreeBSD

2004-05-10 Thread Bjarne Wichmann Petersen
On Monday 10 May 2004 20:13, Mark Jayson Alvarez wrote:
> Hi,
>If I already have the video cd, what else do I need
> to be able to play vcd movies on X windows(im using
> kde 3.1.4, freebsd4.9). In Windows, I usually locate
> the .dat file in Mpeg folder inside the vcd itself and
> open it in Media player.

Have you tried installing kaffeine or kmplayer? They should be able to play 
vcd's.

Bjarne

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


[samba] can't print from w2k to bsd printer

2004-05-09 Thread Bjarne Wichmann Petersen
Hi

I've spend several hours trying to get samba to play nice. I can get user to 
login from windows to their bsd-account, mount CD's etc.. But I can't get the 
users to print. I can see the printer and I can install it. But when I click 
on the installed printer I get "access denied". 

I've tried everything, dublicating every smb.conf I could find. Trying out 
every options. None helped. Hope someone here can spot what's wrong.

My setup is a desktop PC running FBSD and a laptop with w2k. These are 
connected through a router. The printer is a laserjet and works great on the 
FBSD.

And I'm a newbie to samba.

/etc/printcap (using fbsd's native lpr):

laserjet|lp|ps|PS|S|hp|HP LaserJet 1200:\
:sh:sd=/var/spool/lpd/laserjet:\
:lp=/dev/lpt0:\
:mx#0:\
:if=/usr/local/libexec/psif:

/usr/local/etc/smb.conf: (as it looks right now).

[global]
  netbios name = fbsd
  server string = "Samba Server"
  workgroup = WORKGROUP
  security = share
  encrypt passwords = yes
  wins support = yes
  printing = bsd
  printcap name = /etc/printcap
  load printers = yes
  use client driver = no

[printers]
  comment = All printers
  printable = yes
  path = /var/spool/samba
  browseable = no
  public = yes
  read only = yes
  writable = no

[laserjet]
  comment = LaserJet 1200 on FreeBSD
  path = /var/spool/samba
  browseable = yes
  printable = yes
  writable = no
  hosts allow = 192.168.1.
  guest ok = yes

Permission on /var/spool/samba:

drwxrwxrwt  2 root   wheel   512 May  9 21:35 samba

I've tried 2 ways of installing the printer on w2k. 1) Clicking on the 
printericon in the local shares folder and 2) "add new printer" and selecting 
the printer from the network. Both ways gives me "access denied" after 
installation.

Help! ;)

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


libintl.so.4 not found when loading javaplugin in Firebird

2004-01-29 Thread Bjarne Wichmann Petersen
Hi!

I get this when I start firebird:

LoadPlugin: failed to initialize shared 
library /usr/local/diablo-jre1.3.1/plugin/i386/ns600/libjavaplugin_oji.so 
[Shared object "libintl.so.4" not found]

I don't know what it means or whether it's firebird og diablo that's faulty, 
though the javavm seems to work with konqueror.

I deleted every port and cvsup'ed last saturday, so everything should be up to 
date.

So why is java missing libintl.so.4?

Bjarne

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


Re: cdbakeoven doesn't see atapi burner

2003-11-14 Thread Bjarne Wichmann Petersen
On Friday 14 November 2003 13:55, Rod Person wrote:

> > cdrdao isn't a dependency for cdbakeoven nor KDE.
> http://cdbakeoven.sourceforge.net/software.php
> it's listed as a requirement on the web site for cd bake oven.

But it's not a dependency in the portssystem! ;) And it shouldn't have any 
influence whether cdbakeoven can detect the devices or not.

Anyway, thanks for your input. I've gotten a step closer; run as root, 
cdbakeoven recognises my devices. ;)

Bjarne

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


Re: cdbakeoven doesn't see atapi burner

2003-11-14 Thread Bjarne Wichmann Petersen
On Friday 14 November 2003 12:53, Rod Person wrote:
> On Friday 14 November 2003 06:42 am, It was written:
> > Ok... some of this was black talk to me. I just tested cdbakeoven as
> > root, and the devices was recognised. So I get the "it's something about
> > permission"-part. What I don't get is the "cdrdao"-thing; it's a
> > tool/app/ port, right? Don't have it installed.
> cdrdao - CDR Disk At Once, the tool that allows you to record the entire cd
> at once instead of track by track. I believe that cdbakeoven uses this tool
> to detect the records, most of the other KDE recording apps do. I could be
> mistaken it been sometime since I used cdbakeoven.

cdrdao isn't a dependency for cdbakeoven nor KDE.

> > But what is it I need to change the permission for? Do i need to set
> > cdda2wav, cdrecord and cdparanoia to SUID? Or is it some device I need to
> > set the r-bit for in dev/?
> the user will need to be in the group that has access to the cd burner
> device, most likely operator. That group will need rw access to the device.
> As for cdrecord and cdparanoia I've not used them so I'm not positive how
> they work.

The user is a member of both wheel and operator. And the permission for /dev/
cd* is rw for all. But it's still only root that kan get cdbakeoven to 
recognise the devices.

So, I'm still at loss...

Bjarne

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


Re: cdbakeoven doesn't see atapi burner

2003-11-14 Thread Bjarne Wichmann Petersen
On Friday 14 November 2003 03:49, Rod Person wrote:
> On Wednesday 12 November 2003 11:47 am, It was written:
> > On Wednesday 12 November 2003 17:13, Charles Howse wrote:
> > > > Try reading 'man atapicam'. It tells you what needs to be done.
> > >
> > > Actually, I read the Handbook section on CD's, added device atapicam to
> > > my kernel config file, rebuilt the kernel.
> > > Now my burner is detected in scanbus.
> >
> > Hmm... interesting. I've done everything described in man/handbook. The
> > drives shows up (correctly) in dmesg and with camcontrol. So *why* will
> > cdbakeoven not detect the drives?
>
> did you try running cdbakeoven as root? if you run it as a normal user you
> need to have the correct permissions set to cdrdao for it to be able to
> detect the drive.

Ok... some of this was black talk to me. I just tested cdbakeoven as root, and 
the devices was recognised. So I get the "it's something about 
permission"-part. What I don't get is the "cdrdao"-thing; it's a tool/app/
port, right? Don't have it installed. 

But what is it I need to change the permission for? Do i need to set cdda2wav, 
cdrecord and cdparanoia to SUID? Or is it some device I need to set the r-bit 
for in dev/?

Bjarne

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


Re: cdbakeoven doesn't see atapi burner

2003-11-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 November 2003 17:13, Charles Howse wrote:

> > Try reading 'man atapicam'. It tells you what needs to be done.
> Actually, I read the Handbook section on CD's, added device atapicam to my
> kernel config file, rebuilt the kernel.
> Now my burner is detected in scanbus.

Hmm... interesting. I've done everything described in man/handbook. The drives 
shows up (correctly) in dmesg and with camcontrol. So *why* will cdbakeoven 
not detect the drives?

> > > Could anyone point me to some documentation for cdbakeoven, or help me
> > > get started?
> I did find *some* documentation.
> In cdbakeoven, Help, About, click the link, browse the FAQ (very minimal)
> and documentation.
> Hope this helps!

Only as much as I now know it *ought* to work... I just don't know why it 
doesn't... 

Bjarne

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


Re: cdbakeoven doesn't see atapi burner

2003-11-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 November 2003 14:38, Charles Howse wrote:
> Hi,
> I have an atapi cd burner that cdbakeoven doesn't see when starting.
>
> (output from dmesg)
> acd0: CD-RW  at ata0-slave UDMA33
>
> I know I can use burncd, although I haven't tried it.
> I want to get cdbakeoven working.
> I assume I have to load ATAPI/CAM in the kernel, and let cdbakeoven see my
> burner as a SCSI device...?

Try reading 'man atapicam'. It tells you what needs to be done.

> Could anyone point me to some documentation for cdbakeoven, or help me get
> started?

I've gotten as far as making "camcontrol devlist" show my drives, eg:

   at scbus1 target 0 lun 0 (pass0,cd0)
  at scbus1 target 1 lun 0 (pass1,cd1)

But cdbakeoven doesn't see those drives... so if you get further... please let 
me know! ;)

Bjarne

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


Re: portupgrade -arR

2003-11-11 Thread Bjarne Wichmann Petersen
On Tuesday 11 November 2003 18:33, William O'Higgins wrote:
> Quite foolishly, I ran this command without thinking it through:
>
> portupgrade -arR

Try the -n switch (ie. portupgrade -narR), this will show which ports will be 
upgraded without doing so.

Bjarne

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


Re: Problems with latest version of VICE emulator

2003-10-29 Thread Bjarne Wichmann Petersen
On Saturday 18 October 2003 16:45, Cory Bajus wrote:

> I have been unable to get the latest version of the
> VICE Commodore emulator working (1.13 - built from the
> ports tree).  The PET and Plus/4 emulator work, but
> the C64 and C128 emulators just give me a screen full
> of @'s and checkerboards.  Is VICE working for anyone,
> or am I the only one crazy enough to be trying to run
> it?  I have tried it on two different systems, one
> RELENG_4_8 and a recent RELENG_4 system.  The last
> version (1.12) worked fine for me.

Did you ever get a reply? Because, I'm getting this error too!

Bjarne

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


Re: xmms-arts plugin

2003-09-11 Thread Bjarne Wichmann Petersen
On Wednesday 10 September 2003 01:49, Todd Stephens wrote:

> > I am having a lot of pain trying to compile the xmms-arts plugin
> > available from xmms.org, since it is not in the ports anymore. If
> > anyone uses the xmms-arts plugin on freebsd I would really appreciate
> > any help. I am running FreeBSD-4.8 STABLE, with the ports cvsuped and
> > upraded today.
> I do not believe you need it.  I am running XMMS under KDE with no arts
> plugin without any problems at all.

You don't *need* it, but xmms will lock the sound-device while playing and 
thus hindering kde-apps using it. One solution is to use vchans, but it sound 
*awfull* with my HW. An arts-plugin to xmms would be really nice, but I never 
got the plugin working apart from crashing everythin IIRC.

Bjarne
-- 
Homepage: http://www.mekanix.dk

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


Problems

2003-08-19 Thread tonny petersen
Hey there...
 I having some problems whit connection to 
ftp://current.freebsd.org/pub/freebsd/snapshots/i386/4.6-release
 What is my problem... and who can´t i fixes it..?

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


RE: putting mount_smbfs -N into /etc/fstab

2003-08-03 Thread Petersen
Alexander Farber said:

> Hi,
> 
> I have:
> 
> //pref/pref /pref smbfs rw,noauto 0 0
> 
> in my /etc/fstab and it works, but I have to press 
> the return key to submit the empty password when I 
> "mount /pref" and thus I have to use the noauto option.
> 
> I there a way to put the mount_smbfs option "-N" and 
> also "-E koi8-r:cp866" into the /etc/fstab so that no 
> user interaction is required during the boot process? 
> 
> I couldn't find the answer in "man mount_smbfs" nor
> in /usr/src/contrib/smbfs/mount_smbfs/* yet.
> 

This can be solved with the smbfs config file.
Please see /usr/src/contrib/smbfs/examples/dot.nsmbrc

Petersen

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


RE: HDDs dividing rules

2003-08-02 Thread Petersen
Behalf Of Peter Rosa said:

> Hi all,
> 
> Everywhere I looked, I found only words as "make your
> own choice of partitioning schema" etc., but I think, there
> must be some rules.

How you define your partitions and what mount flags you use is very much
dependant on what you're using the box for. Only you can make this
descision.

> And what if I have an HW RAID controller. Are there some
> difficulties or differences from "normal" dividing ?
>

Nope.

> Tell us, please, something like 
> "Divide your HDD as follows:
> 1. create slices for /, /home, /etc .. It's good because

Making a slice for /etc is a 'bad' idea. Kernel can't read all the rc
scripts if they're not on root slice - not to mention /etc/fstab (thus
not being able to find any other slices to mount).

> 2. mount / as RO..

This will do a pretty good job of making it impossible for anyone to
change their pass (as /etc has to be on root slice)

> 3. mount /user as noexec+nosuid..."
> 
If by this you mean /usr, this will break just about every application
on the system (most binaries that aren't essential to core system live
in /usr/(s)bin (or /usr/local/(s)bin if you install stuff yourself). A
lot of these need to be suid/sgid too.

> I think & hope these rules are well-known, but one must know
> where to look for

Nope. Every box I setup has different slice schemes - its very dependant
on the usage.


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


Re: Can't install/upgrade/remove ports

2003-07-07 Thread Bjarne Wichmann Petersen
On Tuesday 08 July 2003 00:15, Dragoncrest wrote:
> Just recently ran into an issue upgrading, removing, or installing
> ports.  For some strange reason when I compile the port, it's fine, but
> as soon as the "make install" or any installing command runs it
> immediately dumps out with an error similar to this:
>
> ===> Generating temporary packing list
> ===> Checking if www/lynx-current already installed
> *** Error code 1
>
> It then dumps out and it won't go any farther.  It even refuses to
> remove the port even though it removes the pkg_info entry.  Anyone know
> what is causing this?  I'd really apreciate any help on this.  Thanks.

I had this exactly this problem yesterday. I don't know exactly what was 
wrong, but I think it was some package or dependency that had ruined 
something in the pkgdb.

I tried rebuilding the db with pkgdb, but it really didn't help. I had to 
remove "/var/db/pkg/flashpluginwrapper" that didn't show up when I ran 
pkg_info. After that, no problem.

Bjarne
-- 
Homepage: http://www.mekanix.dk

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


Re: Resolving or blocking eg. doubleclick.net?

2003-02-13 Thread Bjarne Wichmann Petersen
On Wednesday 12 February 2003 18:12, Marc Schneiders wrote:
> On Wed, 12 Feb 2003, at 14:53 [=GMT+0100], Bjarne Wichmann Petersen wrote:
> > $TTL 36000
> > @   IN SOA  frodo.my.domain. root.frodo.my.domain. (
> > 1 ; serial
> > 36000  ; refresh
> > 18000  ; retry
> > 1209600; expire
> > 36000  ; minimum
> > )
> > NS  frodo.my.domain.
>
> @   IN A127.0.0.1
> *   IN A127.0.0.1
> localhost   IN A127.0.0.1

Works! ... well actually uncommenting the zone-entry in named.conf helped a 
lot! ... Now browsing the web flies! ;)

Thanks to all!

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: Resolving or blocking eg. doubleclick.net?

2003-02-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 February 2003 14:43, Bjarne Wichmann Petersen wrote:

> I'm at loss to where to look else. The browser? Konq and phoenix/mozilla
> shows the same "stalling" behavior *BUT* opera loads and display
> <http://www.politiken.dk> in a snap. Hmm... what is opera doing
> differently?

Javascript? Just tried to turn off javascript on politiken.dk... makes the 
main-page render fast... but some graphics/banner still makes it stalling for 
the rest of the page-rendering?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: Resolving or blocking eg. doubleclick.net?

2003-02-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 February 2003 12:43, Daxbert wrote:

> I do this in named.conf...

I'm still getting it to resolve *.doubleclick.net

> zone "doubleclick.net" {
> type master;
> file "db.empty_zone";
> };

This I just cut'n'pasted. My /etc/named/db.empty_zone looks like this:

$TTL 36000
@   IN SOA  frodo.my.domain. root.frodo.my.domain. (
1 ; serial
36000  ; refresh
18000  ; retry
1209600; expire
36000  ; minimum
)
NS  frodo.my.domain.

"frodo.my.domain" is my hostname set in rc.conf. Is this correct?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: Resolving or blocking eg. doubleclick.net?

2003-02-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 February 2003 13:15, Daniel Bye wrote:
> On Wed, Feb 12, 2003 at 01:01:14PM +0100, Bjarne Wichmann Petersen wrote:
> > On Wednesday 12 February 2003 11:22, Daniel Bye wrote:
> > > I have just tried to resolve doubleclick.net, and the first hit took
> > > around three seconds.  Thereafter, with it cachedi locally, it came
> > > back in at most 0.02 seconds.  I reckon your best bet is to persevere -
> > > does the cache demonstrate any advantage at all?
> >
> > No advantage at all. What do you mean by "persevere"?
>
> Keep on trying!  Sounds as though you are looking at problems somewhere
> other than DNS.

Might be, but don't know what that should be. I'm having issues with both my 
freebsd setup. One on my primary desktop, with a setup that have been refined 
the more I learn about FreeBSD. The second is a vanilla setup with nothing 
special added. I'm not having issues with Windows in that regard (on the same 
HW).

Tried disabling my firewall, didn't change anything.

Someone a couple of month back told me that it was because FreeBSD made it's 
inquiries in IPv6 which doubleclick.net don't support... or something like 
that. And the solution would be to set up a cache. Well, might have mixed 
something up.

I'm at loss to where to look else. The browser? Konq and phoenix/mozilla shows 
the same "stalling" behavior *BUT* opera loads and display 
<http://www.politiken.dk> in a snap. Hmm... what is opera doing differently?

>  At a shell prompt, try
>  $ time host doubleclick.net

$ time host dk.doubleclick.net
dk.doubleclick.net mail is handled (pri=10) by relay2.doubleclick.net
dk.doubleclick.net mail is handled (pri=10) by relay1.doubleclick.net

real0m0.269s
user0m0.000s
sys 0m0.005s

$ time host dk.doubleclick.net
dk.doubleclick.net mail is handled (pri=10) by relay1.doubleclick.net
dk.doubleclick.net mail is handled (pri=10) by relay2.doubleclick.net

real0m0.009s
user0m0.004s
sys 0m0.001s

So, it's safe to assume my cache is working? ... and perhaps, resolving 
doubleclick.net et al isn't the issue?

But looks like the cache expires after a couple of minutes?

> a few times, and see what sort of reponse times you get.  As a previous
> poster has said, the problem may be more to do with downloading phat
> content than with getting DNS resolution.

May be. But it's some fat content that doesn't show at my end. Both my CPU and 
connection looks pretty idle while retreiving the content. And since explorer 
have no issues, I'm not sure I'd buy into that explanation.

> Are you having similar problems with other DNS records?

Other than doubleclick.net? A few other, though I can't recall which. Usually 
site with graphics/banners/content from a slew of servers.

>  What do you have
> in /etc/resolv.conf?

Right now, just "nameserver 127.0.0.1".

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: Resolving or blocking eg. doubleclick.net?

2003-02-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 February 2003 11:22, Daniel Bye wrote:

> I have just tried to resolve doubleclick.net, and the first hit took
> around three seconds.  Thereafter, with it cachedi locally, it came back
> in at most 0.02 seconds.  I reckon your best bet is to persevere - does
> the cache demonstrate any advantage at all?

No advantage at all. What do you mean by "persevere"?

> I put my upstream (ISP's) caches in the forwarders section in named.conf.
> While not strictly necessary, as already pointed out, it can give you the
> advantage of tapping into a huge set of cached data on your ISP's servers.
> Suck it and see - I cannot believe that you are the only person connecting
> through your ISP who gets pelted with these bloody ads from doubleclick.

Have added them, without seeing any difference in performance. But it does 
make my tcpdump more readable.

> Check for messages in /var/log/messages, or whatever file your named
> logs to.

/var/log/messages reports nothing unusual. Haven't told named to log somewhere 
else.

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: Resolving or blocking eg. doubleclick.net?

2003-02-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 February 2003 11:17, Daxbert wrote:

> One option... cheat
>
> Make your dns server authoritative
> for doubleclick.net, and have no entries
> (or optionally your own web server as an * entry)
> in the zone file.

So, would that mean I should create an entry in named.conf like:

zone "doubleclick.net" {
type master;
file "doubleclick.net";
};

and then don't have a doubleclick.net ... or should I create an empty file? 
... or?

> named stores it's cache in memory. You can get a dump
> of the current cache.. don't remember the exact syntax
> but it's in the man page.

Hmm, so every time I reboot I loose my cache? But still, if I visit eg. 
 and wait untill it's loaded (ie. finished resolving 
doubleclick.net) and then hit reload it ought to go a lot quicker. But it 
doesn't, takes just as long. :-/

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: Resolving or blocking eg. doubleclick.net?

2003-02-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 February 2003 11:18, Dax Eckenberg wrote:

> is your problem with DNS in general? or doubleclick.net specifically?

Sites running banners from doubleclick.net and a few others.

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Resolving or blocking eg. doubleclick.net?

2003-02-12 Thread Bjarne Wichmann Petersen
On Wednesday 12 February 2003 10:43, Frank Tegtmeyer wrote:

> > 3) Since I'm only aiming for a dns-cache I'm right in assuming I should
> > keep my hands away from all the zone-stuff?
> Much better: follow the instructions in
> http://cr.yp.to/djbdns/install.html and
> http://cr.yp.to/djbdns/run-cache.html
> and then forget any dns- and dns related security problems.

Tried it, but really got confused trying to install it. Ended up having a 
service dir created all over my system. Never got it to work.

But looks like I got bind working (my firewall blocked quiries), but it 
doesn't look like a dnscache is solving my problem. *Still* takes forever for 
my box to resolve eg. doubleclick.net. This is *REALLY* getting on my nerves 
to sit and wait ½-5 minutes for a page to load because some unresolvable 
server is blocking.

Anyone know how to solve this issue?

And where *does* named/bind store it's cache-data?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Getting dnscache working, howto?

2003-02-12 Thread Bjarne Wichmann Petersen
Hi!

I'm trying to set up a dnscache with the sole purpose to make resolving sites 
like doubleclick.net lock up my browsers, when FreeBSD is trying to resolve 
the IP. I've tried following the guidelines in 
 but 
apparently I've missed something, which is a small wonder since I know very 
little about dns etc.

My setup is fairly simple:

ISP -> ADSL-modem -> Router -> FreeBSD-box

I'm using DHCP to connect to my router. Now, my questions are these:

1) /etc/resolv.conf should say "nameserver 127.0.0.1" and nothing else?

2) Should my ISP's DNS' be added as forwarders in named.conf. If not, where 
should they be put then?

3) Since I'm only aiming for a dns-cache I'm right in assuming I should keep 
my hands away from all the zone-stuff?

4) Where is the cache written to?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: [kde-freebsd] lpd/lpr "stopped" working

2003-02-04 Thread Bjarne Wichmann Petersen
On Tuesday 04 February 2003 16:46, you wrote:

> > "I" haven't installed cups, but looks like KDE "dragged" it along. So
> > yes, cups-lpr seems to be installed and no cupsd is not runing. And I
> > really don't like cups running, I'm quite happy with the systems lpr/lpd.
> > So, can I remove safely all-that-is-cups without breaking anything in
> > KDE? And how do I reinstate my systems lpr?
> I don't know if pkg_deinstalling cups will break KDE, but I'm going to
> wager a guess that you have /usr/local/bin before /usr/bin in your path,
> and that if you reverse them, printing will work.

$ echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/X11R6/sbin:/usr/local/bin:/usr/local/sbin:/home/mekanix/bin

But this is a shell-prompt, and thus reads the /etc/profile ~/.profile or 
login.conf... but could KDM do som mixup of order?

/usr/local/share/config/kdm/Xsession does something to the PATH, but I don't 
know much about shell-scripting so it's pure jibberish to me.

Bjarne
-- 
Homepage: http://www.mekanix.dk

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



Re: [kde-freebsd] lpd/lpr "stopped" working

2003-02-04 Thread Bjarne Wichmann Petersen
On Monday 03 February 2003 22:05, AlanE wrote:

> >/usr/local/bin/lpr -P 'laserjet' '/var/tmp/kde-mekanix/kdeprint_pYNslYF' :
> >execution failed with message:
> >lpr: unable to print file: server-error-service-unavailable"
> That looks like a cups message;  did you install cups-lpr as well?
> And, what is the print system set to in the print dialog? That message
> indicates that the print daemon (cupsd) is not running.

"I" haven't installed cups, but looks like KDE "dragged" it along. So yes, 
cups-lpr seems to be installed and no cupsd is not runing. And I really don't 
like cups running, I'm quite happy with the systems lpr/lpd. So, can I remove 
safely all-that-is-cups without breaking anything in KDE? And how do I 
reinstate my systems lpr?

And the printsystem is set to the "Unix LPD system" (default) but also tried 
the "LPR/LPRng system".

BTW: what's the knob for *not* building CUPS, and why isn't this set as 
default?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



lpd/lpr "stopped" working

2003-02-03 Thread Bjarne Wichmann Petersen
Hi!

I'm a bit pussled. I can print from OpenOffice and Phoenix. But konq chokes:

"A print error occured. Error message received from system:

/usr/local/bin/lpr -P 'laserjet' '/var/tmp/kde-mekanix/kdeprint_pYNslYF' : 
execution failed with message:
lpr: unable to print file: server-error-service-unavailable"

Then I tried a # lptest 20 5 | lpr -Plaserjet and lpd barks: 
"Feb  3 20:23:37 frodo lpd[1560]: laserjet: job could not be printed 
(cfA596frodo.my.domain)"

Haven't messed with princap for a long time and to me it looks just ok:

laserjet|lp|ps|PS|S|hp|HP LaserJet 1200:\
:sh:sd=/var/spool/lpd/laserjet:\
:lp=/dev/lpt0:\
:mx#0:\
:if=/usr/local/libexec/psif:

Anyone got a clue?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



RE: A vi for /bin?

2003-01-25 Thread Petersen
Paul Hoffman wrote:

> I'm kinda surprised this isn't in the FAQ (or at least not in a place 
> that I could find it). It is really impossible to build a vi with no 
> external dependencies that can be installed in /bin? 

What made you think it was impossible?

> All I want is 
> something that knows how to full-screen edit on the console, nothing 
> else. I dread the day that I can only mount / and not /usr and need 
> to edit fstab or rc.conf, and have to use ed.
> 
> (Just in case the answer is "no, you really can't do that", I have 
> put a plain-text copy of the ed man page in /bin, but still...)
> 

Assuming you have the object files from a buildworld hanging around, then
cd /usr/obj/usr/src/usr.bin/vi
cc -O -pipe -o vi *.o -lncurses -static && strip vi && mv vi /bin/
should probably supply you with what you want.

Petersen

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



Re: mplayer not in full screen mode

2002-12-18 Thread Bjarne Wichmann Petersen
On Wednesday 18 December 2002 13:35, [EMAIL PROTECTED] wrote:
> Hello!
> I have a problem that sounds like this:
> I can see the image, I can hear the sound, but all I can see it's a default
> window size, I mean I can't see in full screen mode. Here it's my video and
> audio outputs:

Have you tried starting mplayer with -fs? Are you starting with gui, try with 
-nogui. What videooutput are you using. -vo xv?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



RE: smbfs - Is this still appropriate

2002-12-06 Thread Petersen
Murray Taylor said:
> root@flea(/usr/ports/net/smbfs)ttyp3 # uname -a
> FreeBSD flea.bytecraft.au.com 4.7-RC FreeBSD 4.7-RC #0: Tue Sep 24
>
> mount_smbfs: can't get handle to requester (no /dev/nsmb* device)
>
> OK so I look into the /dev/MAKEDEV scripts and there is no nsmb
> anywhere.

Yes there is (and has been since way before 4.7-RC). You probably never ran
mergemaster after an installworld.

> cd /dev && && rm -f nsmb* && mknod nsmb0 c 144 0
>
> There are currently no nsmb devices in /dev on the new host
>
> THE QUESTION
> Is this command line still appropriate or has any of the mknod
> parameters changed?
>
>

Yes. Major node has not changed.

Petersen


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



Re: Resolving hostnames takes "forever"

2002-11-02 Thread Bjarne Wichmann Petersen
On Saturday 02 November 2002 15:41, Matthew Seaman wrote:

Thanks a lot, looks like it's doubleclick.net that is causing me headaches. 
Which makes sense since most pages that takes time loading have adds from 
doubleclick.net. Eg:

# dig www.computerworld.dk

; <<>> DiG 8.3 <<>> www.computerworld.dk
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
;; QUERY SECTION:
;;  www.computerworld.dk, type = A, class = IN

;; ANSWER SECTION:
www.computerworld.dk.   23m36s IN CNAME  computerworld.dk.
computerworld.dk.   23m36s IN A 62.199.138.133

;; AUTHORITY SECTION:
computerworld.dk.   23h53m31s IN NS  ns.uni2.net.
computerworld.dk.   23h53m31s IN NS  ns2.uni2.net.

;; ADDITIONAL SECTION:
ns.uni2.net.1d23h53m31s IN A  129.142.7.99
ns2.uni2.net.   1d23h53m31s IN A  195.82.195.99

;; Total query time: 11 msec
;; FROM: frodo.my.domain to SERVER: default -- 127.0.0.1
;; WHEN: Sun Nov  3 08:47:25 2002
;; MSG SIZE  sent: 38  rcvd: 143

# dig se1.doubleclick.net IN 

; <<>> DiG 8.3 <<>> se1.doubleclick.net IN 
;; res options: init recurs defnam dnsrch
;; res_nsend to server default -- 127.0.0.1: Operation timed out

Now, apart from nagging doubleclick, is there anyway I can eg. block quieries 
for doubleclick as to speed up loading?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Resolving hostnames takes "forever"

2002-11-02 Thread Bjarne Wichmann Petersen
Hi!

I've got an annoying problem when surfing. The browsers (both konq. and 
phoenix/mozilla) needs a very long time (30-60 sec.) to resolve hostnames and 
I'm out of clues to why. My setup is something like:

Cable-modem -> Router (speedstream 2601) -> switch -> FBSD-box

I've enabled "Hostmapping" in the router to point to my FBSD-box. My firewall 
denies no packages. /etc/resolv.conf shows the the correct IP's for the 
nameservers.

Where do I need to dig further?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: ATAPI/CAM and cdbakeoven

2002-11-01 Thread Bjarne Wichmann Petersen
On Friday 01 November 2002 19:54, Kenneth Culver wrote:

> > Cdrecord 1.10 (i386-unknown-freebsd4.5) Copyright (C) 1995-2001 Jörg
> > Schilling cdrecord: For possible targets try 'cdrecord -scanbus'. Make
> > sure you are root.
> >  cdrecord: Invalid argument. Invalid lun specifier in '01,00,00]'. Cannot
> > open SCSI driver.
> >  cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
> >  cdrecord: Permission denied. WARNING: Cannot set priority using
> > setpriority().
> >  cdrecord: WARNING: This causes a high risk for buffer underruns.
> > Is this any clue to what's up... or where should I dig?
> Have you tried running cdrecord as root?

Yup, apart from the WARNING messages, I get the same results.

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



ATAPI/CAM and cdbakeoven

2002-11-01 Thread Bjarne Wichmann Petersen
Hi!

I've just upgraded to a new kernel that includes ATAPI/CAM. Now I'm trying to 
figure out how to use this with eg. cdbakeoven and I don't have much success. 
Eg. if I try to copy a music-CD, I can select my drive, but never gets any 
index loaded.

Under "CD-ROM Devices" my DVD/CDRW-drives doesn't show up in the "Autodetect" 
page, but shows up under "Scanbus". Clicking on "Details" I get:

Cdrecord 1.10 (i386-unknown-freebsd4.5) Copyright (C) 1995-2001 Jörg Schilling
 cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are 
root.
 cdrecord: Invalid argument. Invalid lun specifier in '01,00,00]'. Cannot open 
SCSI driver.
 cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
 cdrecord: Permission denied. WARNING: Cannot set priority using 
setpriority().
 cdrecord: WARNING: This causes a high risk for buffer underruns.

Is this any clue to what's up... or where should I dig?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: MPlayer playing DivX (was: divxPlayer)

2002-10-31 Thread Bjarne Wichmann Petersen
On Thursday 31 October 2002 20:13, Adam Weinberger wrote:

> > Like mplayer can't display the frames fast enough. Eg. looks like frame X
> > gets displayed but halfway down frame X+1 takes over. Or perhaps some
> > sort stop'n'go (ie. tiny "stops" in the flow).
> Run mplayer with the -framedrop option.

Being used, so that's not it.

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: MPlayer playing DivX (was: divxPlayer)

2002-10-31 Thread Bjarne Wichmann Petersen
On Tuesday 29 October 2002 20:53, Michael Joyner wrote:

> > Not on this box. I get a lot of distortions using mplayer playing
> > DivX-files
> > (encoded with mencoder), while divxPlayer does it nicely... if it don't
> > core-dumps, that is.
> distortions? what kind?

Like mplayer can't display the frames fast enough. Eg. looks like frame X gets 
displayed but halfway down frame X+1 takes over. Or perhaps some sort 
stop'n'go (ie. tiny "stops" in the flow).

The CPU-load is only ~30-50% and I don't have this issue with DVD's/MPEG's. 
Just DivX 4/5.

BTW: Do you know how to rebuild index' in divx-files permanently? The 
man-pages says I can do this with mencoder... but I can't find any mention on 
*how*?

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



MPlayer playing DivX (was: divxPlayer)

2002-10-29 Thread Bjarne Wichmann Petersen
On Monday 28 October 2002 18:08, Michael Joyner wrote:

> turn on your linuxulator
>
> btw, mplayer is a native player for *BSD that plays divx files very nicely.

Not on this box. I get a lot of distortions using mplayer playing DivX-files 
(encoded with mencoder), while divxPlayer does it nicely... if it don't 
core-dumps, that is.

Bjarne
-- 
Homepage: http://www.mekanix.dk


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



Re: About to install FreeBSD as a Desktop...

2002-09-21 Thread Bjarne Wichmann Petersen

On Saturday 21 September 2002 19:17, Gary W. Swearingen wrote:

> > Yes, I prefer mplayer. But there is VLC, Xine and Ogle as well (all in
> > ports).
> I thought DVD playing required the use of patented mathematics (I know
> it's mathematics, even if they call it algorithms or methods or even
> software), secret country codes, etc.  What's the current situation?
> How do the above players manage it?  Are they legal in most countries?

Xine is quite legal in all countries, but some of it's plugins are not. VLC, 
mplayer and Ogle breaks CSS, and is possible illegal in the US ... and with 
the infosoc directive in all EU-countries by 22nd december.

That means, by 22nd of december I will become a criminal... civil 
disobedience is the path I'll choose.

Bjarne
-- 
Homepage: http://www.mekanix.dk

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



Re: About to install FreeBSD as a Desktop...

2002-09-20 Thread Bjarne Wichmann Petersen

On Saturday 21 September 2002 00:13, MET wrote:

> Other than that I just need some
> productivity apps, but nothing particularly special.  S, what's the
> REAL difference between 4.5 and 4.6.2?

Well, bugfixes for one thing, but also some added functionality (FBSD keeps 
improving ;)). Best thing is to run -STABLE (read the FreeBSD Handbook on how 
to do this), and keep your ports-tree current.

So, just install 4.6.2, update to -STABLE, update your portstree, and then 
install KDE, X and all the other needed stuff. Voila, you've got neat 
Desktop-computer. ;)

> And finally, I've really only used FreeBSD as a work environment so I've
> never had the chance to answer this question myself.can I view
> DVD's?  And if so what program should I use?

Yes, I prefer mplayer. But there is VLC, Xine and Ogle as well (all in ports).

Bjarne
-- 
Homepage: http://www.mekanix.dk

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



Re: Thoughts on Web Site Design / Builder apps?

2002-07-22 Thread Bjarne Wichmann Petersen

On Monday 22 July 2002 14:48, Moti Levy wrote:

> will that work on gnome and not kde ?

You'll need install KDE to run.

Bjarne
-- 
Homepage: http://www.mekanix.dk

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



RE: Bind in sandbox as per Handbook or FBSD Unleashed - valid or not? -Was Cannot start bind in sandbox?

2002-07-14 Thread Petersen

Stacey,

I dunno about the Handbook 2nd Edition (as I don't have a copy of it), but
what I do know is that the current handbook, section 17.9.8 is correct.
Read http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dns.html

Petersen


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