LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-09-2008, 05:01 PM   #1
r45
LQ Newbie
 
Registered: Aug 2008
Posts: 9

Rep: Reputation: 0
how to become root in a text editor


Been using debian etch for 1 year, but a few days ago my screen resolution changed from 1024x768 at 75hz to 640x480 at a blinking 60hz and all options dissapeared as well.
Trying to use a text editor to change the etc. x11 xorg.cong file, don't have any experience with text editors and can't find info on how to become root in nano or gedit.
 
Old 08-09-2008, 05:08 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Start a console. From the command line use the command:

su

to become root. Once you are running as root then start nano or gedit or whatever you want.

---------------
Steve Stites
 
Old 08-09-2008, 05:10 PM   #3
r45
LQ Newbie
 
Registered: Aug 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I see, thanks
 
Old 08-09-2008, 05:10 PM   #4
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
sudo gedit
sudo nano
 
Old 08-09-2008, 05:13 PM   #5
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
whoops didn't mean to step on anyones post
on my distro the SU is locked so if you dont want to do sudo this sudo that you can do sudo su and you will remain as root until you type exit
 
Old 08-09-2008, 05:23 PM   #6
r45
LQ Newbie
 
Registered: Aug 2008
Posts: 9

Original Poster
Rep: Reputation: 0
do you think its possible to reset the resolution from "configuration editor" using the default and mandatory option, and would you happen to know what is meant when it says "no schema"
 
Old 08-09-2008, 06:09 PM   #7
r45
LQ Newbie
 
Registered: Aug 2008
Posts: 9

Original Poster
Rep: Reputation: 0
may have to give up on nano, it prints out info so basic its useless then at the bottom it says "read 117 lines" but can't get it to display any detail.
 
Old 08-09-2008, 06:15 PM   #8
r45
LQ Newbie
 
Registered: Aug 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I'm using etch, any opinions on a different os, the ones you pay for. Don't want to spend weeks trying to set a basic monitor display option.
 
Old 08-09-2008, 06:30 PM   #9
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Do you use a proprietary driver? If you use nvisia, you should have nvidia-settings, which can set resolution from a GUI. And have you tried gedit? It's a lot less cryptic than nano (not that nano is all that cryptic if you read the legend at the bottom).

I kind of think that sudo is a bit more convenient than su - but it doesn't work out of the box on Debian.
 
Old 08-09-2008, 09:25 PM   #10
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Quote:
Originally Posted by r45 View Post
may have to give up on nano, it prints out info so basic its useless then at the bottom it says "read 117 lines" but can't get it to display any detail.
For situations like the ones you are using nano for I prefer to use mped. I suggest that you install mped from synaptic and give it a try.

------------------
Steve Stites
 
Old 08-10-2008, 12:05 AM   #11
r45
LQ Newbie
 
Registered: Aug 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks all for your help, I finally had success. Nano was working ok I didn't realize it stopped at the bottom of the file and all I had to do was scroll up. I downloaded "dpkg-reconfigure -phigh xserver-xorg" while root in terminal and this restored the /etc/X11/xorg.conf file giving me options with the resolution but it wasn't advanced enough to also provide different refresh options so I had to type those in manually and in the process of that I did it in a way that my computer couldn't restart. So I had to fix that from the terminal at the start of the boot that looks like ms-dos. I was worried sick because nano was the only text editor it would open but I was able to get through it and make the corrections to expand the hz. range to read 48-75 instead of typing it "70" "72" "75" like the resolutions rates. It needs a range then the different refresh rates will be available according to what the monitor can handle. What an ordeal, but I gained a lot of confidence with debian over this. All I can say is you must learn nano and aptitude because they seem to be the only things available when the system can't start.
 
Old 08-10-2008, 12:15 AM   #12
r45
LQ Newbie
 
Registered: Aug 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I wanted to say one more thing, another trick that saved me was having a knoppix os on a cd. It allowed me to use the computer from a cd drive and get info on the internet while the main system was down. That little cd is a life saver.
 
  


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
text selection question in text editor olin Linux - Software 1 09-25-2007 01:25 PM
Text Editor on Fedora Core 4 in Text Mode blong4life Linux - Software 5 07-31-2006 09:07 PM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
Can't open text editor as root - SuSE 9.2 dcdbutler SUSE / openSUSE 9 02-17-2005 04:38 PM
Start a text editor as root?!? svarreby Slackware 10 02-25-2004 06:48 AM

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

All times are GMT -5. The time now is 11:12 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration