Re: Help with Pine
[Please keep messages on the list] On Fri, Jul 18, 2003 at 03:39:33PM -0400, Benjamin Gonzalez wrote: Thanks for your help but unfortunately it still says not found. /usr/local/bin/pine: not found I appreciate the trouble you took in responding, if you can offer any further advice it is appreciated. Try ls -d /var/db/pkg/pine*; if that says no such file or directory, no match, or anything along those lines, you did not install Pine. If you have the ports tree and an Internet connection, cd /usr/ports/mail/pine make install. HTH, -- Josh Thanks Ben. On 7/18/03 3:21 PM, Joshua Oreman [EMAIL PROTECTED] wrote: On Fri, Jul 18, 2003 at 03:15:56PM -0400, Benjamin Gonzalez wrote: I am new with Unix and Free BSD. I am trying to use a mail program within free bsd, I figure I should be able to type in pine and have it come up. I loaded a version of pine I saw in the extra packages that came with my distribution disk of free bsd. I am sure it loaded, but when I type in pine it says pine: not found. Any help is greatly appreciated try /usr/local/bin/pine -- maybe /usr/local/bin is not in your $PATH -- Josh Thanks Ben ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Announce Broken Ports
On Fri, Jul 25, 2003 at 02:00:07PM -0300 or thereabouts, Leonardo Lazarte wrote: As seen in several messages to this and other lists, the PORTS mecanism has been broken. It only seems so because of the dependency on pkg_info -O. I have read about some patches and possible solutions, but I could not find an easy way to overcome the problem. CVSup /usr/src, cd /usr/src/usr.sbin/pkg_info, make install clean. Shouldn't it be announced clearly, on the FreeBSD site, that there is a problem with PORTS, perhaps pointing to some temporary solution, until the problem is solved? NO, IMO that would be quite inappropriate. The fix is simple. (It *would* be nice if someone could change bsd.port.mk to only use pkg_info -O if ${OSRELDATE} = 48, however :-) I have used FreeBSD for a decade, and it is the first time that I have to change the OS version due to problems broght from the distributions. A decade? Nope. Now -- July 2003 1.0 -- November 1993 So no, there HASN'T been a decade of FreeBSD. (I'm sure there'll be a party in November :-) -- Josh Leonardo -- Leonardo Lazarte - [EMAIL PROTECTED] Vox. +55(61)349 4923 Dep. de Matematica - Univ. de BrasiliaFax. +55(61)273 2737 ou 274 3910 Nucleo de Estudos da Sociedade da Informacao http://www.socinfo.unb.br ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: whats COMPAT_LINUX for?
On Sun, Jul 27, 2003 at 04:47:19PM -0700 or thereabouts, Kris Kennaway wrote: On Sun, Jul 27, 2003 at 03:19:36PM -0700, marlon corleone wrote: whats COMPAT_LINUX for in NOTES, cant find man pages about this. and also is it ok if to remove from kernel config this two lines: (freebsd-isp removed since this is off-topic for there). It compiles in Linux binary compatibility, also available as the linux.ko kernel module. device scbus # SCSI bus (required) ^^ device da since i have ni scsi device Yes (you'll have to remove any other devices that depend on SCSI support, e.g. umass). Eh? `da' can be removed, but I seem to remember some kernel compile failures from no `scbus'. -- Josh Kris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: whats COMPAT_LINUX for?
On Sun, Jul 27, 2003 at 06:30:12PM -0700 or thereabouts, Kris Kennaway wrote: On Sun, Jul 27, 2003 at 06:25:38PM -0700, Joshua Oreman wrote: On Sun, Jul 27, 2003 at 04:47:19PM -0700 or thereabouts, Kris Kennaway wrote: On Sun, Jul 27, 2003 at 03:19:36PM -0700, marlon corleone wrote: whats COMPAT_LINUX for in NOTES, cant find man pages about this. and also is it ok if to remove from kernel config this two lines: (freebsd-isp removed since this is off-topic for there). It compiles in Linux binary compatibility, also available as the linux.ko kernel module. device scbus # SCSI bus (required) ^^ device da since i have ni scsi device Yes (you'll have to remove any other devices that depend on SCSI support, e.g. umass). Eh? `da' can be removed, but I seem to remember some kernel compile failures from no `scbus'. Only if you have other devices that depend on SCSI support, e.g. umass. Then why does it say (required) in the comment? IIRC: * most umass failures are caused by lack of `da' * some kcompile failures (no SCSI devs) are caused by lack of `scbus' -- Josh Kris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: booting in graphical mode in fluxbox
On Mon, Jul 28, 2003 at 10:19:49PM -0700 or thereabouts, Charlie Schluting wrote: On Mon, 28 Jul 2003, marlon corleone wrote: how do i boot graphically in fluxbox? im booting up fluxbox in startx method, if i want to boot it in graphical mode, should i COMMENT this entry: exec /usr/X11R6/bin/fluxbox in my .xinitrc and put the entry in .xsession, is that all i have to do? Just try it and find out! But yes, you only need to put it in your .xinitrc. I don't even have a .xsession.. so I'm not sure what its for. I've never actually used exec to start a wm, just put: fluxbox in .xinitrc, along with other things I want to start. Here's the Right Way(TM) to do this: echo '#! /bin/sh' ~/.xsession cat ~/.xinitrc ~/.xsession chmod +x ~/.xsession # edit /etc/ttys and uncomment the line for xdm su root -c 'kill -HUP 1' # or reboot -- Josh --Charlie ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux emulation questions (was Re: tv-out under FreeBSD R4.8)
On Tue, Jul 29, 2003 at 04:43:13PM +0200 or thereabouts, dick hoogendijk wrote: On 29 Jul Antoine Jacoutot wrote: On Tuesday 29 July 2003 14:03, Franz Stieber wrote: I have a GeForce TI 4200 and TV out works great :) [ ... ] I'm using it under FreeBSD-4.8 with Linux emulation with no problem (and this is a very nice piece of software). Nice information, which makes me wonder.. I'd always waned to know if it is simply possible to just run (linux) programs under linux emulation. If so, HOW do you install those linux proggies? Do I do some kind of chroot and install them in the linux part of the system? Just get some binaries and put them wherever you want. Shared libraries must go in /compat/linux/lib or /compat/linux/usr/lib. I want to experiment with some linux stuff under freeBSD. Is this possible. And you need (linux) binaries I presume.. No tarballs? -- [off topic starts here] -- If you want something REALLY fun, try making a Linux from Scratch system on FBSD. You'll need to make two cross-compilers first: one build = FreeBSD host = FreeBSD target = Linux and one build = FreeBSD host = Linuxtarget = Linux (Linux emulation) Not for the faint of heart. (I couldn't do this, so maybe this is all wrong). -- [off topic ends here] -- For sane people, no tarballs, just binaries. :-) But yes, just put the programs wherever you want. But they must be branded: $ brandelf -f 3 myprog -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Calling all raid experts
On Tue, Jul 29, 2003 at 10:26:19AM -0500 or thereabouts, Darryl Hoar wrote: Greetings, I need to build a file server for our marketing departments documents and images. I want to use Freebsd. Since the data is large, and backups would be difficult I was wondering if RAID would be a solution. I thought that RAID 5 would be the ticket, but after reading up on it, maybe not. Isn't RAID 5 the one where if a disk fails, you plug a new one it and it regenerates the lost data ? You have two main choices: RAID-1 and RAID-5. If N is the number of disks and M is the size of the smallest disk, then... RAID-1 will give you M amount of space. As long as one disk still works, you can have multiple disks fail at the same time; just replace them and your data's back. Reads execute at N times the speed of single-drive reads. Writes are normal speed. RAID-5 will give you M*(N-1) amount of space. If one disk fails, you can replace it with no loss of data. But if two disks fail at the same time, your data's toast. Reads execute at about N times the speed of single-drive reads. Writes are slower than normal speed. -- Josh thanks, Darryl ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DVD Writer
On Tue, Jul 29, 2003 at 12:26:33PM -0500 or thereabouts, Darryl Hoar wrote: Greetings, I need to back up larger amounts of data. More than a CD-R could handle. I don't want to do tape as the drives are expensive. What is a good DVD writer drive to use with FreeBSD for the purpose of backing up data ? I am building a box so I would use a new version of FreeBSD. Use 5.x and get the Sony DRU500A (I think that's it; the internal IDE one with all the bells and whistles). Works perfectly for me. -- Josh thanks, Darryl ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NVIDIA Driver problem solved, but now cannot mount MSDOSFS?
On Wed, Jul 30, 2003 at 02:52:09PM -0700 or thereabouts, RexFelis wrote: To the people who made the suggestion that solved my problem, I offer my gratitude and thanks. My goal is to be able to play Neverwinter Nights on FreeBSD, so I don't need Linux or Windows anymore. That problem has been solved. Now I have attempted to mount my Windows partition, FAT32, so I could copy across the game files, and I get this message when I boot: mount: exec mount_msdosfs not found in /sbin, /usr/sbin: no such file or directory. [ ... ] Just to clear up this possible suggestion, Windows 2000 is installed on the first partition of the first hard disk. /dev/ad0s1 worked before I CVSUPped and built world. Once again... thank you all for your help. I hope I have not forgotten any information to include in my tiredness. Try replacing `msdosfs' with just `msdos' and uncomment the line. Reboot or `mount -a'. -- Josh Shannon __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: DNS server
On Wed, Jul 30, 2003 at 04:07:37PM -0600 or thereabouts, Jerry M. Howell II wrote: hi how i can install and configure DNS server in freeBSD???plzz tell me step by step It's outlined in many howto's and the handbook as well as google. Also the are some classes out there. If you work at it hard enough you might be suprised how easy it is to set up. Check out the DNS HOWTO at www.tldp.org. Has a few Linuxisms but still very good. -- Josh -- Jerry M. Howell II ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie problems with X11, Xf86
On Thu, Jul 31, 2003 at 01:06:11PM -0400 or thereabouts, Benjamin Gonzalez wrote: I installed X-Free86 - 4.2.0_1,1 from my Free BSD Cd using sysinstall and cannot get it to run. I see the directory X11R6 under /usr, I run 'xf86config' and it says 'command not found'. I typed 'XFree86 -configure' and it also says 'command not found'. I've looked for a file called /etc/X11/XFree86Config and it says 'No such file or directory'. I went back through sysinstall and reinstalled the X11 packages including XFree86-4.2.0 and still I get the above results. Could someone please explain what I am doing wrong, this is becoming frustrating. You didn't set your $PATH. Put this in your ~/.cshrc: setenv PATH $PATH:/usr/X11R6/bin (or if you're using bash, put this in your ~/.bashrc: export PATH=$PATH:/usr/X11R6/bin ). As for the config file, try this (as root): # cd /root # PATH=$PATH:/usr/X11R6/bin XFree86 -configure The screen should go black for a few seconds and the monitor will click some. When it's all over you should have a file called XF86Config.new (or some similar name). Try to start X with it (as root for this test): # PATH=$PATH:/usr/X11R6/bin XFree86 -xf86config /root/XF86Config* You should see a big gray screen with an X cursor in the middle. (That's the mouse). Try moving the mouse to make sure the mouse works. Try switching back to the text console (Ctrl+Alt+F1) and type as root: # PATH=$PATH:/usr/X11R6/bin DISPLAY=:0 xterm Switch back to X (Ctrl+Alt+F9) and there should be a window with a terminal emulator in it. (It's just a box, no title bar or anything; there isn't a window manager running. Yet.) Try typing some stuff in to make sure the keyboard works. Now kill the X server with Ctrl+Alt+Backspace. If anything didn't work, mail the mailing list about it. Otherwise, you're free to install a WM (I recomment /usr/ports/x11-wm/icewm, you may prefer /usr/ports/x11/kde3). Edit your ~/.xinitrc file and put this line in if you installed iceWM (replacing any other lines): exec icewm or this one if you installed KDE (again replacing any other lines): exec startkde Have fun! -- Josh Thanks. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: emacs - gnu, x ...?
On Thu, Jul 31, 2003 at 05:22:40PM -0500 or thereabouts, george donnelly wrote: I'd like to start getting into emacs, but there are so many versions and variations that I'm not sure which one to install from ports, eg we have gnu emacs and xemacs. which emacs should i install, use and learn? XEmacs, all the way. Though you may hear differently from others. -- Josh -- george donnelly ~ http://www.zettai.net/ ~ Quality Zope Hosting Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ MSN: [EMAIL PROTECTED] ~ ICQ: 51907738 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Xserver - non root startup error
On Sat, Aug 02, 2003 at 10:23:11AM +0300 or thereabouts, Alex Zivenko wrote: Hi all! When I am starting My X server like non root - it gives me an error containing: error in locking authority file .Xauthority But when i am a root - all perfect. What's the problem. I' sorry for my English su rm -f /home/USERNAME/.Xauthority* exit startx Obviously replace USERNAME with your username. -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: simple sh scripting. How to put a result of a command to avariable?
On Mon, Aug 11, 2003 at 06:35:17PM -0400 or thereabouts, Constantine wrote: Michael Conlen wrote: Constantine wrote: I am writing a script, which involves unzipping some files. I would have to unzip 4 different zip-files from some directory, and I would need to unzip them to the directory, which would have the same name in it as the original zip-file, i.e. I would like to run something like ls *.zip, have each file name recorded in some variable, and do a loop like unzip $filename[$i] -d $filename[$i].unzipped/. Can someone help me with the code? How can I put the results of a command to a variable? If I understand you properly I think the following would do what you want #!/bin/sh for i in `ls *.zip` do unzip ${i} -d ${i}.unzipped done Thank you very much indeed! Seems just what I wanted. But can I save the archive names in an array for further manipulation? Also, how can I type that apostrophe ` from my keyboard? For the array I think you do need bash. I'm not familiar with arrays in shell; someone else may be able to help you there. As far as the backquote (`), it seems you answered your own question by typing it into your email. (But the backquote is on the tilde (~) key, if you don't push shift). -- Josh Cheers, Constantine. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I forgot my O:line password
On Wed, Aug 13, 2003 at 05:46:48PM -0700 or thereabouts, Raymond Jimenez wrote: Joshua Oreman wrote: Hi Raymond, Do you have my encrypted O:line password for Wsynet? Or did you drop it when you unlinked me? :-) -- Josh O line? If I'm not mistaken, that's on your server... (I think) But for services, no, that's gone. Ah, okay, thanks for the info :-) I can relink you if you'd be able to spend some more time in general watching... (as in, don't let a 24-hr netsplit go unnoticed) Nah, it's okay. -- Josh P.S. `uname -a`: Linux webserver 2.4.20 #3 Wed Jul 16 20:39:31 PDT 2003 i686 unknown P.P.S. What channel(s) are you in? (on freenode + Wsynet) You weren't on freenode lately. P.P.P.S. I'm working on a client-server backup program using Mondo internally. It's still in the pre-alpha phase but some things (such as module loading and login) are working. Code @ http://www.get-linux.org/monitas-code/C++/. Some of the classes (Command and NamedCommand probably) might be useful in other programs. Feel free to rip them off :-) P.P.P.P.S. What do you think of ASM? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hi Quick question
On Fri, Aug 08, 2003 at 10:52:33PM -0500 or thereabouts, Eric Murphy wrote: Is there a command to browse files by pages? When ever I ls in a big dir, I can't shift page up for some reason. This is very annoying =( Option 1) ls | less #-or-#ls | more Option 2) press ScrollLock and then up/down arrow or pgup/pgdown -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: umask
On Thu, Aug 14, 2003 at 03:42:37PM +0200 or thereabouts, Antoine Jacoutot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi ! In my way to learn security under FreeBSD, I was wondering if a umask of 066 in login.conf was a good or bad idea ? Any thoughs ? I mean at first, I can't seem to find why this could be wrong, but I'm sure there's a reason why the default umask is set to 022. 066 will be *more* secure than 022. This is because a umask is deducted from the default permission bits of 666 (or 777 for executables) on new files. So a umask of 022 will cause new files to have a mode of 600 or 711. Here are some good (and not-so-good) umasks, in order of least- to most-secure: * 000 (666 or 777 -- PLEASE DO NOT USE) * 022 (644 or 755 -- default) * 027 (640 or 750 -- pretty good) * 077 (600 or 700 -- most secure) Usually people don't do umasks with a 6 because this can leave *only* executable bits on some parts of the mode; this is not very useful. -- Josh Thanks in advance. - -- Antoine Jacoutot [EMAIL PROTECTED] http://www.lphp.org PGP/GnuPG key: http://www.lphp.org/ressources/ajacoutot.asc -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/O5HQY3Hnhkr+5cQRArBzAJ0augtR1of8PZp4jES/0951LNtUZQCfQCjb go6GiRqK403T0rbU6fjhCdA= =pb9d -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fsck -F
On Wed, Aug 13, 2003 at 02:51:00PM +1000 or thereabouts, Andy Farkas wrote: Joshua Oreman wrote: fsck already runs at boot. Yes. But they won't run if the filesystem is marked ``clean''. Why would you want to fsck a clean disk? During every boot??? Actually, what shutdown -F does is touch /forcefsck. (In a similar vein, shutdown -f touches /fastboot). The rc scripts check this and add appropriate flags to the invocation of fsck (or in the case of /fastboot don't invoke it). You must be talking about another OS. FreeBSD's shutdown doesnt have -F or -f flag. I was giving the example in Linux that the OP asked about, so they could implement it under FBSD if they wanted. I said that in my mail, in the part you trimmed. One would check for the existence of /forcefsck in the rc scripts and, if it was there, run fsck *for that one boot* even if the filesystems were clean. Then /forcefsck would be removed so it didn't happen on the next boot. Shutdown *could* be patched to add an option for this if it was implemented in the rc scripts. Why one would want to do this, I don't know. But this was what the OP asked. -- Josh -- :{ [EMAIL PROTECTED] Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD loader and Linux
On Mon, Aug 11, 2003 at 10:55:18AM -0400 or thereabouts, John McDonnell wrote: I am not an expert and am rather new to the FreeBSD world though I have had some previous expieriance with Linux. Did you install Lilo at all? I think that when you install Linux, you have to install a boot loader with it, in the Linux partition and not the MBR if you don't want to over-write your current boot loader. I may be mistaken, and I'm sure someone will correct me if I'm wrong. No, that's correct. You must install either LILO or GRUB in your Linux partition. (Side note: I have two hard drives -- ad0 has linux (from scratch) and ad2 has FBSD 5.0. I made ad2 dangerously-dedicated (silly me!) so neither GRUB nor LILO will work in ad0. So I had to make a boot floppy.) Also, this is my first post to the mailing list, so if there is a format or something that I'm supposed to follow, please let me know. You're fine, but please quote the text you're replying to. Thanks! -- Josh Sincerely, John D. McDonnell --- John D. McDonnell Goroth Computing [EMAIL PROTECTED] ( freebsd ) [EMAIL PROTECTED] ( normal ) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using bc in bash script
On Thu, Aug 14, 2003 at 12:58:01PM -0500 or thereabouts, Stephen Hilton wrote: On Thu, 14 Aug 2003 18:34:25 +0100 Jez Hancock [EMAIL PROTECTED] wrote: On Thu, Aug 14, 2003 at 12:23:34PM -0500, Stephen Hilton wrote: On Thu, 14 Aug 2003 12:11:55 -0500 Charles Howse [EMAIL PROTECTED] wrote: Charles, This will set bc precision to 5 decimal places: et=`echo scale=5 ; $end_time - $start_time | bc` Ohhh, I was really hoping on that one...but no, it still reports 0 seconds. Sorry I jumped the gun there, the scale is needed for this to work but the date +%s willonly resolve into whole seconds after reading the date man page. I sure am curious as to how to solve this also, the /usr/bin/time command man page says this: -snip-- DESCRIPTION The time utility executes and times the specified utility. After the utility finishes, time writes to the standard error stream, (in seconds): the total time elapsed, the time used to execute the utility process and the time consumed by system overhead. -snip-- So that looks like seconds only also. The precision is in hundredths of a second as I understand it from playing with time(!): #!/bin/sh time_file=tmp.time time=time -a -o $time_file $time cat /var/log/messages /dev/null 21 $time cat /var/log/maillog /dev/null 21 awk '{sum+=$1}END{print sum}' $time_file rm $time_file which outputs: [18:34:03] [EMAIL PROTECTED] /home/munk# sh tmp.sh 0.01 This simple script just times each cat command and appends the output from time to the $time_file, then prints out the sum of the first columns of the time outputs found in the time file. Just an idea. -- Jez, Your shell script works fine for me, resolving to 100th's of a second. Looks like a good answer for Charles :-) I still am wondering why the date command does not have a format string for seconds (down to 100th's) like +%ss and also why the time command stops at 100th's when other programs resolve time to 5 or 6 decimal places ? All the good % things are taken :-) Here are three ways of doing it: % cat gettimeofday.c 'EOF' #include stdio.h #include sys/time.h int main() { struct timeval tv; struct timezone unused; gettimeofday (tv, unused); printf (%li.%li\n, tv.tv_sec, tv.tv_usec); return 0; } EOF % cc -o gettimeofday gettimeofday.c % ./gettimeofday; echo hello, world; ./gettimeofday 1060886109.667054 hello, world 1060886109.687446 % gettimeofday() { perl -MTime::HiRes=gettimeofday -e '($sec, $usec) = gettimeofday(); print $sec, ., $usec, \n' } % gettimeofday; echo hello, world; gettimeofday 1060886661.274900 hello, world 1060886661.313071 % gettimeofday2() { perl 'EOF' $now = pack (LL, ()); syscall (116, $now, 0) != 1 or die gettimeofday: $!; @now = unpack (LL, $now); print $now[0], ., $now[1], \n; EOF } % gettimeofday2; echo hello, world; gettimeofday2 1060887546.767676 hello, world 1060887546.938097 % rm gettimeofday gettimeofday.c % unset gettimeofday % unset gettimeofday2 The first one (the C program) works anywhere but you have to compile it. The second one (perl -MTime::HiRes...) works if you have either Time::HiRes from CPAN or perl=5.8. The third one (perl ... syscall 116 ...) is specific to FreeBSD/i386 and a bit slower, but it works. HTH -- Josh Thanks for sharing the info, Stephen Hilton [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: umask
On Thu, Aug 14, 2003 at 08:25:15PM +0200 or thereabouts, Antoine Jacoutot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 14 August 2003 20:19, Joshua Oreman wrote: 066 will be *more* secure than 022. I know that :) This is because a umask is deducted from the default permission bits of 666 (or 777 for executables) on new files. So a umask of 022 will cause new files to have a mode of 600 or 711. Yes I know, I was just wondering why the default behaviour was not very secure. * 077 (600 or 700 -- most secure) So, if I set umask to 077, this is OK, right ? Is there ANY cons ? None of the files you create, by default, will be accessible -- at all -- to anyone but yourself. You have to watch out for this if you're running a web/ftp server when you put files in the document root, for example. Thanks a lot for your answer Joshua. No trouble. -- Josh Antoine -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/O9QOY3Hnhkr+5cQRAnI6AJ4r4/ChIy/cDAqv2ZHrBCnDu2HotACeK5jx CBnqmfxoTPvdT4rZIUs8s0U= =sw1f -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tradeshow Crowd Pullers
On Wed, Aug 13, 2003 at 12:57:09AM +0100 or thereabouts, Claire Q'vant wrote: --- Joshua Oreman [EMAIL PROTECTED] wrote: On Tue, Aug 12, 2003 at 11:53:29PM +0100 or thereabouts, Claire Q'vant wrote: We're going to have a booth at a trade show in a few months, and we'd like to have a few machines running FreeBSD for people to play with. But, as a crowd puller, it'd be nice to have a graphical bootup sequence. I know it's not the 'done thing' for a server OS, but for a workstation OS, it's a very nice touch. Does anyone know of any code to do it? Any projects already started? I'm aware it'll have to be a kernel module, as it's the only thing running at that stage. I don't know if VGL and VESA will do it - it handles the 'splash' modules ok, but this module would require sysctl's to tell the module to display the next icon, e.g. Starting Network (greyed out icon) Network Started ok (Coloured icon) Network Start Failed (Coloured with cross through it) Has anyone seen anything like this? Is anyone keen? [ ... ] You may be able to use a combination of splash.ko and a custom X program to do what you want. -- Josh Claire Hmm. Starting X(albeit minimal) is not what I'm after, as it needs to appear as soon as the kernel is loaded - directly after the POST screen... The filesystem isn't mounted for a while after that, as the kernel detects hardware, and sets out resources, etc, and I'd like that to be graphical(represented, at least) It's worth consideration though, if nothing else happens... If you want a graphical dmesg, that's probably not going to be that useful. Will anyone *care* about 5 seconds of text? If you still want to cover it up, what you can do is put a splash screen up and then start a small X server ASAP (probably in /etc/rc). That's the closest you're going to get to what you want. -- Josh Claire Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help me on my freebsd machine
On Mon, Aug 11, 2003 at 12:59:22AM -0700 or thereabouts, amin wrote: HI I don't know is that true that they are saying that freebsd is a perfect machine for your network and acce ok I don't know how to start but I have been reading freebsd books for about 8 weeks but I have about tons of problems that I seems it was not a problem for any body else or maybe I am new I'm not able to see these things... I want to set up a gateway, with FTP access and mail and I have my own Static IP and domain so I want to set up a really complete server at my home. but it seems that if I go like this it will take for ever and I still in my first place... please help me what should I do where should I go What should I read As someone already said, start with the Handbook. But really if you want to learn, you can just try it and see how far you get :-) I did this myself, actually, but on Linux. At one point, I had FTP, SSH, SMTP, DNS, HTTP, POP, IMAP, HTTPS, MySQL, VNC, X, and Webmin servers running. Needless to say, this was a *HUGE* security hole. But I learned a lot! :-) -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fsck -F
On Wed, Aug 13, 2003 at 11:53:34AM +1000 or thereabouts, Andy Farkas wrote: On 6 Aug 2003, Lowell Gilbert wrote: David Bear [EMAIL PROTECTED] writes: on linux there is a -F option to force a fsck on reboot. I couldn't see the equivalent in freebsd. That's what /etc/rc.early is for. [man rc.early] Uhm, man fsck. fsck already runs at boot. Yes. But they won't run if the filesystem is marked ``clean''. Actually, what shutdown -F does is touch /forcefsck. (In a similar vein, shutdown -f touches /fastboot). The rc scripts check this and add appropriate flags to the invocation of fsck (or in the case of /fastboot don't invoke it). /fastboot would not work on FBSD as the fsck protection is enforced (in linux there's a warning but no error). But /forcefsck could still be implemented with suitable patches to your rc scripts and (optionally) shutdown. -- Josh -- :{ [EMAIL PROTECTED] Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tradeshow Crowd Pullers
On Tue, Aug 12, 2003 at 11:53:29PM +0100 or thereabouts, Claire Q'vant wrote: We're going to have a booth at a trade show in a few months, and we'd like to have a few machines running FreeBSD for people to play with. But, as a crowd puller, it'd be nice to have a graphical bootup sequence. I know it's not the 'done thing' for a server OS, but for a workstation OS, it's a very nice touch. Does anyone know of any code to do it? Any projects already started? I'm aware it'll have to be a kernel module, as it's the only thing running at that stage. I don't know if VGL and VESA will do it - it handles the 'splash' modules ok, but this module would require sysctl's to tell the module to display the next icon, e.g. Starting Network (greyed out icon) Network Started ok (Coloured icon) Network Start Failed (Coloured with cross through it) Has anyone seen anything like this? Is anyone keen? Yep, I have, twice, on Linux. :-( 1) The Linux bootsplash project (www.bootsplash.org IIRC) can do like FBSD ``splash'' module but with a progress bar. Also gives VCs a background pic. 2) Mandrake Linux does something a LOT like this. It doesn't cover up the kernel messages as it's not a kernel module; it starts as soon as the root fs is mounted. Basically, it involves starting up a minimal X server. Yes, on Linux X can run on the framebuffer (SC_PIXEL_MODE). Not sure whether it can on FBSD too. Then a custom X program was run to do exactly what you're talking about. You may be able to use a combination of splash.ko and a custom X program to do what you want. -- Josh Claire Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: signal 4 during buildworlds
On Mon, Aug 11, 2003 at 12:36:26PM -0400 or thereabouts, Bill Moran wrote: Hey, I'm getting sig 4 (core dumped) trying to buildworld. The has occurred 3 times now, at different places in the build. I'm used to seeing unreliable hardware cause sig 11's like this. But this has been a sig 4 each time. Can someone interpret this for me? Should I interpret the sig 4 the same as I would sig 11? Signal 4 is SIGILL. Signal 11 is SIGSEGV. Same difference (okay, not really, but treat it the same). -- Josh -- Bill Moran Potential Technologies http://www.potentialtech.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
SORRY (was: Re: I forgot my O:line password)
On Wed, Aug 13, 2003 at 06:56:24PM -0700 or thereabouts, Joshua Oreman wrote: On Wed, Aug 13, 2003 at 05:46:48PM -0700 or thereabouts, Raymond Jimenez wrote: Joshua Oreman wrote: OH N! ::screams::in::agony:: Sorry about this, folks. Didn't mean to cc: (most of my mail goes to fbsd-questions, so I guess this one slipped thru). Please forget this happened... :-O -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mfs
On Wed, Aug 13, 2003 at 05:58:29PM - or thereabouts, [EMAIL PROTECTED] wrote: Hi all, I'm trying to setup /var on a mermory file system on Freebsd 5.1, any good documents that will help me, it's my first time. Don't set up /var on MFS, it holds stuff that has to be preserved across reboots. To set up /tmp on a MFS (for this one boot), do like so: # mv /tmp /tmp.old # mkdir /tmp # MD=`mdconfig -a -t swap -s XXXm`# replace XXXm with size # newfs /dev/$MD # mount /dev/$MD /tmp # unset MD It will disappear when the system goes down. -- Josh Thx ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing Timezones
On Mon, Aug 11, 2003 at 01:03:49PM -0400 or thereabouts, Dragoncrest wrote: Ok, it seems I've found my problem for why my cron jobs are running 4 hours early. But I'm unsure how to fix this. Does anyone know the command I need to run to set my timezone back to GMT, or what file do I need to remove so that it thinks that it's running on GMT again?? rm /etc/localtime will switch back to GMT. To change your timezone, make a symlink from /etc/localtime to /usr/share/zoneinfo/Region/City in TZ. -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Debugging symbols with nasm
On Sat, Aug 16, 2003 at 09:14:30AM +0300 or thereabouts, Vladimir Ciobanu wrote: I'm not sure whether this is the best list to post to, but it's my first guess. I'm using nasm to compile some code I wrote. The developer-handbook suggests I use -f elf, so that's what I did. Then I linked it with ld. The program works as expected, but I can't debug it with gdb; it reports no debugging symbols found. I've tried to get the possible debugging formats nasm can output, and I get null for both elf and aoutb ( ld can't even link aoutb .o files ). Is there a way I could debug my nasm-compiled assembler sources, preferably with gdb ? I don't mind any binary format that can run on FreeBSD, nor any other linker. Any suggestions are welcome. GDB is just too good for debugging ASM stuff. I recommend ALD, the Assembly Language Debugger. Install /usr/ports/devel/ald, and run `ald myprogram'. It doesn't need debug symbols beyond what NASM already provides :-) -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Definition of interfaces in ifconfig
On Sat, Aug 16, 2003 at 05:57:18PM -0500 or thereabouts, Charles Howse wrote: I'm currently running a custom kernel, with just the cpu specified and maxusers = 0 I edited a new copy of that, took out quite a bit more that I don't need - raid, scsi, wi-fi, pcmcia, etc. I did: # cd /usr/src/sys/i386/conf # /usr/sbin/config CUSTOM1 # cd ../../compile/CUSTOM1 # make clean # make depend # make FAILURE! Last line of output: Umass.o(.text+0x1c13): more undefined references to 'xpt_done' follow *** Error Code 1 Stop in /usr/src/sys/compile/CUSTOM1 Assuming that the error is in my editing of the kernel config file, I have added it below. Any advice would be appreciated! Look at these comments carefully. ...snip... #device scbus # SCSI bus (required) #device da # Direct Access (disks) ...snip... deviceumass # Disks/Mass storage - Requires scbus and da ^ -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mouse with scroll....
On Sun, Aug 17, 2003 at 03:31:40AM +0400 or thereabouts, Denis wrote: Hi All!!! Does anybody know how in freebsd use mouse with 3 button and one scroll? --snip /etc/XF86Config (or /etc/X11/XF86Config)-- Section InputDevice Identifier Mouse0 Driver mouse Option Protocol ImPS/2 # you need this # ... Option Buttons 3 # and this ^ Option ZAxisMapping 4 5 # and this EndSection --snip-- -- Josh -- Best regards, Denis [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mouse with scroll....
On Sun, Aug 17, 2003 at 06:22:46PM +0400 or thereabouts, Denis wrote: Hi! Sunday, August 17, 2003, 3:52:44 AM, you wrote: JO On Sun, Aug 17, 2003 at 03:31:40AM +0400 or thereabouts, Denis wrote: Hi All!!! Does anybody know how in freebsd use mouse with 3 button and one scroll? JO --snip /etc/XF86Config (or /etc/X11/XF86Config)-- JO Section InputDevice JO Identifier Mouse0 JO Driver mouse JO Option Protocol ImPS/2 JO # you need this JO # ... JO Option Buttons 3 JO # and this ^ JO Option ZAxisMapping 4 5 JO # and this JO EndSection JO --snip-- JO -- Josh Hey, Thanks! It works! That's cool! Do you happen to know how i can to set an action for 4th button? First, change Option Protocol to Auto, as someone has commented and see if it still works. You mean your mouse has 3 normal buttons and a scroll wheel? Or 2 buttons, wheel press, and scroll? If it has 3 things you can press, they'll work normally. If it has more, I think you can use xmodmap(1). -- Josh -- Best Regards, Denis. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mouse with scroll....
On Sun, Aug 17, 2003 at 12:37:00PM +0200 or thereabouts, Benjamin Walkenhorst wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, On Sonntag, 17. August 2003 01:52 Joshua Oreman wrote: On Sun, Aug 17, 2003 at 03:31:40AM +0400 or thereabouts, Denis wrote: Hi All!!! Does anybody know how in freebsd use mouse with 3 button and one scroll? --snip /etc/XF86Config (or /etc/X11/XF86Config)-- Section InputDevice Identifier Mouse0 Driver mouse Option Protocol ImPS/2 # you need this # ... Option Buttons 3 # and this ^ Option ZAxisMapping 4 5 # and this EndSection --snip-- Don't you need to enter a device-file as well? My XF86Config contains a line - --- OptionDevice/dev/sysmouse - --- To get the mouse wheel working, I have to change that line, too, don't I? What do I have to put there? /dev/psm0? I left a # ... comment in there, didn't you see? :-) If you're using mouse to copy/paste in the console, you need /dev/sysmouse in XF86Config. Otherwise use /dev/psm0 (PS/2 mice) or /dev/ums0 (USB mice). -- Josh Thanks in advance, kind regards, Benjamin - -- Benjamin Walkenhorst eMail: [EMAIL PROTECTED] homepage: http://www.krylon.de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Public Key available at http://www.krylon.de iD8DBQE/P1rMoYumWdMvhMQRArb/AKCOih/3tIRWDv++WHzwHG9OpuecUwCdHZq6 UYEUa42vVRVwlx2spcaLvIY= =hIl7 -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: permission in apache
On Sun, Aug 17, 2003 at 03:10:41PM +0100 or thereabouts, Jez Hancock wrote: On Sun, Aug 17, 2003 at 05:29:11AM -0700, Mike Maltese wrote: This shouldn't have anything to do with UNIX permissions. You'll get this error (403) if there is no document by the name specified in the DirectoryIndex directive (defualt is index.html) and the directory does not have the Indexes option (display directory contents). So either create index.html in that directory, or add Indexes to the Options for that directory to view the list of files. These options can be set on a per-vhost basis. A 403 error would occur if a DirectoryIndex file exists (index.html say) and permissions on that file in the DocumentRoot were such that it can't be accessed by the apache user. Further it could be the case that permissions on the file itself, say /usr/local/www/vhost/index.html, were 755 but still the error occurs. Usually this is because the permissions on a parent directory somewhere up the directory tree are set so that the apache user can't read files under that directory structure. For example /usr/local/www might be set to 750 and owned 'root:wheel' - so the 'other' group (which the apache user falls into) cannot read files under that directory tree. In summary make sure the EUID user apache is running as has access to the DocumentRoot directory as well as the files it needs to access of course. FWIW you can check if the apache user has perms to read somefile.txt by doing: echo ls -al somefile.txt | su -fm www Won't work. Non-apache-related-example: % id -u 1000 % ls /etc/master.passwd /etc/master.passwd % less /etc/master.passwd /etc/master.passwd: Permission denied You need to actually read the file - something like `dd if=somefile.txt of=/dev/null' should work. -- Josh as root. -- Jez http://www.munk.nu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How does one erase a FreeBSD disk (slice) label?
On Tue, Aug 19, 2003 at 01:41:49AM -0700 or thereabouts, Dan Strick wrote: How does one erase a FreeBSD disk (slice) label? [ ... ] Boot MS Windows and FORMAT the slice? Wouldn't work; FORMAT is braindead. Disable the code in /sys/kern/subr_diskslice.c that protects disk labels and build a new kernel? Should work, if you want to. But remember to enable it again! Go back in time and kill the person that wrote this code before he wrote it? LOL Learn to love penguins? No way! Please help ... I am slowly going crazy... Boot from a FIXIT floppy/CD and try erasing it there. -- Josh Dan Strick [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Customize Daily Run Report
On Wed, Aug 20, 2003 at 07:09:43AM -0500 or thereabouts, Charles Howse wrote: Hi, I have the following in /usr/local/etc/periodic/daily/100.cvsup #!/usr/local/bin/bash /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile When I get my daily run report, the output of the above script is appended to the report without a blank line or (what I would call) a header line. Would it be acceptable to modify my script as follows: #!/usr/local/bin/bash Echo which.file Echo Output of /usr/local/etc/periodic/daily/100.cvsup: which.file /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile Where 'which.file' is the daily run report? This is a littly picky, I know. To your script, the daily run report is a file called /dev/fd/1 :-) So just: echo echo Output of CVSup: /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile -- Josh Thanks, Charles ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kuser/root account problem
On Wed, Aug 20, 2003 at 04:26:24PM +0300 or thereabouts, Jimmy Kimanzi wrote: Hi I used the kuser utility in KDE to add a user to the wheel group and it seems to have deleted the root account and I can't login as root now . Anyone know how I can fix this ? I'm running FreeBSD 5.1 - RELEASE and KDE 3.1.2. Try Ctrl+Alt+F1, then login as root. I think kuser probably forgot to run pwd_mkdb -- lucky for you :-) If that doesn't work, follow the instructions for a forgotten root password ('tis in the FAQ). When you're in single user mode, try `grep root /etc/master.passwd'. If something comes back, type `passwd root' to reset root's password. If nothing comes back, you'll have to add a line for root manually in /etc/master.passwd. Then run pwd_mkdb /etc/master.passwd. Whatever you do, type `exit' or Ctrl+D now. -- Josh Jimmy. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Extract Single Port from CVSUP
On Wed, Aug 20, 2003 at 02:58:09PM +0100 or thereabouts, G D McKee wrote: Hi all I want to extract one port from a cvsup server at a certain date in time. I know you can do it for the whole tree, but is there a way of doing it for a single port. You should really use anoncvs for this. Find an anoncvs server near you (see the Handbook), and do this (bourne-style shell assumed): $ export CVSROOT=the-cvsroot-it-says-to-use-in-the-handbook $ cvs login Logging in to $CVSROOT CVS password: press enter [ With luck, it should accept you. If it says server max connection limit exceeded or something equally depressing, try again later. ] $ cvs checkout -D date-and-time port-name $ cvs logout $ unset CVSROOT -- Josh Thanks in advance Gordon ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dvd+rw-tools
On Thu, Aug 21, 2003 at 02:19:32PM +0100 or thereabouts, Wayne Pascoe wrote: Hi all, Sorry for the load of posts this week, but I've got a new toybox and they aren't working well... I'm trying to use dvd+rw-tools port to burn DVD's. My first problem was that after burning a DVD, I was unable to eject it. I had to reboot the machine and only then could I get the disc out. Otherwise, it appears to have burned ok. Now I'm trying to erase the disc so I can try burning a larger volume. I've tried using dvd+rw-format, as follows: dvd+rw-format /dev/cd0 I then got * DVD±RW format utility by [EMAIL PROTECTED], version 4.5. * 4.7GB DVD-RW media in Sequential mode detected. - media is not blank - you have the option to re-run dvd+rw-format with: -force[=full] to enforce new format or mode transition and wipe the data; -blank[=full] to change to Sequential mode. I've since tried dvd+rw-format -force=full /dev/cd0 and dvd+rw-format -blank=full and both returned the error: * DVD±RW format utility by [EMAIL PROTECTED], version 4.5. * 4.7GB DVD-RW media in Sequential mode detected. - [unable to umount]: Bad file descriptor Has anyone successfully written or erased DVD-RW media on FreeBSD 5.1 using this tool from ports ? Just overwrite with growisofs. dvd+rw-format should only be used ONCE. -- Josh Thanks in advance. -- Wayne Pascoe The thing is, I was POSITIVE that I wasn't actually depressed, just that life had no meaning and I was tired of living. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: file picker
On Thu, Aug 21, 2003 at 11:36:24AM -0500 or thereabouts, Walter wrote: Hi All, I want to run a cron job to upload a different image file to a web site as a new background every night. I need a way to automatically select a different file from a directory which I will populate over time, and then feed that name to the upload script. I can't find anything like this in the ports. Can someone suggest a utility, script, et cetera, for this? Otherwise, I'm prepared to write my own, but I don't want to re-invent the wheel, as the saying goes. Thanks. To select a random file from the directory, try this:- DIR= the directory nfiles=$(ls -1 $DIR | wc -l | tr -d ' ') fileno=$(( ($RANDOM % $nfiles) + 1 )) FILE=$DIR/$(ls -1 $DIR | head -n $fileno | tail -n 1) # $FILE now contains the full pathname of the file to # upload. I'm sure you can handle the upload task :-) # # Note: this script may re-use the same file later. To # prevent this, add a line below the upload: # mv $FILE /somewhere/else/ # That way the directory will only contain unused files. -- Josh Please CC me as I'm not currently subscribed to the List. Walter ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How does one erase a FreeBSD disk (slice) label?
On Thu, Aug 21, 2003 at 02:49:09AM -0700 or thereabouts, Dan Strick wrote: Go back in time and kill the person that wrote this code before he wrote it? LOL What does LOL stand for? Laughing Out Loud -- Josh Dan Strick [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: file picker
On Thu, Aug 21, 2003 at 06:49:06PM -0500 or thereabouts, Walter wrote: Josh, Sorry to bother you, but the $RANDOM symbol returns a blank. Do I need to initialize something? On bash/zsh $RANDOM returns a random number. On sh it's apparently undefined. To define it, do RANDOM=$( perl -e 'srand; print int(rand()*10)%32767' ) OTOH, is there a shell command to extract the day of the month from the string returned by 'date'? I think now I'd prefer to do that. To do that (if you don't have enough files in the directory it will wrap around), do: DIR= the directory nfiles=$(ls -1 $DIR | wc -l | tr -d ' ') fileno=$(( ($(date +%d) % $nfiles) + 1) FILE=$DIR/$(ls -1 $DIR | head -n $fileno | tail -n 1) (The command is date +%d). -- Josh Thanks. Walter Joshua Oreman wrote: On Thu, Aug 21, 2003 at 11:36:24AM -0500 or thereabouts, Walter wrote: Hi All, I want to run a cron job to upload a different image file to a web site as a new background every night. I need a way to automatically select a different file from a directory which I will populate over time, and then feed that name to the upload script. I can't find anything like this in the ports. Can someone suggest a utility, script, et cetera, for this? Otherwise, I'm prepared to write my own, but I don't want to re-invent the wheel, as the saying goes. Thanks. To select a random file from the directory, try this:- DIR= the directory nfiles=$(ls -1 $DIR | wc -l | tr -d ' ') fileno=$(( ($RANDOM % $nfiles) + 1 )) FILE=$DIR/$(ls -1 $DIR | head -n $fileno | tail -n 1) # $FILE now contains the full pathname of the file to # upload. I'm sure you can handle the upload task :-) # # Note: this script may re-use the same file later. To # prevent this, add a line below the upload: # mv $FILE /somewhere/else/ # That way the directory will only contain unused files. -- Josh Please CC me as I'm not currently subscribed to the List. Walter ___ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portupgrade problem (was Re: orphaned port?)
On Sat, Aug 23, 2003 at 04:05:05PM -0700 or thereabouts, paul beard wrote: I am having this problem as well on any port I try to install. I have rebuilt pkgdb from scratch. === Installing for p5-SNMP_Session-0.95 === Generating temporary packing list === Checking if net/p5-SNMP_Session already installed *** Error code 1 Stop in /usr/ports/net/p5-SNMP_Session. *** Error code 1 Stop in /usr/ports/net/mrtg. [ ... ] Then breaking it down to run just the first command makes me wonder what's wrong with pkg_info. [/usr/ports/net/mrtg]:: /usr/sbin/pkg_info -q -O net/p5-SNMP_Session pkg_info: illegal option -- O usage: pkg_info [-cdDfGiIkLmopqrRsvVx] [-e package] [-l prefix] [-t template] [-W filename] [pkg-name ...] pkg_info -a [flags] the O option doesn't seem to be in the man page, so I'm not sure what's up. This is a VFAQ lately. You need FBSD 4.7 or better. -- Josh -- Paul Beard http://paulbeard.no-ip.org/movabletype/ whois -h whois.networksolutions.com ha=pb202 E Pluribus Unix ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cvsup script question
On Mon, Aug 25, 2003 at 03:32:25PM +0100 or thereabouts, Marco Gon?alves wrote: Hi, i did some minor alterations to the script by #!/usr/local/bin/bash /usr/local/bin/cvsup -g -L 0 /etc/cvsupfile # Keep quiet except for errors /usr/local/sbin/portsdb -Uu /dev/null # Hopefully, show only errors /usr/local/sbin/pkgdb -aF /bin/echo /bin/echo Updated ports: /usr/local/sbin/portversion | grep # Show only changed ports but strangly, at least for me, is that the 2nd line the output is not being redirected to /dev/null and if i execute this script i still get lots of output... I bet portsdb is putting its progress messages on standard output. (Programs seem to do that a lot, since stderr is unbuffered). Try: /usr/local/sbin/portsdb -Uu /dev/null 21 || { echo FAILED to run portsdb; exit 1 } That will not give you the error output, but if there's an error it will say so and exit. (You can run portsdb manually and see!) -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: motd question
On Mon, Aug 25, 2003 at 12:37:44PM -0400 or thereabouts, Louis LeBlanc wrote: Probably not possible, but I was wondering (and have for some time, though I can't find any info on it either way) whether /etc/motd is strictly a text in/text out file, or if there is a way to get it to execute a command, the output of which is to be included in the text output? You could make it a FIFO and put a Perl script or something at the other end, if you want dynamically-generated output. For example: --snip-- #!/usr/bin/env perl use constant FILE = /etc/motd; use POSIX qw/setsid mkfifo/; # Comment these if you want it to run in foreground: exit 0 if fork; setsid; while (1) { unless (-p FILE) { unlink FILE; mkfifo FILE, 0644; } my $fortune_msg; open FORTUNE, /usr/bin/env fortune | or die Can't open pipe from fortune: $!\n; $fortune_msg .= $_ while FORTUNE; close FORTUNE; open FIFO, .FILE or die Can't open .FILE. for writing: $!\n; print FIFO $fortune_msg; close FIFO; sleep 2; } --snip-- would generate a `fortune' message every time someone read motd. Run it like so: # /path/to/fortunemotd.pl Note that this script will *DELETE YOUR EXISTING MOTD*... back it up first. If you want to use this for something else, for example a .signature, change the `use constant FILE = the-file-goes-here-in-quotes' line. If you have two (or more) of these things running, it can produce unexpected results. Be careful. -- Josh TIA Lou -- Louis LeBlanc [EMAIL PROTECTED] Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org Ô¿Ô¬ Make it right before you make it faster. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Proc Size Mismatch
On Mon, Aug 25, 2003 at 07:14:03PM +0200 or thereabouts, Ian Barnes wrote: Hi, I am running a 4.7 stable machine on a p1 120. With 16meg of ram. ITs function is a secondary DNS server. IT has been running very stable until this weekend. The machine froze for some or other reason. Upon reboot, i was told it couldnt FSCK the drives and I had to do it manually. Okay, cool, fine, no problem, did it manually, and got it to boot. Now when i login and try and type something, these are the errors im getting: [ ... ] userland out of sync with kernel, recompile libkvm etc ^^ [ ... ] Any ideas anyone ? Do i need to format and reload ? What can i do to help this? RTS -- and buildworld/installworld. -- Josh Ian P.S. Oh, i was doing a buildworld when i froze! Weird. Try re-cvsupping maybe. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Looking for detailed documentation: Install to existingfilesystem
On Mon, Aug 25, 2003 at 11:52:54AM -0700 or thereabouts, Avleen Vig wrote: On Sun, Aug 24, 2003 at 03:36:41PM -0500, Charles Howse wrote: Hi, I've posted this request to 'questions' with no response, so now I'll ask 'hackers'. I'm a hobbyist, and for my personal education, I would like to learn how to install FBSD from an existing filesystem, rather than from FTP or CD. My intention is to copy the files to a directory on the second HDD of my present FBSD system, and point sysinstall to that partition/directory during the install. This may not answer the questions you posed, but it may be a good start for you. You have two options i can think of, if you want to mimic a traditional /stand/sysinstall installation process. 1) install an FTP server, and choose an FTP install. 2) export the hard drive over NFS, and use that. Or, a better way which I would recommend: download the source code, and put if on the second drive. We'll assume /usr/src and /usr/obj are mounted on the *second* hard drive. Run something like this: cd /usr/src make buildworld a flag* * the 'a flag' is a flag I don't recall off the top of my head, but * it lets you change which drive / other mounted location, the new * build is installed to. Maybe someone else can help here? make buildkernel then when you want to install to a third hard drive, mount it as the location give in 'a flag' to make on the previous step, then run: make make installkernel make installworld mergemaster that should isntall the compiled sources to the new drive pretty quickly. Wrong. The process would be something like: cd /usr/src make buildworld make buildkernel KERNCONF=kernel-config-name-or-GENERIC mount /dev/new-hd /mnt/point make installkernel make installworld DESTDIR=/mnt/point mergemaster reboot -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: National Security Backdoor in telnetd - all versions.
On Mon, Aug 25, 2003 at 11:22:12PM -0400 or thereabouts, Kevin shampoo Nadeau wrote: Hello [ ... ] telnetd is infected with a national security backdoor in all non-source compiled versions of FreeBSD, NetBSD and OpenBSD. If you download the source code for telnetd and compile it to compare the file size of the stock or out of the box version of telnetd versus the source-compiled version - you will clearly see a difference - which is the backdoor. This information should be forwarded to CERN and the BSD and Linux development teams. [ ... ] Please don't feed the troll. The size difference is in stripped vs non-stripped, btw. -- Josh [ ... ] Kevin shampoo Nadeau ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mounting linux ext3 partition
On Tue, Aug 26, 2003 at 01:03:33AM -0400 or thereabouts, dave wrote: Hello, I'm trying to mount a linux ext3 partition. I understand that it's possible to do it using the ext2 kernel driver so i've recompiled a kernel with that option in it. When i do: mount_ext2fs /dev/ad1 /mnt this is what i get. ad1: 38166MB WDC WD400AB-32CDB0 [77545/16/63] at ata0-slave UDMA100 ext2fs: ad1: wrong magic number 0 (expected 0xef53) WARNING: mount of ad1s1 denied due to unsupported optional features ext2fs: ad1: wrong magic number 0 (expected 0xef53) WARNING: mount of ad1s1 denied due to unsupported optional features ext2fs: ad1: wrong magic number 0 (expected 0xef53) ext2fs: ad1: wrong magic number 0 (expected 0xef53) ext2fs: ad1: wrong magic number 0 (expected 0xef53) I think your drive is marked dirty. Please mount/umount it in Linux and try again. BTW: ext3 is compatible w/ext2 *ONLY* when the dirty bit is unset. When it is set, journal rollback is necessary which only ext3 can handle. -- Josh Any help appreciated. Dave. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Detect floppy diskette
On Tue, Aug 26, 2003 at 08:17:35AM -0500 or thereabouts, Charles Howse wrote: Hi, Using bash, how can I silently check to see whether there is a floppy diskette in the drive? When I do: # mount /dev/fd0 /mnt dev/null 21 I still get an error msg on screen. Probably the message is generated by the kernel and cannot be ignored. Try this: % perl use POSIX qw/:fcntl_h dup2 setsid/; if (fork) { exit; } setsid; my $fd = POSIX::open /dev/null, O_WRONLY or die Can't open /dev/null: $!\n; dup2 $fd, 0; dup2 $fd, 1; dup2 $fd, 2; sleep 5; system sudo mount /dev/fd0 /mnt; %# wait for an error within 5 seconds or so If no error appears, I think you forgot the / on /dev/null up there :-) Make sure to unmount the floppy afterwards. If there is an error, it proves that it was/is a kernel message. -- Josh Thanks, Charles ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: motd question
On Mon, Aug 25, 2003 at 11:02:55AM -0700 or thereabouts, Joshua Oreman wrote: On Mon, Aug 25, 2003 at 12:37:44PM -0400 or thereabouts, Louis LeBlanc wrote: Probably not possible, but I was wondering (and have for some time, though I can't find any info on it either way) whether /etc/motd is strictly a text in/text out file, or if there is a way to get it to execute a command, the output of which is to be included in the text output? You could make it a FIFO and put a Perl script or something at the other end, if you want dynamically-generated output. [ ... ] Be careful. Really! This approach can come back and bite you in the butt. Basically, be absolutely sure the writer process is started during bootup. Otherwise it'll hang indefinitely when logging in; you need to drop to single-user to fix it. -- Josh TIA Lou -- Louis LeBlanc [EMAIL PROTECTED] Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org Ô¿Ô¬ Make it right before you make it faster. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Detect floppy diskette
On Tue, Aug 26, 2003 at 03:19:57PM -0500 or thereabouts, Charles Howse wrote: Try this: #!/usr/bin/perl use POSIX qw/:fcntl_h dup2 setsid/; if (fork) { exit; } setsid; my $fd = POSIX::open /dev/null, O_WRONLY or die Can't open /dev/null: $!\n; dup2 $fd, 0; dup2 $fd, 1; dup2 $fd, 2; sleep 5; system sudo mount /dev/fd0 /mnt; Maybe I'm doing something wrong, all this script does is run and exit with status 0, whether I have a diskette in the drive or not. No output to screen or anything. Does nothing happen for 5 seconds? Good! That means you can trap the error. (Read my previous email). ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Detect floppy diskette
On Tue, Aug 26, 2003 at 03:00:23PM -0500 or thereabouts, Charles Howse wrote: Try this: % perl use POSIX qw/:fcntl_h dup2 setsid/; if (fork) { exit; } setsid; my $fd = POSIX::open /dev/null, O_WRONLY or die Can't open /dev/null: $!\n; dup2 $fd, 0; dup2 $fd, 1; dup2 $fd, 2; sleep 5; system sudo mount /dev/fd0 /mnt; %# wait for an error within 5 seconds or so If no error appears, I think you forgot the / on /dev/null up there :-) Make sure to unmount the floppy afterwards. If there is an error, it proves that it was/is a kernel message. Looks good, now...I have to insert this perl code into a bash script as a function. This generates a syntax error: #!/usr/local/bin/bash Chkflp(){ /usr/bin/perl add EOF to the end of this line use POSIX qw/:fcntl_h dup2 setsid/; if (fork) { exit; } setsid; my $fd = POSIX::open /dev/null, O_WRONLY or die Can't open /dev/null: $!\n; dup2 $fd, 0; dup2 $fd, 1; dup2 $fd, 2; sleep 5; put EOF on a new line here } remainder of bash script But I think you misunderstood me. This script will check to see whether you *can* trap the error. Run it manually on the command line, wait a few seconds, see if you get an error w/o a floppy in the drive. If no error, great; put this in bash script: FloppyInDrive() { perl 'EOF' use POSIX; my $fd = POSIX::open /dev/null, POSIX::O_WRONLY or die can't open /dev/null; dup2 $fd, $_ for (0, 1, 2); exec dd if=/dev/fd0 of=/dev/null bs=1k count=1; EOF return $? } until FloppyInDrive; do echo please insert floppy and press enter; read key; done -- Something like that. This is how it looks on my Linux box (sorry, no FreeBSD example yet): bash-2.05a# FloppyInDrive() { perl 'EOF' use POSIX; my $fd = POSIX::open /dev/null, POSIX::O_WRONLY or die can't open /dev/null; dup2 $fd, $_ for (0, 1, 2); exec dd if=/dev/floppy/0 of=/dev/null bs=1k count=1; EOF return $? } bash-2.05a# insert floppy bash-2.05a# until FloppyInDrive; do echo please insert floppy and press enter; read key; done eject floppy bash-2.05a# SysRq : Changing Loglevel Loglevel set to 9 until FloppyInDrive; do echo please insert floppy and press enter; read key; done end_request: I/O error, dev 02:00 (floppy), sector 0 please insert floppy and press enter end_request: I/O error, dev 02:00 (floppy), sector 0 please insert floppy and press enter insert floppy eject floppy bash-2.05a# SysRq : Changing Loglevel Loglevel set to 3 until FloppyInDrive; do echo please insert floppy and press enter; read key; done please insert floppy and press enter please insert floppy and press enter insert floppy bash-2.05a# If the original errors, well, maybe the above will work anyway. Maybe it won't. Oh well. -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: can't login as anyone - not even as root!
On Thu, Aug 28, 2003 at 09:20:47AM -0700 or thereabouts, Dave Banning wrote: All of a sudden, I can't login, even as root. I tried to set the password of root to nil (because I happened to be logged in as root at the time) and that didn't work either. Then, thinking that the machine was acting up, I rebooted. Now I am in deeper. I can't even access the machine. Any idea why this would happen, or more important, how I can get out? Ctrl+Alt+Del [if you get the fancy menu, choose boot in single-user mode; otherwise...] Booting [kernel] in 9 seconds... press space OK boot -s [ ... ] use /bin/sh fsck -p mount -a ktrace -o /root/login.out login root Password: type your root password Login failed press Ctrl+C kdump /root/login.out | mail [EMAIL PROTECTED] -s Re: can't login as anyone - not even as root! Note: my syntax for kdump/ktrace may be a bit off, see their man pages. -- Josh __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question on CVS Branches
On Fri, Aug 29, 2003 at 09:46:36PM +0200 or thereabouts, [EMAIL PROTECTED] wrote: Quoting Chuck Swiger [EMAIL PROTECTED]: Heinrich Rebehn wrote: [ ... ] Thank you. Yet another question: I would like to update my source tree automatically each night. However the cvs login requires a password to be typed in. Is there any way to automate this? Strangely, the cvs man page does not even mention the login command. The documentation for CVS is not especially well-known for being inclusive. Are you using CVS over SSH or in pserver mode? The first case requires you to set up password-less SSH authentication via ssh-keygen, the latter uses the cvs login mechanism. -- -Chuck I use CVSROOT=:pserver:[EMAIL PROTECTED]:/home/ncvs. Is it possible to specify the password on the command line with cvs login (it isn't secret anyhow)? How exactly do i set up password-less authentication over SSH ? I wont be able to create an SSH key and copy it over to the server?? Try CVSROOT=:pserver:anoncvs:[EMAIL PROTECTED]:/home/ncvs Replace password with the password, of course. -- Josh - Heinrich - This mail sent through IMP: http://horde.org/imp/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The VI editor
[Please break your lines at a manageable length -- 72 is good] On Sat, Aug 30, 2003 at 04:30:10AM +0200 or thereabouts, mats wrote: Hi I have trouble using vi and vim under freebsd, under linux red hat it was working perfect. The trouble is that the arrow-keys doesn't work when I'm in insert mode. I have heard that it's important to use the right terminalprogram. In vim it's ok with the fancy swedish letters with dots over, but the arrow-keys doesn't work. FreeBSD comes with the standard vi, not vim. (unless you install the vim port) So the arrow keys work in command mode, but not in insert mode? That's a feature, not a bug.(TM) If the arrow keys didn't work at all, then I would say check $TERM. But as it is, it's probably a design decision in FBSD vi more than anything. Try the vim port, if you haven't already. -- Josh /Mats ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sudoer file
On Sat, Aug 30, 2003 at 01:19:14AM -0700 or thereabouts, Desmond Lee wrote: Hello I'm having problems setting up sudo. I want to let a user 'dlee' be able to mount and umount the cdrom. All I add in the /user/local/etc/sudoers file is the following: dlee localhost = NOPASSWD: mount /cdrom, umount /cdrom But when I do a 'sudo -v' (logged in as dlee) it says that dlee can run sudo under the machine. Does `hostname' report localhost? If not, change the localhost to whatever `hostname' reports. Right now the wheel group consists of root and dlee. If I uncomment and put in the following line: %wheelALL=(ALL) ALL then the user dlee still cannot do any sudo commands even though the user dlee can su as root? AFAIK, more specific sudo lines (dlee) override less specific (%wheel). Is there something that I'm doing wrong here? I've looked up the sudo and sudoers man pages and did some searching online but can't really get anywhere. Check your hostname. Or just use ALL. -- Josh Any help is appreciated. Thanks Desmond ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling ports
On Sat, Aug 30, 2003 at 03:55:57PM -0400 or thereabouts, Adam Bender wrote: [ ... ] I then wanted to use portupgrade, which installs: # uname -a FreeBSD 68.162.128.185 4.7-RELEASE FreeBSD 4.7-RELEASE #1: Sat Nov 16 20:36:05 EST 2002 [EMAIL PROTECTED]:/usr/src/sys/compile/adam i386# pkg_info | grep portupgrade portupgrade-20030723 FreeBSD ports/packages administration and management tool s but isn't found: # portupgrade su: portupgrade: command not found I'm about ready to pull my hair out. Any help is greatly appreciated. Try /usr/local/sbin/portupgrade -- Josh Adam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: find -type not working on release 5.1?
On Sat, Aug 30, 2003 at 09:26:03PM -0300 or thereabouts, Herculano de Lima Einloft Neto wrote: Hello, I'm getting something like this: ]$ find /etc -type d -tinvalid option -y invalid option -p invalid option -e invalid option d unknown file Make sure you really are typing find /etc -type d, with the -type after the /etc. Something like this: find -type d /etc, would return those errors. One other thing.. ]$ ls x* doesn't seem to work right either.. it's returning all the files..? g* works though.. I don't know what you mean by works/doesn't work. Could you elaborate a little here? -- Josh Thanks in advance for any help. -- Herculano de Lima Einloft Neto [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dump
On Mon, Sep 01, 2003 at 10:15:08AM -0400 or thereabouts, Michael Alestock wrote: I had a question I have 4 filesystems that I want to dump(8) to my SCSI Tape backup drive (Travan 4GB uncompressed). The filesystems are, /, /usr, /var, and /usr/home. All four filesystems equal about 2.5Gigs of data. I dumped the first filesystem / by executing, dump -0uf /dev/sa0 / then executed, mt -f /dev/sa0 eom to move the tape to the end of the backup (to append to the tape), then dumped the second filesystem (/usr) using,dump -0uf /dev/sa0 /usr. Then once again I executed, mt -f /dev/sa0 to move the tape to the end (to append to it). When I go to execute, restore -if /dev/sa0 to confirm that both filesystems were saved so far, there's only ONE filesystem saved to the tape /. I can't 'cd' to /var because it's not on the tape. What am I doing wrong??? I know I still have plenty of tape left to save other filesystems, but it's not dumping anything after the first filesystem. Any ideas as to what I'm doing wrong?? First, no need to run eom. So backup goes like this: # for FS in / /usr /usr/home /var; do dump -0uf /dev/sa0 $FS done mt -f /dev/sa0 rewind To restore, you have to skip the tape to the correct position (read up on mt fsf). Then you can run `restore if /dev/sa0' to get files from *THAT PARTITION ONLY*. So if you wanted to restore a file in / but not /var or /usr (assuming rewound tape), do: # restore -if /dev/sa0 like you tried. To restore a file on /usr (assuming above order) on a rewound tape, do: # mt -f /dev/sa0 fsf # restore -if /dev/sa0 To restore a file on /usr/home, rewound tape, do `fsf 2'. To restore a file on /var and rewound tape, use `fsf 3'. To rewind the tape: # mt -f /dev/sa0 rewind It may be useful to keep a catalog as the first file on the tape. So you might want to do something like this before a backup of multiple file systems on one tape: # mt -f /dev/sa0 erase # CAREFUL! this erases previous backup! # dd of=/dev/sa0 EOF Backup of `hostname` made on `date +%D` sector 0: this catalog fsf1: / fsf2: /usr fsf3: /usr/home fsf4: /var EOF # dump 0uf /dev/sa0 / # dump 0uf /dev/sa0 /usr # dump 0uf /dev/sa0 /usr/home # dump 0uf /dev/sa0 /var # mt -f /dev/sa0 rewind Using this kind of thing, you can see exactly where each backup is located. To get to a certain backup, do: # mt -f /dev/sa0 rewind # dd if=/dev/sa0 catalog will be output assumes you want to restore a file from /usr/home, fsf 3 # mt -f /dev/sa0 fsf 3 # cd /usr/home # restore if /dev/sa0 Note that when restoring a file system other than /, paths are relative to the root of that filesystem. So, for example, if you're restoring from /usr backup, then /usr/X11R6 is actually /X11R6. /home will be there, but empty (it's a mount point). Also, in the above catalog, file numbers really start at 1; I was simplifying it so it would be easy to see exactly what you need to give to mt. -- Josh Thanks, Michael ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PPP and the backslash-containing AT command in ppp.conf
On Mon, Sep 01, 2003 at 05:38:10PM +0200 or thereabouts, Michael Vondung wrote: Malcolm wrote: Sould work if you use '', that is: ATFN9 which the first interpretation reduces to: ATF\\N9 Thank you! This worked indeed. After an hour of frustrating fiddling I also figured out that the string I needed for this particular ISP was ATF\N10 rather than ATF\N9 -- and yet another hour later I managed to figure out that my user name needed to be in a different format (very cryptic and well hidden on the ISP's pages) than the one used in the ISP's dialer software for Windows. (User PPP is almost too verbose.) So, PPP now connects just fine. The only problem is that FreeBSD doesn't recognise this connection as its primary connection to the Internet. Up until this point, the FreeBSD box used the shared Internet connection of a Windows XP system (a situation I'm attempting to reverse). Even when the PPP connection is established, ping, traceroute, etcetera go via the LAN to the XP box ... and time out because the XP machine doesn't have an active connection to the Internet. Probably off topic under this subject line, but would you know where I should start looking? route(8) and netstat -rn Ask your ISP what to set your default route to, then set it in /etc/rc.conf (defaultrouter) and reboot. (You don't have to reboot, but that makes it easier). -- Josh Thanks! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dump
On Mon, Sep 01, 2003 at 08:38:03AM -0700 or thereabouts, Joshua Oreman wrote: On Mon, Sep 01, 2003 at 10:15:08AM -0400 or thereabouts, Michael Alestock wrote: I had a question I have 4 filesystems that I want to dump(8) to my SCSI Tape backup drive (Travan 4GB uncompressed). The filesystems are, /, /usr, /var, and /usr/home. All four filesystems equal about 2.5Gigs of data. I dumped the first filesystem / by executing, dump -0uf /dev/sa0 / then executed, mt -f /dev/sa0 eom to move the tape to the end of the backup (to append to the tape), then dumped the second filesystem (/usr) using,dump -0uf /dev/sa0 /usr. Then once again I executed, mt -f /dev/sa0 to move the tape to the end (to append to it). When I go to execute, restore -if /dev/sa0 to confirm that both filesystems were saved so far, there's only ONE filesystem saved to the tape /. I can't 'cd' to /var because it's not on the tape. What am I doing wrong??? I know I still have plenty of tape left to save other filesystems, but it's not dumping anything after the first filesystem. Any ideas as to what I'm doing wrong?? Please use /dev/nsa0 and not /dev/sa0, my bad. -- Josh Thanks, Michael ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: your mail
On Tue, Sep 02, 2003 at 12:37:21PM -0700 or thereabouts, Ed Alley wrote: On Tue, 2003-09-02 at 14:32, Ed Alley wrote: I'm running FreeBSD-4.8. Sometimes the file permissions for /dev/null get mysteriously changed by some unknown process to: crw--- 1 root wheel 2, 2 Sep 2 11:20 /dev/null On Tue, 2003-09-02 Adam McLaurin wrote: That's very strange indeed. Have you tried using chflags to prevent the permissions from being changed? This should do the trick, albeit a dirty hack. Sorry, I didn't mention that I tried setting flags on /dev/null: chflags schg /dev/null What happens is that sendmail complains that it can't open /dev/null. Hey! I just realized that this may be a clue! Does sendmail fiddle with /dev/null? What happens if sendmail tries to lock /dev/null after it opens it? Does schg prevent fcntl from locking /dev/null, if that is what sendmail uses? No. No. No. schg prevents anyone from writing to said file/device :-( -- Josh Ed Alley ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ghost for FreeBSD
On Wed, Sep 03, 2003 at 01:12:25PM + or thereabouts, Mark wrote: - Original Message - From: Vincent Poy [EMAIL PROTECTED] To: Mike Tancsa [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 2:22 PM Subject: Re: Ghost for FreeBSD cd /mnt/root /sbin/dump -L -f- /|restore -rf- cd /mnt/var /sbin/dump -L -f- /var|restore -rf- cd /mnt/usr /sbin/dump -L -f- /usr|restore -rf- I have heard this before, but I never understand this part. :) How does creating a /mnt/root directory, and restoring in that directory get my / slice back? Then the restored data will just sit in /mnt/root! What good does it there? Or should I create /mnt/root as partition, about equal in size to the root partition, and then restore therein, and do the old switcheroo in /etc/fstab later, to make it the root partion? I have successfully restored /var and /usr, on occasion; but that is rather easy, as they can be unmounted. With the root partition, that is not possible, of course. Short of having to switch cables on harddisks, is there a software method that will allow me to restore/switch the root partion? To mirror the root partition to another: # mkdir /mnt/root # mount /dev/ROOT-MIRROR-DEV /mnt/root # cd /mnt/root # /sbin/dump -f- / | restore -rf- You will not *need* to umount the root partition. (If you wanted to hot-swap between them, I'm not sure it's possible on FBSD. There is a ``pivot_root'' syscall on linux, though.) To mirror another partition, do mostly the same thing, but replace / with the partition in the dump line (and make sure the correct destination is mounted on your current directory for the restore). Dump/restore is pretty much the accepted way of doing this. -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Booting bit-by-bit (rc.conf broken)
[Format recovered] On Wed, Sep 03, 2003 at 03:05:22PM +0100 or thereabouts, Colin Watson wrote: My rc.conf file appears to be broken in some way, and this is preventing my system from booting. It boots to a heavily resticted system, with only the / file system mounted and the statically linked binaries available. Problem is, I can't edit my rc.conf or remove it. Is their any way I can either selectivly execute statements in the rc.conf during bootup (similar to the old dos method), or a way I can force login, so I can remove the damaged rc.conf. Yes. # fsck -p # mount -uw / # vi /etc/rc.conf# or any other editor or # mv /etc/rc.conf /etc/rc.conf.BROKEN # mount -ur / # exit or # reboot -- Josh Thanks Colin. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Ghost for FreeBSD
On Wed, Sep 03, 2003 at 02:27:03PM + or thereabouts, Mark wrote: - Original Message - From: Joshua Oreman [EMAIL PROTECTED] To: Mark [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 4:08 PM Subject: Re: Ghost for FreeBSD cd /mnt/root /sbin/dump -L -f- /|restore -rf- cd /mnt/var /sbin/dump -L -f- /var|restore -rf- cd /mnt/usr /sbin/dump -L -f- /usr|restore -rf- I have heard this before, but I never understand this part. :) How does creating a /mnt/root directory, and restoring in that directory get my / slice back? Then the restored data will just sit in /mnt/root! What good does it there? Or should I create /mnt/root as partition, about equal in size to the root To mirror the root partition to another: # mkdir /mnt/root # mount /dev/ROOT-MIRROR-DEV /mnt/root # cd /mnt/root # /sbin/dump -f- / | restore -rf- You will not *need* to umount the root partition. Ok; what you have done is made a dump on the root mirror device; great! But how do I now tell FreeBSD to use that restored partition as /? Edit /etc/fstab to effect the change for the next boot? I have a nagging suspicion it will then still boot off the old / slice. Ah, that's right. You have to edit /etc/fstab *AND* tell the kernel. I'm not sure exactly what you need to do to boot from a different root device; maybe someone will fille me in? -- Josh - Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Suggestions to a command line editor
On Wed, Sep 03, 2003 at 10:50:47AM -0400 or thereabouts, Gerard Samuel wrote: Well I've been using FreeBSD for the past maybe 4 years now. I've been using ee (don't laugh) to do all my editing on the command line. Im looking to grow out of ee into something else. Naturally, something that can open/edit files. And if possible, I've heard of editors with color syntax highlighting, search/replace, and other voodoo, that ee isn't capable of. In general, I edit FreeBSD system files, php/html and related files. Any suggestions are welcome, while I look through the ports to see if anything jumps out at me... Thanks for any tips you may provide... I like emacs (actually xemacs) though I'm sure others think differently. Vim is good too. -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: applications
On Wed, Sep 03, 2003 at 12:01:58PM -0400 or thereabouts, Doug Love wrote: A friend recommends your OS over Linux for my home system. I've taken a 2 day Linux Admin course, and know just about that much. I don't see a quick answer on your webpages to my questions. Where can I find Fortran Basic Search the ports; I don't know about those languages. A Database similar to Access But without the pretty interface? Try MySQL. With a pretty web-based interface? MySQL + phpmyadmin. Spreadsheets Gnumeric or OpenOffice spreadsheet or KSpread (part of KOffice) Pkzip There's a program called `zip' and one called `unzip' in ports. I hear a lot about the system being a server, but all I need to do is browse the web and use email similar to Netscape. How easy is it to set up? Pretty easy. For Web browser use KDE Konqueror, Mozilla, Galeon, Opera, or Dillo; for mail use KMail, Mozilla, Thunderbird (not in ports yet but should be someday), Sylpheed, or Evolution; if you want console-based email (VERY clean but a bit... err... different) try mutt or pine. By your program descriptions above it seems you've come from Windows. I think you'll find the KDE desktop most familiar (GNOME works too). -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to start gnome?
On Wed, Sep 03, 2003 at 10:58:51AM -0700 or thereabouts, Ronnie Clark wrote: I just loaded Gnome 2.2.2 from ports. Does anyone know the command to put into .xinitrc to run gnome2? I tried the following: exec gnome exec gnome2 They do not work. exec gnome-session perhaps? -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: adding freebsd boot to grub
On Wed, Sep 03, 2003 at 12:16:39PM -0700 or thereabouts, Desmond Lee wrote: Hello I was originally running win98 and freebsd4.8 on a box with 2 hard drives. 1 disk had win98 and the other had freebsd. Everything worked fine. But I then installed redhat 9.0 on the first disk with win 98. Now the Grub only knows how to boot dos and linux, but no freebsd. There is a article about this on the freebsd page: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/multi-os/ch3.html. This is almost the same scenario as me. However, I do not want to do a complete install of all 3 operating systems. Is it possible to just reinstall freebsd on my 2nd hard drive again and get grub to recognize it is there? See what DOS and Linux do. If one of those actually boots FreeBSD, rename it. If not, do this at the grub prompt (assuming your FBSD slice is (hd1,1) in GRUB): grub rootnoverify (hd1,1) grub chainloader +1 grub boot -or- (this one's better) grub root (hd1,1,a) grub kernel /boot/loader grub boot -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to run a program as a daemon
On Wed, Sep 03, 2003 at 03:42:59PM -0400 or thereabouts, David Banning wrote: I am running tmda-ofmipd for my smtp server and occasionally it dies. I wonder how I could set it up to run so that if it dies for some reason, it will start up again. Right now, it starts in my rc.local like so; /usr/local/bin/tmda-ofmipd -R imap://localhost -u tofmipd The only way I can think of doing it is to set up a crontab entry to a program that would check if it is still running, and if it is not, then have it start it again. I was hoping there is an easier way, maybe by putting it in inetd.conf or something... You can use /etc/ttys for this (despite the name). -- Josh -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Two X sessions on one machine???
On Thu, Sep 04, 2003 at 12:44:20PM -0400 or thereabouts, Louis LeBlanc wrote: On 09/04/03 04:50 PM, Markie sat at the `puter and typed: SNIP http://linux.about.com/library/bl/open/newbie/blnewbie4.3.6.htm Looks about right, I remember doing this a long time ago but couldn't remember how. Thanks for making me get some motivation to make myself look it up :o) SNIP There are a hundred other questions, like how do you get an xsession to start different WMs or even different configurations of the same WM based on the display? Test the variable $DISPLAY or $display (not sure) in your .xsession; it is a shell script, after all. Not sure .xinitrc is a shell script, but it may be. If so, that stuff will work there too. -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Undo MBR
On Thu, Sep 04, 2003 at 05:58:38PM -0400 or thereabouts, Paul Murphy wrote: On Thu, 4 Sep 2003 17:38:04 -0400 Matthew Seaman [EMAIL PROTECTED] wrote: Errr... That's a little excessive. The quick way to remove the FreeBSd boot manager and restore a standard MBR is: # boot0cfg -B -b /boot/mbr ad0 (The OP might want to do that on his data disk ad2 as well). No changes to the filesystems on those disks should be necessary. THAT'S what I was looking for! I knew it should have something to do with boot0cfg, just didn't read the man page closely enough I guess. Hmm, problems... # boot0cfg -B -b /boot/mbr ad0 # boot0cfg: /boot/mbr: unknown or incompatible boot code You need # fdisk -B -b /boot/mbr ad0 -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: chkrootkit-0.40 FreeBSD 5.1
On Fri, Jun 06, 2003 at 11:21:47AM -0700 or thereabouts, [EMAIL PROTECTED] seemed to write: Is there a problem with 'chkrootkit-0.40' on 5.x? It tells me that some of the files are infected (I know for a fact that they're not).. Files reported as infected: /usr/bin/chfn /usr/bin/chsh /bin/date /bin/ls /bin/ps localhost# uname -a FreeBSD localhost.tuxsux.org 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Wed Jun 4 06:09:58 MST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KADAFI i386 Yes. It gives false positives for these 5 commands. -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undo a rm -rf
On Sat, Jun 07, 2003 at 12:15:50AM -0400 or thereabouts, David Loszewski seemed to write: I just did a rm -rf and forgot the *.png portion that I wanted on it, lol, 2 years of using freebsd and I've never done anything this stupid. Is there a way to get my data back? Please respond to this email address. Short answer: No. Medium answer: Restore it from a backup. What? You weren't making backups? I guess you will from now on... Oh, if you unmounted the filesystem RIGHT AWAY (drop to single user), you may be able to recover the files (a slim chance :-) Google for recover-files-after-rm. HTH, -- Josh Dave ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: your mail
On Tue, May 27, 2003 at 04:21:42PM +0200 or thereabouts, Jeandre du Toit seemed to write: How do you turn of the console bell (using software)? I looked at termcap, I don't think that has anything to do with it. /usr/sbin/kbdcontrol -b off|visual|normal `off' - no bell `visual' - blink screen `normal' - ring bell -- Josh Thanks Jeandre ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Dark lines on monitor
Hello -questions, I've been using my monitor, an HP Pavillion M70, for about 2 years. But just the other day, all of a sudden, gray lines started appearing on lines containing black - the more black, the more gray on the *whole* line across the monitor. It happens both on X and console (but on the console, it's only really noticable when hiliting stuff). The funny thing is, the same monitor works fine on another computer in Windows. Can anyone shed some light on this? Maybe my video card is bust. Thanks, -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dark lines on monitor
On Tue, May 27, 2003 at 09:08:53PM -0500 or thereabouts, Dan Nelson seemed to write: In the last episode (May 27), Joshua Oreman said: I've been using my monitor, an HP Pavillion M70, for about 2 years. But just the other day, all of a sudden, gray lines started appearing on lines containing black - the more black, the more gray on the *whole* line across the monitor. It happens both on X and console (but on the console, it's only really noticable when hiliting stuff). The funny thing is, the same monitor works fine on another computer in Windows. .. also using the same resolution and refresh rate? I don't know: I brought the monitor (under warranty) to BestBuy - they plugged it in to their M$ box and it worked fine. Brought it back home - still same problem/ If you're using custom modelines, try dropping to a standard refresh rate. Or if your monitor and video card support DPMS, remove all modelines from your config file, put option dpms in your Monitor section, and let X determine a good refresh rate. Good advice, but it happened on console too - even at standard 80x25. BTW: How can I know if my monitor supports DPMS? -- Josh -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Dark lines on monitor
On Wed, May 28, 2003 at 09:27:54AM -0500 or thereabouts, Dan Nelson seemed to write: In the last episode (May 27), Joshua Oreman said: On Tue, May 27, 2003 at 09:08:53PM -0500 or thereabouts, Dan Nelson seemed to write: In the last episode (May 27), Joshua Oreman said: I've been using my monitor, an HP Pavillion M70, for about 2 years. But just the other day, all of a sudden, gray lines started appearing on lines containing black - the more black, the more gray on the *whole* line across the monitor. It happens both on X and console (but on the console, it's only really noticable when hiliting stuff). The funny thing is, the same monitor works fine on another computer in Windows. .. also using the same resolution and refresh rate? I don't know: I brought the monitor (under warranty) to BestBuy - they plugged it in to their M$ box and it worked fine. Brought it back home - still same problem/ Then the monitor's probably fine.. If you're using custom modelines, try dropping to a standard refresh rate. Or if your monitor and video card support DPMS, remove all modelines from your config file, put option dpms in your Monitor section, and let X determine a good refresh rate. Good advice, but it happened on console too - even at standard 80x25. If it happens in text mode, it's not FreeBSD's fault :) Could be the video card going bad, although I haven't seen your symptoms before myself. BTW: How can I know if my monitor supports DPMS? Check the manual. Accoring to hp.com, yours does. http://www.hp.com/cposupport/prodhome/hppavilion18300.html Yep... silly me. Right after I sent that, I realized I *was* using DPMS to write this! I guess my video card's gone bad. Thanks for all the help, -- Josh -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Need guidance in choosing mail clients
On Thu, May 29, 2003 at 10:36:34AM +0200 or thereabouts, Joachim Dagerot seemed to write: I am using Evolution as it is now, I have never tried any other mailclients for X. I do miss an oportunity to choose sender each time I post a message, only way to solve that is to set up multiple accounts, and that certainly don't affect me. In Evolution it's basically only the sort messages in thread that's really useful. Based on the two criterias above (Possibility to have multiple sender addresses on one account, and messages sorted in threads) can you give me some hints on good software? I use Mutt. It's console-based, but it is infinitely configurable, has the features you want, and is a whole lot faster than X-based clients. My $0.02, -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sleep for specified time
On Thu, May 29, 2003 at 03:41:59PM +0530 or thereabouts, Anurag Chaudhary seemed to write: someone please tell me how to make a kld sleep for specified number of microseconds its urgent. nanosleep (microseconds*1000); -- Josh Thanx Anurag _ Watch Hallmark. Enjoy cool movies http://server1.msn.co.in/sp03/hallmark/index.asp Win hot prizes! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portable coproccesses, openpty, forkpty?
On Thu, May 29, 2003 at 07:01:21PM +0200 or thereabouts, Gabriel Ambuehl seemed to write: Hi, ok maybe I'm offtopic here, if so please excuse me ;-). I need to implement a coprocess feature (a.stdin gets fed to b.stdin and b.stdout becomes a.stdin, so basically replacing stdin with a processed version thereof). Now the most obvious approach would be to use pipes to redirect stdin/stdout of the two processes but unfortunately, Stevens' Advanced Programming in the UNIX environment notes that this will result in deadlocks if stdio is used. And as I tend to trust Stevens on such issues, I went looking further in the book and he says the only way to do totally transparent coprocesses is with ptys. Now as I understand it, BSD and SysV use different syntax to get ptys and so I'm wondering how to implement coprocesses in a portable way (on FreeBSD, it seems easy, forkpty does most of the work I need it to do but is it portable? Doesn't seem to be POSIX). I'd appreciate any comments, pointers, RTFM's, code snippets, whatever. Yep, forkpty()/openpty() is definitely not POSIX. (Under FBSD, you have to #include libutil.h and link with -lutil to use it.) However, the source code of forkpty() and openpty() is in /usr/src/lib/libutil/pty.c, and you could put that file in your program's directory, and link with a simplified version of that (but you might have to change the function names). Then you would be portable (hopefully :-) -- Josh TIA regards, Gabriel ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sleep for specified time
On Fri, May 30, 2003 at 09:04:50AM -0400 or thereabouts, Lowell Gilbert seemed to write: someone please tell me how to make a kld sleep for specified number of microseconds its urgent. nanosleep (microseconds*1000); In the kernel? Surely not. I think you'd need to explicitly run the scheduler, and probably use a timer event to resume later. There are established techniques for these things, but the BSD kernel details aren't my specialty... Sorry, I really am not familliar with the kernel. I just figured, nanosleep is a syscall, so it should work in kernel... Sorry again, -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: fdisk/disklabel - Error: unable to write data to disk ad0
On Sat, May 31, 2003 at 07:05:56PM +0200 or thereabouts, Herbert seemed to write: Hei! On Thursday May 29th I installed FreeBSD 5.1 Beta2. The next day I've update to CURRENT from May 30th. I have a 60 GB ATA harddisk and during installation I created only 1 20 GB slice for FreeBSD. Today I wanted to use the other 40 GB of my hard disk and create two more slices each 20 GB. Well, fdisk reports that the disk geometry is wrong and sets it to 7476/255/63, the same disk geometry the BIOS reports. When I try to save the changes in fdisk, I get the following error messages: Error: Unable to write data to disk ad0 Disk partition write returned an error status! It's GEOM preventing you from shooting yourself in the foot. Feature, not bug :-) Hmm, I tried both in multiuser and singleuser mode. Finally I booted with the floppies I had used to setup FreeBSD 5.1B2. Fdisk also reports that the disk geometry is wrong and sets it to 7476/255/63. But creating the slices and saving the changes did work: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) [snip] The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BS [snip] The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) [snip] The data for partition 4 is: UNUSED Now I have booted FreeBSD from hard disk and try to create partitions within the new slices. But again I get: Error: unable to write data to disk ad0 Now I am booting with the install floppies again. I guess this is working fine. Any ideas what I am doing wrong? Nothing - you should boot from install floppy to partition any drive which is even partially being used, even if you don't change the used parts. (I had this problem too due to a swapspace on the drive.) HTH, -- Josh Regards, Herbert ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: IDE CD-R/RW Burning Software
On Sun, Jun 01, 2003 at 08:28:07PM -0400 or thereabouts, Justin P. Michel seemed to write: Greetings, Is there a package available for multiple format CD-R/RW recording? I've used dd and burncd in combination, and that works great for Mode 1, 1 track CD's. However, I'm having problems with multiple track CD's (ie. mixed mode, or mode 2). If anyone knows of something available (preferably with a GUI in X), please post information on where to find it. [Please wrap lines at about 75 characters.] burncd can do that - man burncd. -- Josh On a second note to that, if anyone is willing to work on an application for FreeBSD/X, and has direct CD programming experience, please let me know. Regards, Justin P. Michel -- J Continuum ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Pressing key changes resolution
On Sun, Jun 01, 2003 at 08:41:53PM -0500 or thereabouts, Thomas Kernes seemed to write: This is really odd, I hope someone can help me here: I just upgraded (using the ports) to Gnome 2.2. Now when I press a key on the keyboard, the display resolution changes, but no echo. Did I mess up the keyboard map or something? I have had no luck finding a remedy. FreeBSD 4.8-STABLE Thank you. Search the archives - this was discussed just last week. (Basically, uninstall XFree86 and reinstall XFree86-libraries, then XFree86.) -- Josh -- Thomas Kernes [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem compiling the C/C++ reference for Kdevelop
On Wed, Jun 04, 2003 at 12:57:24PM -0400 or thereabouts, J. Seth Henry seemed to write: I recently started playing around with Kdevelop 2.x on my server, and found it much improved over the older releases. Getting into it, I decided to download and compile the C/C++ reference documentation, and ran into a snag. I'm not sure if it is because the configure script is having problems running on a FreeBSD box or what, but here is what I get: alexandria# ./configure checking build system type... i386-unknown-freebsd4.8 checking host system type... i386-unknown-freebsd4.8 checking target system type... i386-unknown-freebsd4.8 checking for a BSD compatible install... /usr/bin/install -c checking for -p flag to install... yes checking whether build environment is sane... yes checking for mawk... no checking for gawk... no checking for nawk... nawk checking whether make sets ${MAKE}... yes checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking dependency style of gcc... gcc checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc checking whether g++ supports -fno-exceptions... yes checking whether g++ supports -fno-check-new... yes checking whether g++ supports -fexceptions... yes checking how to run the C++ preprocessor... g++ -E checking whether g++ supports -frepo... yes checking for ld used by GCC... /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes checking for /usr/libexec/elf/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... pass_all checking for ranlib... ranlib checking for strip... strip checking whether -lc should be explicitly linked in... (skipping, using no) no checking for objdir... .libs checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes finding the maximum length of command line arguments... 36865 checking if gcc supports -c -o file.o... yes checking if gcc supports -fno-rtti -fno-exceptions ... yes checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... freebsd4.8 ld.so checking command to parse /usr/bin/nm -B output... ok checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for dlopen in -ldl... no checking for dlopen... yes checking for dlfcn.h... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no creating libtool updating cache /dev/null checking host system type... i386-unknown-freebsd4.8 checking build system type... i386-unknown-freebsd4.8 ltcf-cxx: with_gcc=yes ; with_gnu_ld=yes checking for objdir... .libs checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes finding the maximum length of command line arguments... 36865 checking if g++ supports -c -o file.o... yes checking if g++ supports -fno-rtti -fno-exceptions ... yes checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... freebsd4.8 ld.so checking command to parse /usr/bin/nm -B output... ok checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for dlopen in -ldl... no checking for dlopen... yes checking for dlfcn.h... yes checking whether a program can dlopen itself... no appending configuration tag CXX to libtool checking for msgfmt... /usr/local/bin/msgfmt checking for gmsgfmt... /usr/local/bin/msgfmt checking for xgettext... /usr/local/bin/xgettext checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for
Re: NFS Problems...
On Thu, Jun 05, 2003 at 01:03:17AM +0200 or thereabouts, Bernd Walter seemed to write: On Wed, Jun 04, 2003 at 02:21:29PM -0700, jle wrote: I retired my old p200 fbsd 4.4-stable web server and built a newer box for it. I used to mount the /home2 dir from my nfs server (fbsd 5.1-current) to /home on the webserver and it used to work fine but now it doesn't mount /home2 on /home on boot up. I can manually mount it but then it gets confused and thinks it's mounted on /home2 when it's not. Evidently something must have changed since 4.4-S because it worked until today. on NFSD: (/etc/exports) /home2 -maproot=0 -alldirs httpd on HTTPD: (/etc/fstab) NFSD:/home2 /home nfs rw,bg 0 0 manually mounting mount NFSD:/home2 /home [EMAIL PROTECTED]:~ -13:55:06- # cd ~dkdesign -su: cd: /home2/dkdesign: No such file or directory Not surprising, because you mounted on /home not /home2. [EMAIL PROTECTED]:~ -13:58:45- # cd /home/dkdesign/ [EMAIL PROTECTED]:/home/dkdesign -14:02:21- # ls -al drwxr-xr-x 2 dkdesign dkdesign 512 Mar 13 09:15 public_html/ Yes - that's /home, only /home2 is failing... Works as designed. From /var/log/httpd-error.log: [Wed Jun 4 13:56:45 2003] [error] [client xxx.xxx.xxx.xxx] File does not exist: /home2/dkdesigns/public_html/ I don't get it. Any help? ed /etc/fstab /home2 s/home/home2/ This should be s/home2/home/ or it'll have a line with home22 -- Josh w q -- B.Walter BWCThttp://www.bwct.de [EMAIL PROTECTED] [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undo a rm -rf
On Sat, Jun 07, 2003 at 05:45:20PM +0800 or thereabouts, Robert Storey seemed to write: On Fri, 6 Jun 2003 21:36:46 -0700 Joshua Oreman [EMAIL PROTECTED] wrote: On Sat, Jun 07, 2003 at 12:15:50AM -0400 or thereabouts, David Loszewski seemed to write: I just did a rm -rf and forgot the *.png portion that I wanted on it, lol, 2 years of using freebsd and I've never done anything this stupid. Is there a way to get my data back? Please respond to this email address. On Linux, I've installed Libtrash, a trashcan which works even at the console. I think it's just a series of scripts, but it works superbly. I tried installing it on FBSD, but it failed to compile, exiting with this error message: /usr/bin/ld: cannot find -ldl *** Error code 1 If I knew what I was doing, I'd surely try to port Libtrash to FBSD. Sadly, I'm not a knowledgeable developer, just a dumb user. If anyone is interested: http://www.m-arriaga.net/software/libtrash/ That's me, I'm interested (and a knowledgable quasi-developer :-) To get it to compile, remove all occurences of -ldl from src/Makefile. However, then it coredumps on any open() call and doesn't move stuff to the trash :P I'm working on it. -- Josh regards, Robert ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undo a rm -rf
On Sat, Jun 07, 2003 at 04:18:02PM -0700 or thereabouts, Joshua Oreman seemed to write: On Sat, Jun 07, 2003 at 05:45:20PM +0800 or thereabouts, Robert Storey seemed to write: On Fri, 6 Jun 2003 21:36:46 -0700 Joshua Oreman [EMAIL PROTECTED] wrote: On Sat, Jun 07, 2003 at 12:15:50AM -0400 or thereabouts, David Loszewski seemed to write: I just did a rm -rf and forgot the *.png portion that I wanted on it, lol, 2 years of using freebsd and I've never done anything this stupid. Is there a way to get my data back? Please respond to this email address. On Linux, I've installed Libtrash, a trashcan which works even at the console. I think it's just a series of scripts, but it works superbly. I tried installing it on FBSD, but it failed to compile, exiting with this error message: /usr/bin/ld: cannot find -ldl *** Error code 1 If I knew what I was doing, I'd surely try to port Libtrash to FBSD. Sadly, I'm not a knowledgeable developer, just a dumb user. If anyone is interested: http://www.m-arriaga.net/software/libtrash/ That's me, I'm interested (and a knowledgable quasi-developer :-) To get it to compile, remove all occurences of -ldl from src/Makefile. However, then it coredumps on any open() call and doesn't move stuff to the trash :P I'm working on it. Done. Get it from http://64.161.78.226/libtrash-fbsd.tgz. It's still pretty unstable (e.g. don't try running Mutt or perl or Emacs with it) but hey, it works. Any other developer want to work on this? NOTE: Since the base system utilities (rm, cp, mv, etc.) are statically linked, libtrash will NOT work with them! You must use a dynamic-linked version, e.g. like so: # gcc -g -o /usr/bin/dynrm /usr/src/bin/rm/rm.c # gcc -g -o /usr/bin/dynmv /usr/src/bin/mv/mv.c # gcc -g -o /usr/bin/dyncp /usr/src/bin/cp/*.c And add these lines to the end of your shell's startup file (~/.profile for sh, ~/.cshrc for csh, ~/.bashrc for bash, ~/.zshrc for zsh): --snip-- alias rm=dynrm alias cp=dyncp alias mv=dynmv --snip-- NOTE #2: I am not maintaining this; I'm just putting it out there so maybe someone else can keep hacking on it. Hope this helps! -- Josh -- Josh regards, Robert ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /dev/tty keeps changing permissions..?
On Sat, Jun 07, 2003 at 10:21:17PM -0700 or thereabouts, Thomas Park seemed to write: Hello, I've been having an interesting problem with my FreeBSD 5.0 install - for whatever reason, the permissions and ownership on /dev/tty keep on being automatically changed in such a way that it becomes impossible for most users of the system to initiate outbound SSH sessions. I'm not sure what causes this, but after a few days of running, I'll notice that the system has set up /dev/tty thusly: crw--w 1 tpark tty5, 1 Jun 7 22:02 /dev/tty Which, of course, means that any user not myself or in group tty will have problems. On my previous FreeBSD 4.6 install, /dev/tty was owned by root:wheel and had permissions 0666 set. I tried setting /dev/tty to this configuration on the new system, which makes ssh and other tools work fine. The catch: I found that the system will randomly revert /dev/tty to the oddball individual user ownership and mode 0620 - I haven't been able to figure out what causes this or when this happens. If anybody has any advice on how to prevent the system from doing this, I would be much relieved! Well, I don't know what's causing it, but check the periodic scripts. Look at the ctime (`ls -lc') of the file. That's when the mode (actually, the inode) was last changed. -- Josh Thanks, thomas park . Thomas Park | driveSPEED Designs, LLC e: [EMAIL PROTECTED] t: +1 415 292 8915 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GRUB 0.92 on FreeBSD 5.x
On Sun, Jun 08, 2003 at 01:59:11PM +0100 or thereabouts, leon j. breedt seemed to write: hi, is it a new feature of 5.x disallowing direct writes to the device nodes /dev/ad*? getting weird behaviour trying to use the GRUB 0.92 port on all versions of 5.x i've used so far (currently on 5.1-RELEASE). the problem being that i can't see any disks in the 'grub' shell. the 'device' command works, and then a subsequent command like 'root' still fails with No such disk. i've tracked down the problem to a call in the GRUB source where its trying to open(2) the device node /dev/ad0 with O_RDWR which fails with EPERM, which causes GRUB to delete the drive from its device map without any warning, just silent failure. i am running the 'grub' executable as root though. when i patch that section of the source file (asmstub.c, function get_diskinfo()) to accept EPERM and only open in read-only mode, suddenly i can see my drives. but obviously anything wanting to modify the drive, like 'setup', fails. is my only recourse to install GRUB from floppy when using it from FreeBSD? I think so. GEOM makes it impossible to write to disks that are currently in use. Best bet is to boot from a floppy. -- Josh please cc me on replies, i'm not subscribed to -questions. thanks leon ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RAID, Vinum and different disksizes
On Mon, Jun 09, 2003 at 05:10:37PM +0200 or thereabouts, freeBSD seemed to write: I have three 120GB disks and one 170GB disk. The first three is forming a raid-5 volume using Vinum and the last one is just fooling around without any purpose. Can I add this 170GB to the raid5 volume in any way at all? I do realise that I will loose 50Gb, but that's better than not using it at all. Sorry, no. On the other hand, if the first three were a concat plex, you *could* do it, and you wouldn't even lose 50gb! Your best bet is either: a) mount the 170gb on /usr2 or something b) backup the data on the raid5, restore to a concat HTH, -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Complete system restore software for FreeBSD?
On Tue, Jun 10, 2003 at 03:17:07PM +0200 or thereabouts, Andreas Kohn seemed to write: Am Mon, 2003-06-09 um 23.36 schrieb [EMAIL PROTECTED]: I have used the Mondo Rescue backup and restore system before with my Linux machines with great success. What Mondo allows one to do is a complete system backup and restore from a bootable CD, meaning a system can survive a harddrive failure without a whole lot of fiddling around in reconfiguring software and such. What I'm wondering is, is there similar software available for FreeBSD (preferably free)? For reference, more info on Mondo Rescue can be found here: http://www.microwerks.net/~hugo/ From the above pages: FreeBSD users - Joshua Oreman has ported Mondo to FreeBSD. Click to download his Mondo[1] and Mindi[2] packages. They are standard tarballs, so just use tar xzf and gmake gmake install to build them. We need testers. The FreeBSD port is a work-in-progress, not a stable product (yet). We'll keep you posted. [1] http://www.get-linux.org/mondo-fbsd.tgz [2] http://www.get-linux.org/mindi-fbsd.tgz This second link is out-of-date - FBSD support is in the main development tarball now. Note that the FreeBSD support is still beta, in a sense. It has not been tested extensively on 4.x, so please send any problems (with logfiles! - read the Mondo support page) to me. Better yet, subscribe to the mondo-devel mailing list send them there. Thanks! -- Josh Did you try those already? -- Andreas Kohn [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is it neccessary for sending mail from php ?
On Tue, Jun 10, 2003 at 10:51:01AM +0100 or thereabouts, Supote Leelasupphakorn seemed to write: Hello, I've install apache+php and would like to use function:mail() in php to sendmail from my box(Freebsd). My question is, is it neccessary to run sendmail or other SMTP-like service on this box for able to send (outgoing) mail. Probably not. If you can send outgoing mail from that box, you can mail() too. -- Josh Thanks in advance. __ Yahoo! Plus - For a better Internet experience http://uk.promotions.yahoo.com/yplus/yoffer.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: weird messages when installing a program by ports
On Tue, Jun 10, 2003 at 12:16:20PM +0100 or thereabouts, fdcf seemed to write: i was installing blackbox when i saw a weird msg, i've done make install clean in /usr/ports/x11-wm/blackbox and during the compilation were appearing msgs like that: /usr/inclde/g++/type_traits.h:363: warning: ANSI C++ does not support 'long long' . It's a compiler warning warning about a nonportable 64-bit integer type that is used in the program. It's not a problem. Do not worry. If you were a developer, OTOH, you would add -Wno-long-long to the CFLAGS for this program to suppress the message. -- Josh someone can say what's that ? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: quick question please
On Tue, Jun 10, 2003 at 12:34:03PM -0500 or thereabouts, Matthew D. Fuller seemed to write: On Tue, Jun 10, 2003 at 01:31:08PM -0400 I heard the voice of Steve, and lo! it spake thus: i know this might be common question but id really like to know, why your logo is a small devil? please reply thanks. Because the normal size of button-banners for webpages is too small to make it a large devil. directed toward commenter Please don't say stuff like this, even in jest. Some people might think the logo is really a devil. directed toward original sender IT IS NOT. It's a daemon -- NOT a demon. There's a difference that has already been discussed many times on this list. -- Josh -- Matthew Fuller (MF4839) | [EMAIL PROTECTED] Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading 5.0 - 5.1
On Thu, Jun 12, 2003 at 10:51:50AM -0500 or thereabouts, Thomas T. Veldhouse seemed to write: You will need a whole new world as well. cvsup (cd /usr/src make world) (cd /usr/src/sys/i386/conf config GENERIC cd ../compile/GENERIC make all install) reboot Approximately. I guess there is a way to make the kernel from the top level tree, but I have always done it that above way and don't plan to change unless I must. You should *really* use 'make buildkernel' in the toplevel if you're combining it with a world update. Recommended procedure: ~# cvsup /my/5.1.supfile ~# cd /usr/src /usr/src# make buildworld /usr/src# make buildkernel KERNCONF=yourKERNELname /usr/src# make installkernel KERNCONF=yourKERNELname /usr/src# reboot OK boot -s # fsck -p mount -a # ( cd /usr/src make installworld ) # reboot OK boot Also read chapter 21 of the Handbook. -- Josh Tom Veldhouse - Original Message - From: Andrew Robinson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 10:05 AM Subject: Upgrading 5.0 - 5.1 Hi all, I'm trying to figure out what options I have for upgrading from 5.0 to 5.1. Can I just use csvup to change my local copy of the source code, and recompile? Ie do the same steps that I've done to upgrade after security announcements? Would that just entail editing my standard-supfile to replace *default release=cvs tag=RELENG_5_0 with *default release=cvs tag=RELENG_5_1 and running csvsup, then compiling a new kernel? I'd appreciate confirmation, cautions, or tips. Thanks! Andrew -- Andrew Robinson Ph: 208 885 7115 Department of Forest Resources Fa: 208 885 6226 University of Idaho E : [EMAIL PROTECTED] PO Box 441133W : http://www.uidaho.edu/~andrewr Moscow ID 83843 Or: http://www.biometrics.uidaho.edu No statement above necessarily represents my employer's opinion. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading 5.0 - 5.1
On Thu, Jun 12, 2003 at 06:16:50PM -0700 or thereabouts, cp seemed to write: You should *really* use 'make buildkernel' in the toplevel if you're combining it with a world update. Recommended procedure: ~# cvsup /my/5.1.supfile ~# cd /usr/src /usr/src# make buildworld /usr/src# make buildkernel KERNCONF=yourKERNELname /usr/src# make installkernel KERNCONF=yourKERNELname /usr/src# reboot OK boot -s # fsck -p mount -a # ( cd /usr/src make installworld ) # reboot OK boot Also read chapter 21 of the Handbook. I have a related question on this if you would permit. I just did the same thing (5.0-5.1), I started to follow the handbook but became concerned in reading posts on the subject that suggested to installworld prior to building the kernel and booting. I also do not have access to the console in any convenient manner so I knew that it would never come back from the boot (it would be a week before I could then get it up). So I did this: cvsup (src=all) RELENG_5_1 buildworld installworld make buildkernel KERNCONF=MINE At this point, it won't complete the kernel build and is showing signs of being unusable (e.g. ipfw show just dumps core). Is it too late to correct this or is a reinstall and reconfigure next week the only option left? I ran into the same thing once. Alas, there is no uninstallworld target :-) You *may* be able to get the system usable again, by doing a upgrade (from sysinstall) back to your old version. If that works, then build the kernel, install it, reboot, then installworld and all should be A-OK. But that's only if you're lucky. -- Josh Thanks, a different Chris than started this thread ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]