问一下有关ubuntu的问题

问一下有关ubuntu的问题

我装的是ubuntu 7.04,编译出现下面的错误,是不是找不到gcc,我又不能上网,谁发我个gcc软件包。谢谢!
rainson@rainson-desktop:~$ g++ -o new211 md5.cpp main.cpp
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install <selected package>
Make sure you have the 'universe' component enabled
bash: g++: command not found
还有一个问题就是装好系统后,只有开关机有声音,其他没声音。为什么?我的声卡为(音频控制芯片 Intel 82801G (ICH7 Family) High Definition Audio),谁有它的linux驱动程序,还有安装方法。谢谢!!

      
http://ftp.gnu.org/
这个ftp服务器地址下的相应位置能找到gcc,但是ms你在编译一个c++程序,好像使用gcc就可以了。
另外ubuntu系统的apt系统的系列包工具非常好用,建议熟练使用来安装自己想要的软件或者包。      
楼主的问题是上不了网,那样玩ubuntu很痛苦,不如装那些几张光盘的系统如FC。      
论坛旧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