Re: Ports and Packages
On 2 May 2011, at 19:06, Barry Byrne wrote: On 2 May 2011, at 18:46, Mohammed Gamal wrote: 1-where to get php-5.3.6.tbz and mysql cuz my ports collections doesn't exist. /usr/ports Install the ports tree. # portsnap fetch install Sorry - that should have been: # portsnap fetch extract - barry___ 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: Ports and Packages
On 2 May 2011, at 18:46, Mohammed Gamal wrote: 1-where to get php-5.3.6.tbz and mysql cuz my ports collections doesn't exist. /usr/ports Install the ports tree. # portsnap fetch install i have done installing apache2.2.17 from source but it doesn't start on boot , i also added apache22_enable=YES to rc.conf but no effect. The port version installs a startup script in /usr/local/etc/rc.d/ If you don't use the port version, you'll need to create your own Better to use the port version 2- why i can not access root account through ssh2 ? Because it's disabled in the config as it's a security risk. Better to ssh as a normal user and use sudo/su as appropriate. If you really must, you can edit the config # vi /etc/ssh/sshd_config - barry ___ 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: Can a Bourn Shell Script put itself in the background?
From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Martin McCormick I tried bg $$ but $$ is the current process invoked just as $! is the process of a backgrounded process started by that shell. So, can I make a shell script background itself after starting? Right now, I remind my coworkers to append the after the script name. the bg command expects a job number, not a process ID. Martin, If you mean you'd like to be able to put a script that is already running into the background, then you could press CTRL-Z to suspend the process. Then running 'jobs' will list the job id. Then 'bg jobnumber' (probably 1) should put it into the background. Cheers, Barry ___ 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: libapreq2 broken?
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Erik Norgaard Greg Larkin wrote: I can confirm that this is also a problem on 7.0-RELEASE with Perl 5.8.9 installed. I'm pretty sure I've seen an error like this while working on a port a few months back. I'll take a look and see if I can jog my memory about what the solution was. Thanks, I had it working on 7.1-STABLE with Perl 5.8.8, libapreq2 2.08 and gmake 3.80, now I have Perl 5.10.0 gmake 3.81 on 7.2-STABLE trying to install libapreq2 2.12. I have the same issue on a couple of 6.2-RELEASE boxes, with perl-5.8.9_2 installed. Never did find a solution to this, so interested on any insight anyone may have. Thanks, Barry ___ 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: libapreq2 broken?
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Greg Larkin Please update your ports tree, then apply this patch: http://people.freebsd.org/~glarkin/diffs/libapreq2.diff I reinstalled the port successfully like so: make WITH_MODPERL2=yes install clean Whenever the error message make: don't know how to make w appears in a port build, it indicates that the port requires gmake to build properly, but some Makefile is calling the BSD make instead. That's caused if make is called directly or if the Makefile sets MAKE=make and calls a subdirectory Makefile. If this patch solves the problem, I'll ask s...@freebsd.org to commit it for you. Greg, That seems to have built fine for me. Appreciate the rapid assistance. Regards, Barry ___ 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
Error updating libapreq2 with portupgrade
Hi, Am getting an error in updating the libapreq2 port via portupgrade. This is on a 6.2 Release system. Excerpt from the portupgrade log is below. Not too sure how to proceed with this, so any pointers appreciated. Thanks, Barry cd perl; gmake gmake[2]: Entering directory `/usr/ports/www/p5-libapreq2/work/libapreq2-2.12/glue/perl' cp lib/Apache2/Cookie.pm blib/lib/Apache2/Cookie.pm cp lib/Apache2/Upload.pm blib/lib/Apache2/Upload.pm cp lib/Apache2/Request.pm blib/lib/Apache2/Request.pm cp lib/APR/DummyVersions.pm blib/lib/APR/DummyVersions.pm make: don't know how to make w. Stop gmake[2]: *** [subdirs] Error 2 gmake[2]: Leaving directory `/usr/ports/www/p5-libapreq2/work/libapreq2-2.12/glue/perl' gmake[1]: *** [perl_glue] Error 2 gmake[1]: Leaving directory `/usr/ports/www/p5-libapreq2/work/libapreq2-2.12/glue' gmake: *** [all-recursive] Error 1 *** Error code 1 Stop in /usr/ports/www/p5-libapreq2. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20090519-47480-1f1y34f-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=p5-libapreq2-2.08_3 UPGRADE_PORT_VER=2.08_3 make ** Fix the problem and try again. ___ 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: Freebsd Built-in vacation program does not auto reply
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of lyd mc On Friday 17 April 2009 13:47:45 lyd mc wrote: hi, I don't know how to run it in debug mode I already try this one. #/usr/bin/vacation -d alydio.mc but nothing happened... no logs in /var/log/message and /var/log/maillog pertaining to vacation. Hi, Check your permissions on the the .forward file - should not be world or group writable as far as I can remember. Also, you haven't specified and alias in your vacation command, so only mails addressed to alydio...@domain will be forwarded - could this be the problem? It might help to show the lines from /var/log/maillog that pertain to your test message. - Barry ___ 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: Time skew
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of sc...@centroin.com.br Hi All, I'm facing some strange behavior with an skew in the system clock. The hardware is a Dell PowerEdge 2950III, running two instances of FreeBSD 7.0-RELEASE-p5 - amd64 over an ESXi hipervisor. To both were allocated 4 processors and 4 GB of RAM, and dmesg for both are identical. I'm using clockspeed to synchronize the clock, but just one of them is delaying the clock a lot. The hardware clock is ok as far as the other virtual machine. Where should I start to investigate? Marcelo, I've not used the ESXi hypervisor, but do use ESX 3.5 with FreeBSD, and the only way I've sucessfully kept FreeBSD servers in time, is to use either ntpdate or ntpd. Lately, I've found ntpd to be a better solution. Vmware have a KB article on the best way to configure ntpd on a virtual machine: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKCdocType= kcexternalId=1339sliceId=2docTypeID=DT_KB_1_1dialogID=14730824stateId=0 %200%204678302 For what it's worth this is the ntp.conf I use, which gives me no trouble: tinker panic 0 restrict 127.0.0.1 restrict default kod nomodify notrap server time.server.ip Cheers, Barry ___ 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: How to find files that are eating up disk space
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of John Almberg Sent: 17 December 2008 17:17 To: freebsd-questions@freebsd.org Subject: How to find files that are eating up disk space Here is another newbie question that is driving me crazy, but is probably a laughable situation to an experienced admin... I've got a smallish server that is suddenly out of disk space in the '/' partition. Probably some log files have gotten out of hand. I am going to start looking for the culprits by hand... basically inspecting sub directories, but there must be a better way! Is there a command line tool that will help me figure out where the problem is? Even better, is there a way to proactively monitor the file system, so I can fix problems before I start getting 'out of disk space' errors? Any hints, much appreciated. reebsd-questions-unsubscr...@freebsd.org As a start you might want to look at the 'du' command. man du for more info. But for a quick start: du -x -d2 -h / should give you some useful info. You generally shouldn't have much writing to the / partition, unless you haven't greated a separate /var partition, which is recommended. - barry ___ 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: PHP5 as apache module using packages
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Gary Hartl Sent: 16 December 2008 14:36 To: FreeBSD Questions Ok so i've reinstalled fBSD-7 and i'm running apache 2.2 installed using pkg_add I need to also run php as a module for apache (the web software i'm using requires php as module no cgi). Now I pkg_add'ed php5 from sparc64/all tree on ftp.freebsd.org, I think I missed passing a variable throu to php. My question is how do I know what variables I can pass throu to a package to adjust its installation. Gary: If you want to configure things differntly to the compiled default of a package, then you probably should be using ports instead of packages. This chapter in the handbook explains some differences. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html - Barry ___ 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: Apache aliased directory invisible
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Derek Ragona Sent: 21 October 2008 12:07 To: David Karapetyan; freebsd-questions@freebsd.org Subject: Re: Apache aliased directory invisible At 10:16 PM 10/20/2008, David Karapetyan wrote: FreeBSD office19.resnet.nd.edu 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: Wed Oct 1 10:10:12 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 Hello all. I would like to make aliased directories in apache visible from the directory root. An example: When I visit http://myserver.com/, I would like to see the 'icons' folder (suppose that in my document root I have directories 'bobo' and 'gogo', but that /icons is actually an alias for /usr/local/share/icons). Bobo and gogo show up in the directoroy listing when I access http://myserver.com, but not /icons. How can I remedy this? add a symbolic link: ln -s /usr/local/share/icons [path to your doc root]/icons typically for apache22 this would be: ln -s /usr/local/share/icons /usr/local/www/apache22/data/icons You may also want to check your apache config that the FollowSymLinks option is on. Something like: Options FollowSymLinks is in the appropriate place. Otherwise, Apache will ignore symbolic links. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: how to break portsnap
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Franks Sent: 07 October 2008 21:57 I've googled high low but I cannot find much other that this cannot happen replies. I've got a dual boot to amd64 and i386. The amd64 hasn't been able to portsnap fetch or cron since march. The i386 I just installed, and it portsnap's fine, so it's not a firewall or related issue. I've checked my key and it looks ok. What am I missing? Best, Steve dystant# portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found. Fetching snapshot tag from portsnap1.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Mon Mar 3 07:50:14 MST 2008 to Tue Oct 7 12:43:25 MST 2008. Fetching 0 metadata patches. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 12365 patches.. done. Applying patches... done. Fetching 13708 new ports or files... /usr/sbin/portsnap: cannot open e53d7ea3f6fbc2e6a87a1f194ea623fc6b27c74d9aecfd61e0d765e86d861ad5.gz: No such file or directory snapshot is corrupt. dystant# Steve: Are you using a proxy server? If so this could be perhaps the proxy server not fully supporting HTTP/1.1 persistent connections. Can you try this: sysctl net.inet.ip.portrange.randomized=0 portsnap fetch update Cheers, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: _secure_path: cannot stat /dev/null/.login_conf: Not adirectory, Any help?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of VeeJay Sent: 02 September 2008 15:54 To: FreeBSD-Questions; VeeJay Subject: su: _secure_path: cannot stat /dev/null/.login_conf: Not adirectory, Any help? Hi On the screen it says su: _secure_path: cannot stat /dev/null/.login_conf: Not a directory Any help to correct this problem? -- Thanks! You haven't said what you did, but it would look to me like you set the home directory of a user to /dev/null and are now trying to su to that user. If this is the case, fix the home directory to the correct path. - Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: string split, bash and IFS
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Unga Sent: 25 August 2008 10:40 To: freebsd-questions@freebsd.org Subject: string split, bash and IFS How to use bash and IFS to split a string? eg. $string = Name:Surname:10 IFS=: echo $string | read name surname age This does not work for some reason. The read does not create name, surname and age variables. Any idea why? Appreciate your reply. [EMAIL PROTECTED] Unga: I think your problem is that each element of the pipeline runs in a separate process, so has no access to the variables from other processes. You could try something like: echo Name:Surname:10 | ( IFS=: ; read name surname age ; echo $surname) Also, probably a typo - but you're assignment of string in the first line should omit the $ sign. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: string split, bash and IFS
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Unga Sent: 25 August 2008 15:11 To: Barry Byrne Cc: freebsd-questions@freebsd.org Subject: RE: string split, bash and IFS --- On Mon, 8/25/08, Barry Byrne [EMAIL PROTECTED] wrote: From: Barry Byrne [EMAIL PROTECTED] Subject: RE: string split, bash and IFS To: [EMAIL PROTECTED], freebsd-questions@freebsd.org Date: Monday, August 25, 2008, 7:54 PM -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Unga Sent: 25 August 2008 10:40 To: freebsd-questions@freebsd.org Subject: string split, bash and IFS How to use bash and IFS to split a string? eg. $string = Name:Surname:10 IFS=: echo $string | read name surname age This does not work for some reason. The read does not create name, surname and age variables. Any idea why? Appreciate your reply. [EMAIL PROTECTED] Unga: I think your problem is that each element of the pipeline runs in a separate process, so has no access to the variables from other processes. You could try something like: echo Name:Surname:10 | ( IFS=: ; read name surname age ; echo $surname) Thanks for the reply. Your statement prints the Surname but the variable $surname disappear after that and not available for further processing. I'm referring to two sources for this: 1. Learning the bash shell, 2nd Edition. O'Reilly publishers Where on page 170, under read section The basic syntax is: read var1 var2... This statement takes a line from the standard input and breaks it down into words delimited by any of the characters in the value of the environment variable IFS. The words are assigned to variables var1, var2, etc. 2. http://www.unix.com/shell-programming-scripting/29202-perl-lik e-split-function-bash.html It looks like it works for others but here on FreeBSD 7.0, bash 3.2.33(0)-release, I find it difficult to get this syntax to work. Unga: The variables in the read command are only available in the same shell process as the read command. In my example, that would be the commands within the () brackets, as the () cause a subshell to be spawned. In the most common situation, a read command is going to be part of a shell script, so the variables will be available within the script. Most often, a read command is going to read from standard input, so you'll have something like: - myscript.sh -- #!/usr/local/bin/bash IFS=: while read var1 var2 var3; do echo The values are $var1, $var2 and $var3 done - myscript.sh -- Then call the script: echo apple:orange:banana | ./myscript.sh Or, maybe use the values from a file. ./myscript.sh mylist.txt where mylist.txt contains one or more lines -- mylist.txt -- apple:banana:orange aea:coffee:milk green:blue:red -- mylist.txt -- - Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sed/awk, instead of Perl
Quoting Steve Bertrand [EMAIL PROTECTED]: few passes over a few files. To put it plainly, can anyone, if it's possible, provide a single line sed/awk pipeline that can: - read email addresses from a file in the format: user.name TAB domain.tld - convert it to: [EMAIL PROTECTED] - write it back to either a new file, the original file, or to STDOUT Regards, cat file.txt | ( while read user domain; do echo [EMAIL PROTECTED]; done ) - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Having some problems with a FreeBSD mail server (SMTP)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Falanga I run a mail server for my church. Today I was called that folks are able to receive, but not send their mail. They are all currently configured for POP3 (I use dovecot). At home I tried to send mail to two different e-mail accounts of mine using the church e-mail server and was successful. I used KMail for this. As I look through /var/log/maillog I do not even see authid=their_user_ids in the mail log (I'm using TLS with sendmail). One of the pastor's told me the error he's seeing is timeout. They are using Outlook, I'm not sure of the version. What problems do people here usually encounter with Outlook mail clients and their SMTP servers? [EMAIL PROTECTED] Andrew: I've seen a similar problem from time to time with Outlook 2003 clients. For seemingly no reason whatsoever, they give a timeout sending mail. Googling the error code throws up many with the same error and no solution that I've found. Telneting to port 25 or even running the Outlook test mail account feature still work, while Outlook comlains it can't send. The workaround is to quit Outlook and start again. By quitting Outlook, the user must choose 'exit' from the 'file' menu. Simply closing the close box still leaves Outlook in memory and the problem remains. The problem seems to happen perhaps once or twice a month for some users. Regards, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with samba 3.0.30 with NT4 domain
All: In case anyone else has this problem. Seems like there's a bug in samba 3.0.30 (and 3.0.29) that causes joining an NT4 domain to fail. Looks like it will be fixed for 3.0.31 whenever that comes: http://www.nabble.com/unable-to-join-a-NT4-Domain-since-3.0.28a-td17678565.h tml After upgrading to 3.0.30 via portupgrade this morning, I got failures connecting the server with a failed trust relationship. On removing and attempting to rejoin the domain, I got: Error in domain join verification (credential setup failed): NT_STATUS_ACCESS_DENIED Downgrading to 3.0.28a worked fine. Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Problem with samba 3.0.30 with NT4 domain
-Original Message- From: Chris Edwards [mailto:[EMAIL PROTECTED] I get this problem even when using version 3.0.28a. I have no clue what is causing it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Byrne Seems like there's a bug in samba 3.0.30 (and 3.0.29) that causes joining an NT4 domain to fail. Looks like it will be fixed for 3.0.31 whenever that comes: http://www.nabble.com/unable-to-join-a-NT4-Domain-since-3.0.28 a-td17678565.h tml After upgrading to 3.0.30 via portupgrade this morning, I got failures connecting the server with a failed trust relationship. On removing and attempting to rejoin the domain, I got: Error in domain join verification (credential setup failed): NT_STATUS_ACCESS_DENIED Downgrading to 3.0.28a worked fine. Chris, Just a guess really - but after reverting to 3.0.28a, I removed the domain account for the server in question and then added it on the domain controller before doing a 'net join' on the samba machine. After starting samba again, all was well. In case it's of relevance - the samba server is 6.2 RELEASE-p12. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Using flags with portinstall of apache?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dr. Jennifer Nussbaum --- Derek Ragona [EMAIL PROTECTED] wrote: At 10:09 AM 4/16/2008, Dr. Jennifer Nussbaum wrote: Hi, Im having trouble doing a simple Apache22 install. I first installed it just using portinstall apache. Then i saw that i needed to specify flags during hte process, to get the modules i wan't, but i cant figure out how to do it. I first did a pkg_delete of apache to start over from scratch. Then i tried to add the flags i wanted: # portinstall -m WITH_PROXY_MODULES=yes WITH_SSL_MODULES=yes apache But this didnt work--it didnt build the proxy modules. I tried again putting those flags in /etc/make.conf but its STILL not building the proxy modules. How am I supposted to do this?!? If you want SSL, you need to install that port first. Also be sure you close your double quotes. Well thats just the thing- i somehow got SSL installed the first time, and it installs now, but its the proxy modules that arent installing now. Jen You might want to try adding the following to your options: WITHOUT_APACHE_OPTIONS=yes - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Using flags with portinstall of apache?
Then i tried to add the flags i wanted: # portinstall -m WITH_PROXY_MODULES=yes WITH_SSL_MODULES=yes apache WITHOUT_APACHE_OPTIONS=yes I tried this too, and it doesnt help... Whether in /etc/make.conf or passed with -m as an option to portinstall, it just doesnt want to build the proxy modules. I dont know why In my make output, I get: ... checking whether to enable mod_setenvif... shared checking whether to enable mod_version... shared checking whether to enable mod_proxy... no checking whether to enable mod_proxy_connect... no checking whether to enable mod_proxy_ftp... no checking whether to enable mod_proxy_http... no checking whether to enable mod_proxy_ajp... no checking whether to enable mod_proxy_balancer... no .. No matter what i do :-( Jen Are you sure you're working on apache22 rather than v13 or v20? I never use portinstall, just run make directly in the port directory. Maybe something like: cd /usr/ports/www/apache22 make clean make WITH_PROXY_MODULES=yes WITH_SSL_MODULES=yes WITHOUT_APACHE_OPTIONS=yes install clean Alternatively, cd /usr/ports/www/apache22 make clean make config make install clean Should allow you to select the appropriate options. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: portsnap fetch errors
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Elwell, Richard I get the following error when I run portsnap fetch: Fetching 14248 new ports or files... /usr/sbin/portsnap: cannot open d5742d6e9ca3b11450f23606ae6a16b391a12f4c7b2d4fc638513ce34f7c2c 25.gz: No such file or directory snapshot is corrupt. A quick search led to a similar problem in the past: Richard, By any chance is your portsnap using a proxy server, possibly squid? If so this may get around the problem prior to running your portsnap. # sysctl net.inet.ip.portrange.randomized=0 You may want to check the value first, and reset it after the portsnap. Maybe something like this in your portsnap script. - barry -- snip -- RANDOMIZED=`sysctl -n net.inet.ip.portrange.randomized` portsnap fetch update # or portsnap cron update sysctl net.inet.ip.portrange.randomized=$RANDOMIZED -- snip -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: portsnap fetch errors
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of RW Sent: 26 March 2008 18:35 To: freebsd-questions@freebsd.org Subject: Re: portsnap fetch errors On Wed, 26 Mar 2008 15:52:51 - Barry Byrne [EMAIL PROTECTED] wrote: By any chance is your portsnap using a proxy server, possibly squid? If so this may get around the problem prior to running your portsnap. # sysctl net.inet.ip.portrange.randomized=0 Why would that make a difference? I think some versions of squid may be a bit broken with respect to correctly handling HTTP/1.1 and in the case of portsnap downloading many files, squid starts closing some of the open connections, which portsnap then attempts to reuse. There was a thread on one of the FreeBSD lists in late 2006. Google a bit and you'll probably find it. Don't know for certain this is your problem, but it did fix it when I came across the problem. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: FreeBSD 7.0 and VMware tools (was Re: FreeBSD 7RC2 and VMware tools)
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] I have the same issue with RC3 and with the 7.0 release. Is this VMware problem (resp. shall we expect them to fix it) or FreeBSD problem (resp. shall we wait for 7.x until it works). I've had no problem installing the tools via the ports on 7.0 release on ESX server 3.0.1. Get the latest freebsd.iso image from Vmware Server. And use this in the CD for the VM. Then: cd /usr/ports/emulators/vmware-guestd6/ make clean install reboot. If you want X support the use: /usr/ports/emulators/vmware-tools6 Cheers, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Franks Sent: 07 January 2008 15:53 I keep reading about making sh scripts executable with #!/bin/sh on the first line and chmod to executable. That works with all my system scripts (rc, etc.) or my system would be DOA, no doubt. When I do it in my home folder, however, running script gives command not found. I've only read about 5 sites telling you how to make shell scripts executable, they all say the same thing, and they all don't work. How did I get to be so special? [EMAIL PROTECTED] Steve, How are you running the commands? The problem is probably to do with your path. Your home directory isn't typically and shouldn't be in your PATH (try echo $PATH). You need to specify the full path to your scripts or place a ./ in front of the script name if in the same directory. e.g. ./myscript.sh or /home/username/myscript.sh - Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: changing mysql datadir
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wonder if you know whether it is possible to change mysql server data dir from the default /var/db/mysql. I looked through my-small.cnf but found no option called datadir. If anyone knows how to change or where to look for compile-time options to set a custom datadir, I'd very much appreciate a link. I was able to Put the following in /etc/rc.conf mysql_dbdir=/path/to/datadir - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Sendmail: sub-domain masquerade as top level
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerahmy Pocott I'm having an issue with getting sendmail to masquerade as the top level domain when the host is a sub domain. For example I want server.exmaple.com to send mail as [EMAIL PROTECTED] rather than [EMAIL PROTECTED], how ever the masquerade options don't seem to work for this.. It works fine if the server is a different domain, but not when it's a sub domain.. How do I get this behavior? Jerahmy, You don't say what you've tried already. I use postfix these days, but from memory, something like the following should work for you: MASQUERADE_AS(`domain.com') MASQUERADE_DOMAIN(`sub.domain.com') - Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How to know total number of bytes of a directory
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DSA - JCR Sent: 17 December 2007 13:38 Hi all I would like to know the total number of bytes of a directory and its related subdirs, occupied by the files inside it. I haven't found any command for knowning it. man du - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How to replace two strings in a file in the same time with sedcommand ?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Halid Faith Sent: 11 December 2007 16:21 I want to replace two or more strings in a file in the same time with sed command. How do I that ? Halid: You haven't said exactly what you want to do, but something like this should get you started. sed 's/oldstring1/newstring1/g; s/oldstring2/newstring2/g' infile outfile ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: fromharikrishna
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hari krishna Sent: 19 November 2007 12:01 To: freebsd-questions@FreeBSD.org Subject: fromharikrishna i want a link to download the free BSD 6.1 os through http can u help me in this The handbook list mirror sites. Some are http some are ftp. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: how to delete a file?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jack Raats Due to an error I made the following file - -rw-r--r-- 1 jos jos0 Nov 19 15:34 - - -rw-r--r-- 1 jos jos 767 Nov 19 15:39 .cshrc drwx-- 3 jos jos 512 Nov 19 15:40 .imap How to delete the - file rm - doesnot work (even with root access) Jack: rm -- - should do the trick. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: shell programming
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Banks Sent: 14 November 2007 17:25 To: FreeBSD Questions Subject: Re: shell programming What am I doing wrough here: #!/bin/sh $DAYN='/bin/date +%a' + _master.sql mysqldump master $DAYN Your quotes should be backticks not single quotes. Also drop the $ from before the variable name when assigning. #!/bin/sh DAYN=`/bin/date +%a` DAYN=${DAYN}_master.sql - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Port GUI Config
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Donovan R. Palmer Sent: 14 November 2007 20:19 To: freebsd-questions@freebsd.org Subject: Port GUI Config I went to compile a programme in the port tree tonight. When I did so, a GUI popped up with different options. No probs. However, later I decided I wanted to compile it with different options. When I go to compile it, the GUI doesn't pop up any more, so I assume it is using the options I picked out in the first place. Is there a way to bring back this GUI so I can select different options? TIA You probably want to do: make config - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How To Change Email Addr?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Bertrand Sent: 18 October 2007 15:00 To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: How To Change Email Addr? [EMAIL PROTECTED] wrote: Hi; I need to update the email address to which emails from the server are sent ([EMAIL PROTECTED], cron stuff, etc.). I created a file: /root/.foreward and added the new address, but that didn't do it? How? If you are running sendmail, check for the root: line in: # /etc/mail/aliases Change the second parameter to what email address you want root's mail to go to, and then run: # newaliases Steve The .forward file should also work - but check your spelling - it's not .foreward - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Mails undelivered
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joel Muia Sent: 18 October 2007 15:10 To: [EMAIL PROTECTED] Subject: Mails undelivered I have FreeBSD 5.5 installed and configured as a firewall and as mail server in my network. Unfortunately, a consultant installed and configured before I joined the company. I am the system administrator however I do not know on how to support it. Currently, mails are not going. Only internal mails are be delivered. How do I troubleshoot? What services do I restart and what commands should I use. Joel, Most mail server software logs to the file /var/log/maillog. So I'd suggest that's the first place to look to try and track down your problem. - Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How To Change Email Addr?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] newaliases is complaining permission denied, but it's owned by root and I'm in as root. What do? Tony: Check the permissions on /etc/mail/aliases.db newaliases writes to this file based on /etc/mail/aliases. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: autoconf failure
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chad Perrin Sent: 04 October 2007 00:35 To: FreeBSD Questions Subject: autoconf failure First, portversion reports as follows: # portversion -v|grep -v = autoconf-2.53_4 needs updating (port has 2.61_2) autoconf-2.59_3 needs updating (port has 2.61_2) Then, /usr/ports/UPDATING fails to note anything about the new autoconf version other than the following: The ports tree has been migrated to the latest version of autoconf, 2.61. Versions 2.53 and 2.59 were declared obsolete and removed. Finally, using portupgrade to try to update my autoconf version yields the following results: === autoconf-2.61_2 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of devel/autoconf261 without deleting it first, set the variable FORCE_PKG_REGISTER in your environment or the make install command line. *** Error code 1 Stop in /usr/ports/devel/autoconf261. *** Error code 1 Stop in /usr/ports/devel/autoconf261. ** Command failed [exit code 1]: /usr/bin/script -qa \ /tmp/portupgrade.31535.1 env UPGRADE_TOOL=portupgrade \ UPGRADE_PORT=autoconf-2.53_4 UPGRADE_PORT_VER=2.53_4 make reinstall --- Restoring the old version I also get this: ** Port marked as IGNORE: x11-servers/xorg-server-snap: is outdated I'm not entirely sure what that's about. I imagine it wouldn't be safe to `make deinstall` all things autoconf, then try to `make install` autoconf. Am I wrong about that? Is there some other way to fix this? Have I overlooked something obvious? Chad, Had the same thought's here - don't know for certain that it's the right thing to do, but I did: cd /usr/ports/devel/autoconf261 make deinstall make reinstall This seemed to remove the older versions of autoconf. Following that a portupgrade -av built the few other ports that had been skipped previously. Cheers, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: p5-libapreq2 port fails to build
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philip M. Gollucci Barry Byrne wrote: Hi All, Not sure if it's related to the upgrade to autoconf 2.61, but libapreq2 now fails to build. Running on 6.2-RELEASE-p7 with ports tree up to date. The header files referenced in the first two lines below do existin in: /usr/local/include/apache22/modules/perl/ H -- very odd -- this actually works for me. Likely your ports tree was in flux. What was the actual compile line -- the one with the -Iinclude stuff? Hi Philip, It builds for me now - though it seems a change was made to the master port to bump the revision number: Wed Oct 3 15:18:43 2007 UTC (18 hours, 2 minutes ago) by timur Branches: MAIN CVS tags: HEAD Diff to: previous 1.27: preferred, colored Changes since revision 1.27: +1 -1 lines Bump the PORTREVISION to make last changes being seen. So that seems to have done it. Appreciate your help. Regards, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: p5-libapreq2 port fails to build
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philip M. Gollucci Sent: 02 October 2007 19:27 Barry Byrne wrote: Not sure if it's related to the upgrade to autoconf 2.61, but libapreq2 now fails to build. Most likely it is: http://svn.apache.org/viewvc/httpd/apreq/trunk/CHANGES?r1=4299 58r2=439245 http://svn.apache.org/viewvc/httpd/apreq/trunk/build/version_c heck.pl?r1=434368r2=439245 http://svn.apache.org/viewvc/httpd/apreq/trunk/glue/perl/Makef ile.PL?r1=215979r2=439245 (that should have all been one commit -- appologies) I believe 2.59 was being used before to build this port. $life has been in my way for about the last 8 months so I'm a bit out of it. Basically the apache include path is not set correctly. You can just apply the Makefile.PL patch and it should work. Philip, Thanks for that, though I can't seem to get it to work. I tried applying the patch, which appeared to succeed, but the build fails with a different error: Writing Makefile for libapreq2 cd perl; make make: cannot open Makefile. *** Error code 2 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2. One thing that puzzles me, is that I can build libapreq2 just fine, but p5-libapreq2 fails. And it seems that the Makefile from the latter, just includes the one from libapreq2. Are these two ports one and the same thing and interchangeable? Regards, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache port OPTIONs support
All, Recently, the apache port changed as per the note in /usr/ports/UPDATING below. I used to build apache with the proxy modules: make WITH_PROXY_MODULES=yes install I've now tried: make WITHOUT_APACHE_OPTIONS=YES WITH_PROXY_MODULES=yes install This builds the proxy modules, but leaves out at least SSL modules, so I'm assuming there is a preferred way to specify specific options, but can't figure out how. Thanks for any help, Barry - From the /usr/ports/UPDATING file - By popular request, OPTIONS support has been added. When enabled (default), these knobs are ignored: * WITH_CATEGORY_MODULES * WITHOUT_CATEGORY_MODULES * WITH_CUSTOM_CATEGORY * WITH_MODULES * WITHOUT_MODULES * WITH_STATIC_MODULES However, you can disable OPTIONS by defining WITHOUT_APACHE_OPTIONS. Previous ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
p5-libapreq2 port fails to build
Hi All, Not sure if it's related to the upgrade to autoconf 2.61, but libapreq2 now fails to build. Running on 6.2-RELEASE-p7 with ports tree up to date. The header files referenced in the first two lines below do existin in: /usr/local/include/apache22/modules/perl/ Any help appreciated. Thanks, barry -- /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/apreq_xs _postperl.h:21:34: modperl_perl_unembed.h: No such file or directory /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/apreq_xs _postperl.h:24:33: modperl_common_util.h: No such file or directory In file included from Request.xs:45: /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:3: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:82: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:162: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:243: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:320: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:477: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:513: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:575: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:639: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:675: error: syntax error before void /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xsbuilder/APR/Requ est/APR__Request.h:738: error: syntax error before void *** Error code 1 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xs/APR/Request. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xs/APR. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl/xs. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue/perl. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08/glue. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2/work/libapreq2-2.08. *** Error code 1 Stop in /usr/ports/www/p5-libapreq2. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Get effective group id
Hi, From a Bourne shell script, how to get (and test) the group id of the user that is executing the script? Best regards, Olivier: id -gn should give you the group name. Drop the -n if you want just the numberic id. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How to change NIC IP when system is running FBSD 6.1
Juan: Easiest way is to edit /etc/rc.conf and reboot. - Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DSA - JCR Sent: 18 July 2006 10:13 To: freebsd-questions@freebsd.org Subject: How to change NIC IP when system is running FBSD 6.1 Hi all I need to change the IP and netmask of my FreeBSD 6.1 Box and I dont' know how to do once the system is up and running. I have tried doing with KDE but I have several errors when I restart the computer. I have Samba installed also. Can anyone help me? Thanks in advance and best regards Juan Coruña Desarrollo de Software Atlantico ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Upgrade sendmail via ports - version in smtp greeting doesn't match
All: Not a major issue, but I've upgraded sendmail on a 4.11 box via the ports. All appears to be working, but if I look at the SMTP greeting, the version of sendmail or the config version is incorrect. The latter version (8.13.1) would have been the version prior to the port upgrade. 220 mail.domain.com ESMTP Sendmail 8.13.5/8.13.1; From memory, I think the first number is the sendmail version and the second the config version. I've done the make all, make install, make install-cf etc. from /etc/mail and also done a make mailer.conf from the sendmail ports directory. Any help on what I should do here would be appreciated. Thanks, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Upgrade sendmail via ports - version in smtp greeting doesn't match
Seem to have solved this. Not sure it's the correct thing to do, but modified the Makefile in /etc/mail by adding a check for /usr/local/share/sendmail/cf for the config files. Seems to be OK now. - Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Byrne Sent: 25 January 2006 11:26 To: freebsd-questions@freebsd.org Subject: Upgrade sendmail via ports - version in smtp greeting doesn't match All: Not a major issue, but I've upgraded sendmail on a 4.11 box via the ports. All appears to be working, but if I look at the SMTP greeting, the version of sendmail or the config version is incorrect. The latter version (8.13.1) would have been the version prior to the port upgrade. 220 mail.domain.com ESMTP Sendmail 8.13.5/8.13.1; From memory, I think the first number is the sendmail version and the second the config version. I've done the make all, make install, make install-cf etc. from /etc/mail and also done a make mailer.conf from the sendmail ports directory. Any help on what I should do here would be appreciated. Thanks, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Mysql-5.018 fails to build from the ports
Hi: I've got a freebsd 4.11-release box which is kept up to date using portupgrade. Haven't had any problem until recently - but now attempting to build mysql 5.0.18 fails. It worked as far as .16, but both .17 and .18 have failed. I get the following error: --- libtool15: link: cannot find the library `../zlib/libz.la' or unhandled argument `../zlib/libz.la' *** Error code 1 Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.18/libmysql_r. *** Error code 1 Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.18. *** Error code 1 Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.18. *** Error code 1 Stop in /usr/ports/databases/mysql50-client. --- The other thing I notice is early on in the configure script, I get the following notice about zlib not being found - though I thought zlib was bundled system-wide. --- checking for zlib compression library... system-wide zlib not found, using one bundled with MySQL --- Any help in solving this would be appreciated. Thanks, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Mysql-5.018 fails to build from the ports
Sorry to answer my own question, but seems like the Makefile in the ports was fixed for builds on 4.x about 10 hours ago. Did another cvsup and all appears OK now. - barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barry Byrne Sent: 11 January 2006 10:42 To: 'freebsd' Subject: Mysql-5.018 fails to build from the ports Hi: I've got a freebsd 4.11-release box which is kept up to date using portupgrade. Haven't had any problem until recently - but now attempting to build mysql 5.0.18 fails. It worked as far as .16, but both .17 and .18 have failed. I get the following error: --- libtool15: link: cannot find the library `../zlib/libz.la' or unhandled argument `../zlib/libz.la' *** Error code 1 Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.18/libmysql_r. *** Error code 1 Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.18. *** Error code 1 Stop in /usr/ports/databases/mysql50-client/work/mysql-5.0.18. *** Error code 1 Stop in /usr/ports/databases/mysql50-client. --- The other thing I notice is early on in the configure script, I get the following notice about zlib not being found - though I thought zlib was bundled system-wide. --- checking for zlib compression library... system-wide zlib not found, using one bundled with MySQL --- Any help in solving this would be appreciated. Thanks, Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Mysql vs /var partition...
-Original Message- From: [EMAIL PROTECTED] My mysql database is growing, it has subsequently filled the /var/db partition to capacity. I tried moving the mysql dir and symlinking it to /var/db/mysql which didn't work. I also tried mount_null from the /usr partition to the /var/db/mysql folder...in both instances, the mysql server will not start. Is there another way around this problem or do i need to somehow resize my /var partition? Matt: Most likely a permissions problem. I generally create a new directory on a different partition for the mysql data. You might want to use tar to preserve your permissions Something like this should work: Enusre mysql server is stopped mkdir /data/mysql chown mysql:mysql /data/mysql chmod 700 /data/mysql cd /var/db/mysql tar cf - . | ( cd /data/mysql ; tar xvf - ) mv /var/db/mysql /var/db/mysql.old ln -s /data/mysql /var/db/mysql Restart mysql Check the ownerships/permissions of the existing /var/db/mysql to be sure of what you need. - Barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: command-line calculator?
What simple built-in command-line tools are available if I want to just do some simple math on the command line? man bc - Barry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Help: Setting up FTP server is not in the handbook... or is it?
Mark: Edit /etc/inetd.conf and comment out the FTP line. Then 'killall -HUP inetd' to restart. You should then be able to ftp to your machine. You should 'man ftpd' for further details on configuring ftp. Cheers, Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Jayson Alvarez Sent: 21 May 2004 15:23 To: [EMAIL PROTECTED] Subject: Help: Setting up FTP server is not in the handbook... or is it? Hi, I have a lot of files in my computer that i wanted to share with my friends remotely via ftp server. I'm currently using freebsd 4.9 and I've been repeatedly scanning through the handbook but I cant seem to find the portion about setting up an ftp server. Did I miss something in the handbook or its just that there isn't acctualy any part that tells how to do it, or maybe freebsd is just using a different term? Can you give a link perhaps which will give me a hint on setting up an ftp server on freebsd? smile:) jay __ Do you Yahoo!? Yahoo! Domains Claim yours for only $14.70/year http://smallbusiness.promotions.yahoo.com/offer ___ [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: startup scripts in /usr/local/etc/rc.d
Andre: What is the script called? It should end in .sh and be executable by root. - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Andre Grove Sent: 12 December 2003 13:38 To: [EMAIL PROTECTED] Subject: Re: startup scripts in /usr/local/etc/rc.d sorry. i have too much faith in ESP i guess. this is the script that is supposed to run: #!/usr/local/bin/bash /usr/sbin/pppd /dev/caau1 modem crtscts 115200 lock asyncmap 0 defaultroute debug passive persist It's supposed to bring up the PPP interface, but it doesn't. but running the script manually (not the command itself) does. There is no references in /var/spooll/messages that the script was even attempted at bootup. A Lowell Gilbert wrote: *This message was transferred with a trial version of CommuniGate(tm) Pro* Andre Grove [EMAIL PROTECTED] writes: Why would a script not run? I have a script in /usr/local/etc/rc.d, I did chmod +x it, but it still does not run at startup. You didn't give much information there. Not feeling terribly psychic today, I'll just tell you what the manual says. o Scripts are only executed if their basename(1) matches the shell globbing pattern *.sh, and they are executable. Any other files or directories present within the directory are silently ignored. o When a script is executed at boot time, it is passed the string ``start'' as its first and only argument. At shutdown time, it is passed the string ``stop'' as its first and only argument. All rc.d scripts are expected to handle these arguments appropriately. If no action needs to be taken at a given time (either boot time or shut- down time) the script should exit successfully and without producing an error message. ___ [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: TX Threshold TX Underrun ???
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Greg Bernard Sent: 06 November 2003 11:21 I have this message that has showed up in the security run output I don't really know what It means ? backup.xxx.fr kernel log messages: dc0: TX underrun -- increasing TX threshold Any idea ? man 4 dc dc%d: TX underrun -- increasing TX threshold The device generated a transmit underrun error while attempting to DMA and transmit a packet. This happens if the host is not able to DMA the packet data into the NIC's FIFO fast enough. The driver will dynamically increase the trans- mit start threshold so that more data must be DMAed into the FIFO before the NIC will start transmitting it onto the wire. Don't think you should be too concerned about this. - Barry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Squid and newsyslog
Jason: I don't use newsyslog to rotate the squid logs but do the following: Specify the number of logfiles to keep in the squid.conf file: logfile_rotate 8 Tell squid to do rotate the logs with the command: /usr/local/squid/sbin/squid -k rotate You could do this in a short cron job. - Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jason Stewart Sent: 07 October 2003 14:06 To: Free BSD Questions list Subject: Squid and newsyslog I'm having trouble rotating my squid access.log and cache.log with newsyslog. Here is my entry in newsyslog.conf: /usr/local/squid/logs/access.log nobody.nogroup 644 7 * 168 Z /usr/local/squid/logs/squid.pid (ditto, but for cache.log also) I have the pid file, the mode, user, and group. The new log is created just fine with the correct ownership and permissions and the old one is trimmed, but squid does not actually restart. The new logfile does not get appended to. For now, I have the newsyslog entry commented out and I'm rotating the log by hand, but sometime I'd like to get it working automatically. For some reason, newsyslog and squid aren't working well together. Any ideas? Thanks, Jason Stewart ___ [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: FreeBSD SPAM
Joseph: We use a combination of a number of DNSBLs and MIMEDefang/SpamAssassin, which between them detect on average 66% of inbound mail as spam/virus, a small amount of other spam gets through undetected, but it's very little. MIMEDefang is a great solution that you can customize to suit your environment, assuming you use sendmail and know a little perl. - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland I know this is an issue that comes up a lot, but I wanted to get an opinion from some people on the list. We, along with everyone else, have TONS of SPAM hit our server. Unfortunately, we haven't found any good way to reduce it. We're using ORDB and SpamCop, but neither are really doing the job. We're a small small company (7 employees) with about 100 mailboxes on the server. We don't mind paying for a service that works, but we are certainly on a tight budget. Any recommendations would be greatly appreciated. Currently, we're using Sendmail, although we're considering (and testing) a switch to PostFix. TIA for any advice, Joe ___ [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: Authenticated SMTP
Wayne: You might want to consider SMTP AUTH, assuming your mail clients support it. POP before SMTP is a hack that sort of works, but causes problems, especially as many clients insist on sending before popping! I use SMTP AUTH with sendmail so can't help you with postfix, but you could try starting here: http://postfix.state-of-mind.de/patrick.koetter/smtpauth/ - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Wayne Pascoe Sent: 09 September 2003 15:48 To: [EMAIL PROTECTED] Subject: Authenticated SMTP Hi all, I need to provide an SMTP service to someone who travels around thie world. I can't do this with a specific IP address, as they use a variety of ISP's in different locations. To this end, I'd like to setup authenticated SMTP, preferably using postfix. I've had a look in the postfix faq and it was a bit vague on this point. In merely said that you need to force the user to authenticate against a pop server first, that maintains a postfix compatible access table. Can anyone point me to a document that explains what pop servers might be suitable for this task and how to go about setting up this authentication ? Regards, -- Wayne Pascoe ___ [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: aliasing ethernet cards in FBSD
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gary Sent: 08 September 2003 15:40 How would I do this in FBSD, setting up an aliased ether to an Ip address? my current rc.conf file currently contains just the address of the machine, as such. ifconfig_rl0=inet 192.168.0.100 netmask 255.255.255.0 Gary: Add something like: ifconfig_rl0_alias0=inet 192.168.0.200 netmask 0x to rc.conf if you want to bring this up without rebooting, try ifconfig rl0 alias 192.168.0.200 netmask 0x Note. That the netmask is 0x if the alias is on the same subnet as the original IP, if different, then use the appropriate submask for the new alias. - Barry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: file picker
ls -1 | perl -e 'srand; rand($.) 1 ($filename = $_) while ; print $filename;' - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Walter Sent: 21 August 2003 17:36 To: Questions Subject: file picker 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. 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: Running a rand or random script
jot -r 5 0 9 | rs -g 0 5 -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jack L. Stone Sent: 16 June 2003 17:15 To: [EMAIL PROTECTED] Subject: Running a rand or random script I need to run a script, perhaps using FBSD's 'rand' or 'random' command (or any other) that will generate one single 5-digit number 'at random' between 1-9 Anyone have thoughts on how to do this?? Many thanks for any suggestions. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [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: Setting sendmail not to resolve domains?
Not recommended if you want to avoid SPAM, but add the following to your .mc file, rebuild .cf file and restart sendmail. - Barry FEATURE(accept_unresolvable_domains) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dragoncrest Sent: 06 June 2003 14:27 To: [EMAIL PROTECTED] Subject: Setting sendmail not to resolve domains? Hi all. I'm wondering how I would go about disabling dns lookups in sendmail? Right now it's denying mail delivery because it can't resolve the senders domain of most of the mail it's recieving. I'd like to tell it to just accept them regardless if it can resolve the domain name or not. Can someone tell me where and how to do this? Maybe give me some examples? Thanks. Also, I'm a sendmail newbie so please keep it as simple as possible. 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: / is filling up
David: du -x -d N / where N is the number of levels deep you want to see. - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David Daugherty My / partition is getting pretty full, 92%. Usually the culprit is something I'm not rotating in /var/log, but that's not the case this time. Does anyone have any suggestions to find out where this is? I'm guessing it's probably something using ls and sort but I'll be damned if I can put something together that helps this problem. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: newbie: rotating logs
man newsyslog - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of admin2 Sent: 04 April 2003 17:31 newbie admin: running FreeBSD 4.7 Stable I am having a bit of trouble finding this. Is there a FAQ or tutorial that discusses the standard convention of rotating log files? I am seeing my /var/log/messages and /var/log/maillog files cycling nicely, but I would like to know how to add other log files to this process. Thanks in advance. - Noah ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Starting DHCPD
Danny: Create a script (/usr/local/etc/rc.d/dhcpd.sh something like this: --script starts below--- case $1 in start) echo Starting DHCP Server /usr/sbin/dhcpd ;; stop) echo Stopping DHCP Server killall dhcpd ;; *) echo Usage: $0 {start|stop} exit 1 esac exit 0 --script ends above--- Make sure it is executable by root, ends in .sh and lives in /usr/local/etc/rc.d Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland Phone: +353 1 417 0150 Fax:+353 1 478 5544 Email: [EMAIL PROTECTED] Web:www.wbtsystems.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Danny Horne Sent: 24 January 2003 10:11 To: [EMAIL PROTECTED] Subject: Starting DHCPD Hi all, I'm making changes to my network which will require using my own DHCP server. It's all set up ready to go, but I can't find any way of getting it to start on boot up. There's nothing that I can find in /etc/defaults/rc.conf or /etc/rc.conf, no startup scripts in /usr/local/etc/rc.d I've used this DHCP server before (have recently been using a different one on the network) so I know it can work, but just can't find any way of starting it automatically. Thanks for all replies To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Can't telnet or FTP
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff LaMarche I just did a clean install of 4.7 (I was running 4.0 previously) on a machine that I'm using as primarily as a network gateway and firewall and also as a file server. It installed fine and is working natd ipfw are working beautifully. However, I am unable to telnet or ftp into the box using either adaptor's ip address - I get a connection refused message. I did set up anonymous ftp access during the install. I'm assuming that I did something wrong in the setup to make it disable remote access. Can anyone tell me what I might have done and how I can re-enable remote access to this box? Jeff: You need to uncomment the relevant entries in /etc/inetd.conf and the restart inetd. BTW: you might want to consider using ssh in place of telnet. ssh is enabled by default and provides an encrypted session. Cheers, Barry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: DNS and DHCPD
lattera: man dhcpd.conf There is a good section here on setting up dynamic updates, with some example configurations. You will also, need to configure BIND to allow updates from the dhcpd server. - Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: 09 January 2003 16:13 To: [EMAIL PROTECTED] Subject: DNS and DHCPD I would like to configure my dhcpd server (isc-dhcpd3 from ports). I would also like to have the options domainnameservers (or somewhat similar) to be dynamic, as my fBSD box is my own router. (I run a local network). The WAN side is DHCP'd, so my IP and DNS servers are set differently each time. I was wondering how to set the domainname servers option in my dhcpd.conf dynamically. Like, it would get edited each time upon bootup, and before dhcpd even loads. I don't know how to even start approaching this problem, except for asking you guys. Thanks so much, lattera To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: /etc/resolv.conf
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of McClain i got a problem with /etc/resolv.conf. On every start up, it gets somehow overwritten with settings i had earlier. I just don't find the script/program which rewrites it. Can somebody please help me man dhclient-script thanks in advance To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: L0phtcrack
This is all very off-topic, but one solution, I've had work for me, is to use one of the linux boot disks which allow you to reset the admin password. See http://is-it-true.org/nt/atips/atips262.shtml for more details. I've not used this on XP, but 2000 has worked fine. - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of kenzo Sent: 24 December 2002 05:07 To: [EMAIL PROTECTED] Subject: Re: L0phtcrack I did thought about reinstalling the OS. In the past with 2000, I had to do this and it kept all the files, but this is not my computer and I don't think that the person would like very much if I erased everything. I forgot to mention that it was a laptop and the OS was preinstalled. Yes, otherwise I would of pulled the hard drive and put it in another machine. I remember seeing some adapters that you could take a laptop hardrive and connect it to a reular IDE cable and power supply on a tower. That was along time ago and I don't even know where I could find something like that anymore. especially if I don't even know what it's called. Another reason why, I wasn't too excited about reloading, is now a day, the laptops are partitioned funny. They come with an extra fat partition, and if you remove that or mess it up, you can't even use the recovery disk that comes with them. It happened to one of my friends. He was made his partition bigger erasing that one, and he coudn't use the recovery disk anymore. they had to send him the all the disks , ( 3 I think. ). I finaly found where the l0phtcrack program was located in FBSD, but when I run it, it says that it's an Invalid format. Now If I use one of those hash recovery programs, it shows the username and the hases, but I dont' even know what to do with that. I starting to think that this is a lost cause. - Original Message - From: Derrick Ryalls [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 23, 2002 10:36 PM Subject: RE: L0phtcrack Unless your friend encrypted his data, he shouldn't need a password cracker. By encrypt, I mean the XP built in encrypt per user method under advanced properties. In that case, then only the password will save the data. If the data is just sitting there on the NTFS drive, recovery can be easy: Method 1: Pull drive out of machine, put in a working xp box as slave. Extra drive contents should be readable as normal. Method 2: Reinstall the O/S without formatting. This repaints the O/S and gives you a chance to assign admin password. All user data should be safe.* *I claim no responsibility for data, especially if you accidentally repartition the box. Good luck. -Derrick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Kenzo Sent: Monday, December 23, 2002 3:34 PM Cc: [EMAIL PROTECTED] Subject: Re: L0phtcrack Sorry guys, I didn't mean to be so rude. I just took the first couple replies the wrong way. Busy day and MX records not resolving correclty and stuff. I know that it sound suspicious to ask how to crack the windows password, but that is what I need to do, and I really don't have $300 bucks to pay for the new version of l0phcrack. Again the reason why I need this, is because a friend of mine forgot his windows XP admin password. and since it was the only account on there, he can't get back in. He can't affort to reload, because he got stuff on it that he need for school projects and stuff. I don't really know exactly what he's got in it, but he asked me if it was possible to retrieve the password or reset it. I told him it was possible and I've been trying for the last 2 days to do it. I tried the linux boot disk that suppose to reset the admin password, but that didn't work. I think it only works on 2000. then I booted from a win98 boot disk, then use dos ntfs to copy the sam file to a floppy and tried to use john to crack it. It sais that there's 0 passwords, But when I use a hash retriever, it list all the accounts. I noticed that there was a version of l0phtcrack on freebsd /usr/ports/security/l0phtcrack, and wanted to see if that helped, but I can't seem to find where it installs it and how I would use it. OK, I hope it was something like what you wanted to hear, even though it still sounds suspicious and I understand that. I'm an Admin myself. And for using hotmail accountComputer 101, never use your real or company e-mail address to post on forums, just attracks crackers. I guess it just depends on the person, I just prefer to use different e-mail accounts for work and personal stuff. I guest if you guys think that it's wrong to do so, please let me know why, cause I really can't think of any reasons. Again, sorry guys I didn't mean to offend you
RE: Problem with my startup script?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Adam Lofstedt I am trying to mount a windows share at boot with mount_smbfs. Since I have to use the noauto option in fstab (filesystems in fstab are mounted before the network is initialized), I have created a startup script (smbfsstartup.sh) and placed it in /usr/local/etc/rc.d: Local Package Initialization : (skipping smbfsstartup.sh, not executable). Is your script executable? Try: chown root:wheel /usr/local/etc/rc.d/smbfsstartup.sh chmod 744 /usr/local/etc/rc.d/smbfsstartup.sh - Barry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Getting Perl scripts to work as mail filters
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic What do I have to do to make a simple Perl script filter incoming mail for a mailbox? I wrote a script that just reads standard input and writes it to standard output, then put it in my home directory, then changes /etc/mail/aliases to point to it, like this: mymail:|/usr/home/mymail/perlfilter But when I actually send mail to this address, it just disappears--no error Are you sure there is no error - did you check the sendmail log? You will need to ensure the script is listed in your sm.bin directory (man smrsh). Briefly: in /etc/mail/aliases: mymail: | perlfilter in sm.bin (location varies - possibly /usr/libexec/sm.bin) ln -s /path/to/my/perfilter perlfilter Cheers, Barry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Getting Perl scripts to work as mail filters
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic 'Are you sure there is no error - did you check the sendmail log?' Yup. maillog mentions the message being sent, but indicates no error. Can you post the log entry - does it say mailer=prog ? - Barry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Getting Perl scripts to work as mail filters
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic Here are the two relevant log entries after I tried to mail something from the console: Dec 18 18:31:10 myserver sendmail[97621]: gBIHVAo97621: from=root, size=39, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], relay=root@localhost Dec 18 18:31:10 myserver sendmail[97623]: gBIHVAo97621: to=|/usr/home/mymail/mailman, ctladdr=mymail (1/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30039, dsn=2.0.0, stat=Sent So it does say mailer=prog, which means what? Well it looks like your script is being run - what should your script do? sendmail manual seems to indicate that it just pipes the e-mail message into this script, then delivers whatever comes out of standard output, but it doesn't seem to work. the script should run with the mail message (headers + body) supplied on STDIN. sendmail doesn't do anything with the STDOUT from your script. I'm nut sure what you mean by 'delivers whatever comes out' - where would it deliver it? If you need output to go somewhere such as a file or emailed somewhere, you will need to explicitly do this. if you want to quickly to assue yourself that the script is running, try making it create a file in /tmp or somewhere else that it has permissions - sendmail is should not be running as root (probably 'mailnull'). - Barry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Getting Perl scripts to work as mail filters
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mxsmanic *** Well it looks like your script is being run - what should your script do? *** Heck, it's so simple I can list it here: #!/usr/bin/perl while ($inputline = STDIN) { $inputline =~ s/18 Dec 2002/29 Dec 2013/; print STDOUT $inputline; } The s/// stuff is just to give me some proof that the script saw the message. I'm not getting anything at all now, though. I assumed that writing to STDOUT would somehow get the message delivered, but maybe not. But if that's not the way to get it delivered, what is? The How do you expect sendmail to know which user to deliver to? By altering the aliases file, you have said to sendmail: Don't deliver to localuser 'mymail', Instead deliver to the script 'perlfilter' If you don't need your script to modify the data that get's sent, then you could just add another recipient in the aliases file: mymail: | perlfilter, myusername If you want to modify the message before sending it elsewhere, you could do something like: #!/usr/bin/perl $SENDMAIL=/usr/sbin/sendmail -bm; $MYADDRESS=me\@mydomain.com; open(SENDMAIL, | $SENDMAIL $MYADDRESS) or die Can't open $SENDMAIL; while ($inputline = STDIN) { $inputline =~ s/18 Dec 2002/29 Dec 2013/; print SENDMAIL $inputline; } close(SENDMAIL); sendmail manual is not at all clear on this. I looked in sendmail.cf for the name of some program to which perhaps I should pipe STDOUT in the aliases file, but couldn't find anything. When the aliases file does not specify piping of messages to some special program, who normally delivers them? *** sendmail doesn't do anything with the STDOUT from your script. I'm nut sure what you mean by 'delivers whatever comes out' - where would it deliver it? *** To my mailbox. I want the script to see incoming messages just before they get deposited in my mailbox on the server. From what I can understand of how this works, some program actually receives the messages from sendmail (?) and deposits them in my /usr/home/$USER mailbox, which appears to be just a simple text file (I can't find any reference giving the format of that, either). It's running as root on my system. I thought it _had_ to run as root (?); doesn't it have to access mailboxes that have only 600 access or something? Older versions ran as root - current recommended setup is not to run as root. But that's another issue. - Barry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Are There any Free Tools to do Remote SQL Queries?
Martin: Haven't needed to try it myself, but how about a Perl DBI/DBD solution? - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Martin McCormick We may need to make sql queries to a Microsoft server from a FreeBSD system. I am in an area of which I am totally unfamiliar and there is a bit of a time factor involved. The object is to retrieve text files containing the results of the query so that scripts can be generated based upon the information. That, I can handle. The problem is in figuring out the best way to access the MS server from here. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: can't add the ip address in second netword card?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of ann kok I added the second network card in freebsd 4.7 after reboot, I got fxp1 from dmesg but I couldn't add any ip address in the fxp1 even from rc.conf or /stand/sysinstall You haven't told us what you did. You should be able to set the IP with a command something like: ifconfig fxp1 inet 192.168.1.1 netmask 255.255.255.0 To setup at boot time, add: ifconfig_fxp1=inet 192.168.1.1 netmask 255.255.255.0 to /etc/rc.conf and reboot. - Barry Please help and thanks much fxp1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 ether 00:02:b3:a2:8c:69 media: Ethernet 100baseTX full-duplex status: active __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Bind - Upgrading from FreeBSD 4.6 default to 9.2.1
Nick: Check where the new version has been installed, then modify the named lines in /etc/rc.conf accordingly. For example (assuming it went into /usr/local/sbin) : named_enable=YES # Run named, the DNS server (or NO). named_program=/usr/local/sbin/named # path to named. (bind 9.2.1) named_flags=-c /etc/namedb/named.conf # Flags for named - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nick Wilson Sent: 09 December 2002 14:13 To: [EMAIL PROTECTED] Subject: Bind - Upgrading from FreeBSD 4.6 default to 9.2.1 Hi I'm running FreeBSD 4.6 and have ported and installed (successfully, I believe) BIND 9.2.1. However if I run named -v the version reporting is 8.3.2-T1B as supplied with the FreeBSD release. named-checkconf -v or named-checkzone -v report version 9.2.1. How do I tell FreeBSD to use the new version of BIND? I've tried editing the named-program path in rc.conf but with no effect. Many thanks, Nick To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: PHP install
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew Rench Does anyone know where I can find some documentation on installing PHP 4.2.3 on FreeBSD 4.4? The INSTALL file that comes with the distribution is pretty comprehensive. I recommend going the DSO route, rather than a static build. Alternatively, if you like using the FreeBSD ports, CD the appropriate directory and: make install. - Barry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: count the number of ports
How about: wc /usr/ports/INDEX - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Zhihui Zhang Sent: 04 December 2002 17:21 To: [EMAIL PROTECTED] Subject: count the number of ports Is there a way to count the number of ports in a FreeBSD release? I guess this boils down to how to parse the file /usr/ports/INDEX easily. Thanks. -Zhihui To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: POP3d slowing down mail downloads
Do you have your client set to leave mail on the server? If so, you will find performance getting worse and worse as the mailbox grows larger - POP clients should normally be told to delete mail from the server after retrieval. - Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Rosa Sent: 03 December 2002 18:06 To: [EMAIL PROTECTED] Subject: POP3d slowing down mail downloads Importance: High Hello everybody, I have sent this question few monts ago, but no reply come back. Is everybody out there who knows the solution? Please advice with small problem. I have the gateway running FreeBSD 4.3 with sendmail and pop3d. It seems to slow down all downloads of localy saved mails. Two months ago I can download eg. 5MB mail up to 15 secs, now it is about 2-3 mins. It is still worse and worse :-((( Where could be the problem ? Thanks for all replies. Peter Rosa To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Simple Question
PicoBSD (http://www.picobsd.org/) fits on a floppy. -- Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland Phone: +353 1 417 0150 Fax:+353 1 478 5544 Email: [EMAIL PROTECTED] Web:www.wbtsystems.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Asenchi Sent: 03 December 2002 20:14 To: [EMAIL PROTECTED] Subject: Simple Question What is the smallest fBSD install out there? How small of a hard drive could you fit a good install of bsd on? Not a problem, just a question. ASENCHI To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Question about memory usage
man top - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Winslow Sent: 19 November 2002 16:13 To: [EMAIL PROTECTED] Subject: Question about memory usage I'm running FreeBSD 4.5, on a P-133 system. I just upgraded my RAM yesterday from 80MB to 256MB, because it always used to sit at 93-94% used when I had 80. Well now that I installed more, it's sitting at 93% used again. Being newer to BSD, is there a way I can check what is using memory...or does it just do that automatically? Thanks for the help! Matt Winslow [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: cheat sheet? apache, mod_ssl, mod_php, mysql
Brent: Does PHP show up in the module list when Apache is restarted? Check the apache error_log for something like: [Tue Nov 5 11:51:55 2002] [notice] Apache/1.3.27 (Unix) PHP/4.2.3 configured -- resuming normal operations If not, have you modified the apache config file. Make sure you have something like the following lines: LoadModule php4_modulelibexec/libphp4.so AddModule mod_php4.c AddType application/x-httpd-php .php They may either not be there or commented out. If so add them in and restart apache. Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of Brent Bailey Sent: 05 November 2002 16:33 Im having the same issue .. I install per the way shown below cd /usr/ports/databases/mysql323-server make install clean cd /usr/ports/www/apache13-modssl make install clean cd /usr/ports/www/mod_php4 make install clean but php4 doesnt work ...is ther some flags or options that need to be put in ?? Thanx Brent To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: cheat sheet? apache, mod_ssl, mod_php, mysql
You could try adding something like this in your apache startup file: LD_PRELOAD=/usr/local/mysql/lib/mysql/libmysqlclient.so; export LD_PRELOAD Modify for your mysql lib location and add these two lines before the call to start httpd. Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of DaleCo Help Desk Good list, but where's MySQL? My current point of failure is that apache can't load mod_php4 because it hasn't been built with MySQL symbols/support Using the supplied docs got me this far, but I've been stumped with this one KDK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: cheat sheet? apache, mod_ssl, mod_php, mysql
I tend to build from standard sources rather than ports, but I think the MySQL port installs the client library by default at: /usr/local/lib/mysql/libmysqlclient.so So you could try preloading that. I'm not sure for definite that this is your problem though, as I don't often use the ports. Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of DaleCo Help Desk Sent: 05 November 2002 17:18 To: Barry Byrne; Roger Williams; [EMAIL PROTECTED] Subject: Re: cheat sheet? apache, mod_ssl, mod_php, mysql /usr/ports/databases/mysqlserver323 doesn't seem to build any shared objects.. :-( Could I get the same results by preloading the daemon (program) file? KDK From: Barry Byrne [EMAIL PROTECTED] To: DaleCo Help Desk [EMAIL PROTECTED]; Roger Williams [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 10:39 AM Subject: RE: cheat sheet? apache, mod_ssl, mod_php, mysql You could try adding something like this in your apache startup file: LD_PRELOAD=/usr/local/mysql/lib/mysql/libmysqlclient.so; export LD_PRELOAD Modify for your mysql lib location and add these two lines before the call to start httpd. Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of DaleCo Help Desk Good list, but where's MySQL? My current point of failure is that apache can't load mod_php4 because it hasn't been built with MySQL symbols/support Using the supplied docs got me this far, but I've been stumped with this one KDK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Sendmail: non-relay secure
I recommend you use SMTP AUTH if your mail clients support it. There is some info on sendmail.org: http://www.sendmail.org/~ca/email/auth.html Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of Steve Warwick I have sendmail / qpopper running on a production machine and have yet to figure out a way to open mail up to my client sin a secure way. Eg. Client logs in from aol.com to check and send mail. Is there a way to do this that will not open my machine up to abuse? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: looking for a lightweight web server
I've never seen great reason to use anything other than Apache. Might not fit your 'lightweight' tag, but it's not particularly taxing on resources, and anyway the PHP element of your use is likely to the most resource intensive. Cheers - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of Rotaru Razvan Sent: 30 October 2002 17:38 I am looking for a lightweight web server with php support to set up on my FreeBSD system. It is very likely that the only use for that web server will be phpMyAdmin so it should be multithreading and all that stuff. I want something small and very fast (i have a k6-2 500MHz system). If somebody knows can recommend me one i'll be thankfull. All this searching gives me a headache... :) To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Server administration while on holiday
How about a Java/Web based SSH client? - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of Andreas Wideroe Andersen Sent: 22 October 2002 09:55 To: [EMAIL PROTECTED] Subject: Server administration while on holiday Dear list readers, I'm going away on a 2 month vacation in a couple of weeks and I need to find a way I can do simple server administration from remote locations. I will most likely not be able to connect via SSH to my 2 servers (Running FreeBSD 4.5 and 4.6 STABLE) since the only internet access I will have is through various Internet Cafes. Does anyone know if there is a tool to do smaller jobs like restarting services and stuff via a www interface? Thanks for your time! /Andreas To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: How to start gnome2?
Put this line in your .xinitrc exec gnome-session Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of Ronnie Clark Sent: 18 October 2002 13:53 To: FreeBSD Questions Subject: How to start gnome2? I just finished compiling gnome2 from the ports. But now how do I start? I added the line exec gnome to my .xsession and .xinitrc files, typed in startx, and got an error saying, could not find gnome. Is there a different syntax? Thanks in advance, Ronnie Clark __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: auto replay on sendmail
man vacation - Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Leo De Geer Sent: 16 October 2002 22:26 To: [EMAIL PROTECTED] Subject: auto replay on sendmail im runing sendmail on my mailserver i nead to put upp a vikation uto replay to e-mails comming in to my mail acunt To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Problem with sendmail
Ada: Reboot of the whole system is not necessary: killall -HUP sendmail should restart sendmail for you. Cheers, Barry -Original Message- From: [EMAIL PROTECTED] [mailto:owner-freebsd-questions;FreeBSD.ORG]On Behalf Of Ada Cheng Sent: 17 October 2002 12:59 To: Dirk Meyer Cc: [EMAIL PROTECTED] Subject: Re: Problem with sendmail I realize what my problem was. I didn't reboot the system after I rebuild sendmail. Thanks everyone!! Cheers, Ada On Thu, 17 Oct 2002, Ada Cheng wrote: I have added the line recommended below but I am still getting a similiar error, except now I have Oct 17 05:43:38 infinity mail.local: setreuid(0, 0): Operation not permitted (r=1, e=1) So I decided to look for the file mail.local and notice the following: -r-xr-xr-x 1 bin bin 73967 Oct 16 12:28 /usr/local/libexec/mail.local I also have mail.local at /usr/libexec/ /usr/local/bin/ but those two mail.local file has ownership root and group wheel. Shouldn't all have them have ownership root and group wheel? Many thanks once again. Ada On Wed, 16 Oct 2002, Dirk Meyer wrote: Ada Cheng schrieb:, I am unable to receive any email send to my box. I am running 4.6.2 with sendmail 8.12.6_1. When I try to send a test mail to another source which I then redirect back to my box I obtain the following message in Oct 16 15:56:10 infinity mail.local: setreuid(0, 1000): Operation not permitted (r=1, e=1) Please add in your sendmail.mc file: MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl mail.local is not SUID, so sendmail must start it as root. kind regards Dirk - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany - [[EMAIL PROTECTED]],[[EMAIL PROTECTED]],[[EMAIL PROTECTED]] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: disappearing job
Did you do Alt + Fn perhaps? On a console this generally lets you switch to another virtual console. Try Alt + F1 to bring you back? - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Banning Sent: 10 October 2002 17:11 To: [EMAIL PROTECTED] Subject: disappearing job I was editing a job in vi, then my hand slipped and I was back at the shell. When I went to edit the file again, it said the file was locked. A ps ax | grep vi showed that the application was still running. Where did it go? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: how to delete file named ?'??
A few things you can try: Enclosing the file name in quotes generally works. rm ?'?? Adding -- prevents anything further on the command line being interpreted as a switch. rm -- ?'?? rm -i * Should prompt you for each file in the directory to delete. Answer no to all bar the one you want. Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland Phone: +353 1 417 0150 Fax:+353 1 478 5544 Email: [EMAIL PROTECTED] Web:www.wbtsystems.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tomasz Koziara Sent: 25 September 2002 13:34 To: freebsd-questions Subject: how to delete file named ?'?? Hi How to delete file named?'?? ? This is probably trivial but I tryed and still cannot figure it out. Thanks. Tom Clearasil rozdaje 10 000 Plyt CD z hitami muzyki POP za darmo! Chcesz jedna, kliknij. http://a1.o2.pl/rdr.php?banner_id=625 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: 4.6.2 filesystem efficiency
Matthias: I think it was introduced in 4.4 but only enabled in the default kernel from 4.5 onwards. At least that's what my kernel confs seem to indicate. - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matthias Trevarthan Sent: 25 September 2002 14:41 To: Lowell Gilbert Cc: [EMAIL PROTECTED] Subject: Re: 4.6.2 filesystem efficiency At what point in time was this feature introduced? I have a number of 4.6.1-p10 systems that were upgraded from 4.4-RELEASE. Matthias DIRHASH was standard in the GENERIC kernel by 4.6.2, so you should be fine with hundreds of thousands of files. Just make sure that you have options UFS_DIRHASH in your kernel configuration. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: 4.6.2 filesystem efficiency
Some performance/memory info at: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=18975+0+archive/2001/freebsd-fs /20010624.freebsd-fs -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matthias Trevarthan Sent: 25 September 2002 15:00 To: Barry Byrne; Lowell Gilbert Cc: [EMAIL PROTECTED] Subject: Re: 4.6.2 filesystem efficiency Neat. Has anyone benchmarked this thing? Are there any reports that detail the performance increase? (And the RAM increase, I'm guessing) On Wednesday 25 September 2002 09:49, Barry Byrne wrote: Matthias: I think it was introduced in 4.4 but only enabled in the default kernel from 4.5 onwards. At least that's what my kernel confs seem to indicate. - Barry To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: Writing a start / stop script (getting pid)
Pascal: You can use the -p option of ftpd to write it's PID to a file. Something like ftpd -D -p /var/run/fptd.pid should probably work. - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Pascal Giannakakis Sent: 24 September 2002 10:41 To: [EMAIL PROTECTED] Subject: Writing a start / stop script (getting pid) Lo ppl, how to i get the pid of a process i start in a shellscript? The Variables $$ / $PID are not really of use. What i would like to have, is some sort of command with has the return value of another startet script. The background: i try to write a rc.d script for ftpd, and i need the PID to stop it again. Thx! -- Werden Sie mit uns zum OnlineStar 2002! Jetzt GMX wählen - und tolle Preise absahnen! http://www.onlinestar.de To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: OT sed help
Matt: How about: grep -E ^\w{9,}, flatfile.txt morethaneight.txt - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland Phone: +353 1 417 0150 Fax:+353 1 478 5544 Email: [EMAIL PROTECTED] Web:www.wbtsystems.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matthew Bettinger Sent: 19 September 2002 15:39 To: [EMAIL PROTECTED] Subject: OT sed help -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I know this is off topic however I hope someone can help. I have a flat file that I need to import into a database. The first field of the file is a part number which cannot exceed more than 8 characters. Does anyone know how I can use sed to count the characters in the first field and if there are more than 8 print out a list? Thank you. Matt -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9ieFpXG7+MmNwciURAqRxAJsES932AbaFG0w4+1oGU+K6reogEwCgoEdx ZEf/Vi3j8vq8HbO4t7gSAqY= =taxV -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: to open tgz manual
tar -zxvf file.tgz should do it on one step (FreeBSD's tar can undo gzips) otherwise: gunzip file.tgz tar xvf file.tar - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of dodi agusri Sent: 23 July 2002 13:31 To: [EMAIL PROTECTED] Subject: to open tgz manual how to open manual book shipped with tgz format __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
RE: WebMail Options
I've used IMP (http://www.horde.org/imp) and found it quite good. Takes a little effort to get it up and running but once done, everything is pretty smooth. Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: 16 July 2002 17:19 To: [EMAIL PROTECTED] Subject: WebMail Options We are exploring our options for WebMail, but having difficulty finding the right one, specifically: One that supports: -Multiple domains -POP3 -Runs on FreeBSD, Apache, CGI or PHP preferably -SSL Option -User friendly -Not too too expensive We have looked at OpenWebmail and cannot seem to allow it to work with multiple domains (hosting environment). Anyone with documentation on how to, would be greatly appreciated. We have looked at Uebimiau for the longest time try to solve a bug. We have tried to contact the author several times without success. Below is my original post, hopefully someone who is using it can offer some further insight. Found here: http://www.uebimiau.sili.com.br/ On a FreeBSD 4.6R server, when I send a message through the web interface, the recipient will see the following in the header fields within their (any) mail client software (note the comments after each line): From: [EMAIL PROTECTED] // which is right To: [EMAIL PROTECTED] @server.mydomain.com // which is NOT right CC: [EMAIL PROTECTED] @server.mydomain.com // which is again not right Reply-To: [EMAIL PROTECTED] // which is right Any idea how can I stop the server from appending it's (or another) mail server name after the 'To:' field. I have tried tweaking the code with no positive results. We have also tried relaying the mail through the server Webmail is setup on, right through sendmail, and two other FreeBSD servers running Sendmail. We have tried contacting the author several times, as well as the FAQ, site, etc. Appreciate any assistance. Thank you, ...D To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message