Ubuntu is an open source software platform that runs everywhere from the smartphone, the tablet and the PC to the server and the cloud.
ubuntu 设置
初用配置
Flatabulous主题
简介
This is a Flat theme for Ubuntu and other debian based Linux Systems. This is based on the Ultra-Flat theme. Special thanks to @steftrikia and Satyajit Sahoo for the original work.
安装
- 先安装主题调整工具
1
sudo apt-get install unity-tweak-tool
- 在安装主题
1
2
3sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install flatabulous-theme - 安装图标
1
2
3sudo add-apt-repository ppa:noobslab/icons
sudo apt-get update
sudo apt-get install ultra-flat-icons //默认图标 - 后续
以上步骤操作完成之后使用第一步安装的工具来选择使用主题与图标
更多的错误调整以及图标选择查看该主题的github
任务栏位置
任务栏放置底部
1 | gsettings set com.canonical.Unity.Launcher launcher-position Bottom |
任务栏放置左边
1 | gsettings set com.canonical.Unity.Launcher launcher-position Left |
网络
ubuntu 重新获取IP
1 | sudo dhclient -r //释放IP |
收自我的搜狐
shadowsoks 配置
Ubuntu 安装 shadowsocks
1 | # 方式一 |
1 | # 方式二 |
启动ss客户端
1 | # 方式一 |
1 | # 方式二 //需预先在 etc/shadowsocks/config.json 中写入ip 密码 端口 加密方式 |
ss的config文件配置
1 | # 例子 |
编码
Rhythmbox 播放中文乱码解决
进入音乐文件夹下执行
`` mid3iconv -e GBK *.mp3 ``
若是有相应的依赖没有安装可以按照提示安装,
```
# 一般会提示安装的依赖
sudo apt-get install python-mutagen
```
收自111cn
swap
swap的开关
1 | # swap的人工干预 |
重置
重置系统键盘快捷键
在终端执行以下命令
1 | gsettings reset-recursively org.gnome.settings-daemon.plugins.media-keys |
然后重启即可
节能省电
intel CPU在linux下的节能模式
(暂无)
减小硬盘发热量
输入sudo hdparm -B /dev/sda
,可以获得APM_level
的数值。
一般来说,系统默认为254,表示硬盘性能最大化。此时发热量也很大。APM_level的全称为Advanced power Mangement leve(高级电源管理级别)。
1 | APM的取值为1~255,值越大硬盘性能越高。 |
设置APM的值sudo hdparm -B 128 /dev/sda
,为了在开机的时候也生效,可以在/etc/rc.local
中加入设置指令;若是还不生效还可以在/etc/hdparm.conf
中加入
1 | /dev/sda{ |
另外。需要注意,当采用APM后,需要查看Load_Cycle_Count的值。
1 | sudo smartctl -a /dev/sda | grep Load_Cycle_Count |
若是显示的值的大小,每分钟都有增加,就应该还原数值为254,并立刻重启。因为,磁头频繁的Load/Unload同样会影响硬盘寿命,一般硬盘设计能承受的加载循环计数Load_Cycle_Count最多为600000次.
本方案参考自my.oschina.net,经试验在Ubuntu
Ubuntu 常用指令
通过终端执行复制、删除
1 | # 复制 |
特定软件的安装、卸载及其它问题
chrome 的完全卸载
卸载chrome 主程序
1 | sudo apt-get remove google-chrome-stable |
卸载 chrome的配置信息
1 | # 依次到下列文件夹中 删除相关配置信息 |
清理残留快捷方式
1 | # 依次到下列文件夹中清理相应的残留信息 |