linux compatibility
Is there any way to check which (if any) installed applications are dependent on linux compatibility? Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Instant-workstation is missing
Hi, I have been trying to get FreeBSD 5.2 installed but i am unable to find all the packages that are required on the official cd-rom set i brought. i have tryed installing by FTP and i am still unable to find them This gouies for instant-workstation I have been following throught book "Greg Lehey The Complete FreeBSD" can sombody help clear this up for me than ks in advance Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Instant-workstation is missing
Sorry your correct it is version 5.1 Matthew Seaman wrote: On Mon, Nov 10, 2003 at 01:17:20AM +1030, Andrew wrote: I have been trying to get FreeBSD 5.2 installed but i am unable to find all the packages that are required on the official cd-rom set i brought. i have tryed installing by FTP and i am still unable to find them This gouies for instant-workstation Hmmm... It seems you've gone astray in time. FreeBSD 5.2 has yet to be released. See http://www.freebsd.org/doc/en_US.ISO8859-1/articles/5-roadmap/schedule.html Perhaps you mean 5.1 ? You won't find all possible packages on the CD Rom set as there's simply far too much stuff to fit onto the CDs. Your best bet is to install the cvsup-without-gui package: # pkg_add -r cvsup-without-gui then use cvsup to pull down the latest version of the ports tree and install via ports. This will have been updated since 5.1 was released, in order to take account of updates to the dependent packages. See: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html Then: # cd /usr/ports/misc/instant-server # make install Cheers, Matthew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Instant-workstation is missing
Kris Kennaway wrote: On Mon, Nov 10, 2003 at 08:48:19AM +1030, Andrew wrote: Sorry your correct it is version 5.1 1) Please don't top-post..see how this message has lost context from your original posting? 2) Which packages can't you find, and where precisely are you looking? Kris I have been following the the examples in the book The Complete FreeBSD Greg Lehey there is no cdrecord, galeon, gpg, postfix, xtset, then i carry on reading it said if you installed instant-workstation off which i can not find either. I have tryed the install with out these packages but then I can not copy over file /usr/share/ske1/dot.bashrc ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Problem about ppp -nat
Hi Pongthep, Pongthep Kulkrisada wrote: Hi All, Firstly, I'm sorry for late reply. For simplicity to your responses, I shall ask question by question... * Manolis Kiagias ([EMAIL PROTECTED]) wrote: There are at least two ways that I know of to achieve this. One uses the ipfw firewall, the other the pf firewall. For the ipfw solution, look at the FreeBSD Handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html 1. I heard that ppp itself has capability of NAT. It can work with the command ppp -nat and without running natd. Please tell me whether it is right or wrong. That is correct, it doesn't require natd for 'ppp -nat' Just setup your fw of choice as if the tun0 device is the external device and leave all the nat stuff completely out of it. Put any port forwarding rules you need in the ppp.conf file. ipfw is the same. If natd is not used, I can't add the rule ... Correct, you need natd if you will be using ipfw for your NAT rules. add divert natd ip from any to any via tun0 to /etc/ipfw.rules. I'm confused. 2. And if natd is still required, what -nat argument (ppp -nat) is for? natd isn't required for ppp -nat. HTH the confusion. cya Andrew This worked fine for me, although I prefer to use pf. Here is how I setup pf (Adjust for your interfaces as necessary) My Internet interface is rl0, setup in rc.conf as: ifconfig_rl0="inet 192.168.0.100 netmask 255.255.255.0" My local interface is rl1, setup in rc.conf as: ifconfig_rl1="inet 192.168.1.100 netmask 255.255.255.0" 3. I haven't mentioned that I can't use this configuration. I have 2 interfaces i.e. public and private LAN. But I have only one NIC card for private LAN. I don't have NIC card for public. I'm using 56k modem to connect the outside world. I think I can't add ifconfig_tun0="inet 192.168.0.100 netmask 0xff00" to /etc/rc.conf. If I'm wrong, please tell me. I did much googling. All sites always refer 2 NIC cards being used like your example. I do have only one NIC card + 56k serial modem (/dev/cuad0). (I also have a defaultrouter setting which probably does not apply to you) I have nameserver entries in /etc/resolv.conf (or setup your own DNS server if you wish) 4. I also have nameserver entries. I tried setting DNS server on my WinXP host to both gateway (FBSD host) and DNS servers of ISP. Both don't work. Use this settings in rc.conf for pf: pf_enable="YES" pflog_logfile="/var/log/pflog" pflog_flags="" pf_rules="/etc/pf.conf" pf_flags="" gateway_enable="YES" 5. I think I have equivalent setting of ipfw in /etc/rc.conf but don't work. gateway_enable="YES" firewall_enable="YES" firewall_type="OPEN" firewall_quite="YES" firewall_script="/etc/ipfw.rules" firewall_logging="YES" Run: # sysctl net.inet.ip.forwarding=1 # /etc/rc.d/routing restart Add net.inet.ip.forwarding=1 to /etc/sysctl.conf so it persists reboots 6. I recompiled my kernel. options IPFIREWALL options IPFIREWALL_FORWARD options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=120 options IPDIVERT I think it should be equivalent to sysctl setting. Add the following rule to /etc/pf.conf nat pass on rl0 from rl1:network to any -> rl0 AFAIR, if rl0 has a dynamic address, you will have to write it with parentheses, like: nat pass on rl0 from rl1:network to any -> (rl0) (Note that in /etc/pf.conf translation rules like the above, are placed above filtering rules like pass or block etc) You may have to adjust /etc/pf.conf filtering rules, assuming you have any. Restart some services # /etc/rc.d/netif restart # /etc/rc.d/routing restart # /etc/rc.d/pf restart or simply reboot, and you should be set. 7. I don't know about PF. * Fbsd1 ([EMAIL PROTECTED]) wrote: You need to run dhcp so you can assign ip address on the LAN so the down stream xp box can gain access to the public internet through your gateway freebsd box. There is a detailed step by step instructions in the install guide at www.a1poweruser.com 8. I read doc from the mentioned site. The doc does not mention anything about sharing ppp dial-up to the other host. And I'm sorry dhcp is not the point of my concern now. I only want to share internet access whether IP is static or dynamic. BTW the doc is very good anyway. I shall keep it. :-) * Polytropon ([EMAIL PROTECTED]) wrote: First of all, I made my kernel capable; significant parts: # Firewall, NAT ...blah 9. I compiled the kernel following your advice excepted NETGRAPH. I think PPPoE is not the point of concern Configuration in /etc/rc.conf goes this way: ifconfig_xl0="inet 192.168.0.1 netmask 0xff00" ifconfig_rl0="inet 192.168.1.1 netmask 0xff00 media 10baseT/UTP" 10.
Re: Firewall with bridged interfaces and captive portal
Olivier Nicole wrote: Hi Chris, I need to implement a firewall with bridged interfaces that offers captive portal (authentication before opening the traffic). We are using a combination of squid+ipfw. Although we are NATing the users, that really just introduces needless complexity that could be avoided with a bridging solution. Our web-app/captive portal/authentication program is written in-house; it's very tightly integrated with several existing pieces of infrastructure. I don't know if there are any solutions that will work out-of-the-box. I can get you more technical details if this is a direction you'd be interested in moving. Long time ago I have been toying with ipf (for the genral firewall) and NoCat+ipfw for the captive portal. But that did not work too well, so any technical information will be appreciated :) My long term vision is a quite integrated thing, where users that read their email and authenticate to POP3/IMAP would be granted the access without the need to authenticate to the web portal. For squid have a look at the option auth_param You are able to use your own authorisation app/script that can check all kinds of places to see if that IP is allowed access. For example I have a client that has samba on his transparent proxy. Each user has a drive letter mapped to that share. The script defined by auth_param just greps the ip from 'smbstatus -p' and uses the username with that IP to tell squid what user it is for the logs. There would be nothing to stop the script to check ipfw, to see if there is rules for that ip to allow access and then if there isn't, add them. To remove the ipfw rules you could have a cron script that checks the last packet time (using -t or -T) and if its over a certain time then remove it (preferably with the checking of where you got the initial check to see if the user is valid or not). HTH cya Andrew Best regards, Olivier ___ 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]"
Problem with makeinfo when I'm building devel/autoconf-262
Hello. I'm running FreeBSD 5.5 and trying to build autoconfig 2.62 from ports (due iirc to an update to the autotools port in mid-May). Everything goes fine until we reach the doc directory. Unfortunately then the texinfo source upsets makeinfo. I don't understand texinfo source and I can't figure out how to fix it. Can anyone give me some advice? TIA. Here is the (trimmed but still somewhat lengthy) output of the build: [EMAIL PROTECTED] /usr/ports/devel/autoconf262]# make ===> Extracting for autoconf-2.62 => MD5 Checksum OK for autoconf-2.62.tar.bz2. => SHA256 Checksum OK for autoconf-2.62.tar.bz2. ===> autoconf-2.62 depends on file: /usr/local/bin/perl5.8.8 - found ===> Patching for autoconf-2.62 ===> autoconf-2.62 depends on file: /usr/local/bin/perl5.8.8 - found ===> Applying FreeBSD patches for autoconf-2.62 ===> autoconf-2.62 depends on executable: gm4 - found ===> autoconf-2.62 depends on executable: help2man - found ===> autoconf-2.62 depends on executable: gmake - found ===> autoconf-2.62 depends on file: /usr/local/bin/perl5.8.8 - found ===> Configuring for autoconf-2.62 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no (***SEVERAL LINES SNIPPED **) config.status: creating lib/autotest/Makefile config.status: creating bin/Makefile config.status: WARNING: not linking GNUmakefile to itself config.status: executing tests/atconfig commands ===> Building for autoconf-2.62 gmake all-recursive gmake[1]: Entering directory `/usr/ports/devel/autoconf262/work/autoconf-2.62' Making all in bin gmake[2]: Entering directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/bin' rm -f autom4te autom4te.tmp srcdir=''; \ test -f ./autom4te.in || srcdir=./; \ sed -e 's|@[EMAIL PROTECTED]|/bin/sh|g' -e 's|@[EMAIL PROTECTED]|/usr/bin/perl|g' -e 's|@[EMAIL PROTECTED]|/usr/local/bin|g' -e 's|@[EMAIL PROTECTED]|/usr/local/share/autoconf-2.62|g' -e 's|@[EMAIL PROTECTED]|/usr/local|g' -e 's|@[EMAIL PROTECTED]|'`echo autoconf | sed 's&$&-2.62&'`'|g' -e 's|@[EMAIL PROTECTED]|'`echo autoheader | sed 's&$&-2.62&'`'|g' -e 's|@[EMAIL PROTECTED]|'`echo autom4te | sed 's&$&-2.62&'`'|g' -e 's|@[EMAIL PROTECTED]|/usr/local/bin/gm4|g' -e 's|@[EMAIL PROTECTED]|--debugfile|g' -e 's|@[EMAIL PROTECTED]|nawk|g' -e 's|@[EMAIL PROTECTED]|'`sed 's/^\([0-9][0-9][0-9][0-9]\).*/\1/;q' ../ChangeLog`'|g' -e 's|@[EMAIL PROTECTED]|2.62|g' -e 's|@[EMAIL PROTECTED]|GNU Autoconf|g' -e 's|@[EMAIL PROTECTED]|Generated from autom4te.in; do not edit by hand.|g' ${srcdir}autom4te.in autom4te.tmp chmod +x autom4te.tmp chmod a-w autom4te.tmp mv autom4te.tmp autom4te cd ../lib && gmake autom4te.cfg gmake[3]: Entering directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/lib' ( MANY LINES SNIPPED ***) gmake[3]: Leaving directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/lib' gmake[2]: Leaving directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/lib' Making all in doc gmake[2]: Entering directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/doc' Updating ./version.texi restore=: && backupdir=".am$$" && \ am__cwd=`pwd` && cd . && \ rm -rf $backupdir && mkdir $backupdir && \ if (/bin/sh /usr/ports/devel/autoconf262/work/autoconf-2.62/build-aux/missing --run makeinfo --version) >/dev/null 2>&1; then \ for f in autoconf-2.62.info autoconf-2.62.info-[0-9] autoconf-2.62.info-[0-9][0-9] autoconf-2.62.i[0-9] autoconf-2.62.i[0-9][0-9]; do \ if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \ done; \ else :; fi && \ cd "$am__cwd"; \ if /bin/sh /usr/ports/devel/autoconf262/work/autoconf-2.62/build-aux/missing --run makeinfo --no-split -I . \ -o autoconf-2.62.info autoconf-2.62.texi; \ then \ rc=0; \ cd .; \ else \ rc=$?; \ cd . && \ $restore $backupdir/* `echo "./autoconf-2.62.info" | sed 's|[^/]*$||'`; \ fi; \ rm -rf $backupdir; exit $rc autoconf-2.62.texi:1723: Unknown command `'. autoconf-2.62.texi:3353: Unknown command `'. autoconf-2.62.texi:3920: Unknown command `'. autoconf-2.62.texi:3935: Unknown command `'. autoconf-2.62.texi:3947: Unknown command `'. autoconf-2.62.texi:3965: Unknown command `'. autoconf-2.62.texi:3986: Unknown command `'. autoconf-2.62.texi:4001: Unknown command `'. autoconf-2.62.texi:4019: Unknown command `'. autoconf-2.62.texi:4027: Unknown command `'. autoconf-2.62.texi:4035: Unknown command `'. autoconf-2.62.texi:4078: Unknown command `'. autoconf-2.62.texi:4085: Unknown command `'. autoconf-2.62.texi:4105: Unknown command `'. autoconf-2.62.texi:4113: Unknown command `'. autoconf-2.62.texi:4130: Unknown command `'. autoconf-2.
stale dependencies in pkgdb
Hello, I am trying to use a combination of portaudit and portupgrade to automatically maintain installed packages on my system, but portupgrade often hangs on stale dependencies. I've run "pkgdb -F" as portupgrade suggests, deleting stale dependencies, but they seem to keep reappearing. I guess I'm a little unclear about what a stale dependency consists of and how to fix it. Pointers to relevant documentation and/or explanations would be greatly appreciated! Thanks, Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: stale dependencies in pkgdb
On Fri, 2006-02-10 at 11:42 -0500, Robert Huff wrote: > Andrew writes: > > > I've run "pkgdb -F" as portupgrade suggests, deleting stale > > dependencies, but they seem to keep reappearing. > > I'm not an expert on pkgdb, but I'm pretty sure that's the way > it works. > You need to fix, not delete, the stale dependencies. This may > take some effort the first time around. > Beyond that, I question the wisdom of any "automatic" > solution. There are definitely times when I do _not_ want to accept > the fixes proposed by pkgdb -F. I guess what is unclear to me is how I go about fixing the stale dependencies. I was under the impression that portupgrade would take care of the dependencies for a particular port, and the "stale dependency" was just an error in the package database (pkgdb). Is this not the case? Thank-you, Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: stale dependencies in pkgdb
On Fri, 2006-02-10 at 11:42 -0500, Robert Huff wrote: > Andrew writes: > > > I've run "pkgdb -F" as portupgrade suggests, deleting stale > > dependencies, but they seem to keep reappearing. > > I'm not an expert on pkgdb, but I'm pretty sure that's the way > it works. > You need to fix, not delete, the stale dependencies. This may > take some effort the first time around. > Beyond that, I question the wisdom of any "automatic" > solution. There are definitely times when I do _not_ want to accept > the fixes proposed by pkgdb -F. My apologies; I re-read the man pages for portupgrade and pkgdb and I think I understand what's going on now. Thanks anyway... -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: stale dependencies in pkgdb
On Fri, 2006-02-10 at 15:11 -0500, Robert Huff wrote: > Andrew writes: > > > I guess what is unclear to me is how I go about fixing the stale > > dependencies. I was under the impression that portupgrade would > > take care of the dependencies for a particular port, and the > > "stale dependency" was just an error in the package database > > (pkgdb). Is this not the case? > > My understanding of how things work: > Consider two ports a and b, such that a-4.6 is a dependency for > b-2.2. If a updates to 4.7, and I run "portupgrade -r a", b will > also be updated. > But if I run "portupgrade a" (or there's a bug in the programs/ > scripts) b will not update ... and pkgdb will complain about about a > stale (i.e. unsatisified) dependency. This also happens when you > replace one port with another that provides the same functionality. > For example: many gnome ports depend on openldap. But I use > openldap-sasl - and every time I update one of those ports I have to > manually correct the dependency. (There's probably a way to do that > automatically, but I haven't figured out how.) > And now there's a "stale dependency". This can be expecially > frustrating if the dependant port hasn't been updated for years; the > required port may have been upgraded beyond recognition, no longer > available, absorbed into another port, etc.. > As to how, try this as a first approximation. Run [kgdb -f, > and reply "no" to all changes. Write down the port:dependency > pairs, and then anaylze the dependencies. Has it been > installed. but not registered? Replaced by a newer version? Two > useful files are /usr/ports/UPDATING and /usr/ports/MOVED. > My response here is mostly guesswork, educated by several years > of doing this and sometimes asking for help. In the case above, > fixing a-4.6 with a-4.7 is usually a no-brainer. Fixing a-4.6 with > a-5.0, however, would require reseaech (and warrant keeping a backup > of the pkgdb). Sorry; just fired off a message to the list before I got this one... Anyway, I think I've got it now. I believe I was correct in thinking that portupgrade usually takes care of dependencies; the portion that I was missing was that pkgdb catches what discrepancies do appear between what is installed and what is required. One of the ports that was giving me troubles was gamin; which I've just noticed seems to be similar to your situation with openldap-sasl (gamin/fam). Another was cdrtools (cdrtools/cjk-cdrtools). I've corrected both manually using "pkgdb -F", which I think solves my problem (for now, at least :-) ). Thank you for your help! -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
newly built kernel fails to boot
# MII bus support device fxp # Intel EtherExpress PRO/100B (82557, 82558) device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # Pseudo devices. device loop# Network loopback device random # Entropy device device ether # Ethernet support device sl # Kernel SLIP device ppp # Kernel PPP device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support device uhci# UHCI PCI->USB interface device ohci# OHCI PCI->USB interface device ehci# EHCI PCI->USB interface (USB 2.0) device usb # USB Bus (required) device ugen# Generic device uhid# "Human Interface Devices" device ukbd# Keyboard device ulpt# Printer device umass # Disks/Mass storage - Requires scbus and da device ums # Mouse end of kernel config = Thanks to anyone willing to take a look at this :-)! -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: newly built kernel fails to boot
On Thu, 2006-02-16 at 20:45 +0100, Fabian Keil wrote: > Andrew <[EMAIL PROTECTED]> wrote: > > > I've just had a go at configuring and rebuilding a kernel for my > > desktop machine. I read the section in handbook, and skimmed over > > NOTES and the GENERIC config. I then copied GENERIC to NETVISTA and > > commented out drivers/devices that I didn't think were relevant to my > > hardware. config(8) is happy with my file, and 'make buildkernel' and > > 'make installkernel' proceed without any errors. So, I ran > > nextboot(8) and rebooted, but the new kernel hangs right after the > > first line printed to the console; the first portion of which is > > 'acpi.ko'. > > > # NETVISTA Kernel Config > > # ACPI Video Extensions (LCD backlight/brightness, video output, etc.) > > > device acpi_video > > Just guessing, but man acpi says: > > |BUGS > | If the acpi driver is loaded as a module when it is already linked as > | part of the kernel, odd things may happen. > > Maybe having acpi_video in the kernel and then loading acpi as > module triggers "odd things" as well. > > Fabian Thank you; I'll remove that device and see what happens... -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
using Realplayer codecs with mplayer
Hello, Please correct me if this is not the best place to post this question; it wasn't clear to me if it belonged on the 'multimedia' list or not... I'd like to be able to use mplayer to play Realmedia files (more specifically, streaming audio), but I can't seem to get it working under FreeBSD. I have mplayer, realplayer and the win32-codecs ports installed. mplayer and realplayer both work great, but mplayer refuses to play Realaudio streams. It fails with the error: Win32 LoadLibrary failed to load: avisynth.dll,/usr/local/lib/win32/avisynth.dll,/usr/lib/win32/avisynth.dll On a hunch, I grabbed the latest (stable) codecs from mplayerhq.hu, and extracted them into /usr/local/lib/win32, but it doesn't include this dll either. So, I suppose my question is: Will mplayer, if set up correctly, play realaudio files, or is this not possible since realplayer is being run under Linux emulation? Thanks for any info or pointers to relevant posts or documentation... -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: using Realplayer codecs with mplayer
On Tue, 2006-02-21 at 19:04 -0500, Robert Huff wrote: > Andrew writes: > > > So, I suppose my question is: Will mplayer, if set up correctly, > > play realaudio files, > > I believe I have done so - by accident - within the past 24 > hours. Which realmedia type and version I cannot remember. > However, even so I would default to RealPlayer 10 (even under > comaptibility) over mplayer. > > > Robert Huff Well, yes, RealPlayer works great for playing streams, but the ultimate goal is to archive audio streams; i.e. download, and re-encode them in another format. This is, admittedly, somewhat of a gray area, but I cannot see it as being immoral if they are for my personal use. I have done it with Slackware, mplayer, and realplayer, but I'd rather not have another OS around just for this (seemingly) simple task. -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: using Realplayer codecs with mplayer
On Wed, 2006-02-22 at 11:39 +0200, Adi Pircalabu wrote: > On Tue, 21 Feb 2006 17:59:14 -0600 > Andrew <[EMAIL PROTECTED]> wrote: > > > I'd like to be able to use mplayer to play Realmedia files (more > > specifically, streaming audio), but I can't seem to get it working > > under FreeBSD. I have mplayer, realplayer and the win32-codecs ports > > installed. mplayer and realplayer both work great, but mplayer refuses > > to play Realaudio streams. > > Do you want to use MPlayer with Realplayer codecs? If so, you must rebuild > mplayer using "WITH_REALPLAYER=1" argument for make. > Bye Thanks for the suggestion; however, after building mplayer with "make -DWITH_REALPLAYER=1 install" and, alternatively, "make WITH_REALPLAYER=1 install", it fails with the error I posted before: Win32 LoadLibrary failed to load: avisynth.dll, /usr/local/lib/win32/avisynth.dll, /usr/lib/win32/avisynth.dll So, I suppose I'll have to install ffdshow on a Windows machine, and grab that dll. Hopefully that will take care of it. -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Permissions have me stumped
On Wed, 2006-03-01 at 14:49 -0600, Kirk Strauser wrote: > I have a directory, /usr/share/media, where I store all my pictures, songs, > videos, and other random stuff. The directory is chgrp media and chmod > 2770 so that every member of the media group can write to it, and all files > writing to it will be readable by everyone else in the media group. > > What I don't really understand is why I can't update any timestamps on its > subdirectories, even though it looks like I should be able to: > > $ ls -lad /usr/share/media/music > drwxrws--- 4 root media 512 Mar 1 14:40 /usr/share/media/music > $ touch -t 200603011234.45 /usr/share/media/music > touch: /usr/share/media/music: Operation not permitted > > The only reason this is an issue at all is that I have a script that rsyncs > my this directory tree with a similar one on my machine at work, and it > throws a large number of warnings ever time the rsync command runs: > > $ rsync -auvx janus:/usr/share/media/music/ /usr/share/media/music/ > receiving file list ... done > rsync: failed to set times on "/usr/share/media/music/.": Operation not > permitted (1) > rsync: failed to set times on "/usr/share/media/music/albums": Operation > not permitted (1) > rsync: failed to set times on "/usr/share/media/music/singles": Operation > not permitted (1) > rsync: failed to set times on "/usr/share/media/music/.": Operation not > permitted (1) > rsync: failed to set times on "/usr/share/media/music/albums": Operation > not permitted (1) > rsync: failed to set times on "/usr/share/media/music/singles": Operation > not permitted (1) > ... > > I know this is pretty minor in the scheme of things, but it still bothers me > because it looks like it should work, but it doesn't. Any chance that this would happen to be a FAT32 file system? I'm not using rsync, but I have a similar setup, (shared media files on a FAT32 partition), and have had numerous annoying errors because of this. Most notably, not being able to change user/group ownership of anything on that partition. I'm not quite sure how or if that relates to your troubles, though... -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Release 6.0 386 kernel config file
On Mon, 2006-03-06 at 14:26 -0500, Steve P. wrote: > Could someone please give me a url to a text listing of this file? I > don't have access to fbsd right now. > > Thanks. > > Steve. I don't have a specific URL for you, but a suggestion: what about the CVS interface on freebsd.org? I _assume_ that since you can view source files etc for all of the ports, that the system sources would be around somewhere. Just a thought, though; haven't tried it. -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: RC scripts HOWTO
http://www.netbsd.org/guide/en/chap-rc.html#chap-rc-reading may be of some help. I believe the current system came from, or was at least largely inspired by the NetBSD rc.d scripts. -Andrew On Sun, 2006-03-12 at 20:31 -0600, Eric Schuele wrote: > Bob Goodman wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Guys, > > could you please direct me to some info, the detailed the better, > > on how RC and RCng scripts work in FreeBSD. > > Can't seem to find in handbook or google. > > man pages for rc and rcorder not provide what you are looking for either? > > > Thanks in advance > > > > Bob > > -BEGIN PGP SIGNATURE- > > Note: This signature can be verified at https://www.hushtools.com/verify > > Version: Hush 2.5 > > > > wkYEARECAAYFAkQUsd0ACgkQAQ09syE0bn5mhgCeM2CQ/Gb5GidLTeVMNXIovz2SLqsA > > nietTLt+WDO699fx4X4ig7aK//B5 > > =og+9 > > -END PGP SIGNATURE- > > > > > > > > > > Concerned about your privacy? Instantly send FREE secure email, no account > > required > > http://www.hushmail.com/send?l=480 > > > > Get the best prices on SSL certificates from Hushmail > > https://www.hushssl.com?l=485 > > > > ___ > > 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]"
Kernel-level PPPoE server
Hi! I'm fighting my way through manuals and mailing-list archives and I hope you won't mind a dumb question. I run FreeBSD4.10-Release and I want to set up a kernel-level PPPoE server. The problem is I can't find a way to make pppd work with pppoed. As you know, pppoed executes "exec /usr/sbin/ppp -direct label" by default, but it can be passed any other line to execute. Pppoed(8) says: "The child process will have standard input and standard output attached to the same netgraph(4) data socket (see ng_socket(4)) when started." Unfortunately, pppd has no analog of "direct" option for ppp. If we execute pppd without any tty_name, then it assumes "/dev/tty" and, as expected, exits after an error: "Failed to open /dev/tty: Device not configured". Since pppoed can execute any line, we can run any script or program before we invoke pppd. So, is there any way to open a pseudo-terminal that would connect to current standart input and standart output? Pppoed opens a pppoe connection via ng_pppoe and ng_socket, all we need for pppd to work is a device (tty) representing the data socket. Is there any other way to get pppd and pppoed working together? Is there any other way to set up a fast pppoe server under FreeBSD? Thanks, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Kernel-level PPPoE server
On Monday, July 12, 2004 12:48PM +0400, Matthew Seaman wrote: > Is there any particular reason why you insist on using the kernel > pppd? This whole question of speed is a shibboleth -- any tiny little > increase you might get between running user mode PPP vs kernel mode > PPP[1] is entirely outweighed by the fact that the limiting factor is > the available downstream bandwidth. Even if you have 10 Mb/s cable, > either of those PPP implementations will be able to pump data down the > link at full speed without breaking into a sweat. > If you need your PPPoE setup and running any time soon, I suggest > using the usermode PPP. On the other hand, patches to the kernel mode > PPP to add the functionality you need would certainly be well > received. > > [1] And don't assume that kernel mode PPP will automatically be faster > in this sense either. You'ld need to make some quite careful > measurements to be able to say for sure. Thanks, but I'm just curious - it must be very easy to set up pppd with pppoed, but nobody seems to have done it at all! As for speed and perfomance: you can find some tests at [2] and handbook implies it as well [3]. Now, I know that using mpd is one way, but I think pppd would cope just fine. Again: is there a way to open a pty-tty representing current stdin and stdout? [2] http://www.jraitala.net/comp/articles/2002/pppoe/ [3] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp-and-slip.html#PPP-AND-SLIP-SYNOPSIS > On Mon, Jul 12, 2004 at 05:58:12AM +0400, Andrew wrote: > > > I run FreeBSD4.10-Release and I want to set up a kernel-level PPPoE server. > > The problem is I can't find a way to make pppd work with pppoed. As you > > know, pppoed executes "exec /usr/sbin/ppp -direct label" by default, but it > > can be passed any other line to execute. Pppoed(8) says: "The child process > > will have standard input and standard output attached to the same > > netgraph(4) data socket (see ng_socket(4)) when started." Unfortunately, > > pppd has no analog of "direct" option for ppp. If we execute pppd without > > any tty_name, then it assumes "/dev/tty" and, as expected, exits after an > > error: "Failed to open /dev/tty: Device not configured". > > > > Since pppoed can execute any line, we can run any script or program before > > we invoke pppd. So, is there any way to open a pseudo-terminal that would > > connect to current standart input and standart output? Pppoed opens a pppoe > > connection via ng_pppoe and ng_socket, all we need for pppd to work is a > > device (tty) representing the data socket. > > > > Is there any other way to get pppd and pppoed working together? > > > > Is there any other way to set up a fast pppoe server under FreeBSD? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
SOLVED: Second harddrive as slave on ata0 (UDMA100) or as master on ata1(UDMA33)?
Martin Sommerhein wrote: > I am managing a remote machine where a second harddrive was added for me > by the hosting company. I noticed that the second harddrive had been > added as slave on the first IDE controller (ata0). As I assumed I would > get better performance by having it as master on the second controller > (ata1), I asked them to move the second drive over to the second master > controller (ata1). So was done, but then I found that the same disk > showed up as UDMA33 compared to UDMA100 when added as a slave to the > first controller (ata0). > > So the question is, what will give me the best performance, having it on > the second master with UDMA33 or as a slave on the first controller as > UDMA100? Your hosting company seems to have used an UDMA33 IDE cable for the second hard drive. If they cannot find another U100 cable, then you'd better ask them to put both drives on one U100 cable. You'll get better performance this way. > PS: Should this have been sent to [EMAIL PROTECTED] so please > tell me? I doubt it very much that this question has anything to do with FreeBSD at all. Have a nice, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kldload won't load
Jason Dusek wrote: > Hi, > > Yesterday I built the ndis module (ndis.ko) but I can't seem to load it: > >5 # ls /sys/modules/ndis/ | grep 'ndis' >kern_ndis.o >ndis.kld >ndis.ko >subr_ndis.o >6 # kldload -v /sys/modules/ndis/ndis.ko >kldload: can't load /sys/modules/ndis/ndis.ko: No such file or directory > > I'm running 5.2.1, and I have not done a buildworld since I installed from the > CD. Is there something wrong with kldload? Will 'make world' with new source fix > this problem? "/sys" is usually a symbolic link pointing to "/usr/src/sys". Kldload might not follow symlinks. Have a nice, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [no subj]
Please, try going to your freebsd-questions preferences and changing your name to Alexey Zivenko. You should also take your time composing subjects for your messages. I'm sorry I'm not being really helpful but that might draw more attention to your posts. Have a nice, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Linux Oracle 8.1.7.4 on FreeBSD 5.2.1-RELEASE-p9
Daniel Bye wrote: > Hi all, > Anyone out there had any luck getting the Linux version of Oracle > 8.1.7.4 running on FreeBSD 5.2.1-RELEASE-p9? I have found a few docs on > the 'Net that talk about installing earlier versions, and one originally > in Russian that talks specifically about 8.1.7.4, but the only > translation of it I can get is machine-generated, and therefore misses > many points Russian usage, and leads to a, on the whole, brain-twisting > read... > If anyone has any hints, tips, tricks, I'd love to hear from you. > Thanks for your time, and sorry for the vagueness of the question. > Dan Well then, find the russian text once more and post the link here. You'd be amazed of how many russian-speaking people are subscribed. I'm one of them. Have a nice, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: PPPoE misbehaving?
Chris Knipe wrote: > Lo all, > > I recently upgraded to FreeBSD 5.2 to get support for the ath devices... All > it well (so far), but I'm baffled as to why my PPPoEd aren't operating... > > A quick example... > > su-2.05b# ifconfig > ath0: flags=8843 mtu 1250 > ether 00:02:6f:20:98:bb > media: IEEE 802.11 Wireless Ethernet DS/1Mbps (autoselect > ) > status: associated > ssid VARYNET-HS01 1:VARYNET-HS01 > channel 6 authmode OPEN powersavemode OFF powersavesleep 100 > wepmode MIXED weptxkey 1 > wepkey 1:40-bit > > All is fine, the WLAN is up and working. When I do assign IP addresses on > the interface, the WiFi Client can talk to the server via the wireless > network. Thus, the network itself is fine... Next, I start up PPPoEd: > > su-2.05b# /usr/libexec/pppoed -Fd -l pppoe ath0 > Sending NGM_LISTHOOKS to ath0: > Got reply from id [1]: Type ether with 1 hooks > Got [1]:orphans -> [4]:ethernet > Sending PPPOE_LISTEN to .:pppoe-5086, provider > pppoed[5086]: Listening > > > Also fine Lastly, the client fires off a PPPoE session... TCPDump shows > the packets without problems... > tcpdump: listening on ath0 > 12:31:09.050286 PPPoE PADI [Service-Name] [Host-Uniq UTF8] > 12:31:09.122091 PPPoE PADI [Service-Name] [Host-Uniq UTF8] > ^C > 2 packets received by filter > 0 packets dropped by kernel > > However, the PPPoE Deamon simply does not pick it up and does nothing. No > session is initiated, no ppp processes are spawned, nothing... This exact > same configuration over a wired network works perfectly with FBSD4.10... Has > something changed? I don't really know what's the problem, but try to explicitly tell pppoed what to execute (-e switch). Try some arbitrary program, like top, to see if it is actually bringing up anything. Have a nice, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ADSL (1 dyn IP) => FreeBSD => WinGate => NAT Network???
Hi! I've been using Wingate for months now to distribute an internet connection among 10 users (NAT). Stunned by regular failures of Windows 2000, Wingate and other evil software, I decided to switch to FreeBSD. I read the handbook and about 3000 more pages of manuals / how-to's / guides. I set up FreeBSD with all applications I currently need for server tasks. I now need to test some applications, while keeping a part of the load on the Wingate machine. What I want to do is connect to internet via ADSL, using the bsd box, and let Wingate use the connection through the box. What is the best way to retain most of the NAT functionality? If you are happy to not know what Wingate is, try to assume that it is just another nat-box. Can bsd somehow "forward" connection, so that the nat-box almost feels like it has a real IP? Best regards, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Solved: ADSL (1 dyn IP) => FreeBSD => WinGate => NAT Network???
Peter Risdon wrote: > Andrew wrote: > > I've been using Wingate for months now to distribute an internet > > connection among 10 users (NAT). Stunned by regular failures of Windows > > 2000, Wingate and other evil software, I decided to switch to FreeBSD. I > > read the handbook and about 3000 more pages of manuals / how-to's / > > guides. I set up FreeBSD with all applications I currently need for > > server tasks. > > > > I now need to test some applications, while keeping a part of the load > > on the Wingate machine. What I want to do is connect to internet via > > ADSL, using the bsd box, and let Wingate use the connection through the > > box. > > > > What is the best way to retain most of the NAT functionality? > > If you are happy to not know what Wingate is, try to assume that it is > > just another nat-box. Can bsd somehow "forward" connection, so that the > > nat-box almost feels like it has a real IP? > > There's no need to complicate this. The FreeBSD box will provide NAT > for anything behind it, and if that includes the Wingate machine, fine, > no problem. If the Wingate machine is in turn providing NAT for other > machines, fine, no problem. Thanks, that's how I planned to do it. I just though there might be a way to forward/redirect packets in order to avoid natd. But on the other hand, I'll test natd this way as well. Best regards, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Sound card drivers
Hello! I've built a new AMD64 PC for me based on Gigabyte K8VT800 Pro motherboard with VIA K8T800 chipset. I knew I had to check it out against hardware notes, but I didn't. So I installed FreeBSD-5.3, built Xorg and Gnome from ports, and was devastated to find out that there's no conceivable way to get my built-in Realtek ALC658 sound card working :-( I've installed winxp since and been pondering on how to get FreeBSD singing. Please tell me, what's the best way I need a nice soundcard with a fully functional S/PDIF coaxial and optical outputs, that can send unencoded 44.1kHz, 48kHz and encoded AC3 and DTS - all latest Realtek sound cards can do that. I need it to be 90-100% supported by FreeBSD (bridge driver or not) and I don't care about the price if it's under $100 and worth it. Save me from M$! I've wanted it for months to switch to BSD and only see Windows in a PC emulator... Best wishes, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Messages between dmesg and login
Hello! I just couldn't find it, where can I get those messages, which come during the boot sequence just after white text (kernel) and before "login: " prompt. Are they even saved somewhere? I know that errors are written to /var/log/messages, but I need the exact dump of those messages. Should I hack into rc? Best wishes, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Sound card drivers
>>>(uuu) pwd >>>/usr/src >>>(uuu) grep ALC658 sys/dev/sound/pcm/ac97.c >>>{ 0x414c4780, 0x0f, 0, "ALC658",0 }, >>> >>>so, besides I do not know about deep thinks you >>>detailed below, it seems there is some hope... >> >>Yep, thanks for advice! my ALC658 soundcard worked >>great on FreeBSD/x86. >> >>Is it somehow possible to turn on spdif output >>on the soundcard? Tuning all available mixer entries >>to 100:100 doesn't help. In windows version, there's >>no spdif/out level, just a flag (on or off) and two >>optional flags (sample rate and pass-through/digital >>/analog/off mode). I need digital output very much. > > An interesting mail sent about s/pdif support of > FreeBSD can be read at: http://lists.freebsd.org/ > pipermail/freebsd-multimedia/2004-March/000921.html > > It seems that there is driver-specific sysctl values; > if the driver is loaded it should add some of them, > which can be listed using sysctl -a then greping for > pcm, or just seeking for info by eye. I grepped sysctl list and found hw.snd.pcm0.spdif_enabled switch, but when I change it 0->1, the sound disappears (both analog and digital outputs are silent). I tried to play with other hw.snd switches, changed mixer levels and recsrc, searched the net for a few hours - but nothing came up. People hack into sound drivers in cases like mine, but I'm too lame for that yet. Anyways, after loading snd_driver dmesg says pcm0: ... pcm0: [GIANT-LOCKED] pcm0: Motherboard manual says it's a "Realtek ALC658 CODEC (UAJ)" and the chip itself says "Realtek". Has anybody tried to make spdif out work on this mother? Best wishes, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Messages between dmesg and login
>>> I just couldn't find it, where can I get those >>> messages, which come during the boot sequence >>> just after white text (kernel) and before "login: " >>> prompt. Are they even saved somewhere? I know >>> that errors are written to /var/log/messages, >>> but I need the exact dump of those messages. >>> Should I hack into rc? >> >> Do you mean what is in: /var/log/dmesg.today >> and /var/log/dmesg.yesterday ??? >> > > Or perhaps he's looking for what's in /var/run/dmesg.boot? No, dmesg contains kernel messages. I want to review messages produced by rc(8) at startup. Where/how can I get them, please? Best wishes, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ld-elf.so.1: Shared object"libintl.so.6" not found
Hello! I got this at startup: Dec 11 03:32:42 satbsd /kernel: Starting ppp as "root" Dec 11 03:32:42 satbsd /kernel: /usr/libexec/ld-elf.so.1: Dec 11 03:32:42 satbsd /kernel: Shared object "libintl.so.6" not found libintl is in /usr/local/lib, but ppp is started before this: Dec 11 03:32:43 satbsd /kernel: ELF ldconfig path: /usr/lib /usr/lib/ compat /usr/X11R6/lib /usr/local/lib So I copied libintl to /usr/lib and I got error no more. But I still have a question: how come ld-elf.so.1 was looking in the wrong place? I've got a newly cvsupped and fully rebuilt system. (RELENG_4_10). Best wishes, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
rl0: watchdog timeout
Good day! I know, this question is famous, but i can't handle it myself. The problem is: After some time my realtek card becomes unresponsible. It happens because of buffer overflow. I tried ping -f xxx. 15 seconds later, the kernel says that rl0: watchdog timeout. I can't send files more then 100MB via network. This problem is because of my PC configuration - Motherboard GB K8N, chipset nforce 3. Unfortunately, even FreeBSD 5.3 can't handle it (but it's better then 5.2.1). Maybe someone has already met this problem? Thank you! Good luck. P.S. Sorry for my english. :) P.P.S. I tried 4 realtek cards in different slots and one 3com. :( ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Messages between dmesg and login
> Andrew <[EMAIL PROTECTED]> wrote: >> I want to review messages produced by >> rc(8) at startup. Where/how can I get >> them, please? epilogue wrote: > 'dmesg -a' will get you that, as well > as all console messages since boot. > ...you may want to run it through a > pager. ;) Dan Nelson wrote: > They should be in /var/log/console. Thank you guys! I knew about dmesg -a, but it slipped my mind somehow... And now I went to /etc/syslog.conf, uncommented "console.info /var/log/console.log", touched console.log, chmodded it to 600, rebooted and console is being constantly dumped. So both your suggestions worked, thanx! Best wishes, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Basic grep isn't working for me
This command has always worked before, but we recently moved to a new server and now it isn't. --- su-2.05b# /usr/local/bin/keychain | grep -c existing KeyChain 2.5.1; http://www.gentoo.org/proj/en/keychain/ Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL * Found existing ssh-agent (84261) 0 --- Any help would be much appreciated. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Temperature Sensors on a Mini-ITX Board
Does anyone know how to read the temperature sensors on a VIA Mini-ITX board? I've tried xmbmon, lmmon and healthd but nothing seems to read it/them. I can't find anything under the dev sysctl hierachy either. I can't see anything relevant in dmesg apart from this perhaps: acpi0: on motherboard Thanks, Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Temperature Sensors on a Mini-ITX Board
On Mon, 11 Apr 2005, Emanuel Strobl wrote: Have you modified your kernel to support monitoring devices? Since it 's VIA you can keep a closer look to these: device smbus # Bus support, required for smb below. device smb device iicbus device iicbb device iicsmb device viapm Maybe they're loadable modules, just a hint. Yep tried that. If I compile them in then I don't get ACPI at all (no hw.acpi sysctl tree and the associated errors at boot). Loading them after boot seems to have no effect. Thanks, Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Updated Tyan Tiger MPX BIOS, now onboard ethernet doesnt work!
Hello all, I am new to FreeBSD, so go easy on me. I updated the BIOS of a Tyan Tiger MPX motherboard (S2466-without onboard USB) for support of faster Athlon MP processors. The process appeared to have gone fine, but now I can't start Apache (httpd could not be started), I can't visit any websites via Lynx and the machine can't be pinged or SSHed into. Can anybody point me in the right direction? Thanks, Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
error installing FreeBSD 5.1
Hello I have been trying to install FreeBSD 5.1 from DVD-rom and i can boot the system from the dvd OK set up my parftitions and all but when it comes to commit at the end i get a error message. I have been following the examples in book (The Complete FreeBSD) O'Reilly Greg Lehey Every thing runns OK untill this stage even booting from the dvd-rom error mounting /dev/acd0 on /dist: Input/Output error (5) Configration is MSI K7T Turbo 2x512Mb sdram XP2400 Matrox G400 video card Pioneer DVD-romPrimary master Motherboard LG burner Secondary master Motherboard Promise Primary master80Gb western digital Promise Secondary master80Gb western digital ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: error installing FreeBSD 5.1
Hello, I managed to get access to FreeBSD 5.0 Official release and got the same error message. this still occurred after doing a firmware update on the dvd drive. I managed to borrow a Pioneer DVD-105 slotload drive and the install was ok, but i am at a loss to why it is unable to recognise my pioneer dvd-120 drive. Thanks Andrew Kris Kennaway wrote: On Fri, Oct 31, 2003 at 04:30:15PM +1030, Andrew wrote: error mounting /dev/acd0 on /dist: Input/Output error (5) Looks like a problem reading the DVD, perhaps it did not burn properly. Kris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
building the 5.1 kernel
I am trying to rebuild the 5.1 kernel. Using the Freebsd handbook as a guide. I am running freebsd 5.1 and as fyi have been building suse and redhat kernels for a while without problems. But this is my first time building the freebsd kernel) This is what I did. cd /sys/i386/conf config GENERIC <-- no changes to the file then per the results of config cd ../compile/GENERIC then make depend then make the following errors were reported. Why? What did I do incorrectly. A Log follows MiniBSD /sys/i386/compile/GENERIC #: make cc -c -x assembler-with-cpp -DLOCORE -O -pipe -march=i486 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -D_KERNEL -include opt_global.h -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror ../../../i386/i386/locore.s {standard input}: Assembler messages: {standard input}:546: Error: suffix or operands invalid for `shr' {standard input}:547: Error: suffix or operands invalid for `shr' {standard input}:547: Error: suffix or operands invalid for `shl' {standard input}:556: Error: suffix or operands invalid for `shr' {standard input}:557: Error: suffix or operands invalid for `shr' {standard input}:557: Error: suffix or operands invalid for `shl' {standard input}:561: Error: suffix or operands invalid for `shr' {standard input}:561: Error: suffix or operands invalid for `shl' {standard input}:566: Error: suffix or operands invalid for `shr' {standard input}:566: Error: suffix or operands invalid for `shl' {standard input}:571: Error: suffix or operands invalid for `shr' {standard input}:571: Error: suffix or operands invalid for `shl' {standard input}:576: Error: suffix or operands invalid for `shr' {standard input}:576: Error: suffix or operands invalid for `shl' {standard input}:581: Error: suffix or operands invalid for `shr' {standard input}:581: Error: suffix or operands invalid for `shl' {standard input}:587: Error: suffix or operands invalid for `shl' {standard input}:593: Error: suffix or operands invalid for `shl' {standard input}:598: Error: suffix or operands invalid for `shl' {standard input}:604: Error: suffix or operands invalid for `shl' {standard input}:610: Error: suffix or operands invalid for `shl' *** Error code 1 Stop in /usr/src/sys/i386/compile/GENERIC. MiniBSD /sys/i386/compile/GENERIC #: ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: building the 5.1 kernel
Thanks for the reply Reply to your comments... MINIBSD - I am presently running regular ole freebsd 5.1. I eventually plan to rebuild the OS for an application. For now it is vanilla flavor freebsd. GENERIC - Agreed if no changes were made the kernel doesn't have to be rebuilt. I used the unchanged GENERIC file to verify the kernel would build before I started making changes. It insures all the files/scripts are in place. Alternative build process: I tried it that way as well. Got the same errors. Hope it helps Andrew On Sep 1, 2004, at 7:59 AM, Adam Smith wrote: On Wed, Sep 01, 2004 at 07:42:46AM -0400, Andrew said: I am trying to rebuild the 5.1 kernel. Using the Freebsd handbook as a guide. I am running freebsd 5.1 and as fyi have been building suse and redhat kernels for a while without problems. But this is my first time building the freebsd kernel) This is what I did. cd /sys/i386/conf config GENERIC <-- no changes to the file then per the results of config If no changes were made you don't need to recompile your kernel. cd ../compile/GENERIC then make depend then make All this stuff is not the right way around, at least for FreeBSD, and it looks like you're running MiniBSD(?) of which I know nothing ;) Anyway, this is what I do: cd /usr/src/sys/i386/conf cp GENERIC YOURNEWKERNELFILE vi YOURNEWKERNELFILE cd /usr/src make buildkernel KERNCONF=YOURNEWKERNELFILE make installkernel KERNCONF=YOURNEWKERNELFILE reboot Adam -- Adam Smith Internode : http://www.internode.on.net Phone : (08) 8228 2999 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
freebsd builds
Hi, Building kernels I am comfortable with. I have been doing it a while for SUSE. Now I wanted to try freebsd 5.1. So I have some questions about freebsd builds. Some of the questions may sound dumb but I want to make sure I don't do something catostrophic based on a past experience with SUSE. So... make clean - simply cleans objects, executables in the work area /usr/src. Nothing else make buildkernel - simply builds the kernel, support modules, and so on in the work area only /usr/src. The biilt kernel is located in /usr/obj/usr/src/../kernel. make installkernel - once this is done, that which was in the work area is placed in working directories of the installed system. For SUSE I used GRUB or lilo to write the boot block. For freebsd I use bsdlabel? I am targeting the kernel for a Soekris 4511. The 4511 has a national semiconductor ethernet chip. On SUSE I add the configuration parameter NATSEMI=Y to build the ethernet driver. What is the configruation parameter for Freebsd ethernet driver. I was reading a notes file on a technique of building a jail sandbox. The sandbox becomes something like freebsd inside freebsd. The purpose was to allow someone to make major modifications to the kernel and not affect the working operating system components. Per the notes file, the sandbox is set by: perform a customer install. During the install change the installation location to point to the sandbox. chroot Do a build in the sandbox I create the folder, changed the destintation to be the sandbox in the installation options, and installed freebsd in the sandbox folder. Then I: chroot to the sandbox To verify my sandbox install was correct, I tried to rebuild the GENERIC kernel in the sandbox. An error occured in makefile.inc1 line 139. That line has a make command dealing with CPUTYPE. The error was its value not being zero. I then exited the sandbox (command shell) and reexecuted the make command to rebuild the GENERIC kernel in the standard /usr/src location. It worked fine. So it is not the installation kit. The problem is something I have not done or did improperly in creating the sandbox. Thoughts. A ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Best LAN file archive server?
Good day to everyone! I want to arrange a file archive on my FreeBSD box so that windows users can access it via LAN (100Mbit). It'll be over 100Gb, mp3 and divx mostly. Throttling is imperative, it must be designed so that clients can listen to music and watch movies directly, without downloading them. There are only 10 LAN users, so I expect 5-8 simultaneous connections. I wonder, what do you think is the best solution for this - samba, http, ftp or something else? I don't want users to install additional software on their computers, but I'm ready to consider it if it's worth the worries. If ftp is the best, what is the best server? Ftpd? Another point - how to configure the filesystem so that it suits the purpose best? It's just my imagination - but I want it to cache everything insanely, to be very fast in responses and to spare the hard drive (as the latter is going to be a simple ATA drive, Maxtor, Seagate or Hitachi, which are inclined to deadly failures under heavy loads). Please excuse me for my stupidity, but I'm still a hardcore newbie. Yours respectfully, Andrew P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: could someone help with updating ports? portversion/pkg_versionshow different items
robg wrote: > hi, > > I originally ran pkgdb -F and then portupgrade -a to upgrade my port > packages, now when I run pkg_version and portversion I get two > different answers: > > can someone tell mew why portversion is saying that? Hi, Your index files are out of date. Try this: # cd /usr/ports # make fetchindex It will fetch a 6Mb index file. Regards, Andrew P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Ultimately Safe User Account
Hi, I have a production FreeBSD box. My friend is starting to learn Unix essentials and is asking me for an account. He doesn't require any special rights, but he certainly wants to be able to use shell and read most manual pages. He'll access the server via Internet, SSH. How can I create an account, so that it is completely safe to let him in? How can I jail/chroot him and do I need to do it this way? I want to limit everything: disk space (~500Mb), RAM (~10%), processes (~30), cpu (~5-10%), _internet connectivity_ (bandwidth is expensive and he must not be able to download much). He is new to Unix but I have to suppose that somebody very experienced can steal his account info. I'd be glad if he had only very basic ls, cp, mv, as well as sh and vi. I don't want him to have any browser or fetch-like utility. I know that letting somebody log in is already a security hole, but I want to minimize the risks. Thanks, Andrew P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ultimately Safe User Account
Dan Rue wrote: > A live CD is a good suggestion. > > I have to disagree with the idea behind this whole thing, though. I > mean, if this guy's really your friend, I don't see what you're so > worried about. It's really pretty tough to 'accidently' break things as > a user on a system, as long as the system is moderately well > administered. > > If you're concerned about him using a bad password, give him a > sufficient warning and run john the ripper against your password file > for a couple of days. > > Also, don't allow any clear-text protocols such as samba, ftp, telnet, > etc etc. > > Dang, man, I had a friend that ran an /open/ shell server in high > school. He had over 100,000 users, and didn't get hacked (well, he did > at first, but that's when he was running linux :) ). > > How's he supposed to learn anything if all you give him is a jail with > ls cp mv sh and vi? sheesh. That'll turn him off unix pretty quick. Thanks for your feedback. I guess I'll just let him in and try not to worry. Well, the trouble is that I am the one administering the box and that it was this summer when I started reading heaps of unix/bsd documentation - for the first time in my life. I'm still paranoid about my own actions, not to mention smb's else. I'll give him cygwin/livecd as well, though. Thanks again! Regards, Andrew P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Double IP address for tun /dev/tunN
Hi! I use /usr/sbin/ppp to connect my FreeBSD-4.10 box to my ADSL provider. Each time I connect I am assigned a new dynamic IP address. Sometimes I notice that an old address lingers on for days (through several reconnects) like this: satbsd# ifconfig <...> tun0: flags=8051 mtu 1480 inet 83.237.41.95 --> 83.237.41.1 netmask 0x inet 83.237.23.176 --> 83.237.23.1 netmask 0x Opened by PID 32932 <...> This address - 83.237.41.95 - has been assigned to me four days ago! 83.237.23.176 this is my current address, and I've had a few addresses in between. Here is the reconnect log when the old address remained: Oct 12 16:07:08 satbsd ppp[32932]: Phase: deflink: open -> lcp Oct 12 16:07:08 satbsd ppp[32932]: Phase: bundle: Terminate Oct 12 16:07:11 satbsd ppp[32932]: Phase: deflink: Disconnected! Oct 12 16:07:11 satbsd ppp[32932]: Phase: deflink: lcp -> logout Oct 12 16:07:11 satbsd ppp[32932]: Phase: deflink: logout -> hangup Oct 12 16:07:11 satbsd ppp[32932]: Phase: deflink: Disconnected! Oct 12 16:07:11 satbsd ppp[32932]: Phase: deflink: Connect time: 86405 secs: 1792934760 octets in, 97733143 octets out Oct 12 16:07:11 satbsd ppp[32932]: Phase: deflink: 8951000 packets in, 8802534 packets out Oct 12 16:07:11 satbsd ppp[32932]: Phase: total 21881 bytes/sec, peak 490137 bytes/sec on Mon Oct 11 18:33:49 2004 Oct 12 16:07:11 satbsd ppp[32932]: Phase: deflink: hangup -> opening Oct 12 16:07:11 satbsd ppp[32932]: Phase: bundle: Establish Oct 12 16:07:11 satbsd ppp[32932]: Phase: deflink: Enter pause (3) for redialing. Oct 12 16:07:14 satbsd ppp[32932]: Phase: deflink: Connected! Oct 12 16:07:14 satbsd ppp[32932]: Phase: deflink: opening -> dial Oct 12 16:07:14 satbsd ppp[32932]: Phase: deflink: dial -> carrier Oct 12 16:07:15 satbsd ppp[32932]: Phase: Received NGM_PPPOE_ACNAME (hook "STREAM") Oct 12 16:07:15 satbsd ppp[32932]: Phase: Received NGM_PPPOE_SESSIONID Oct 12 16:07:15 satbsd ppp[32932]: Phase: Received NGM_PPPOE_SUCCESS Oct 12 16:07:15 satbsd ppp[32932]: Phase: deflink: carrier -> login Oct 12 16:07:15 satbsd ppp[32932]: Phase: deflink: login -> lcp Oct 12 16:07:16 satbsd ppp[32932]: Warning: deflink: Reducing configured MRU from 1500 to 1480 Oct 12 16:07:16 satbsd ppp[32932]: Phase: bundle: Authenticate Oct 12 16:07:16 satbsd ppp[32932]: Phase: deflink: his = CHAP 0x05, mine = none Oct 12 16:07:16 satbsd ppp[32932]: Phase: Chap Input: CHALLENGE (16 bytes from A444-rb01) Oct 12 16:07:16 satbsd ppp[32932]: Phase: Chap Output: RESPONSE (userpppoemtu) Oct 12 16:07:16 satbsd ppp[32932]: Phase: Chap Input: SUCCESS Oct 12 16:07:16 satbsd ppp[32932]: Phase: deflink: lcp -> open Oct 12 16:07:16 satbsd ppp[32932]: Phase: bundle: Network This log is perfectly similar to other reconnects, when the address was changed successfully and the old address didn't linger. Please suggest a solution to this problem, as some dynamic-ip services refuse to work because of it. Thanks, Andrew P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How can I route through a pc that is also using a router??
Hi! Describe the test-machine, please. If both workstations are on the same subnet, you should probably configure the test-machine as an ip-forwarder or even as an ethernet-level bridge. If your personal workstation is on a different subnet, which is not serviced by proxy or dns, you should configure NAT on the test-machine. In general, there's little problem in cascading gateway installations. Regards, Andrew P. > Good day! >I have two workstations at work, 1 my personal, and > the other, a test machine. > > My boss told me to configure a pcrouter, that is, the > testmachine and let my personal pc connect through the > internet through the testmachine: > > Here's the scenario: > > The testmachine already knows how to connect through > the outside world but, also through a gateway > > testmachine(10.10.8.111)--->gateway(10.10.8.254)>[proxy]>[DNS]-- -->internet > > > And to let my pc connect to the internet through the > testmachine, I've set its default gateway to the ip of > the test machine. > > > But it doesn't seem to work. When I tried to lauch my > browser, the error indicates that it cannot seem to > find its way to the proxy server. > > I've tried adding another line in my routing table > like this: > > Destination Gateway > proxy(202.90.128.14) testmachine(10.10.8.111) > > But it still won't work. > > Do you know what i've been missing here? I'm thinking > perhaps the test machine should connect to the > internet directly without using a gateway anymore.. > > Any idea? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
COM port problems p5mvp3-at
Hello, I am having some trouble with the COM ports on a ESA motherboard; model # P5MVP3-AT "Viking". Issues are: 1. With modem hooked up (via 9 pin D) to COM1 (/dev/cuaa0) the command "cu -l/dev/cuaa0 -s57600" does not communicate with the modem. 2. /sbin/dmesg output reveals that sio0 and sio1 are "identified", at the correct port (according to the BIOS settings), and are on the correct irq. The type of the device is 16550A. 3. device sio has been compiled into the kernel and cuaa0 and cuaa1 are in the /dev directory. 4. I can remove the external modem and put in an old US Robotics internal ISA modem configured with the jumpers to COM1 and the command "cu -l/dev/cuaa0 -s57600" works fine. In order for me to put in the ISA modem into the system I have to disable COM1 settings in the BIOS (the port number) or there is a conflict message at BIOS boot time. When I remove the ISA modem and hook the external modem back up to the system via 9 pin D cable the external modem still does not work. 5. BIOS has been updated. 6. Default BIOS settings have been tried along with alternate settings. 7. I know the modem works because I can hook it up to my Windows machine and connect to the internet. 8. I had the modem hooked up to a previous FreeBSD machine that was acting as a gateway and the modem worked fine. So, basically with BIOS set to default settings everything "seems" to be set up correctly but for some reason the modem does not work. Is this the appropriate list for help? Andrew Carroll Carroll-Tech 720-273-6814 [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
64-bit arithmetic in scripts?
Hi, I'm counting traffic with ipfw and shell scripts. Is there a way to use more than 32-bit numbers in shell arithmetic? Regards, Andrew P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: 64-bit arithmetic in scripts?
Dan Nelson wrote: > In the last episode (Sep 30), Andrew said: > > I'm counting traffic with ipfw and shell scripts. Is there a way to > > use more than 32-bit numbers in shell arithmetic? > > POSIX only requires "signed long" support in the shell, but FreeBSD's > expr command has a -e flag that will let it do 64-bit math: > > $ echo $(( 65536*65536 )) > 0 > $ echo $(expr 65536 "*" 65536) > 0 > $ echo $(expr -e 65536 "*" 65536) > 4294967296 > > bash, ksh93 (but not pdksh), and zsh's shell arithmetic are all 64-bit, > also. Thanks! I haven't thought about using expr. How come that my expr(1) manpage has nothing to say about -e option? In fact my expr(1) does not accept it. I have FreeBSD 4.10. I've just looked into a current manpage from www.freebsd.org, and it says something about 4.x compatibility. What is the best way to go if I need to write scripts now, but I'm planning to switch to 5.x later? Can I upgrade expr(1) now? If not, what should I do? Thanks again and regards, Andrew P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: 64-bit arithmetic in scripts?
Dan Nelson has kindly explained everything: > In the last episode (Oct 01), Andrew said: > > Thanks! I haven't thought about using expr. > > > > How come that my expr(1) manpage has nothing to say about -e option? > > In fact my expr(1) does not accept it. I have FreeBSD 4.10. I've just > > looked into a current manpage from www.freebsd.org, and it says > > something about 4.x compatibility. > > > > What is the best way to go if I need to write scripts now, but I'm > > planning to switch to 5.x later? Can I upgrade expr(1) now? If not, > > what should I do? > > In 4.x, expr does 64-bit math by default. Apparently POSIX requires > that expr use whatever the systems' "signed long" size is, so the > default was changed for 5.x, and -e was added to get the old behaviour. > > If you want your script to work on both, you'll have to do a feature > test. I started out just testing expr and expr -e, but it sort of > grew... The following script will check the shell's math, two ways of > calling expr, and finally fall back on calling bc. As long as you just > use the basic math operators, quote your "*"'s, and put spaces between > everything, all the methods should be compatible, and your script will > work on any bourne-compatible shell :) > > #! /bin/sh > > if [ x$(( 65536 * 65536 )) = "x4294967296" ] ; then > shellarith() { echo $(( $@ )) ; } > MATH="shellarith" > else > if [ x`expr 65536 "*" 65536` = "x4294967296" ] ; then > MATH="expr" > else > if [ x`expr -e 65536 "*" 65536 2>/dev/null` = x"4294967296" ] ; then > MATH="expr -e" > else > if [ x`echo 65536 "*" 65536 | bc` = "x4294967296" ] ; then > bcfunc() { echo "$@" | bc ; } > MATH="bcfunc" > else > echo "Can't do 64-bit math noway nohow" > fi > fi > fi > fi > > echo "Using $MATH" > bigval=`$MATH 65536 "*" 65536` > echo $bigval Thank you very much! I think, I'll just assign MATH="expr" and change it to something else when I need it. Best regards, Andrew P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
glibwww port - patch does not apply
Hi there, Maybe someone can help me, as I'm having trouble building evolution1.2.0 from ports. It seems to be stuck on the glibwww library, and I've had a look around and can't find an obvious solution. I've replaced the distfile, but I think the problem lies elsewhere. Anyroad, it's beyond my expertise, so if anyone can help, I'd really appreciate it. Firstly there's a problem with the checksum on glibwww, then when I try to compile with NO_CHECKSUM=yes, it gives an error about the patch failing to apply cleanly. I've copied the output of my make install, and uname -a is there too. TIA, Andrew bp6# uname -a FreeBSD bp6.logger.org 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Jan 8 16:05:00 GMT 2003 [EMAIL PROTECTED]:/usr/src/sys/compile/BP6 i386 ===> Extracting for evolution-1.2.0_4 >> Checksum OK for gnome/evolution-1.2.0.tar.bz2. >> Checksum OK for gnome/db-3.1.17.tar.bz2. ===> evolution-1.2.0_4 depends on file: /usr/X11R6/lib/gnome-pilot/conduits/libemail_conduit.so - found ===> evolution-1.2.0_4 depends on executable: gmake - found ===> evolution-1.2.0_4 depends on executable: bison - found ===> evolution-1.2.0_4 depends on shared library: bonobo_conf.0 - found ===> evolution-1.2.0_4 depends on shared library: nss3.1 - found ===> evolution-1.2.0_4 depends on shared library: soup.5 - found ===> evolution-1.2.0_4 depends on shared library: X11.6 - found ===> evolution-1.2.0_4 depends on shared library: esd.2 - found ===> evolution-1.2.0_4 depends on shared library: ghttp.1 - found ===> evolution-1.2.0_4 depends on shared library: glib12.3 - found ===> evolution-1.2.0_4 depends on shared library: gtk12.2 - found ===> evolution-1.2.0_4 depends on shared library: xml.5 - found ===> evolution-1.2.0_4 depends on shared library: gdk_pixbuf.2 - found ===> evolution-1.2.0_4 depends on shared library: Imlib.5 - found ===> evolution-1.2.0_4 depends on shared library: ORBit.2 - found ===> evolution-1.2.0_4 depends on shared library: gnome.5 - found ===> evolution-1.2.0_4 depends on shared library: gnomecanvaspixbuf.1 - found ===> evolution-1.2.0_4 depends on shared library: oaf.0 - found ===> evolution-1.2.0_4 depends on shared library: gconf-1.1 - found ===> evolution-1.2.0_4 depends on shared library: capplet.5 - found ===> evolution-1.2.0_4 depends on shared library: gnomeprint.16 - found ===> evolution-1.2.0_4 depends on shared library: bonobo.2 - found ===> evolution-1.2.0_4 depends on shared library: gda-client.0 - found ===> evolution-1.2.0_4 depends on shared library: gnomedb.0 - found ===> evolution-1.2.0_4 depends on shared library: glade.4 - found ===> evolution-1.2.0_4 depends on shared library: gal.21 - found ===> evolution-1.2.0_4 depends on shared library: glibwww.1 - not found ===>Verifying install for glibwww.1 in /usr/ports/www/glibwww ===> Extracting for glibwww-0.2_1 >> Checksum mismatch for glibwww-0.2.tar.gz. Make sure the Makefile and distinfo file (/usr/ports/www/glibwww/distinfo) are up to date. If you are absolutely sure you want to override this check, type "make NO_CHECKSUM=yes [other args]". *** Error code 1 Stop in /usr/ports/www/glibwww. *** Error code 1 Stop in /usr/ports/mail/evolution. bp6# bp6# make NO_CHECKSUM=yes install clean ===> Extracting for evolution-1.2.0_4 ===> evolution-1.2.0_4 depends on file: /usr/X11R6/lib/gnome-pilot/conduits/libemail_conduit.so - found ===> evolution-1.2.0_4 depends on executable: gmake - found ===> evolution-1.2.0_4 depends on executable: bison - found ===> evolution-1.2.0_4 depends on shared library: bonobo_conf.0 - found ===> evolution-1.2.0_4 depends on shared library: nss3.1 - found ===> evolution-1.2.0_4 depends on shared library: soup.5 - found ===> evolution-1.2.0_4 depends on shared library: X11.6 - found ===> evolution-1.2.0_4 depends on shared library: esd.2 - found ===> evolution-1.2.0_4 depends on shared library: ghttp.1 - found ===> evolution-1.2.0_4 depends on shared library: glib12.3 - found ===> evolution-1.2.0_4 depends on shared library: gtk12.2 - found ===> evolution-1.2.0_4 depends on shared library: xml.5 - found ===> evolution-1.2.0_4 depends on shared library: gdk_pixbuf.2 - found ===> evolution-1.2.0_4 depends on shared library: Imlib.5 - found ===> evolution-1.2.0_4 depends on shared library: ORBit.2 - found ===> evolution-1.2.0_4 depends on shared library: gnome.5 - found ===> evolution-1.2.0_4 depends on shared library: gnomecanvaspixbuf.1 - found ===> evolution-1.2.0_4 depends on shared library: oaf.0 - found ===> evolution-1.2.0_4 depends on shared library: gconf-1.1 - found ===> evolution-1.2.0_4 depends on shared library: capplet.5 - found ===> evolution-1.2.0_4 depends o
Re: glibwww port - patch does not apply
Thanks for your help guys, I've got it working now. I just took my local MASTER SITE OVERRIDE (in make.conf) for my ports off my local (UK) server, and let it get it's files from wherever it wanted to. Well, it's 6am, and I'm off to bed. Thanks again, Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
wi0: wi_cmd: busy bit won't clear.
Hi, I have a Linksys WMP11 802.11b card running in hostap mode. Every now and then my wireless network dissappears. If I ssh into the box over a different interface everything looks OK. To get things going I run ifconfig wi0 down. The whole machines seems to lock up - it doesn't even respond to pings on other interfaces. If I wait long enough (30 secs approx) everything comes back. I find emitted from the kernel: wi0: wi_cmd: busy bit won't clear. multiple times. Anyone seen this? Any ideas? I'm running 4.7-STABLE as of a few days ago. Thanks, Andrew To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Ports: Darwin Streaming Server
Hi! I'm compiling the port of net/DarwinStreamingServer and ran into an error: [...] Installing source build of Darwin Streaming Server copying Install to FreeBSD copying DarwinStreamingServer to FreeBSD/DarwinStreamingServer cp: DarwinStreamingServer: No Such File or Directory *** Error code 1 I looked for this file in the original source tarball I and don't see it. I do see this file in the Linux tarball. Does this port require the Linux binary tarball instead of the Source download? Yet the makefile specifically stated using DarwinStreamingSrvr5.5.3-Source.tar. I had found a set of "FreeBSD binaries" (woefully out of date) that seemed to be compiled from the Linux download and running under Linux emulation. Is this the case for the FreeBSD port? I'm not subscribed to this list, so please Cc: me on any replies. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Ports: Darwin Streaming Server
Okay. I found the fix to my problem. For the archives, I found the answer on the Apple Streaming-Server-Users mailling list here: http://lists.apple.com/archives/streaming-server-users/2004/Apr/msg00214.html The Buildit script in the source/work directory (work/DarwinStreamingSrvr5.5.3-Source/) refers to the CCOMP environment variable, so rather than change the Buildit script I did the following: #setenv CCOMP g++ #make clean && make and it builds fine. --Original Message-- > Hi! > > I'm compiling the port of net/DarwinStreamingServer and ran into an error: > > [...] > Installing source build of Darwin Streaming Server > copying Install to FreeBSD > copying DarwinStreamingServer to FreeBSD/DarwinStreamingServer > cp: DarwinStreamingServer: No Such File or Directory > *** Error code 1 > > > I looked for this file in the original source tarball I and don't see it. > I do see this file in the Linux tarball. Does this port require the Linux > binary tarball instead of the Source download? Yet the makefile > specifically stated using DarwinStreamingSrvr5.5.3-Source.tar. > > I had found a set of "FreeBSD binaries" (woefully out of date) that seemed > to be compiled from the Linux download and running under Linux emulation. > Is this the case for the FreeBSD port? > > I'm not subscribed to this list, so please Cc: me on any replies. > > Thanks. > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Can't restart ssh after merging Usr/Grp files
I'm migrating one of my older servers currently running 4.7-prerelease to a new box running 4.8-RC. I backed up the master.password and group files. I copied the master.password file over as master.password.new and the group file over as group.new moved them both to /etc then: pwd_mkdb -p master.password.new rm group cp group.new group I checked all of the users and groups and they appear to match up correctly. su to other users works fine, but when I tried to open up another ssh connection to this remote server, I'm getting a Connection Closed. I tried to restart sshd, but I got Failed to start SSH server : Privilege separation user sshd does not exist I still have a ssh session running as root. Any help would be Much appreciated! ~Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Power Saving
Hi, I was wondering what the "correct" way was meant to be to implement "CPU throttling" under FreeBSD 5. At boot I get: acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0% Setting hw.acpi.cpu.performance_speed to 1 seems to slow the CPU down (the percentages shown by top all increase). I want the CPU to be automatically throttled when the system is idle. I could write a daemon to poll the CPU usage every now and then and set the sysctl as needed but I thought there may be another way - perhaps there are hooks in the scheduler/idle loop for this sort of thing? Also, how do I get the HD to slow down? I have an IBM deskstar that lcaims to support running at half speed and I'd like that to happen when the disk hasn't been accessed in a while... Thanks, Andrew ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "dd" question
On Wed, 2006-05-03 at 14:11 -0600, Chad Leigh -- Shire.Net LLC wrote: > I have a Windows machine that also has some linux partitions. lilo > is the main boot manager. Can I used dd from my freebsd box to > completely copy the whole disk, partition tables and all, to another > disk? The disk in the machine is starting to appear to be a little > flaky and I have another of the same mechanisms here and would like > to just basically clone the whole thing over. I seldom use the > machine but when I do need it I need it (tax time, an old website > that uses a specific windows tool for updating, etc) > > Thanks > Chad I've done this several times, and it works reasonably well. Someone recommended piping the output through netcat, which will work; however I have another suggestion. If you think the disk will be ok, use dd to "zero-out" the rest of the drive; i.e. dd if=/dev/zero of=zeros; rm zeros; dd if=/dev/ad0 of=- | gzip - - | nc $HOSTNAME $PORT; I've always used FTP instead of netcat, but you should be just fine. netcat may even be a bit faster, since you don't have the overhead of the FTP protocol. On the receiving end, just do the reverse: nc -l $PORT | gzip -d - - | dd if=- of=/dev/ad0; You can play around with blocksize too; sometimes it will speed up the process a little bit. One of these days, I am going to write a tool to do just this sort of thing, since it seems to be a fairly common practice. -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Semi-OT: responding to attempted breakins
On Wed, 2006-05-03 at 17:43 -0400, Robert Huff wrote: > As a result of installing new bits on my system, and paying > attention to old ones, I've noticed several attempted break-ins > which I currently believe have been unsucessful. > As I have the appropriate log files, I'd like to contact the > administrators and ISPs for the systems involved. Can someone > recommend a good response boilerplate - something that's concise, > informative, professional, friendly, and yet firm? > > > Robert Huff I'm sorry I can't. I did, however, want to interject my two cents here ;-). From a non-professional (i.e. student) viewpoint, it's been my experience that if I take the time to write a polite email, which includes relevant bits from my log files, to the admin for the IP in question asking them to look into it, they will usually take care of it. I suppose the appropriate response to this sort of situation depends on what your hosting. I run a web-server and SSH gateway for personal use, so although extremely annoying, it wouldn't be any big loss for me if it was cracked. I suppose you could always blacklist the domain in question, and see how long it takes for anyone to complain ;-).\ -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "dd" question
On Thu, 2006-05-04 at 10:15 -0400, Paul Chvostek wrote: > On Wed, May 03, 2006 at 05:36:46PM -0500, Andrew wrote: > > On Wed, 2006-05-03 at 14:11 -0600, Chad Leigh -- Shire.Net LLC wrote: > > > Can I used dd from my freebsd box to > > > completely copy the whole disk, partition tables and all, to another > > > disk? > ... > > have another suggestion. If you think the disk will be ok, use dd to > > "zero-out" the rest of the drive; i.e. > ... > > One of these days, I am going to write a tool to do just this sort of > > thing, since it seems to be a fairly common practice. > > I believe that tool would be g4u, http://www.feyrer.de/g4u/, along with > the FAQ at http://www.feyrer.de/g4u/#shrinkimg . You are correct; although g4u is a collection of shell scripts, not an executable. There is some debate about whether or not it needs to be anything more than a shell script, but I think it makes sense. Right now we are using a re-write of g4u with FreeSBIE to install images in a lab on campus. It sort of has a GUI; we're using 'cdialog' based menus. I would like to re-write it in C, and add most of the features listed at http://www.feyrer.de/g4u/#size. I know it would be quite difficult, but I would like to add filesystem support to this yet-to-be-written tool as well. And I think it should be multithreaded too. This list of features seems to make this more of a programming exercise than question of what's actually necessary to get the job done. Anyway... When I get around to it... -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: URLs nightmare...
On Sun, 2006-05-07 at 22:31 -0400, Vadim Vera wrote: > Hi list: > > I'm trying to install Gnome 2.14.1 on my FreeBSD desktop (specifically > gnome2-lite) via ports. I've browsed the NET and found all software sources > needed to install it: > > gnome2-lite-2.14.1 > The "meta-port" of the GNOME desktop slimmed down for FreeBSD releases > Long description : Sources : Changes : Download > Maintained by: mailto:[EMAIL PROTECTED]@FreeBSD.org&subject=FreeBSD Port: > gnome2-lite-2.14.1 > Also listed in: gnome > Requires: ORBit2-2.14.0, aspell-0.60.4_3, atk-1.11.4, avahi-0.6.9_5, > bitstream-vera-1.10_2, cairo-1.0.4, cdrtools-2.01_4, dbus-0.61_3, > desktop-file-utils-0.11, djbfft-0.76_2, docbook-sk-4.1.2_3, > docbook-xml-4.2_1, docbook-xsl-1.69.1_1, dvd+rw-tools-6.0_2, eel-2.14.1, > eog-2.14.1, epiphany-2.14.1, esound-0.2.36_1, evince-0.5.2_2, expat-2.0.0_1, > fileroller-2.14.2,1, firefox-1.5.0.3,1, fontconfig-2.3.2_4,1, > freetype2-2.1.10_3, gail-1.8.11, gamin-0.1.7_2, gcalctool-5.7.32,2 > > ...the list continues. > > So the problem is: > > I'm not connected all the time so I can't wait for the Makefile to fetch the > sources for me and opening link by link to see the sources will take me a > life. I'm wondering in which way I can know all the URLs of the sources to > download it with a download manager an port it manually later on the > installation progress. > > > Thanks in advance... > > Cheers / Me. Hello, Take a look at the 'ports' man page (man 7 ports). "make fetch-recursive" sounds like it should do the trick for you. -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: resetting clock after power outage
On Sun, 2006-05-07 at 21:10 -0700, jekillen wrote: > Hello; > I have a problem that I can't, so far find and answer to. > How do you reset the system clock after a power outage > has caused it to loose time? > I have a machine that went down a month or so ago and > since have noticed that the time stamp on such things > as mail to the root account, and log entries is way behind > what it should be. > The system is FreeBSD v6.0 and does not have Xwindows > installed on it. So I need to find out how to reset the clock > from the command line. I thought I could do it with sysinstall > but I don't see an option for actually setting the time, > only the time zone. > I presume that it is important, now, as I am running named > on it as a master server and I believe it is important that > it be in sync with the slave server running on another > machine that was off at the time of the outage. > I thought maybe the bios had something to do with it > but haven't seen a way to reset the time in the bios > either. > Thanks for assistance in advance; > JK Hello, See 'man ntpdate(8)'. Pretty sure that it's included with a basic installation; i.e. it's part of the system, not a port. -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
VM and jailed processes
Ok, I'm a bit fuzzy on some of the details, so take it easy. ;-) It's my understanding that if there is more than one instance of a specific application running, then portions of the code are shared in memory. I would assume that would apply to dynamically linked applications as well; i.e. if two different applications are linked against the same library, the given code exists in only one location in memory. Is this correct? The second portion of my question is, how does this apply to jailed processes? Looking through the architecture handbook, I did not see any references to VM, which leads me to believe that the standard rules apply to jails as well. So, for instance, if I was to provide a hosting service with numerous instances of Apache running in individual jails, could I assume that base memory usage (ie idle, not serving requests) would increase at a roughly linear rate? Lastly, if this is a question perhaps more appropriate for hackers@, please correct me. Thanks, -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: VM and jailed processes
On Sun, 2006-05-14 at 07:45 -0400, Chuck Swiger wrote: > Andrew wrote: > > It's my understanding that if there is more than one instance of a > > specific application running, then portions of the code are shared in > > memory. I would assume that would apply to dynamically linked > > applications as well; i.e. if two different applications are linked > > against the same library, the given code exists in only one location in > > memory. Is this correct? > > Yes. The details are more complicated, but the portion of an executable > which contains code and does not change can be shared between many > processes from only one copy in physical RAM, and likewise for shared > libraries loaded by dynamic or runtime linking. > > > The second portion of my question is, how does this apply to jailed > > processes? Looking through the architecture handbook, I did not see any > > references to VM, which leads me to believe that the standard rules > > apply to jails as well. So, for instance, if I was to provide a hosting > > service with numerous instances of Apache running in individual jails, > > could I assume that base memory usage (ie idle, not serving requests) > > would increase at a roughly linear rate. > > > > The same thing applies to jails, and the static portions of apache/httpd > will only appear once in RAM, however, you are going to see roughly > linear increase in memory usage depending on the number of children > running, because there's anywhere from 1MB to 25MB or so of dynamic > memory being used per httpd which is specific to that process, depending > on which modules you're using and whether you are loading perl or PHP > scripts > Hi Chuck, Thank you for the clarifications. It seems as though this will work quite well; the hosting setup, that is. I would have to assume that this has been done many times before, but it's always fun to have an idea pan out the way that you expected it to! -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: VM and jailed processes
On Sun, 2006-05-14 at 10:01 -0400, Bill Moran wrote: > Andrew <[EMAIL PROTECTED]> wrote: > > > Ok, I'm a bit fuzzy on some of the details, so take it easy. ;-) > > > > It's my understanding that if there is more than one instance of a > > specific application running, then portions of the code are shared in > > memory. I would assume that would apply to dynamically linked > > applications as well; i.e. if two different applications are linked > > against the same library, the given code exists in only one location in > > memory. Is this correct? > > > > The second portion of my question is, how does this apply to jailed > > processes? Looking through the architecture handbook, I did not see any > > references to VM, which leads me to believe that the standard rules > > apply to jails as well. So, for instance, if I was to provide a hosting > > service with numerous instances of Apache running in individual jails, > > could I assume that base memory usage (ie idle, not serving requests) > > would increase at a roughly linear rate? > > Keep in mind that if you set up jails the cononical way, each jail instance > will have it's own installation of Apache. Even if each of these > installations are _identical_, they're still seperate, and the kernel > has now way of knowing that /jail1/usr/bin/httpd and /jail2/usr/bin/httpd > are the same execution image (Unless you're doing symlinks or hardlinks). > > So getting that kind of memory sharing will require some extra work on > your part, above and beyond what is normally done for a jail. > Hi Bill, I'm thinking of using mount_nullfs(8) to provide read-only mounts for all the executables in each jail. I've been doing some reading, 'man rtld(1)', and it seems that the linker will take of sharing non-writable code between processes, even if the executables are loaded from different mount-points/file-systems. But thanks for the heads up... -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sshd delay
Hello, This is perhaps a long shot, but anyway... I assume the reason you tried turning off DNS look-ups is that remote host cannot resolve the local hostname, or it can, but takes a relatively long time to do so. You might check and see if syslog has DNS look-ups enabled. It's been a while, but I think we had a similar problem and don't ask me why, but turning off DNS look-ups for syslog solved the problem. I can't believe that sshd would block waiting for syslog, but I suppose it could be true... -Andrew On Sat, 2006-05-20 at 17:26 +0400, Andrew Pantyukhin wrote: > I have a problem. When I run sshd -ddd I get this: > (I get the same delay without -ddd, of course) > > <...> > debug3: mm_pty_allocate: waiting for MONITOR_ANS_PTY > debug3: mm_request_receive_expect entering: type 26 > debug3: mm_request_receive entering > ===> <60-90 seconds of delay> > debug3: mm_request_send entering: type 26 > <...> > > I started getting the delay a few days ago, on a number of > hosts running 6.0-RELEASE/i386. I tried setting UseDNS > off - to no effect. The sshd process is in state sbwait during > the delay. Any ideas? > ___ > 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]"
Makefile and '$(addprefix)'
Hello all, I'm trying to clean up the source tree for some software I'm writing. The program itself is relatively simple, but is very fragmented; i.e. it has a lot of source files. I'd like to write one top-level Makefile that is able to find all of my source files, build the object files, and put them into a separate directory. I'm thinking this can't be that difficult, but I haven't figured it out yet. I'm trying to use $(addprefix) build lists of source files and object files containing the relative paths for each. The problem is that $(addprefix) never seems to be evaluated. When I run 'make -p', $OBJECT_LIST looks exactly like in does in my Makefile, which is listed below. Fixes or pointers to a somewhat simple example greatly appreciated... Thanks, -Andrew Begin Makefile ## compiler settings CC = gcc OPTIONS = -Wall -g ## directory layout BASEDIR = ../alice SOURCEDIR = $(BASEDIR)/sources OBJECTDIR = $(BASEDIR)/objects DOCSDIR = $(BASEDIR)/documentation ## sources SOURCES = main.c help.c status.c buffer.c device.c error.c insane.c ## objects OBJECTS = main.o help.o status.o buffer.o device.o error.o insane.o ## lists containing paths SOURCES_LIST = $(addprefix, $(SOURCEDIR), $(SOURCE)) OBJECTS_LIST = $(addprefix, $(OBJECTDIR), $(OBJECTS)) ## targets alice: $(OBJECT_LIST) $(CC) $(OPTIONS) -o $@ $(OBJECT_LIST) $(OBJECTS_LIST): alice.h $(CC) $(OPTIONS) -c $(SOURCES_LIST) clean: rm -f $(OBJECTS_LIST) *.core alice; End Makefile ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Makefile and '$(addprefix)'
Hello, You are correct; I am using GNU make, err, rather, trying to, at least. Found a typo that fixed part of the problem: $(addprefix, PREFIX, ITEM) should be $(addprefix PREFIX, ITEM). Note that there is no comma after 'addprefix'. This particular Makefile seems to be horribly broken. So I think I might as well start over. Further reading shows that the 'vpath' directive should be used in this case, or '.PATH' for BSD make. Thanks for the suggestion at least... -Andrew On Mon, 2006-05-22 at 18:45 -0400, Parv wrote: > in message <[EMAIL PROTECTED]>, > wrote Andrew thusly... > > > > I'm trying to use $(addprefix) build lists of source files and > > object files containing the relative paths for each. The problem > > is that $(addprefix) never seems to be evaluated. When I run 'make > > -p', $OBJECT_LIST looks exactly like in does in my Makefile, which > > is listed below. > ... > > Begin Makefile > > > > ## compiler settings > > CC = gcc > > OPTIONS = -Wall -g > > > > ## directory layout > > BASEDIR = ../alice > > SOURCEDIR = $(BASEDIR)/sources > > OBJECTDIR = $(BASEDIR)/objects > > DOCSDIR = $(BASEDIR)/documentation > ... > > SOURCES_LIST = $(addprefix, $(SOURCEDIR), $(SOURCE)) > > OBJECTS_LIST = $(addprefix, $(OBJECTDIR), $(OBJECTS)) > > > > ## targets > > alice: $(OBJECT_LIST) > > $(CC) $(OPTIONS) -o $@ $(OBJECT_LIST) > ... > > Looks like you are using gnu make syntax. > > Read make(1) man page. Replace $(VAR) with ${VAR} & see what > happens (i am unsure as i am a light user of BSD make). > > > - Parv > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Makefile and '$(addprefix)' SOLVED
On Mon, 2006-05-22 at 18:45 -0400, Parv wrote: > in message <[EMAIL PROTECTED]>, > wrote Andrew thusly... > > > > I'm trying to use $(addprefix) build lists of source files and > > object files containing the relative paths for each. The problem > > is that $(addprefix) never seems to be evaluated. When I run 'make > > -p', $OBJECT_LIST looks exactly like in does in my Makefile, which > > is listed below. > ... > > Begin Makefile > > > > ## compiler settings > > CC = gcc > > OPTIONS = -Wall -g > > > > ## directory layout > > BASEDIR = ../alice > > SOURCEDIR = $(BASEDIR)/sources > > OBJECTDIR = $(BASEDIR)/objects > > DOCSDIR = $(BASEDIR)/documentation > ... > > SOURCES_LIST = $(addprefix, $(SOURCEDIR), $(SOURCE)) > > OBJECTS_LIST = $(addprefix, $(OBJECTDIR), $(OBJECTS)) > > > > ## targets > > alice: $(OBJECT_LIST) > > $(CC) $(OPTIONS) -o $@ $(OBJECT_LIST) > ... > > Looks like you are using gnu make syntax. > > Read make(1) man page. Replace $(VAR) with ${VAR} & see what > happens (i am unsure as i am a light user of BSD make). > > > - Parv > Hello all, I've fixed my Makefile. Here's a working version, in case it will be of help to someone else. Oh, by-the-way, this is for GNU make, not BSD make. -Andrew Begin Makefile ## Makefile for GNU make ## compiler settings CC = gcc CFLAGS = -Wall -g ## directory layout BASEDIR = ../alice SRCDIR = $(BASEDIR)/sources/ OBJDIR = $(BASEDIR)/objects/ DOCDIR = $(BASEDIR)/documentation ## sources SRC = main.c help.c status.c buffer.c device.c error.c insane.c ## objects OBJ = main.o help.o status.o buffer.o device.o error.o insane.o ## list of objects containing relative path for each OBJLIST = $(addprefix $(OBJDIR), $(OBJ)) ## pathes for make to search VPATH = $(SRCDIR) $(OBJDIR) alice: $(OBJ) $(CC) $(CFLAGS) -o $@ $(OBJLIST) %.o: %.c alice.h $(CC) $(CFLAGS) -c $< -o $(OBJDIR)$@ clean: rm $(OBJLIST) *.core distclean: clean rm -r *~ End Makefile ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
standalone libraries for SFTP and SMB
Hello, I'm writing a small application that saves files over a network. I'd like to add support for SFTP and SMB. Does anyone know of an independent library for each? I'd like to use libsmbclient from the Samba project, but I haven't found a simple way to build the library without installing all of Samba. OpenSSH includes an SFTP binary, of course, but I'd have to rewrite several complex makefiles to generate it without installing all of OpenSSH. Thought about using the libraries from Gnome-VFS, but they have quite a few dependencies, and are sort of overkill for this project. So yes, I have a couple of options, and yes I'm a little bit lazy. Why reinvent the wheel? ;-) Thanks, -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: standalone libraries for SFTP and SMB
On Tue, 2006-05-23 at 18:20 -0400, Anish Mistry wrote: > On Tuesday 23 May 2006 17:59, Andrew wrote: > > Hello, > > > > I'm writing a small application that saves files over a network. > > I'd like to add support for SFTP and SMB. Does anyone know of an > > independent library for each? > > > > I'd like to use libsmbclient from the Samba project, but I haven't > > found a simple way to build the library without installing all of > > Samba. > > > > OpenSSH includes an SFTP binary, of course, but I'd have to rewrite > > several complex makefiles to generate it without installing all of > > OpenSSH. > > > > Thought about using the libraries from Gnome-VFS, but they have > > quite a few dependencies, and are sort of overkill for this > > project. > > > > So yes, I have a couple of options, and yes I'm a little bit lazy. > > Why reinvent the wheel? ;-) > /usr/ports/security/libssh2 > thanks. I'll check it out... -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Apache 1.3.41
Hi all, Ian Smith wrote: On Fri, 06 Mar 2009 20:01:09 +0100 Jos Chrispijn wrote: > For some reason, Apache isn't starting anymore after having my ports > upgraded today. That was a major php5 upgrade and I think it might have > to do something with it. Could well be. Others offered good suggestions re rebuilding and order in extensions.ini, but I did spot a couple of things in your config: I don't believe the config for apache has anything to do with it. I believe it is the order of the modules in the extensions.ini, which has been plaguing bsd for a while now. There is a nice little script that reorders the config for you. http://www.pingle.org/files/fixphpextorder.sh see http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround However just running it doesn't appear to work (well not in my case) I had to portupgrade -A /pathtoscript/fixphpextorder.sh php5-\* I haven't had problem since, on 18 different webservers. HTH Cheers cya Andrew > httpd-error.log is empty on this Nothing in /var/log/messages either? > my httpd.conf: [..] > LoadModule php5_modulelibexec/apache/libphp5.so [..] > AddModule mod_php5.c [..] > DocumentRoot "/usr/local/www" [..] > > Options Indexes FollowSymLinks MultiViews ExecCGI Includes > AllowOverride AuthConfig Limit Indexes Options FileInfo > Order allow,deny > Allow from all > Shouldn't that be ie DocumentRoot? > > UserDir public_html > As advised by Apache docs re security, it's worth adding here: UserDir disabled root Ok, annotating this section: > TRUE >FALSE > > DirectoryIndex index.php index.php3 index.html > > > DirectoryIndex index.php3 index.html > > > TRUE >FALSE > DirectoryIndex index.php index.html index.htm > >TRUE > DirectoryIndex index.php index.html index.htm > > TRUE !!! so overriding previous > DirectoryIndex index.html > > > The section should come last, after !mod_php4.c, or index.php isn't treated as a DirectoryIndex. I don't know if php5 install sticks it in there or what, but I've had to fix it here before. [..] > [..] > > AddType application/x-httpd-php3 .php3 > AddType application/x-httpd-php3-source .php3s > > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > Looks right here. > NameVirtualHost * > > include /usr/local/etc/apache/httpd.sites Presumably unchanged/ok? cheers, Ian ___ 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" ___ 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: Bios chip update suggestions
G'Day, Fbsd1 wrote: Chris Whitehouse wrote: Fbsd1 wrote: I have an desktop manufactured in 2002 by a South Korean company Hyunju. The company is now out of business. It's bio's do not allow booting from a usb memory stick. I want to find an bio's update that adds booting from usb memory stick. I know the desktop uses AWARD bio's chip and the bio's id string is 01/08/2002-694T-686-P6VXM2TC-00 All the internet bio's chip update url's found by Google search are customized for MS windows. Suggestions on how or where to purchase the correct bio's chip update? --snip-- What i mean is all the bio update sites have a utility that runs from the website to fetch your bio id string info. This utility will not work on a non-windows operating system. If you have access to windows, you could create a bart-pe cd which is a portable windows booting system. http://nu2.nu/pebuilder/ Take heed of the legal notices :) HTH cya Andrew ___ 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" ___ 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: Inetd and multiple IP addresses
Tim Judd wrote: On Fri, 2009-03-13 at 03:38 +0100, skx wrote: I have inetd configured to open a listening port for leafnode nntp stream tcp nowait news /usr/libexec/tcpd /usr/local/sbin/leafnode but this opens the port on all IP addresses associated with this machine. I would like to choose only one. I tried 192.168.13.2:nntp stream tcp nowait news /usr/libexec/tcpd /usr/local/sbin/leafnode but it doesn't work Mar 11 02:59:21 rewers inetd[89528]: 192.168.13.2:nntp/tcp: unknown service What am I doing wrong? Isn't ip:service_name a correct entry? FreeBSD 7.1-RELEASE-p1 with custom kernel if that matters. inetd.conf(5) see option -a put it in your rc.conf, as inetd_flags I do this for all my hosts so I have a tighter reign on the problem True, but it limits inetd to that IP for all services. There is also have xinetd which allows control per service. /usr/ports/security/xinetd Info: Replacement for inetd with better control and logging ___ 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" ___ 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: ipfw, pf and ALTQ on outbound traffic? (or: "The net is slow when I upload!")
Hi Jubal, Jubal Kessler wrote: Greetings, Is there a general how-to, or a set of coherent instructions, for shaping outbound traffic such that when I upload something over my asymmetric cable-modem pipe, doing so doesn't completely kill my Web browsing or any other attempts to use my Internet connection? (To put it another way: When I max out my upstream, and my upstream is capped lower than my downstream, my downstream becomes useless and I am forced to wait until the upload finishes before I can resume using the downstream. This is a problem, and I'd like to solve it.) I have looked at various ALTQ + pf setups on the Web, but I have one caveat. I use FreeBSD 6.4 on my home gateway, and it is also using the default natd server, which relies on an ipfw divert rule. I don't know if this matters, or if I need to switch from natd to a pf-based NAT setup. Technically you could run both, for a while years back I was using pppd's nat, ipfw for the firewall and dummynet (for kids downloads and stuff or when they reached their monthly quota), and pf for altq on outbound. All working perfectly. Should I use *just* ipfw, or should I switch everything to pf (including NAT services) and go from there? Thanks much, Jubal ___ 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" -- Awdcomp computing services. Mobile: 0433 263 470 Web:www.awdcomp.net Email: a...@awdcomp.net ___ 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: SATA controller not recognized in FBSD 7.1
Hi Eliiot, Elliot Finley wrote: I've got two of these: SUPERMICRO AOC-SAT2-MV8 64-bit PCI-X133MHz SATA Controller Card http://www.newegg.com/Product/Product.aspx?Item=N82E16815121009 each with 8 1T Hitachi drives hanging off them. When booting, I see all the drives scanned and recognized by the controller, but I don't see them in dmesg or /dev. I'm using FreeBSD 7.1-R amd64. Is there a special driver I need to load to get FreeBSD to recognize these? nope, though according to http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/120842 you need to disable the hptrr driver in the GENERIC kernel. HTH cya Andrew TIA Elliot P.S. I bought these thinking they would work because of this http://www.nabble.com/ZFS-Advice-td18842170.html thread and others that seemed to indicate people were using these with FreeBSD. ___ 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" ___ 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: keep ssh session alive
Tsu-Fan Cheng wrote: Hi, I use putty to connect to my home computer through ssh. i want putty session to stay alive much longer than it does now, how should I do it? I have added "KeepAlive yes" to my sshd config and rerun it, but it didn't work. thanks!! Its within the 'connection' area of the settings. TFC ___ 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" ___ 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: keep ssh session alive
Andrew wrote: Tsu-Fan Cheng wrote: Hi, I use putty to connect to my home computer through ssh. i want putty session to stay alive much longer than it does now, how should I do it? I have added "KeepAlive yes" to my sshd config and rerun it, but it didn't work. thanks!! Its within the 'connection' area of the settings. within putty I should add. TFC ___ 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" ___ 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: SATA controller not recognized in FBSD 7.1
Elliot Finley wrote: Andrew wrote: Hi Eliiot, Elliot Finley wrote: I've got two of these: SUPERMICRO AOC-SAT2-MV8 64-bit PCI-X133MHz SATA Controller Card http://www.newegg.com/Product/Product.aspx?Item=N82E16815121009 each with 8 1T Hitachi drives hanging off them. When booting, I see all the drives scanned and recognized by the controller, but I don't see them in dmesg or /dev. I'm using FreeBSD 7.1-R amd64. Is there a special driver I need to load to get FreeBSD to recognize these? nope, though according to http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/120842 you need to disable the hptrr driver in the GENERIC kernel. That worked, thank you. :) No worries, I had to do same with my VIA 6421 pci SATA controller. Elliot ___ 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"
lightweight webserver that can run php
Hi All, Does anyone have any suggestions for a lightweight webserver that will run php? Apache is too bulky for what I need and thttpd won't allow me to run php. TIA Andrew ___ 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"
Honey pot email address
Hi All, I've created a honey pot email address for SPAM. Does anyone have any ideas on how to get on as many spammers mailing lists as possible? TIA cya Andrew ___ 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"
SSHD errors: will not forward X11 connections
Hello, I have a FreeBSD 6.1 machine at home that I use for remote backups, and sort of an application server for my home network. I occasionally run program with the X display forwarded to my laptop. Simple setup, has always worked great, etc, etc. Just last week, I went to login and run a program and I received the following error (in /var/log/messages): sshd[25306]: error: Failed to allocate internet-domain X11 display socket. Now, not to (intentionally) irritate anyone, but I haven't made any changes in regards to the setup on either end of the connection that I'm aware of. The only change at all that I've recently made, is that I switch shells on the remote box (to zsh). I tried changing back to bash, (my original setup), and the problem persists. The permissions for sshd are: -r-xr-xr-x 1 root wheel 168488 May 6 22:58 /usr/sbin/sshd which looks correct to me. I really haven't a clue where to begin with this one, besides a backup and re-install, which is an option, but is also a rather large pain. Suggestions? -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: SSHD errors: will not forward X11 connections
On Mon, 2006-06-26 at 07:44 +0200, [EMAIL PROTECTED] wrote: > El día Sunday, June 25, 2006 a las 10:05:03PM -0500, Andrew escribió: > > > Hello, > > > > I have a FreeBSD 6.1 machine at home that I use for remote backups, and > > sort of an application server for my home network. I occasionally run > > program with the X display forwarded to my laptop. Simple setup, has > > always worked great, etc, etc. > > > > Just last week, I went to login and run a program and I received the > > following error (in /var/log/messages): > > > > sshd[25306]: error: Failed to allocate internet-domain X11 display > > socket. > > > > Now, not to (intentionally) irritate anyone, but I haven't made any > > changes in regards to the setup on either end of the connection that I'm > > aware of. The only change at all that I've recently made, is that I > > switch shells on the remote box (to zsh). I tried changing back to bash, > > (my original setup), and the problem persists. > > > > The permissions for sshd are: > > > > -r-xr-xr-x 1 root wheel 168488 May 6 22:58 /usr/sbin/sshd > > > > which looks correct to me. I really haven't a clue where to begin with > > this one, besides a backup and re-install, which is an option, but is > > also a rather large pain. > > > > Suggestions? > > Truss o strace down the SSH daemon to see what the underlying problem > for "error: Failed to allocate..." really is. > > matthias Hello, I've restarted SSHD with "LogLevel DEBUG", which did not produce any new information; just gives the same error message (in /var/log/messages) as before. I'm not sure how interested you are in this particular problem, but I've attached the output from truss. The complete session that I recorded using truss is as follows: 1. start truss on SSH server "truss -f -p $PID - sshd-log.txt" 2. login via SSH "ssh -X $hostname" 3. attempt to start an X application "rhythmbox &" 4. logout If you need any more info, or have other suggestions, please let me know. Thanks for your help! -Andrew 3: (null)() = 1 (0x1) 3: accept(0x4,{ AF_INET 192.168.0.6:51251 },0xbfbfdda8) = 5 (0x5) 3: fcntl(5,F_GETFL,0x0) = 6 (0x6) 3: gettimeofday({1151375994 309421},0x0) = 0 (0x0) 3: getpid() = 3 (0x7530) 3: socket(0x1,0x2,0x0) = 6 (0x6) 3: fcntl(6,F_SETFD,0x1) = 0 (0x0) 3: connect(0x6,{ AF_UNIX "/var/run/logpriv" },106) = 0 (0x0) 3: sendto(0x6,0xbfbfcc60,0,0x0,NULL,0x0) = 65 (0x41) 3: close(6) = 0 (0x0) 3: fcntl(5,F_SETFL,0x2) = 0 (0x0) 3: pipe()= 6 (0x6) 3: socketpair(0x1,0x1,0x0,0xbfbfddb0)= 0 (0x0) 3: fork()= 30098 (0x7592) 30098: close(6) = 0 (0x0) 30098: close(3) = 0 (0x0) 30098: close(4) = 0 (0x0) 30098: close(-1) ERR#9 'Bad file descriptor' 30098: close(8) = 0 (0x0) 30098: getpid() = 30098 (0x7592) 30098: __sysctl(0xbfbfdd00,0x4,0x0,0x0,0x807c800,0x11) = 0 (0x0) 30098: __sysctl(0xbfbfdc28,0x2,0xbfbfdc30,0xbfbfdc24,0x28328509,0xf) = 0 (0x0) 30098: __sysctl(0xbfbfdc30,0x2,0xbfbfdcf8,0xbfbfdcfc,0x0,0x0) = 0 (0x0) 30098: setsid() = 30098 (0x7592) 30098: gettimeofday({1151375994 356856},0x0) = 0 (0x0) 30098: getpid() = 30098 (0x7592) 30098: socket(0x1,0x2,0x0) = 3 (0x3) 30098: fcntl(3,F_SETFD,0x1) = 0 (0x0) 30098: connect(0x3,{ AF_UNIX "/var/run/logpriv" },106) = 0 (0x0) 30098: sendto(0x3,0xbfbfcc80,0,0x0,NULL,0x0) = 87 (0x57) 30098: close(3) = 0 (0x0) 30098: dup2(0x5,0x0) = 0 (0x0) 30098: dup2(0x0,0x1) = 1 (0x1) 30098: dup2(0x7,0x4) = 4 (0x4) 30098: dup2(0x9,0x5) = 5 (0x5) 30098: close(9) = 0 (0x0) 30098: close(7) = 0 (0x0) 30098: execve("/usr/sbin/sshd",,) 30098: mmap(0x0,3608,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 671686656 (0x28092000) 30098: munmap(0x28092000,0xe18) = 0 (0x0) 30098: __sysctl(0xbfbfeaa8,0x2,0x2808e998,0xbfbfeaa4,0x0,0x0) = 0 (0x0) 30098: mmap(0x0,32768,(0x3)PROT_READ|PROT_WRITE,(
Re: SSHD errors: will not forward X11 connections
On Tue, 2006-06-27 at 09:32 +0200, [EMAIL PROTECTED] wrote: > El día Monday, June 26, 2006 a las 09:47:45PM -0500, Andrew escribió: > > ... > > 30098: mprotect(0x28271000,786432,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) > > 30098: mmap(0x0,808,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = > > 674590720 (0x28357000) > > 30098: munmap(0x28357000,0x328) = 0 (0x0) > > 30098: sigprocmask(0x1,0x2808d820,0xbfbfeaf0)= 0 (0x0) > > 30098: sigprocmask(0x3,0x2808d830,0x0) = 0 (0x0) > > 30098: readlink("/etc/malloc.conf",0xbfbfdc60,63) ERR#2 'No such file or > > directory' > > 30098: issetugid() = 0 (0x0) > > 30098: > > mmap(0x0,4096,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) > > = 674590720 (0x28357000) > > 30098: break(0x8075000) = 0 (0x0) > > 30098: break(0x8076000) = 0 (0x0) > > 30098: geteuid() = 0 (0x0) > > the truss output looks somewhat not complete; there is nothing > to be seen about entering a user shell... > > matthias > Yes, I see that. But it is "complete"; I passed the '-o' flag to truss to write _all_ output to a file. Just to be sure, I ran it again, and diff'ed the output files; they are the same. To be clear, I do get a shell prompt when I login via SSH. I'm thinking that trying to this out is going to turn into a large waste of time... -Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: anyone have a favorite laptop?
On Wed, Sep 26, 2007 at 11:12:44AM -0400, Jerry McAllister wrote: > On Tue, Sep 25, 2007 at 09:24:55PM -0400, Bob Johnson wrote: > > I have installed FreeBSd on IBM/Lenova and Dell with little problem. > > But, I wonder if anyone here has had any dealings with a nice little > notebook from a Japanese company called 'Kojinsha'. I saw them the > last time I was in Japan, of course, running MS-something. They > are very compact, but still with a typable keyboard unlike some other > compact notebooks and a very sharp looking display. I am hoping I > can find them sold with an English Language setup in the USA. (I > have seen an European (British?) English Language version. > > So, has anyone seen these or better yet, tried one? I was quite tempted to order one of those from conics.net a while ago, but getting it across the border into Russia is a real PITA. When I googled to check for possible compatibility issues I saw people running Linux on it, there's a working Xorg driver, too. Most likely FreeBSD will run fine on it as well. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Stress testing/burning in HDD's
On Wed, Sep 26, 2007 at 01:59:25PM -0700, Don O'Neil wrote: > I have an array that has a drive that keeps timing out/failing... So I need > to replace it. However, I want to stress test/burn in a replacement disk > first. > > What is the best way to do this? Use smartmontools to run long self-tests. You can also try tools like mhdd (free) and spinrite (commercial) for in-depth analysis of a hard drive. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mutt Help
On Sun, Sep 30, 2007 at 05:54:37PM -0700, Rem P Roberti wrote: > Hi All...I am a newbie using Mutt, and I have Fetchmail running as > daemon. Fetchmail is doing its job, periodically retreiving my pop3 > mail, but I am so far unable to find the correct entry for the > .muttrc file which will result in Mutt automatically retrieving mail > from fetchmail. Any help would be appreciated. By default, Fetchmail will put your mail wherever $MAIL points to. Usually this is in a file named /var/mail/username, where username is your login name. $ echo $LOGNAME ozzmosis $ echo $MAIL /var/mail/ozzmosis And by default, Mutt will look in the same place, as per muttrc(5): spoolfile Type: path Default: "" If your spool mailbox is in a non-default place where Mutt can- not find it, you can specify its location with this variable. Mutt will automatically set this variable to the value of the environment variable $MAIL if it is not set. I use Fetchmail, Procmail, SpamAssassin, Mutt and Postfix quite successfully here. :-) Regards Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Where do I find the PERL compatible functions for php
Hi, Installed PHP 5 using the ports collection in preparation for installing phpWebSite (a CMS system). When trying to run the setup program (an index.php) file on the server I get, "*Fatal error*: Call to undefined function preg_match() in * /usr/local/www/apache22/data/phpwebsite_1_3_1/setup/index.php* on line *136" *. I've found from the php.net web site that this is the PERL compatible regular expression stuff. Since it's not there, how would I get it? Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How do I catch timezone update and perform needed actions?
OK, so daylight savings just rolled over again. Applications which are already running apparently do not pick up the time zone change. In my installation apache is not regularly restarted, so it's 4 days later and I just noticed that apache has been putting the wrong time stamps on everything, and a script that regularly processes the last 10 minutes of log data based on time stamps on log lines has been coming up empty for days as a result. What I need is a way to stop this happening again in years to come. I thought about submitting a pr asking for some system change such that a user configurable script gets run whenever the time zone changes. Perhaps such a mechanism exists already though? Any pointers? Should this be submitted as a pr? Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where do I find the PERL compatible functions for php
On 10/2/07, Kevin Kinsey <[EMAIL PROTECTED]> wrote: > > > Actually, it's been "split out" for some time now; you can get > PCRE support for your pre-existing PHP installation by installing > ports/devel/php5-pcre. But, since most users want PHP to support > many technologies/modules, the general thing to do is to install > ports/lang/php5-extensions and, in this case, be sure that "pcre" > is checked during the configure stage (which, I believe, it is > by default); after that, devel/php5-pcre and several other php5-foo > ports will be added to your system, and PHP will suddenly grok > things like XML, SQL, and Perl-compatible regular expressions > (or at least whatever you enabled). > > One of the irritating things, but also very practical, about Google mail is that messages I send to this list do not show up in my inbox until someone responds. I was actually able to figure this out last night by going to php.net and searching under the extension categories and found PCRE. I then went to freshports.org and found php5-pcre in /usr/ports/devel/php5-pcre. Once I knew where to find it in the ports, I was able to fix the problem. This also helped me fix the lack of php5-xml and php5-sessions. One question I have for the maintainers of these ports and the ports infrastructure, why are these all listed in different places? /usr/ports/devel/php5-pcre/ /usr/ports/textproc/php5-xml/ /usr/ports/www/php5-session/ Not that these categories are wrong, or don't make sense, but why wouldn't they all be lumped under /usr/ports/lang, or /usr/ports/devel or something like that? Oh, lastly, once a port has been built, how can one redo the build of that port with different options selected? Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: D-Link G122 C1 (USB WiFi)
On Fri, Sep 28, 2007 at 03:06:03PM +0200, Dominique Goncalves wrote: > Hi, > > On 9/28/07, James Jeffery <[EMAIL PROTECTED]> wrote: > > Ive tryed for ages to get this USB Wifi card to work with FreeBSD6.2. > > > > Many forums are saying its impossible, ive tryed ndis, project evil ect. > > > > Has anyone had any success with it? > > There is rum(4) in 7.0-CURRENT according to the manpage it seems to be > supported. I have DWL-G122 C1 FW 3.00 working happily on recent current. Sometimes it hangs due to some USB stack problems, but not often enough for me to look deeper. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linux-flashplugin9 (usable?)
On Wed, Oct 03, 2007 at 11:46:24PM +0200, Mel wrote: [..] > Cool, didn't know MPlayer could play .flv. In that case, videodownloader > firefox extension is even more useful: > https://addons.mozilla.org/en-US/firefox/addon/2390 /usr/ports/www/xpi-videodownloader :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Mutt Help
On Tue, Oct 02, 2007 at 01:37:11PM -0700, Bill Campbell wrote: > >> Hi All...I am a newbie using Mutt, and I have Fetchmail running as > >> daemon. Fetchmail is doing its job, periodically retreiving my pop3 > >> mail, but I am so far unable to find the correct entry for the > >> .muttrc file which will result in Mutt automatically retrieving mail > >> from fetchmail. Any help would be appreciated. > > >By default, Fetchmail will put your mail wherever $MAIL points to. > >Usually this is in a file named /var/mail/username, where username is > >your login name. > > I thought that the default for fetchmail was to pass the messages > to the system's MTA (postfix, sendmail, etc.), not to attempt > delivery itself. Yes, but how mail gets from fetchmail to the main spool was not critical. I did not want to complicate the process in my reply. Incidentally the OP's e-mail address is/was failing: <[EMAIL PROTECTED]>: Connected to 68.178.232.99 but connection died. (#4.4.2) Regards Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ffmpeg not installing
On Thu, Oct 04, 2007 at 01:51:03PM -0600, James wrote: > > > /usr/local/include/log.h:112: error: syntax error before "A_" > > > > I'm curious which port installed log.h. I don't have it on my system and it > > wouldn't surprise me if a local log.h conflicts with this log.h. > > > > Could you show output of: > > grep '^include/log.h' /var/db/pkg/*/+CONTENTS > > > > [EMAIL PROTECTED] ~]$ su > Password: > secretariat# grep '^include/log.h' /var/db/pkg/*/+CONTENTS > secretariat# I don't have a log.h: $ uname -a FreeBSD blizzard.dancer 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Sep 19 21:56:10 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DELLGX150 i386 $ cat /usr/local/include/log.h cat: /usr/local/include/log.h: No such file or directory I would do: mv /usr/local/include/log.h /usr/local/include/log.h.backup And try rebuilding ffmpeg again. While it rebuilds, try to find out where log.h came from. :) Regards Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Equations (WAS: good replacement for open office)
On 10/5/07, Frank Jahnke <[EMAIL PROTECTED]> wrote: > > > Since you seem to use the equation feature quite intensively, maybe > > you have any clue on making the equation editor perform better. > > Sorry I can't really be of much help with OO.o equations. > > What I do personally is a kludge, but it works well enough. For > documents that I create for read-only use, I use groff and friends. For > those that require collaboration, I use Wordperfect to create the > equations (it has an equation mode like troff's eqn), export them into > Word format, and then read them into Word. The equation mode in Word is > crippled, and you need to purchase MathType (I think that is the name) > to make it usable. > > The same goes for references, BTW: you really need to purchase an add-on > to make Word usable. In troff I just use refer together with Refbase. > > I've just not had much luck with OO.o's equation mode. If often crashes > Word, and since all the people I collaborate with use Word, well, I use > Word rather than try to teach them troff (or TeX). While they are all > top-flight scientists and engineers at major US research Universities, > their computer literacy is surprisingly low. > > I've given up on trying to find a BSD or Linux program that is good > enough for this purpose -- none really are. So I just use Word in a VM > and am done with it. Have you tried LyX? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Equations (WAS: good replacement for open office)
On 10/4/07, Chad Perrin <[EMAIL PROTECTED]> wrote: > > On Fri, Oct 05, 2007 at 12:34:00PM -0500, Andrew Gould wrote: > > On 10/5/07, Frank Jahnke <[EMAIL PROTECTED]> wrote: > > > > > > I've given up on trying to find a BSD or Linux program that is good > > > enough for this purpose -- none really are. So I just use Word in a > VM > > > and am done with it. > > > > Have you tried LyX? > > I think "this purpose", in this case, means "collaborating with people > using MS Word". That being the case, LyX is sort of the opposite of what > he needs, even if it handles equation work excellently for print -- > because, of course, it *doesn't* handle MS Word DOC format at all. > > At least, it didn't the last time I checked. I imagine the LyX > maintainers haven't suddenly jumped on the "interoperate with MS Office" > bandwagon lately. > > -- > CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] > Brian K. Reid: "In computer science, we stand on each other's feet." > You are so right about that. I saw "equations" in the subject line and jumped a little to quickly. ;-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"