Ubuntu 简单配置

来源:互联网 发布:linux运维基础知识 编辑:程序博客网 时间:2024/06/05 05:58

安装Ubuntu16.04后要做的

日常软件安装

1 安装搜狗拼音输入法

再官网下载安装包直接安装。
然后再输入法设置里把键盘切换成fcitx,注销后点击输入法小键盘进入输入法设置,添加搜狗拼音

2 安装为知笔记

添加输入源

$ sudo add-apt-repository ppa:wiznote-team $ sudo apt-get update $ sudo apt-get install wiznote

3 安装chrome

// 1 add keywget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - // 2 set repositorysudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'// 3 installsudo apt-get update sudo apt-get install google-chrome-stable

4 安装ShadowSocks

ShadowSocksLinux客户端

5 主题美化

主题美化

6 VLC安装

sudo add-apt-repository ppa:videolan/master-dailysudo apt-get updatesudo apt-get install vlc

7 第三方解码器

sudo apt-get install ubuntu-restricted-extras

8 安装有道词典

参考Ubuntu16.04安装有道词典
具体操作如下:

1.从官方(http://cidian.youdao.com/index-linux.html)下载Ubuntu版本的deb包:youdao-dict_1.1.0-0-ubuntu_amd64.deb2.创建youdao-dict目录,把该deb包解压到youdao-dict目录:$ dpkg -X ./youdao-dict_1.1.0-0-ubuntu_amd64.deb  youdao-dict3.解压deb包中的control信息(包的依赖就写在这个文件里面):$ dpkg -e ./youdao-dict_1.1.0-0-ubuntu_amd64.deb youdao/DEBIAN4.编辑control文件,删除Depends里面的gstreamer0.10-plugins-ugly5.重新打包:$ dpkg-deb -b youdao youdaobuild.deb6.安装重新打包的安装包$ dpkg -i youdaobuild.deb

9 安装字体

安装win字体
Ubuntu没有微软雅黑和consola字体,可以从win拷贝到ubuntu,建立custom文件夹放在/usr/fonts/下

在Unity Tweek Tool上配置了字体,但是Ubuntu的默认字体还是没有变化
这个时候需要在字体的配置文件上下功夫了。
能够让Ubuntu完全显示文泉驿微米黑字体的字体配置文件
但是不推荐修改全局的而是修改局部的用户变量:参考Ubuntu字体
按照要求打开.font.conf文件后提醒我们

<fontconfig><!--    This file is maintained by Font Manager.    If you wish to make any changes it is suggested you do so using        /home/akisaya/.config/font-manager/local.conf    Any changes made to this file will be automatically relocated there    at startup and any settings already in that file will be overwritten.-->    <include ignore_missing="yes">/home/akisaya/.config/font-manager/conf.d</include>    <include ignore_missing="yes">/home/akisaya/.config/font-manager/directories.conf</include>    <include ignore_missing="yes">/home/akisaya/.config/font-manager/local.conf</include>    <include ignore_missing="yes">/home/akisaya/.config/font-manager/select.conf</include></fontconfig>

所以在要求目录下新建这样一个文件,然后把下面的配置文件粘贴进去

<fontconfig>   <match target="pattern">      <test qual="any" name="family">         <string>serif</string>      </test>      <edit name="family" mode="prepend" binding="strong">         <string>Ubuntu</string>         <string>WenQuanYi Micro Hei</string>         <string>AR PL UMing CN</string>         <string>AR PL ShanHeiSun Uni</string>         <string>Bitstream Vera Serif</string>         <string>DejaVu Serif</string>         <string>AR PL UKai CN</string>         <string>AR PL ZenKai Uni</string>      </edit>   </match>    <match target="pattern">      <test qual="any" name="family">         <string>sans-serif</string>      </test>      <edit name="family" mode="prepend" binding="strong">         <string>Ubuntu</string>         <string>WenQuanYi Micro Hei</string>         <string>Bitstream Vera Sans</string>         <string>DejaVu Sans</string>         <string>WenQuanYi Zen Hei</string>         <string>AR PL UMing CN</string>         <string>AR PL ShanHeiSun Uni</string>         <string>AR PL UKai CN</string>         <string>AR PL ZenKai Uni</string>      </edit>   </match>    <match target="pattern">      <test qual="any" name="family">         <string>monospace</string>      </test>      <edit name="family" mode="prepend" binding="strong">         <string>WenQuanYi Micro Hei Mono</string>         <string>Bitstream Vera Sans Mono</string>         <string>DejaVu Sans Mono</string>         <string>WenQuanYi Zen Hei</string>         <string>AR PL UMing CN</string>         <string>AR PL ShanHeiSun Uni</string>         <string>AR PL UKai CN</string>         <string>AR PL ZenKai Uni</string>      </edit>   </match> </fontconfig>

配置开发环境

配置java环境

配置java环境
中文参考
命令行安装后配置JAVA_HOME变量

配置Tomcat: 直接解压安装包,执行 bin\startup.sh 就能执行

mysql安装
使用APT安装

shell> sudo service mysql statusshell> sudo service mysql stopshell> sudo service mysql start

配置maven
官网下载安装包解压到 /opt

sudo gedit ~/.bashrc# set maven environmentexport M2_HOME=/home/Hadoop/apache-maven-3.2.3  // 根据安装路径修改export PATH=$M2_HOME/bin:$PATHsource .bashrc

其他问题

耳机有杂音(white noise)
$ alsamixer
loopbackdisable

Ubuntu16.04 安装extra后一直提示ttf-mscorefonts-installer安装失败
这是一个bug,installer的ver在ubuntu的仓库是3.4,无法安装,而最新的是ver3.6,可用Debian的源安装ver3.6版本。参考链接
解决方案

原创粉丝点击