Chinaunix
标题:
ubuntu初始安装设置
[打印本页]
作者:
luoxb
时间:
2006-10-31 20:12
标题:
ubuntu初始安装设置
ubuntu新手在安装完操作系统之后会碰到以下几个问题,在这里稍微做个小节:
1、root用户创建
众所周知,ubuntu在安装过程中设置的用户是一个普通权限的用户,如果需要更高的权限需要设置一个root用户,使用su命令从普通用转换到root后才能拥有相关权限。
设置root用户命令:sudo passwd root之后提示输入密码两次,ok!
2、修改更新列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup备份原先列表
sudo gedit /etc/apt/sources.list编辑列表
建议使用(清华、交大的源并不好连):
deb http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
3、c语言支持
默认的安装不会安装gcc,g++,make以及c语言支持库lib,需要自己手动安装
使用命令:
sudo apt-get install gcc make c++
但是之后仍然不能找到包含的头文件
,原来没有安装lib包。
sudo apt-get install build-essential即可把libc6等安装上去。
至此,你基本可以在linux下编写你的c++程序了,其他使用工具安装详见:www.ubuntu.org.cn的wiki
本文来自ChinaUnix博客,如果查看原文请点:
http://blog.chinaunix.net/u/24302/showart_193211.html
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2