Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-18-08, 08:39 AM   #1
davidebe
davidebe
 
Join Date: Apr 2008
Posts: 2
Default How to run ubuntu linux without X server?

Hi, I tried to install NVIDIA driver but it says to me
that wants X-server not to be running.

I tried to log in recovery mode in ubuntu but i do not
have the passwd for root and so it starts with X-server.

I also tried to type init 1 on the terminal to see if something
happen but the installation program says that I have
installed the X-server as well.

How I can do?

Ciao.
Davide.
davidebe is offline   Reply With Quote
Old 04-18-08, 09:12 AM   #2
Cambo
Registered User
 
Join Date: Mar 2004
Location: UK
Posts: 128
Send a message via Yahoo to Cambo
Default Re: How to run ubuntu linux without X server?

I suggest looking at this thread - http://www.nvnews.net/vbulletin/showthread.php?t=79966



Cambo
Cambo is offline   Reply With Quote
Old 04-18-08, 11:08 AM   #3
davidebe
davidebe
 
Join Date: Apr 2008
Posts: 2
Default Re: How to run ubuntu linux without X server?

I follow these steps but nothing works because even if
I switch from VT7 to VT1, server X remain.
In fact launching the NVIDIA.run it tells me: You appear to be running
an X server.

- Boot into Ubuntu as normal, logging in on my normal account
- Open a terminal, and type 'sudo /etc/init.d/gdm stop'
- Press Ctrl-Alt-F1 to go from VT7 to VT1 (X uses VT7, and no login prompt appears here)
- Login in to my normal account at the text login prompt
- type 'sudo bash' (neat trick to get you a root shell)
- 'cd' to the folder with the downloaded driver file
- './NVIDIA-Linux-x86-1.0-9742-pkg1.run' (or whatever driver file you downloaded)
- Follow the onscreen instruction, and you should get everything set up fine.
- '/etc/init.d/gdm start' will restart X for you
davidebe is offline   Reply With Quote
Old 04-18-08, 11:15 AM   #4
tec-buck
Registered User
 
Join Date: Mar 2007
Posts: 17
Default Re: How to run ubuntu linux without X server?

There are lots of ways to do it. My favorite goes like this:
1) I interrupt the grub boot (screen you see before the kernel is loaded usually counting down from 5 or so)
2) I edit the second line (kernel /vmlinuz....) following on screen instructions
3) At the end of the line a include the option 'linux 3'
4) Press enter and boot the computer.
5) After I make my changes I run '/sbin/init 5' as root which brings the system into init 5

I like this way because I don't have to change my inittab file over and over and when I try the Ctl-Alt method I still get an error that my x-server is running.

The linux 3 command is equivalent it init 3.
tec-buck is offline   Reply With Quote
Old 04-18-08, 11:31 AM   #5
Cambo
Registered User
 
Join Date: Mar 2004
Location: UK
Posts: 128
Send a message via Yahoo to Cambo
Default Re: How to run ubuntu linux without X server?

What happened when you entered 'sudo /etc/init.d/gdm stop'? That is where X should get stopped.



Cambo
Cambo is offline   Reply With Quote
Old 04-18-08, 12:09 PM   #6
pe1chl
Registered User
 
Join Date: Aug 2003
Posts: 1,026
Default Re: How to run ubuntu linux without X server?

When you are at this level of expertise it is better not to attempt to install the nvidia driver using the installer downloaded from the nvidia site.
Once you succeed in stopping the X server and installing the driver, you will run into other problems.
Your next question will probably be "why does the driver fail after I reboot the system"?

It is better to install the driver using the package distributed by Ubuntu using the "restricted driver manager".
pe1chl is offline   Reply With Quote
Old 04-19-08, 10:25 AM   #7
uOpt
FreeBSD cheering section
 
uOpt's Avatar
 
Join Date: Nov 2004
Location: Boston, MA, USA
Posts: 609
Default Re: How to run ubuntu linux without X server?

Quote:
Originally Posted by pe1chl
When you are at this level of expertise it is better not to attempt to install the nvidia driver using the installer downloaded from the nvidia site.
Once you succeed in stopping the X server and installing the driver, you will run into other problems.
Your next question will probably be "why does the driver fail after I reboot the system"?

It is better to install the driver using the package distributed by Ubuntu using the "restricted driver manager".
Blah. Don't beat up the n00bs when this isn't that much of a n00b question.

Ubuntu decided to run at different runlevels for with/without Xdm/gdm/whateverdm, so all the tricks that you know (or find on google) to do this don't work, and they don't even use the same one as Debian. Basically Ubuntu thinks there's no non-X11 systems anymore. Annoys the hell out of me and since I run different Unixes I don't want to have to learn the magic for each one of these, only to have forgotten it by the time I need it again.

I always do it like this:
- edit /etc/X11/xorg.conf
- insert a syntax error
- control-alt-backspace

==> system tries to start X11 a couple times, then the X11 system goes down and stays there. Works on all Linuxes and FreeBSD. No distribution-specific nonsense required.
__________________

My Unix benchmark results
uOpt is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux gaming on the rise: EA arrives on Ubuntu and Valve plans Steam port News Gaming Headlines 0 06-15-12 04:20 PM
Canonical partners with Microsoft to support Ubuntu on Azure News Latest Tech And Game Headlines 0 06-08-12 05:20 AM
Precision and purpose: Ubuntu 12.04 and the Unity HUD reviewed News Latest Tech And Game Headlines 0 05-28-12 02:20 PM
nVidia Linux drivers with Linux on Mac, help? Thetargos NVIDIA Linux 0 05-13-12 12:52 PM
Mandrake Linux 9.0 (Dolphin) now available | comments? volt General Linux 10 10-19-02 10:13 PM

All times are GMT -5. The time now is 03:07 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.