Re: [6.3] Get e-mail when CTRL-ALT-DEL is used?

2010-07-08 Thread George Davidovich
On Thu, Jul 08, 2010 at 12:12:27PM +0200, Gilles wrote: > This is on a remote 6.3 host: I'd like to get an e-mail if a user hits > the CTRL-ALT-DEL to reboot the server. > > Googling told me that the use of the three-key combo can be > enabled/disabled when compiling a new kernel, but not how to m

Re: text to html

2010-07-03 Thread George Davidovich
On Sat, Jul 03, 2010 at 11:07:29AM +0200, Jozsi Avadkan wrote: > input: > http://pastebin.com/raw.php?i=MqPXZwc3 > > output: > http://pastebin.com/raw.php?i=8QCkp4yv > > it will be a long day.. :D > > could someone please help with it? > > i have to make a "one liner" that get's the input, and

Re: jail and uname

2010-07-03 Thread George Davidovich
On Sat, Jul 03, 2010 at 02:13:13PM +0800, Aiza wrote: > From the console of a jail I issue uname -r and get 8.0-RELEASE-p3, > which is the release level of the host. I know the jail is running a > pristine minimum install of 8.0-RELEASE. > > I would think issuing uname from within a jail environme

Re: .sh & ip address

2010-06-22 Thread George Davidovich
On Wed, Jun 23, 2010 at 10:31:51AM +0800, Aiza wrote: > I looking to take the last group number in a ip address and bump the > number by 1. BY the way is there some name for each group of numbers in > the ip address? Octet. > Something like. > > org_ip="10.0.10.2" > short_ip=need command to st

Re: Booting multiple choice, and pause to read bootup info

2010-06-21 Thread George Davidovich
On Mon, Jun 21, 2010 at 08:19:22PM -0500, J. Porter Clark wrote: > 1. I'd like to be able to expand the list of choices in the > boot menu (the menu with single user mode, safe mode, etc.) to > include booting in any of several different environments, e.g., > home wired, home wireless, work wired,

Re: command to strip suffix in .sh script

2010-06-03 Thread George Davidovich
On Thu, Jun 03, 2010 at 11:11:16PM +0700, Anh Ky Huynh wrote: > On Wed, 02 Jun 2010 20:25:36 -0400 Vinny wrote: > > On 06/02/2010 04:30, Matthew Seaman wrote: > > > On 02/06/2010 09:24:01, Matthias Apitz wrote: > > > > Aiza wrote: > > > > > > > > > I have this code > > [snip] > > > > $ echo 'archiv

Re: Small computer to run a GUI?

2010-05-07 Thread George Davidovich
On Fri, May 07, 2010 at 06:41:16PM -0700, Liontaur wrote: > I'm looking for a small (and relatively inexpensive) computer to run a > GUI, I don't much care if it's KDE or Gnome or one of the others. Just > so that I can browse the Internet using Firefox (unfortunately I may > need to look at some f

Re: Kill via Cron...

2010-04-20 Thread George Davidovich
On Tue, Apr 20, 2010 at 12:57:25PM -0700, Randal L. Schwartz wrote: > > > > >> "Karl" == Karl Vogel writes: > > > > > On Tue, 20 Apr 2010 08:52:58 +0100, > > > > "mcoyles" said: > > M> kill -9 `ps ax | grep backup | grep -v grep | awk '{print $1}'` > > And you don't have to remember grep -v g

Re: Advanced printing/layout tools

2010-01-01 Thread George Davidovich
On Fri, Jan 01, 2010 at 04:25:08PM -0600, Doug Poland wrote: > On 2010-01-01 14:18, Roland Smith wrote: > > On Fri, Jan 01, 2010 at 07:36:25PM +0100, Polytropon wrote: > > > On Fri, 1 Jan 2010 19:24:21 +0100, Roland Smith wrote: > > Thanks for the info so far. I have much to learn about LaTeX, tha

Re: Adding an alias to .cshrc

2009-12-29 Thread George Davidovich
On Tue, Dec 29, 2009 at 07:50:21PM -0500, Steve Bertrand wrote: > I want to add an alias to my .cshrc file: > > alias srm find . -name "*~" | xargs rm No need for xargs: alias srm "find . -name '*~' -exec rm {} +" or alias srm "find . -name '*~' -delete" > ...so that I have an easy way

Re: Sendmail client configuration to connect to ISP's SMTP server

2009-12-26 Thread George Davidovich
On Sat, Dec 26, 2009 at 11:20:27AM -0800, Aflatoon Aflatooni wrote: > What configuration do I need to set in my freebsd.submit.mc in order > to connect to the ISP's SMTP server? The ISP is blocking all the > emails unless it goes through their mail server, so I need my FreeBSD > box to connect to

Re: Mount dump0 as ISO9660 filesystem?

2009-12-04 Thread George Davidovich
On Fri, Dec 04, 2009 at 04:50:43PM -0800, Nerius Landys wrote: > > Either way, the file remains just a file, and is read using > > restore(8). [snip] > All I really want to do is take my dump file and see the "files" > inside it, and do things with those files such as copy or md5sum (not > edit).

Re: "Last login" message

2009-12-04 Thread George Davidovich
On Thu, Dec 03, 2009 at 03:16:54PM -0800, Nerius Landys wrote: > When I ssh to my FreeBSD machine, I get something like this: > > Last login: Thu Dec 3 15:12:40 2009 from 11.22.33.44 > Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 > The Regents of the University of Californ

Re: Mount dump0 as ISO9660 filesystem?

2009-12-04 Thread George Davidovich
On Thu, Dec 03, 2009 at 03:27:48PM -0800, Nerius Landys wrote: > I heard somewhere that you can mount a dump as an ISO9660 filesystem, > but I cannot find any Google answers on this subject. I took my dump > in the following fashion: > > dump -0Lan -C 16 -f - /usr | gzip -2 | > > So, I have a f

Re: PF binat rule issue - feature or bug?

2009-12-04 Thread George Davidovich
On Fri, Dec 04, 2009 at 10:41:20AM -0600, Greg Barniskis wrote: > Using 7.2-RELEASE-p4 i386 with GENERIC kernel, I've found (the hard way) > that if I have a pf.conf rule like > > nat on $ext_if proto { tcp udp icmp } from $my_subnet \ >to any -> some.public.ip.num > > then pfctl will perfor

Re: 8.0-RELEASE and "dangerously dedicated" disks

2009-12-02 Thread George Davidovich
On Tue, Dec 01, 2009 at 08:34:05PM -0800, Randi Harper wrote: > I'm going to just reply to all of these at once. > > On Tue, Dec 1, 2009 at 1:03 PM, Jerry McAllister wrote: > > On Tue, Dec 01, 2009 at 07:59:42AM -0500, Maxim Khitrov wrote: > > > On Sat, Nov 28, 2009 at 12:28 PM, Peggy Wilkins wrote

Re: Prompt containing SSH login information

2009-11-23 Thread George Davidovich
On Tue, Nov 24, 2009 at 05:10:38AM +0100, Polytropon wrote: > again, a strange question: I'd like to know if there is a builtin > means to let the csh's (or bash's) prompt show an information if > the current dialog session has been opened via SSH from another > system. The obvious is: > > m

Re: Dump

2009-11-21 Thread George Davidovich
On Sat, Nov 21, 2009 at 04:12:42AM +0100, Bernt Hansson wrote: > Matthew Seaman skrev: > > Bernt Hansson wrote: > > > > > > I've been testing backups with dump, works well BUT > > > -L does not work. For example > > > > > > dump -0 -a -u -L -f /mnt/dump.home.full /dev/ad0s2d > > > > I believe th

Re: Dump

2009-11-21 Thread George Davidovich
On Sat, Nov 21, 2009 at 04:12:42AM +0100, Bernt Hansson wrote: > Matthew Seaman skrev: > > Bernt Hansson wrote: > > > > > > I've been testing backups with dump, works well BUT > > > -L does not work. For example > > > > > > dump -0 -a -u -L -f /mnt/dump.home.full /dev/ad0s2d > > > > I believe th

Re: SLIM and XFCE4

2009-11-05 Thread George Davidovich
On Thu, Nov 05, 2009 at 10:49:44PM +0100, Polytropon wrote: > On Wed, 4 Nov 2009 23:01:19 -0800 (PST), Alexandre L. wrote: > > mmm. I don't know. But with this config file, XFCE4 launch is OK > > (or seems OK). > > That may be possible, as well as correct. > > I have learned - many many years ag

Re: error output redirection

2009-10-11 Thread George Davidovich
On Sun, Oct 11, 2009 at 11:36:52PM +0200, Stefan Miklosovic wrote: > if error output of some program appear on screen, it is possible to > print it also to some file simultaneously? Depends on the program, but generally, yes. http://en.wikipedia.org/wiki/Standard_streams http://en.wikipedia.org/w

Re: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread George Davidovich
On Thu, Oct 08, 2009 at 09:02:50AM +1100, David N wrote: > FreeBSD 7.2-R box with 10 jails. > > The mail server (actually its a mail filter) is hosted on the same > server inside a jail. > > I can't seem to get the main server reports to be sent to the mail > filter inside the jail inside the sam

Re: A general sed question

2009-10-07 Thread George Davidovich
On Tue, Oct 06, 2009 at 11:45:36PM -0700, David Allen wrote: > I keep bumping up against this, so I thought I'd throw this question out > to those who understand sed better than I do. > > What I'm trying to do is to clean up the contents of some files > (/sys/i386/conf/GENERIC would be a good exam

Re: Regex Help - Greedy vs. Non-Greedy

2009-09-09 Thread George Davidovich
On Wed, Sep 09, 2009 at 09:15:25AM -0700, Drew Tomlinson wrote: > I'm trying to do a search and replace in vim. I have lines like this: > http://site1/dir/; > http://site2/dir/;LastName, FirstName;Phone; > http://site3/dir/;LastName, FirstName; > http://site4/dir/; > > I'm want to match "http:*"

Re: 'alias' + sudo

2009-09-04 Thread George Davidovich
On Thu, Sep 03, 2009 at 08:10:36PM -0400, Jerry wrote: > On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote: > > > alias spico='/usr/local/bin/sudo pico -m' and be done with it. Instead of an extra alias, why not export $VISUAL or $EDITOR, and rely on sudoedit(8)? > That is what I am currently do

Re: remove newlines from a file

2009-09-01 Thread George Davidovich
On Tue, Sep 01, 2009 at 06:03:19PM +, Paul Schmehl wrote: > I found a sed tutorial once that did this, but I can't seem to find it > again. You're probably thinking of "Useful One-Line Scripts for Sed": http://sed.sourceforge.net/sed1line.txt A good follow-up: http://www.osnews.com/story/

Re: SUID permission on Bash script

2009-08-28 Thread George Davidovich
On Fri, Aug 28, 2009 at 10:01:54AM +0100, Jeronimo Calvo wrote: > 2009/8/28 Giorgos Keramidas > > On Fri, 28 Aug 2009 09:24:35 +0100, Jeronimo Calvo > wrote: > > > > > > Im trying to set up a reaaallly basic scrip to allow one user to > > > shutdown my machine without root permisions, seting up

Re: hard disk failure - now what?

2009-08-26 Thread George Davidovich
On Wed, Aug 26, 2009 at 04:45:40PM -0400, Jerry McAllister wrote: > On Wed, Aug 26, 2009 at 10:23:47PM +0200, Roland Smith wrote: > > > On Wed, Aug 26, 2009 at 12:13:48PM -0700, George Davidovich wrote: I > > remember this special non-condictive 3M fluid that can be used to &g

Re: hard disk failure - now what?

2009-08-26 Thread George Davidovich
On Wed, Aug 26, 2009 at 08:07:41PM +0200, Roland Smith wrote: > On Tue, Aug 25, 2009 at 11:46:50PM -0600, Kelly Martin wrote: > > plugging the drive in and accessing it, I heard those tell-tale > > signs of hard drive failure: clicks and pops and other unusual > > noises, so I know that it has some

Re: please help to uninstall FreeBSD!!!

2009-08-16 Thread George Davidovich
On Sun, Aug 16, 2009 at 11:54:41AM -0400, Charles Oppermann wrote: > > I assume your use of "MICROS~1" is some sort of clever dig at > Microsoft, but this is 2009 - not 1995 Sorry, but while I agree the MICROS~1 pejorative can be a bit juvenile and uncalled for, your assertion that 8.3 filenames

Re: Trying to Install Man Page

2009-08-11 Thread George Davidovich
On Mon, Aug 10, 2009 at 03:59:43PM -0500, Martin McCormick wrote: > There is a test man page I am trying to install and the system is not > finding it. I put it in /usr/local/man/man1 and think I should at > least get complaints about the page as it is the start of a man page, > not the whole thing

Re: MIME attachments in mbox files

2009-05-30 Thread George Davidovich
On Fri, May 29, 2009 at 11:40:52PM -0400, Vince Sabio wrote: > I have a need (well, I have lots of needs, but I'll try to stay > focused here) Given the nature of most messages in the last few days, I'd suggest you're trying too hard. ;-) > to be able to take a Windows zip file that is stored a

Re: USENET?

2009-03-09 Thread George Davidovich
On Mon, Mar 09, 2009 at 12:44:38PM +0100, cpghost wrote: > On Mon, Mar 09, 2009 at 11:39:43AM +0100, Wojciech Puchar wrote: > > > news/pan seems to work OK, if you want a GUI. But be aware that > > > nowadays, you'll probably have to pay a monthly fee for usenet. > > > ISPs don't seem to routinely

Re: Battery powered, SBC that can run BSD

2009-03-05 Thread George Davidovich
On Thu, Mar 05, 2009 at 08:53:45AM -0500, John Almberg wrote: > I'm looking for a small, single board computer that can run for a > week or two on batteries (so very low power drain), topped up by > solar cells when the sun is out, and that can run some sort of > unix... preferably one of the BSDs.

Re: Odd DNS requests

2009-02-28 Thread George Davidovich
On Sat, Feb 28, 2009 at 04:32:47PM +1100, Ian Smith wrote: > Recently we've had a Mac notebook of some sort on our LAN, that likes > to make these DNS queries from time to time, to no avail, as noticed > on a filtering bridge between the LAN and the router+DNS at > 192.168.0.1: > > 16:13:05.020397

Re: Blocking very many (tens of thousands) ip addresses in ipfw

2009-01-14 Thread George Davidovich
On Wed, Jan 14, 2009 at 08:30:53PM -0800, mojo fms wrote: > On Wed, Jan 14, 2009 at 9:13 AM, Steve Bertrand > wrote: > > Pieter de Goeje wrote: > > > On Wednesday 14 January 2009 17:23:25 Artem Kuchin wrote: > > > > I need to block around 15 ip addreses from acccess the server > > > > at all a

Re: FreeBSD Transition Questions.

2009-01-13 Thread George Davidovich
On Tue, Jan 13, 2009 at 07:47:38PM +0100, Roland Smith wrote: > On Tue, Jan 13, 2009 at 12:54:24PM -0500, Grant Peel wrote: > > > 2. I want to import my Oulook express folders to Thinderbird. I know > > it can be done on windows, but when I try the impirt feature > > (running Thunderbord on FreeB

Re: bash versus sh test builtin

2009-01-11 Thread George Davidovich
On Sun, Jan 11, 2009 at 08:08:18PM -0600, Jeffrey Goldberg wrote: > The -ne operator for [ in /bin/sh doesn't seem to work as in bash. > Also the bash behavior here is what matches /bin/[ most closely. > > $ /bin/sh > $ if [ $UID -ne 0 ] ; then > > echo not root > > fi > [: -ne: unexpected op

Re: shell scripting problems

2008-11-29 Thread George Davidovich
On Fri, Nov 28, 2008 at 11:31:17PM -0700, Tim Judd wrote: > On Fri, Nov 28, 2008 at 11:08 PM, Sahil Tandon <[EMAIL PROTECTED]> > wrote: > > Tim Judd <[EMAIL PROTECTED]> wrote: > > > > I am not sure what the problem is, but are you just looking for the > > output of "pkg_info -qxL" on the *first* i

Re: inet hosts question

2008-11-14 Thread George Davidovich
On Fri, Nov 14, 2008, Matthew Seaman wrote: > Vincent Hoffman wrote: > > Gary Hartl wrote: > > > > I thought I could do it by using the /class ie /32 for class c but > > > i can't remember what the class delegation is for that size of > > > pool, I think it is a class B. > > > 192.168.0.0/16 for

Re: mail server DNS configuration questions

2008-09-06 Thread George Davidovich
On Sat, Sep 06, 2008 at 07:28:28PM -0600, Andrew Falanga wrote: > > Well, my clients at church are still having issues and after working with > George, a respondant to my original questions, I think that most, if not all, > of my problems are related to DNS and how we've got it improperly config

Re: MTA advice ??

2008-08-24 Thread George Davidovich
On Sun, Aug 24, 2008 at 02:06:25PM -0400, pete wrote: > I have a hosted domain that recently changed their mail filtering. I > am not happy with the new setup and am considering setting up my own. > Looking for tips on setting up something on my freeBSD 6.1 box. > > My ISP is cablevision IO. Not s

Re: Tailing logs

2008-08-23 Thread George Davidovich
On Sat, Aug 23, 2008 at 11:07:59AM -0400, Chuck Robey wrote: > DAve wrote: > > DAve wrote: > I do this commonly to catch the lines with the word "Building" in them, > from a file "build.out: > > tail -F build.out | grep --color=always Building > > When I get a free moment, I need to see about