安装Ubuntu后的一些配置
Ubuntu安装的一些配置
NVIDIA显卡问题
有时候N卡驱动会出现一些问题(比如开机黑屏,开机循环登陆等)
第一次启动可以按e编辑grub,然后在"quiet splash"后面加上"nouveau.modeset=0 intel_idle.max_cstate=1", 形成如GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0 intel_idle.max_cstate=1"。进入系统后再去编辑grub文件,不然每次我们都要开机的时候修改。
sudo vim /etc/default/grub, 然后修改成GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0 intel_idle.max_cstate=1"即可,接着sudo update-grub
搜狗拼音的安装
先在系统的language support里面补充完语言包
然后卸载ibus和它的配置, 卸载顶部面板的键盘指示
sudo apt remove ibus
sudo apt purge ibus
sudo apt remove indicator-keyboard
安装fcitx并切换, 重启生效
sudo apt install fcitx fcitx-config-gtk
im-config -n fcitx
sudo shutdown -r now
接下来安装安装搜狗拼音的deb包.链接:https://pinyin.sogou.com/linux/?r=pinyin
然后在fcitx的config里面添加输入法,注意把Only Show Current Language给去掉,添加Sogou pinyin即可
PS: 安装后若希望禁用Shift键切换中英文, 在搜狗拼音的设置面板里面按键--中英文切换--换成无
zsh安装配置
sudo apt-get install zsh curl git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
然后注销登录
关于语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
ranger配置
安装:pip install ranger-fm
初始化:ranger --copy-config=all
文件图标插件:https://github.com/alexanderjeurissen/ranger_devicons
如果想要ranger高亮代码文件,则需要sudo apt install highlight
更多ranger配置:https://github.com/ranger/ranger/wiki/Official-user-guide
多版本python
当存在2和3时,可以这样修改
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
sudo update-alternatives --config python
参考链接https://stackoverflow.com/questions/41986507/unable-to-set-default-python-version-to-python3-in-ubuntu
pip配置
安装最新版的pip时,会报错,可以修改文件
➜ ~ cat /usr/bin/pip3
#!/usr/bin/python3
# GENERATED BY DEBIAN
import sys
# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
#from pip import main
from pip._internal import main
if __name__ == '__main__':
sys.exit(main.main())
修改pip到清华源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
窗口管理器Regolith
# install
sudo add-apt-repository -y ppa:kgilmer/regolith-stable
sudo apt install regolith-desktop
# reboot
要先安装i3-gaps 然后再复制配置文件过去,因为配置文件里启动要用到这个
Polybar安装配置
# 安装依赖
# 如果还不行就根据提示安装少的包
参考: https://github.com/polybar/polybar#building-from-source
https://github.com/polybar/polybar/wiki/Compiling#optional-dependencies1(依赖)
若有些模块运行不出来,则用polybar example来看看哪些模块启动失败,然后去查依赖,重新编译运行.
dwm
写在/usr/share/xsessions/dwm.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=Dynamic window manager
Exec=dwm
Icon=dwm
Type=XSession
vim的coc插件安装
需要安装node
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
安装ccls https://github.com/MaskRay/ccls/wiki/Build
编译的时候会发现ld -lz 少了 lz , 安装zlib1g-dev即可
然后把Release下编译好的./ccls复制到/usr/local/bin即可
Gnome下交换swap和escape
采用 gsettings set org.gnome.desktop.input-sources xkb-options "['caps:swapescape']"
或者 setxkbmap -option "caps:swapescape"
备用: 首先需要安装dconf-tools, 然后打开,找到org>>gnome>>desktop>>input-sources, 自定义的值加入'caps:swapescape' 就OK
安装字体
将字体移到/usr/share/fonts目录下,然后执行sudo fc-cache -f -v
TIM and WeChat
主要还是https://github.com/wszqkzqk/deepin-wine-ubuntu项目
微信无法发送图片sudo apt install libjpeg62:i386
调整字体大小WINEPERFIX=~/.deepinwine/Deepin-TIM /usr/bin/deepin-wine winecfg
关于字体的乱码和修改, 首先下载msyh.ttc:链接
并安装:sudo apt install fonts-wine fonts-wqy-microhei fonts-wqy-zenhei
然后
#1.添加字体
cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts
#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"
#3.字体注册
gedit msyh_config.reg
#内容添加
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="msyh.ttc"
"Microsoft Sans Serif"="msyh.ttc"
"MS Sans Serif"="msyh.ttc"
"Tahoma"="msyh.ttc"
"Tahoma Bold"="msyhbd.ttc"
"msyh"="msyh.ttc"
"Arial"="msyh.ttc"
"Arial Black"="msyh.ttc"
#注册
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine regedit msyh_config.reg
#4.reboot
TIM和WeChat的系统托盘,gnome下安装这个插件
双系统时间问题
执行sudo timedatectl set-local-rtc 1 --adjust-system-clock即可
ssh自动断开问题
ssh容易自己断开连接,需要在'~/.ssh/config'配置一下
Host *
ServerAliveInterval 60
Ubuntu server中文环境的语言包支持
因为买完服务器安装完毕后,系统是英文版的,还不支持中文,需要我们自行配置。
1.安装中文包:
sudo apt-get install language-pack-zh*
2.配置相关环境变量:
sudo vim /etc/environment
在文件中添加语言和编码的支持
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"
3.重新配置本地语言环境:
sudo dpkg-reconfigure locales
安装Ubuntu后的一些配置的更多相关文章
- 初次安装Ubuntu后的若干配置步骤
第一步,安装VMware-tools 按照如下提示安装 首先将压缩包,复制到/home 目录下,将其解压,执行./vmware-install.pl即可 第二步,配置使linux能上网 首先将ubun ...
- 新安装ubuntu后几项配置
新安的ubuntu13.04 为了编程方便 进行如下设置 安装右键terminal sudo apt-get install nautilus-open-terminal 安装远程连接ssh ...
- 安装ubuntu和安装ubuntu后要安装的软件列表
安装ubuntu 老毛桃进入win pe修复启动项 在win pe下面制作ubuntu的安装盘,只用的软件是ultraISO 参考博客下面的分区的那篇文章 http://jingyan.baidu. ...
- 惠普电脑(HP PHILIPS系列)安装ubuntu后无法连接WIFI解决方案(手动安装8821CE驱动)
一步一步来, 先说环境: 我的电脑是HP PHILIPS系列,ubuntu版本是16.04 背景: win10安装ubuntu后发现无法连接wifi(但win10系统可以连接WIFI),在ubuntu ...
- wubi安装ubuntu后,增加swap大小,优化swap的使用参数-----------让ubuntu健步如飞,为编译android源码准备
wubi安装ubuntu后,终端输入free -m可以查到如下信息: total used free shared buffers cached Mem: 1944 1801 143 0 557 70 ...
- 虚拟机安装 ubuntu 后,更新源无效,以及无法联网安装软件的问题
问题: 虚拟机安装 ubuntu 后,更新源无效,以及无法联网安装软件: 错误提示: Err http://security.ubuntu.com/ubuntu/ trusty-security/un ...
- 虚拟机上首次安装Ubuntu后 root密码设置
虚拟机下安装ubuntu后root密码设置 问题描述: 在虚拟机下安装了ubuntu中要输入用户名,一般情况下大家都会输入一个自己的网名或绰号之类的,密码也在这时设置过了. 但是当安装成功之后,使用命 ...
- ArcoLinux安装完成后的的配置
ArcoLinux安装完成后的的配置 这可能是全网第一篇Arcolinux的教程 1. 更改源 修改/etc/pacman.d/mirrorlist 在最头上增加清华源 Server = https: ...
- Centos7安装成功后,网卡配置及更改镜像地址为国内镜像
Centos7安装成功后,网卡配置及更改镜像地址为国内镜像 一.网卡配置 二.修改网络配置 踩坑一:IPADDR 踩坑二:网关,DNS与本地不一致 重启网络服务 三.镜像修改为aliyun 四.相关知 ...
随机推荐
- ubuntu 终端快捷方式汇总
terminal 是一个命令行终端,将启动系统默认的shell,shell是一个解释并执行在命令行提示符输入的命令的程序. 启动 terminal1 在 “面板主页” 的应用程序搜索栏中,输入命令gn ...
- 使用spring中遇到"java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor"问题
项目中缺少aopalliance的jar包,下载一个相应的jar加入项目中就可以解决问题. 下载链接:http://www.java2s.com/Code/Jar/a/Downloadaopallia ...
- MyBatis(7)——使用注解开发
说明:注解就是利用接口实现的,因此转为面向接口编程,使用接口开发拓展性好.分层开发时上层不用管理具体的实现.更加标准化更加规范.使得各个层的耦合度更低. 注:有了注释语句就不需要实体类的mapper文 ...
- 【网易官方】极客战记(codecombat)攻略-地牢-焰中舞动
关卡连接: https://codecombat.163.com/play/level/fire-dancing 用循环节省输入并拯救英雄! 简介: 左 右 起舞,避开火球. 使用 while tru ...
- jmeter的使用---JDBC
一.数据库连接配置JDBC Connection Configuration 二.执行sql语句select statement (1)query type类型介绍 select statement: ...
- C++之Boost准标准库配置
下载安装 进入官网下载地址:https://www.boost.org/users/download/ 本教程直接下载官方已编译库,不涉及源代码手动编译 点击官方编号好的链接,然后进入一个下载地址:h ...
- redis常用配置参数
首先弄清楚当前redis读取的是哪个配置文件,然后去配置文件修改,例如windows 打开服务列表,点击Redis,右键属性 "D:\Program Files\Redis\redis-se ...
- next.config.js
const configs = { // 编译文件的输出目录 distDir: 'dest', // 是否给每个路由生成Etag generateEtags: true, // 页面内容缓存配置 on ...
- 【原】shell增加定时任务
通过shell脚本增加定时任务:#CRON_FILE="/var/spool/cron/root" (centos系统) CRON_FILE="/var/spool/cr ...
- 前端——语言——Core JS——《The good part》读书笔记——附录三,四,五(JSLint,铁路图,JSON)
1.JSLint 本书的JSLint部分只是一个引言,详细了解该工具的使用参考http://www.jslint.com/ 2.铁路图 在本书中使用过的铁路图集中放在这部分附录中,其实读完本书之后,没 ...