Re: Crazy (?) idea: screen locker with simpler password

2011-11-08 Thread Karl Vogel
/shadow.lo? Then your password-changer could be: alias hisec='sudo cp -p /etc/shadow.hi /etc/shadow' alias losec='sudo cp -p /etc/shadow.lo /etc/shadow' -- Karl Vogel I don't speak for the USAF or my company It's impossible to sneeze with your eyes open

Re: fastcgi too slow in debian squeeze

2011-12-20 Thread Karl Vogel
something DNS-related. Do you have any other apps requiring external host resolution that are seeing similar delays? A caching DNS resolver usually fixes things, and it's not hard to set up. -- Karl Vogel I don't speak for the USAF or my company You have experienced

Re: How to do this, fold + split

2012-01-06 Thread Karl Vogel
there, then if there is output it emails it off. There are many ways to do this and I tinker it as needed. If you want one word per line, which can be very handy: me% gfmt -1 sample.txt Here is what [...] as needed. -- Karl Vogel I don't speak

Re: how to check 400 files exist

2012-01-20 Thread Karl Vogel
glob-expansion of filenames, so it won't barf if you have a lot of files. It assumes you're in the same directory as the files you're checking. -- Karl Vogel I don't speak for the USAF or my company A raccoon tangled with a 23,000 volt line today. The results blacked

Re: a quick Q: how to start run a job after another job finished

2011-10-06 Thread Karl Vogel
sleep 60 done /path/to/newjob.sh -- Karl Vogel I don't speak for the USAF or my company Taxation WITH representation isn't so hot, either.--bumper sticker -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe

Re: Formatting external HDD

2011-10-19 Thread Karl Vogel
to experiment. Use something familiar, and play around *after* your stuff is safely backed up. -- Karl Vogel I don't speak for the USAF or my company Salesmen welcome. Dog food is expensive.--seen on a fence -- To UNSUBSCRIBE, email to debian-user-requ

Re: linux friendly hardware inquiry/advise

2011-10-19 Thread Karl Vogel
/ http://arstechnica.com/gadgets/guides/2011/03/ars-system-guide-march-2011-edition.ars -- Karl Vogel I don't speak for the USAF or my company I've seen people with new children before, they go from ultra happy to looking like something out of a zombie film in about a week

Re: how to check the server can be connected or not

2012-02-06 Thread Karl Vogel
Postfix, see the http://www.postfix.org/local.8.html sections on ADDRESS EXTENSION and EXTERNAL COMMAND DELIVERY. -- Karl Vogel I don't speak for the USAF or my company The patient is tearful and crying constantly. She also appears to be depressed.--actual comment

Re: [OT] how to take care of hand

2012-02-06 Thread Karl Vogel
the body can use them, and they tend to get eaten up faster when under stress. I also take cod-liver oil to keep my joints nice and gushy. Your doctor may disagree. -- Karl Vogel I don't speak for the USAF or my company ANTI-TALKSIDENT: A spray carried in a purse

Re: [OT] how to take care of hand

2012-02-08 Thread Karl Vogel
R On Mon, 6 Feb 2012 14:47:26 -0500 (EST) (Karl Vogel) wrote: K I correct shoulder pain by doing 5-10 very slow pushups just before bed, K or by holding a dumbbell over my shoulder and letting my hand dangle K over the back of the couch while watching TV. On Mon, 6 Feb 2012 20:22:29 +

Re: Question about ssh passwords and backup software

2012-02-13 Thread Karl Vogel
-forwarding ... -- Karl Vogel I don't speak for the USAF or my company Why Trick or Treating is Better than Sex #10: You are guaranteed to get at least a little something in the sack. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject

Re: [OT] A quick Q: how to check the webpage building time

2012-03-05 Thread Karl Vogel
A dynamically-generated page will return the current time. Also, the server may be configured to NOT return the modtime for (say) an index.html file, even if it's static. -- Karl Vogel I don't speak for the USAF or my company For a nosebleed: Put the nose much lower

Re: history configuration

2012-03-07 Thread Karl Vogel
\) } In order to really share this, you'd probably have to write something to grub around in the syslog file. -- Karl Vogel I don't speak for the USAF or my company She acts like she's on the phone to avoid certain customers. One time it rang

Re: Understanding the -depth option of find?

2012-03-08 Thread Karl Vogel
./userstuff -depth -newer /backup/etc/drive1 -print | pax -rwd -pe $dest In this case, the -depth option ensures correct timestamps on all created directories, and -pe preserves owner/group/mode/modtime stuff. -- Karl Vogel I don't speak for the USAF or my

Re: How to keep track of files installed from sources?

2012-03-09 Thread Karl Vogel
-- Karl Vogel I don't speak for the USAF or my company I put instant coffee in a microwave and went back in time. --Steven Wright -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive

Re: Cron, 1 month but 2 months

2012-03-11 Thread Karl Vogel
you want to alert someone and run it tomorrow or wait another 45 days? Reschedule by setting the $ts modtime instead of dorking around with cron. -- Karl Vogel I don't speak for the USAF or my company Bumper-sticker on Mel Gibson's car: Swerve If You Love Jesus

Re: Expect script does not work on crontab

2012-03-13 Thread Karl Vogel
:/var/app/ B expect Password: B send somepassword\r B interact I believe the interact line is messing you up; when expect sees that, it wants a terminal or PTY to play with, and cron doesn't give it one. -- Karl Vogel I don't speak for the USAF or my company I smile

Re: first mkdir takes a long time (on ext3)

2011-05-19 Thread Karl Vogel
On 19/05/11 17:01, Hartmut Niemann wrote: H It often takes very long time (20s) to mkdir on an ext3 drive What does strace mkdir /some/directory show? -- Karl Vogel I don't speak for the USAF or my company Q: What lies on the bottom of the ocean and twitches

Re: first mkdir takes a long time (on ext3)

2011-05-21 Thread Karl Vogel
On 19/05/11 17:01, Hartmut Niemann wrote: H It often takes very long time (20s) to mkdir on an ext3 drive Am Fr Mai 20 2011 schrieb Karl Vogel: K What does strace mkdir /some/directory show? On Fri, 20 May 2011 08:38:41 +0200, hartmut.niem...@gmx.de said: H $ strace mkdir two H execve(/bin

Re: Problem with the global weigh of several files

2011-05-26 Thread Karl Vogel
\ 'BEGIN { size = 0; } { size += $1; } END { printf %s: %d new files using %.1f Mb\n, d, NR, size/1048576; }' exit 0 -- Karl Vogel I don't speak for the USAF or my company Men are like a fine wine. They start out as grapes and it's up to women to stomp

Re: (hopefully perl) API to /etc/network/interfaces?

2011-06-01 Thread Karl Vogel
(reading/writing dot-INI files) but preserves the section order. -- Karl Vogel I don't speak for the USAF or my company Things that never happen in Star Trek #7: The Enterprise successfully ferries an alien VIP from one place to another without serious incident

Re: How do you save passwords for Git/GitHub?

2011-07-21 Thread Karl Vogel
match what you normally see, use the autoexpect program to watch over your shoulder while you do a session by hand, and it will write a script for you. -- Karl Vogel I don't speak for the USAF or my company The last thing I want to do is hurt you, but it's still on my list

Re: recursively count the words occurrence in the text files

2010-12-30 Thread Karl Vogel
; } exit(0); me% ./words */* asdf 1 word1 2 word10 1 word2 4 word3 3 word4 2 word5 1 word6 2 word7 1 word8 1 word9 1 -- Karl Vogel I don't speak for the USAF or my company Never take a beer to a job interview. --Martha Stewart's tips

Re: recursively find duplicate filenames

2011-01-05 Thread Karl Vogel
into that. -- Karl Vogel I don't speak for the USAF or my company If men ruled the world #18: It would be perfectly legal to steal a sports car, as long as you returned it the following day with a full tank of gas. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org

Re: need help making shell script use two CPUs/cores

2011-01-09 Thread Karl Vogel
parallel processing will probably be erased by disk contention. Better yet, do you have enough memory to do the processing on a RAM-backed filesystem? -- Karl Vogel I don't speak for the USAF or my company If you're searching for the cause of a ghastly noise and find out

Re: putting /tmp to memory help

2011-01-23 Thread Karl Vogel
://landley.net/writing/rootfs-intro.html has a nice, short description of ramdisk vs. ramfs. -- Karl Vogel I don't speak for the USAF or my company The San Francisco Cable cars are the only mobile National Monuments

Re: bash scripting question

2010-03-29 Thread Karl Vogel
Here's something I modified as part of a benchmark script called fdtree. -- Karl Vogel I don't speak for the USAF or my company Dijkstra probably hates me. --Linus Torvalds, in kernel/sched.c #!/bin/bash # How to use xdate/xtime/persec: # # START=$(date +%s

Re: monitoring internet availability and sending sms alert?

2010-05-16 Thread Karl Vogel
http://www.hcst.net/~vogelke/src/ishostup/ These scripts are good for exactly one thing: sending me (or someone) a message if a given piece of hardware at a given IP address stops responding for more than a minute or so. They rely on fping and regular email. -- Karl Vogel

Re: Sed or awk: remove a line from a file

2010-06-03 Thread Karl Vogel
, 5 Jan 2009 10:00:00 -0500 http://www.catonmat.net/blog/update-on-famous-awk-one-liners-explained/ Update on Famous Awk One-Liners Explained: String and Array Creation Mon, 9 Feb 2009 10:25:00 -0500 -- Karl Vogel I don't speak for the USAF or my company If walking

Re: Monitoring tools to use on an account

2010-07-28 Thread Karl Vogel
it if clean tcpdump -r $out ... some filter here ... || rm $out k=$((k+1)) done You might also change the permissions on ps so he can't see tcpdump or any other steps you might take. -- Karl Vogel I don't speak for the USAF or my company If you can't

Re: Shell Expansion in Bourne Shell Script Question

2010-07-28 Thread Karl Vogel
the expanded value of $MAGDIR with the string *.[Zz][Ii][Pp] appended. Bash, sh, and ksh all do that for some dopey reason, which is why I would do for file in $(ls $MAGDIR/*.[Zz][Ii][Pp] 2 /dev/null); do ... if there's any chance that you won't find any files. -- Karl Vogel

Re: Shell Expansion in Bourne Shell Script Question

2010-07-28 Thread Karl Vogel
' '\000' exit 1 -- Karl Vogel I don't speak for the USAF or my company Q. Why are New Yorkers always depressed? A. The light at the end of the tunnel is New Jersey. --Fredrick Homan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject

Re: Shell Expansion in Bourne Shell Script Question

2010-07-28 Thread Karl Vogel
that I have FreeBSD, Linux, and Solaris boxes, and unfortunately I can't guarantee the same access to GNU find. I can install xargs if the system version doesn't recognize the -0 option, so I usually end up scripting for the lowest common denominator. -- Karl Vogel

Re: match across line using grep

2010-08-02 Thread Karl Vogel
some distracting text on the line besides the select statement. If you want matching to be case-sensitive, change si: to s: on the line where $pattern is set. -- Karl Vogel I don't speak for the USAF or my company

Re: Dumping terminal contents to a file

2010-09-08 Thread Karl Vogel
unset BLOCK_SIZE # throws off the results. exec ls -lF $opt ${1+$@} -- Karl Vogel I don't speak for the USAF or my company You do not need a parachute to skydive. You only need a parachute to skydive twice. -- To UNSUBSCRIBE, email to debian-user

Re: rsync issue

2010-09-12 Thread Karl Vogel
the last find, you *know* exactly what files are being synced, and you can store that list someplace in case there's ever a question of why something did (or didn't) get copied. -- Karl Vogel I don't speak for the USAF or my company I have never hated a man enough

Re: root can't sudo

2010-09-28 Thread Karl Vogel
: #!/bin/sh PATH=/usr/local/bin:/bin:/usr/bin; export PATH test `id -u` -gt 0 exec sudo $0 $@ whoami for arg in $@; do echo [$arg] done exit 0 -- Karl Vogel I don't speak for the USAF or my company EXCUSE FOR GETTING TO WORK LATE #7

Re: how to configure gcc

2010-09-30 Thread Karl Vogel
hello.o hello.c cc hello.o -o hello me% ./make # using the frontend script gcc -O2 -pipe -funroll-loops -c -o hello.o hello.c gcc hello.o -o hello -- Karl Vogel I don't speak for the USAF or my company Beauty is only a light switch away

Re: see what files are touched by a program

2010-10-19 Thread Karl Vogel
|O_LARGEFILE, 0600) = 4 open(4913, O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0100644) = 3 open(stuff, O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 3 open(/me/.viminfo.tmp, O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 5 -- Karl Vogel I don't speak for the USAF or my company

Re: scripting question: to parse data with varname=value pattern the easiest way?

2010-11-01 Thread Karl Vogel
result_04: dc=3 rm /something/valuable into your program output, you'll get a nasty surprise. -- Karl Vogel I don't speak for the USAF or my company Most users (myself included) spend most of their time in front of a computer in a kind of fuzzy autopilot mode, and anything

Re: Extremely large level 1 backups with dump

2010-12-06 Thread Karl Vogel
a list of recently-changed files which you could feed to rsync via the --files-from=LIST argument. -- Karl Vogel I don't speak for the USAF or my company I would rather be exposed to the inconveniences attending too much liberty than to those attending too small a degree

Re: Extremely large level 1 backups with dump

2010-12-07 Thread Karl Vogel
filesystems, from 42-67% full. find $list -newer /tmp/TIME -print | wc -l date Results: Tue Dec 7 13:34:05 EST 2010 541 Tue Dec 7 13:39:40 EST 2010 -- Karl Vogel I don't speak for the USAF or my company Adam was a Canadian. Nobody

Re: Format ext3 hard drives

2011-03-22 Thread Karl Vogel
. -- Karl Vogel I don't speak for the USAF or my company Q: What's black and tan and looks good on a lawyer? A: A Rottweiler.--John J. Irvine --- Disk use: me

Re: door bell like sound effect

2023-08-30 Thread Karl Vogel
.oga audio/ogg .ogg audio/ogg .opus audio/ogg .raaudio/x-pn-realaudio .voc audio/x-unknown .wav audio/x-wav If nothing else, it's faster to run "locate" and look for file extensions; running "file" on that much c

Re: door bell like sound effect

2023-08-30 Thread Karl Vogel
On Wed, Aug 30, 2023 at 07:55:14AM -0400, songbird wrote: > Karl Vogel wrote: > ... > > If nothing else, it's faster to run "locate" and look for file extensions; > > running "file" on that much crap took nearly 9 hours. > > do you have SSDs or s

Re: door bell like sound effect

2023-08-29 Thread Karl Vogel
might point you to an actual device name. -- Karl Vogel I don't speak for anyone but myself. Comment: One of my friends drank half a bottle of rum and refilled it with a bodily fluid of similar color. Reply: Your friend should see a doctor and drink more

Re: [a bit OT] Automate a (G o o g l e) search from a list of strings

2023-09-19 Thread Karl Vogel
Difference? www.britannica.com > Demystified > Geography & Travel Corsairs were essentially privateers, although the term corsair carried an added religious connotation because the conflict was between Muslim and Christian... HTH. -- Karl Vogel I don't speak f

Re: Sunrise and Sunset from terminal

2023-09-29 Thread Karl Vogel
t at 19:18 Reminders for Tuesday, 3rd October, 2023: sunrise at 07:34, sunset at 19:15 Reminders for Wednesday, 4th October, 2023: sunrise at 07:35, sunset at 19:15 Reminders for Thursday, 5th October, 2023: sunrise at 07:36, sunset at 19:12 -- Karl Vogel I don't sp

Re: Too much log for sudo.

2023-10-12 Thread Karl Vogel
On Thu, Oct 12, 2023 at 11:22:00AM -0400, Erwan David wrote: > I use a script to run borg backup. For it to be able to backup files that > only root may read, i use sudo --preserv-env=BORG_REPO,BORG_PASSPHRASE. > > However I see that in the logs the VALUE of the env variable is loggued. How > to

Re: Looking for a good "default" font (small 'L' vs. capital 'i' problem)

2023-08-20 Thread Karl Vogel
/man \ --with-x \ --with-own-terminfo=$TERMINFO make make check make install It comes with a nice terminfo file. I've had problems with "tic" for ncurses >= version 6, so I use the ncurses-5.9 version to compile it: root# tic59 -V

Re: xterm font and other options

2023-08-21 Thread Karl Vogel
On Sun, Aug 20, 2023 at 10:38:34PM -0400, Max Nikulin wrote: > On 20/08/2023 14:55, Karl Vogel wrote: > > #!/bin/sh > ... > > # -fa 'xft:...' font size and weight > ... > > ( $XTERM $geo $topts -fa "$FONT" -title "Remote"

Re: Using the bash shell: determine if the root user used 'sudo -i'

2023-08-26 Thread Karl Vogel
drwxr-xr-x 27 root wheel 120 26-Aug-2023 07:55:02 /etc/ drwxrwx--- 2 root authpf 2 05-Jul-2019 00:45:45 /var/authpf/ me$ ./try /etc 2023-08-26 18:31:54 try: start working in /etc me$ daemon -f $PWD/try /etc me$ daemon -f $PWD/try /var/authpf me$ tail -2

Re: git setup

2023-08-21 Thread Karl Vogel
mmit was done: me@bkup% tail -1 /var/log/messages Aug 22 00:31:27 bkup autopull[80162]: git pull whatever Replace the "logger ..." part of post-commit to run "git pull" or whatever. Hope this helps. -- Karl Vogel I don't speak for the USAF or

Re: Recommendations for a UPS?

2023-08-01 Thread Karl Vogel
w Debian folks? > Thanks. I give a solid vote to Liebert. I had a near-miss lightning strike a few nights ago, and all it did was make my display go out for about a second. It came right back, session intact, didn't lose a thing. -- Karl Vogel / vogelke AT pobox DOT com / I don't spe

Re: Recommendations for a UPS?

2023-08-01 Thread Karl Vogel
bert protects against power surges, brownouts, blackouts or drops in voltage. That's why they're a little more expensive. -- Karl Vogel / vogelke AT pobox DOT com / I don't speak for anyone at the moment Skills-wise they suck harder than a black hole with daddy issues.

Re: smartctl cannot access my storage, need syntax help

2024-01-22 Thread Karl Vogel
buy two, use one for a complete backup and the other for incrementals or differentials? (I know, more than $200...) -- Karl Vogel I don't speak for anyone but myself I yam Popeye of Borg. You will be askimilgrated.

Re: smartctl cannot access my storage, need syntax help

2024-01-24 Thread Karl Vogel
On Tue, Jan 23, 2024 at 06:05:29AM -0500, gene heskett wrote: > On 1/23/24 00:30, Karl Vogel wrote: > >>> On 1/22/24 11:31, gene heskett wrote: > > > > G> How does an 8T backup server sound for another $200 in hdwe? Very > > G> enticing and I do have the sh

Re: Work environment

2023-11-24 Thread Karl Vogel
r factor, desktops are bigger than laptops, so > there is room for more hard drives, optical drives, more PCI cards etc. It gives me a big monitor, a good mouse, and a keyboard that doesn't suck. -- Karl Vogel I don't speak for anyone but myself Drunk Grizzlies Keep

Re: Isolated Web Co Session crash Firefox-ESR

2023-12-06 Thread Karl Vogel
t; Sadly it looks like I'll need to do this daily, > > It's the browsers eating your memory. That's what they do. I've had problems with Firefox eating my swap on both Linux and FreeBSD. My fix has been to run the swap2ram script below hourly. -- Karl Vogel I

Re: Changing The PSI Definition

2024-01-27 Thread Karl Vogel
pref("font.name.serif.x-western", "DejaVu Serif"); user_pref("font.size.fixed.x-western", 18); user_pref("font.size.variable.x-western", 18); -- Karl Vogel I don't speak for anyone but myself Slogan of 105.9, the classic rock radio station in Chicago: "Of all the radio stations in Chicago...we're one of them."

Re: Zutty fonts - zutty always uses the same font and fontsize

2024-05-01 Thread Karl Vogel
t from source is easy. https://invisible-island.net/archives/xterm/xterm-390.tgz{,.asc} -- Karl Vogel I don't speak for anyone but myself My mind is like my browser: 19 open tabs, three of them are frozen, and I have no clue where the music is coming from.