[EMAIL PROTECTED] wrote:
------------------------------------------------------------------------
debian-user-digest Digest Volume 2004 : Issue 459
Today's Topics:
Re: automatically restarting dying d [ Mark Ferlatte <[EMAIL PROTECTED] ]
Re: Mozilla Print Problem [ Wayne Topa <[EMAIL PROTECTED]> ]
Re: Re: apt-get install hangs while [ Salman Haq <[EMAIL PROTECTED] ]
Re: automatically restarting dying d [ Will Trillich <[EMAIL PROTECTED]> ]
Re: automatically restarting dying d [ Will Trillich <[EMAIL PROTECTED]> ]
Re: Squid ACL for Windows Updates fa [ "Lucas Albers" <[EMAIL PROTECTED] ]
init scripts? [ MillTek <[EMAIL PROTECTED]> ]
Re: automatically restarting dying d [ Will Trillich <[EMAIL PROTECTED]> ]
Re: fast, tabbed, gnome/wm- complian [ Will Trillich <[EMAIL PROTECTED]> ]
tips on using "screen"? [ Will Trillich <[EMAIL PROTECTED]> ]
Re: init scripts? [ =?iso-8859-1?q?Thomas=20Adam?= <tho ]
Re: Creating own installer images [ Will Trillich <[EMAIL PROTECTED]> ]
Re: tips on using "screen"? [ =?iso-8859-1?q?Thomas=20Adam?= <tho ]
Re: fast, tabbed, gnome/wm- complian [ =?iso-8859-1?q?Thomas=20Adam?= <tho ]
------------------------------------------------------------------------
Subject: Re: automatically restarting dying daemons? From: Mark Ferlatte <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 11:12:54 -0700 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Will Trillich said on Wed, Jun 30, 2004 at 10:38:51PM -0500:
On Wed, Jun 30 at 03:43PM -0700, Mark Ferlatte wrote:
Will Trillich said on Wed, Jun 30, 2004 at 04:34:06PM -0500:so let's go find "monit"...
questions:monit can do this.
1) what's the best way (e.g. debian way) to monitor active
daemons and restart them when necessary? maybe some
utility already exists for this? or /proc/something?
or `ps ax`?
Suck. As with restartd, monit is also only in testing/unstable.
But the package name is `monit'... mon is something else.
M
------------------------------------------------------------------------
Subject: Re: Mozilla Print Problem From: Wayne Topa <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 10:14:33 -0400 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Keith O'Connell([EMAIL PROTECTED]) is reported to have said:
>> I am using testing at the present, and I have an oddity
>> with mozilla. I don't have occassion to print from mozilla very
>> often, but I did once last week and again last night and the
>> problem existed on both occassions.
>> >> I print a page. It looks good in the print preview, but when I
>> send it to my printer, it is reduced so that it only fills the
>> top teft hand quarter of the A4 page. The print is set to 100%
>> size.
WT> See the Xprint_FAQ (if you are using xprt-xprintorg).
That was it! Change 600 to 300 and all works just fine - Thank you!
Your welcome! Thanks for reporting back as it may help others having the same problem!
Cheers!
Wayne
------------------------------------------------------------------------
Subject: Re: Re: apt-get install hangs while unpacking From: Salman Haq <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 11:16:40 -0400 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Hi,
I'm experiencing similar problems when trying to install libgtk2.0-dev from our local mirror. Doing apt-get install libgtk2.0-dev lists all the dependencies it is going to install and proceeds to download and unpack libexpat1-dev. After this package is installed, the whole process just slows down and eventually the connection times out. The overall progress stays at 1%.
On the server, the process continues to run as an orphan and continues to use the connection.
Can somebody give me pointers to how I can start debugging this issue?
Thanks,
Salman
When I ran the apt-get inside strace, it was killed by SIGSEGV and left the three dpkg-deb processes orphans. Those three processes seem to be trying to unpack the same file. Why am I getting three processes? I tried to capture the unpacking on another debian computer and it only seems to have one.
David
David said:
> The root (var) partition has lots of space (only 4% used). I think there
> is a problem with unpacking. Is there a package besides dpkg involved in
> unpacking?
>
> David
>
> s. keeling said:
>> Incoming from David Hattery:
>>>
>>> About 90 percent of the time apt-get install hangs while unpacking.
>>> This
>>> requires a ctl_c to stop, and a dpkg --configure -a before retrying.
>>>
>>> There are 4 related processes so I am wondering if my setup is starting
>>> too many. Example from on a reinstall after an aborted try (ps ax):
>>>
>>> 4839 pts/0 S 0:00 apt-get --reinstall install gimp1.2
>>> 4849 pts/0 S 0:00 /usr/bin/dpkg --unpack
>>> /var/cache/apt/archives/gimp1.2_1.2.3-2_i386.deb
>>> 4856 pts/0 S 0:00 dpkg-deb --fsys-tarfile
>>> /var/cache/apt/archives/gimp1.2_1.2.3-2_i386.deb
>>> 4857 pts/0 S 0:00 dpkg-deb --fsys-tarfile
>>> /var/cache/apt/archives/gimp1.2_1.2.3-2_i386.deb
>>> 4858 pts/0 S 0:00 dpkg-deb --fsys-tarfile
>>> /var/cache/apt/archives/gimp1.2_1.2.3-2_i386.deb
>>
>> Are you running out of space in /var?
>>
------------------------------------------------------------------------
Subject: Re: automatically restarting dying daemons? From: Will Trillich <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 11:35:41 -0500 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED] CC: Derrick 'dman' Hudson <[EMAIL PROTECTED]>
On Thu, Jul 01 at 10:55AM -0400, Derrick 'dman' Hudson wrote:
$ apt-cache policy restartd restartd: Installed: 0.1.a-3 Candidate: 0.1.a-3 Version Table: *** 0.1.a-3 0 990 http://http.us.debian.org sarge/main Packages 80 http://http.us.debian.org sid/main Packages 100 /var/lib/dpkg/status
Oh, sorry, it's not in woody. I tend to forget those sort of things
since I've been using a testing and unstable combination for a long
time.
never knew about the "policy" thing before. cool! :)
we're about to instantiate a new server anyhow, and it'll be running sarge, so this may be the way to go. thanks for the pointers...
------------------------------------------------------------------------
Subject: Re: automatically restarting dying daemons? From: Will Trillich <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 11:39:06 -0500 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
On Wed, Jun 30 at 11:20PM -0500, Jacob S. wrote:
On Wed, 30 Jun 2004 22:43:54 -0500
Will Trillich <[EMAIL PROTECTED]> wrote:
at http://backports.org, i search for "restartd" and get
Sorry, no packages found.
At the risk of starting a flamewar about whether djb's tools are a good way to do things or not... :-)
Have you looked at daemontools? apt-cache show
daemontools-installer, apt-cache show svtools. The sole
purpose of daemontools is to make sure a program keeps running
properly. I have successfully used it on occasion when I was
working with a program that was known for crashing, but didn't
consider the program important enough to make it run
dependably. daemontools worked great.
the documentation is a bit terse at http://cr.yp.to/ -- can the "run" script be
#!/bin/bash /etc/init.d/some-daemon-here restart
which is effectively a "start-some-thing &" and quick return...
or does it need to be the non-returning call to the daemon itself, so that the daemon is a child of the "supervise" process? if so, ick.
------------------------------------------------------------------------
Subject: Re: Squid ACL for Windows Updates failed From: "Lucas Albers" <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 10:40:07 -0600 (MDT) To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
[stuff about squid not working for windows update deleted.] I dont' acl limit what users can connect to. Only users on the local domain can use the proxy cache.
I use a debian squid proxy for upwards of 3000 clients. Works perfectly, saves tons of bandwidth, and speeds everything up.
attached is my squid.conf file with comments/whitespace removed. Enjoy.
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 16 MB
maximum_object_size 1280096 KB
cache_dir ufs /var/spool/squid 3000 16 256
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
refresh_pattern http://*.windowsupdate.microsoft.com/ 0 80% 20160
reload-into-ims
refresh_pattern http://office.microsoft.com/ 0 80% 20160 reload-into-ims refresh_pattern http://windowsupdate.microsoft.com/ 0 80% 20160
reload-into-ims
refresh_pattern http://wxpsp2.microsoft.com/ 0 80% 20160 reload-into-ims refresh_pattern http://xpsp1.microsoft.com/ 0 80% 20160 reload-into-ims refresh_pattern http://w2ksp4.microsoft.com/ 0 80% 20160 reload-into-ims refresh_pattern http://download.microsoft.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download.macromedia.com/ 0 80% 20160 reload-into-ims refresh_pattern ftp://ftp.nai.com/ 0 80% 20160 reload-into-ims refresh_pattern http://ftp.software.ibm.com/ 0 80% 20160 reload-into-ims acl all src 0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 563 acl SSL_ports port 873 acl Safe_ports port 80 acl Safe_ports port 21 acl Safe_ports port 443 563 acl Safe_ports port 70 acl Safe_ports port 210 acl Safe_ports port 1025-65535 acl Safe_ports port 280 acl Safe_ports port 488 acl Safe_ports port 591 acl Safe_ports port 777 acl Safe_ports port 631 acl Safe_ports port 873 acl Safe_ports port 901 acl purge method PURGE acl CONNECT method CONNECT acl home1 src xxx.xx.133.165-255.255.255.255 acl home2 src xx.xx.0.0/16 http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access deny CONNECT !SSL_ports acl our_networks src xxx.xx.0.0/16 http_access allow our_networks http_access allow localhost http_access deny all
http_reply_access allow all http_reply_access allow all icp_access allow all cache_mgr [EMAIL PROTECTED] cachemgr_passwd mousie all coredump_dir /var/spool/squid
--Luke
------------------------------------------------------------------------
Subject: init scripts? From: MillTek <[EMAIL PROTECTED]> Date: Thu, 01 Jul 2004 11:42:23 -0400 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
HI,
There are several things I'd like to do at boot time, includingstart bootlogd and syslog. I've been told to set up an 'init script' etc. Where do you do this? Is there a specific script that is always accessed and if so which one?
Appreciate the help
Jim
------------------------------------------------------------------------
Subject: Re: automatically restarting dying daemons? From: Will Trillich <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 11:42:19 -0500 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
On Thu, Jul 01 at 08:58AM +0800, John Summerfield wrote:
Mark Ferlatte wrote:
Will Trillich said on Wed, Jun 30, 2004 at 04:34:06PM -0500:As can webmin.
questions:monit can do this.
1) what's the best way (e.g. debian way) to monitor active
daemons and restart them when necessary? maybe some
utility already exists for this? or /proc/something?
or `ps ax`?
webmin would be promising if we already had all that overhead running. (plus i've seen it have problems -- for ecsample, "apache-lib.pl" is missing in a few installations i've seen, and it borks the html interface when a piece like that is absent.)
plus, the webmin code itself looks like it's right out of the seventies. hoo boy!
------------------------------------------------------------------------
Subject: Re: fast, tabbed, gnome/wm- compliant terminal From: Will Trillich <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 11:48:30 -0500 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
On Thu, Jul 01 at 02:27PM +1000, Zenaan Harkness wrote:
On Thu, 2004-07-01 at 14:20, Zenaan Harkness wrote:
It gets laggy. Inconsistently. When using vim inside
gnome-terminal.
For example, in the topmost line (again in vim, with gnome-terminal at 87x98 chars) it is really noticeable, and the CPU hits 100% just holding the cursor key down.
It really slows you down and is very frustrating after weeks of putting up with it.
It could just be a Debian unstable thing...
gives me the impression it's refreshing everything from cursor-to-end-of-screen even tho most modern processors wouldn't have much trouble even with that.
try the same tests with vim at a console <e.g. alt f3>. try the same tests with vim in rxvt or xterm. try the same tests with gvim in its own window. try the same tests with mc in gnome-terminal.
where's the pattern?
------------------------------------------------------------------------
Subject: tips on using "screen"? From: Will Trillich <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 11:53:12 -0500 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
On Thu, Jul 01 at 02:34PM +0200, Kai Grossjohann wrote:
I've started using screen recently. It's way cool.
same here. kahuna powerful for us command-line folks.
The best part about screen is that you can set it up such that
each xterm is just a new window showing the existing list of
shells. This means that if I decide I would like to see
shells 3 and 4 concurrently, then I just open two xterms
showing those two shells. When I don't need to see the shells
anymore, I close the xterms, but the shells are still there.
we'd love to hear more about your setup. ~/.bashrc aliases or settings, any keyboard macros, ~/.screenrc coolness... we're not picky.
inquiring minds want to know. :)
------------------------------------------------------------------------
Subject: Re: init scripts? From: Thomas Adam <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 17:55:49 +0100 (BST) To: MillTek <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
To: MillTek <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
--- MillTek <[EMAIL PROTECTED]> wrote:
HI,
There are several things I'd like to do at boot time, includingstart bootlogd and syslog. I've been told to set up an 'init script' etc. Where do you do this? Is there a specific script that is always accessed and if so which one?
I answered this in another thread not so long ago:
1. As far as bootlogd is concerned, do the following:
# apt-get install bootlogd # vi /etc/default/bootlogd , and make sure the only line in there looks like:
BOOTLOGD_ENABLE=Yes
As for syslog this is automatically started up. If you find you're missing symlinks to the scripts the you can do one of two things:
1. man update-rc.d 2. dpkg-reconfigure <package>
(You might also find the package 'rcconf' useful for such tasks).
HTH,
-- Thomas Adam
===== "The Linux Weekend Mechanic" -- http://linuxgazette.net "TAG Editor" -- http://linuxgazette.net
"<shrug> We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :)"
-- Benjamin A. Okopnik (Linux Gazette Technical Editor)
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
------------------------------------------------------------------------
Subject: Re: Creating own installer images From: Will Trillich <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 11:56:24 -0500 To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
On Thu, Jul 01 at 06:41PM +0200, Robert Waldner wrote:
I need to create special Debian installer images, as we have machines here with Promise PDC20378 S-ATA RAID controllers and need to install Woody on them. The driver for this controller was opensourced, but it's only available as a module, so no luck with just building it statically into the kernel.
I've googled around for (what felt like) ages, and the best I could find was <http://mail.plug.linux.org.au/pipermail/plug/2004-January/049627.html>. Following the instructions mentioned there I was able to get a custom-built kernel-image.deb and make a bootable Woody CD.
However, for the life of me, I can't figure out how to create a fitting initrd image where I can place ft3xx.o (for the S-ATA controller). Advice on how to get the installer auto-load that (and scsi_mod, on which it depends) would come in handy, too. Even better, the CD doesn't boot very far, because it can't find _any_ root.bin (I guess that's the name for the initrd image, since there's RAMDISK smeared all over the screen at this step). But as soon as I figure out how to create it I could always place it on a floppy.
Any advice/pointers greatly appreciated, since I think I
tripled the amount of grey in my hair today ;)
and when you learn how to do this, be sure to report back, because there are some more of us grey-bound folks out here...
:)
------------------------------------------------------------------------
Subject: Re: tips on using "screen"? From: Thomas Adam <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 18:00:58 +0100 (BST) To: Will Trillich <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
To: Will Trillich <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
--- Will Trillich <[EMAIL PROTECTED]> wrote:
we'd love to hear more about your setup. ~/.bashrc aliases or
settings, any keyboard macros, ~/.screenrc coolness... we're not
picky.
There's a _plethora_ of information about this already -- search the net.
-- Thomas Adam
===== "The Linux Weekend Mechanic" -- http://linuxgazette.net "TAG Editor" -- http://linuxgazette.net
"<shrug> We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :)"
-- Benjamin A. Okopnik (Linux Gazette Technical Editor)
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
------------------------------------------------------------------------
Subject: Re: fast, tabbed, gnome/wm- compliant terminal From: Thomas Adam <[EMAIL PROTECTED]> Date: Thu, 1 Jul 2004 18:02:52 +0100 (BST) To: Will Trillich <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
To: Will Trillich <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
--- Will Trillich <[EMAIL PROTECTED]> wrote:
try the same tests with vim at a console <e.g. alt f3>.
try the same tests with vim in rxvt or xterm.
rxvt and xterm use more or less the same -xrm's and so the same techniques.
try the same tests with gvim in its own window.
try the same tests with mc in gnome-terminal.
It's an issue with the way gnome-terminal handles a redraw, that's all.
-- Thomas Adam
===== "The Linux Weekend Mechanic" -- http://linuxgazette.net "TAG Editor" -- http://linuxgazette.net
"<shrug> We'll just save up your sins, Thomas, and punish you for all of them at once when you get better. The experience will probably kill you. :)"
-- Benjamin A. Okopnik (Linux Gazette Technical Editor)
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]