Welcome, Guest. Please login or register.
April 19, 2014, 12:43:55 PM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  Assistance
| |-+  Pardus for beginners
| | |-+  (solved) Using kate or a simple text editor
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: (solved) Using kate or a simple text editor  (Read 2727 times)
roger64
Newbie
*
Posts: 7


View Profile
« on: July 09, 2008, 06:44:27 AM »

Hi

I am with Pardus 2008.

I would like to use kate but it seems I miss something :

Quote
roger@roger-pardus ~ $ kate /boot/grub/grub.conf
roger@roger-pardus ~ $ sudo kate /boot/grub/grub.conf
Mot de passe :
kate: cannot connect to X server
roger@roger-pardus ~ $

I am between the horns of a bad choice :
1. I can't save changes though I have administrator rights (for what ?)
2. I can't open file

Other text editors like nano or cream are too complicated for me.


« Last Edit: July 09, 2008, 11:19:40 AM by roger64 » Logged
Andreas
Guest
« Reply #1 on: July 09, 2008, 07:04:35 AM »


1. I can't save changes though I have administrator rights (for what ?)
2. I can't open file


Hello,

you have not Super-User-rights, how I can see in your output.

Open console and type su > passport and than you have Super-User-rights.

Quote
Andreas@PC-Andreas ~ $ su
Passwort:
PC-Andreas Andreas #

And have a look here

Greetings
Andreas
« Last Edit: July 09, 2008, 07:42:59 AM by Andreas » Logged
Willem
M.D.
Administrator
Pardus Guru
*****
Gender: Male
Posts: 1020



View Profile WWW
« Reply #2 on: July 09, 2008, 07:35:50 AM »

You can always also use kwrite, or using the commandline, you can use nano
Logged

For freedom...
roger64
Newbie
*
Posts: 7


View Profile
« Reply #3 on: July 09, 2008, 08:17:13 AM »

thanks.

I must be dumb but it still does not work.

Quote
roger@roger-pardus ~ $ su
Mot de passe :
roger-pardus roger # kate /mnt/sda4/boot/grub/menu.lst
bash: kate: command not found
roger-pardus roger # sudo kate /mnt/sda4/boot/grub/menu.lst
sudo: kate: command not found
roger-pardus roger #

This time I am a superuser....
« Last Edit: July 09, 2008, 10:01:34 AM by Andreas » Logged
dnelub
Newbie
*
Gender: Male
Posts: 13


View Profile
« Reply #4 on: July 09, 2008, 08:28:32 AM »

Why dont you use following?
Programs>System>More Applications>File Manager
and then you can open anyfile without using console Smiley
Logged
roger64
Newbie
*
Posts: 7


View Profile
« Reply #5 on: July 09, 2008, 08:50:24 AM »

true, it does not reply my question but it's a nice workaround.

I was used with Ubuntu to openfiles with gedit or cream... Smiley

If i want to modify my grub.conf (to add some entries), I need to have administrator rights though.
So, I should launch the file manager with administrator rights ? Is this advised ? And how to do it ?

@Andreas

I gave to user roger administrative rights and I checked it again.

« Last Edit: July 09, 2008, 08:58:38 AM by roger64 » Logged
dnelub
Newbie
*
Gender: Male
Posts: 13


View Profile
« Reply #6 on: July 09, 2008, 09:01:40 AM »

well  if you really want to use consol, just change the command, make it simple Wink  kate /boot/grub/menu.lst
Logged
dnelub
Newbie
*
Gender: Male
Posts: 13


View Profile
« Reply #7 on: July 09, 2008, 09:05:13 AM »

sorry for the last message, now I got your point, there is something wrong, you are right
Logged
roger64
Newbie
*
Posts: 7


View Profile
« Reply #8 on: July 09, 2008, 09:08:19 AM »

Are you making fun of me ?

I tried it many times. It does not work. Look the above posts.  Shocked

Le document n'a pas pu être enregistré, car il n'a pas été possible d'écrire dans file:///boot/grub/grub.conf.
Vérifiez que vous avez des droits d'écriture dans ce fichier ou qu'il y a suffisamment d'espace disque disponible.
Logged
roger64
Newbie
*
Posts: 7


View Profile
« Reply #9 on: July 09, 2008, 09:10:10 AM »

don't mind.

How to launch the File Manager with administrative rights ? PCManFM is not available
« Last Edit: July 09, 2008, 09:12:30 AM by roger64 » Logged
atolboo
Guest
« Reply #10 on: July 09, 2008, 09:36:59 AM »

Try this: (do not forget the -)
Quote
atolboo@atolboo-pardus ~ $ su -
Wachtwoord:
atolboo-pardus ~ # kate /boot/grub/menu.lst
kbuildsycoca running...
Reusing existing ksycoca
kbuildsycoca: WARNING: Parse error in /root/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu, line 1, col 1: unexpected end of file
kio (KService*): WARNING: The desktop entry file .hidden/dirfilterplugin.desktop has Type=Service but is located under "apps" instead of "services"
kio (KService*): WARNING: Invalid Service : .hidden/dirfilterplugin.desktop
QFile::open: No file name specified
atolboo-pardus ~ #
And kate starts...........
Logged
roger64
Newbie
*
Posts: 7


View Profile
« Reply #11 on: July 09, 2008, 11:19:05 AM »

 Smiley

solved.

Indeed I was missing this damned little bit of  - 

Code:
roger@roger-pardus ~ $ su -
Mot de passe :
roger-pardus ~ # kate /boot/grub/grub.conf
/usr/bin/iceauth:  creating new authority file /root/.ICEauthority
kbuildsycoca running...
kio (KService*): WARNING: The desktop entry file .hidden/dirfilterplugin.desktop has Type=Service but is located under "apps" instead of "services"
kio (KService*): WARNING: Invalid Service : .hidden/dirfilterplugin.desktop
Invalid entry (missing '=') at /tmp/kde-root/kconf_updateItPEha.tmp:1
roger-pardus ~ #

and indeed kate starts.

Why so many verbose comments....?  Smiley
Logged
atolboo
Guest
« Reply #12 on: July 09, 2008, 11:35:33 AM »

Why so many verbose comments....?  Smiley

I don't know, and I am too lazy to investigate ..........
The next time I started kate I didn't get these comments. Cheesy
Logged
Lisa
Pardus Guru
****
Posts: 841



View Profile
« Reply #13 on: September 18, 2008, 17:35:15 PM »

Hi,

Maybe I am wrong, but I use kdesu kate (file name here) to open up files as administrator in kate.

http://www.linfo.org/kdesu.html

Lisa Marie
Logged
atolboo
Guest
« Reply #14 on: September 18, 2008, 20:37:40 PM »

Maybe I am wrong, but I use kdesu kate (file name here) to open up files as administrator in kate.

You are not wrong, this is another solution .........................   Wink
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!