Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > Command Line/Console Text Editor & File Manager?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 24th September 16:39
jeff gaines
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


During my familiarisation with Ubuntu 6.10 (AMD 64) I have managed to
break my xorg.xonf file (and xorg.conf~). I can boot Ubuntu but X won't
start.

Normally I would use mc (Midnight Commander) because I can navigate around
and use its inbuilt editor. However, it's not installed and before I broke
X I couldn't find it in a search in the package manager.

So, is there any way I can get mc using apt-get or similar from the
command line?
Is there a console text editor, if so what is it called? (please, please
don't tell me it's vi)
Is there a console configuration app (like drakconf or similar)?

I know I should have got the answers before I broke it, but it's a good
learning process :-)

--
Jeff Gaines
Damerham Hampshire UK
  Reply With Quote


  sponsored links


2 24th September 16:40
eddy
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


On Friday 01 December 2006 21:14,


sudo apt-get install mc ?

BTW: gnome-commander is not bad either and you can define gedit as
standard editor

sudo apt-get install gnome-commander

Of course you can only use it after X is repaired.

you could try nano
sudo nano /etc/X11/xorg.conf

Yeah, don't tell me. I made a lot of mistakes in the past, some of them
real nasty. But as long as you learn from those mistakes (and remember
how to fix them) there's no better school ...

Good luck!



--
Eddy.
using Ubuntu 6.10 (GNU/Linux/i686)
  Reply With Quote


  sponsored links


3 24th September 16:40
roger brown
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


On 1 Dec 2006 20:14:27 GMT

I've never understood why mc is not part of the default install - quite
aside from its usefulness in the sort of situation you are now in, it's
one of the most useful utilities going around even when you *are* in x.

Unfortunately to get mc using apt you need to enable all the
repositories in /etc/apt/sources.lst - something you ideally need mc to
help achieve.

There *is* something to be said for knowing enough about vi to use it
for such emergencies but as already pointed out to you nano should be
available ('sudo apt-get install nano' if need be) .

--
Roger Brown
roger2@rogerbrown.no-ip.org
http://rogerbrown.no-ip.org

I am not now, nor have I ever been, a member of the demigodic party.
-- Dennis Ritchie
  Reply With Quote
4 24th September 16:40
blacktopbum
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


Eddy was all like, you know, and then said something like a ...

That should include "-w" after nano:

sudo nano -w /etc/X11/xorg.conf

--
BlackTopBum
Support your local tyranny ...
become an officer of the law !
  Reply With Quote
5 24th September 16:40
blacktopbum
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


Jeff Gaines was all like, you know, and then said something like a ...

Like drakconf - no, but to re-do xorg use this command, which is
mentioned at the start of xorg.conf:

sudo dpkg-reconfigure -phigh xserver-xorg


Don't be too hard on yourself - can't know the questions without knowing
first the questions.

Another good thing to include for emergencies is a text web browser:
links2 (and in X use the -g option for graphics but no cookies)... I use
links2 -g in X more often than FF <g>.
--
BlackTopBum
Support your local tyranny ...
become an officer of the law !
  Reply With Quote
6 24th September 16:40
jeff gaines
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


[snipped]

Many thanks for all the responses, I'm back in :-)

I used 'sudo dpkg-reconfigure -phigh xserver-xorg' from the command line
as the safest bet and it worked fine.

I was able to get into nano but decided I might make things worse - but
it's good to know it's there. I have copied the working xorg.conf to my
home directory.

I have also amended sources.list to allow:

deb http://gb.archive.ubuntu.com/ubuntu/ edgy universe

and I added:
deb http://ftp.debian.org sarge main

after this I was able to down-load and install mc which will be a lifeline.

Is adding debian 'acceptable' since I'm using Ubuntu? I'm not sure if mc
came from the 'opened up' Ubuntu or Debian, I should have changed them
one at a time.

Thanks again to everybody!

PS - I have started a notes file to keep all this in.

--
Jeff Gaines
  Reply With Quote
7 24th September 16:40
mark carter
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


I'm a bit of a n00b to mc - and I can often find it annoying. I just
installed gentoo file manager, which looks quite respectable.

There's a file manager called efm, or effm, or something, but I've
forgotten what it's called. I thought it was a much underrated file manager.
  Reply With Quote
8 24th September 16:40
roger brown
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


On Sat, 02 Dec 2006 11:58:46 +0000

Bit hard to use that when the OP's problem is that he's broken his X config!

Ditto. You mean emmelfm, of course - or better, the gtk2 version
emmelfm2

--
Roger Brown
roger2@rogerbrown.no-ip.org
http://rogerbrown.no-ip.org

Bringing computers into the home won't change either one, but may
revitalize the corner saloon.
  Reply With Quote
9 24th September 16:40
mark carter
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


Stream-of-consiousness stuff follows ...

Yes. That's the fellow (actually it's emelfm). I installed it just now.
I like the way it has a command window, and an output window. Very
swish. It really does deserve more popularity, I think.

The same goes for the popularity Xming - which I'm using to access
emelfm from Windows XP. I only just heard of it. I expect that there are
many many people like me who are using XP as their main box, with their
spare box running Ubuntu without keyboard/mouse. Sometimes the
command-line is just too tedious.
  Reply With Quote
10 24th September 16:40
erik harren
External User
 
Posts: 1
Default Command Line/Console Text Editor & File Manager?


Hi Jeff.


As a good alternative for the mc-built-in editor just give 'joe' a try.
As far as i know the behaviour is quite equal, when you've found
Ctrl-K+H for help.

solong,
Erik.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666