LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Get wireless card working. How to change default in GRUB. (https://www.linuxquestions.org/questions/linux-newbie-8/get-wireless-card-working-how-to-change-default-in-grub-802258/)

XavierP 04-16-2010 05:36 AM

Change
Code:

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted

to
Code:

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted non-free
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted non-free

(Bolded to show the change)
Then do
Code:

sudo apt-get update && sudo apt-get install b43-fwcutter
Let us know if it works.

crts 04-16-2010 05:42 AM

Quote:

Originally Posted by Bruno2010 (Post 3937107)
user1@admin:~$ grub --version
The program 'grub' is currently not installed. You can install it by typing:
sudo apt-get install grub
grub: command not found
user1@admin:~$

Hi,

you probably have grub2 installed and that means that the setup is differrent than with grub. E. g., as you already noticed you do not have a menu.lst. Instead you have a grub.cfg. Manual configuration, however, is done by modifying /etc/default/grub. Change the DEFAULT value there, e.g.
Code:

#GRUB_DEFAULT=0 #first menu entry
GRUB_DEFAULT=2 #third menu entry
GRUB_HIDDEN_TIMEOUT=3
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"


Bruno2010 04-16-2010 12:35 PM

Quote:

Originally Posted by XavierP (Post 3937409)
Change
Code:

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted

to
Code:

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted non-free
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted non-free

(Bolded to show the change)
Then do
Code:

sudo apt-get update && sudo apt-get install b43-fwcutter
Let us know if it works.

Ok, this is where my experience is limited. Are you asking that I find the file:

etc/apt/sources.list

and go in and add text to those files indicating what you said to change?

Or is all of this done at the terminal with commands...please advise.

Thanks for your help BTW.

Bruno2010 04-16-2010 12:38 PM

Quote:

Originally Posted by crts (Post 3937417)
Hi,

you probably have grub2 installed and that means that the setup is differrent than with grub. E. g., as you already noticed you do not have a menu.lst. Instead you have a grub.cfg. Manual configuration, however, is done by modifying /etc/default/grub. Change the DEFAULT value there, e.g.
Code:

#GRUB_DEFAULT=0 #first menu entry
GRUB_DEFAULT=2 #third menu entry
GRUB_HIDDEN_TIMEOUT=3
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"



This is incredibly confusing. Is all this stuff what I type in the terminal? Or can I somehow change it in a file.

Ill try and see what I can learn from the grub.cgf file.

crts 04-16-2010 01:31 PM

Quote:

Originally Posted by Bruno2010 (Post 3937834)
This is incredibly confusing. Is all this stuff what I type in the terminal?

No, you do not type this into the terminal. This are contents of the textfile /etc/default/grub. What you type into the terminal is
Code:

sudo gedit /etc/default/grub
Enter your password and you will be able to modify the textfile. A '#' marks a comment, that means the rest of the line will be ignored. Now change the 'DEFAULT=' setting as you like.

Bruno2010 04-16-2010 01:51 PM

Quote:

Originally Posted by crts (Post 3937870)
No, you do not type this into the terminal. This are contents of the textfile /etc/default/grub. What you type into the terminal is
Code:

sudo gedit /etc/default/grub
Enter your password and you will be able to modify the textfile. A '#' marks a comment, that means the rest of the line will be ignored. Now change the 'DEFAULT=' setting as you like.

Linux is for the birds.

I found the grub.cfg file. I found the default "0" part. I changed it to 4, what I think is my windows spot. And it won't let me save it. It won't let me save another copy and overwrite.

So, Im not sure how Im supposed to "login" as the administrator or whatever.

EDIT: Ok, i went back in to the terminal, gave that command you mentioned. Was able to edit and save. Now its telling me "If you change this file, run "update-grub" to update /boot/grub/grub.cfg"

I went back to the terminal, and input "update-grub" for which it replied, "You must run this as root"

crts 04-16-2010 02:45 PM

Quote:

Originally Posted by Bruno2010 (Post 3937883)
Linux is for the birds.

I found the grub.cfg file. I found the default "0" part. I changed it to 4, what I think is my windows spot. And it won't let me save it. It won't let me save another copy and overwrite.

So, Im not sure how Im supposed to "login" as the administrator or whatever.

EDIT: Ok, i went back in to the terminal, gave that command you mentioned. Was able to edit and save. Now its telling me "If you change this file, run "update-grub" to update /boot/grub/grub.cfg"

I went back to the terminal, and input "update-grub" for which it replied, "You must run this as root"

Code:

sudo update-grub
will do the trick.

P.S.:
grub.cfg is an auto-generated file and is not supposed to be manually edited. However, if you do it anyway the changes are not permanent and will be lost the next time update-grub is run.

XavierP 04-16-2010 05:18 PM

Quote:

Originally Posted by Bruno2010 (Post 3937831)
Ok, this is where my experience is limited. Are you asking that I find the file:

etc/apt/sources.list

and go in and add text to those files indicating what you said to change?

Or is all of this done at the terminal with commands...please advise.

Thanks for your help BTW.

Open a terminal and put in those commands. You can also enable the extra repositories by using your package manager.

So, to edit the file, open a terminal and do
Code:

sudo gedit /etc/apt/sources.list
Once we have your wireless card and grub issues sorted, I would strongly advise you bookmark and read the help pages at Ubuntu. They are well written pages and will walk you through most things.

kwhit 04-17-2010 08:13 PM

What distro of linux are you using??

Possibly look into using NDISWRAPPER.

NDISWRAPPER emulates windows drivers to work in linux

XavierP 04-17-2010 09:57 PM

The B43 drivers work excellently for me. Why use the extra layer if you don't need to? Ndiswrapper, like Wine, was always intended as a stop gap until more programs and drivers were produced that worked natively.


All times are GMT -5. The time now is 09:35 PM.