Re: Alt-SysRq & kernel 2.6.8: HOWTO?

2004-10-04 Thread Piero Furiesi
>IIRC, You have to enable kernel hacking. Then the Mag-Sys-Reg-key-config
>should appear.

Well, I thougth that were the solution.

But the "Magic SysReq" option for kernel 2.6.x is now under "Kernel debugging"... I 
found it!

anyway, thanks.


Re: Mail on laptop

2004-10-04 Thread Koen Vermeer
Op za 02-10-2004, om 20:27 schreef Bob Proulx:
> > I recently acquired a laptop, and ofcourse I installed Debian on it.
> Of course!  :-)

After a regular i386 and a UltraSparc 10, what else could I do...

> Not sure this helps you but you can tell debconf to send mail to a
> different address.
>   export [EMAIL PROTECTED]

That helps for debconf, but does not solve the more general problem.

> I actually use it to turn off those messages entirely.
>   export DEBCONF_ADMIN_EMAIL=""
> When you install a security upgrade for ssh to a few hundred machines
> and each and every one wants to say the same thing to you it gets a
> little tedious.  :-)

Sounds like spam from your own machines :-)

> But really the only two users that you care about are yourself and
> root so the simplest thing (what I would do) is to create aliases for
> those two users and forward that mail to the address you want.

Right, but the simplest MTA's (nullmailer, ssmtp) don't support that as
far as I know, and there doesn't seem to be anything in between these
simplest MTA's and stuff like exim or postfix.

The obvious reply to that would be 'there's a great opportunity for you
to contribute something to the world', but unfortunately, my programming
skills nowadays are limited to Matlab and some scripts for personal use.

So, I guess I'll just have to install exim or postfix then.

Koen




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: remote backup

2004-10-04 Thread Marco Bellini
i've heard about Mondo Rescue packages and bootable cd... i've never
tried it, so it's just a suggestion...
http://www.microwerks.net/~hugo/

HTH

marco

On Sat, 2004-10-02 at 04:22, Daniel Pittman wrote:
> On 2 Oct 2004, Jerome BENOIT wrote:
> > I would like my desktop (an openbrick) to backup via the net
> > my laptop once it is connected:
> > what is the best way to do so ?
> 
> My recommendation would be the 'BackupPC' package, found in testing and
> unstable.  That will happily produce long term archival backups of the
> laptop, and can dump to tape, etc, for off-line storage as well.
> 
> Regards,
> Daniel
> -- 
> It is always possible to aglutenate multiple separate problems into a single
> complex interdependent solution. In most cases this is a bad idea.
> -- RFC 1925
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Mail on laptop

2004-10-04 Thread Martin Bock
Hello!

I do not know wether this will help in your setup, but with esmtp you 
can send to different smtp relays depending on the senders address.

On my laptop I have the following: I let exim deliver only local mail, 
including that all mail to [EMAIL PROTECTED] is sent to me, [EMAIL PROTECTED] That 
handles my local delivery.
Additionally I use esmtp to get my mail out. Now if I send from my 
regular email address at the isp, then esmtp will send it to their smtp 
relay. However, when I use [EMAIL PROTECTED] as a sender, esmtp will deliver 
locally. So - pretty useless though - I can even send a email locally to 
my girl.

Cheers, Martin

On Mon, Oct 04, 2004 at 10:13:51AM +0200, Koen Vermeer wrote:
> Op za 02-10-2004, om 20:27 schreef Bob Proulx:
> > > I recently acquired a laptop, and ofcourse I installed Debian on it.
> > Of course!  :-)
> 
> After a regular i386 and a UltraSparc 10, what else could I do...
> 
> > Not sure this helps you but you can tell debconf to send mail to a
> > different address.
> >   export [EMAIL PROTECTED]
> 
> That helps for debconf, but does not solve the more general problem.
> 
> > I actually use it to turn off those messages entirely.
> >   export DEBCONF_ADMIN_EMAIL=""
> > When you install a security upgrade for ssh to a few hundred machines
> > and each and every one wants to say the same thing to you it gets a
> > little tedious.  :-)
> 
> Sounds like spam from your own machines :-)
> 
> > But really the only two users that you care about are yourself and
> > root so the simplest thing (what I would do) is to create aliases for
> > those two users and forward that mail to the address you want.
> 
> Right, but the simplest MTA's (nullmailer, ssmtp) don't support that as
> far as I know, and there doesn't seem to be anything in between these
> simplest MTA's and stuff like exim or postfix.
> 
> The obvious reply to that would be 'there's a great opportunity for you
> to contribute something to the world', but unfortunately, my programming
> skills nowadays are limited to Matlab and some scripts for personal use.
> 
> So, I guess I'll just have to install exim or postfix then.
> 
> Koen
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: remote backup

2004-10-04 Thread Jerome BENOIT
Hello List,
thank very much for your suggestions.
Tobias Kraus wrote:
Am Samstag, 2. Oktober 2004 03:39 schrieb Jerome BENOIT:
Hello List,
I would like my desktop (an openbrick) to backup via the net
my laptop once it is connected:
what is the best way to do so ?

I'm using rsync for this. My desktop is a rsync-server and my laptop 
tests hourely if it is available. If so, and the last backup is older 
than one day it rsync my hdd. On the server, I have a script that 
creates snapshots via hardlinks. (thanks to 
http://www.heinlein-support.de/web/projekte/rsync-backup/ :-) for 
inspiration) Tell me if you want to have my shell scripts  and more 
details. 
I was planning to do something similar:
backing up my laptop with `backup2l' and synchronizing the related files.
Yes, please send your shell script.
Thanks,
Jerome
Tobias

Thanks in advance,
Jerome



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


cannot execute "/etc/init.d/rc"

2004-10-04 Thread Ivan Glushkov
Hi list,
as I cannot read my battery status, my laptop went off unexpectingly.
After reboot, and a fsck, and reboot again, I get the following message:

INIT: cannot execute "/etc/init.d/rcS"
INIT: Entering runlevel: 2
INIT: cannot execute "/etc/init.d/rc"

Debian GNU/Linux 3.1 (none) tty1

(none) login: root
Login incorrect

(none) login: root
Login incorrect

[Ctrl+Alt+Del]

INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
INIT: Sending the processes the KILL signal
INIT: cannot execute "/etc/init.d/rc"
Give root password for maintenance
(or type Control-D to continue):
(none)~touch /tmp/try.log
touch: cannot touch '/tmp/try.log': Read-only file system


I have in my /etc/fstab:

/dev/hda5   /   ext2errors=remount-ro   0   1

after remounting the root partition, nothing changes:

(none)~mount -o remount /dev/hda5
(none)~touch /tmp/try.log
(none)~init 3
INIT: Switching to runlevel: 3
INIT: Sending processes the TERM signal
INIT: Sending the processes the KILL signal
INIT: cannot execute "/etc/init.d/rc"

Debian GNU/Linux 3.1 (none) tty1

(none) login:



Any idea?
Thanks in advance,
Ivan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: cannot execute "/etc/init.d/rc"

2004-10-04 Thread Andrew Porter
On Mon, 2004-10-04 at 12:59, Ivan Glushkov wrote:

> INIT: cannot execute "/etc/init.d/rcS"
> INIT: Entering runlevel: 2
> INIT: cannot execute "/etc/init.d/rc"

What does ls -l /etc/init.d/rc* show ?






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: remote backup

2004-10-04 Thread A. C. Censi
You can try also rdiff_backup:
http://rdiff-backup.stanford.edu/index.html

A, C, Censi

On Mon, 04 Oct 2004 10:55:50 +0200, Jerome BENOIT <[EMAIL PROTECTED]> wrote:
> Hello List,
> 
> thank very much for your suggestions.
> 
> Tobias Kraus wrote:
> > Am Samstag, 2. Oktober 2004 03:39 schrieb Jerome BENOIT:
> >
> >>Hello List,
> >>
> >>I would like my desktop (an openbrick) to backup via the net
> >>my laptop once it is connected:
> >>what is the best way to do so ?
> >
> >
> > I'm using rsync for this. My desktop is a rsync-server and my laptop
> > tests hourely if it is available. If so, and the last backup is older
> > than one day it rsync my hdd. On the server, I have a script that
> > creates snapshots via hardlinks. (thanks to
> > http://www.heinlein-support.de/web/projekte/rsync-backup/ :-) for
> > inspiration) Tell me if you want to have my shell scripts  and more
> > details.
> 
> I was planning to do something similar:
> backing up my laptop with `backup2l' and synchronizing the related files.
> 
> Yes, please send your shell script.
> 
> Thanks,
> Jerome
> 
> 
> 
> >
> > Tobias
> >
> >
> >>Thanks in advance,
> >>Jerome
> >
> >
> >
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 



-- 
A. C. Censi
accensi [em] gmail [ponto] com
accensi [em] montreal [ponto] com [ponto] br


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Touchpad functionality dissappeared for no apparent reason!

2004-10-04 Thread Derek Broughton
On October 3, 2004 05:49 am, Mattia Dongili wrote:
> On Tue, Sep 28, 2004 at 07:27:42PM +0200, Mattia Dongili wrote:
> > On Tue, Sep 28, 2004 at 01:43:08PM -0300, Derek Broughton wrote:
> > > On September 28, 2004 08:47 am, Mattia Dongili wrote:
> > > > On Mon, Sep 27, 2004 at 03:46:23PM -0300, Derek Broughton wrote:
>
> [...]
>
> > > >   uhci-hcd
> > > >   hid
>
> just for the record, it seems that 'hid' is called 'usbhid' since at
> least 2.6.7

Well, that explains the message every time I start up, that says "hid" can't 
be found.  It was working fine, anyway, so I didn't get around to checking 
it.
-- 
derek


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: remote backup

2004-10-04 Thread Derek Broughton
On October 4, 2004 05:43 am, Marco Bellini wrote:
> i've heard about Mondo Rescue packages and bootable cd... i've never
> tried it, so it's just a suggestion...
> http://www.microwerks.net/~hugo/

imo, the critical word there is "Rescue".  I couldn't figure out a way to get 
Mondo to just back up my _data_.  It wants to create a bootable CD and just 
seemed to be doing too much (in the end, it went off and spent 4 hours 
creating a bootable CD of my 4GB Oracle partition, and I gave up on it - it 
seemed to be doing _something_ - the fan kept coming on - but not ever 
actually writing anything).
-- 
derek


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: cannot execute "/etc/init.d/rc"

2004-10-04 Thread Ivan Glushkov
On Mon, 4 Oct 2004, Andrew Porter wrote:

> On Mon, 2004-10-04 at 12:59, Ivan Glushkov wrote:
>
> > INIT: cannot execute "/etc/init.d/rcS"
> > INIT: Entering runlevel: 2
> > INIT: cannot execute "/etc/init.d/rc"
>
> What does ls -l /etc/init.d/rc* show ?

it shows:

-rwxrwxrwx 1 root root 2235 Oct 4 14:25 /etc/init.d/rc
-rwxrwxrwx 1 root root 1190 Oct 4 14:25 /etc/init.d/rcS

>
>
>
>
>
>
I found the following:
the /bin/sh was missing, as well as /bin/bash. I linked:

ln -s /bin/zsh bin/sh

Basicly seems like the whole system is not working properly:
"apt-get dist-upgrade"  wants libc6.
"apt-get install libc6" says that it cannot get the debconf version. The
debconf version is ofcourse installed... So, the first task in the moment
is to find a way to install libc6...

 (a lot of things in /lost+found/.)is there a way with apt-get or so to recover the
previous state of the system?

Ivan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Cannot get debconf version

2004-10-04 Thread Ivan Glushkov
Hi list,

I have the following problem:

when I try to install whatever with:

apt-get install ...

i get: Try 'apt-get -f install'
When I try that, I always get:

E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptorE: Cannot get
debconf version. Is debconf installed?

Unpacking libc6 (from ...)...
dpkg (subprocess): unable to execute new pre-installed script: No such
file or directory
dpkg: error processing .. (--unpack):
subprocess pre-installation script returned error exit status 2


I tought that the problem might be in dpkg, so i compiled it from source.
But the error still persist.

In summary in the moment there is no way to install on my system:

libc6, bash,... whatever you can think of.

I have some questions:
1. How and where from I can get the sources of debconf? (with "apt-get
source --tar-only" It is not downloading nothing)
2. Where does apt-get read the debconf version?
3. What is this pre-installed script?

In fact for any idea I will be greatful...

Thanks in advance,
Ivan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



debconf source

2004-10-04 Thread Ivan Glushkov
Hi list,

I have the following problem:

when I try to install whatever with:

apt-get install ...

i get: Try 'apt-get -f install'
When I try that, I always get:

E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptorE: Cannot get
debconf version. Is debconf installed?

Unpacking libc6 (from ...)...
dpkg (subprocess): unable to execute new pre-installed script: No such
file or directory
dpkg: error processing .. (--unpack):
subprocess pre-installation script returned error exit status 2


I tought that the problem might be in dpkg, so i compiled it from source.
But the error still persist.

In summary in the moment there is no way to install on my system:

libc6, bash,... whatever you can think of.

I have some questions:
1. How and where from I can get the sources of debconf? (with "apt-get
source --tar-only" It is not downloading nothing)
2. Where does apt-get read the debconf version?
3. What is this pre-installed script?

In fact for any idea I will be greatful...

Thanks in advance,
Ivan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Cannot get debconf version

2004-10-04 Thread Emmanuel Halbwachs
Hello,
Ivan Glushkov a écrit :
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptorE: Cannot get
debconf version. Is debconf installed?
I am not an expert at all, but :
- what is the output of 'dpkg -l debconf'?
- then try 'apt-get install debconf'
Your problem sounds strange as 'debconf' seems to be a core component
of a Debian system.
My 2 cents.
HTH,
--
Emmanuel Halbwachs  Labo. de Photonique et Nanostructures
tel  : (+33)1 69 63 61 34 CNRS UPR 20
fax  : (+33)1 69 63 60 06   Route de Nozay F 91460 Marcoussis
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: debconf source

2004-10-04 Thread Derek Broughton
On October 4, 2004 12:31 pm, Ivan Glushkov wrote:

Please don't start new threads to ask old questions.  This is all based on an 
apparent corrupted partition as reported in the thread 'Re: cannot execute 
"/etc/init.d/rc"', but people aren't going to know that from your description 
here.

> E: Cannot get debconf version. Is debconf installed?
> debconf: apt-extracttemplates failed: Bad file descriptorE: Cannot get
> debconf version. Is debconf installed?
> 
> Unpacking libc6 (from ...)...

You seem to be going about things rather the wrong way.  Fix your file 
corruption first.  Then install anything you can from _binary_ packages.  
Trying to install from source means that you have to worry about the status 
of all your devel packages, as well as everything else you already know is 
corrupted.

> dpkg (subprocess): unable to execute new pre-installed script: No such
> file or directory
> dpkg: error processing .. (--unpack):
> subprocess pre-installation script returned error exit status 2
>
>
> I tought that the problem might be in dpkg, so i compiled it from source.
> But the error still persist.

dpkg seemed to be working.  It probably can't access /var/lib/dpkg/info/.

> 1. How and where from I can get the sources of debconf? (with "apt-get
> source --tar-only" It is not downloading nothing)
> 2. Where does apt-get read the debconf version?

I _think_ it doesn't.  I think the preinst, postinst, etc, scripts do that.

> 3. What is this pre-installed script?

 .deb files have optional pre-install, post-install, pre-rm (remove) and 
post-rm scripts.  They're in the package, but after unpacking them it was 
unable to find, in this case, libc6 has libc6.postinst, libc6.preinst, and 
libc6.postrm in /var/lib/dpkg/info/

I'd start by looking in your lost+found for anything that looks like it 
belongs in /var/lib/dpkg.

Or just reformat the partition and restore it from backup. :-)
-- 
derek


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: remote backup

2004-10-04 Thread Tobias Kraus
[...]
> 
> I was planning to do something similar:
> backing up my laptop with `backup2l' and synchronizing the related files.
> 
> Yes, please send your shell script.
@ML:
I turned of automatic line break for this mail. 
Please don't complain about lines longer than 80 characters.
Thanks.

Thanks for inspiration to:
http://www.heinlein-support.de/web/projekte/rsync-backup/


Hi Jerome,
on server-side (desktop) I'm running a rsync-server (see rsync(1), rsyncd.conf(5)) 
On client-side (notebook) every hour I run the rsync-backup script. It is configured
with 5 environment variables (see below). If more than $RSYNC_TIME seconds have passed
after last backup, it checks whether rsync-server is reachable. If it is, it calls
the rsync_func() bash function to do the actual backup.


On server-side, the rsync-rotate script is called hourly by cron.
If no rsync-process is running and the creation time of the lockfile of $ROTATE_DIR
is younger than $ROTATE_DIR.0 it locks the rsync-port using iptables (if you don't
know how iptables works, drop me a line and I'll give you a _short_ introduction
- I don't have very much spare time now :-( ). After that it deletes the oldest 
backup and rotates all others (8->9, 7->8, and so on).
After that, it makes a backup of $ROTATE_DIR using hard
links. So unchanged files don't use any hard disk space, except inodes for the hard
links. Finally it copies "$ROTATE_DIR" to "$ROTATE_DIR"- (if an important file should 
get
corrupted - remember: if a file did not change for the last 10 rsync-rotate runs, or so
(see $NUM_BACKUPS), there is exactly one copy of the file on the hdd!)

BTW, sorry for my bad english.

Tobias



/usr/local/sbin/rsync-backup: (client = notebook)
- 8X 

#!/bin/bash
#DNS-name/IP-address of rsync-server
RSYNC_SRV="server"
#rsync-share to backup to
RSYNC_SERVICE="system"
#lockfile, also as indicator when last backup was successful
RSYNC_LOCK="/var/local/rsync-backup.lock"
#logfile
RSYNC_LOG="/var/local/rsync-backup.log"
#minium time (seconds) which have to pass for anoter backup
RSYNC_TIME=$((60*60*24*1))

rsync_func () {
  echo "Backing up $1" >>$RSYNC_LOG
  nice -19 rsync -ax --numeric-ids --delete $2 $1 
rsync://"$RSYNC_SRV"/"$RSYNC_SERVICE" >> $RSYNC_LOG 2>&1

  if ! [ $? = 24 -o $? = 0 ] ; then
rm "$RSYNC_LOCK";
echo "Error at $1. EXIT!" >>$RSYNC_LOG;

  fi
}


ps -e |grep -v grep |grep -v $$ |grep `basename $0` >/dev/null 2>&1 && exit 0

echo >>$RSYNC_LOG
date +"%s  =   %c" >>$RSYNC_LOG


[ -f "$RSYNC_LOCK" ] && [ $(( `date +%s` - `date -r "$RSYNC_LOCK" +%s` )) -lt 
$RSYNC_TIME ] && { echo "No backup. End of program!" $RSYNC_LOG ; exit 0 ; }
rsync rsync://$RSYNC_SRV >/dev/null 2>&1 || { echo "RSYNC-Server not available. End of 
program!" >>$RSYNC_LOG ; exit 0 ; }

rm -f "$RSYNC_LOCK"
#create lockfile, creation time shows last backup
touch "$RSYNC_LOCK"


#do actual backup
rsync_func /home
rsync_func /usr
rsync_func / "--exclude /home --exclude /usr"

echo "End of program!">>$RSYNC_LOG
- 8X 






/usr/local/sbin/rsync-rotate: (server = desktop)
- 8X 

#!/bin/bash
#iptables-chain used to block rsync port
IPTBL_CHAIN="rsync"
#name or # of port rsync runs on
RSYNC_PORT="rsync"
#iptables executable
IPTABLES="/sbin/iptables"
#rotate which directory. must be the directory rsync shares on the network
ROTATE_DIR="/pub/backup/system"
#lockfile
LOCKFILE="var/local/rsync-backup.lock"
#number of copies stored
NUM_BACKUPS=9

for i in `pidof -x $0`; do
[ x$i != x$$ ] && exit
done

[ `date -r "$ROTATE_DIR"/"$LOCKFILE" +%s` -gt `date -r "$ROTATE_DIR".0/"$LOCKFILE" 
+%s` ] || exit 0
[ -d "$ROTATE_DIR" ] || exit 0
[ -x "$IPTABLES" ] || exit 0
[ $NUM_BACKUPS -lt 1 ] && NUM_BACKUPS=1
[ $NUM_BACKUPS -gt 10 ] && NUM_BACKUPS=10

$IPTABLES -L "$IPTBL_CHAIN" >/dev/null 2>&1 ||
$IPTABLES -N "$IPTBL_CHAIN"
$IPTABLES -L INPUT |grep "$IPTBL_CHAIN.*$RSYNC_PORT" >/dev/null 2>&1 ||
$IPTABLES -I INPUT -p tcp --dport "$RSYNC_PORT" -j "$IPTBL_CHAIN"
$IPTABLES -L OUTPUT |grep "$IPTBL_CHAIN.*$RSYNC_PORT" >/dev/null 2>&1 ||
$IPTABLES -I OUTPUT -p tcp --sport "$RSYNC_PORT" -j "$IPTBL_CHAIN"

netstat -t |grep ":$RSYNC_PORT.*ESTABLISHED" >/dev/null 2>&1 && exit 0

$IPTABLES -A "$IPTBL_CHAIN" -j REJECT



if [ -d "$ROTATE_DIR".$NUM_BACKUPS ] ; then
NUM_BACKUPS=$(($NUM_BACKUPS  - 1))
rm -rf "$ROTATE_DIR".$NUM_BACKUPS
fi

for OLD in 8 7 6 5 4 3 2 1 0 ; do
if [ -d "$ROTATE_DIR".$OLD ] ; then
NEW=$[ $OLD + 1 ]
[ -d "$ROTATE_DIR".$NEW ] && rm -rf "$ROTATE_DIR".$NEW
mv "$ROTATE_DIR".$OLD "$ROTATE_DIR".$NEW
fi
done

if [ -d "$ROTATE_DIR" ] ; then
cp -al "$ROTATE_DIR" "$ROTATE_DIR".0

Re: APM: will not sleep with AC plugged in?

2004-10-04 Thread Thomas Hood
User space cannot veto APM suspend requests in current Linux kernels.

What is keeping your machine from suspending is the firmware.  If you have
a PCMCIA card then try ejecting it before attempting to suspend.

-- 
Thomas Hood


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: remote backup

2004-10-04 Thread Jerome BENOIT
Thank you very much,
Jerome
Tobias Kraus wrote:
[...]
I was planning to do something similar:
backing up my laptop with `backup2l' and synchronizing the related files.
Yes, please send your shell script.
@ML:
I turned of automatic line break for this mail. 
Please don't complain about lines longer than 80 characters.
Thanks.

Thanks for inspiration to:
http://www.heinlein-support.de/web/projekte/rsync-backup/
Hi Jerome,
on server-side (desktop) I'm running a rsync-server (see rsync(1), rsyncd.conf(5)) 
On client-side (notebook) every hour I run the rsync-backup script. It is configured
with 5 environment variables (see below). If more than $RSYNC_TIME seconds have passed
after last backup, it checks whether rsync-server is reachable. If it is, it calls
the rsync_func() bash function to do the actual backup.

On server-side, the rsync-rotate script is called hourly by cron.
If no rsync-process is running and the creation time of the lockfile of $ROTATE_DIR
is younger than $ROTATE_DIR.0 it locks the rsync-port using iptables (if you don't
know how iptables works, drop me a line and I'll give you a _short_ introduction
- I don't have very much spare time now :-( ). After that it deletes the oldest 
backup and rotates all others (8->9, 7->8, and so on).
After that, it makes a backup of $ROTATE_DIR using hard
links. So unchanged files don't use any hard disk space, except inodes for the hard
links. Finally it copies "$ROTATE_DIR" to "$ROTATE_DIR"- (if an important file should get
corrupted - remember: if a file did not change for the last 10 rsync-rotate runs, or so
(see $NUM_BACKUPS), there is exactly one copy of the file on the hdd!)

BTW, sorry for my bad english.
Tobias

/usr/local/sbin/rsync-backup: (client = notebook)
- 8X 

#!/bin/bash
#DNS-name/IP-address of rsync-server
RSYNC_SRV="server"
#rsync-share to backup to
RSYNC_SERVICE="system"
#lockfile, also as indicator when last backup was successful
RSYNC_LOCK="/var/local/rsync-backup.lock"
#logfile
RSYNC_LOG="/var/local/rsync-backup.log"
#minium time (seconds) which have to pass for anoter backup
RSYNC_TIME=$((60*60*24*1))
rsync_func () {
  echo "Backing up $1" >>$RSYNC_LOG
  nice -19 rsync -ax --numeric-ids --delete $2 $1 rsync://"$RSYNC_SRV"/"$RSYNC_SERVICE" >> 
$RSYNC_LOG 2>&1
  if ! [ $? = 24 -o $? = 0 ] ; then
rm "$RSYNC_LOCK";
echo "Error at $1. EXIT!" >>$RSYNC_LOG;
  fi
}
ps -e |grep -v grep |grep -v $$ |grep `basename $0` >/dev/null 2>&1 && exit 0
echo >>$RSYNC_LOG
date +"%s  =   %c" >>$RSYNC_LOG
[ -f "$RSYNC_LOCK" ] && [ $(( `date +%s` - `date -r "$RSYNC_LOCK" +%s` )) -lt $RSYNC_TIME ] 
&& { echo "No backup. End of program!" $RSYNC_LOG ; exit 0 ; }
rsync rsync://$RSYNC_SRV >/dev/null 2>&1 || { echo "RSYNC-Server not available. End of 
program!" >>$RSYNC_LOG ; exit 0 ; }
rm -f "$RSYNC_LOCK"
#create lockfile, creation time shows last backup
touch "$RSYNC_LOCK"
#do actual backup
rsync_func /home
rsync_func /usr
rsync_func / "--exclude /home --exclude /usr"
echo "End of program!">>$RSYNC_LOG
- 8X 



/usr/local/sbin/rsync-rotate: (server = desktop)
- 8X 

#!/bin/bash
#iptables-chain used to block rsync port
IPTBL_CHAIN="rsync"
#name or # of port rsync runs on
RSYNC_PORT="rsync"
#iptables executable
IPTABLES="/sbin/iptables"
#rotate which directory. must be the directory rsync shares on the network
ROTATE_DIR="/pub/backup/system"
#lockfile
LOCKFILE="var/local/rsync-backup.lock"
#number of copies stored
NUM_BACKUPS=9
for i in `pidof -x $0`; do
[ x$i != x$$ ] && exit
done
[ `date -r "$ROTATE_DIR"/"$LOCKFILE" +%s` -gt `date -r "$ROTATE_DIR".0/"$LOCKFILE" 
+%s` ] || exit 0
[ -d "$ROTATE_DIR" ] || exit 0
[ -x "$IPTABLES" ] || exit 0
[ $NUM_BACKUPS -lt 1 ] && NUM_BACKUPS=1
[ $NUM_BACKUPS -gt 10 ] && NUM_BACKUPS=10
$IPTABLES -L "$IPTBL_CHAIN" >/dev/null 2>&1 ||
$IPTABLES -N "$IPTBL_CHAIN"
$IPTABLES -L INPUT |grep "$IPTBL_CHAIN.*$RSYNC_PORT" >/dev/null 2>&1 ||
$IPTABLES -I INPUT -p tcp --dport "$RSYNC_PORT" -j "$IPTBL_CHAIN"
$IPTABLES -L OUTPUT |grep "$IPTBL_CHAIN.*$RSYNC_PORT" >/dev/null 2>&1 ||
$IPTABLES -I OUTPUT -p tcp --sport "$RSYNC_PORT" -j "$IPTBL_CHAIN"
netstat -t |grep ":$RSYNC_PORT.*ESTABLISHED" >/dev/null 2>&1 && exit 0
$IPTABLES -A "$IPTBL_CHAIN" -j REJECT

if [ -d "$ROTATE_DIR".$NUM_BACKUPS ] ; then
NUM_BACKUPS=$(($NUM_BACKUPS  - 1))
rm -rf "$ROTATE_DIR".$NUM_BACKUPS
fi
for OLD in 8 7 6 5 4 3 2 1 0 ; do
if [ -d "$ROTATE_DIR".$OLD ] ; then
NEW=$[ $OLD + 1 ]
[ -d "$ROTATE_DIR".$NEW ] && rm -rf "$ROTATE_DIR".$NEW
mv "$ROTATE_DIR".$OLD "$ROTATE_DIR".$NEW
fi
done
if [ -d "$ROTATE_DIR" ] ; then
cp -al "$ROTATE_DIR" "$ROTATE_DIR".0
   

Amilo A1630

2004-10-04 Thread my-linux-news
Hey! I have an FSC Amilo A1630 and wanne know if anyone of you have any experience with debian on this laptop. I also wanne ask about the hardware informations. I couldn find any special informations aubout this laptop except the normal sell infos. thxAufnehmen, abschicken, nah sein - So einfach ist   WEB.DE Video-Mail: http://freemail.web.de/?mc=021200  


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: broken cd-rw drive

2004-10-04 Thread Ulisses Reina Montenegro de Albuquerque
David Fokkema wrote:
Hi group,
I broke my cd-rw drive. I really hope this has nothing to do with a
possible bug in linux and/or cdrecord. Here's my story...
 

[snip]
There has been a single case of confirmed CD-RW hardware malfunctioning 
due to software bugs related to Linux, and it was due to questionable 
use of ATAPI codes by LG, and it only affected LG CD-ROM drives under 
Mandrake 9.2 (which shipped with a patched kernel image that queried the 
hardware through the use of the above-mentioned ATAPI codes). You can 
check on that: http://www.mandrakelinux.com/en/lgerrata.php3

I don't want to sound like a zealot, but your situation does not sound 
at all like it was caused by software. I know you tried not to sound 
like you are blaming Debian/Linux for what happened, but please try to 
exhaust all possibilities before coming up with the usual "well, this 
was the only thing I changed, so it must be the cause of my problem" 
approach.

Cheers, and good luck findind a replacement drive.
Ulisses
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: broken cd-rw drive

2004-10-04 Thread David Fokkema
On Mon, Oct 04, 2004 at 09:58:28AM -0300, Ulisses Reina Montenegro de Albuquerque 
wrote:
> David Fokkema wrote:
> 
> >Hi group,
> >
> >I broke my cd-rw drive. I really hope this has nothing to do with a
> >possible bug in linux and/or cdrecord. Here's my story...
> > 
> >
> [snip]
> 
> There has been a single case of confirmed CD-RW hardware malfunctioning 
> due to software bugs related to Linux, and it was due to questionable 
> use of ATAPI codes by LG, and it only affected LG CD-ROM drives under 
> Mandrake 9.2 (which shipped with a patched kernel image that queried the 
> hardware through the use of the above-mentioned ATAPI codes). You can 
> check on that: http://www.mandrakelinux.com/en/lgerrata.php3

So there is a confirmed case, but these drives could be recovered. No
real physical damage here, :-)

> I don't want to sound like a zealot, but your situation does not sound 
> at all like it was caused by software.

>From time to time, my family/friends tell me, I _do_ sound like a
zealot.

> I know you tried not to sound like you are blaming Debian/Linux for
> what happened, but please try to exhaust all possibilities before
> coming up with the usual "well, this was the only thing I changed, so
> it must be the cause of my problem" approach.

On the contrary. This wasn't my approach at all. But then, as it
happened while I was switching kernel modules etc., I want to absolutely
make sure it is _not_ caused by software so I can wholeheartedly yell at
the support people when (if) they tell me they don't support linux and
well, it was not recommended to run that anyway, so warranty is void.

> Cheers, and good luck findind a replacement drive.

Thanks!

David

-- 
Hi! I'm a .signature virus. Copy me into
your ~/.signature to help me spread!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: remote backup

2004-10-04 Thread Nick Hastings
Hi,

* Daniel Pittman <[EMAIL PROTECTED]> [041004 10:09]:
> On 2 Oct 2004, Jerome BENOIT wrote:
> > I would like my desktop (an openbrick) to backup via the net
> > my laptop once it is connected:
> > what is the best way to do so ?
> 
> My recommendation would be the 'BackupPC' package, found in testing and
> unstable.  That will happily produce long term archival backups of the
> laptop, and can dump to tape, etc, for off-line storage as well.

Thanks for pointing out this package. I've just installed it and it
seems quite nice. 

I have a question about this package, and was unable to find the answer
(or even the question) in the documentation, FAQs or on google.

I suffer from a small /var partition... (if only there was SPAM with a
pill for that), and BackupPC wants to put all the backups in
/var/lib/backuppc/pc. It seems there is no way to tell BackupPC to use a
different location. The simple "fix" was to just symlink this directory
to somewhere else. This seems to work ok, except that BackupPC continues
to look in /var to determine how much space it has available.

Does anyone have a proper solution to this problem?

Thanks,

Nick.

-- 
Debian 3.1
Linux twofish 2.6.8-looxt93c4 i686 GNU/Linux


signature.asc
Description: Digital signature


Re: remote backup

2004-10-04 Thread Tobias Kraus
Am Samstag, 2. Oktober 2004 03:39 schrieb Jerome BENOIT:
> Hello List,
>
> I would like my desktop (an openbrick) to backup via the net
> my laptop once it is connected:
> what is the best way to do so ?

I'm using rsync for this. My desktop is a rsync-server and my laptop 
tests hourely if it is available. If so, and the last backup is older 
than one day it rsync my hdd. On the server, I have a script that 
creates snapshots via hardlinks. (thanks to 
http://www.heinlein-support.de/web/projekte/rsync-backup/ :-) for 
inspiration) Tell me if you want to have my shell scripts  and more 
details. 

Tobias

>
> Thanks in advance,
> Jerome



Re: Alt-SysRq & kernel 2.6.8: HOWTO?

2004-10-04 Thread Piero Furiesi
>IIRC, You have to enable kernel hacking. Then the Mag-Sys-Reg-key-config
>should appear.

Well, I thougth that were the solution.

But the "Magic SysReq" option for kernel 2.6.x is now under "Kernel 
debugging"... I found it!

anyway, thanks.


Re: Mail on laptop

2004-10-04 Thread Koen Vermeer
Op za 02-10-2004, om 20:27 schreef Bob Proulx:
> > I recently acquired a laptop, and ofcourse I installed Debian on it.
> Of course!  :-)

After a regular i386 and a UltraSparc 10, what else could I do...

> Not sure this helps you but you can tell debconf to send mail to a
> different address.
>   export [EMAIL PROTECTED]

That helps for debconf, but does not solve the more general problem.

> I actually use it to turn off those messages entirely.
>   export DEBCONF_ADMIN_EMAIL=""
> When you install a security upgrade for ssh to a few hundred machines
> and each and every one wants to say the same thing to you it gets a
> little tedious.  :-)

Sounds like spam from your own machines :-)

> But really the only two users that you care about are yourself and
> root so the simplest thing (what I would do) is to create aliases for
> those two users and forward that mail to the address you want.

Right, but the simplest MTA's (nullmailer, ssmtp) don't support that as
far as I know, and there doesn't seem to be anything in between these
simplest MTA's and stuff like exim or postfix.

The obvious reply to that would be 'there's a great opportunity for you
to contribute something to the world', but unfortunately, my programming
skills nowadays are limited to Matlab and some scripts for personal use.

So, I guess I'll just have to install exim or postfix then.

Koen





Re: remote backup

2004-10-04 Thread Marco Bellini
i've heard about Mondo Rescue packages and bootable cd... i've never
tried it, so it's just a suggestion...
http://www.microwerks.net/~hugo/

HTH

marco

On Sat, 2004-10-02 at 04:22, Daniel Pittman wrote:
> On 2 Oct 2004, Jerome BENOIT wrote:
> > I would like my desktop (an openbrick) to backup via the net
> > my laptop once it is connected:
> > what is the best way to do so ?
> 
> My recommendation would be the 'BackupPC' package, found in testing and
> unstable.  That will happily produce long term archival backups of the
> laptop, and can dump to tape, etc, for off-line storage as well.
> 
> Regards,
> Daniel
> -- 
> It is always possible to aglutenate multiple separate problems into a single
> complex interdependent solution. In most cases this is a bad idea.
> -- RFC 1925
> 



Re: Mail on laptop

2004-10-04 Thread Martin Bock
Hello!

I do not know wether this will help in your setup, but with esmtp you 
can send to different smtp relays depending on the senders address.

On my laptop I have the following: I let exim deliver only local mail, 
including that all mail to [EMAIL PROTECTED] is sent to me, [EMAIL PROTECTED] 
That 
handles my local delivery.
Additionally I use esmtp to get my mail out. Now if I send from my 
regular email address at the isp, then esmtp will send it to their smtp 
relay. However, when I use [EMAIL PROTECTED] as a sender, esmtp will deliver 
locally. So - pretty useless though - I can even send a email locally to 
my girl.

Cheers, Martin

On Mon, Oct 04, 2004 at 10:13:51AM +0200, Koen Vermeer wrote:
> Op za 02-10-2004, om 20:27 schreef Bob Proulx:
> > > I recently acquired a laptop, and ofcourse I installed Debian on it.
> > Of course!  :-)
> 
> After a regular i386 and a UltraSparc 10, what else could I do...
> 
> > Not sure this helps you but you can tell debconf to send mail to a
> > different address.
> >   export [EMAIL PROTECTED]
> 
> That helps for debconf, but does not solve the more general problem.
> 
> > I actually use it to turn off those messages entirely.
> >   export DEBCONF_ADMIN_EMAIL=""
> > When you install a security upgrade for ssh to a few hundred machines
> > and each and every one wants to say the same thing to you it gets a
> > little tedious.  :-)
> 
> Sounds like spam from your own machines :-)
> 
> > But really the only two users that you care about are yourself and
> > root so the simplest thing (what I would do) is to create aliases for
> > those two users and forward that mail to the address you want.
> 
> Right, but the simplest MTA's (nullmailer, ssmtp) don't support that as
> far as I know, and there doesn't seem to be anything in between these
> simplest MTA's and stuff like exim or postfix.
> 
> The obvious reply to that would be 'there's a great opportunity for you
> to contribute something to the world', but unfortunately, my programming
> skills nowadays are limited to Matlab and some scripts for personal use.
> 
> So, I guess I'll just have to install exim or postfix then.
> 
> Koen
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 



Re: remote backup

2004-10-04 Thread Jerome BENOIT

Hello List,

thank very much for your suggestions.

Tobias Kraus wrote:

Am Samstag, 2. Oktober 2004 03:39 schrieb Jerome BENOIT:


Hello List,

I would like my desktop (an openbrick) to backup via the net
my laptop once it is connected:
what is the best way to do so ?



I'm using rsync for this. My desktop is a rsync-server and my laptop 
tests hourely if it is available. If so, and the last backup is older 
than one day it rsync my hdd. On the server, I have a script that 
creates snapshots via hardlinks. (thanks to 
http://www.heinlein-support.de/web/projekte/rsync-backup/ :-) for 
inspiration) Tell me if you want to have my shell scripts  and more 
details. 


I was planning to do something similar:
backing up my laptop with `backup2l' and synchronizing the related files.

Yes, please send your shell script.

Thanks,
Jerome



Tobias



Thanks in advance,
Jerome








cannot execute "/etc/init.d/rc"

2004-10-04 Thread Ivan Glushkov
Hi list,
as I cannot read my battery status, my laptop went off unexpectingly.
After reboot, and a fsck, and reboot again, I get the following message:

INIT: cannot execute "/etc/init.d/rcS"
INIT: Entering runlevel: 2
INIT: cannot execute "/etc/init.d/rc"

Debian GNU/Linux 3.1 (none) tty1

(none) login: root
Login incorrect

(none) login: root
Login incorrect

[Ctrl+Alt+Del]

INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
INIT: Sending the processes the KILL signal
INIT: cannot execute "/etc/init.d/rc"
Give root password for maintenance
(or type Control-D to continue):
(none)~touch /tmp/try.log
touch: cannot touch '/tmp/try.log': Read-only file system


I have in my /etc/fstab:

/dev/hda5   /   ext2errors=remount-ro   0   1

after remounting the root partition, nothing changes:

(none)~mount -o remount /dev/hda5
(none)~touch /tmp/try.log
(none)~init 3
INIT: Switching to runlevel: 3
INIT: Sending processes the TERM signal
INIT: Sending the processes the KILL signal
INIT: cannot execute "/etc/init.d/rc"

Debian GNU/Linux 3.1 (none) tty1

(none) login:



Any idea?
Thanks in advance,
Ivan



Re: cannot execute "/etc/init.d/rc"

2004-10-04 Thread Andrew Porter
On Mon, 2004-10-04 at 12:59, Ivan Glushkov wrote:

> INIT: cannot execute "/etc/init.d/rcS"
> INIT: Entering runlevel: 2
> INIT: cannot execute "/etc/init.d/rc"

What does ls -l /etc/init.d/rc* show ?







Re: remote backup

2004-10-04 Thread A. C. Censi
You can try also rdiff_backup:
http://rdiff-backup.stanford.edu/index.html

A, C, Censi

On Mon, 04 Oct 2004 10:55:50 +0200, Jerome BENOIT <[EMAIL PROTECTED]> wrote:
> Hello List,
> 
> thank very much for your suggestions.
> 
> Tobias Kraus wrote:
> > Am Samstag, 2. Oktober 2004 03:39 schrieb Jerome BENOIT:
> >
> >>Hello List,
> >>
> >>I would like my desktop (an openbrick) to backup via the net
> >>my laptop once it is connected:
> >>what is the best way to do so ?
> >
> >
> > I'm using rsync for this. My desktop is a rsync-server and my laptop
> > tests hourely if it is available. If so, and the last backup is older
> > than one day it rsync my hdd. On the server, I have a script that
> > creates snapshots via hardlinks. (thanks to
> > http://www.heinlein-support.de/web/projekte/rsync-backup/ :-) for
> > inspiration) Tell me if you want to have my shell scripts  and more
> > details.
> 
> I was planning to do something similar:
> backing up my laptop with `backup2l' and synchronizing the related files.
> 
> Yes, please send your shell script.
> 
> Thanks,
> Jerome
> 
> 
> 
> >
> > Tobias
> >
> >
> >>Thanks in advance,
> >>Jerome
> >
> >
> >
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 



-- 
A. C. Censi
accensi [em] gmail [ponto] com
accensi [em] montreal [ponto] com [ponto] br



Re: broken cd-rw drive

2004-10-04 Thread Ulisses Reina Montenegro de Albuquerque

David Fokkema wrote:


Hi group,

I broke my cd-rw drive. I really hope this has nothing to do with a
possible bug in linux and/or cdrecord. Here's my story...
 


[snip]

There has been a single case of confirmed CD-RW hardware malfunctioning 
due to software bugs related to Linux, and it was due to questionable 
use of ATAPI codes by LG, and it only affected LG CD-ROM drives under 
Mandrake 9.2 (which shipped with a patched kernel image that queried the 
hardware through the use of the above-mentioned ATAPI codes). You can 
check on that: http://www.mandrakelinux.com/en/lgerrata.php3


I don't want to sound like a zealot, but your situation does not sound 
at all like it was caused by software. I know you tried not to sound 
like you are blaming Debian/Linux for what happened, but please try to 
exhaust all possibilities before coming up with the usual "well, this 
was the only thing I changed, so it must be the cause of my problem" 
approach.


Cheers, and good luck findind a replacement drive.
Ulisses



Re: Touchpad functionality dissappeared for no apparent reason!

2004-10-04 Thread Derek Broughton
On October 3, 2004 05:49 am, Mattia Dongili wrote:
> On Tue, Sep 28, 2004 at 07:27:42PM +0200, Mattia Dongili wrote:
> > On Tue, Sep 28, 2004 at 01:43:08PM -0300, Derek Broughton wrote:
> > > On September 28, 2004 08:47 am, Mattia Dongili wrote:
> > > > On Mon, Sep 27, 2004 at 03:46:23PM -0300, Derek Broughton wrote:
>
> [...]
>
> > > >   uhci-hcd
> > > >   hid
>
> just for the record, it seems that 'hid' is called 'usbhid' since at
> least 2.6.7

Well, that explains the message every time I start up, that says "hid" can't 
be found.  It was working fine, anyway, so I didn't get around to checking 
it.
-- 
derek



Re: remote backup

2004-10-04 Thread Derek Broughton
On October 4, 2004 05:43 am, Marco Bellini wrote:
> i've heard about Mondo Rescue packages and bootable cd... i've never
> tried it, so it's just a suggestion...
> http://www.microwerks.net/~hugo/

imo, the critical word there is "Rescue".  I couldn't figure out a way to get 
Mondo to just back up my _data_.  It wants to create a bootable CD and just 
seemed to be doing too much (in the end, it went off and spent 4 hours 
creating a bootable CD of my 4GB Oracle partition, and I gave up on it - it 
seemed to be doing _something_ - the fan kept coming on - but not ever 
actually writing anything).
-- 
derek



Re: broken cd-rw drive

2004-10-04 Thread David Fokkema
On Mon, Oct 04, 2004 at 09:58:28AM -0300, Ulisses Reina Montenegro de 
Albuquerque wrote:
> David Fokkema wrote:
> 
> >Hi group,
> >
> >I broke my cd-rw drive. I really hope this has nothing to do with a
> >possible bug in linux and/or cdrecord. Here's my story...
> > 
> >
> [snip]
> 
> There has been a single case of confirmed CD-RW hardware malfunctioning 
> due to software bugs related to Linux, and it was due to questionable 
> use of ATAPI codes by LG, and it only affected LG CD-ROM drives under 
> Mandrake 9.2 (which shipped with a patched kernel image that queried the 
> hardware through the use of the above-mentioned ATAPI codes). You can 
> check on that: http://www.mandrakelinux.com/en/lgerrata.php3

So there is a confirmed case, but these drives could be recovered. No
real physical damage here, :-)

> I don't want to sound like a zealot, but your situation does not sound 
> at all like it was caused by software.

>From time to time, my family/friends tell me, I _do_ sound like a
zealot.

> I know you tried not to sound like you are blaming Debian/Linux for
> what happened, but please try to exhaust all possibilities before
> coming up with the usual "well, this was the only thing I changed, so
> it must be the cause of my problem" approach.

On the contrary. This wasn't my approach at all. But then, as it
happened while I was switching kernel modules etc., I want to absolutely
make sure it is _not_ caused by software so I can wholeheartedly yell at
the support people when (if) they tell me they don't support linux and
well, it was not recommended to run that anyway, so warranty is void.

> Cheers, and good luck findind a replacement drive.

Thanks!

David

-- 
Hi! I'm a .signature virus. Copy me into
your ~/.signature to help me spread!



Re: cannot execute "/etc/init.d/rc"

2004-10-04 Thread Ivan Glushkov
On Mon, 4 Oct 2004, Andrew Porter wrote:

> On Mon, 2004-10-04 at 12:59, Ivan Glushkov wrote:
>
> > INIT: cannot execute "/etc/init.d/rcS"
> > INIT: Entering runlevel: 2
> > INIT: cannot execute "/etc/init.d/rc"
>
> What does ls -l /etc/init.d/rc* show ?

it shows:

-rwxrwxrwx 1 root root 2235 Oct 4 14:25 /etc/init.d/rc
-rwxrwxrwx 1 root root 1190 Oct 4 14:25 /etc/init.d/rcS

>
>
>
>
>
>
I found the following:
the /bin/sh was missing, as well as /bin/bash. I linked:

ln -s /bin/zsh bin/sh

Basicly seems like the whole system is not working properly:
"apt-get dist-upgrade"  wants libc6.
"apt-get install libc6" says that it cannot get the debconf version. The
debconf version is ofcourse installed... So, the first task in the moment
is to find a way to install libc6...

 (a lot of things in /lost+found/.)is there a way with apt-get or so to recover 
the
previous state of the system?

Ivan



Cannot get debconf version

2004-10-04 Thread Ivan Glushkov
Hi list,

I have the following problem:

when I try to install whatever with:

apt-get install ...

i get: Try 'apt-get -f install'
When I try that, I always get:

E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptorE: Cannot get
debconf version. Is debconf installed?

Unpacking libc6 (from ...)...
dpkg (subprocess): unable to execute new pre-installed script: No such
file or directory
dpkg: error processing .. (--unpack):
subprocess pre-installation script returned error exit status 2


I tought that the problem might be in dpkg, so i compiled it from source.
But the error still persist.

In summary in the moment there is no way to install on my system:

libc6, bash,... whatever you can think of.

I have some questions:
1. How and where from I can get the sources of debconf? (with "apt-get
source --tar-only" It is not downloading nothing)
2. Where does apt-get read the debconf version?
3. What is this pre-installed script?

In fact for any idea I will be greatful...

Thanks in advance,
Ivan



debconf source

2004-10-04 Thread Ivan Glushkov
Hi list,

I have the following problem:

when I try to install whatever with:

apt-get install ...

i get: Try 'apt-get -f install'
When I try that, I always get:

E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptorE: Cannot get
debconf version. Is debconf installed?

Unpacking libc6 (from ...)...
dpkg (subprocess): unable to execute new pre-installed script: No such
file or directory
dpkg: error processing .. (--unpack):
subprocess pre-installation script returned error exit status 2


I tought that the problem might be in dpkg, so i compiled it from source.
But the error still persist.

In summary in the moment there is no way to install on my system:

libc6, bash,... whatever you can think of.

I have some questions:
1. How and where from I can get the sources of debconf? (with "apt-get
source --tar-only" It is not downloading nothing)
2. Where does apt-get read the debconf version?
3. What is this pre-installed script?

In fact for any idea I will be greatful...

Thanks in advance,
Ivan



Re: Cannot get debconf version

2004-10-04 Thread Emmanuel Halbwachs

Hello,

Ivan Glushkov a écrit :

E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptorE: Cannot get
debconf version. Is debconf installed?


I am not an expert at all, but :

- what is the output of 'dpkg -l debconf'?
- then try 'apt-get install debconf'

Your problem sounds strange as 'debconf' seems to be a core component
of a Debian system.

My 2 cents.

HTH,

--
Emmanuel Halbwachs  Labo. de Photonique et Nanostructures
tel  : (+33)1 69 63 61 34 CNRS UPR 20
fax  : (+33)1 69 63 60 06   Route de Nozay F 91460 Marcoussis



Re: debconf source

2004-10-04 Thread Derek Broughton
On October 4, 2004 12:31 pm, Ivan Glushkov wrote:

Please don't start new threads to ask old questions.  This is all based on an 
apparent corrupted partition as reported in the thread 'Re: cannot execute 
"/etc/init.d/rc"', but people aren't going to know that from your description 
here.

> E: Cannot get debconf version. Is debconf installed?
> debconf: apt-extracttemplates failed: Bad file descriptorE: Cannot get
> debconf version. Is debconf installed?
> 
> Unpacking libc6 (from ...)...

You seem to be going about things rather the wrong way.  Fix your file 
corruption first.  Then install anything you can from _binary_ packages.  
Trying to install from source means that you have to worry about the status 
of all your devel packages, as well as everything else you already know is 
corrupted.

> dpkg (subprocess): unable to execute new pre-installed script: No such
> file or directory
> dpkg: error processing .. (--unpack):
> subprocess pre-installation script returned error exit status 2
>
>
> I tought that the problem might be in dpkg, so i compiled it from source.
> But the error still persist.

dpkg seemed to be working.  It probably can't access /var/lib/dpkg/info/.

> 1. How and where from I can get the sources of debconf? (with "apt-get
> source --tar-only" It is not downloading nothing)
> 2. Where does apt-get read the debconf version?

I _think_ it doesn't.  I think the preinst, postinst, etc, scripts do that.

> 3. What is this pre-installed script?

 .deb files have optional pre-install, post-install, pre-rm (remove) and 
post-rm scripts.  They're in the package, but after unpacking them it was 
unable to find, in this case, libc6 has libc6.postinst, libc6.preinst, and 
libc6.postrm in /var/lib/dpkg/info/

I'd start by looking in your lost+found for anything that looks like it 
belongs in /var/lib/dpkg.

Or just reformat the partition and restore it from backup. :-)
-- 
derek



Re: remote backup

2004-10-04 Thread Tobias Kraus
[...]
> 
> I was planning to do something similar:
> backing up my laptop with `backup2l' and synchronizing the related files.
> 
> Yes, please send your shell script.
@ML:
I turned of automatic line break for this mail. 
Please don't complain about lines longer than 80 characters.
Thanks.

Thanks for inspiration to:
http://www.heinlein-support.de/web/projekte/rsync-backup/


Hi Jerome,
on server-side (desktop) I'm running a rsync-server (see rsync(1), 
rsyncd.conf(5)) 
On client-side (notebook) every hour I run the rsync-backup script. It is 
configured
with 5 environment variables (see below). If more than $RSYNC_TIME seconds have 
passed
after last backup, it checks whether rsync-server is reachable. If it is, it 
calls
the rsync_func() bash function to do the actual backup.


On server-side, the rsync-rotate script is called hourly by cron.
If no rsync-process is running and the creation time of the lockfile of 
$ROTATE_DIR
is younger than $ROTATE_DIR.0 it locks the rsync-port using iptables (if you 
don't
know how iptables works, drop me a line and I'll give you a _short_ introduction
- I don't have very much spare time now :-( ). After that it deletes the oldest 
backup and rotates all others (8->9, 7->8, and so on).
After that, it makes a backup of $ROTATE_DIR using hard
links. So unchanged files don't use any hard disk space, except inodes for the 
hard
links. Finally it copies "$ROTATE_DIR" to "$ROTATE_DIR"- (if an important file 
should get
corrupted - remember: if a file did not change for the last 10 rsync-rotate 
runs, or so
(see $NUM_BACKUPS), there is exactly one copy of the file on the hdd!)

BTW, sorry for my bad english.

Tobias



/usr/local/sbin/rsync-backup: (client = notebook)
- 8X 

#!/bin/bash
#DNS-name/IP-address of rsync-server
RSYNC_SRV="server"
#rsync-share to backup to
RSYNC_SERVICE="system"
#lockfile, also as indicator when last backup was successful
RSYNC_LOCK="/var/local/rsync-backup.lock"
#logfile
RSYNC_LOG="/var/local/rsync-backup.log"
#minium time (seconds) which have to pass for anoter backup
RSYNC_TIME=$((60*60*24*1))

rsync_func () {
  echo "Backing up $1" >>$RSYNC_LOG
  nice -19 rsync -ax --numeric-ids --delete $2 $1 
rsync://"$RSYNC_SRV"/"$RSYNC_SERVICE" >> $RSYNC_LOG 2>&1

  if ! [ $? = 24 -o $? = 0 ] ; then
rm "$RSYNC_LOCK";
echo "Error at $1. EXIT!" >>$RSYNC_LOG;

  fi
}


ps -e |grep -v grep |grep -v $$ |grep `basename $0` >/dev/null 2>&1 && exit 0

echo >>$RSYNC_LOG
date +"%s  =   %c" >>$RSYNC_LOG


[ -f "$RSYNC_LOCK" ] && [ $(( `date +%s` - `date -r "$RSYNC_LOCK" +%s` )) -lt 
$RSYNC_TIME ] && { echo "No backup. End of program!" $RSYNC_LOG ; exit 0 ; }
rsync rsync://$RSYNC_SRV >/dev/null 2>&1 || { echo "RSYNC-Server not available. 
End of program!" >>$RSYNC_LOG ; exit 0 ; }

rm -f "$RSYNC_LOCK"
#create lockfile, creation time shows last backup
touch "$RSYNC_LOCK"


#do actual backup
rsync_func /home
rsync_func /usr
rsync_func / "--exclude /home --exclude /usr"

echo "End of program!">>$RSYNC_LOG
- 8X 






/usr/local/sbin/rsync-rotate: (server = desktop)
- 8X 

#!/bin/bash
#iptables-chain used to block rsync port
IPTBL_CHAIN="rsync"
#name or # of port rsync runs on
RSYNC_PORT="rsync"
#iptables executable
IPTABLES="/sbin/iptables"
#rotate which directory. must be the directory rsync shares on the network
ROTATE_DIR="/pub/backup/system"
#lockfile
LOCKFILE="var/local/rsync-backup.lock"
#number of copies stored
NUM_BACKUPS=9

for i in `pidof -x $0`; do
[ x$i != x$$ ] && exit
done

[ `date -r "$ROTATE_DIR"/"$LOCKFILE" +%s` -gt `date -r 
"$ROTATE_DIR".0/"$LOCKFILE" +%s` ] || exit 0
[ -d "$ROTATE_DIR" ] || exit 0
[ -x "$IPTABLES" ] || exit 0
[ $NUM_BACKUPS -lt 1 ] && NUM_BACKUPS=1
[ $NUM_BACKUPS -gt 10 ] && NUM_BACKUPS=10

$IPTABLES -L "$IPTBL_CHAIN" >/dev/null 2>&1 ||
$IPTABLES -N "$IPTBL_CHAIN"
$IPTABLES -L INPUT |grep "$IPTBL_CHAIN.*$RSYNC_PORT" >/dev/null 2>&1 ||
$IPTABLES -I INPUT -p tcp --dport "$RSYNC_PORT" -j "$IPTBL_CHAIN"
$IPTABLES -L OUTPUT |grep "$IPTBL_CHAIN.*$RSYNC_PORT" >/dev/null 2>&1 ||
$IPTABLES -I OUTPUT -p tcp --sport "$RSYNC_PORT" -j "$IPTBL_CHAIN"

netstat -t |grep ":$RSYNC_PORT.*ESTABLISHED" >/dev/null 2>&1 && exit 0

$IPTABLES -A "$IPTBL_CHAIN" -j REJECT



if [ -d "$ROTATE_DIR".$NUM_BACKUPS ] ; then
NUM_BACKUPS=$(($NUM_BACKUPS  - 1))
rm -rf "$ROTATE_DIR".$NUM_BACKUPS
fi

for OLD in 8 7 6 5 4 3 2 1 0 ; do
if [ -d "$ROTATE_DIR".$OLD ] ; then
NEW=$[ $OLD + 1 ]
[ -d "$ROTATE_DIR".$NEW ] && rm -rf "$ROTATE_DIR".$NEW
mv "$ROTATE_DIR".$OLD "$ROTATE_DIR".$NEW
fi
done

if [ -d "$ROTATE_DIR" ] ; then
cp -al "$ROTATE_DIR" "$ROTATE_DIR".0

Re: APM: will not sleep with AC plugged in?

2004-10-04 Thread Thomas Hood
User space cannot veto APM suspend requests in current Linux kernels.

What is keeping your machine from suspending is the firmware.  If you have
a PCMCIA card then try ejecting it before attempting to suspend.

-- 
Thomas Hood



Re: remote backup

2004-10-04 Thread Jerome BENOIT

Thank you very much,
Jerome

Tobias Kraus wrote:

[...]


I was planning to do something similar:
backing up my laptop with `backup2l' and synchronizing the related files.

Yes, please send your shell script.


@ML:
I turned of automatic line break for this mail. 
Please don't complain about lines longer than 80 characters.

Thanks.

Thanks for inspiration to:
http://www.heinlein-support.de/web/projekte/rsync-backup/


Hi Jerome,
on server-side (desktop) I'm running a rsync-server (see rsync(1), rsyncd.conf(5)) 
On client-side (notebook) every hour I run the rsync-backup script. It is configured

with 5 environment variables (see below). If more than $RSYNC_TIME seconds have 
passed
after last backup, it checks whether rsync-server is reachable. If it is, it 
calls
the rsync_func() bash function to do the actual backup.


On server-side, the rsync-rotate script is called hourly by cron.
If no rsync-process is running and the creation time of the lockfile of 
$ROTATE_DIR
is younger than $ROTATE_DIR.0 it locks the rsync-port using iptables (if you 
don't
know how iptables works, drop me a line and I'll give you a _short_ introduction
- I don't have very much spare time now :-( ). After that it deletes the oldest 
backup and rotates all others (8->9, 7->8, and so on).

After that, it makes a backup of $ROTATE_DIR using hard
links. So unchanged files don't use any hard disk space, except inodes for the 
hard
links. Finally it copies "$ROTATE_DIR" to "$ROTATE_DIR"- (if an important file 
should get
corrupted - remember: if a file did not change for the last 10 rsync-rotate 
runs, or so
(see $NUM_BACKUPS), there is exactly one copy of the file on the hdd!)

BTW, sorry for my bad english.

Tobias



/usr/local/sbin/rsync-backup: (client = notebook)
- 8X 

#!/bin/bash
#DNS-name/IP-address of rsync-server
RSYNC_SRV="server"
#rsync-share to backup to
RSYNC_SERVICE="system"
#lockfile, also as indicator when last backup was successful
RSYNC_LOCK="/var/local/rsync-backup.lock"
#logfile
RSYNC_LOG="/var/local/rsync-backup.log"
#minium time (seconds) which have to pass for anoter backup
RSYNC_TIME=$((60*60*24*1))

rsync_func () {
  echo "Backing up $1" >>$RSYNC_LOG
  nice -19 rsync -ax --numeric-ids --delete $2 $1 rsync://"$RSYNC_SRV"/"$RSYNC_SERVICE" 
>> $RSYNC_LOG 2>&1

  if ! [ $? = 24 -o $? = 0 ] ; then
rm "$RSYNC_LOCK";
echo "Error at $1. EXIT!" >>$RSYNC_LOG;

  fi
}


ps -e |grep -v grep |grep -v $$ |grep `basename $0` >/dev/null 2>&1 && exit 0

echo >>$RSYNC_LOG
date +"%s  =   %c" >>$RSYNC_LOG


[ -f "$RSYNC_LOCK" ] && [ $(( `date +%s` - `date -r "$RSYNC_LOCK" +%s` )) -lt $RSYNC_TIME ] 
&& { echo "No backup. End of program!" $RSYNC_LOG ; exit 0 ; }
rsync rsync://$RSYNC_SRV >/dev/null 2>&1 || { echo "RSYNC-Server not available. End of 
program!" >>$RSYNC_LOG ; exit 0 ; }

rm -f "$RSYNC_LOCK"
#create lockfile, creation time shows last backup
touch "$RSYNC_LOCK"


#do actual backup
rsync_func /home
rsync_func /usr
rsync_func / "--exclude /home --exclude /usr"

echo "End of program!">>$RSYNC_LOG
- 8X 






/usr/local/sbin/rsync-rotate: (server = desktop)
- 8X 

#!/bin/bash
#iptables-chain used to block rsync port
IPTBL_CHAIN="rsync"
#name or # of port rsync runs on
RSYNC_PORT="rsync"
#iptables executable
IPTABLES="/sbin/iptables"
#rotate which directory. must be the directory rsync shares on the network
ROTATE_DIR="/pub/backup/system"
#lockfile
LOCKFILE="var/local/rsync-backup.lock"
#number of copies stored
NUM_BACKUPS=9

for i in `pidof -x $0`; do
[ x$i != x$$ ] && exit
done

[ `date -r "$ROTATE_DIR"/"$LOCKFILE" +%s` -gt `date -r 
"$ROTATE_DIR".0/"$LOCKFILE" +%s` ] || exit 0
[ -d "$ROTATE_DIR" ] || exit 0
[ -x "$IPTABLES" ] || exit 0
[ $NUM_BACKUPS -lt 1 ] && NUM_BACKUPS=1
[ $NUM_BACKUPS -gt 10 ] && NUM_BACKUPS=10

$IPTABLES -L "$IPTBL_CHAIN" >/dev/null 2>&1 ||
$IPTABLES -N "$IPTBL_CHAIN"
$IPTABLES -L INPUT |grep "$IPTBL_CHAIN.*$RSYNC_PORT" >/dev/null 2>&1 ||
$IPTABLES -I INPUT -p tcp --dport "$RSYNC_PORT" -j "$IPTBL_CHAIN"
$IPTABLES -L OUTPUT |grep "$IPTBL_CHAIN.*$RSYNC_PORT" >/dev/null 2>&1 ||
$IPTABLES -I OUTPUT -p tcp --sport "$RSYNC_PORT" -j "$IPTBL_CHAIN"

netstat -t |grep ":$RSYNC_PORT.*ESTABLISHED" >/dev/null 2>&1 && exit 0

$IPTABLES -A "$IPTBL_CHAIN" -j REJECT



if [ -d "$ROTATE_DIR".$NUM_BACKUPS ] ; then
NUM_BACKUPS=$(($NUM_BACKUPS  - 1))
rm -rf "$ROTATE_DIR".$NUM_BACKUPS
fi

for OLD in 8 7 6 5 4 3 2 1 0 ; do
if [ -d "$ROTATE_DIR".$OLD ] ; then
NEW=$[ $OLD + 1 ]
[ -d "$ROTATE_DIR".$NEW ] && rm -rf "$ROTATE_DIR".$NEW
mv "$ROTATE_DIR".$OLD "$ROTATE_DIR".$NEW
fi
done

if [ -d "$ROTATE_DIR" ] ; then

Amilo A1630

2004-10-04 Thread my-linux-news
Hey! I have an FSC Amilo A1630 and wanne know if anyone of you have any experience with debian on this laptop. I also wanne ask about the hardware informations. I couldn find any special informations aubout this laptop except the normal sell infos. thxAufnehmen, abschicken, nah sein - So einfach ist   WEB.DE Video-Mail: http://freemail.web.de/?mc=021200