Page 1 of 1

How do I get root privaliges in the terminal?

PostPosted: Mon Dec 24, 2012 5:18 am
by ninjawarrior
I know this is kind of lame, but I am still kind of a newbie. I have been trying to access or get root privaliges from the terminal, but every time I put in my login password, it comes up with an athentication error. I am trying to access my root files, but my home directory doesn`t seem to be set up right on my terminal. How do I take care of this and how do I get root privaliges from the terminal? My home directory is /home/jondo7/ not the desktop.

Re: How do I get root privaliges in the terminal?

PostPosted: Fri Dec 28, 2012 4:34 am
by ninjawarrior
The reason I am asking is because, I want root privileges so I can install NVIDIA display drivers on my system. I have successfully done this using the NVIDIA current drivers for Linux, but I want to install their drivers, downloaded from their site. I just want to ask another question: after I get into root do I need to shut down the x-window system first before installing the drivers? Then login again, install the drivers ( sh./NVIDIA(filename)) , then when that is through, get back into the graphical environment? Also, do I need to uninstall the previous display drivers before I install the new drivers? And if so, how do I uninstall them?
I have looked all over this forum and on other forums and from what I gather, this procedure should work with Ubuntu 12.04. And yet from what I have found out on this forum, Ultimate Edition 3.5 is very different in many ways from Ubuntu 12.04. I am currently running Ultimate Edition 3.5, have up graded the kernel, and I want to get the most out of this OS by using the NVIDIA drivers. I also don`t want to have to reinstall the OS again (if I can help it!). I believe I am making real good progress with getting the most out of Ultimate Edition 3.5, but it has been slow and painful at times!

Re: How do I get root privaliges in the terminal?

PostPosted: Fri Dec 28, 2012 5:44 am
by pam
for going root...
Code: Select all
sudo su

.....enter your password.......

to kill X and jump to a different runlevel so you can install the nvidia drivers..........
from terminal go root first..............
then type...........
Code: Select all
/etc/init.d/lightdm stop

....you will immidiately drop down to a terminal......next install your drivers..........

to install the drivers from nvidia website ....do as follows after you have got a full tty from doing the above:
Code: Select all
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

Code: Select all
sudo apt-get update

Code: Select all
sudo apt-get install nvidia-current


Once installed goto your download folder where the NVIDIA.sh driver is and install it as follows:
Code: Select all
bash  ./Nvidia...blahblah...310.19.sh

the blah is your driver....

if it dont work try this:
Code: Select all
bash  Nvidia...blahblah...310.19.sh


..........follow the steps and your driver will get installed.....

Re: How do I get root privaliges in the terminal?

PostPosted: Sat Dec 29, 2012 8:23 pm
by ninjawarrior
When I enter /etc/init.d/lightdm stop
it stops at this point and say`s
Starting Timidity++ ALSA MIDI Emulation
then just does nothing. No command prompt or anything. It just sits there. Even if I type something in, it still does nothing. Did I miss something in you above command? Or is this the "terminal" you were talking about? If so why doesn`t it do anything?

Re: How do I get root privaliges in the terminal?

PostPosted: Sun Dec 30, 2012 12:29 am
by pam
forgot to mention .......you got to change to a tty........do this:
press alt+f1 or alt+f2

....there you have it...

Re: How do I get root privaliges in the terminal?

PostPosted: Sun Dec 30, 2012 2:36 am
by ninjawarrior
Ok folks, I finally got this animal taken care of!! It took a little doing but this is my version of how I installed the NVIDIA drivers on Ultimate Edition 3.5, Kernel 3.6.0-11 Liquorix-amd64 :

1) First enter the terminal, then enter root:
Code: Select all
 sudo -s

once this is done, then enter the password.
2) Once in root, Kill the X configuration. Type and enter:
Code: Select all
   /etc/init.d/lightdm stop

3) Press CTRL-ALT-F1 to start a terminal
4) You will need to log in first, then enter root again.
Next, find the downloaded file dir ,then cd {folder name} This will put you in the folder where the file is located- after you find it first.
5) Then type and enter:
Code: Select all
 sh ./NVIDIA-Linux-x86_64-310.19.run

6) Once the program is running, AGREE to everything. Once the program is finished
exit from root and restart.

I am still a newbie at all this but, I had to go on YouTube to find some more ideas on how to do this when I ran into snags. Ultimate Edition 3.5 is deffinately an animal to contend with. It`s not like alot of other distros out there. So I had to take the info I got here, and there, and finally came up with a solution that worked! Oh and I did this all while I was in KDE Openbox. After I rebooted everything worked just great! Problem solved.. on to the next big project!! Thanks again guys!! You too Pam. :vil2_karate

Re: How do I get root privaliges in the terminal?

PostPosted: Sun Dec 30, 2012 2:41 am
by pam
<BREW>
thats's what we are here for...............helping You.