Re: Make Depend -- Oops!
On Sat, 27 Nov 2004, John Mills wrote: > Freebies - > > On Sat, 27 Nov 2004, Conrad J. Sabatier wrote: > > > On Sat, 27 Nov 2004 09:43:17 +0100, Gert Cuykens > > <[EMAIL PROTECTED]> wrote: > > > > > "A Makefile rule that typically scans all C/C++ source files in a > > > directory, and generates rules that indicate that an object file > > > depends on certain header files, and must be recompiled if they are > > > recompiled." > > > > > > i dont understand this. how can a object depend on something that is > > > not compiled yet? Would the freebsd world not be a happier place if > > > make did the dependancy thingies what ever they are automatically ? > ... > > Re: dependencies, it should be simple to understand if you give it a > > moment's thought. Let's say you have a file "main.c" that calls > > functions in "foo.c". In order for main.c to compile and link properly > > to create a complete, executable program, it's absolutely essential that > > foo.c be compiled and linked in as well. > > > What Makefile dependencies are about is ensuring that, if a change is > > made to foo.c, it will be recompiled and relinked with main.c to > > guarantee that the final executable is up to date in all respects. > > Certainly a sensible point, but not the way I understood 'makedepend' to > work. > > As Conrad said, 'make' can be directed to compare the currency of the > files upon which a particular product file (compiled object, library, > executable, or other type) depends, so that all product files for which > the components have changed _are_ rebuilt, but a maximum number of product Sorry - I meant "minimum" --^^^ > files (i.e., unchanged objects being linked into a library) are > unnecessarily rebuilt. Many of these rules I put in manually. > > 'make' only knows some 'generic' rules (what is done to change a *.c into > a *.o, for example), plus the explicit dependencies I have written into my > Makefile. 'makedepend' is a way to automatically generate the > file-specific rules that can be deduced from a [source] file's own > contents: usually those secondary files that are brought into it by > '#include' pragmas. These auxiliary rules are written onto the Makefile > and become part of it. These files are not necessarily separately > compiled; I find your definition a bit misleading on this. > > 'makedepend' is given a list of files to scan, and places to look for > included files. My 'depend' rule looks like this: > > +++ > depend: > makedepend -- $(CFLAGS) -- $(SRCS) -- $(INCLUDES) > > # DO NOT DELETE THIS LINE -- make depend depends on it. > > +++ > > That funky last line really tells 'makedepend' where it should write the > new rules onto my Makefile. Before using a Makefile on a group of sources, > or when source files are added to the build, I remove all the generate > rules which have been added below the '# DO NOT DELETE ...' line and > rebuild the 'depend' target - which is the Makefile itself: > > $ make depend > > Typical rules automagically added by 'makedepend' are: > > +++ > ... > BufRing.o: ../Llcommon/SEBase.h StdAfx.h BufRing.h > Camera.o: ../Llcommon/SEBase.h StdAfx.h ../Llcommon/commonStruct.h > Camera.o: ../Llcommon/secureeye.h ../Llcommon/memCtrl.h > Camera.o: ../Llcommon/retCodes.h ../Llcommon/LiveShare.h Camera.h > Camera.o: ../Llcommon/Common.h Pump.h BufRing.h CamData.h Snap.h INet.h > Camera.o: Player.h > INet.o: ../Llcommon/SEBase.h StdAfx.h /usr/include/stdlib.h > ... > +++ > > The effect of these added rules is that if I change [say] 'BufRing.h' then > do 'make all', 'BufRing.c' and 'Camera.c' would be recompiled, but not > necessarily 'INet.c' > > 'make' isn't very bright, but (like 'cpp') it can be _very_ handy. > > - John Mills >[EMAIL PROTECTED] > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > -- - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Make Depend
Freebies - On Sat, 27 Nov 2004, Conrad J. Sabatier wrote: > On Sat, 27 Nov 2004 09:43:17 +0100, Gert Cuykens > <[EMAIL PROTECTED]> wrote: > > > "A Makefile rule that typically scans all C/C++ source files in a > > directory, and generates rules that indicate that an object file > > depends on certain header files, and must be recompiled if they are > > recompiled." > > > > i dont understand this. how can a object depend on something that is > > not compiled yet? Would the freebsd world not be a happier place if > > make did the dependancy thingies what ever they are automatically ? ... > Re: dependencies, it should be simple to understand if you give it a > moment's thought. Let's say you have a file "main.c" that calls > functions in "foo.c". In order for main.c to compile and link properly > to create a complete, executable program, it's absolutely essential that > foo.c be compiled and linked in as well. > What Makefile dependencies are about is ensuring that, if a change is > made to foo.c, it will be recompiled and relinked with main.c to > guarantee that the final executable is up to date in all respects. Certainly a sensible point, but not the way I understood 'makedepend' to work. As Conrad said, 'make' can be directed to compare the currency of the files upon which a particular product file (compiled object, library, executable, or other type) depends, so that all product files for which the components have changed _are_ rebuilt, but a maximum number of product files (i.e., unchanged objects being linked into a library) are unnecessarily rebuilt. Many of these rules I put in manually. 'make' only knows some 'generic' rules (what is done to change a *.c into a *.o, for example), plus the explicit dependencies I have written into my Makefile. 'makedepend' is a way to automatically generate the file-specific rules that can be deduced from a [source] file's own contents: usually those secondary files that are brought into it by '#include' pragmas. These auxiliary rules are written onto the Makefile and become part of it. These files are not necessarily separately compiled; I find your definition a bit misleading on this. 'makedepend' is given a list of files to scan, and places to look for included files. My 'depend' rule looks like this: +++ depend: makedepend -- $(CFLAGS) -- $(SRCS) -- $(INCLUDES) # DO NOT DELETE THIS LINE -- make depend depends on it. +++ That funky last line really tells 'makedepend' where it should write the new rules onto my Makefile. Before using a Makefile on a group of sources, or when source files are added to the build, I remove all the generate rules which have been added below the '# DO NOT DELETE ...' line and rebuild the 'depend' target - which is the Makefile itself: $ make depend Typical rules automagically added by 'makedepend' are: +++ ... BufRing.o: ../Llcommon/SEBase.h StdAfx.h BufRing.h Camera.o: ../Llcommon/SEBase.h StdAfx.h ../Llcommon/commonStruct.h Camera.o: ../Llcommon/secureeye.h ../Llcommon/memCtrl.h Camera.o: ../Llcommon/retCodes.h ../Llcommon/LiveShare.h Camera.h Camera.o: ../Llcommon/Common.h Pump.h BufRing.h CamData.h Snap.h INet.h Camera.o: Player.h INet.o: ../Llcommon/SEBase.h StdAfx.h /usr/include/stdlib.h ... +++ The effect of these added rules is that if I change [say] 'BufRing.h' then do 'make all', 'BufRing.c' and 'Camera.c' would be recompiled, but not necessarily 'INet.c' 'make' isn't very bright, but (like 'cpp') it can be _very_ handy. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Good tool for light photo editing?
Stan - On Wed, 6 Oct 2004, stan wrote: > I just got my first set of pictures on CD's (vacation pics), and I wan't to > put them up on my web server. > What's a good tool to do some really lightweight editeing on them with? > Mostly I just need to rotate the vertical ones, but I _might_ do just a > little cropping on some few. ImageMagick (and sibs - it's a collection of utilities, like gcc) does a good job of resizing, thumbnails, format conversion, etc. Check the man pages for rotation commands - I haven't tried that. It has a GUI (as 'display'), is very handy for scripting, and pretty lightweight, too. For heavier hitting, GIMP. In between: Xv, which you've met. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: reverse ssh
Freebies - On Tue, 5 Oct 2004, Ion-Mihai Tetcu wrote: > [ please don't loose context ] > On Tue, 05 Oct 2004 19:45:38 +0200 > Benjamin Walkenhorst <[EMAIL PROTECTED]> wrote: > > Micah Bushouse wrote: > > > > > I have a BSD box (home) sitting on an apartment complex network > > > (dhcp/nat/firewall) that I don't control. I also have a BSD box (work) > > > with a static IP sitting on my university's network. > > > > > > Is there a way to open a ssh/other connection before I leave for work in > > > the morning (from the home box to the work box), then travel to the > > > university, sit at my desk and use this connection to get a terminal on > > > my home machine? Is there any software out there that addresses this? > > > Ideally it would involve ssh. > > > > You could write a script that sends an email to you every morning > > which contains your IP-address. *Encrypted*, of course!!! > Since he's home machine is behind a NAT at what would knowing its > (private) ip serve? Look into 'man ssh' and check the '-R' option. I suggest a script be written to run an 'ssh -R' login from the home box to the office box, setting up the tunnel for reverse use. You (or !!_CAUTION_!! anyone else logged into either box) can use the tunnel for whatever connects to it. I suggest you connnect back to your home system's 'sshd' port and then you will have to satisfy the home box's login authorization to get access there (at the price of two levels of ssl wrappers, I suppose). The designated remote port effectively becomes an extension of your local 'sshd' connection port on the office machine. Set the remote machine up for RSA login from your home machine so you won't have to send the password from your script. Make sure the incoming port can get through your home firewall and the apartment complex's router - that shouldn't be too stringent, as [I _think_] it will look like 'reply' traffic to both of those filters, rather than incoming requests. The firewall on your office system will see them as incoming ssh requests, which I assume you now accept. DISCLAIMER: I have a static IP at home, and have only done this the other direction: exporting VNC $DISPLAY sessions from home to the outside world as pseudo-X11 logins onto the home box. The tunnel is setup by my ssh login from outside. (I know, I know -- a bit ugly, but it's easy to set up.) For simplicity I scripted the login as: sshTunnel: =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= #!/bin/sh echo "Connecting port : to $1:" ssh -C -g -L $1 =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= You would be using '-R' instead of '-L' of course, and using appropriate port definitions. I invoke my script as: $ sshTunnel The life of the tunnel should the same as the life of that scripted ssh login, which may influence what exactly you script. Whatever I send to is wrapped, sent, unwrapped, and passed to :, and vice-versa. REFINEMENTS: (1) In view of the !!_CAUTION_!! note above, you may want to create a pair of low-privilege users on the two machines and have the script connect _them_. The script should run with the home dummy-user's uid. This should help limit the damage potential from an intruder. (I would call this: 'making a virtue of necessity'.) You then ssh-connect _locally_ on the office machine to 'ride' the tunnel back to your home machine as yourself. (2)I bet someone who really understands tunneling could make this work with only one layer of ssl wrappers, but I'm not that clever. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Tar pitting automated attacks
Ahh - Exactly the scenario here, except the names were different (but similar) and the source IP was: 64.124.210.23 Thanks. On Wed, 8 Sep 2004, Jonathan Chen wrote: > On Tue, Sep 07, 2004 at 09:42:16AM -0400, Mike Galvez wrote: > > I am seeing a lot of automated attacks lately against sshd such as: > > > [...] > > Sep 6 12:16:39 www sshd[29901]: Failed password for illegal user server from 159.134.244.189 port 4044 ssh2 > > Sep 6 12:16:41 www sshd[29902]: Failed password for illegal user adam from 159.134.244.189 port 4072 ssh2 ... etc > > Is there a method to make this more expensive to the attacker, such as > > tar-pitting? > Put in a ipfw block on the netblock/country. At the very least it will > make it pretty slow for the initial TCP handshake. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: adsl bittorrent speeds troubleshooting
Hi - On Sat, 17 Jul 2004, DrVince wrote: > On Sat, 17 Jul 2004 14:33:21 +1000 (EST), eodyna wrote > > hi guys, > > > > Im a newbie with this, im having trouble with my > > download speeds with my adsl modem, and i just wanted > > to elimanate that the problem isn't my computers > > configuration. This is my first time with adsl so im > > not 100% that the configuration is correct. > > You can do some packet prioritization, especially for ACK. Try those links, > they explain much: > > Using pf: http://www.benzedrine.cx/ackpri.html > Using IPFW: http://www.topfx.com/prioritizingackfreebsd.shtml > > In my tests, downloading a file from the web space my ISP gives me, I found > that it helps a lot. Using bittorrent, it did not change much. As always, > with those kind of sharing, I think the main problem is leechers. Thanks for the prioritization links. Are "leechers" in this context (1) users downloading from you while you're downloading, or (2) users who kill their peers when they _aren't_ downloading? - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: adsl bittorrent speeds troubleshooting
Hi, eodyna - I'm trimming this message to the bittorrent references. On Sat, 17 Jul 2004, eodyna wrote: > Im a newbie with this, im having trouble with my > download speeds with my adsl modem, and i just wanted > to elimanate that the problem isn't my computers > configuration. This is my first time with adsl so im > not 100% that the configuration is correct. There are direct ways to test your ASDL speeds, such as web sites with tests you invoke from a web browser (i.e., [http://www.dslreports.com]). > I have reinstalled 5.1-release.(i haven't changed any > of the configuration) The adsl modem is a billion > 5100. the modem is configured with the following: [modem and net setup elided ...] If http and ftp downloads go well from reasonably responsive servers, and if a raw speed test (see above) comes out OK, I wouldn't blame the modem setup without more evidence. > Im getting decent speeds with http downloads(90kbps), > but when i run the bittorrent client i average speeds > of 30-40 BYTES. its enough to make me cry. Is there > anything i should be looking at or doing or should > configure? Your speeds _are_ remarkably bad (I've found myself at 1-200 By/sec), but bittorrent has quite a few complaints against it for this type of behavior. I have seen notes that bittorrent can work better when it has access to certain additional ports, and that it is courteous to leave your client (peer?) running when you're not actively downloading (so others can establish connections through your host to download things you may have on-hand). I am too cautious about my system's security to do the first, though I try to leave the peer running for a while after a download. I don't use 'bittorrent' when I can avoid it, which may have slowed my learning rate. There may be a way to develop a list of candidate peers to try for connections - that's just a wild guess, however. Perhaps some satisfied users will kick in some 'how to make it work, _really_' suggestions. > i run bittorrent > > /usr/local/bin/btdownloadcurses.py torrent_filename. DISCLAIMER: I'm an infrequent 'bittorrent' user, for just this reason. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Moving my Outlook PST file to any BSD E-mail client
Freebies - On Fri, 9 Jul 2004, epilogue wrote: > On Fri, 9 Jul 2004 09:20:43 -0700 (PDT) > "Joshua Lewis" <[EMAIL PROTECTED]> wrote: > > > Does anyone know of an e-mail client that supports importing an outlook > > .PST file. > > i don't know of clients which support both (not that they don't exist), > however there are tools out there to convert between the formats. i have > not used any myself, so i cannot speak to the degree of success in > converting (though i assume its good). I recently migrated a friend's e-mail from Outlook [Distress?] to MacOS-X. I had a bit of handwork, but basically: 1) Exported the Outlook info in 'csv' format 2) Exported a sample address book as csv from my target (maybe the Mac mail reader - I don't remember, but anyway it's a system resource in MacOS-X: one address book seems to fit all clients) 3) Loaded both into a spreadsheet - probably StarOffice so try OpenOffice 4) Moved a few fields around so the Outlook export would match the target NOW: 5) Saved from the spreadsheet in Data Interchange Format 6) Slurped the *.dif into the new agent. There are scripts for much of this, but I was as well off 'by hand' for this one shot. You may be able to skip some steps depending on your source and target options. HTH. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Dlink DSL router doesn't like FreeBSD
Walter - On Fri, 14 May 2004, Walter C. Pelissero wrote: > My problem is that ssh and telnet don't work. I get as far as the > Password prompt, I type it in, and then ssh freezes for a couple of > minutes until it probably goes in timeout and gives up. Before we blame the router, a little more information would be good. First, are you coming into your LAN from outside, or going outwards? If it's an outgoing-connection problem, I would look into the firewall setting of the FBSD box. Maybe you set didn't set it up to pass the ports for outgoing telnet and ssh, or maybe you shut off the replies on those same ports. As for the timeout - many ssh setups will attempt to confirm the incoming connection, and many clients come from unconfirmable IP addresses. This usually involves a timeout of a few tens of seconds, but not terminating the connection. On the other hand, if you are discarding reply packets, I would expect the remote server to timeout awaiting your response to its acknowledgement. Second, if incoming, does your DSL account have a static IP address? Does your FBSD box have a static address within your LAN? You need these in order to route to your [FBSD] server. Are you running 'sshd' and 'telnetd' in the FBSD box to accept incoming connections? Try plugging the WindowBox into another of the router's ports, then use PuTTY to telnet and ssh into your FBSD box (using it's LAN address, naturally). If that works, the problem is definitely the router, but possibly a setup issue. Especially since telnet is also involved. (Many people disable incoming telnet, for security reasons.) When you have intra-LAN access working, look into port forwarding in the router's setup: you want incoming traffic from the ports used by ssh and (if you enable it) telnet to be sent to the LAN address of your FBSD box. Knowing what you are looking for may help you find it in the manuals. PuTTY's control panel to set up a connection shows you the default 'telnet' and 'ssh' ports if you are in doubt. My experience with the D-Link router has been outgoing and setting up a local WindowBox with a static IP (so it could server as a printer for the LAN). Keep us posted. Tschuess. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: the most light weight X web browser?
Freebies - On Sun, 9 May 2004, David Fleck wrote: > 'links -g', eh? > dcf>$ links -g > Unknown option -g Reading the 'links' project pages puts graphic rendering at links version >=2.0, I believe. I couldn't find an appropriate RPM for my 2.4.x Linuxes but had no problem building and installing from sources. I did need to put X11 development support (headers, basically) into my underwhelming laptop in order to build there (and to have a couple of cups of coffee while configuration and build took place). It doesn't do everything, but it sure does a basic minimum very well. Netscape takes about 1 minute to start and Links is up in a few seconds, exactly solving the original poster's problem (and mine). I couldn't get the non-X11 SVGA configuration to work, but I didn't really want that. Looked like a permissions issue, and maybe conflict with XF86. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: jumping mouse in X
Tsu-Fan Cheng - On Tue, 13 Apr 2004 [EMAIL PROTECTED] wrote: > ... > something I found in XFree86log file: > (**) Option "Protocol" "auto" > (**) Mouse0: Protocol: "auto" > (**) Option "CorePointer" > (**) Mouse0: Core Pointer > (**) Option "Device" "/dev/psm0" ^^^ Do you know this is correct? > (**) Mouse0: Emulate3Buttons, Emulate3Timeout: 50 > (==) Mouse0: Buttons: 3 > (II) Keyboard "Keyboard0" handled by legacy driver > (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE) > (II) Mouse0: SetupAuto: hw.iftype is 3, hw.model is 0 > (II) Mouse0: SetupAuto: protocol is SysMouse > (WW) fcntl(6, O_ASYNC): Inappropriate ioctl for device > > is this causing the trouble? > --- > > Hi freebsd-er, I recently upgraded my m/board and finally get x-window to > work again but my mouse is all very jumpy, I seem to lose control over it > and very hard to make it stay on one position. This has happened to me when I had chosen the wrong mouse protocol ('mm', 'logitech', etc.) in 'XF86Config' You may want to try reconfiguring that part of X11. If it acts no differently, perhaps you have the wrong interface (note above). If it is different, but not correct, try another protocol. DISCLAIMER - my experience here is Linux, but the problem was in the XF86 configuration, which should be nearly the same.. I have been trying to see > what people have to say on the internet. Something I came across is that > the driver for vedio card might affect it. My cedio chip is ProSavageDDR > K4M266, I can't run x-win when using original FBSD driver, but after > installing a 3-rd party driver, I was able to get it up, and everything > looked the way I wanted it! But just this mouse, it went crazy. It's a > 2-button ps/2 mouse, I tried "auto" or "ps/2" protocol in X config, > nothing changed, I tried to put some moused related stuff in /etc/rc.conf, > then I get a nice working mouse in my console, but my x-win won't start up > because the mouse device is "busy". Any help! thanks! That sounds like the wrong 'device' selection, but I don't have any way to check. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Best *nix OS for a laptop?
Eric, Freebies - I ended up with Linux for some specific reasons. YMMV. On Sat, 2004-03-20 at 17:42, Eric F Crist wrote: > Could some of you please send me an email telling me what OS you utilize on > your laptop, and why? I'm not looking for anyone bashing any other OS, just > why you use what you do. I am working on a Linux development project, have very limited funds, and spend many weekends out of town. I was given an elderly Toshiba (430CDT) that was a casualty of the class-action suit a few years ago, about their handling of CPU and/or BIOS problems. I wanted a setup that would parallel the code development environment of my RH-7.3/X11 Linux setup. I expanded the RAM to 49 MBy but was still unable to run any installer I could find for a RedHat setup. ('Slinky' bit me viciously.) I was able to run the Slackware-9.1 Linux console installer without problems, and by being very careful I even fitted a few frills into the system's 1.2 GBy HDD. It generally works (sllooowwwlly), though I sometimes crash my X session when some app ties up the resources (i.e., there seems to be a minimum hardware base for stability and I'm not _quite_ there). Otherwise it meets my requirements perfectly. I'm typing this now by SSH login to my home system over a [miserable] dial-up account, and at home I put it on my LAN and it works fine. X11 takes a long time to start, but is responsive once it's going. I use WindowMaker because KDE and GNOME are pretty much out of the question with so little RAM: they swap all the time and KDE takes _many_ seconds to even find a keystroke. WM is fine. I didn't try other lightweight window managers ('fvwm', 'fluxbox', ...), but any of them would probably have worked out. I installed from a boot floppy and CDs of the packages. I expect to install future Linux systems from Slackware after about 6 years of RedHat (though my early setups were Slackware). Naturally I'm heavily influenced by my anecdotal experience. I don't have sound working, and the only power management is screen blanking, c/o XFree86. I am sure I could have installed a good freeBSD configuration; I recently installed FBSD by ftp in a junker desktop that didn't even have a CD drive. As soon as the Linux project works I plan to port it to FBSD due to its fine reputation as a server environment, but the client asked for Linux and I have more development experience (and a good working setup) in Linux. Bottom line: I got what I needed, but my limited hardware and specific use had a lot to do with the path I took. Regards. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Dependencies of statically linked apps (was Re: update of OpenSSL from tarball)
On 20 Mar 2004, Lowell Gilbert wrote: > "J.D. Bronson" <[EMAIL PROTECTED]> writes: > > ..this seems to correctly place all the files where they need to be > > with the exception of a few. I did recompile a few apps since they had > > ldd to older files that were incorrect. .. > Most peoples' mileage *does* vary, because updating OpenSSL by itself > isn't enough. Everything that linked to it statically needs to be > updated as well, which most people won't have the skill (or > inclination) to track down. Good point, but how _does_ one learn which libs have been statically linked when one has only the binary (assuming debug tags were stripped)? If common dependent apps are identified in the bug or fix report, well and good. Otherwise I don't see any alternative to that app's maintainers making the vulnerability information available. If there is a central list or clearing-house of such information, where would it be? - John Mills 1884 Ridgewood Dr, NE Atlanta, GA 30307-1166 404.377.2577 [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: beastie in 5.2 boot menu
Hanspeter - On Sat, 24 Jan 2004, Hanspeter Roth wrote: > how can I turn off (delete) the beastie in the boot menu in 5.2? The ASCII image is part of a text file. I think it is found in /boot and named similar to "beastie2nd.[something]". Go with your favorite ASCII editor and make it what you want. Run 'find /boot -name beast\* -print' and you should find it. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How can I duplicate a set of installed ports?
Freebies - I have an installation I'm comfortable with, between those ports I chose to install, those I chose _not_ to install, and those I went around and added individually. Now I want to install the same set in a number of other systems. I know I can get a list of installed options with 'pkg_info', but I don't know how to make the best use of the list. The machines have 3.5" diskettes, _just_sufficient_ hard drives, netowrk interface cards, and no CD-ROMs. They hang on a LAN served with DHCP. I would like to avoid doing manual selection each time, of course. I would prefer to do independent passive-FTP installations from a FreeBSD.org server for each target machine rather than a disk-slice copy because I wouldn't have to remove the drives from the computers. What are my options, and your recommendations? TIA. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Grumpy 'xdm' won't take logins
Freebies - I just finished a fairly lightweight ftp installation of 5.1-Release and want to offer an X11 login screen. Basic XF86 seems to work fine. I followed the 'Configuring xdm' instructions in Greg Lehey's _Complete_FreeBSD_, ch.17, but didn't get quite all the way home. I get the X11 login screen, mouse moves OK, but I never seem to focus the username or password entry panels so that my keystrokes are seen. Neither can I change to one of the other vt's (though I get 'bell' sounds on those which should exist). The server seems to have gone both modal and deaf. Suggestions appreciated. TIA. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Two little CVS questions
Doug - In case it's helpful ... On Sat, 27 Dec 2003, Doug Lee wrote: ... > 2. Do any utilities already exist for appending one repo (,v) file to > another, or even intelligently merging repo files so that you get a > history containing all revisions from both? I moved more than 1000 files from Source Integrity to CVS. All but about 80 came through with their histories retained. For the others I had to make them "born again" as of the transition time. I used scripts found from this pointer: jm> Questions: jm> jm> 1) Can I port my histories in some useful way? ad> Given the way SI works, probably. ad> http://mail.gnu.org/pipermail/info-cvs/2000-April/005974.html If that is a dead link, I can come up with copies of the scripts, or my minor variations on them. If you are moving from VSS to CVS, you may find something helpful here [Disclaimer - I didn't try this.]: Date: Thu, 22 Aug 2002 08:16:39 -0700 From: Chuck Karish <[EMAIL PROTECTED]> Newsgroups: comp.software.config-mgmt Subject: Re: How to Import History files from VSS to CVS Use vcp. It exports each change from VSS into a platform-independent XML format called RevML, then imports from RevML into CVS. http://maillist.perforce.com/mailman/listinfo/revml You may want to post your question in that newsgroup, too. HTH. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can I bakup like this...??
Freebies - In case this helps: On Wed, 19 Nov 2003, Keith Spencer wrote: > I need a quick n safe backup strategy. > One that I can get the machine backup super quick if > have to. > What say you about this...(and "how do I" tips please) > a) Throw another drive in the box If you can mount a shared drive in another machine, that's even better. > b) Createthe same or at least minimum size partitions > as the active drive You don't need as much space if you compress the record. > c) Cron job to "dump" or tar or ??? the partitions 'man cron' is doubtless your friend here. Write a script that runs your script and invoke it in the daily 'cron' run. Here's the script to cull a number of large but uninteresting directories out of my $HOME and create a compressed backup file. A separate script would "roll" two successive copies of the compressed 'cpio' archive in the backup storage space. I copied the archive out to a Windows 'share' in my employer's backup path the first time I did this. At home, I just manually copy it to a CD. * #!/bin/sh echo "CPIO backup of /home to /tmp/myhomebackup.bz2" echo "List contents with: bunzip2 -kc /tmp/myhomebackup.bz2 | cpio --list" echo "Restore with: cd / ; bunzip2 -kc /tmp/myhomebackup.bz2 | cpio -i -d [-v]" if [ -f /tmp/backuplist ] then rm /tmp/backuplist fi find /home ! -type d -print | grep \/temp\/ -v | grep \/image\/ -v | grep \/incoming\/ -v | grep \/cache\/ -v > /tmp/backuplist cpio -o -H crc < /tmp/backuplist | bzip2 -c - > /tmp/myhomebackup.bz2 echo "Backup created" * The key is making the file '/tmp/backuplist' with the right fully qualified paths to those _files_ (not just the directories) you want to backup. This approach can traverse partitions as needed (depending on where you start your 'find'). 'cpio' also preserves file dates and permissions a bit more gently than 'tar' (or so I understand). If you need "really quick" recovery, you may consider using one of those "hot-swap" IDE disk-drive mounts and have a spare of your _primary_ disk ready to use (and boot, etc.). That saves you the time and trouble of rebuilding the partitions on a new disk, and you only need to backup (and to recover), those directories that are volatile. Now you only need a secondary disk large enough to take the compressed contents of your "live" backup fileset, it need not be bootable, and you save time making and recovering the archive. If you can dump the archive to something like a CD-R/RW, so much the better HTH. - John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Flood of infected emails
Charles, all - On Tue, 19 Aug 2003, Charles Howse wrote: > Has anyone besides me been receiving a flood of infected emails? > All the emails have the same subject lines: > > Thank you! > RE: That movie > RE: RE: My Details > RE: RE: My Details > RE: Details > RE: Wicked Screensaver > RE: Approved > RE: Your application > > But are from different users. > I am also getting Mail Delivery Warnings from different postmasters > concerning "my" messages being undeliverable due to full mailboxes. > I am also getting msgs from servers warning me that "my" msg contained a > virus. I am so far only getting the notices that I may have sent infected mail, and my follow-up attempts have all been blocked. I think my address is being used for parts of a flood of virus or spam mail. It seems plausible the harvesting was done from 'freebsd-questions'. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How can I check for swap space? (4.8-Release)
Mike, Freebies - Thanks for the help. On Thu, 7 Aug 2003, Mike Tancsa wrote: > At 07:16 PM 8/7/2003 -0400, John Mills wrote: > >Freebies - > > > >I just installed 4.8-Release from CDs and let the installer divide my disk > >automatically. Things are acting as though I have little or no active swap > >space. > > > >2. How can I check what I got? (No joy yet from 'fdisk' on that.) > > > cat /etc/fstab > will show you what gets mounted at boot time. > mount > pstat -T > and disklabel My box has 48 MBy RAM and the automatic installer gave me 80MBy of swap, which does seem to be mounted and used (if a bit small given today's code). I will mostly run services and ssh console sessions, so that might be enough. However I also wanted to run some lightweight X11 setup so I installed 'fvwm2' and have a 'mostly working' XF86Config. When [ordinary-user] I execute 'startx' the system gradually fills all of RAM and swap then locks up the X-server. Granted my space is small, but this still looks wrong to me. My '~/.xinitrc' is a one-liner: "exec fvwm2". Any ideas what's happening? TIA. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Your terminal, of type "ansi", is lacking functions needed torun pine.
DanB - On Wed, 13 Aug 2003, DanB wrote: > Running pine. > Your terminal, of type "ansi", is lacking functions needed to run pine. > I get this message running telnet on windows box. Is there anyway to > make it work other than using > a program like putty? Telnet is enough of a security problem that many *NIX sysadmins remove it from their services. puTTY using SSH is much less of a hazard. Naturally puTTY _will_ do telnet sessions (with their same security problems). Is that the usage you wish to avoid? What problems does it cause you? John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Q: How can I modify net, X configurations in 4.8-Release?
Freebies - I just installed a 'standard' 4.8-Release setup from CD. It seems to have gone fine, but I want to change two features: 1) I set up DHCP networking. Now I want to go back and explicitly set up static IP, GW, NS. 2) I did not set up X11, and I would like to have another run at that. (This means I'm running console tools.) Can I use /stand/sysinstall to re-do these parts of my installation (and if so, how?), or are there other simple tools? Menu-driven or mouse-driven would be nice. Naturally I can always attack the configuration files, but I don't know how to turn DHCP off. TIA. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Xclock grows and grows (Was Re: How can I check for swap space?)
Ian - Thanks for the suggestions. They have given me more symptoms. On Sat, 9 Aug 2003, Ian Dowse wrote: > In message > <[EMAIL PROTECTED]>, Joh n > Mills writes: [Concerning problems with a newly-installed 4.8-Release from the CD set. > >'startx' still proceeds until it fills all available memory. In > >particular, 'top' shows the size of 'xclock' growing while other processes > >seem OK. > ... > >2) Does this [mis]behavior sound familiar to anyone? > I've seen this before when the "fontconfig" system got confused. Try > running > fc-cache -fv > as root. If that doesn't fix it, try: That also dumped on ever-growing swap after first creating cache for the 100DPI fonts and while working on the 75DPI > echo "*clock.render: false" >> /usr/X11R6/lib/X11/app-defaults/XClock This did allow 'startx' to get past starting 'xclock', but the next thing I tried, 'xterm', then repeated the fill-swap-and-dump scenario. I guess I don't know if the problem is related to X11, bad usage of swap space, or some other memory issue. I should try some non-X11 activity (other than the underlying OS activity) and see what happens. I noticed on installation that many packages related to Gnome hadn't been read successfully from the CD. Perhaps I have a defectively written CD behind all this. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Xclock grows and grows (Was Re: How can I check for swap space?)
Freebies - A bit more information on my 'startx' thrashing. On Thu, 7 Aug 2003, John Mills wrote: > On Thu, 7 Aug 2003, John Mills wrote: > > > I will mostly run services and ssh console sessions, so that might be > > enough. However I also wanted to run some lightweight X11 setup so I > > installed 'fvwm2' and have a 'mostly working' XF86Config. When > > [ordinary-user] I execute 'startx' the system gradually fills all of RAM > > and swap then locks up the X-server. Granted my space is small, but this > > still looks wrong to me. > > My '~/.xinitrc' is a one-liner: "exec fvwm2". > Now it just says: "fvwm2" I created a swapfile, and thereby doubled my swap space to 184MBy, thanks to 'dd' and 'vnconfig'. (I remembered I've been here before and went back through my mail!) 'startx' still proceeds until it fills all available memory. In particular, 'top' shows the size of 'xclock' growing while other processes seem OK. 1) Where do I go to remove 'xclock' from the list of processes brought up by 'fvwm2'? 2) Does this [mis]behavior sound familiar to anyone? 3) I am still running 4.8-Release installed from CD 1. I have not updated any packages yet. If there are some 'strongly recommended' updates, what would they be? Keep those cards and letters coming! Thanks. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How can I check for swap space? (4.8-Release)
Freebies - I just installed 4.8-Release from CDs and let the installer divide my disk automatically. Things are acting as though I have little or no active swap space. 1. What should I have gotten? 2. How can I check what I got? (No joy yet from 'fdisk' on that.) 3. How do I check current memory usage (sim. 'free' in Linux)? TIA. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How can I check for swap space? (4.8-Release)
Freebies - Back again, still thrashing. Naturally the usual hangups for a new installation are X-windows and networking, then printing. Networking is fine, and I don't plan to hang a printer on this box. That leaves &*^%!! X-windows. On Thu, 7 Aug 2003, John Mills wrote: > I will mostly run services and ssh console sessions, so that might be > enough. However I also wanted to run some lightweight X11 setup so I > installed 'fvwm2' and have a 'mostly working' XF86Config. When > [ordinary-user] I execute 'startx' the system gradually fills all of RAM > and swap then locks up the X-server. Granted my space is small, but this > still looks wrong to me. > > My '~/.xinitrc' is a one-liner: "exec fvwm2". Now it just says: "fvwm2" Same result, perhaps a bit slower. The X11 display is badly formed in two ways: 1) It looks as though horizontal sync is not solid, because I see two overlaid images on the screen, so the letter "I" looks like: "II", and 2) The cursor on the screen is displaced from its "logical" position, so that buttons are highlighted when the cursor moves to some point far from where the button appears on the screen (and "click" there brings on the appropriate response). > Any ideas what's happening? Yes, well ... any ideas? John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How can I modify net, X configurations in 4.8-Release?
Kenzo - On Thu, 7 Aug 2003, Kenzo wrote: > You don't have to run /stand/sysinstall/. > you can edit the /etc/rc.conf file as follow. > you need to remove or comment out the dhcp part. > #ifconfig_xl0="DHCP" > > then, add your network config > defaultrouter="x.x.x.x" > ifconfig_xl0="inet x.x.x.x netmask 255.255.0.0" > reboot and you should be set. > As far as X, I never install it during the setup. > Why waste time to set it up, when it's most likely out of date. > always update your ports after the setup. > go to the /usr/ports/x11 and pick a window manager. > after installing it, go to the usr's dir and create a .xinitrc file. > add the running command to start x. If it's KDE use "exec startkde" or > "wmaker" for windowmaker. > then you need to run "XFree86 configure". It will probe your hardware and > setup some default settings. > if it works, then you can copy it to your /etc/X11 dir and tweak it as you > want. > Then type startx and it should load. > remember not to run X as root. Thanks - that's exactly what I needed. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: SNMP
On Wed, 30 Jul 2003, Tkachenko, Artem N wrote: > I am new to SNMP. I was asked to set up SNMP agents and a manager on > some of the computers in the lab. Can someone recommend some SNMP > programs that I can use or a good link on the Internet? I need it for > both FreeBSD and Windows machines. Thank you very much for you time. > Best regards I second the recommendation for net-SNMP. It also provides most of the functions for Microsoft Windows that it does for Unix-type environments. Code generators and related utilities are far less automatic than many commercial products, but the quality and flexibility are high. There is a set of tutorials and you can run many of them against yourself in 'localhost'. 'net-SNMP.org' is careful that their license makes it easy to use the code in commercial or non-commercial products, more BSD-style than GPL-style. Look around the web for handy tools - many are graphical using Tc/Tkl. The RedHat RPM installs a fully functional host-platform agent (net-SNMP or its older version ucd-SNMP) in RH Linux systems that you may wish to play against. A huge number of MIB elements are supported and you can interrogate the machine to spit them out to you. If you would like good quality, moderately priced code generators, MIB browsers, and test agents for Microsoft Windows, look into MG-SOFT (www.mg-soft.com) products. DISCLAIMER - I'm about a year away from this and there may be better things available. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Post about BSD's alleged demise on /.
the press away from the Internet?" > -- Mike Godwin > > Unix IS user friendly... It's just selective about who its friends are. > > System Administration - It's a dirty job, but somebody said I had to do it. > > If you receive something that says 'Send this to everyone you know, > pretend you don't know me. > > Standard $500/message proofreading fee applies for UCE. > (NOTE: UCE is Unsolicited Commercial Email also known as > SPAM or junk mail). > > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > -- John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Seting baclground color in fvwm95?
Stan, Freebies - On Thu, 3 Jul 2003, stan wrote: > How can I set the background color for a session using fvwm95? xsetroot > sets the color, but when the window manmager starts up, it overwrites that > change. Here is a snippet from my '.fvwm2rc': (Sorry about the long lines.) ### Initialization Functions ## AddToFunc InitFunction"I" Module FvwmButtons + "I" exec xsetroot -mod 2 2 -fg \#606060 -bg \#705070 AddToFunc RestartFunction "I" Module FvwmButtons + "I" exec xsetroot -mod 2 2 -fg \#606060 -bg \#705070 ### There is a "Restart FVWM" button tied to 'RestartFunction', and I assume 'InitFunction' is a built-in. Anyway, changes made here seem to work and to 'stick'. This is a RH-6.2 GNU/Linux system, but it may give you some ideas. Regards. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: cvs co CVSROOT
Freebies - On Thu, 3 Jul 2003, Gerard Samuel wrote: > It has been a while, but when I did mine, if I remember correctly I > didn't experience any problem with setting it up. > Which FreeBSD server did you go to get the CVSROOT? > > [EMAIL PROTECTED] wrote: > >i just tried to cvs co CVSROOT in order to try out "setting up a CVS > >repository - the FreeBSD way" as described in the article of the same > >name in the docs section > >but there seem to be a few file missing in the CVSROOT i got > >trying modules as access got me an error message that the file disapeard?! > > > >can someone tell me what is going on? There certainly are some files in CVSROOT that 'co' does not give you: those such as 'passwd' that are restricted to administrative use. You have to login to the server and edit those files manually. I don't know about 'modules' specifically. There is a full manual at 'cvshome' known by its author's name: "the Cederqvist" ('-quist'?). Look in the 'Administrative Files' section. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Please Answer This For Me
Frank - On Thu, 19 Jun 2003, Frank wrote: > I am having trouble installing the FreeBSD software 5.1-RELEASE-i386-disc1. > Here are the particulars of what I am using and what I have done. > > - Downloaded 5.1-RELEASE-i386-disc1 from FreeBSD using FTP Explorer and > ensuring that binary is selected. I am using a separate computer to do > this. > > - Burned CD using Roxio Creator Classic version 6.0.1.5. Settings were > other (tab), create bootable, no emulation, and use images or image > 5.1-RELEASE-i386-disc1. > > - Partitioned drive with Windows 98 second edition resident on it to create > a 'D' drive on a Pentium 200 MHZ machine with a 4X CD Rom. > > - Changed AMI CMOS setting to load from CD first. > > > The CD appears to be reading the created disk for about 15 seconds but then > appears to hang and then the Windows 98 OS loads. > > What could I possibly be doing wrong? Or what do I need to change to get > this install to work? The problem could come from the CD or from your computer. I have one box that just _won't_ boot from its CD. Fortunately there are diskette images on the CD (and on the net) that you can use to boot your system, and then to install from the CD. Open the CD in your Windows machine (without trying to boot from the it) and look for a './floppies' directory in the root directory of the CD. There should be some image files and some instructions on getting the images written to floppies, which ones you need, and how to use them. Check out details at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-pre.html#INSTALL-FLOPPIES Or go to: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-pre.html and work down the page. You will be spending more time at: [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook] so you may as well look around a bit now. Seriously, the documentation is critical and its quality is good. Let us know what you try and how it comes out. Regards. John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is there a command for Unix which can detach processfromconsoleand wait until its finish?
Sergey, Freebies - > sergey dyshel wrote: > > I have one problem with '.xinitrc' file. I need to run > > IceWM, detach it from console and wait until IceWM > > exits. I know about 'detach' utility for Unix which > > runs process, detaches it but doesn't wait. So when I > > place "exec detach icewm" in the end of my '.xinitrc' > > X server shuts down immediately after starting icewm > > which isn't what I want. Is there a programm like > > 'detach' which does't exit until detached process is finished? Excuse me if I missed the point, but here is the tail end of a typical 'xinitrc' from my Linux box. You can see that it starts a number of clients, then 'exec's the window manager. Is that what you had in mind? =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= if [ -f $HOME/.Xclients ]; then exec $HOME/.Xclients elif [ -f /etc/X11/xinit/Xclients ]; then exec /etc/X11/xinit/Xclients else # failsafe settings. Although we should never get here # (we provide fallbacks in Xclients as well) it can't hurt. xclock -geometry 100x100-5+5 & xterm -geometry 80x50-50+150 & if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then netscape /usr/share/doc/HTML/index.html & fi if [ -x /usr/X11R6/bin/fvwm2 ]; then exec fvwm2 else exec twm fi fi =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= John Mills [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: A couple of questions related to the sendmail patch, etc.
Phillip - On Tue, 4 Mar 2003, Phillip Smith (mailing list) wrote: > I've downloaded the 8.11.6 patch from sendmail.org, and used the > instructions they provided > [patch -p0 < /PATH/TO/sendmail.8.11.6.security.cr.patch], which then > prompts me for 'which file to patch.' I'm not clear on which file I > _need_ to patch? Or where it would be. I associate this message with an earlier line identifying the file being sought. Usually this means I am not in a directory at the same relative path [to the source root] from which the patch was made. Back up one directory above your source root and try a few values of '-pN': -p1 .. -p3 stopping as you have if the sources are not found -- very likely you will hit the right offset and one or all of the patches will be applied successfully. You have to look at any sections which fail to determine why, and whether they are important. (You will get a report of this and they will have been saved with a 'rej' suffix.) -- John Mills [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: How to map bad sectors on IDE?
Marc - On 31 Jan 2003, Lowell Gilbert wrote: > Marc Schneiders <[EMAIL PROTECTED]> writes: > > > I have searched Google to find a solution to mark off these two > > blocks/inodes (or however I should call them), so that they will not > > be used anymore. All I found is that this is not possible on > > IDE. It is possible with some types of Linux filesystems (ext2 for one), and 'e2fsck' can be told to run a block-by-block read-write test across the disk (optionally preserving original data where possible), then add any bad blocks to a suitably named file which exists just to keep bad blocks out of circulation. 'apropos badblocks' and 'man fsck' failed to suggest such a function in fBSD, but it might be worth more looking. Such an operation would cost you only those files which are now corrupted - when it happened to me I lost a block in a text file, 'fsck' moved the fragments to 'lost+found', and I was able to reconstruct the file. That was pure luck, naturally. > Why is it radical? After all, IDE disks already do bad-block > remapping internally, so you've built up a *lot* of bad sectors > already if they're starting to become visible to the operating > system... Does fBSD's file system creation make sure that all blocks of a newly created file system are in fact usable? I would be surprised if there were no cross checks in the formatting/partitioning/fs-creation path. If the bad blocks weren't linked in the new filesystem, they would have become invisible for practical purposes. Bad side: This approach wipes the rest of your disk's contents. Maybe there are some starting points in there. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: CVS INIT
Jack - CVS needs to know where the root of its repository of files is. On Tue, 14 Jan 2003, Jack B. Thompson wrote: > I could use a little help on this one, Trying to run cvs for first time and > all I get is the following , > > !ThompsonToys# cvs (what I entered at command prompt) > > (RESPONSE) > Usage: cvs [cvs-options] command [command-options-and-arguments] > where cvs-options are -q, -n, etc. > (specify --help-options for a list of options) > where command is add, admin, etc. > (specify --help-commands for a list of commands > or --help-synonyms for a list of command synonyms) > where command-options-and-arguments depend on the specific command > (specify -H followed by a command name for command-specific help) > Specify --help to receive this message > > ThompsonToys# cvs login > cvs login: No CVSROOT specified! Please use the `-d' option > cvs [login aborted]: or set the CVSROOT environment variable. You can define the environmental 'CVSROOT' for your login shell, and/or override that definion when you invoke CVS. For 'ordinary' user access to a local repository: $ cvs -d If you're working to a remote server the syntax is a bit different - check with the CVS manager and read the 'Cederqvist' document at 'www.cvshome.org' for the full story. If you're setting up the server, you will become _very_ familiar with this comprehensive, but not very tutorial, document. Note one of the oddities of CVS is that commands are parsed in order, and in particular there is another use of the '-d' operator if it comes after the entry. That's not what's biting you here, however. > I can usually get most things up and running after a bit of dappling,,This one > has me most flustered,and could use a nudge in the right direction,,Any > insights apprecited Thanks ,jbt HTH. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: patching
Freebies - On Tue, 7 Jan 2003, Brian wrote: > I downloaded the relevant patch and .asc files to /tmp this am, and then > execute > > patch /tmp/filedesc.patch >From 'man patch': = patch - apply a diff file to an original SYNOPSIS patch [options] [origfile [patchfile]] [+ [options] [orig- file]]... but usually just patch /. Name of file to patch:' - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: buildworld problem on cyrix 166
Freebies - In re: the 'ncurses' buildworld failures while upgrading, which I've also experienced: On Wed, 18 Dec 2002, JacobRhoden wrote: > On Wed, 18 Dec 2002 13:23, Ken Kroel wrote: > > i am trying to update an old pc and have run into a problem with the "make > > > CPU: Cyrix 6x86 (486-class CPU) > > Origin = "CyrixInstead" DIR=0x2231 Stepping=2 Revision=2 Perhaps the Cyrix-IBM/166 is the common denominator here, as that is my chip, too. Should I specify the processor to my build environment? I have never tried this. Has it helped others with this build failure? > I had the exact same problem with the exact same machine you appear to have. > This list at the time attributed it to a hardware issue, probably faulty > memory. Try doing a make clean, to clean up everything, and try again. If > the make fails at a different place each time, then its definatly a hardware > problem. I only recall problems from folks doing upgrades (from RELENG_4_5 to RELENG_4_6, _7 in my case). Have others seen the problem when doing 'buildworld' on an installed system at RELENG_4_6 or later, or is this an 'upgrade only' issue? (I have been able to get some partial and redone builds to complete, but never installed them because my purpose is to set a firm foundation under my system and I didn't feel I knew what was in the mix in those cases.) TIA for comments. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: buildworld fail
Kent, all - On Fri, 6 Dec 2002, Kent Stewart wrote: > Just remember that a signal 11 in a compile is usually your hardware > telling you something is wrong. If it dies at the same spot, it can > be options or whatever. If you use strange options, you have to try > them first but still remember a signal 11is normally related to > memory or heating problems. Yes, but when several users with different systems in different parts of the world report the same message in the same spot, I rather suspect a configuration or tool issue. For example, tripling the RAM didn't change it. I may well have a bad set of configuration options for these newer releases. I am very new to FreeBSD. I followed the Handbook configuration instructions to reflect my hardware and didn't knowingly set compiler options at all. Your note was the first to remark on compiler options in connection with this error message so it certainly warrants my attention. I build RELENG_4_5 seamlessly with the same configuration file (in a RELENG_4_5 installation, however), so an environmental or generational issue is likely here. I _have_ also hit heating problems and swap overruns, but these showed different 'footprints'. The partition size issue is my real stimulus to reconfigure the setup before I am more invested and dependent on it: "A house built on sand ..." etc. Thanks for your comments. I need to dig out my error messages and compare the compilation options with the other poster's. Regards. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: buildworld fail
Kent - On Fri, 6 Dec 2002, Kent Stewart wrote: > On Friday 06 December 2002 01:38 pm, Steve Bertrand wrote: > > Kent: > > > > I see the differences between the compiler commands, but have no > > idea how to change them. I would like to try your idea. I have > > given no special flags to make. What flags would I give to make > > when making world? > > #CFLAGS= -O -pipe > #COPTFLAGS= -O -pipe > > These are the defaults and so I just commented them out in > /etc/make.conf. > > I would assume you have something defining a cpu or a CFLAGS. I don't > use either. I have a mix of cpus and have had to NFS mount /usr/src > and /usr/obj to recover a system before. I don't use cpu or compiler > options. Maybe that will get me through the build, too. I'll certainly give it a shot. Thanks. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: buildworld fail
Steve - On Fri, 6 Dec 2002, Steve Bertrand wrote: > I have spent a couple weeks in groups, google, handbook and lists for > self-help on this. I am trying to buildworld on a 4.6.2 machine to > RELENG_4. The cvsup is updating all src and ports and finished > successfully. I reboot to kern.securelevel=-1, #rm -rvf /usr/obj and > #cd /usr/src && make buildworld. It fails miserably everytime here: > cc -fpic -DPIC -O -pipe -I. -I/usr/src/lib/libncurses > -I/usr/src/lib/libncurses/../../contrib/ncurses/ncurses > -I/usr/src/lib/libncurses/../../contrib/ncurses/include -Wall > -DFREEBSD_NATIVE -DNDEBUG -DHAVE_CONFIG_H -DTERMIOS -c > /usr/src/lib/libncurses/../../contrib/ncurses/ncurses/tinfo/alloc_entry.c > -o alloc_entry.So cc: Internal compiler error: program cc1 got fatal > signal 11 *** Error code 1 > > Stop in /usr/src/lib/libncurses. > *** Error code 1 Welcome to the club. Several folks have hit this self-same error, including me in trying to upgrade from RELENG_4_5 to _4_6. I didn't find any reported solutions, either. I am giving up and will make a more recent set of CDs and do a fresh installation. (I haven't really put any work on the machine yet, but it is a bit frustrating.) [I tried going from _4_5 to _4_7, too, but hit some problems in that which clearly reflected my hardware (amount of memory) and size of my swap space. If I'm going to use it, I prefer to get the underlying configuration right first.] My motiviation is similar to yours, though I have the pretext of wanting a mail server that I was going to set up with the FreeBSD box. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: remote X
Rotaru - On Fri, 15 Nov 2002, Rotaru Razvan wrote: > Is it possible to use the local X11 Server for remote applications? For > instance via ssh. I have my XWindows started, i log myself in via ssh > on a remote host, and I want to run a graphical application on the > remote host. Or is it possible the other way (a local application on a > remote server)? Or is there any other way I can run a graphical > application on a remote host that i am logged on via ssh? I expect it depends on your SSH client, but on my systems you open a console session on the local X-server, invoke 'ssh -X' and then whatever remote X-windows application to project its display back to your host: % ssh [EMAIL PROTECTED] -X [... login dialog ...] % emacs & % [another session is opened on my screen running 'emacs', and since I "backgrounded" the remote app, the console remains live for further commands. Check 'man ssh'. Depending on what type of X authorization you use, you may have to put the remote login on a list of permitted users of your local display (xauth or whatever). - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Window/File Manager
Ryan - On Mon, 4 Nov 2002, Jud wrote: > -Original Message- > From: Ryan Sommers <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: 03 Nov 2002 21:55:37 -0600 > Subject: Window/File Manager > > I recently decided to bring my old Presario 1220 our of retirement and > make a small toy laptop to play around with. Unfortunately it's only a > 200mhz/64mb RAM system with a 2.1gb harddrive. I would like to use X if > possible but given the hardware limitations I really can't have a > bloated featureful WM or FM and still have a usable laptop (after all if > the GUI is slow I might as well install 98SE). I have an anaemic Cyrix/166 box which started with only 16 MBy. FreeBSD's default WM just thrashed - half a minute to see results of any action! > What are your favorite ultra-light WM's and/or FMs? I'm just looking for > something that does the job, looking nice would be an added benefit but > I doubt I'll have a high color depth to play with anyway. I configured 'fvwm2', which is lively and fine, even on that sad box. Supposed to have some degree of KDE compatibility now, but I didn't test that. Configuration is old-style by hand [i.e., text files], but I still remembered a few basics of that. &6-) Sorry - no advice on file managers. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Checking RAM and swap use
Jerry - On Tue, 29 Oct 2002, Jerry McAllister wrote: > You could add a disk to the machine and use some of it as swap. > Make a FreeBSD slice on it with fdisk and then use disklabel to > make partitions with one of them (normally 'b') designated swap > and then put it in /etc/fstab. That's one possibility - I have some old drives too small for anything else. > If neither of those can happen, then you will need to repartition > your existing drive. Although it may be possible to use one of the > available utilities to shrink existing partitions within a slice, > I would suggest makeing backups of each partition using dump(8) to > some media you can preserve. Then reslice/repartition the drive, > boot from a rescue disk and restore(8) the dumps. Then in single > user mode, fix up /etc/fstab and it should work. That's feasible, too: I have another computer in the LAN I could use, with reasonable free space. > Of course, if you are a few versions behind 4.7, then this would > be a good time to just do an new install of 4.7 and merge over only > the stuff you need to keep from those backups. That's what I really ought to do. Mostly what I want to preserve is net setup, etc. A backup of '/etc' will get it. The rest is just the configuration file I used to build my kernel. This time I'll allow more swap. (Everything is pretty tight in this setup, as it's built from junk parts.) Thanks. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Checking RAM and swap use
Hello - On Tue, 29 Oct 2002, DaleCo Help Desk wrote: > > Now - I see I need to increase my swap partition. Do I have to wipe > my > > installation and start again? > #man swapon > SWAPON(8) FreeBSD System Manager's Manual > SWAPON(8) > > NAME > swapon - specify additional device for paging and swapping OK - now, can is there a way to set up a fixed-size file a swap space? Thanks for any more pointers. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Checking RAM and swap use
Julien - On Tue, 29 Oct 2002, Julien Bournelle wrote: > > Now - I see I need to increase my swap partition. Do I have to wipe my > > installation and start again? > it depend if you have free space on your hard disk, if so you can try growfs. > If not, you have to wipe your installation and start again :-( I have at least one partition which is very little used. I may be able to sacrifice just that one. Can I use more than one 'swap' partition, or is my old, small (32MBy) swap just lost space? (I could make it a regular partition for something like /tmp, I suppose.) > good luck Well, this is a 'project' computer to learn about FreeBSD and eventually run mail service. I didn't count on kernel rebuilds when I set it up, but it's not running anything vital at present. Merci. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Checking RAM and swap use
Julien - On Tue, 29 Oct 2002, Julien Bournelle wrote: > On Tue, Oct 29, 2002 at 08:34:50AM -0500, John Mills wrote: > > How can I check the amount of RAM and swap memory in use (like the Linux > > console command: 'free')? > top ? Thanks - I had been ignoring that part of the screen when I ran 'top'. Now - I see I need to increase my swap partition. Do I have to wipe my installation and start again? - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Checking RAM and swap use
Freebies - How can I check the amount of RAM and swap memory in use (like the Linux console command: 'free')? Thanks. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Still going in circles on RELENG_4_5 -> RELENG_4_6
Greetings - I am still trying to upgrade from RELENG_4_5 to RELENG_4_6 by means of 'cvsup'. I am still failing to build a usable 'ncurses' library. Has anyone sorted this out? I suppose the problem might be in generating the dependencies or needing a newer 'make', but it reports as a compiler error in a file which identical with the version which compiles fine in RELENG_4_5. If I instead download the 4.6 CD images and make a CDROM, can I upgrade while preserving my configuration information? (Naturally I know the kernel would have some items I don't use, but I want to keep users, their directories, network setup, etc.) 'Handbook' and 'Complete FreeBSD' pointers welcome for the smoothest upgrade path. TIA. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: made a mistake with bash path... now i can't login
Hi - On Mon, 21 Oct 2002, Bsd Neophyte wrote: > i was changing the login shell from sh to bash... but i entered the wrong > location. now, i cannot login to the system using that account, which is > the only accout that i can su to root from. I followed the thread a while and it may be a solved issue now, but ... > does anyone know how i can resolve this issue w/o taking the system out of > the garage, booting into single user mode and manually changing the path? Depending on the permissions of the directories, could you do something like: 1) login as another ordinary user 2) copy the real shell under the directory and name you had incorrectly set 3) login under that account, using the 'classical' shell in its new, 'phony' location 4) become 'su' and fix things up Just a thought. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: CVS
On Wed, 16 Oct 2002, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2002-10-15 13:58:29 -0400: > > *nix clients all worked fine, but this wasn't the MsWin server > > (the name of which I forget). > http://www.cvsnt.org/ perhaps? Yes, that looks right. At that time the server was considered [fairly] stable, but there were some cautious notes about its working to _MsWin_ clients (not *nix). Sorry for the FUD on that. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Linux Compatability and compiling linux program - problem with...
Hello - On Tue, 15 Oct 2002, joe wrote: > I am atrying to compile a linux program under FreeBSD 4.7-STABLE. I > have installed linux_base but seem to be missing a number of files, > specifically header files. DISCLAIMER - this is from a FreeBSD newbie. If the program is not Linux-specific (or specific to linux-only libraries), you might try using generic sources and running 'configure', then compiling instead of building from Linux sources. The negative is that the app would not be automagically managed - you would have to know it was there, look for upgrades, etc. The missing headers are things I would expect in the Linux kernel sources, if that gives you any leads. > SoI obviously don't have the header files... Do I need to install the > entire linux src? There may be a port of just the headers. That should be enough of the sources to compile. You would need suitable a suitable intermediate library to link, which takes you beyond my knowledge here. (That point may actually have passed a few paragraphs ago. &8+P) - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: CVS
Phillip, all - On Tue, 15 Oct 2002, Philip M. Gollucci wrote: > I've got a CVS Win2k Server, yes, I know its stupid to not put it on a > unix computer, not my call. I recently set up CVS 'pserver' service under Linux-2.4.* for WinCvs and *nix cvs users. Circa early summer, the NT cvs server notes mentioned problems dealing with MsWin clients, but not *nix. > As I understand it, as of 1.10 or about, they broke parsing of the > command line > so > :pserver:user@host:d:/cvsroot > doesn't work on the unix clients. I noticed some differences between *nix and MsWin clients handling explicit root definitions but nothing I saw as an outright failure or breakage. (IIRC, I had to put _something_ in the password field, even for a no-password user -- in a DOS script for example -- or get the password prompt.) *nix clients all worked fine, but this wasn't the MsWin server (the name of which I forget). - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Q: continuing interrupted 'make buildworld'
Giorgos - Thanks for the note. On Wed, 2 Oct 2002, Giorgos Keramidas wrote: > The buildkernel target will run a "make clean" before building the new > kernel, in an effort to be on the safe side. This will delete all the > old kernel's object files (anything that had been compiled before the > interruption took place). Thus, all files will be compiled again... > This is exactly what the original question was about. -DNOCLEAN > inhibits the Makefiles from running "make clean". I don't know if > this is a sufficiently explanatory answer, but anyone curious enough > can always look up the exact commands that the buildkernel make target > runs at /usr/src/Makefile.inc1 :-) I am in a bit of a quandry with my upgrade from RELENG_4_5 to RELENG_4_6. 1. I got the not-unfamiliar compiler bomb-out on alloc_entry.c in ncurses/ncurses/tminfo (or close). 2. I backed off to RELENG_4_5 and got a clean cvsup and 'make buildworld' 3. RELENG_4_5 and RELENG_4_6 have identical versions of the file on which cc bombed, and the version of gcc in 4_5 seems to be the latest, and presumably the same as anticipated for 4_6. ['make' is a bit dated (compared with what 'gcc' is claimed to need); perhaps I need to upgrade that package.] 4. I followed 'make buildworld' in RELENG_4_5 with a 'cvsup' to RELENG_4_6 and a 'make -DNOCLEAN buildworld', which ran cleanly to completion, as did 'make buildkernel'. #$%&!!! My fear is that I'm running with part of my 'world' compiled in RELENG_4_5 sources and part in RELENG_4_6 sources. I guess as soon as I am running on 4_6, I will immediately remake 'world' and kernel and see how it goes. I am seeing lots of log streaming by, but so far I don't think I've actually learned anything. Cheers, and thanks for the patient help. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Q: continuing interrupted 'make buildworld'
Gary - On 1 Oct 2002, Gary W. Swearingen wrote: > IIRC, when I've done "make buildkernel" (maybe "buildworld") a second > time (eg, to do benchmarks with two BIOS settings), the thing rebuilt > the whole kernel again. I've always wondered why. I thought "make" > was supposed to use old files when possible. I suspect the target 'buildworld' has as a condition the target 'clean' or something similar. I started looking for the target definitions, but didn't find them. Like, in a high-level 'Makefile': ... buildworld: clean [...] ... as it may also have: ... installkernel: buildkernel [...] ... - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Q: continuing interrupted 'make buildworld'
Freebies - I would like to restart a 'make buildworld' without deleting or recreating any unnecesary files (i.e., after messing about in the source tree). How should I do this? (Is this the effect of 'make -DNOCLEAN buildworld'?) More generally, is there some outline or the _more_important_ 'make' targets after one has done 'cvsup'? (By '_more_important_' I really mean the ones a person is likely to use commonly.) Also, where should I look to get an idea of the defined tags for 'cvsup' (RELENG_4_5_??? for example)? Thanks for any help to a newbie. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Curses at Ncurses Buildworld crash
Greg - On Fri, 27 Sep 2002, Greg Matheson wrote: > My buildworld fails in exactly the same spot, twice in a row... > Very scary for the first-time world builder... a smaller sand pit maybee ... I think it was a sensible and appropriate step, and that it should have worked. Well maybe I was just lucky, but no such problem bit when I rebuilt and reinstalled RELENG_4_5 without a hitch, but I got exactly the same results you did with RELENG_4_6. It' a bit unsettling because 1) Presumably the build can be done successfully in some environments, and 2) People are installing the CD set for this version with whatever this is, possibly lurking in it. I had decided to update before installing 'qmail' the first 'real' application on my FreeBSD 'project' box, but I'm not so confident at the moment. > The buildworld of RELENG_4_6_0_RELEASE just crashed again on the very > same spot :-( 2002.09.18.11.47.04| cc -fpic -DPIC -O -pipe -I. - > I/usr/src/lib/libncurses -I\ /usr/src/lib/libncurses/../../contrib/ ncurses/ncurses - > I/usr/src/lib/libn\ curses/../../contrib/ncurses/include -Wall - > DFREEBSD_NATIVE -DNDEBUG -DHAV\ E_CONFIG_H -DTERMIOS -c > /usr/src/lib/libncurses/../../contrib/ncurses/ncu\ rses/tinfo/alloc_entry.c -o > alloc_entry.So 2002.09.18.11.47.05| cc: Internal compiler error: program cc1 got > fatal signal 11 2002.09.18.11.47.05| *** Error code 1 I also did 'make -DNOCLEAN buildworld' with the same result. I was about to take two steps: 1) enter the offending compilation line as a console entry and see what happens (the same, I expect, unless there are additional needed symbols defined in the Makefile), and 2) I was going to look at the version of this file from RELENG_4_5 and see if they differ. If anyone has seen this and overcome it, or gotten past it by building in 4.5 to a later release level, that would be great to know. >From people who _started_ with a FreeBSD-4.6, can you successfully 'cvsup' to RELENG_4_6 and 'make buildworld' successfully? My system is a Cyrix/IBM 166 with small RAM and generous (I thought) swap space. The compiler (stock from RELENG_4_5) and system report: "$ cc -v Using builtin specs. gcc version 2.95.3 20010315 (release) [FreeBSD] $ uname -a FreeBSD chipmunk.telocity.com 4.5-RELEASE-p6 FreeBSD 4.5-RELEASE-p6 #3: Thu May 30 23:24:10 EDT 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/JMMCONFIG i386" What compiler version comes with 4.6? Could I install it in 4.5 system without too much breakage, if it might be the problem? Thanks for any suggestions. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Problems with RELENG_4_6 'buildworld'
Giorgos, and All - On Wed, 18 Sep 2002, Giorgos Keramidas wrote: > Following up to my own response. > > I'm running now a kernel and world of RELENG_4_5 on a Cyrix 200 CPU > with 64 MB of RAM: Pretty comparable to my system, except it's a 166. > 2002.09.18.11.47.04| cc -fpic -DPIC -O -pipe -I. -I/usr/src/lib/libncurses -I\ > /usr/src/lib/libncurses/../../contrib/ ncurses/ncurses -I/usr/src/lib/libn\ > curses/../../contrib/ncurses/include -Wall -DFREEBSD_NATIVE -DNDEBUG -DHAV\ > E_CONFIG_H -DTERMIOS -c /usr/src/lib/libncurses/../../contrib/ncurses/ncu\ > rses/tinfo/alloc_entry.c -o alloc_entry.So > 2002.09.18.11.47.05| cc: Internal compiler error: program cc1 got fatal signal 11 > 2002.09.18.11.47.05| *** Error code 1 > The next step is to try and buildworld with -DNOCLEAN to see if it > will stop at the very same spot. If it doesn't this is probably some > hardware bug, but I'm reluctant to believe this since two different > people are experiencing the same problems. First, I retrograded to RELENG_4_5, where I had last done a reinstallation, and 'make buildworld' went through without a hitch. (Just a bit paranoid. &8-) I once again did cvsup to RELENG_4_6, and ran 'make buildworld' to the self-same crash point. Not knowing if this was the correct syntax, I then did: # make -DNOCLEAN buildworld Once again it dumped trying to make /usr/src/contrib/ncurses/ncurses/tinfo/alloc_entry.c I will cut'n'paste the compilation line for this file and see if it will build by itself. I also saved a copy of this file from RELENG_4_5 and will compare them. Meanwhile, other input is welcome. Thanks. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Problems with RELENG_4_6 'buildworld'
Mike - Thanks fpr writing. On Tue, 17 Sep 2002, Mike Irwin wrote: > >From the handbook: > > 19.4.15.2. My compile failed with lots of signal 11 (or other > signal number) errors. What has happened? > > This is normally indicative of hardware problems. > (Re)making the world is an effective way to stress > test your hardware, and will frequently throw up > memory problems. These normally manifest themselves as > the compiler mysteriously dying on receipt of strange > signals. > > A sure indicator of this is if you can restart the > make and it dies at a different point in the process. Yes, but that's not what happened to me. I got three failures at the same step with the same error message. > I had the same problem the first time I tried to buildworld. The > culprit for me was an over-heated CPU. Once I made sure it was running > cooler, buildworld worked like a charm. Yes, I had the 'classic' symptoms, and I am convinced that the 'weak link' is my disk drive - it was thrashing like mad and _very_ hot to the touch. I opened up the box and got reliable builds. (A couple of fans are sitting on the frame awaiting installation.) This doesn't have the same profile, and at least a few others have the same dump at the same line. Looks like a different problem. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Problems with RELENG_4_6 'buildworld'
Hello - Today I decided to upgrade my RELENG_4_5 box to RELENG_4_6. No problem with 'cvsup', but 'make buildworld' has crashed twice in exactly the same spot, so I wondered if anyone might shed some light on what's happening. (My machine has a history of crashes from overheating disk drives in the type rebuild, but I wouldn't expect that to dump twice in exactly the same place.) Here is the error message: -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+- cc -fpic -DPIC -O -pipe -I. -I/usr/src/lib/libncurses -I/usr/src/lib/libncurses /../../contrib/ncurses/ncurses -I/usr/src/lib/libncurses/../../contrib/ncurses/i nclude -Wall -DFREEBSD_NATIVE -DNDEBUG -DHAVE_CONFIG_H -DTERMIOS -c /usr/src/li b/libncurses/../../contrib/ncurses/ncurses/tinfo/alloc_entry.c -o alloc_entry.So cc: Internal compiler error: program cc1 got fatal signal 11 *** Error code 1 Stop in /usr/src/lib/libncurses. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+- Thanks for any suggestions. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: CVS Setup
Akthar - On Thu, 25 Jul 2002, Akthar Hussain wrote: > I am trying to setup CVS server in my Freebsd 4.5 system. I just set one up in GNU/Linux (RH-7.*). Probably just the same. I could have simply put the repository in shared space, but taking the trouble to set up a server was well worth the effort. > I am unable to find clear installation and configurations documentations of > CVS. Primarily in Sections 2.9-2.11 and Appendix C of _Version_Management_with_CVS_ (the so-called 'Cederqvist' document). > can any one let me know how to setup CVS server ? or Let me know the place > where i can read the documens for CVS. Start at <http://www.cvshome.org> and also see <http://www.wincvs.org>, but do not neglect the great notes and information at <http://www.read-bean.com>. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Sorry for HTML
Kevin - On Sun, 21 Jul 2002, Kevin Kinsey, DaleCo, S.P. wrote: > I'm going to have to put together a > box hefty enough to run FBSD with > X My low-end box was unusable when XFree installed contemporary window managers (KDE in this case), but became quite responsive and usable when I dropped back to 'fvwm2': _much_ lighter weight, and it shows. You might consider such a work-around. I also sawsome notes to the effect that a certain amount of KDE-compatibility had been grafted onto the current 'fvwm[2?]', but I haven't tested this. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
Thanks Jim, Garance, and Pavan - I think I have the information and references now. I also think I had didn't have trouble before because I was basically moving only by very small steps in my rebuilds: bugfixes rather than any changes of APIs. _Much_ better to do this a bit more knowledgably. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: Question on order and targets of kernel and world builds
Garance - Thanks for the information and for replying. On Tue, 16 Jul 2002, Garance A Drosihn wrote: > You should check: > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html Will do. > If you are fairly up-to-date with freebsd-stable, the preferred order > would be more like: I presume this follows my 'cvsup', and expect this is true for freebsd-release as well? > *READ* /usr/src/UPDATING > [every time, just to make sure there are no special > issues with this specific snapshot of freebsd] > mergemaster -p ^^-- This is new to me - thanks. > make buildworld > make buildkernel > make installkernel > [reboot, to make sure the kernel at least boots up] > get into single user mode > [usually by booting into it in the above step, > although I often cheat on that...] > make installworld > mergemaster > [go thru all the questions from mergemaster] > reboot into your new world. That's exactly what I wanted to know. > You do not want to install the new world before you know whether > the kernel that matches it will work on your hardware. If the > kernel does *not* work (and I have had cases where this happens, > although not very often on freebsd-stable), then you can easily > back out by just renaming the kernel-related files in '/'. > > If you have done the installworld and *then* find out the new > kernel does not work, well, you'll be in a world of hurt. and that's a _bad_thing(TM)_ in my book. ... > The documented order is the order you should stick with, because > it's the only order that we actively *try* to keep working. If > some other order happens to work, feel free to use it, but do not > come complaining to us for the update where that alternate order > does NOT happen to work... Exactly what I wanted to know. Thanks again. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Question on order and targets of kernel and world builds
Pavan - On Tue, 16 Jul 2002, Balaji, Pavan wrote: > "make buildworld" -- builds the kernel and the libraries (both kernel and > user level) > "make buildkernel" -- builds only the kernel Thanks - I didn't realize 'buildkernel' was redundant to 'buildworld'. > You can build kernels with different configuration files using "make > buildkernel KERNCONF=". Once you do the 'build', the kernel image > is stored as /kernel Actually I do that. Does it work for a kernel built as part of 'buildworld'? > More information in the FreeBSD Handbook. http://www.freebsd.org I'll go back and look. I found general instructions which worked, but missed the details. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Question on order and targets of kernel and world builds
Hello - I would appreciate a bit more information on the 'world' and 'kernel' building process. Please point me at the right section of the Handbook or Greg's book if there is a succinct description. I have been doing 'CVSUP' followed by: # make buildworld # make installworld # make buildkernel # make installkernel without really knowing if this was a useful order or exactly what I was accomplishing with each target. My question is: 1) Can I 'make buildworld' to create my tools and supporting files, then 2) Use the newly made "world" to 'make buildkernel', and then 3) 'make installworld; make installkernel' to install these new filesets for general use? I would like to know if this is an acceptable and conservative way to do a rebuild, and to better understand what I get at each step. TIA for any guidance. - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: CVS network access - pserver vs. NFS
Drew - I don't know about speed, but think a bit about user management which is favored by 'pserver' (or in the broader world, by its SSH configuration). I would describe CVS' user and security models as "between consenting adults", but using 'pserver' and giving some thought to your $CVSROOT/CVSROOT/passwd ['password'? - I can't double-check while writing], you can encourage them in directions you prefer. Setting up users that way was _well_ worth the trouble when my group of well-meaning CVS-newbies moved from a rather structured MKS-SI setup and started bouncing around our sources. It tends to suppress the reaction of: "Well, _I'll_ get my hands on the #$@!!!", when something unexpected happens, quickly followed by a probably destructive user effort to manually edit the RCS files. [_I_ never do that, of course ... &8-)] It's like the joke of Nike changing their slogan following the KOOLAID suicides, to: "Just think about it for a moment."* * That applies in spades for the SysAdmin. (I wish I could remember this more often when things get hairy! ) On Fri, 12 Jul 2002, Drew Derbyshire wrote: > Which is faster for remote CVS access over a dedicated 100 MB/second > LAN, using an NFS remote mount or running a cvspserver? - John Mills To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message