Find the answer to your Linux question:
Results 1 to 3 of 3
I have just installed debian stable (etch) I would like to install nvidia-glx using apt-get in single user mode (can't run x due to driver issue). This is on the ...
  1. #1
    Just Joined!
    Join Date
    Dec 2004
    Posts
    4

    Smile adding non-free repository from runlevel 1 with no access to gui

    I have just installed debian stable (etch)

    I would like to install nvidia-glx using apt-get in single user mode (can't run x due to driver issue). This is on the non-free repository, which isn't a default apt source.

    I would therefore like to edit my /etc/apt/sources.list to add the non-free repo, but am only experienced in using gedit when in runlevel 5.

    Can anyone tell me how I can edit apt's sources list from command line in run levels 1 or 3?

    Can't find solution anywhere. If this is a duplicate question, sincere apologies.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    you can use nano or vi to edit sources.list.
    Code:
    nano /etc/apt/sources.list
    did you try "vesa" driver? it works fine with all graphics cards.
    Code:
    nano /etc/X11/xorg.conf
    edit this part
    Code:
    Section "Device"
      Identifier "Video Card"
      Boardname "xxxx"
      Driver "vesa"
    EndSection
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Newbie
    Join Date
    Jul 2005
    Posts
    180
    And here is a way to get the proprietary driver without editing any files do as root--

    Code:
    apt-get install linux-image-'uname-r'
    wget http://us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/NVIDIA-Linux-x86-1.0-9755-pkg1.run
    chmod +x NVIDIA-Linux-x86-1.0-9755-pkg1.run
    ./NVIDIA-Linux-x86-1.0-9755-pkg1.run
    And then you're good to go.

    That's assuming that you want the latest linux x86 driver. You can even just copy that, save that as a shell script that is say foo.sh. Then running sh foo.sh as root will do it. That is assuming that I didn't make any mistakes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •