LinuxQuestions.org
Help answer threads with 0 replies.
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 04-30-2013, 02:12 PM   #1
jb rivers
LQ Newbie
 
Registered: Apr 2013
Location: Ohio USA
Distribution: Debian
Posts: 3

Rep: Reputation: Disabled
Exiting x-server and completing a command


What is the best way to exit x-server and install the following program using a terminal? the program: NVIDIA-Linux-x86-304.88.run located in the home folder.

Advice elsewhere suggests I do: ./NVIDIA-Linux-x86-304.88.run after exiting x-server and becoming root or using sudo or su-?

I seem to be getting close, but still am missing something and have been unable to install the NVIDIA program.

I appreciate any suggestion. My system is Linux Debian and I am running a GeForce 6200 pci graphics card.

jb rivers
 
Old 04-30-2013, 02:25 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
If you have kdm (for example you are using KDE), then in menu on logon screen you can choose option to exit X server. If you are using gdm (or GNOME), then switch to virtual console by CTRL+ALT+F1, login and invoke command
Code:
sudo service gdm stop
then Xorg should stop, and you can install NVIDIA drivers.

Quote:
I seem to be getting close, but still am missing something and have been unable to install the NVIDIA program.
Please be more specific. Some error messages shown or you can not find application? You should known where is your program downloaded, for example if you downloaded drivers to "/home/someusername/NVIDIA-Linux-x86-304.88.run" then do
Code:
sudo chmod +x /home/someusername/NVIDIA-Linux-x86-304.88.run
sudo /home/someusername/NVIDIA-Linux-x86-304.88.run
To go back to desktop, you can invoke
Code:
sudo reboot
Make sure you have no running important applications and you saved your work, all desktop programs will be terminated when you quit X server.

Last edited by eSelix; 04-30-2013 at 02:37 PM.
 
Old 04-30-2013, 02:28 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,601

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
Is there a reason you want to install from the nVIDIA package rather than the repositories? Otherwise the easiest way to get nVIDIA drivers is use the packages in the repositories:
http://wiki.debian.org/NvidiaGraphic...n-free_drivers
The basic method being install the kernel headers and DKMS then install the nVIDIA drivers.
If you must use the download from nVIDIA for some reason then to stop X press Ctrl+Alt+F1 and log in as root, then if you run Gnome type
Code:
/etc/init.d/gdm3 stop
If you run KDE type
Code:
/etc/init.d/kdm stop
Then run the installer. You will need to have the relevant kernel headers and build tools installed but you'll be prompted by the nVIDIA driver if they're missing and it should let you know what to install.
 
Old 05-01-2013, 12:37 PM   #4
jb rivers
LQ Newbie
 
Registered: Apr 2013
Location: Ohio USA
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the responses. I have printed everything out and will try again to install the package from the NVIDIA website. Perhaps repositories would have been a better option, but since I've gone this far by one method, I will try to see it through. I didn't know you could get NVIDIA packages from repositories.

In terms of error messages, I have trouble with terminals and knowing where I'm at in directories, so I get messages like: not in this directory or no such command. Sometimes, I get nothing or once I crashed my computer; thank God for Clonezilla.

When I get time to follow-up on this, I will post my experience, but thanks anyway.
 
Old 05-01-2013, 12:45 PM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
When using a terminal the command
Code:
pwd
will tell you where you are at the moment.
Code:
cd <path>
will allow you to move around from one directory to another.
Code:
cd
with no arguments will instantly take you back to your home folder (/home/<your username>)
Run the following command as root or use sudo:
Code:
updatedb
and then the command
Code:
locate <filename>
will let you find the path to any file on your system! Awesome, eh?
It's not exactly rocket science.
jdk

Last edited by jdkaye; 05-01-2013 at 12:48 PM.
 
Old 05-03-2013, 02:43 PM   #6
jb rivers
LQ Newbie
 
Registered: Apr 2013
Location: Ohio USA
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: Disabled
As I was having trouble logging into root after exiting x-server, I was able to locate the following script on the internet which allowed me to make the changes following the script and rebooting, which avoided the necessity of exiting x-server. I just had to answer "y" a couple of times to complete the installation. The script is named as follows:

nvidia-installer-squeeze.sh and the procedure is as follow:

Download debian 6.0 nVidia drivers shell Script: http://www.debianadmin.com/how-to-in...0-squeeze.html


Once you have nvidia-installer-squeeze.sh script, login as root
Change the script permissions using the following command

chmod +x nvidia-installer-squeeze.sh

Run the script using the following command

./nvidia-installer-squeeze.sh

That was all I had to do to complete the process.
 
Old 05-03-2013, 02:53 PM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,601

Rep: Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882Reputation: 1882
I think it worth mentioning that the script you used is imply following the procedure I linked to to install the drivers "the Debian way" using the drivers in the non-free Debian repository.
Not saying it's not useful, as I think it is, just letting you know in case you weren't aware.
 
  


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
Ubuntu Server 10.10 with Squid not completing tcp handshakes gorrillamcd Linux - Networking 2 05-18-2011 01:05 PM
stopping ksh from exiting after running a command jgombos Linux - General 3 11-26-2010 09:28 AM
exiting from a windows command nano2 Linux - Software 1 10-01-2009 05:08 AM
command line to Exiting X windows ? Nauht Linux - General 2 11-22-2005 06:37 PM
RHLinux 9.0 hangs when exiting command line mellsie25 Linux - Newbie 2 10-17-2003 09:27 PM


All times are GMT -5. The time now is 09:27 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