Re: freebsd-update on FreeBSD 6.x
Quoting Manolis Kiagias son...@otenet.gr: A quick visit to http://update.freebsd.org does not show this directory - although this maybe intentional. I suggest you try the server change and if you connect but still fail to get the key, then go on and hack the script. I don't have a 6.1 machine around, but freebsd-update is just a sh script and you should be able to find what's going on. There is nothing hardcoded in it, at least in the version distributed with 7.x. In fact I would try running the 7.x version on this system. Hi Manolis, thanks for the reply! I have simply copied over the freebsd-update script from a 7.0 machine and it seems to work fine just as on the 7.0 machine. I have run a fetch without making any changes to the conf file, I haven't applied the updates as yet as its a production server and I'll need to schedule down time and work out a fall back plan if anything goes bad when doing an install. Thanks again! Andy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
freebsd-update on FreeBSD 6.x
Hi, when running freebsd-update fetch on FreeBSD 6.x I get the error: Fetching public key... fetch: http://update.freebsd.org/i386/6.1/pub.key: No address record Error fetching updates I've previously had a search around and compared the config file with that present by default on FreeBSD 7.x (which works without any hacking etc) but I never did work out what is wrong or what should be in a good config file. For one thing the directory its looking in for the pub.key seems to be hardcoded as /i386/6.1/ or at least that path is not present in my conf file, perhaps its possible to add an additional line to the conf file to modify this... Can anyone point me in the right direction? thanks in advance, Andy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: PATH used by www user
Hi Frank, thanks for your responce, the PATH isn't set within the perl script with ENV (and the script is identical on both systems). I've already asked the question on the perl mailing list and came to the conclusion the difference was something at the UNIX level on FreeBSD. There are various ways I can easily work around it, but it just seemed so basic I wanted to know how it was being set :S thanks, Andy. Quoting Frank Shute fr...@shute.org.uk: User www doesn't have a shell, profile hence PATH. I don't know how your path is being set but it depends on perl how your script looks. Look at Env(3) the other perldocs. If you want to do it quick, call traceroute with the path in your scripts e.g: system /usr/sbin/traceroute $some_host; There's probably a perl module with a traceroute in it but I'm afraid I don't know it offhand. This message was sent using IMP, the Internet Messaging Program. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: PATH used by www user
Hi Frank, thanks a lot for looking into it. Yes one server is an older FreeBSD 6.1, the other 7.0 so they certainly aren't identical servers. But they do have same version of apache (2.2.9) and same version of the perl script, and as far as I can tell same config for default PATH etc. I had a look and there doesnt appear to be anything setting the path in the apache conifg, perhaps it could be a compiled in default path?! I'll ask the apache experts and see if they can help, thanks again, Andy. Quoting Frank Shute fr...@shute.org.uk: Hi Andy, I had to look at the Camel book although it isn't explicit, it seems like the script inherits the environment of the calling process i.e Apache in this case. Apache sets the environment with SetEnv (or at least 1.3 does, I don't run 2*) as it can't inherit one from user www since it doesn't have one. So have you had a look at httpd.conf and .htaccess on each machine? BTW, one machine uses an old PATH with /usr/X11R6/bin in it. That disappeared some time ago. That may or may not be a clue. In short, I think this is probably an Apache question you might have more informative answers from there. Sorry I can't be more helpful but quite a few Apache people run FreeBSD and they're likely to be more help than I am. This message was sent using IMP, the Internet Messaging Program. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
PATH used by www user
Hi, I'm trying to work out why the PATH is different for the www user on two different FreeBSD servers. The problem being that on one it cant find the traceroute binary (via a perl script hosted on apache 2.2). The www user on both is the FreeBSD default, so has no home directory on either. The /etc/profile is the same on both servers, also the login.conf have the same path value set and there are no /etc/bash files. But still on one server the path is /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin and on the other only /bin:/usr/bin. Can someone tell me where the path may be being set that I havent looked? thanks, Andy. This message was sent using IMP, the Internet Messaging Program. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: bsdlabel partiton c error message on new install
Hi Jerry, ok thanks for the answer, its not very good news for me ;( as Ive already done alot of config and installed alot of apps, but anyway thats my problem now! cheers Andy! - Original Message From: Jerry McAllister [EMAIL PROTECTED] To: andys [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: bsdlabel partiton c error message on new install Date: 17/10/08 18:11 On Fri, Oct 17, 2008 at 02:13:45PM +0200, andys wrote: Hi, on a newly installed FreeBSD 7.0 system on a dell 1950 server I see the following error from bsdlabel. Is there any known issues with this or is the only reasonable explanation that I have managed to mess it up without even knowing? :P And should I manually change the partition c to fix the prob? Is this safe to do? bsdlabel -A /dev/da0s1 # /dev/da0s1: type: SCSI disk: da0s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 17750 sectors/unit: 285155328 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 20971520 0 4.2BSD 2048 16384 28552 b: 20971520 75497472 swap c: 285153687 0 unused 0 0 # raw part, don't edit d: 20971520 20971520 4.2BSD 2048 16384 28552 e: 20971520 41943040 4.2BSD 2048 16384 28552 f: 12582912 62914560 4.2BSD 2048 16384 28552 bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities thanks for any advice, Im not really confident with the FreeBSD disk management as I havent used it much, If you were using sysinstall, I am not sure how this would come up. Do you have more than one slice on the disk - that which MS refers to as a 'primary partition'? Something you might do to create a 'dual boot' machine. Are you in the position where you can just wipe it and do a reinstall? I wouldn't just move or resize the c partition after the fact. The c partition should be equal to the size of the slice it is in. That should just be true after the fdisk part of the operation unless there is something wrong with the size or alignment of the slice itself. And, in that case, I would expect it to have complained way back in the sysinstall-fdisk part of the process. So, I would start over if I could. Just some pictorial perspective to make it easier (I hope) to visualize. Whole device | slice 1 : FreeBSD Slice 2 : slice 3 : Slice 4 | | : : : | | :- partition c -: : | |Some MS thing : ' ' ' ' : Some Linux : Extra | | :pa' pb ' pd ' pe ' pn: thing : slice | | : ' ' ' ' : : | | : ' ' ' ' : : | - A device (whole disk) can have up to 4 slices labeled 1..4. Each slice can be of different types. MS calls slices 'primary partitions'. Each FreeBSD type slice can be divided in to 8 (really 7) partitions that are labeled a..h. But, c must be used to define the whole slice. Slices are created by fdisk. Fdisk also writes the device's MBR. Partitions are created by bsdlabel (disk label in early versions of FreeBSD) bsdlabel also writes the slice's boot block. It is possible to leave empty space in the whole disk that is not allocated to any slice or within any given slice that is not allocated to any partition. The total of a..h not counting c, plus any non- allocated space, must add up to c. It is possible to create what someone has dubbed a 'dangerously dedicated' disk and just not create slices, but just use bsdlabel to divide the whole disk in to FreeBSD partitions a-h. The c partition must still refer to the whole space available for FreeBSD partitioning. I think it is also possible to just newfs the disk without using either fdisk or bsdlabel and create one filesystem without slices or partitions. I haven't tried it. Both fdisk and bsdlabel are supposed to keep track of the sizes correctly, automatically. That is why I suggest starting over. If you use sysinstall, it calls fdisk and bsdlabel for you and you don't have to do it separately unless you want to look and see what it did. jerry thanks Andy. ___ [EMAIL PROTECTED] mailing list [2]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Message sent using UK Grid Webmail 2.7.9 References 1. mailto:freebsd-questions@freebsd.org 2.
Re: security.jail.sysvipc_allowed: implications ?
On Mon, Nov 22, 2004 at 03:23:02PM -0600, [EMAIL PROTECTED] wrote: I'd like to know what are the implications of setting security.jail.sysvipc_allowed=1 while using FreeBSD jails. If I understood correctly, setting this to 1 allows processes inside the jail to communicate to the host server/other jails using SysV shared memory, but I don't understand the fully implications of this. I don't either, but I believe it basically means that if a program (inside a jail or on the host system) were to create some shared memory that everyone was allowed access to, then even processes in other jails could access this memory, which may be contrary to what you would expect from a jailed environment. Basically all of your SysV stuff would be global as opposed to separate for each jail. Is there any concern using this sysctl as 1 on a system with only a jail without any ssh access, and nothing but courier, postfix, and apache? (inside jail) If you don't care that processes in other jails and on the host would be able to manipulate any shared memory from that jail as it would on a normal unjailed system, then no, I think not. As far as SysV IPC goes it makes it as if nothing is jailed. PS I have had real problems getting SysV message queues to work inside a jail even with this sysctl set, but I have never bothered to chase it down as yet. pgpVTMZ010gvs.pgp Description: PGP signature
Re: colourization in ls command
On Tue, Oct 12, 2004 at 12:12:14PM +0200, FreeBSD questions mailing list wrote: hmm, of course... is there a way to preserve it and still have it display page after page? I find this often works with less instead. (please don't top post) pgpBaSKuLhsRp.pgp Description: PGP signature
Re: colourization in ls command
On Tue, Oct 12, 2004 at 12:38:19PM +0200, FreeBSD questions mailing list wrote: On 12 okt 2004, at 12:13, Andy Smith wrote: On Tue, Oct 12, 2004 at 12:12:14PM +0200, FreeBSD questions mailing list wrote: hmm, of course... is there a way to preserve it and still have it display page after page? I find this often works with less instead. I tried less but that seems to loose colours too You're right, it does lose it. gls --color | less -R does work however. GNU ls can be found in sysutils/coreutils port. (please don't top post) huh? Have a read of http://en.wikipedia.org/wiki/Top-posting -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B A: No. Q: Should I include quotations after my reply? - Nick Moffitt pgpT9INRzukJN.pgp Description: PGP signature
Re: Wiki on FreeBSD
On Sat, Oct 09, 2004 at 01:38:56PM -0400, Alan Curtis wrote: I am looking for an easy to install wiki that an apache/perl/php/whatever novice like me can install without getting a migrane. Any suggestions? I use MediaWiki on http://freebsdwiki.org/ FreeBSD-specific instructions are here: http://meta.wikimedia.org/wiki/Running_MediaWiki_on_FreeBSD Almost all the requirements, including Apache, PHP and MySQL, work fine from ports. pgpK50Ba6Esjx.pgp Description: PGP signature
Re: /var/db/pkg/cups-base-1.1.20.0/+CONTENTS: No such file or directory
On Sun, Sep 19, 2004 at 09:58:26AM -0400, Lowell Gilbert wrote: Andy Smith [EMAIL PROTECTED] writes: I don't know what I have done to cause this, but now every use of the various portutils results in this message: /var/db/pkg/cups-base-1.1.20.0/+CONTENTS: No such file or directory [...] Force a reinstall of that package? The ports tools are indeed going to have a lot of problems if your package database is incomplete like that... I seem to have fixed this problem by removing /var/db/pkg/cups-base-1.1.20.0 and then reinstalling the port. pgpdQ3fmwxCAh.pgp Description: PGP signature
/var/db/pkg/cups-base-1.1.20.0/+CONTENTS: No such file or directory
Hi folks, I don't know what I have done to cause this, but now every use of the various portutils results in this message: /var/db/pkg/cups-base-1.1.20.0/+CONTENTS: No such file or directory That files does indeed not exist, althoug the directory does and the port is installed. Based on googling I have tried running pkgdb -F and portsdb -u, but it doesn't help. Both run without error. Does anyone have any ideas? pgpjGrMGgjFiR.pgp Description: PGP signature
Re: Multiple IP addresses in a Jail
On Wed, Sep 08, 2004 at 12:16:28PM -0400, Frederick N. Brier wrote: I need to specify 2 IP addresses for the Jail, not one. I had heard there was a patch to do this and that it had been added to FreeBSD 5.3. Is this not the case? Is there a patch? Is there another way to do this? Thank you. There's this, not sure how current the patch it though.. http://freebsdwiki.org/Using_multiple_IPs_in_a_jail -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B Reinventing the wheel is bad not only because it wastes time, but because reinvented wheels are often square. -- Henry Spencer pgpIB1vSB4MR0.pgp Description: PGP signature
Re: ports vs source
On Fri, Sep 03, 2004 at 06:34:32PM +0300, Cristi Tauber wrote: Yes i know something ... like the avantages of rpm and another linux package managers. But .. I want apache 1.3.31 with php-4.3.4 and mysql 4.0.20 (let's say) ... from ports ... i understand that I can %choose% what version i want to install ?? Is that correct ? Well, if you installed those applications from ports you would currently get apache 1.3.31, php 4.3.8 and mysql 4.0.20 (assuming you chose the mysql40-server port and not 41-server or 50-server). You can't choose specific versions of those applications, but I don't really see why you would want to do that; you normally want the latest that is maintained for FreeBSD. Please do not top post. pgpU1OiQWoKfp.pgp Description: PGP signature
ntop constant segfaults
Perhaps this would be better on an ntop-specific list but due to how completely broken this applications apears to be I wondered if anyone else on FreeBSD has seen this.. Basically, on -STABLE, the net/ntop port just won't stay running for more than a few minutes without segfaulting like so: Aug 27 16:07:40 nubian ntop[85870]: ntop v.3.0 SourceForge .tgz MT (SSL) Aug 27 16:07:40 nubian ntop[85870]: Configured on Aug 26 2004 7:47:47, built on Aug 26 2004 07:48:58. Aug 27 16:07:40 nubian ntop[85870]: Copyright 1998-2004 by Luca Deri [EMAIL PROTECTED] Aug 27 16:07:40 nubian ntop[85870]: Get the freshest ntop from http://www.ntop.org/ Aug 27 16:07:40 nubian ntop[85870]: Initializing ntop Aug 27 16:07:40 nubian /kernel: sis0: promiscuous mode enabled Aug 27 16:07:40 nubian ntop[85870]: Checking sis0 for additional devices Aug 27 16:07:40 nubian ntop[85870]: Resetting traffic statistics for device sis0 Aug 27 16:07:40 nubian ntop[85870]: DLT: Device 0 [sis0] is 1, mtu 1514, header 14 Aug 27 16:07:40 nubian ntop[85870]: Initializing gdbm databases Aug 27 16:07:40 nubian ntop[85870]: Now running as requested user 'ntop' (1030:1030) Aug 27 16:07:40 nubian ntop[85870]: VENDOR: Loading MAC address table. Aug 27 16:07:40 nubian ntop[85870]: VENDOR: Checking for MAC address table file Aug 27 16:07:40 nubian ntop[85870]: VENDOR: File '/usr/local/etc/ntop/specialMAC.txt.gz' does not need to be reloaded Aug 27 16:07:40 nubian ntop[85870]: VENDOR: ntop continues ok Aug 27 16:07:40 nubian ntop[85870]: VENDOR: Checking for MAC address table file Aug 27 16:07:41 nubian ntop[85870]: VENDOR: File '/usr/local/etc/ntop/oui.txt.gz' does not need to be reloaded Aug 27 16:07:41 nubian ntop[85870]: VENDOR: ntop continues ok Aug 27 16:07:41 nubian ntop[85870]: INIT: Parent process is exiting (this is normal) Aug 27 16:07:41 nubian ntop[85872]: INIT: Bye bye: I'm becoming a daemon... Aug 27 16:07:41 nubian ntop[85872]: Now running as a daemon Aug 27 16:07:41 nubian ntop[85872]: OSFP: Checking for OS fingerprint table file Aug 27 16:07:41 nubian ntop[85872]: OSFP: Loading file '/usr/local/etc/ntop/etter.passive.os.fp.gz' Aug 27 16:07:41 nubian ntop[85872]: ASN: Checking for Autonomous System Number table file Aug 27 16:07:41 nubian ntop[85872]: **WARNING** ASN: Unable to open file 'AS-list.txt' Aug 27 16:07:41 nubian ntop[85872]: I18N: This instance of ntop does not support multiple languages Aug 27 16:07:41 nubian ntop[85872]: IP2CC: Checking for IP address - Country Code mapping file Aug 27 16:07:41 nubian ntop[85872]: IP2CC: Loading file '/usr/local/etc/ntop/p2c.opt.table.gz' Aug 27 16:07:43 nubian ntop[85872]: IP2CC: ...found 52395 lines Aug 27 16:07:43 nubian ntop[85872]: GDVERCHK: Guessing at libgd version Aug 27 16:07:43 nubian ntop[85872]: GDVERCHK: ... as 2.0.21+ Aug 27 16:07:43 nubian ntop[85872]: Initializing external applications Aug 27 16:07:43 nubian ntop[85872]: Initializing semaphores, mutexes and threads Aug 27 16:07:43 nubian ntop[85872]: THREADMGMT: Started thread (134577152) for network packet analyser Aug 27 16:07:43 nubian ntop[85872]: THREADMGMT: Started thread (135754752) for fingerprinting Aug 27 16:07:43 nubian ntop[85872]: THREADMGMT: Started thread (135755776) for idle hosts detection Aug 27 16:07:43 nubian ntop[85872]: THREADMGMT: Started thread (135756800) for DNS address resolution Aug 27 16:07:43 nubian ntop[85872]: Calling plugin start functions (if any) Aug 27 16:07:43 nubian ntop[85872]: Sniffying... Aug 27 16:07:43 nubian ntop[85872]: INIT: Created pid file (/var/db/ntop/ntop.pid) Aug 27 16:07:43 nubian ntop[85872]: Listening on [sis0] Aug 27 16:07:43 nubian ntop[85872]: Now running as requested user 'ntop' (1030:1030) Aug 27 16:07:43 nubian ntop[85872]: Loading Plugins Aug 27 16:07:43 nubian ntop[85872]: Searching for plugins in /usr/local/lib/ntop/plugins Aug 27 16:07:43 nubian ntop[85872]: ICMP: Welcome to icmpWatchPlugin. (C) 1999-2004 by Luca Deri Aug 27 16:07:43 nubian ntop[85872]: LASTSEEN: Welcome to LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni Aug 27 16:07:44 nubian ntop[85872]: NETFLOW: Welcome to NetFlow.(C) 2002-04 by Luca Deri Aug 27 16:07:44 nubian ntop[85872]: NFS: Welcome to nfsWatchPlugin. (C) 1999-2004 by Luca Deri Aug 27 16:07:45 nubian ntop[85872]: PDA: Welcome to PDAPlugin. (C) 2001-2004 by L.Deri and W.Brock Aug 27 16:07:45 nubian ntop[85872]: RRD: Welcome to rrdPlugin. (C) 2002-04 by Luca Deri. Aug 27 16:07:45 nubian ntop[85872]: SFLOW: Welcome to sFlowPlugin. (C) 2002-04 by Luca Deri Aug 27 16:07:45 nubian ntop[85872]: XML: Welcome to xmldump plugin. (C) 2003-2004 by Burton Strauss Aug 27 16:07:45 nubian ntop[85872]: Calling plugin start functions (if any) Aug 27 16:07:45 nubian ntop[85872]: RRD: Welcome to the RRD plugin Aug 27 16:07:45 nubian ntop[85872]: RRD: Mask for new directories is 0700 Aug 27 16:07:45 nubian ntop[85872]: RRD:
Re: Postfix thinks there isn't enough disk space in a jail
On Thu, Aug 26, 2004 at 01:53:15PM -0400, Charles Ulrich wrote: In normal operation, Postfix makes a system call to check to see if it can create a file of a certain size. Inside a jail, this call will not succeed as per the very design of jails. Thus, you must use the following one-line patch to make postfix work. Hmm, I run postfix in two jails (both hosted on -STABLE), and have never had this problem unless I've really been out of disk.. pgpV00er9KhzB.pgp Description: PGP signature
Re: FreeBSD Wiki
On Sat, Jun 19, 2004 at 01:46:45PM +0100, Graham Bentley wrote: I have used in the past Trustix Linux which has a nice Wiki page http://doc.trustix.org/cgi-bin/trustixdoc.cgi?TrustixWiki [...] Is there any such resource for FreeBSD ? Not wishing to step on Kirk's toes but there is another one at the URL in my signature - also not official of course. If you have time to write documentation that doesn't already exist, please do put it *somewhere* no matter where that is (as long as google can find it). :) -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B [Open Source is] like trying to sell human rights to China because it might lead to more effective business models. -- David Kastrup, news:gnu.misc.discuss pgp0B2P0BJkA1.pgp Description: PGP signature
Re: Starting Apache on 4.10 stable at boot time
On Fri, Jun 18, 2004 at 10:42:55AM -0400, Michael W. Oliver wrote: On 2004-06-18T16:37:47+0200, Gareth Bailey wrote: I moved our work server over from 5.2 release to 4.10 stable. All seems fine except for some reason apache (apache-1.3.31_2) doesn't sart automatically at boot time. Does starting apache at boot time differ on 4.10 to 5.2? I have the apache.sh script in rc.d/ and it has correct privileges. What am in missing? cd /usr/ports/www/apache13 cat pkg-message I'm also having this problem actually and I can't figure it out. Yes, I read the pkg-message and put the apache_enable=YES into /etc/rc.conf, but it seems like apache.sh never gets run at boot. I've checked all the seemingly-obvious things like the permissions etc. It will start if I do: # /usr/local/etc/rc.d/apache.sh start Since I obviously don't boot that often I haven't had chance to investigate further.. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B Last year I went fishing with Salvador Dali. He was using a dotted line. He caught every other fish. -- Steven Wright pgpHSytY957Vx.pgp Description: PGP signature
Re: pkgdb and ruby
On Tue, Jun 15, 2004 at 09:52:52AM +1000, [EMAIL PROTECTED] wrote: What is pkgdb and where can I find it? $ pkg_info -W $(which pkgdb) /usr/local/sbin/pkgdb was installed by package portupgrade-20040529 $ pkg_info -o portupgrade-20040529 Information for portupgrade-20040529: Origin: sysutils/portupgrade -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgpcgcgGpFbkk.pgp Description: PGP signature
Re: want sudo but not sudo su - how
On Sat, Jun 12, 2004 at 11:14:02AM +0100, John wrote: Greetings, freebsd-questions I want to put operators in sudo BUT I don't want them to sudo su - because after they do that, subsequent commands enacted as root don't appear in the logs. The desired behaviour would be sudo su command (any command) but not sudo su -, for these users. Is there a way of enforcing this? You might be able to do it by limiting the commands that are accessible to the person, but if they run any shell, or run any program that drops to a shell (e.g. one they wrote themselves in 2 minutes) then they would have an unrestricted root shell again. The reason being that if they do something and the server eg goes titsup, I want to see what was done in the logs. Would be grateful for any assistance the list may have. It might be best to just say I don't want you doing this and then punish people who do, since you do have logs. If you're trying to restrict what people can do with sudo it will be better to explicitly list each binary they can run as root and make sure there's no way they can modify those binaries. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgpiVlgjhcNY3.pgp Description: PGP signature
Re: Backup question
On Wed, Jun 09, 2004 at 10:29:27AM -0400, Karen Donathan wrote: Hello. What is the best way to back up the html directory? We do not have a tape drive. Is there a way to have an automated .tar file created and sent as email so I could save it on another server? Any help would be great! In addition to other suggestions, for various remote servers I like using rsnapshot (google for its homepage, it's also in the ports collection). It works as rsync over ssh, and it keeps a configurable amount of previous snapshots. e.g. a common configurations is 6 per day at 4-hourly intervals, 7 per week at daily intervals, and 4 per month at weeks intervals, so that you can always go back to see what your files were like up to a month ago. Since your HTML files are probably comparatively small, you may find this method quite convenient. Even for large sets of files the hardlinking of unchanged files means that surprisingly little overhead of disk space is used. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgp1EMFTHWZzm.pgp Description: PGP signature
Re: Problem about ports command
On Sat, Jun 05, 2004 at 09:20:34AM +0800, Stephen Liu wrote: On running # pkg_delete -f portupgrade* pkg_delete: No match. I am thinking perhaps that the shell expanded your * there. Try: # pkg_delete -f 'portupgrade*' Also, have a read of (and feel free to contribute to) http://freebsdwiki.org/Port_management Is there a device locking all ports commands. Kindly advise how to proceed. TIA No.. I think it would be best if you picked one goal (e.g. to install a single specific port) and tried that, then if you encounter errors, tell us about them and we can help. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgp53Ya54BnQZ.pgp Description: PGP signature
Re: portupgrade -a question
[long lines rewrapped, please try to keep lines below about 72 characters] On Thu, Jun 03, 2004 at 11:34:16PM +, Jarrod Wageman wrote: Hello, I have a freebsd box I just set up and I am wondering about some things. I just ran `make buildworld` installworld and all that after an extensive cvsup. I still have perl version 5.6 something. The new version according to perl.com is 5.8 I ran portupgrade -a and it didn't upgrade anything. Do I need to move to the CURRENT source tree to get these new packages installed? No, you need to install the /usr/ports/lang/perl5.8 to get perl 5.8.x. Then if you keep your ports collection up-to-date the other commands (such as portversion) will tell you when a newer port is available. Don't forget to do # use.perl port if you want the port's perl to be the system default. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgpDFioGrmfsC.pgp Description: PGP signature
Re: jail patch (5.2.1)
On Thu, Jun 03, 2004 at 04:50:03PM -, [EMAIL PROTECTED] wrote: I've found (with the help of a list member) a patch for freebsd 4.10 jails that allows support for multiple IPs. I have been, however, unable to find a patch that works on 5.2.1! I thought I saw an updated patch for 5.2.x on the author's site, http://garage.freebsd.pl/ have never tried it though. I don't create jails for a long time (4.9-RELEASE i think) but on that time i couldn't even use 'top'. top does not work inside a jail, although possibly a patch exists to make it work. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgpGvbRAw7rG4.pgp Description: PGP signature
Re: New Servers - Mail, Perl - MySQL - PHP and things.
On Tue, Jun 01, 2004 at 10:24:53AM -0400, Grant Peel wrote: 1. Should I upgrade the perl version. FBSD comes with 5.005_03. I think the latest Perl distro was 5.8. I would say, only if your applications require it. If yes, do I install directly from ports? Yes. If yes, how do I ensure the old version is being ignored. I gues what I am really asking, is what is the correct upgrade procedure? After installing the perl port, you will get told about use.perl port. Basically you just type that as root and it will add some things to your /etc/make.conf that makes the port's perl be used in future. You can revert with use.perl system. I want to be able to keep THIS (FBSD) installation 'upgradeable'. I have done some things to my other systems (FBSD 4.9 and 4.4) that I have been told would break if I upgraded the OS. Well, using ports is a good start. 2. What are the key items to adhear to when installing FBSD and other software so that the OS remains upgradeable? It depends exactly what you mean by upgradeable. If you install all your extra software from ports where possible then this means that the ports collection will help you keep track of dependencies and newer versions, and interaction with the base system. 5. What are the latest releases of Apache, Perl PHP Mysql that seem to play nice for everyone. I still find that I need to use the apache13 port and the mysql-server40 port to maintain compatability with everything else I need to use. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B [Open Source is] like trying to sell human rights to China because it might lead to more effective business models. -- David Kastrup, news:gnu.misc.discuss pgpygum7dTsHb.pgp Description: PGP signature
Re: Jail patch
On Tue, Jun 01, 2004 at 04:15:51PM -, [EMAIL PROTECTED] wrote: Hi list, Is there a patch for 4.9 that allows a jail to have multiple IPs ? Is this scheduled for any official release soon? http://freebsdwiki.org/Using_multiple_IPs_in_a_jail -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B All artists are willing to suffer for their art. So few are willing to learn to draw. -- The League Against Tedium pgpnk5madB2Cz.pgp Description: PGP signature
Re: FreeBSD mailing lists
On Fri, May 21, 2004 at 07:41:08AM -0400, Mike Jeays wrote: Hi! I have received no messages at all from freebsd-questions, or one or two of the other FreeBSD mailing lists, for about 2 days. Do you know if there is a problem at their end, or has perhaps my ISP decided they are all spam? In addition to the other suggestions, you can also check if the list is getting messages by looking at the list archives on http://lists.freebsd.org/pipermail/freebsd-questions/ As well as the other web-accessible list archives there is also gmane which seems to carry all of the FreeBSD lists, is accessible via usenet or http, and allows you to read, search and post. gmane is great! http://news.gmane.org/gmane.os.freebsd.questions/ -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgpwtC7p5aAoX.pgp Description: PGP signature
Re: Script won't run from cron
On Fri, May 21, 2004 at 08:20:04PM +1200, Andrew McNaughton wrote: Since upgrading from 4.5-RELEASE to 4.8-RELEASE (actually rebuilding the system and mounting the old /home directory), I'm having problems with a process which rebuilds a search engine index. Everything runs fine from the command line, but the same script fails when running from cron. The /bin/sh script runs, but when it goes to fire up the indexing process, that process fails. You need to figure out a way to get your program to tell you *what* exactly fails. A lot of things are different from cron - the most often noticed one being that you have a much shorter PATH - so maybe that is it. But if not, it will save you time to get your application to report what exactly it is doing that fails. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgpW5qyqJO7VT.pgp Description: PGP signature
upgrading ports, skipping or deferring from automatic upgrades
Hello, I like to keep my ports up-to-date and to that end I have portversion generate a nice list of outdated packages on my systems, the idea being that when I am satisfied, I do a portupgrade and upgrade them all en masse. This is not without problems occasionally though. In the past I've been bitten by postfix upgrades where the various new postfix binaries on disk are incompatible with the old running copies and mail is corrupted. I also have to remember every time that upgrading the mysql40-server port will actually stop mysqld at the end, without starting it again. Kind of annoying when I have apps connected to the database long term that will cry loudly when it goes away. At first, I was thinking the answer would be to use the parts of pkgtools.conf for executing various commands pre- and post-installation to make sure things are done properly. But then it came to me that this won't always work for something like postfix: multiple programs being called by daemons and having a short life, at some point an old daemon is going to call a new peer program and their protocols won't agree, boom, corrupted mail again. Maybe the solution is to just always be careful about what is going to be upgraded and do the tricky ones manually at the best time. On the other hand, is there maybe a simple way to tell portupgrade *never* to upgrade specific ports unless they are forced or specified singly? What I mean is, say I did portversion -vL = and it shows me that I have 20 packages that could be upgraded, one of them being mail/postfix. I'm itching to do this: sudo portupgrade -aRv which would upgrade the lot, but I can't because I know that upgrading databases/mysql40-server will shut down my perfectly running mysqld. So my choices become: - come up with a portupgrade command that excludes mysql - put off all upgrades until I have had chance to do mysql by itself I would like to be able to tell portupgrade *never* to upgrade ports like databases/mysql40-server and mail/postfix when I do portupgrade -aRv and instead wait for me to specifically do: sudo portupgrade -f databases/mysql40-server Is this possible? What do other people do about this? Yes I realise that being over-zealous with upgrades can be time-consuming, pointless, and detrimental to reliability. This is for personal play stuff, honest. :) -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B SCSI is usually fixed by remembering that it needs three terminations: One at each end of the chain. And the goat. -- Andrew McDonald, HantsLUG pgpEjGA3bKbB9.pgp Description: PGP signature
Re: defining knobs in pkgtools.conf question
On Wed, May 19, 2004 at 02:20:55PM -0400, Chiang Seng Chang wrote: === quote === OPTIONS=THREADS Enable thread support on \ HUGE_STACK_SIZE Use a larger thread stack off \ UCS2 Use UCS2 instead of UCS4 for unicode support off \ PYMALLOC Uses python's internal malloc on .include bsd.port.pre.mk .if defined(WITH_THREADS) CONFIGURE_ARGS+=--with-threads CFLAGS+=${PTHREAD_CFLAGS} .if defined(WITHOUT_HUGE_STACK_SIZE) CFLAGS+=-DTHREAD_STACK_SIZE=0x2 .else CFLAGS+=-DTHREAD_STACK_SIZE=0x10 .endif # defined(WITHOUT_HUGE_STACK_SIZE) CONFIGURE_ENV+= LDFLAGS=${PTHREAD_LIBS} ${LDFLAGS} .else CONFIGURE_ARGS+=--without-threads .if defined(LDFLAGS) CONFIGURE_ENV+= LDFLAGS=${LDFLAGS} .endif # defined(LDFLAGS) .endif # defined(WITH_THREADS) .if defined(WITHOUT_UCS2) CONFIGURE_ARGS+=--enable-unicode=ucs4 .endif .if defined(WITHOUT_PYMALLOC) CONFIGURE_ARGS+=--without-pymalloc .endif === end quote === So if I wish to put the knobs into pkgtools.conf so that it can build it batch mode, do I: WITH_THREADS=1 WITHOUT_HUGE_STACK_SIZE=1 I think that you only need to match the variables used in the Makefile. So the above would be correct, and the following two should just be omitted: WITH_UCS2=1 WITH_PYMALLOC=1 Don't forget you'll need to set BATCH as well. I guess my question is how to decide wheather to use WITH_XXX=1 or WITHOUT_XXX=0 ? Set the exact same variables as the Makefile is testing. does WITH_XXX=0 result in #defined(WITH_XXX) returning false ? I believe not, as defined() only tests if that name is defined, not what its value is. -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B pgpY27aJR6qyu.pgp Description: PGP signature
Re: Display installed port dependencies
platanthera platanthera at web.de writes: On Saturday 15 May 2004 03:44, Andy Smith wrote: Hi, Is there a simple way to display a list of all installed packages that depend on another given installed package? pkg_info -R foo will list all currently installed packages that depend on foo Doh! I'm really sorry, that is right in the man page which I DID read. I have no idea how I missed it. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Display installed port dependencies
Hi, Is there a simple way to display a list of all installed packages that depend on another given installed package? i.e. say I would like to know every installed package that depends on gmake which I also have installed. Is there any quick way to display this? I am aware of portsearch which will allow me to get a nice list of every port that depends on another port, but as far as I can see this only operates on the ports collection, not just the ones installed as packages. Thanks, Andy -- http://freebsdwiki.org/ - Encrypted mail welcome - keyid 0xBF15490B Q. How many mathematicians does it take to change a light bulb? A. Only one - who gives it to six Californians, thereby reducing the problem to an earlier joke. pgpl5vPMAVjxi.pgp Description: PGP signature