论坛旧id找不到了-,-
--------------------------------------
sudo apt-get install build-essential
这个可以帮你把gcc自动装好,前提是把安装源配置好
关于ubuntu,最好去ubuntu的中文论坛看下新手配置,照着做就好
声卡问题,比较麻烦,是从去年就有的bug了,我电脑lenovo的也有这个问题
给你发下我的解决方法,基本就是2个帖子,先是更新alsa驱动,然后是稍微配置下configure文件
-----------------------------------------
2) 更新alsa驱动
Using alsa-source
Open up a shell: (note: module-assistant is optional, it will compile the package for you)
* Type sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source
* Type sudo dpkg-reconfigure alsa-source
* You now have a big blue dialog box (left and right keys to choose 'Yes' and 'No', Enter key proceed). Answer yes (for ISA-PNP - recommended by package maintainers), then yes again (for debugging - recommended by package maintainers).
* Now you must pick which driver you want to install. Use space to select and deselect modules, and up and down to navigate.
* From General Help step 3, you should know the name of your driver. Deselect 'all' (the * will go away), and select your driver. In my case, I deselected 'all' then selected 'via82xx'. Hit Enter. Almost home free!
* If you chose module-assistant sudo module-assistant a-i alsa-source. If the progress bar reaches 100% with no errors, you will have installed the drivers successfully. Resume this guide from General Help step 4.
* If you did not choose module-assistant - Remember the name of your soundcard driver (eg. via82xx) and use it in place of <insert driver> below.
----------------------------------------------
3) 设置alsa-base
Manually Specify Module Parameters
First you must find which model of sound card you use, so run this command:
*
cat /proc/asound/card0/codec#* | grep Codec It will return model of your sound card(s), for example: "Codec: Realtek ALC260", so your sound card is ALC260.
You should open a file in ALSA documentation. This file is here (replace KERNEL_VERSION with your kernel's version!):
* /usr/src/KERNEL_VERSION/Documentation/sound/alsa/ALSA-Configuration.txt If you didn't have this file, for version 2.6.22, you can check out this link or you can find ALSA-Configuration.txt in the subdirectory /alsa-kernel/Documentation/ of the alsa-driver-1.x.x directory you created.
Search for your model, and take a look at its types, for example I found the following lines for ALC260:
* hp HP machines
hp-3013 HP machines (3013-variant)
fujitsu Fujitsu S7020
acer Acer TravelMate
basic fixed pin assignment (old default model)
auto auto-config reading BIOS (default)
Read all of them and try to find the one which is more similar to your sound card, for example if you have a laptop, you can choose "acer".
Open /etc/modprobe.d/alsa-base with the following command:
* sudo nano /etc/modprobe.d/alsa-base
Then paste the following line at the end of the file (change MODEL with the type of sound card's model, in our example it should be "acer" (without quotation marks)):
options snd-hda-intel model=MODEL
Reboot