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: 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]"


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: 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]"


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


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


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: 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: 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: 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: 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-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-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 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: 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: 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: 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: 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]"


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



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



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



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



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



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



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



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



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



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



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: 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]"


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