Kwrite sous root : Niet ? [RÉSOLU]


#1

Je ne comprends pas car je pouvais le faire avant mais c’était peut-être sous Mdk, je ne me souviens plus.
Quand je tape sous root :
kwrite /etc/fichierMachin
De façon à modifier ce fichier, j’ai un refus.
Si je le fais sous ‘user’, ça ouvre mon fichier mais je ne peux pas travailler dessus puisque user n’a pas les droits.
Je sais que je peux les lui donner mais je ne comprends pas pourquoi root ne peut pas ouvrir ds kwrite. Il le fait ds Vi par exemple !

[quote]debian:/home/ricardod# kwrite /boot/grub/menu.lst
Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

kwrite: cannot connect to X server :0
debian:/home/ricardod#[/quote]


#2

Tapes “xhost +” sous ta session, et tu devrais pouvoir lancer nimporte quel appli X avec un autre utilisateur dont root. Par contre KDE en root, ça craint un peu, utilises plutot EMacs

© MattOTop 2004


#3

Merci à toi mais connais-tu le site où télécharger emacs car je ne l’ai pas avec apt-get install ?


#4

bien sur que si… :laughing:
apt-cache search emacs
te donnera le vrai nom du paquet .


#5

[quote=“Ricardo”]
Je sais que je peux les lui donner mais je ne comprends pas pourquoi root ne peut pas ouvrir ds kwrite. Il le fait ds Vi par exemple !

[quote]debian:/home/ricardod# kwrite /boot/grub/menu.lst
Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

kwrite: cannot connect to X server :0
debian:/home/ricardod#[/quote][/quote]
Même si a pu amuser MattOtp il y a quelques jours :stuck_out_tongue: , il existe un paquet nommé “sux” (et pas “sucks” :slightly_smiling:) qui permet de lancer une application graphique en root depuis une fenêtre console.


#6

En effet Matt il doit être là … Mais où :stuck_out_tongue:

[quote]debian:/home/ricardod# apt-cache search emacs
flim - library about internet message for Emacsen
calc - An advanced calculator and mathematical tool for Emacs.
eieio - Enhanced Implementation of Emacs Interpreted Objects
semantic - Parser Infrastructure for Emacsen
cedet-common - Collection of Emacs Development Environment Tools - common parts
ede - File manager / Makefile generator for Emacsen
speedbar - Everything browser, or Dired on steroids
kdesdk-scripts - a set of useful development scripts for KDE
auctex - An integrated environment for writing TeX/LaTeX documents
apel - a portable Emacs library
gnus - A versatile News and mailing list reader for Emacsen.
gnuserv - Allows you to attach to an already running Emacs
gnuplot-mode - Yet another Gnuplot mode for Emacs
php-elisp - Emacs support for php files
nmh - A set of electronic mail handling programs
nomarch - Unpacks .ARC and .ARK MS-DOS archives
mgp - MagicPoint- an X11 based presentation tool
mailcrypt - An Emacs interface to the GNU Privacy Guard
elib - Library of commonly-used Emacs functions
emacs-goodies-el - Miscellaneous add-ons for Emacs
debian-el - Emacs helpers specific to Debian users
dpkg-dev-el - Emacs helpers specific to Debian development
elisp-manual - Emacs Lisp Reference Manual
emacs-lisp-intro - An Introduction to Programming in Emacs Lisp
w3-url-e21 - URL library for use by w3-el-e21
w3-el-e21 - Web browser for GNU Emacs 21
w3m-el - a simple Emacs interface of w3m
bbdb - The Insidious Big Brother Database (email rolodex) for Emacs
xfonts-bitmap-mule - BITMAP-MULE fonts for X
yorick - interpreted language and scientific graphics
canna - A Japanese input system (server and dictionary).
xemacs21-basesupport - Editor and kitchen sink – compiled elisp support files
xemacs21-mulesupport - Editor and kitchen sink – Mule elisp support files
egg - Tamago Ver. 4 – EGG Input Method Architecture for Emacsen
exuberant-ctags - build tag file indexes of source code definitions
guile1.4 - The GNU extension language and Scheme interpreter
joe - user friendly full screen text editor
fetchmail - SSL enabled POP3, APOP, IMAP mail gatherer/forwarder
emacsen-common - Common facilities for all emacsen.
sawfish - A window manager for X11
ispell - International Ispell (an interactive spelling corrector)
language-env - simple configuration tool for native language environment
kate-plugins - plugins for Kate, the KDE Advanced Text Editor
xfonts-thai-etl - Thai etl fonts for X
librep9 - an embeddable Emacs-Lisp-like runtime library
acl2-emacs - A Computational Logic for Applicative Common Lisp: emacs interface
ada-mode - Ada mode for GNU Emacs and XEmacs
af - An Emacs-like mail reader and composer
aleph-emacs - The Aleph programming language - emacs mode
anthy - A Japanese input method (backend, dictionary and utility)
anthy-el - A Japanese input method (elisp fronted)
aplus-fsf-el - XEmacs lisp for A+ development
artist - Emacs Lisp drawing package
asn1-mode - Emacs mode for editing ASN.1 specification files
bhl - Emacs mode for converting brut text to HTML and LaTeX
bigloo-ude - Bigloo Unified Development Environment for Emacs
biomode - [Biology] An Emacs mode to edit genetic data
bitmap-mule - bitmap handler for GNU Emacs
c-sig - A signature tool for GNU Emacs
cedet-contrib - Collection of Emacs Development Environment Tools - contributed
chktex - Finds typographic errors in LaTeX
cmail - A mail user agent for GNU Emacs
cmail-icons - Icons for cmail on XEmacs
cmucl-source - The CMUCL lisp sources
cogre - Connected Graph Editor
colordiff - tool to colorize ‘diff’ output
coq - Proof assistant for higher-order logic (toplevel and compiler)
crypt++el - Emacs-Lisp Code for handling compressed and encrypted files
css-mode - A Cascading Style Sheets (CSS) editing mode for Emacs
cxref-emacs - Generates latex and HTML documentation for C programs
detachtty - Attach/detach from interactive processes across the network
develock-el - additional font-lock keywords for the developers on Emacs
devhelp - A GNOME developers help program
devhelp-book-autotools - Autotools book for the DevHelp system
devhelp-book-binutils - Binutils book for the DevHelp system
devhelp-book-cvs - Cvs book for the DevHelp system
devhelp-book-emacs - Emacs book for the DevHelp system
devhelp-book-gdb - GNU Debugger (gdb) book for the DevHelp system
devhelp-book-glibc - GNU C Library (glibc) book for the DevHelp system
devhelp-book-gtk2 - Gtk+ 2 books for the DevHelp system
devhelp-book-make - A ‘make’ book for the DevHelp system
devhelp-book-sdl - Simple DirectMedia Layer book for the DevHelp system
devhelp-books - Books for the DevHelp system
devhelp-common - common files for devhelp and its library
devscripts-el - Emacs wrappers for the commands in devscripts
dictem - Dict client for emacs
dictionaries-common - Common utilities for spelling dictionary tools
dictionary-el - dictionary client for Emacs
docbook2x - Converts DocBook/XML documents into man pages and TeXinfo
doxymacs - E-lisp package for making doxygen usage easier under Emacs
drscheme - Scheme Programming Environment
e3 - A very small editor
ecasound-el - emacs binding files for ecasound sound editing environment
ecb - Code browser for several languages for Emacs.
edb - A database program for GNU Emacs
edict-el - An Emacs interface to Edict
eflite - Festival-Lite based emacspeak speech server
eldav - an interface to the WebDAV servers for Emacs.
elisp-manual-ja - Japanese version of Emacs Lisp Reference Manual
elpoint - Yet another presentation tool on Emacsen
elscreen - Screen for Emacsen
elserv - HTTP server that runs on Emacsen
emacs-chess - a client and library for playing Chess from Emacs
emacs-chess-pieces - XPM images of chess pieces for emacs-chess
emacs-goodies-extra-el - Transitional package that can be removed
emacs-intl-fonts - Fonts to allow multi-lingual PostScript printing from Emacs
emacs-lisp-intro-ja - Japanese version of "Programming in Emacs Lisp: An Introduction"
emacs-manual-ja - Japanese version of the GNU Emacs Manual
emacs-wiki - Maintain a local Wiki using Emacs-friendly markup
emacs21 - The GNU Emacs editor
emacs21-bin-common - The GNU Emacs editor’s shared, architecture dependent files
emacs21-common - The GNU Emacs editor’s shared, architecture independent infrastructure
emacs21-el - GNU Emacs LISP (.el) files
emacs21-nox - The GNU Emacs editor (without X support)
emacspeak - speech output interface to Emacs
emacspeak-ss - Emacspeak speech server for several synthesizers
emms - The Emacs MultiMedia System
erc - an Emacs IRC client
ess - Emacs statistics mode, supporting R,S and others
etalk - talk client for the Emacs editor
etktab - ASCII guitar tab editor
eudc - Emacs Unified Directory Client
gettext-el - Emacs po-mode for editing .po files
global - Source code search and browse.
gnat-gps - The GNAT Programming System - advanced IDE for C and Ada
gnats - The GNU problem report management system (central database)
gnats-user - The GNU problem report management system (client tools)
gnus-bonus-el - Miscellaneous add-ons for Gnus
gri-el - Emacs major-mode for gri, a language for scientific graphics.
gtalk - plug-in replacement for standard talk
haskell-mode - A major mode for editing Haskell in Emacs
html-helper-mode - A popular HTML editing mode for emacs
id-utils - Fast, high-capacity, identifier database tool.
idl-font-lock-el - OMG IDL font-locking for Emacs
idn - Command line and emacs interface to GNU libidn
ifile-gnus-el - a news and mail classifier for the Gnus newsreader
iiimecf - Internet/Intranet Input Method Emacs Client Framework
ilisp - Emacs interface to LISP implementations
ilisp-doc - Documentation for ILISP package
info2man - Convert GNU info files to POD or man pages
inform-mode - Emacs mode for editing Inform files
initz - Handles the switching of various initialization files of emacsen
jove - Jonathan’s Own Version of Emacs - a compact, powerful editor
kxterm - Cernlib’s KUIP terminal emulator
ledit - line editor for interactive programs
lg-issue11 - Issue 11 of the Linux Gazette.
lg-issue16 - Issue 16 of the Linux Gazette.
lg-issue22 - Issue 22 of the Linux Gazette.
lg-issue25 - Issue 25 of the Linux Gazette.
lg-issue26 - Issue 26 of the Linux Gazette.
lg-issue27 - Issue 27 of the Linux Gazette.
lg-issue29 - Issue 29 of the Linux Gazette.
lg-issue31 - Issue 31 of the Linux Gazette.
lg-issue35 - Issue 35 of the Linux Gazette.
lg-issue36 - Issue 36 of the Linux Gazette.
lg-issue39 - Issue 39 of the Linux Gazette.
lg-issue47 - Issue 47 of the Linux Gazette.
libanthy-dev - Anthy static library, headers and documets for developers
libanthy0 - Anthy runtime library
libgnu-regexp-java - Regular Expressions for Java
libpcre-ocaml - OCaml bindings for PCRE (Perl Compatible Regular Expression)
libpcre-ocaml-dev - OCaml bindings for PCRE (Perl Compatible Regular Expression)
libroxen-outline - Outline mode module for the Roxen Challenger web server
libzephyr-dev - The original “Instant Message” system development libraries
liece - IRC (Internet Relay Chat) client for Emacs
liece-dcc - DCC program for liece
lookup-el - Search interface to electronic dictionaries by Emacs
lpc-mode - Emacs mode for the LPC language
lsdb - The Lovely Sister Database (email rolodex) for Emacs
lyskom-elisp-client - Emacs client for LysKOM
malaga-bin - A system for automatic language analysis
manued-el - Minor mode for manued proofreading method
maxima-emacs - A fairly complete computer algebra system-- emacs interface
mell - emacs lisp library written by Hiroyuki Komatsu
mew - Messaging in the Emacs World
mew-beta - Messaging in the Emacs World (developing version)
mgm - A highly configurable, very gaudy system load meter
mh-e - Emacs interface to the MH mail system
mhc - Message Harmonized Calendaring system
midge - A text to MIDI program
migemo - Japanese incremental search with Romaji on Emacsen
migemo-perl - Japanese incremental search with Romaji on Emacsen
mime-codecs - Fast Quoted-Printable and BASE64 MIME transport codecs
mit-scheme - The MIT/GNU Scheme development environment
mmm-mode - Multiple Major Mode for Emacs
mpg123-el - a front-end program to mpg123 audio player on Emacsen
mpqc-support - Support programs and tools for MPQC
mu-cite - message utilities for Emacsen
mule-ucs - Mule universal encoding system
nasm-mode - NASM mode for XEmacs
nethack-el - Emacs major-mode for playing NetHack
nethack-lisp - Text-based overhead view D&D-style adventure game
ng-cjk - Nihongo MicroGnuEmacs with CJK support
ng-cjk-canna - Nihongo MicroGnuEmacs with CJK and Canna support
ng-common - Common files used by ng-* packages
ng-latin - Nihongo MicroGnuEmacs with Latin support
nxml-mode - Emacs mode for editing XML documents using RELAX NG schemas
octave2.0-emacsen - Emacs support for the GNU Octave language (2.0 branch)
octave2.1-emacsen - Emacs support for the GNU Octave language (2.1 branch)
oleo - GNU spreadsheet program
oneliner-el - Extensions of Emacs standard shell-mode
oo-browser - Object Oriented Class Browser (for emacsen)
otags - tool for building TAGS files from O’Caml sources
passepartout - XML-based Desktop Publishing Application
planner-el - The Emacs Planner
plywood - Playwriting typing and typesetting help
plywood-elisp - Playwriting typing and typesetting help
post-el - emacs major mode for editing mail
prcs - The Project Revision Control System
prcs-el - ELisp support for the Project Revision Control System
preview-latex - render LaTeX environments within emacs
prime-el - PRIME client for emacsen
prolog-el - Emacs major mode for editing Prolog code
prom-mew - procmail reader for Mew
proofgeneral - A generic interface for proof assistants
proofgeneral-coq - ProofGeneral support for coq
proofgeneral-doc - Documentation for ProofGeneral in html format
proofgeneral-misc - ProofGeneral support for different theorem provers
psgml - An Emacs major mode for editing SGML documents.
pylint-common - emacs mode for pylint
pymacs - interface between Emacs Lisp and Python [dummy package]
pymacs-elisp - emacsen lisp modules for pymacs
pyrex-mode - Emacs-lisp pyrex-mode for Pyrex
python-mode - Emacs-lisp python-mode for the Python language
python2.1-pymacs - interface between Emacs Lisp and Python [built for python2.1]
python2.2-pymacs - interface between Emacs Lisp and Python [built for python2.2]
python2.3-pymacs - interface between Emacs Lisp and Python [built for python2.3]
qemacs - Small emacs clone editor with HTML and DocBook editing support
quack-el - Enhanced Emacs support for Scheme programming
ratpoison - Simple window manager with no fat library dependencies.
rdtool-elisp - Emacs-lisp rd-mode for writing RD document
records-common - Save and index notes in Emacs environment
records-gnuemacs - Save and index notes in Emacs environment
records-xemacs - Save and index notes in Emacs environment
remembrance-agent - Emacs mode to help find relevant texts
ri-cs-el - Emacs interface for ri1.6
ri-db-el - Emacs interface for ri1.6
riece - an IRC client for Emacs
riece-async - connect to IRC server via asynchronous proxy for riece
riece-ndcc - DCC add-on for riece implemented by emacs lisp
riece-rdcc - DCC add-on for riece implemented by ruby
ruby-elisp - Emacs-lisp ruby-mode for Ruby
ruby1.6-elisp - Emacs-lisp ruby-mode for Ruby
ruby1.8-elisp - ruby-mode for Emacsen
search-ccsb - BibTeX search tool
search-citeseer - BibTeX search tool
select-xface - utility for selecting X-Face on Emacsen
semi - library to provide MIME feature for Emacsen
skk - Simple Kana to Kanji conversion program
skkserv - SKK Dictionary server
skktools - SKK dictionary maintenance tools
sml-mode - a major Emacs mode for editing Standard ML
speechd-el - Emacs speech client using Speech Dispatcher
speechd-el-doc-cs - speechd-el documentation in Czech
sylpheed - Light weight e-mail client with GTK+
sylpheed-gtk2 - Light weight e-mail client with GTK2
tads2-mode - Emacs mode for editing TADS code
tdiary-mode - tDiary editing mode for Emacsen
tdtd - Emacs major mode for editing SGML and XML DTDs
texmacs - WYSIWYG emacs-ish mathematical text editor, using tex fonts
texmacs-common - WYSIWYG emacs-ish mathematical text editor, using tex fonts
timidity-el - An Emacs front end to Timidity++
tkcon - Enhanced interactive console for developing in Tcl
tla-tools - Utilities to make life with GNU Arch (tla) easier
toolbar-fancy - Fancy toolbar for XEmacs21
tramp - remote file access in Emacs
trr19 - A type training software on GNU Emacs
ttcn-el - GNU Emacs modes for TTCN-3/protocol testing languages
ttyrec - A tty recorder
tuareg-mode - An emacs-mode for ocaml programs
txt2regex - A Regular Expression “wizard”, all written with bash2 builtins
tzc - Trivial Zephyr Client
user-es - Settings for Spanish speaking users
user-ja - simple configuration tool for Japanese environment
vile - VI Like Emacs - vi work-alike
vile-common - VI Like Emacs - support files for vile/xvile
vile-filters - VI Like Emacs - highlighting filters for vile/xvile
vm - A mail user agent for Emacs.
w3-doc-e21 - Documentation for w3-el web browser
w3-lisp-e21 - Elisp source for w3-el web browser
w3-url-lisp - URL library for use by w3-el-e21 (Lisp source)
wget-el - an interface for wget on Emacsen
whizzytex - a WYSIWYG emacs environment for LaTeX
windows-el - Window manager for GNU Emacs
wl - Yet Another Message Interface on Emacsen
wl-beta - Yet Another Message Interface on Emacsen (developing version)
wysihtml-el - Almost real-time previewing system for HTML and DocBook
x-face-el - X-Face utility for Emacsen
x-symbol - WYSIWYG TeX mode for XEmacs
xae - XML Authoring Environment for Emacs
xemacs21 - Editor and kitchen sink
xemacs21-basesupport-el - Editor and kitchen sink – source elisp support files
xemacs21-bin - Editor and kitchen sink – support binaries
xemacs21-gnome-mule - Editor and kitchen sink – Mule binary
xemacs21-gnome-mule-canna-wnn - Editor and kitchen sink – Mule binary compiled with canna and wnn
xemacs21-gnome-nomule - Editor and kitchen sink – Non-mule binary
xemacs21-mule - Editor and kitchen sink – Mule binary
xemacs21-mule-canna-wnn - Editor and kitchen sink – Mule binary compiled with canna and wnn
xemacs21-mulesupport-el - Editor and kitchen sink – source elisp support files
xemacs21-nomule - Editor and kitchen sink – Non-mule binary
xemacs21-support - Editor and kitchen sink – architecture independent support files
xemacs21-supportel - Editor and kitchen sink – non-required library files
xfonts-kapl - APL fonts for A+ development
xfonts-terminus-oblique - Oblique version of the Terminus font
xjove - X11-Frontend for jove - a compact, powerful editor
xslide - XSL editing mode for Emacs
xstow - An extended replacement of GNU Stow written in C++
xvile - VI Like Emacs - vi work-alike (X11)
yasr - General-purpose console screen reader
yatex - Yet Another TeX mode for Emacs
yc-el - Yet another Canna client for Emacsen.
zenirc - Major mode for wasting time
zile - a very small emacs-like editor
zope-externaleditor - Zope External Editor
zopeedit - Helper Application for Zope External Editor
debian:/home/ricardod#[/quote]


#7

Le paquet s’appelle emacs21. Mais si tu recherche un éditeur de texte simple, pratique, intuitif et assez joli, je te conseille SciTE :

apt-get install scite


#8

[quote=“Korben Dallas”][quote=“Ricardo”]
Je sais que je peux les lui donner mais je ne comprends pas pourquoi root ne peut pas ouvrir ds kwrite. Il le fait ds Vi par exemple !

[quote]debian:/home/ricardod# kwrite /boot/grub/menu.lst
Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

kwrite: cannot connect to X server :0
debian:/home/ricardod#[/quote][/quote]
Même si a pu amuser MattOtp il y a quelques jours :stuck_out_tongue: , il existe un paquet nommé “sux” (et pas “sucks” :slightly_smiling:) qui permet de lancer une application graphique en root depuis une fenêtre console.[/quote]
Et qu’est-ce qui se passe si je tape emacs sucks ? :slightly_smiling:


#9

pan dans ta face :slightly_smiling:
emacs c zen :laughing:
mais comme petit plus vivable que vi, il y a aussi nano (de fait, on deconseille emacs sur des systemes embarqués)…


#10

PS: je prefere l’emacs21-nox, l’interface souris sous emacs, ca me gave plus qu’autrechose…


#11

Bon, merci de ttes vos réponses et j’ai fait mon choix ou presque.
J’ai réussi à entrer ds une fenêtre graphique avec emacs mais avec le root terminal de gnome alors qu’avec celui de KDE, ça ne fonctionne qu’en mode console.
Je sais, je ne suis pas encore un vrai linuxien, et je ne le deviendrai peut-être jamais pour ça, je préfère le mode graphique et la souris ne me dérange pas du tout. :wink:
Par exemple, je serais complètement comblé si je pouvais avoir emacs en french :question:
C’est peut-être trop demander, non ?
Bisous à ts


#12

si tu aimes bien kwrite, il y a kate aussi.


#13

J’ai vu et en effet, il est assez beau mais pas en french non plus. Bien sûr, ça ne pose pas de problème mais par principe, j’aime bien que ma langue soit reconnue ds le monde :wink:
Je sais, je suis vieux jeu mais je suis aussi vieux, tout court :cry:

Oui, j’ai déjà essayé.