Ok so I need to edit a .conf file. I find it in Konqueror, open it, make adjustments, and am THEN told I cannot save it. :X
So I open a console and try eighteen variants of:
sudo kate /usr/local/etc/conky/conky.conf
I get “cannot connect to x server”
Why is this?
I eventually manage to get the job done, and fire up conky (or whatever program)
How do I keep the program running, but get back to a prompt at my console?
If I ctrl-z it freezes whatever I had started?
Do I HAVE to close the console session and open another?
> Ok so I need to edit a .conf file. I find it in Konqueror, open it, make
> adjustments, and am THEN told I cannot save it. :X
ok, when you open Konqueror as yourself and try to edit a file which
you do not have permission to read and write (which includes all
files outside YOUR home) then i will not write your edit to the file…
> So I open a console and try eighteen variants of:
> sudo kate /usr/local/etc/conky/conky.conf
> I get “cannot connect to x server”
> Why is this?
good plan, and it USED to work…now (and i don’t remember why…you
google it or use the forum search…there was much talk on the change
when it happened–it is something like it can’t attach sudo to the IN
USES Xwindows server) instead of trying to launch any GUI app as root
from a command line (or Alt+F2 run command) instead of
sudo kate /usr/local/etc/conky/conky.conf
kdesu kate /usr/local/etc/conky/conky.conf
gnomesu kate /usr/local/etc/conky/conky.conf
depending on whether you run KDE or Gnome…if you have the basics of
both installed, you may use either…
> I eventually manage to get the job done, and fire up conky (or whatever
> How do I keep the program running, but get back to a prompt at my
yep, i used to know that…but have forgotten…maybe
will help you…
> If I ctrl-z it freezes whatever I had started?
> Do I HAVE to close the console session and open another?
Thankyou Malcom, I am sure that will be useful, but:
I was tinkering with conky for the sole purpose of gaining experience with the console, AND:
I only used conky here as an example to illustrate what I meant by the question. How do I start a program in a console, and, when it has started, return to work in the console WITHOUT
freezing the app (ctrl-z)
closing the console and opening another?
TY I*** knew*** there was something like this, I have been bashing away at the ampersand key AFTER I had launched the proggy… and getting nowhere,
also worn out ESC key and Ctrl+ other and typing EXIT and STOP and etc etc etc !
I wonder though if there is not a key combo which allows “Backgrounding” or, from dinosaur days, when computers ran on coal “TSR” after the fact, if for instance you wanted to check a program did what you wanted, and once you knew it did you could issue the key strokes and continue in the same console session?
> There are ‘bg’ and ‘fg’ commands… I don’t believe they help directly
> in this instance, but are certainly an indication that you can
> manipulate such things.
kate # run e.g. kate from a prompt
^Z # put to sleep, i.e. the process doesn’t do anything.
+ Stopped kate
bg 1 # Wake-up in the background
+ kate &
Btw: if you want to keep using the same console for other apps,
you can use ‘screen’. Before you start working, execute ‘screen’
3 times if you want three consoles to switch between.
Then with CTRL-A-n (where n = 0,1,2) you can select the screen
session to work in.
CTRL-A-? shows you help, CTRL-A-" shows a menu with screen sessions
to switch between.
I shall look again at your post, when carnival is over, and I can think again.
If you do not know about it, have a google on “Notting Hill Carnival”
Look at the pictures, and multipy the sound volume by 200%
My poor old brane gives up under these conditions.
What the beep are you doing behind a PC with that going on outside?
> I shall look again at your post, when carnival is over, and I can think
> If you do not know about it, have a google on “Notting Hill Carnival”
> Look at the pictures, and multipy the sound volume by 200%
Only 200%? That’s a mere 6dB, hardly even noticeable.
Now with 20 dB, or 100 times more sound, things get “lively”…
> My poor old brane gives up under these conditions.
Oh go on then; free your mind and enjoy the party!
Today was “Children’s Day”
Tomorrow, Carnival REALLY gets going.
I can post pics if anyone cares… Unfortunately only an old phone camera, but if you have never been to Notting Hill Carnival then ffs put it in your diary for soon.
I live right in the middle of it so it is for me a bit PITA, but… & but… It IS fantastic!
ON SuSE you prob have to just use “su” instead of “sudo”. Not sure what the sudo settings are on SuSE. But i do know su will get you into root access. Also if kate still gives you hell. Use PICO, its a text based editor that will get around all that other headache.