PDA

View Full Version : [ubuntu] Conky Startup Script



BlazeXI
June 7th, 2009, 02:35 PM
Hello...

i have manage to complete my conky configuration to my complete satisfaction (looks & stuff ) and also created a script with a 20 sec delay .... when i run the script from terminal (as user) "sh script.sh" i get not error but just displayed info saying " not all process could be show : not root "....but when i run it as root sudo sh script.sh " no problems..

ok... i would like to run this script at startup (boot).... and i think i can do this by system/preferences/startup applications ..... add new application .... but how do i make it run as root ???

please help ;(

j0hn00
June 7th, 2009, 04:14 PM
make sure it's accessible and executable by all

sudo chmod a+x script.sh

then add the following to startup applications

sh /location/script.sh

make sure you replace location with the path of the file

BlazeXI
June 8th, 2009, 05:06 AM
Thankz JohnOo ...

much appreciated ;)

Hund
June 8th, 2009, 10:39 PM
How does that script look like if it requires root access?

Make a script like this instead:


#!/bin/bash
sleep 10
conky

Then you will be able to run it as a normal user.