LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2007, 07:29 AM   #1
CouchMaster
Member
 
Registered: Mar 2005
Location: West Texas
Distribution: Sidux - Mint - PC Linux - Ubuntu 7.04 - Mepis 7 Beta5 - DreamLinux 2.2
Posts: 234

Rep: Reputation: 33
editor - Kubuntu 7.10


Which editor is used via a terminal in Kubuntu?
I've tried kate - she doesn't work.
I've dl'ed kedit and it doesn't work (not setup for x blahblahblah)
Now I've done the editing I needed in Kubuntu with Ubuntu but it's a pain in the brass to use another distro to edit a second distro!
So, what do you guys use?
 
Old 10-26-2007, 07:59 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I think nano and vi and both installed by default in [k]ubuntu. Nano is by far the easier of the two to use. It shows a list of commands at the bottom of the tty:
Code:
^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Page ^K Cut Text  ^C Cur Pos
^X Exit      ^J Justify   ^W Where Is  ^V Next Page ^U UnCut Text^T To Spell
The ^ means "control key", so you can press control-g to get help and so on. If you have modified a file, you will be prompted if you want to save it when you press control-x.
 
Old 10-26-2007, 08:05 AM   #3
ssarasin
Member
 
Registered: Jan 2007
Location: South Bend, Indiana
Distribution: Kubuntu 8.04 64bit, 32bit & PPC
Posts: 30

Rep: Reputation: 15
I use nano. (It is quite similar to pico, which is what I've used in the past.) I'm not very fluent with vi although I can muddle through it.

I would recommend nano, which like matthewg42 stated, is the easier of the two to use.
 
Old 10-26-2007, 08:15 AM   #4
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
Kate really should work... what's the error?
 
Old 10-26-2007, 12:06 PM   #5
CouchMaster
Member
 
Registered: Mar 2005
Location: West Texas
Distribution: Sidux - Mint - PC Linux - Ubuntu 7.04 - Mepis 7 Beta5 - DreamLinux 2.2
Posts: 234

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by oskar View Post
Kate really should work... what's the error?
Hey Oskar, here you go - pretty much the same with kedit
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kate: cannot connect to X server :0.0
 
Old 10-26-2007, 12:21 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Are you trying to run kate from a shell which is logged in by a different user from the one which is logged into X?

Last edited by matthewg42; 10-26-2007 at 12:43 PM. Reason: typo: tun -> run
 
Old 10-26-2007, 12:34 PM   #7
CouchMaster
Member
 
Registered: Mar 2005
Location: West Texas
Distribution: Sidux - Mint - PC Linux - Ubuntu 7.04 - Mepis 7 Beta5 - DreamLinux 2.2
Posts: 234

Original Poster
Rep: Reputation: 33
Nope - I'm the only user - just installed this morning. I run as root in a term to edit my menu.lst but no go. I have no problems with Ubuntu and Xubuntu, and used Ubuntu to modify the list this morning. Nano works but I don't like it.
I think I'm missing that lib it refurs to. Would you know what it is?
 
Old 10-26-2007, 12:54 PM   #8
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Quote:
Originally Posted by CouchMaster View Post
Nope - I'm the only user - just installed this morning. I run as root in a term to edit my menu.lst but no go. I have no problems with Ubuntu and Xubuntu, and used Ubuntu to modify the list this morning. Nano works but I don't like it.
I think I'm missing that lib it refurs to. Would you know what it is?
What user do you log into X using? root? You should not.

Here is the workflow you should use (using KDE):
  • Log into X using your regular user
  • run kate by pressing alt-F2 and entering the command:
    Code:
    kdesu -c kate
This will run kate as root (after prompting you for your admin password), and so you can edit any file. You can create

You can right-click on the K menu and edit the menus, adding an item with command "kdesu -c kate" and call it "root kate" or something, or just try to remember the command and use the alt-f2 method.

You should not use this "root kate" to edit your regular files, since they will then have ownership which will prevent your regular user from modifying them. Only use root when it is necessary, such as this case when editing system-wide config files.
 
Old 10-26-2007, 05:23 PM   #9
CouchMaster
Member
 
Registered: Mar 2005
Location: West Texas
Distribution: Sidux - Mint - PC Linux - Ubuntu 7.04 - Mepis 7 Beta5 - DreamLinux 2.2
Posts: 234

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by matthewg42 View Post
What user do you log into X using? root? You should not.

Here is the workflow you should use (using KDE):
  • Log into X using your regular user
  • run kate by pressing alt-F2 and entering the command:
    Code:
    kdesu -c kate
This will run kate as root (after prompting you for your admin password), and so you can edit any file. You can create

You can right-click on the K menu and edit the menus, adding an item with command "kdesu -c kate" and call it "root kate" or something, or just try to remember the command and use the alt-f2 method.

You should not use this "root kate" to edit your regular files, since they will then have ownership which will prevent your regular user from modifying them. Only use root when it is necessary, such as this case when editing system-wide config files.
This works!
thanks a million matthewg42...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing kubuntu on ubuntu with kubuntu CD coolblue Ubuntu 6 06-30-2008 10:53 AM
Kubuntu Desktop (kubuntu-artwork-usplash) nixFreak Linux - Distributions 1 03-04-2007 07:09 PM
C++ editor nostromo Linux - Software 1 11-27-2006 11:41 AM
k-mail from Kubuntu 606 to Kubuntu "edgy" impeteperry Ubuntu 2 11-08-2006 03:27 AM
Installing kubuntu on ubuntu with kubuntu CD coolblue Linux - Newbie 1 07-12-2005 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 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