remote X session fonts question

2005-09-19 Thread Maarten Sanders
Hi,

My wifes laptop is too aged to work at an acceptable speed. I have
converted it to a remote X terminal (over ssh) and that works like a
charm. Only application that behaves funny is Openoffice.org.1.1.5. For
some reason the fonts in the menus get too much space around them. Has
anyone a clue on in which direction I should look? Do I need to setup a
font server? Do the xorg.conf fonts sections need to be absolutly equal?
Etc.

Thanks,

Maarten 

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


Re: Deep in printer hell.

2005-09-14 Thread Maarten Sanders
Relax,

Take a coffee, sit back and read and the chapters from the handbook up
to and including 9.3.1.3. When you have a parallel port configured I
recommend apsfilter to do the rest. It took me about 2 minutes to
configure a parallel printer. (HP 870 CXi).

Good luck,
Maarten

On Wed, 2005-09-14 at 20:49 +0200, FreeBsdBeni wrote:
 On Wednesday 14 September 2005 09:58, WOB wrote:
  When JFK said, We choose to go to the moon in this decade and do the
  other things, not because they are easy, but because they are hard.., I
  always wondered what exactly the other things were.  Apparently, one
  of them is printer configuration under FreeBSD.
 
  If I am using a HP Deskjet 940 connected via parallel cable,  is there
  not some simple way of configuring this printer?
 
  Is it really necessary to follow all the steps in the handbook - just to
  print?  The Basic Setup instructions are 15 pages printed.  Assuming
  you can print them.
 
  I got this printer working 6 months ago under FreeBSD, and apparently my
  many notes on it are too many.  Now I'm starting from scratch, to
  redocument it, and it just seems like there should be a simpler way.
 
  I'm using 5.4, Fluxbox, Abiword, and Firefox - that's it.
 
  Eventually I will figure it out again, I just wanted to know if there
  was some simple script I could run, or preferred short-cut for setting
  up desktop printer.  I realize the handbook is written to be precise and
  server-centric, but I just want to print Yahoo driving directions, and
  other such things.
 
  thanks
 
 For my HP (PhotoSmart) I had to install /print/cups, /print/foomatic-filters 
 and /print/hpijs and then configured the printer using the .ppd file from 
 www.linuxprinting.org. Now I can print from within every program.
 Mine is a usb printer, but I suppose your parallel printer should work in a 
 similar way.
 Hope this helps.

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


pccard, wi0, wep and DHCP

2005-09-05 Thread Maarten Sanders
Hi,

If used to have my wives laptop configured with rc.conf containing:
'ifconfig_wi0=DHCP' this works and brings up wi0. Since my town is
crowded with wardrivers I would like to use wep. Because my wife often
inserts the pcmcia card after booting I also like to have pccard
enabled. I can manually configure the card to use WEP. dhclient is
configured 'out of the box'.

What I did after some googling:

in /etc/rc.conf I added:
pccard_enable=YES
pccard_flags=-z
pccard_ifconfig=DHCP
and I removed:
ifconfig_wi0=DHCP

I created a file:
/etc/start_if.wi0
ifconfig wi0 nwkey 0xsomehex

The wi card is listed in /etc/default/pccard.conf :
BENQ AWL100 PCMCIA ADAPTER
config  auto wi ?
insert  /etc/pccard_ether $device start
remove  /etc/pccard_ether $device stop
so I think /etc/pccard_ether should be executed on boot/insertion. Now
this works not as I expect. When I manually run:
/etc/pccard_ether wi0 start
/etc/start_if.wi0 is not interpretted and the WEP key is not set so
dhclient fails.

I guess I am missing a trivial point, but which?

Maarten

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


Re: Custom Build

2005-09-03 Thread Maarten Sanders
You could try to see if:
/usr/src/tools/tools/nanobsd/ or
/usr/src/release/picobsd/ or
www.tinybsd.org fits your needs
as well as checking man sysinstall for the scripting options.

Good luck and post a nice tutorial somewhere on the web if you have some
time spare (also nice for your organization if 'the next guy' is not
there anymore).

Maarten

On Fri, 2005-09-02 at 20:36 -0500, Jack Barnett wrote:
 Hello all,
 
 How this is the correct list to post this to, if not, please point me to a
 more apporiate list.
 
 What I want to do is make a custom automated build for FreeBSD.  Basically,
 create a build, burn it to CD-ROM, go stick it into a server and it
 automatically configures to the correct hardware, auto sets up the file
 system (1 hard drive per server) and then reboots.  When it comes back up, I
 have a full functionaly customized FreeBSD install.
 
 The only interaction that should happen during the install, is putting in
 the hostname, select static or dynamic ip and then [for non-FreeBSD app]
 select to save to local or network drive.  I'm good with perl/bash, etc, so
 I know how to create a script to automate the install for our application.
 
 I need to do this on a lot of servers, so doing a manual install would take
 weeks.  Each server has 1 hard drive, all the data is stored on a very
 robust file server that gets backed up, if the hard drive fails, we just
 replace, rebuild and contiune where we left off.  During the install, it
 should just partion off 512 for swap, then use rest of disk for root
 directory.   Each disk may be a differant size, but they will all be more
 then 2 gigs.
 
 The build I want to create would be a mini-FreeBSD, just the kernal, some
 basic programs and 1 non-FreeBSD application.  The only port that would be
 open is for SSHD and all servers would sit behind a firewall in there own
 seperate subnet (firewall only routes http requests to upload data and
 incoming ssh connections).
 
 We're currently using a very old custom Linux build, it's less then 10 megs
 total.  The problem we are having with this, is that it doesn't support all
 the newer hardware we use (the build is about 4-5 years old) and FreeBSD is
 our standard operating envoriment (as far as servers goes), the admins
 here are more famlair with FreeBSD so it makes sense to switch to  FreeBSD
 since we have to update the build anyways (the guy that made the build isn't
 here any more and the rest of us are FreeBSD fan-boys :P )   All the other
 FreeBSD servers that aren't in the cluster/grid are manually installed.
 
 Could someone point me in the right direction or to some documentation or
 other resources?
 
 Regards,
 Jack
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Spontaneous reboot

2005-08-26 Thread Maarten Sanders
Hi,

I just experienced a spontaneous reboot. I was fiddling a bit with
ossctl (that comes with opensound, commercial license), had finished
this (start sound with soundon) and started skype as a normal user.
Skype stalled and the next thing I saw was a black screen and a
reboot...

Below some info, anyone interested in more please le me know.

$ uname -a

FreeBSD maarten 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #10: Mon Aug 22
11:26:23 CEST 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MAARTEN2
i386

A part of dmesg output:

Softoss: Audio device #7 is write only
Softoss: Audio device #8 is write only
Softoss: Audio device #9 is write only
Softoss: Audio device #2 is write only
Softoss: Audio device #3 is write only
Softoss: Audio device #4 is write only
Softoss: Audio device #5 is write only
Softoss: Audio device #6 is write only
Softoss: Audio device #7 is write only
Softoss: Audio device #8 is write only
Softoss: Audio device #9 is write only
oss: Audio input 0 doesn't get filled.
0 / 1
oss: Probing the hardware for OSS Virtual Mixer Pro failed.


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xc4549450
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xc2815059
stack pointer   = 0x10:0xe33b9cd8
frame pointer   = 0x10:0xe33b9d10
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 32 (irq22: oss)
trap number = 12
panic: page fault
Uptime: 45m34s
Cannot dump. No dump device defined.
Automatic reboot in 15 seconds - press a key on the console to abort
Rebooting...
Copyright (c) 1992-2005 The FreeBSD Project.


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


Re: Illegal access attempt - FreeBSD 5.4 Release - please advise

2005-08-25 Thread Maarten Sanders
On Thu, 2005-08-25 at 07:22 -0400, Lee Capps wrote:
 On 11:18 Wed 24 Aug , Chris St Denis wrote:
  How can I easily auto deny after x failed attempts? Is this an sshd setting?
  I could find it.
  
  Is there something in ports that will firewall off somebody who is brute
  forcing?
 
 In addition to adding entries to /etc/hosts.allow you could try
 DenyHosts:
 
 http://denyhosts.sourceforge.net/
 
 I didn't find a port, but it works with FreeBSD and isn't too onerous to
 install.
 
 HTH,
 
 Lee
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
Nice suggestion, but how do I enable tcp_wrappers with sshd?

See : http://denyhosts.sourceforge.net/ssh_config.html 
I tried adding 

sshd: 127.0.0.1 : deny to /etc/hosts.allow but I failed the described
test. 

Maarten


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


Internationalization, gnome and gnucash

2005-08-24 Thread Maarten Sanders
Hi,

I have installed gnucash and as long as I stay with english everything
looks fine. When I start gnucash like this:
env LC_ALL=nl_NL gnucash
I get funny characters: e-accent becomes e , so the quotes are before
the e! When I do the same with, e.g., gedit e-accent in the menus is
just what it should be, quotes on top of the e. Anyone a clue why this
happens? BTW, it also happens with french or german language.

Maarten

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


Read bios settings

2005-08-23 Thread Maarten Sanders
Hi,

Is it possible to read, e.g., bios version numbers from within FreeBSD?

Maarten

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


Read bios settings

2005-08-23 Thread Maarten Sanders
Hi,

Is it possible to read, e.g., bios version numbers from within FreeBSD?

Maarten

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


Re: sshd and pam

2005-07-27 Thread Maarten Sanders
Try first to login as a user who is member of group wheel and then 'su'.
See if that works, root login is mostly disabled for security reasons.

Maarten

On Wed, 2005-07-27 at 10:53 -0600, [EMAIL PROTECTED] wrote:
 
 On Wed Jul 27  7:49 , Lowell Gilbert [EMAIL PROTECTED] sent:
 
 [EMAIL PROTECTED] writes:
 
  Just i have a question about ssh and pam .
  Trying to login on a machine with freebsd 5.4 from a machine in where i run
  fedora core 4 , i can't complete the operation . 
  The error is sshd[449] pam authentication error . What does it mean?How i 
  can set
  pam to permit to login to freebsd and control the machine remotely?
  I'm new to freebsd and i appreciate if anyone can help me to solve the 
  problem . 
 
 Are you logging in as root?  That's disabled by default.
 What kind of authentication are you using?
 ___
 yes i'm logging in as root , now i have understand , cause i can log in as a
 normal user . But then it's possible to log in as root , so i can administrate
 remotely the machine on the lan?
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 

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


Anjuta question, gettext

2005-07-27 Thread Maarten Sanders
Hi,

I am fiddling a bit with Anjuta. For some reason I cannot compile an
application unless I add at some point near the top of
intl/dcigettext.c:

#define HAVE_STRCHR 1

Does anyone know why this is needed?

If I take the same project to my office (linux) system everything works just 
fine.

Maarten

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


portupgrade errors

2005-07-21 Thread Maarten Sanders
Hi all,

Please see below. Why does portupgrade -a not work? I have tried
everything, I read UPDATING, I removed pkgdb.db and INDEX'es. Rebuild
ervything with portsdb -u and portsdb -uU and I even removed /usr/ports
and did a fresh cvsup. Anyone got a clue?

Maarten



maarten# portupgrade -a
/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:322:in `deorigin': cannot
convert nil into String (PkgDB::DBError)
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in
`tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:914:in `each'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:914:in
`tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:906:in `each'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:906:in
`tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:928:in
`sort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:932:in
`sort_build!'
from /usr/local/sbin/portupgrade:674:in `main'
from /usr/local/sbin/portupgrade:207:in `initialize'
from /usr/local/sbin/portupgrade:207:in `new'
from /usr/local/sbin/portupgrade:207:in `main'
from /usr/local/sbin/portupgrade:1869
maarten# portupgrade -afp
---  Reinstalling 'mDNSResponder-107.1_1' (net/mDNSResponder)
---  Building '/usr/ports/net/mDNSResponder'
===  Cleaning for libiconv-1.9.2_1
===  Cleaning for gettext-0.14.5
===  Cleaning for gmake-3.80_2
===  Cleaning for libtool-1.5.18


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


mplayer, oss and /dev/dspX

2005-05-05 Thread Maarten Sanders
Hi,

I am using OSS. When I start mplayer -ao oss -channels 6 I get nice
surround sound. I have also installed OSS Virtual Mixers. Strange enough
I do not manage to get mplayer to use other dsp devices e.g. % gmplayer
-ao oss:/dev/dsp5 -channels 6 and xmms at /dev/dsp7 give a conflict
when using simultanously: 

%xmms
** WARNING **: oss_open(): Failed to open audio device (/dev/dsp7):
Device busy.

#cat /dev/sndstat shows:

OSS/FreeBSD 3.99.2c (C) 4Front Technologies 1996-2004

License serial number: E0008
 UNREGISTERED VERSION 

Drivers: ALL
License will expire after: 06/2005


*** Unregistered version ***

Build: 200504131459
Kernel: FreeBSD 5.3-RELEASE #7: Mon May  2 22:31:25 CEST 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MAARTEN


Card config:
VIA 8233 AC97 audio controller at 0xb000 irq 22
OSS Virtual Mixer Pro

Audio devices:
0: VT8237 (DUPLEX,GRC3)
1: VT8237 (shadow) (DUPLEX,GRC3)
2: OSS Virtual Mixer v2.5 Playback CH #0 (GRC3)
3: OSS Virtual Mixer v2.5 Playback CH #1 (GRC3)
4: OSS Virtual Mixer v2.5 Playback CH #2 (GRC3)
5: OSS Virtual Mixer v2.5 Playback CH #3 (GRC3)
6: OSS Virtual Mixer v2.5 Playback CH #4 (GRC3)
7: OSS Virtual Mixer v2.5 Playback CH #5 (GRC3)
8: OSS Virtual Mixer v2.5 Playback CH #6 (GRC3)
9: OSS Virtual Mixer v2.5 Playback CH #7 (GRC3)

Synth devices:
0: OSS Virtual Synth v2.5

Midi devices:

Mixers:
0: VT8237 (ALC655)
1: Virtual Mixer

History:
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 1021 cmd 'mplayer' OUT

and when I run xmms alone at /dev/dsp7 the history shows:

dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 1021 cmd 'mplayer' OUT
dsp7: pid 1028 cmd 'xmms' OUT

I can also use the device simultanously (so I hear two sound at the same
time, e.g. xmms and ossplay):

dsp4: pid 1054 cmd 'ossplay' OUT
dsp7: pid 1047 cmd 'xmms' OUT
dsp4: pid 1054 cmd 'ossplay' OUT

So I know I the mixers work but how I can force mplayer to use /dev/dspX
instead of /dev/dsp that blocks the mixers?

Maarten


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


Tun/tap question

2005-05-01 Thread Maarten Sanders
Hi list,

I am currently trying to get tun or tap working (with vde and qemu) but
for some reason things don't work as I expect them:

ten# vde_switch -tap tap0 -daemon ; ifconfig tap0 192.168.1.254 ; chmod
777 /tmp/vde.ctl
ifconfig: interface tap0 does not exist

Could it be I am missing a kernel option?

vde_switch is working without tap, I can between to linux'es in qemu.

ten# uname -a
FreeBSD maarten.lan 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sun May  1
12:03:54 CEST 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
i386

Thanks,

Maarten


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