How to run a command as root when I shutdown system automatically ?

2011-04-04 Thread waterloo
How to run a command as root when I shutdown system automatically ?
I use Debian 6 amd64.


starting deferred execution scheduler: atd failed

2011-03-21 Thread waterloo
when I boot , I find a error line : starting deferred execution scheduler:
atd failed .
How to do with it ?

I use Debian 6 amd64 .
Thanks


Re: starting deferred execution scheduler: atd failed

2011-03-21 Thread waterloo
Just a line :
 Starting deferred execution scheduler: atd failed!

Thanks

2011/3/21 Liam O'Toole liam.p.oto...@gmail.com

 On 2011-03-21, waterloo waterloo2...@gmail.com wrote:
  when I boot , I find a error line : starting deferred execution
 scheduler:
  atd failed .
  How to do with it ?
 
  I use Debian 6 amd64 .
  Thanks
 

 Try starting it manually as root:

/etc/init.d/atd start

 Any clues in the terminal output?

 --
 Liam O'Toole
 Cork, Ireland


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/slrnioecj3.20h.liam.p.otoole@dipsy.tubbynet




about auctex in Debian 6 , I can not preview math formula

2011-03-07 Thread waterloo
I use emacs 23.2.1 and auctex 11.85-1 in Debian 6 .
When I preview ' $\{a_n \}$ ' , this simple formula , I get the following
errors :

gs -dOutputFile\=\(_region_.prv/tmp5813419/pr1-1.png\) -q -dSAFER -dNOPAUSE
 -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4
 -sDEVICE\=png16m -r155.52x155.384
 GS{DELAYSAFER{.setsafe}if}stopped pop/.preview-BP
 currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if
 def/BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1
 ne or{.preview-BP 0.184314 0.309804 0.309804 setrgbcolor clippath fill
 0.980392 0.921569 0.843137 setrgbcolor}{pop}ifelse}bind/PageSize[1
 1]setpagedevice/preview-do{[count 3 roll save]3 1 roll dup length 0
 eq{pop}{setpagedevice}{ifelse .runandhide}stopped{handleerror quit}if aload
 pop restore}bind def [(_region_.prv/tmp5813419/preview.ps)(r)file]aload
 exch dup 0 setfileposition 21394()/SubFileDecode filter cvx .runandhide
 aload pop dup dup 21394 setfileposition 137()/SubFileDecode filter
 cvxpreview-do
 Error: /invalidfileaccess in --file--
 Operand stack:
--nostringval--   (_region_.prv/tmp5813419/preview.ps)   (r)
 Execution stack:
%interp_exit   .runexec2   --nostringval--   --nostringval--
 --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
 %loop_continue   --nostringval--   --nostringval--   false   1
 %stopped_push   .runexec2   --nostringval--   --nostringval--
 --nostringval--   2   %stopped_push   --nostringval--
 Dictionary stack:
--dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:72/200(L)--
 Current allocation mode is local
 Last OS error: 2
 Current file position is 532
 GS3


What is the matter ?
Thanks first of all !


Re: Reading later boot files failed

2011-02-27 Thread waterloo
Below is my /var/log/boot file . Thanks

 Mon Feb 28 01:57:43 2011: Setting parameters of disc: (none).

 Mon Feb 28 01:57:43 2011: Setting preliminary keymap...done.

 Mon Feb 28 01:57:43 2011: Activating swap...done.

 Mon Feb 28 01:57:43 2011: Checking root file system...fsck from
 util-linux-ng 2.17.2

 Mon Feb 28 01:57:43 2011: debian: clean, 378129/1321920 files,
 3426756/5280512 blocks

 Mon Feb 28 01:57:43 2011: done.

 Mon Feb 28 01:57:43 2011: Cleaning up ifupdown

 Mon Feb 28 01:57:43 2011: Setting up networking

 Mon Feb 28 01:57:43 2011: Loading kernel modules...done.

 Mon Feb 28 01:57:43 2011: Setting up LVM Volume Groups  Reading all
 physical volumes.  This may take a while...

 Mon Feb 28 01:57:43 2011:   No volume groups found

 Mon Feb 28 01:57:43 2011:   No volume groups found

 Mon Feb 28 01:57:43 2011:   No volume groups found

 Mon Feb 28 01:57:43 2011: .

 Mon Feb 28 01:57:43 2011: Activating lvm and md swap...done.

 Mon Feb 28 01:57:43 2011: Checking file systems...fsck from util-linux-ng
 2.17.2

 Mon Feb 28 01:57:43 2011: done.

 Mon Feb 28 01:57:43 2011: Mounting local filesystems...done.

 Mon Feb 28 01:57:44 2011: Activating swapfile swap...done.

 Mon Feb 28 01:57:44 2011: Cleaning up temporary files

 Mon Feb 28 01:57:44 2011: Configuring network interfaces...done.

 Mon Feb 28 01:57:44 2011: Starting portmap daemon

 Mon Feb 28 01:57:44 2011: Starting NFS common utilities: statd.

 Mon Feb 28 01:57:44 2011: Cleaning up temporary files

 Mon Feb 28 01:57:44 2011: Setting up ALSA...done.

 Mon Feb 28 01:57:44 2011: Setting console screen modes and fonts.

 Mon Feb 28 01:57:44 2011: ^[]R^[[9;30]^[[14;30]Setting up console font and
 keymap...done.

 Mon Feb 28 01:57:45 2011: Skip starting firewall: ufw (not enabled)...done.

 Mon Feb 28 01:57:45 2011: Setting kernel variables ...done.

 Mon Feb 28 01:57:45 2011: Reading later boot files

 Mon Feb 28 01:57:45 2011: Setting sensors limits.

 Mon Feb 28 01:57:45 2011: INIT: Entering runlevel: 2

 Mon Feb 28 01:57:45 2011: Using makefile-style concurrent boot in runlevel
 2.

 Mon Feb 28 01:57:45 2011: Setting sensors limits.

 Mon Feb 28 01:57:45 2011: Reading later boot files...
 ^[[31mfailed!^[[39;49m

 Mon Feb 28 01:57:45 2011: Enabling additional executable binary formats:
 binfmt-support.

 Mon Feb 28 01:57:45 2011: Starting NFS common utilities: statd.

 Mon Feb 28 01:57:45 2011: Reading early boot files

 Mon Feb 28 01:57:45 2011: Starting enhanced syslogd: rsyslogd.

 Mon Feb 28 01:57:45 2011: Starting polipo: polipo.

 Mon Feb 28 01:57:45 2011: Checking battery state...done.

 Mon Feb 28 01:57:45 2011: Starting portmap daemon...Already running..

 Mon Feb 28 01:57:45 2011: Starting system message bus: dbus.

 Mon Feb 28 01:57:45 2011: Starting anac(h)ronistic cron: anacron.

 Mon Feb 28 01:57:45 2011: Starting network connection manager:
 NetworkManager.

 Mon Feb 28 01:57:45 2011: Starting deferred execution scheduler: atd.

 Mon Feb 28 01:57:45 2011: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.

 Mon Feb 28 01:57:45 2011: Mon Feb 28 01:57:45 2011: Starting hdapsd

 Mon Feb 28 01:57:45 2011: Mon Feb 28 01:57:45 2011: Selected interface:
 HDAPS

 Mon Feb 28 01:57:45 2011: Mon Feb 28 01:57:45 2011: Selected HDAPS input
 device: /dev/input/event16

 Mon Feb 28 01:57:45 2011: Starting GNOME Display Manager: gdm3.

 Mon Feb 28 01:57:46 2011: Starting bluetooth: bluetoothd.

 Mon Feb 28 01:57:46 2011: Starting ACPI services

 Mon Feb 28 01:57:46 2011: Starting acpi_fakekey daemon...done.

 Mon Feb 28 01:57:46 2011: Starting preload: preload.

 Mon Feb 28 01:57:46 2011: Starting ClamAV virus database updater:
 freshclam.

 Mon Feb 28 01:57:46 2011: Starting Common Unix Printing System: cupsd.

 Mon Feb 28 01:57:46 2011: Starting DNS forwarder and DHCP server: dnsmasq.

 Mon Feb 28 01:57:47 2011: Setting parameters of disc: (none).

 Mon Feb 28 01:57:47 2011: Starting web server: apache2apache2: Could not
 reliably determine the server's fully qualified domain name, using 127.0.1.1
 for ServerName

 Mon Feb 28 01:57:47 2011: .

 Mon Feb 28 01:57:47 2011: Starting periodic command scheduler: cron.

 Mon Feb 28 01:57:47 2011: Starting mouse interface server: gpm.

 Mon Feb 28 01:57:47 2011: Starting Hardware abstraction layer: hald.

 Mon Feb 28 01:57:48 2011: Starting disk temperature monitoring daemon:
 hddtemp:  /dev/sda.

 Mon Feb 28 01:57:48 2011: Starting kerneloops:

 Mon Feb 28 01:57:48 2011: Loading cpufreq kernel modules...done
 (acpi-cpufreq).

 Mon Feb 28 01:57:48 2011: CPUFreq Utilities: Setting ondemand CPUFreq
 governor...CPU0...CPU1...done.

 Mon Feb 28 01:57:48 2011: Starting NTP server: ntpd.

 Mon Feb 28 01:57:48 2011: saned disabled; edit /etc/default/saned

 Mon Feb 28 01:57:48 2011: Setting sysfs variables

 Mon Feb 28 01:57:48 2011: Raising maximum number of filedescriptors (ulimit
 -n) to 32768.

 Mon Feb 28 01:57:48 2011: Starting tor daemon: tor...

 Mon Feb 28 

Re: Reading later boot files failed

2011-02-27 Thread waterloo
Yes , I install readahead-fedora .
How to make readahead-fedora work correctly ?
Thanks a lot !

2011/2/28 Camaleón noela...@gmail.com

 On Mon, 28 Feb 2011 02:02:16 +0800, waterloo wrote:

  Below is my /var/log/boot file . Thanks

 Keeping the interesting data and removing the rest of the logs:

  Mon Feb 28 01:57:45 2011: Reading later boot files
 (...)
  Mon Feb 28 01:57:45 2011: Reading later boot files...
  ^[[31mfailed!^[[39;49m
 (...)
  Mon Feb 28 01:57:45 2011: Reading early boot files

 A quick Google search returns that this message can be related to
 readahead (or readahead-fedora) package. Do you have it installed?

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.27.18.31...@gmail.com




Re: Reading later boot files failed

2011-02-27 Thread waterloo
Thanks a lot !

2011/2/27 Camaleón noela...@gmail.com

 On Mon, 28 Feb 2011 03:08:39 +0800, waterloo wrote:

  2011/2/28 Camaleón
 
  On Mon, 28 Feb 2011 02:02:16 +0800, waterloo wrote:
 
   Mon Feb 28 01:57:45 2011: Reading early boot files
 
  A quick Google search returns that this message can be related to
  readahead (or readahead-fedora) package. Do you have it installed?

  Yes , I install readahead-fedora .
  How to make readahead-fedora work correctly ? Thanks a lot !

 To be sincere, I don't even know what is that package intended for (this
 is the first time I see it). But if you have it in your system it must be
 for something, right? I think it is not installed by default ;-)

 There must be information on how this daemon works in the manual or
 README file and if you don't need it, you can disable it via /etc/
 default/readahead-fedora file.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.27.19.22...@gmail.com




Re: setting parameters of disc /dev/sda failed .

2011-02-25 Thread waterloo
Thanks first .

2011/2/25 Camaleón noela...@gmail.com

 On Fri, 25 Feb 2011 13:32:34 +0800, waterloo wrote:

  I use 'nohdparm' in kernel parameter. When booted , I find a line : '
  skipping   (warning)' . So I am sure that error is about hdparm . I
  use below in /etc/hdparm.conf :
 
  /dev/sda {
apm = 254
spindown_time = 60
dma = on
  }

 Disable any customized parameter that you can have set in that file and
 use the deafults.

  I do not revise /etc/default/hdparm .
 
  What is wrong with settings of hdparm ?

 I dunno... maybe you are trying to use an old configuration file,
 incorrect parameters/values or something that your hard disk does not
 support. You better read the man page.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.25.12.20...@gmail.com




Re: setting parameters of disc /dev/sda failed .

2011-02-25 Thread waterloo
I delete below in /etc/hdparm.conf , it is now ok.

 /dev/sda {
apm = 254
spindown_time = 60
dma = on
 }

But why did  cancelling in 'Services' config not work ?
Thanks

2011/2/26 waterloo waterloo2...@gmail.com

 Thanks first .

 2011/2/25 Camaleón noela...@gmail.com

 On Fri, 25 Feb 2011 13:32:34 +0800, waterloo wrote:


  I use 'nohdparm' in kernel parameter. When booted , I find a line : '
  skipping   (warning)' . So I am sure that error is about hdparm . I
  use below in /etc/hdparm.conf :
 
  /dev/sda {
apm = 254
spindown_time = 60
dma = on
  }

 Disable any customized parameter that you can have set in that file and
 use the deafults.

  I do not revise /etc/default/hdparm .
 
  What is wrong with settings of hdparm ?

 I dunno... maybe you are trying to use an old configuration file,
 incorrect parameters/values or something that your hard disk does not
 support. You better read the man page.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.25.12.20...@gmail.com





Reading later boot files failed

2011-02-25 Thread waterloo
when boot , I see an error : Reading later boot files failed .
What is the matter ?
I use Debian 6 amd64 .
Thanks


How to set battery charge thresh in Debian 6 ?

2011-02-24 Thread waterloo
Just as title . thanks


Re: How to set battery charge thresh in Debian 6 ?

2011-02-24 Thread waterloo
In gentoo, I set battery thresh in
/sys/devices/platform/smapi/BAT0/start_charge_thresh .
But in Debian 6 I can not find that file .



2011/2/24 Camaleón noela...@gmail.com

 On Thu, 24 Feb 2011 23:10:26 +0800, waterloo wrote:

  Just as title . thanks

 You should explain a bit more your problem. I can't understand what you
 want.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.24.15.31...@gmail.com




trackpoint settings of thinkpad in /etc/rc.local

2011-02-24 Thread waterloo
I use echo -n 255  /sys/devices/platform/i8042/serio1/serio2/speed in
/etc/rc.local file .
But when boot , it says: /sys/devices/platform/i8042/serio1/serio2/speed no
such file or dirctory .
When coming into gnome , I can find there has
/sys/devices/platform/i8042/serio1/serio2/speed .

How to do with it ?
I use Debian 6 amd64 thinkpad W500 laptop
thanks


setting parameters of disc /dev/sda failed .

2011-02-24 Thread waterloo
When boot , I find an error : ' setting parameters of disc : /dev/sda
failed ! ' .
How to do with it ?
I use Debian 6 amd64 thinkpad W500.

Thanks


Re: How to set battery charge thresh in Debian 6 ?

2011-02-24 Thread waterloo
I add tp_smapi in /etc/modules,  now I can find that file .
Now I am using is 0.40-9 . Do I need to compile tp_smapi module with
'make load HDAPS=1' like thinkwiki page .
I can not find about 'make load HDAPS=1' in change log of tm_smapi
directory in /usr/share/doc .

Thanks

2011/2/25 Camaleón noela...@gmail.com

 On Thu, 24 Feb 2011 23:47:03 +0800, waterloo wrote:

  2011/2/24 Camaleón
 
  On Thu, 24 Feb 2011 23:10:26 +0800, waterloo wrote:
 
   Just as title . thanks
 
  You should explain a bit more your problem. I can't understand what you
  want.

  In gentoo, I set battery thresh in
  /sys/devices/platform/smapi/BAT0/start_charge_thresh . But in Debian 6 I
  can not find that file .

 Do you mean this? It seems it requires some packages:

 http://www.thinkwiki.org/wiki/Tp_smapi

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.24.16.00...@gmail.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/AANLkTikuqr_8Ez+JsKX1L2-a=hamGN=Jn71NcCb8R=u...@mail.gmail.com



Re: setting parameters of disc /dev/sda failed .

2011-02-24 Thread waterloo
But even I cancelled  hdparm in Services , I still get that error message .
Thanks

2011/2/25 Camaleón noela...@gmail.com:
 On Fri, 25 Feb 2011 00:32:16 +0800, waterloo wrote:

 When boot , I find an error : ' setting parameters of disc : /dev/sda
 failed ! ' .
 How to do with it ?
 I use Debian 6 amd64 thinkpad W500.

 Google says you have to review your hdparm settings.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.24.16.47...@gmail.com




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktik33ubktdrqeb15njteuyryaznfvqqmp52t2...@mail.gmail.com



Re: setting parameters of disc /dev/sda failed .

2011-02-24 Thread waterloo
I can find hdparm using 'ps aux | grep hdparm' even when I cancelled
'hdparm' in Services config .
Why does hdparm still exist ? thanks

2011/2/25 Camaleón noela...@gmail.com:
 On Fri, 25 Feb 2011 01:02:29 +0800, waterloo wrote:

 2011/2/25 Camaleón:
 On Fri, 25 Feb 2011 00:32:16 +0800, waterloo wrote:

 When boot , I find an error : ' setting parameters of disc : /dev/sda
 failed ! ' .
 How to do with it ?
 I use Debian 6 amd64 thinkpad W500.

 Google says you have to review your hdparm settings.

 But even I cancelled  hdparm in Services , I still get that error
 message . Thanks

 Ensure the daemon is not running in background (you can run ps aux |
 grep hdparm).

 Also, hdparm man page says that you pass to the kernel nohdparm
 parameter to disable it, so that's another thing to try.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.24.17.24...@gmail.com




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/aanlktikzwrlxrtpch2ibomlqdj3nzqtne1rbg54g+...@mail.gmail.com



Re: setting parameters of disc /dev/sda failed .

2011-02-24 Thread waterloo
I use 'nohdparm' in kernel parameter.
When booted , I find a line : ' skipping   (warning)' .
So I am sure that error is about hdparm .
I use below in /etc/hdparm.conf :

 /dev/sda {
   apm = 254
   spindown_time = 60
   dma = on
 }


I do not revise /etc/default/hdparm .

What is wrong with settings of hdparm ?

Thanks

2011/2/25 waterloo waterloo2...@gmail.com:
 I can find hdparm using 'ps aux | grep hdparm' even when I cancelled
 'hdparm' in Services config .
 Why does hdparm still exist ? thanks

 2011/2/25 Camaleón noela...@gmail.com:
 On Fri, 25 Feb 2011 01:02:29 +0800, waterloo wrote:

 2011/2/25 Camaleón:
 On Fri, 25 Feb 2011 00:32:16 +0800, waterloo wrote:

 When boot , I find an error : ' setting parameters of disc : /dev/sda
 failed ! ' .
 How to do with it ?
 I use Debian 6 amd64 thinkpad W500.

 Google says you have to review your hdparm settings.

 But even I cancelled  hdparm in Services , I still get that error
 message . Thanks

 Ensure the daemon is not running in background (you can run ps aux |
 grep hdparm).

 Also, hdparm man page says that you pass to the kernel nohdparm
 parameter to disable it, so that's another thing to try.

 Greetings,

 --
 Camaleón


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
listmas...@lists.debian.org
 Archive: http://lists.debian.org/pan.2011.02.24.17.24...@gmail.com