Re: Any *major* problems with OpenOffice?
Jason Porter wrote: I'm thinking of installing OpenOffice, but noticed that the port says it has beta quality. So I thought I'd throw it out to the list and see if I could get some feedback. I'm running 4-stable if that makes a lot of difference. Thanks. I did a build from the ports this weeks and tho ive not been using it much so far it seems to work without problems... be prepared it took me about 14 to finish the job on my amd 2000+ :) regards, franklin To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
php-mysql question
I just attempted to install php-templates. That seemed to install a newer version of mod-php4 from the ports. It seems that apache, ssl, php and mysql all work, but I cannot access mysql through php anymore. How does php know where to find the database structure of mysql? I have never had a php.ini, as I just went by the defaults. I wonder whether the defaults have changed in newer releases? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: chroot
On Thu, Jul 18, 2002 at 10:22:59PM -0400, Michael Sharp wrote: I installed ( or so I thought ) a chroot env last night and ran into some difficulties. Could someone very familiar with openssh/chroot glance over http://probsd.ws/chroot.txt and tell me what I did wrong please? chroot.txt is an EXTREMELY detailed example of what I did, and script output of the ssh connection to the chroot. Hmmm... you are almost reinventing the concept of jail(8) here, which might be a better solution for you. The main difference from what you're doing is that a jailed sshd process would get it's own separate IP number. Some things you might find usefull: i) Copy /dev/MAKEDEV into your chrooted area and use that to create the device files you need: cp -p /dev/MAKEDEV /home/chrootuser/dev sh /home/chrootuser/dev/MAKEDEV jail --- the `jail' target should get you an appropriate set of devices. ii) Set up an additional logging socket in your chroot area and modify your syslogd flags to pick up syslog messages from there. You'll also need a copy of /etc/localtime in the chroot area so that your syslog messages get the correct timestamp.: mkdir -p /home/chrootuser/var/run cp -p /etc/localtime /home/chrootuser/etc/localtime cp /etc/rc.conf /etc/rc.conf.bak echo 'syslogd_flags=-s -l /home/chrootuser/var/run/log' /etc/rc.conf kill `cat /var/run/syslogd.pid` /usr/sbin/syslogd -s -l /home/chrootuser/var/run/log You can then turn up the logging level in /home/chrootuser/etc/ssh/sshd_config by altering the LogLevel value: a LogLevel of DEBUG3 will give you a great deal of output showing a blow by blow account of just about everything the sshd does. iii) Make sure you can resolve addresses in the DNS from your chroot environment. It should be sufficient to copy over /etc/resolv.conf cp -p /etc/resolv.conf /home/chrootuser/etc/resolv.conf iv) If you want to be able to run ps(1) from the chroot area, then you need to mount a procfs(5) file system inside your chroot area. This isn't really necessary for sshd to operate correctly though: cp /etc/fstab /etc/fstab.bak cat EOF /etc/fstab proc/home/chrootuser/proc procfs rw 0 0 EOF mount /home/chrootuser/proc cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
mounting xp partition
I have two hdds in my computer, the first one being my winxp disc and the second one being my freebsd disc Master: ad0 QUANTUM FIREBALLP LM20.5/A35.0700 ATA/ATAPI rev 5 Slave: ad1 WDC AC28400R/17.01J17 ATA/ATAPI rev 4 the xp disc exists of 2 partition, a C a D drive in xp.. I was able to mount them both but now i can only mount the first partition any hints? cheers, franklin To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: tcp_wrappers
On Fri, Jul 19, 2002 at 10:59:41AM +0800, Stanley Chan wrote: Dear FreeBSD, I am using the FreeBSD 4.5 to configure my Web Server, however, I don't know how to configure the tcp_wrapper to allow the telnet service. Please advise is there anu manual or references for the telnet function. sshd is better for this sort of application, but if you start inetd with the flags -wW, it will turn on TCP Wrapping for you. HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
KDE3 broken?
Is KDE3 completely b0rk3n? I know there was an issue with QT/OpenGL and DRI, but this is what I am getting all the time (recompiled KDE twice already, QT is qt-3.0.3_5) on a recent (this weekend) -STABLE: ~ konqueror Creating link /home/andrei/.kde/socket-vogon.my.domain. Created link from /home/andrei/.kde/socket-vogon.my.domain to /tmp/ksocket-andrei DCOPServer up and running. Creating link /home/andrei/.kde/tmp-vogon.my.domain. Created link from /home/andrei/.kde/tmp-vogon.my.domain to /tmp/kde-andrei DCOP Cleaning up dead connections. KCrash: crashing crashRecursionCounter = 2 KCrash: Application Name = kded path = unknown pid = 7600 DCOP aborting call from 'anonymous-7599' to 'kded' ERROR: KUniqueApplication: DCOP communication error! KCrash: crashing crashRecursionCounter = 2 KCrash: Application Name = konqueror path = unknown pid = 7586 kdeinit: Fatal IO error: client killed kdeinit: sending SIGHUP to children. Mutex destroy failure: Device busy kdeinit: sending SIGTERM to children. kdeinit: Exit. The same happens on another machine which is an about 1 month old -STABLE. Searching the lists and the web seems to suggest that some similar symptoms are, well, common. There does not seem to be, however, any particular solutions, and most of these issues were somehow SuSE-related... Has anyone been successfull in compiling and using KDE3 on -STABLE recently? Please cc: me, as I am not on -questions. -- Anderi __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
osama zekry
what is kernel functions and what kernel meaning _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Cd problem
Hi! I have a question about my freebsd version 4.1 can you help me how to open my cd device so i can install the other packages that comes with the freebsd cd roms because i am new to freebsd. Best Regards //Oscar Carlstedt _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: FreeBSD LDAP Auth
My first guess is UW imap requires local accounts and does not use PAM. But I wouldn't know as I haven't had any experience with it. I use courier-imap and it works like a charm. Got postfix/courier working without local users, all under one userid. If you can't figure it out you may want to give that a shot. Cheers Nate - Original Message - From: Ted Wisniewski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 18, 2002 20:17 Subject: FreeBSD LDAP Auth Hi, I am having difficulty Authenticating IMAP/POP3 services vs. and LDAP server under FreeBSD. My Environment: 4.6-RELEASE-p1 Openldap 2.0.25 UW imap-2001a pam_ldap-150 (from padl.com) I have successfully gotten ftp/ssh/telnet to authenticate vs. the LDAP using the pam_ldap module.. However, the IMAP/POP3 servers will not not matter what I do to the ldap.conf file. Has anyone gotten POP/IMAP serves to authenticate vs. an LDAP on a similar set up? If so, what (if anything) did you do to get it to work? Is there anything special that I have to put in pam.conf? Any help / advice would be greatly appreciated. Ted -- | Ted Wisniewski INET: [EMAIL PROTECTED]| | Information Technology Services [EMAIL PROTECTED] | | Plymouth State College | | Plymouth NH, 03264 HTTP: http://oz.plymouth.edu/~ted/ | To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
USB: ugen0: device problem
Hi, I've been trying to get an alcatel speedtouch usb modem working and after spending all afternoon struggling with it I've concluded that I don't have USB working at all :( I also have a xerox docuprint p8ex printer which I am using to test whether usb is working - although I'm not concerned with making this print. Here are my details: I'm running FreeBSD 4.6-STABLE, I've got a dual P2-350 with a Gigabyte GA6BXD motherboard. The onboard USB ports are identified as Intel 82371AB/EB (PIIX4) USB controller. I've updated the motherboard's bios to the latest version (F4b). I removed a network card that was sharing an irq with the usb device so their are definitely no irq conflicts. A complete dmesg output is included at the end of the message along with the output from usbd -dvvv If I boot the machine with the usb devices attached they are recognised: ugen0: ALCATEL Speed Touch USB , rev 1.10/0.00, addr 2 ugen1: Lexmark International, Inc. Color Jetprinter 5500\^H?\^H, rev 1.00/0.63, addr 3 But any attempt to use the adsl modem will cause the following error: grody# modem_run -f /usr/local/libdata/mgmt.o -m -d /dev/ugen0 -v 2 Gotcha, I found your ADSL ALCATEL SpeedTouch USB modem! (The modem lights will then start flashing for a while, then go red, then switch off) ugen0: at uhub0 port 1 (addr 2) disconnected ugen0: detached BLOCK1: Input/output error Uploading /usr/local/libdata/mgmt.o failed! Continuing anyway ... pusb_set_configuration 1: Inappropriate ioctl for device I originally thought it was just problems getting the alcatel driver going but the following happens when I try to plug either the printer or adsl modem into the machine while it is already running: uhub0: device problem, disabling port 1 Does anyone have any ideas? I'm completely lost. I thought being a regular (and a bit old) intel chipset the usb would be pretty generic. After a _lot_ of searching through google and ml archives i'm thinking it might be a problem with gigabyte boards - I saw a lot of (unanswered) messages with similar problems from people with gigabyte boards. Thanks Jason. The following is the output from running usbd -dvvv: grody# /usr/sbin/usbd -dvvv usbd: opened /dev/usb0 usbd: reading configuration file /etc/usbd.conf usbd: action 1: ActiveWire board, firmware download vndr=0x0854 prdct=0x0100 rlse=0x attach='/usr/local/bin/ezdownload -f /usr/local/share/usb/firmware/0854.0100.0_01.hex ${DEVNAME}' usbd: action 2: Entrega Serial with UART vndr=0x1645 prdct=0x8001 rlse=0x0101 attach='/usr/sbin/ezdownload -v -f /usr/share/usb/firmware/1645.8001.0101 /dev/${DEVNAME}' usbd: action 3: USB ethernet devname: [ack]ue[0-9]+ attach='dhclient ${DEVNAME}' detach='killall dhclient' usbd: action 4: Mouse devname: ums[0-9]+ attach='/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid' usbd: action 5: USB device usbd: 5 actions usbd: opened /dev/usb usbd: detach event at 1027071605.407825000, product 0x3201, vendor 0x0419: vndr=0x0419 prdct=0x3201 rlse=0x0063 clss=0x subclss=0x prtcl=0x device names: ugen1 usbd: Found action 'USB device' for product 0x3201, vendor 0x0419 at ugen1 usbd: action 0: USB device usbd: Setting DEVNAME='ugen1' (The following messages repeat indefinitely pausing for a while on the doing discovery bit) usbd: doing timeout discovery on /dev/usb0 usbd: processing event queue due to timeout on /dev/usb usbd: doing discovery on /dev/usb0 usbd: doing timeout discovery on /dev/usb0 usbd: processing event queue due to timeout on /dev/usb (and so on) dmesg output: Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.6-STABLE #3: Thu Jul 18 19:06:38 EST 2002 jason@grody:/usr/obj/usr/src/sys/GRODY Timecounter i8254 frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (349.07-MHz 686-class CPU) Origin = GenuineIntel Id = 0x652 Stepping = 2 Features=0x183fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA, CM OV,PAT,PSE36,MMX,FXSR real memory = 402587648 (393152K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 - irq 0 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee0 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee0 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec0 Preloaded elf kernel kernel at 0xc0311000. Pentium Pro MTRR support enabled Using $PIR table, 7 entries at 0xc00fddf0 npx0: math processor on motherboard npx0: INT 16 interface pcib0: Intel 82443BX (440 BX) host to PCI bridge on motherboard IOAPIC #0 intpin 16 - irq 2 IOAPIC #0 intpin 18 - irq 16 pci0: PCI bus on pcib0 pcib1: Intel 82443BX (440 BX) PCI-PCI (AGP) bridge at device 1.0 on pci0 pci1: PCI bus on pcib1 isab0: Intel 82371AB PCI to ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel PIIX4 ATA33
FTPISO
Hi all Why is 3.5.1-install.iso floating around in ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/ ? br db To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: can't start installation on ASUS P2L97-S -- RESOLVED
A big thanks to few peoples: First, to Wayne, which permissed me to resolve this issue, ie: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= On asus P2L97-s, USB IRQ _MUST_ be enabled (PNP Settings) !! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Next to Joe Fhe for having given me hand in order to find a way in darkness (and reminded me to always simplify as most as possible). Kindest regards Bertrand Original Message De: [EMAIL PROTECTED] A: [EMAIL PROTECTED], [EMAIL PROTECTED], Objet: Re: can't start installation on ASUS P2L97-S Date: 11 Jul 2002 16:35:09 + Joe Fhe Barbish [EMAIL PROTECTED] writes: Dear all, I can't start FreeBSD installation either from CD, nor from Floppy. System hangs at hw probe in a fashion that i can't interprete. BIOS upgrade, removing physical hw equipment, disabling devices at bios level didn't helped at all (Please, have a look at history below for details). I haven't been following this so please ignore me if this has already been suggested - Do you have assign IRQ for USB devices set in your BIOS? I had a similar problem and I had that option set to no. Setting it to yes fixed the problem. Just a thought :) -- - Wayne Pascoe - http://www.penguinpowered.org.uk/wayne/ BSD is for people who love UNIX; Linux is for people who hate Windows To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: USB: ugen0: device problem
At 19:53 19/07/2002 +1000, bigMAX wrote: Hi, I've been trying to get an alcatel speedtouch usb modem working and after spending all afternoon struggling with it I've concluded that I don't have USB working at all :( several options here.. First, I suggest you try the latest drivers, if you haven't already, (see http://www.xsproject.org/speedtouch/) The modem lights going off completely though sounds like it's the old problem of the speedtouch drawing too much current from the usb ports - they pull more than the recommended maximum, and some chipsets detect this and shut the port down to prevent overload. Try running the modem though a powered usb hub, or try a plug in pci usb card of different make. (both these worked for me.) This is the same problem whatever OS and software you use If nothing there helps, you can try asking on the speedtouch mailing list - subscription details on that same web page above. Rob, To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Need help with apcupsd startup script
Hi all, I am using apcupsd installed from ports with no mods. apcupsd itself runs fine but the script /usr/local/etc/rc.d/apcupsd.sh returns: apcupsd.sh: Cannot determine the PREFIX when I try it. I assume there are some Linux specific paths in there? First lines of the script goes: if ! PREFIX=$(expr $0 : \(/.*\)/etc/rc\.d/$(basename $0)\$); then echo $0: Cannot determine the PREFIX 2 exit 1 fi # If there is a global system configuration file, suck it in. if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi apcupsd_enable=${apcupsd_enable:-YES} apcupsd_program=${apcupsd_program:-${PREFIX}/sbin/apcupsd} apcupsd_flags=${apcupsd_flags:---kill-on-powerfail} apcupsd_pidfile=${apcupsd_pidfile:-/var/run/apcupsd.pid} apcupsd_lockfile=${apcupsd_pidfile:-/var/spool/lock/apcupsd.lock} thanks, /per olof To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Need help with apcupsd startup script
On Fri, Jul 19, 2002 at 12:58:42PM +0200, Per olof Ljungmark wrote: Hi all, I am using apcupsd installed from ports with no mods. apcupsd itself runs fine but the script /usr/local/etc/rc.d/apcupsd.sh returns: apcupsd.sh: Cannot determine the PREFIX when I try it. I assume there are some Linux specific paths in there? How are you calling the script? You must give the absolute path on the command line, or the first block (if ! ...) will make it bomb out with the error message. HTH Dan First lines of the script goes: if ! PREFIX=$(expr $0 : \(/.*\)/etc/rc\.d/$(basename $0)\$); then echo $0: Cannot determine the PREFIX 2 exit 1 fi # If there is a global system configuration file, suck it in. if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi apcupsd_enable=${apcupsd_enable:-YES} apcupsd_program=${apcupsd_program:-${PREFIX}/sbin/apcupsd} apcupsd_flags=${apcupsd_flags:---kill-on-powerfail} apcupsd_pidfile=${apcupsd_pidfile:-/var/run/apcupsd.pid} apcupsd_lockfile=${apcupsd_pidfile:-/var/spool/lock/apcupsd.lock} thanks, /per olof To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: bandwidth limiting
man dummynet man ipfw 'Traffic Shaper Configuration' It has nothing to do with the 'pipe' (man pipe) command. But you create pipes with ipfw, like this: ipfw add pipe 10 ip from any to any More about dummynet: http://www.onlamp.com/lpt/a/bsd/2001/07/26/Big_Scary_Daemons.html General FreeBSD help: http://www.google.com/bsd http://www.freebsddiary.org http://www.defcon1.org http://www.freebsd.org http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html Hope this is to some help! :) Øystein -Original Message- From: Nelis Lamprecht [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 12:48 To: [EMAIL PROTECTED] Subject: bandwidth limiting Hi List I would like to limit bandwidth on a per user basis ON my 4.6 box, is this possible ? Or perhaps limit them on a per ipaddress basis. I have 2 interfaces( ext and int ) and I am running ipfw. I read somewhere that you can use pipe with ipfw for this but am having a little difficulty understanding this and there is very little info on man pipe. Any suggestions will be greatly appreciated. Thanks. Nelis To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
nVidia Riva TNT2 Problem
I got a problem with my Riva TNT2 vga card, The mouse pointer is invisible. I has visit nVidia site but I not found the driver for FreeBSD. What I must to do ? -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Save up to $160 by signing up for NetZero Platinum Internet service. http://www.netzero.net/?refcd=N2P0602NEP8 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
2bd X server? How?
I've got a vendor suplied brain dead X client that runs on Sun bxes at work. It's vrain dead because if the X server has more than 256 colors it core dumps. Wnoderful vendor software eh whta? In any case, what I want to do is run a 2nd X serer on my FreeBSD STABLE machine. This server I want to run in 8 bt mode, so that I can disply this broken client. Can I do this? If so how? Also I'm runing Gnome which is very color hungry, so short of creating a seperate user to login as when using this X sever, and using a lighter wieght environment for it (twm?), can anyone think of a way to prevent Gnome from sucking up all the limited colorspace when I log in to the X serer? Perhaps seting the DISPLAy on the remote machine to sya FreeBSDbox:1? -- They that would give up essential liberty for temporary safety deserve neither liberty nor safety. -- Benjamin Franklin To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Need help with apcupsd startup script
At 12:10 7/19/2002 +0100, Daniel Bye wrote: On Fri, Jul 19, 2002 at 12:58:42PM +0200, Per olof Ljungmark wrote: Hi all, I am using apcupsd installed from ports with no mods. apcupsd itself runs fine but the script /usr/local/etc/rc.d/apcupsd.sh returns: apcupsd.sh: Cannot determine the PREFIX when I try it. I assume there are some Linux specific paths in there? How are you calling the script? You must give the absolute path on the command line, or the first block (if ! ...) will make it bomb out with the error message. HTH Dan You are correct. /usr/local/etc/rc.d/apcupsd.sh start|stop will work. Now, how would I modify the script to make sh apcupsd.sh start|stop executed from /usr/local/etc/rc.d/ work? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
FreeBSD as router
Hello! I was searching with google, but I was not able to find. I'm looking for HOWTO or other docs, how to build FreeBSD box as router. My network is: +--+ ++ | |--IP1--|| Firm1 | inet | | FreeBSD router | | |--IP2--|| Firm2 +--+ ++ Well, IP1 is IP number from one ISP, and IP2 from other. Idea is to have a spare connection, when one of them will be broken. What I need, is how to configure the kernel, /etc/rc.conf, some rules for ipfw, natd(?). Thanks in advantage P.S. I'm out fo list, so please write to me also -- /~\ The ASCII Krzysztof Stryjek \ / Ribbon Campaign [EMAIL PROTECTED] X Against HTML http://mud.pl/~wtp/ / \ Email! GG: 3608113 ICQ: 124986907 Go placidly amid the noise and waste, and remember what value there may be in owning a piece thereof. -- National Lampoon, Deteriorata To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Need help with apcupsd startup script
On Fri, Jul 19, 2002 at 01:53:13PM +0200, Per olof Ljungmark wrote: At 12:10 7/19/2002 +0100, Daniel Bye wrote: On Fri, Jul 19, 2002 at 12:58:42PM +0200, Per olof Ljungmark wrote: Hi all, I am using apcupsd installed from ports with no mods. apcupsd itself runs fine but the script /usr/local/etc/rc.d/apcupsd.sh returns: apcupsd.sh: Cannot determine the PREFIX when I try it. I assume there are some Linux specific paths in there? How are you calling the script? You must give the absolute path on the command line, or the first block (if ! ...) will make it bomb out with the error message. HTH Dan You are correct. /usr/local/etc/rc.d/apcupsd.sh start|stop will work. Now, how would I modify the script to make sh apcupsd.sh start|stop executed from /usr/local/etc/rc.d/ work? You can remove the first if block, but I would recommend you leave it as is - all the scripts installed in /usr/local/etc/rc.d tend to run this check, so I guess for sanity's sake rc must make use of it to ensure it is running a valid script. If it really bugs you typing the full path, I guess you could try a shell alias? This will work, in sh or bash: # alias apcupsd=/usr/local/etc/rc.d/apcupsd.sh $@ Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Need help with apcupsd startup script
On Fri, Jul 19, 2002 at 01:53:13PM +0200, Per olof Ljungmark wrote: At 12:10 7/19/2002 +0100, Daniel Bye wrote: On Fri, Jul 19, 2002 at 12:58:42PM +0200, Per olof Ljungmark wrote: Hi all, I am using apcupsd installed from ports with no mods. apcupsd itself runs fine but the script /usr/local/etc/rc.d/apcupsd.sh returns: apcupsd.sh: Cannot determine the PREFIX when I try it. I assume there are some Linux specific paths in there? How are you calling the script? You must give the absolute path on the command line, or the first block (if ! ...) will make it bomb out with the error message. You are correct. /usr/local/etc/rc.d/apcupsd.sh start|stop will work. Now, how would I modify the script to make sh apcupsd.sh start|stop executed from /usr/local/etc/rc.d/ work? That's not needed, if the script is executable it will be started at boot time. Edwin -- Edwin Groothuis |Personal website: http://www.MavEtJu.org [EMAIL PROTECTED]|Weblog: http://www.mavetju.org/weblog/weblog.php bash$ :(){ :|:};: | Interested in MUDs? http://www.FatalDimensions.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: osama zekry
On Friday 19 July 2002 05:14 am, osama zekry wrote: | what is kernel functions and what kernel meaning First, please give your mail a meaningful subject. Second, you are going to have to do some basic research before you send questions to the list. Find and read a book or article on Unix; check out the FreeBSD web site. Google is always good for this sort of thing, too. For example, try kernel definition in google. | | _ | Join the worlds largest e-mail service with MSN Hotmail. | http://www.hotmail.com | | | To Unsubscribe: send mail to [EMAIL PROTECTED] | with unsubscribe freebsd-questions in the body of the message -- Brian, the man from Babble-On . . . . [EMAIL PROTECTED] (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /cdrom for normal users?
On Thursday 18 July 2002 02:54 pm, Steve Mazerski wrote: | On Thursday 18 July 2002 20:09, Daniel Bye wrote: | On Thu, Jul 18, 2002 at 07:15:10AM -0700, Balaji, Pavan wrote: | By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD. | You can make it mountable by normal users by changing the /etc/fstab | entry to users,ro,noauto | | /dev/acd0c /cdrom cd9660 users,ro,noauto 0 | 0 | | Hmm, just edited my /etc/fstab to look like this, and I get a different | message: | | cd9660: -o users: option not supported Right. That's because you can't do that in FreeBSD. I wish you could, too. At least, it's never worked for me. | However, google brought me this: | | http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOP | PY MOUNT That's ok if you can live with users being able to mount only into their own directories, but I found that rather awkward. I use op (from the ports/packages) to permit ordinary users to mount the cdrom. This is a sort of super sudo command that you use to give limited or full access with or without passwords to various commands. It means that ordinary users would mount with op mount /cdrom rather than just mount /cdrom. Myself, I alias mount to op mount in my ordinary user profile. -- Brian, the man from Babble-On . . . . [EMAIL PROTECTED] (personal) http://www.babbleon.org http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message