deepin装机指南

基本使用

F1 呼出帮助手册
https://wiki.deepin.org/index.php?title=%E9%A6%96%E9%A1%B5##

Nautilus 文件管理器快捷键

Win + E
http://blog.deepin.org/2013/11/nautilus-shortcuts-on-linux-deepin/

更换阿里云apt源

备份系统源

1
2
cd /etc/apt
sudo cp sources.list sources.list_bak

查看codename

1
lsb_release -a

添加以下内容

1
2
3
4
5
6
7
8
9
10
deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe

更新

1
sudo apt-get update

安装zsh

配置oh-my-zsh

https://github.com/robbyrussell/oh-my-zsh

1
2
sudo apt-get install zsh -y
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

安装git

安装

1
sudo apt-get install git

配置github

1
2
git config --global user.email "test@163.com"
git config --global user.name "Your Name"

生成密钥

1
ssh-keygen -t rsa -Cyouremail@163.com

将公钥放入github配置中

最后验证一下

1
ssh -T git@github.com

安装nodejs

下载预编译版本

在安装hexo时遇到了问题,建议下载源码编译安装

1
2
node-v4.4.0-linux-x64 sudo ln -s /opt/node-v4.4.0-linux-x64/bin/npm /usr/local/bin/npm
node-v4.4.0-linux-x64 sudo ln -s /opt/node-v4.4.0-linux-x64/bin/node /usr/local/bin/node

下载源码编译

1
2
3
./configure
make
sudo make install

安装hexo

1
2
npm install -g hexo
npm install hexo-cli -g

安装sublime

官网下载deb包安装

解决输入法问题

略-> 改用gedit

字体安装

Ubuntu字体文件安装与配置
http://blog.sina.com.cn/s/blog_6d17727d0101canz.html

sudo apt-get install msttcorefonts

这些字体里面包含如下字体
Andale Mono, Arial, Comic Sans MS, Courier New,GeorgiaImpact, Times New Roman, Trebuchet MS,Verdana, Webdings
这些字体安装在”/usr/share/fonts/truetype /msttcorefonts”目录之下。

公钥问题

http://www.2cto.com/os/201305/210845.html

以下 ID 的密钥没有可用的公钥

1
2
gpg --keyserver subkeys.pgp.net --recv 3B4FE6ACC0B21F32
gpg --export --armor 3B4FE6ACC0B21F32 | sudo apt-key add -

正在读取软件包列表… 完成
W: GPG 错误:http://mirrors.aliyun.com/ubuntu trusty-backports InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository ‘http://mirrors.aliyun.com/ubuntu trusty-backports InRelease’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: 以下 ID 的密钥没有可用的公钥:
40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG 错误:http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository ‘http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: 以下 ID 的密钥没有可用的公钥:
40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG 错误:http://mirrors.aliyun.com/ubuntu trusty-security InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository ‘http://mirrors.aliyun.com/ubuntu trusty-security InRelease’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: 以下 ID 的密钥没有可用的公钥:
40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG 错误:http://mirrors.aliyun.com/ubuntu trusty-updates InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository ‘http://mirrors.aliyun.com/ubuntu trusty-updates InRelease’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: 以下 ID 的密钥没有可用的公钥:
40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG 错误:http://mirrors.aliyun.com/ubuntu trusty Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: The repository ‘http://mirrors.aliyun.com/ubuntu trusty Release’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: 以下 ID 的密钥没有可用的公钥:
40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32

安装输入法

sudo apt-get install fcitx
然后用
./fcitx-configtool
安装 google pinyin (goole拼音)

安装chromium

1
sudo apt-get install chromium-browser

安装chrome

一、添加PPA

从Google Linux Repository(http://www.google.com/linuxrepositories/)下载安装Key,或把下面的代码复制进终端,回车,需要管理员密码

1
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Key安装好后,在终端输入:

1
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

二、更新

1
sudo apt-get update

三、安装

1
2
3
4
5
安装稳定版Chrome,在终端输入:sudo apt-get install google-chrome-stable
安装Beta版Chrome,在终端输入:sudo apt-get install google-chrome-beta
安装不稳定版Chrome,在终端输入:sudo apt-get install google-chrome-unstable

Debian 快捷键设置

在设置->键盘->快捷键->自定义快捷键->添加 名称:Terminal 命令:gnome-terminal 再右上边点击后 按 Ctrl +Alt +T

修复lantern

1
sudo apt-get install libappindicator3-1

安装pip

1
2
3
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv

解决adwaita主题问题

安装以下软件

1
2
3
adwaita-icon-theme - default icon theme of GNOME
gnome-themes-standard - Adwaita GTK+ 2 theme — engine
gnome-themes-standard-data - Adwaita GTK+ 2 theme — common files

VirtualBox增强功能安装

设备->安装增强功能

1
sudo ./VBoxLinuxAdditions.run

ePub Reader 阅读器

okular
Linux上的一款EPUB阅读软件
http://itbyc.com/server/14953.html

参考资料

[1] apt源更换
[2] 公钥问题