这篇文章是躺在自己的笔记本中好几年了。有些方法针对现有的Linux版本可能过时了。但大多数都还实用。有问题留言交流~
文章目录
debian、Ubuntu18(部分20也适用)
1.普通用户使用sbin命令并且加入到sudoers中
su root
vi /etc/sudoer
在root下面用户名按照root样式写上。
2.更新源
文件地址在/etc/apt/source.list
3.用户加入sbin命令
将/sbin命令加入到PATH中
有两种方案
(1)修改~/.profile
在后面加上PATH=$PATH:/sbin:/usr/sbin
只针对该用户有效
(2)修改/etc/profile
同上加上最后一句。
针对所有用户有效。除非强制修改PATH值,否则不会改变,这种好。
source 命令让改变生效
4.安装完整版vim
sudo apt install vim
5.修改时间同步问题
sudo cp /usr/share/zoneinfo/UTC /etc/localtime
另外一种方法 (deepin有效) hwclock -w --local 直接将bios时间作为系统时间
6.设置默认启动顺序
vi /etc/default/grub’
从开始计算
sudo update-grub
7.文件夹改成英文
映射文件~/.config/user-dirs.dirs
先收手动修改成英文
然后修改对应映射
8.设置终端快捷键
设置->键盘 点击加号 终端命令是gnome-terminal (gnome桌面)
9.优化桌面 主题 最大化最小按钮
gnome-tweak-tool
10.安装搜狗输入法:
(1) download the *sougou.deb from the sougou webpage
(2) dpkg -i *.deb
(3)apt --fix-broken install
11.安装为知笔记
官网下载绿色版,直接联网会失败,ssl版本不兼容
sudo apt install libssl1.0-dev
自己编译需要注意以下几点:
1.安装官方推荐的QT5开发环境,尽量按照他的默认路径,否则有可能出现qtmake找不到的情况。
2.编译过程可能会出现can not find /usr/bin/ld llcryto++
这时安装cryptop++库
sudo apt-get install libcrypto+±dev
/*********************************/
完整的cryptop++
安装cryptop++命令:
apt-cache pkgnames | grep -i crypto++
sudo apt-get install libcrypto++9 libcrypto+±dev libcrypto++9-dbg
但是不用都安装。
/************************************/
12.wifi驱动安装
lspci 查看wifi版本号
https://wiki.debian.org/iwlwifi
看这儿
13. 中文字体
英文版的Ubuntu或者Debian系统对于中文的显示很奇怪,有些字错误。
修改/etc/fonts/conf.avail/64-language-selector-prefer.conf 文件下所有SC(Simple Chinese)放在第前面。
deepin--------
1.源更新时报错:
由于没有公钥,无法验证下接签名
解决办法1 删除最近新添加的源,查看/etc/apt/source.list.d里面的
2.或者注册一下公钥
3.create desktop shortcut and add in start-meanu
1.create a file named xxx.desktop , for example firefox
[Desktop Entry]
Encoding=UTF-8
Categories=Network;WebBrowser;
Comment=this is firefox
Exec=/opt/firefox/firefox
Icon=firefox-zh
Name=火狐浏览器
Terminal=false
Type=Application
X-Deepin-Vendor=user-custom
StartupNotify=true
X-Deepin-AppID=firefox-zh
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
2.Pay attation to the Icon and Exec, Save and exit ,that is the shortcut !!
3.Add into the startmenu:
copy the shortcut whitch you created just now to the */usr/share/applications
then you will see your shortcut in the start-menu !!!
#install flash for firefox:
- download flash.tar.gz
2.unzip flash.tar.gz, read the readme. - cp the libflashxxx.so to ~/.mozilla/plugins , if no this folder,pls create it
4.cp the /usr/* to the /usr ,according the readme.txt
有 1 个软件包没有被完全安装或卸载。
删除 /var/lib/dpkg/status中有关那个软件的安装信息
和/var/lib/dpkg/info目录下那个软件包的几个文件