LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-03-2009, 09:17 AM   #1
maiden2
Member
 
Registered: Dec 2007
Location: Italy
Distribution: Ubuntu 8.10
Posts: 106

Rep: Reputation: 15
Conky do not starts in background mode


Hi,

I' cant understand why I'm not able to let conky start in background mode:

at startup my Conky starts all times in foreground (it's windows show-up over other windows).

To put the Conky window in background, as I'd like it to stay, I have to do the following steps:

1) kill the Conky active process
2) re-launch Conky with the Terminal, simply typing Conky at the command line.
After those steps, Conky remain in background as needed.


This is my .conkyrc file:
_____________________________________

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 150

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none

TEXT
SISTEMA ${hr 2}
${voffset 2}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=16}q${font} Uptime: ${alignr}${uptime}

DATA ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %Y}

HD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}

NETWORK ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Locale: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pubblico: ${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Locale: ${alignr}${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pubblico: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Locale: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pubblico: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Rete Non Disponibile
${endif}


Many thanks
Alex
 
Old 03-03-2009, 10:02 AM   #2
tokico
Member
 
Registered: Jan 2009
Posts: 49

Rep: Reputation: 18
You have to add to your conkyrc file the following line:

Code:
 background yes
that will fork Conky to the background.
 
Old 03-04-2009, 07:39 AM   #3
maiden2
Member
 
Registered: Dec 2007
Location: Italy
Distribution: Ubuntu 8.10
Posts: 106

Original Poster
Rep: Reputation: 15
Nothing to do :-( , I just added

Code:
 background yes
into the ".conkyrc" but i didn't solve my problem: conky continue to appear over any other desktop window in "foreground" (es: if I launch Firefox, conky appear over the firefox window)

The very strange think is: Conky launched by a simple "conky" command, as a startup program in "Sessions manager" appear in foreground, then, if I kill "Conky" just after the boot, and I re-launch it exactly in the same way (just typing "conky" in terminal) Conky starts in background as I need.

every suggestion is welcome!

Bye
 
Old 03-04-2009, 09:34 AM   #4
tokico
Member
 
Registered: Jan 2009
Posts: 49

Rep: Reputation: 18
I think your problem is similar (if not equal) to this one:

http://ubuntuforums.org/showthread.php?t=1049693

Try the solutions presented on the replies. At least for the guy/girl that posted that it worked, but I don't know if it's the same problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
opensuse11.0: konsole only starts in root mode Sjonnie48 SUSE / openSUSE 3 12-07-2008 12:50 AM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
2.6.6 starts with unusable graphical mode iZvi Slackware 2 06-02-2004 11:24 AM
mandrake 9 starts in text mode shwabob Linux - Newbie 5 06-10-2003 11:08 AM
linux starts in graphic mode CleonII Linux - General 2 05-29-2003 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration