Chinaunix首页 | 论坛 | 博客
  • 博客访问: 935319
  • 博文数量: 60
  • 博客积分: 10055
  • 博客等级: 上将
  • 技术积分: 2106
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-03 22:46
文章分类

全部博文(60)

文章存档

2009年(5)

2008年(55)

我的朋友

分类: LINUX

2008-04-07 13:22:29

我的笔记本在安装初期,内核启动到时候,总是提示acpi相关到错误而无法引导到安装界面,则在boot: 后面加上linux acpi=off关闭acpi,就进入了安装界面。

安装完基本系统后是个字符见面的,于是安装xserver

apt-get install x-window-system-core
apt-get install enlightenment (如果想用gnome的话就apt-get install gnome-core)

看到网上说最好安装一下gnome-language-selector,这个可以很方便的安装所有的中文相关包,但是我apt-get install language-selector后,最然能启动,但是无法执行,可能还需要装别的包,哪位知道的请告诉我。

另外,Ubuntu-server安装时键盘布局自动检测出的键盘布局在笔记本上有问题,引号键会失效,大家可以使用如下命令重新配置键盘布局,不要选国际键盘,直接用104键美国英语就可以了:

sudo dpkg-reconfigure console-setup
==================
安装ati显卡驱动,
apt-get install xorg-driver-fglrx linux-restricted-modules-`uname -r`
sudo depmod -a
sudo aticonfig --initial -f 如果出错,提示没有显卡驱动,则

修改/etc/X11/xorg.conf

在Device段,添加一行Driver  "fglrx",再执行sudo aticonfig --initial -f,若还报错,提示没有设置分辨率。则修改nano /etc/X11/xorg.conf (如果此文件中有出现“ati”到话,改成“fglrx”)

在Screen段,添加一行。大概如下:

Defaultdepth 24
 SubSection "Display"
  Depth 1
  Modes  "1280x800" "1024x768"  "800x600"  

EndSubSection

再加上以下行
Section "Extensions"
    Option    "Composite"  "0"
EndSection
重启之后,显卡驱动就搞定了。
==============================
=====安装声卡驱动===========
apt-get install alsa-base alsa-utils
再安装一个声音控制器apt-get install aumix(这是个命令行的tui工具)
==================================================
===========安装enlightenment==========
(当时源里的是e16)后,默认的xterm对中文支持不好,故安装了mlterm,
其配置文件/etc/mlterm/main内容如下(留以备忘):
use_combining=true
font_size_range=5-50
scrollbar_view_name=sample
use_scrollbar=true
mod_meta_mode=8bit
use_bidi=true
copy_paste_via_ucs=true
compose_dec_special_font=true
termtype=mlterm
icon_path=/usr/share/pixmaps/mlterm-icon-wmaker.png
conf_menu_path_2=mlterm-zoom
use_anti_alias = true
# logsize=128
 fontsize=12
# tabsize=8
 use_xim=true
 open_xim_in_startup=true
# use_login_shell=false
# ptys=1
# bel_mode=sound
# use_transbg=false
# big5_buggy=false
 not_use_unicode_font=false
# only_use_unicode_font=false
# iso88591_font_for_usascii=false
# col_size_of_width_a=1
 fg_color=black
 bg_color=white
# ENCODING=auto
 ENCODING=GB2312
# fontsize=1
****mlterm的复制和粘贴
mlterm 内部复制采用鼠标选中要复制区域,Shift键+Insert键粘贴到光标处.
mlterm 向外部(firefox)复制用鼠标选中复制区域,按鼠标中键粘贴到目标处.
外部如firefox向mlterm复制两种方法都可以.(备忘)
=====================到这里为止,系统启动后直接运行到控制台模式,想输入帐户和密码后直接登入X,而不必手动startx:在$HOME/.bash_profile中加入一句:/usr/bin/startx
============终端缺少tab功能,则安装screen弥补
screen使用(转自http://blog.chinaunix.net/u/31/showart_557846.html)
使用screen非常简易.只需在SHELL键入screen,便可打开一个screen session。
而在每个screen session 下,所有命令都以 ctrl+a(C-a) 开始。

现在让我来简单介绍基本的命令

C-a c -> Create,开启新的 window
C-a n -> Next,切换到下个 window
C-a p -> Previous,前一个 window
C-a C-a -> Other,在两个 window 间切换
C-a w -> Windows,列出已开启的 windows 有那些
C-a 0 -> 切换到第 0 个 window
C-a 1..9 -> 切换到第 1..9 个window

C-a a -> 发出 C-a,在 emacs, ve, bash, tcsh 下可移到行首

C-a t -> Time,显示当前时间,和系统的 load
C-a K(大写) -> kill window,强行关闭当前的 window

C-a [ -> 进入 copy mode,在 copy mode 下可以回滚、搜索、
复制就像用使用 vi 一样

C-b Backward,PageUp
C-f Forward,PageDown
H(大写) High,将光标移至左上角
L Low,将光标移至左下角
0 移到行首
$ 行末
w forward one word,以字为单位往前移
b backward one word,以字为单位往后移
Space 第一次按为标记区起点,第二次按为终点
Esc 结束 copy mode
C-a ] -> Paste,把刚刚在 copy mode 选定的内容贴上

C-a ? -> Help,显示简单说明

C-a d -> detach,将目前的 screen session (可能含有多个 windows)
丢 到后台执行 当按了 C-a d 把 screen session detach 掉后,会回到还没进 screen 时的状态,此时 在 screen session 里每个 window 内运行的 process (无论是前台/后台)都在继续执行,即使 logout 也不影 响。

下次 login 进来时:

screen -ls -> 显示所有的 screen sessions
screen -r [keyword] -> 选择一个screen session 恢复对话

若 screen -ls 里有 Attached sessions:
screen -d [keyword] -> 强制 detach,以便「接手」过来 

实例
说明看了那么多,让我们用一个实际例子来结束我们今天的学习。

在我们开启一个screen后,然后使用joe编辑一个文件,之后因为临时需要离开这时就可以运行Ctrl+a d,显示如下:

[becks@ec-base becks]$ screen
[detached]

这个时候当我们运行ps -e 可以看到pts/2这个我刚刚运行的screen正在运行joe
6264 pts/2 00:00:00 bash
6354 pts/2 00:00:00 joe

而当我们回来后想恢复这个session,只需要键入screen -r,而当你有多个session时候,系统将提示你选择一个,如下:
[becks@ec-base becks]$ screen -r
There are several suitable screens on:
6263.pts-1.ec-base (Detached)
6382.pts-1.ec-base (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.

输入该session的pid进行恢复
[becks@becks becks]$ screen -r 6263

想退出screen的session,和退出shell一样,只需要键入exit命令,成功退出后将有以下提示
[screen is terminating]


阅读(3590) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~