Ubuntu16.04安装之后的几个设置

 

Ubuntu16.04安装之后的几个设置

 


Ubuntu16.04界面很漂亮,但是安装之后,需要做如下几个简单的设置,这样用的时候会更加顺畅。

1、中文支持

在右上角有一个齿轮,点击->System Setting->Language Support,出现Language Support对话框,在其中的language标签页,将汉语按住拖动到第一的位置,这样系统的显示就可以是中文的了。当然,这样设置之后,还得要重启电脑,才会看到系统中的预置文件夹的名字会变成中文的。

2、安装中文输入法

下载sogou输入法的linux版本,之后运行如下命令,即可安装。

安装命令如下:

$sudo dpkg -i sogoupinyin_2.0.0.0070_i386.deb

$sudo apt-get -f install

如果还是有错误,可以执行一下如下命令:

$sudo apt-get -f install

3、Vim的输入模式中不能使用上下左右键的问题

其实这个问题是由ubuntu系统自带的 vi版本太老导致的,所以解决方法就是安装新版的vi编辑器即可。

首先卸载旧版本的vi编辑器:

$sudo apt-get remove vim-common

然后安装新版vi即可:

$sudo apt-get install vim

4、没有source命令

shell脚本中source aaa.sh时提示 source: not found,这是由于 ls -l `which sh` 提示/bin/sh -> dash,这说明脚本是用dash来进行解析的。为了让source回来,需要设置sh让它指向bash。

$sudo dpkg-reconfigure dash

在界面中选择no

再ls -l `which sh` 提示/bin/sh -> bash

Dash Shell 是一个Unix Shell,比Bash Shell 小的多,符合POSIX标准。Debian曾经采用/bin/bash的更改/bin/dash,目的使用更少的磁盘空间、提供较少的功能、获取更快的速度。但是后来经过shell脚本测试存在运行问题。因为原先在bash shell 下可以运行的shell script,会出现一些意想不到的问题,不是100%的兼容。Ubuntu继承了Debian,所以从Ubuntu 16.10开始默认是Dash Shell。

 

5、ubuntu和windows7双系统,windows7启动花屏

这个问题的解决方案如下:

(1)进入Ubuntu系统,编辑/etc/default/grub   取消注释 GRUB_TERMINAL = console

(2)进入Ubuntu系统,编辑/etc/default/grub  将GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash" 添加 nomodest,修改后为:GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash nomodest"

(3)执行$ sudo update-grub

参考资料:

1、http://pinyin.sogou.com/bbs/forum.php?mod=viewthread&tid=2658016&extra=page%3D1

2、https://www.cnblogs.com/sherlockZ-Linux/p/4615746.html

3、https://blog.csdn.net/b_h_l/article/details/40739665

4、https://blog.csdn.net/sandwich125/article/details/68922673?locationNum=4&fps=1

原文地址:https://www.cnblogs.com/zhangzl419/p/8862594.html