初学Ubuntu10.10使用问题解决办法

来源:互联网 发布:查看数据库有哪些用户 编辑:程序博客网 时间:2024/05/15 21:09

1.man sudo_root 显示有关ubuntu的root和sudo命令

 

2.右键添加"打开终端":
sudo apt-get install nautilus-open-terminal

 

3.ubuntu新建的用户默认的shell是sh,没有彩色显示不同类型文件,可以使其和主用户一样使用bash:图形介面System -> Administration -> Users and Goups,在弹出的菜单中点Advanced Settings,选Advanced选项,修改Shell:/bin/sh为/bin/bash,最后拷贝主用户目录下的.bashrc配置文件到当前用户主目录下.(图形介面下ctrl+h显示隐藏文件)

 

4.vim

   (1)安装vim:
sudo apt-get intstall vim

 

   (2)vim记忆上次浏览文件的位置:
sudo vi /etc/vim/vimrc
去掉以下语句前的分号("): 
if has("autocmd")
  au BufReadPost * if line("'/"") > 1 && line("'/"") <= line("$") | exe "normal! g'/"" | endif
endif

 

5.加入环境变量,vi ~/.bashrc , 添加 :
export PATH=/usr/local/arm/3.3.2/bin:$PATH

 

6.输入make menuconfig命令会出现如下错误:
  ......make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1
  make: *** [menuconfig] 错误 2

  解决办法: sudo apt-get install ncurses-dev

 

7.编译内核出现:"mkimage" command not found
  解决办法: sudo apt-get install uboot-mkimage

 

8. /bin/sh: lex: not found
解决方法:
sudo apt-get install flex

 

9. yacc: Command not found
解决方法:
sudo apt-get install byacc

 

10. /usr/bin/ld: cannot find -lpcap
解决方法:
sudo apt-get install libpcap0.8-dev

 

/*2011.1.11*/

 

11.Unable to fetch some archives, maybe run apt-get update or try

with --fix-missing?
解决方法:
sudo apt-get update

 

12.更新或下载时碰到:500  Internal Server Error等服务器问题
解决方法:更换服务器源:
图形界面下:System -> Administration -> Update Manager,在弹出的窗口点击Setting,选择Ubuntu Software栏,在Download from的下拉菜单里选other...,然后点击弹出窗口的Select Best Server,待系统为你自动选择好源后,点击Choose Server,然后根据提示更新下就行了.

 

13.系统启动服务管理工具:
sudo apt-get install sysv-rc-conf

 

14.configure: error: C++ preprocessor "/lib/cpp" fails sanity

check
See `config.log' for more details.
解决方法:
sudo apt-get install gcc
sudo apt-get install cpp
sudo apt-get install g++

 

15.make[2]: makeinfo: Command not found
(makeinfo有关信息:http://www.linux-

ren.org/modules/wiki/index.php/Makeinfo)
解决方法:
sudo apt-get install texinfo

 

16.用sudo命令或切换用户会使~/.profile,/etc/profile,~/.bashrc中的

export无效...
并且用sudo命令不会包括在当前用户命令下用命令export指定的路径.

 

17.Ubuntu10.10下允许Root用户直接登录图形界面
sudo vi /etc/gdm/custom.conf
将内容修改为类似如下:
TimedLoginEnable=false
AutomaticLoginEnable=true
TimedLogin=root
AutomaticLogin=root
TimedLoginDelay=30
DefaultSession=gnome

0 0
原创粉丝点击