[关闭]
@mwumli 2017-11-27T11:11:27.000000Z 字数 3016 阅读 1702

Ubuntu 16.04

ubuntu


输入法

主题修改工具

sudo apt-get install unity-tweak-tool gnome-tweak-tool

主题和icons

将喜欢的主题和icons 放入主题目录或 icons 目录, 就完成了主题的安装和icons的安装

主题目录: /usr/share/themes/
icons目录: /usr/share/icons/

使用 unity-tweak-toolgnome-tweak-tool 启用, 安装的主题和icons才能生效

MacOs 主题 和 icons:

# 添加源
sudo add-apt-repository ppa:noobslab/macbuntu
# 更新源
apt-get update
# 下载图标
apt-get install macbuntu-os-icons-lts-v7
# 下载主题
apt-get install macbuntu-os-ithemes-lts-v7
# 安装 Albert : 累 Mac 的 Spotlight
sudo apt-get install albert
# 安装 Slingscold : 类 Mac 的应用展示面板
sudo apt-get install slingscold
# 安装 Plank : 类 Mac 的 Docky
# macbuntu-os-plank-theme-lts-v7 是 Plank 主题
apt-get install plank macbuntu-os-plank-theme-lts-v7

使用更新的 macbuntu-os 版本

终端工具

dotfiles: https://github.com/MwumLi/dotfiles

基本构建环境

sudo apt-get install -y build-essential

zsh

重启或注销生效

# 安装 zsh
sudo apt-get install zsh
# 切换 zsh 为默认 shell
chsh -s /bin/zsh
# zsh 配置方案:  oh-my-zsh
# oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    # or
    sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

vim

# 安装 vim
sudo apt-get install vim
# Space-vim : https://github.com/liuchengxu/space-vim
bash <(curl -fsSL https://raw.githubusercontent.com/liuchengxu/space-vim/master/install.sh)

# vim8
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt-get install vim

# 卸载 vim8
sudo apt install ppa-purge && sudo ppa-purge ppa:jonathonf/vim

ubuntu 16.04下编译全功能vim8.0
编译vim8并添加对lua,python,ruby的支持

Visual Studio Code

全局安装 typescript: sudo npm install -g typescript
Visual Studio Code: https://code.visualstudio.com/

网络

# wget, curl 都是下载工具
sudo apt-get install wget curl

版本管理工具

# git: 当今最流行的版本管理工具
sudo apt-get install git

tmux

# 安装 tmux: 
sudo apt-get install tmux

卸载 libreoffice

sudo apt-get remove libreoffice-common

wps-office

wps-office for Linux

Zim Wiki

笔记类应用: http://zim-wiki.org/index.html

Redshift

Ubuntu Software 搜索安装

微信

https://github.com/geeeeeeeeek/electronic-wechat
https://github.com/geeeeeeeeek/electronic-wechat/releases

Docker

Get Docker CE for Ubuntu

aria2 - 下载工具

http://www.dreamxu.com/books/software/aria2/index.html

mpv

视频播放器: https://mpv.io/

chrome

官方站点: https://www.google.cn/chrome/browser/desktop/index.html

External links are opened as blank tabs in new browser window in Chrome

Questions

Linux 下 zip 文件解压乱码如何解决?

由于zip格式中并没有指定编码格式,Windows下生成的zip文件中的编码是GBK/GB2312等,因此,导致这些zip文件在Linux下解压时出现乱码问题,因为Linux下的默认编码是UTF8。
以下是使用 python 写的解压程序(Windows 用户屏蔽两条 print 语句,Linux 用户不用屏蔽):

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys
import zipfile

#print "Processing File " + sys.argv[1]

file=zipfile.ZipFile(sys.argv[1],"r");
for name in file.namelist():
    utf8name=name.decode('gbk')
#    print "Extracting " + utf8name
    pathname = os.path.dirname(utf8name)
    if not os.path.exists(pathname) and pathname!= "":
        os.makedirs(pathname)
    data = file.read(name)
    if not os.path.exists(utf8name):
        fo = open(utf8name, "w")
        fo.write(data)
        fo.close
file.close()

### 终端下如何使用文件管理器打开一个文件夹?

function opendir() {
    nautilus $* > /dev/null 2>&1
}

或者 xdg-open

参考

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注