How to build your Ubuntu environment for alwhales development?
- Install Ubuntu OS, with recommended disk. (See in Evernote for reference)
Download Ubuntu from: https://ubuntu.com/download
Install Ubuntu with the reference of: https://blog.csdn.net/aigou_/article/details/79944089
- Remove less commonly used software.
sudo apt purge libreoffice-common
sudo rm -f /usr/share/applications/com.canonical.launcher.amazon.desktop
# and so on.
- Set software server and update.(sudo apt update)
sudo apt update && sudo apt upgrade
- Login ubuntu account.
Go “Settings->Online Accounts->Ubuntu Single Sign-On”, and input your account information.
- Install fcitx framework and reboot.
sudo apt install fcitx
sudo apt install fcitx-config-common
- Install sogou input method for linux and reboot.
You must have the fcitx framework firstly!
Download install package from: https://pinyin.sogou.com/linux/?r=pinyin
Here is a install manual: https://pinyin.sogou.com/linux/help.php
After finish installation, you can run command below to setup the input method.
fcitx-configtool
-
Login Firefox with international account, download Chinese language package and then login evernote plugin with Chinese account (click “切换到印象笔记”).
-
Install goldenDict and configure the dictionary.
-
Install teamviewer and sign in.
-
Install markdown editor Typora.
# optional, but recommended
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
# add Typora's repository
sudo add-apt-repository 'deb http://typora.io linux/'
sudo apt-get update
# install typora
sudo apt-get install typora
- Configuration of Java environment.
You need to configure the java development environment:
# Download java SDK from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
tar -zxvf jdk-8u144-linux-x64.tar.gz
sudo mv jdk1.8.0_144 /usr/local
vim ~/.bashrc
# Edit the file
export JAVA_HOME=/usr/local/jdk1.8.0_144
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
# End of editing the file
source ~/.bashrc
# Test java environment
java -version
- Install trueStudio.
When you are asked to choose ‘1)Yes’ or ‘2)No’, please input ‘1’ or ‘2’ instead of ‘Yes’ or ‘No’.
- Install Qt4, Qt5, QtCreator and Qt document.
download from ‘http://download.qt.io/archive/’, and we recommand to down the lastest version of Qt, which is integrated with qtcreator.
- Insatll necessary development packages.
sudo apt install make, sudo apt-get install autoconf automake libtool
sudo apt-get install g++-multilib libx11-dev libxext-dev libxtst-dev zlib1g-dev lib32ncurses5 lib32z1 libpng-dev
- Install git
sudo apt install git
- Configuration of git
git config --global user.email "[email protected]"
git config --global user.name "Tao Wang"
- Generate public key and add to git:
ssh-keygen -t rsa -C "[email protected]"
cat ~/.ssh/id_rsa.pub
- Ubuntu解除开机出现:"输入密码以解锁密钥环”
一、删除现在密钥环
在终端输入seahorse打开管理密钥环的软件,视图->根据密码环 在密码区会有一个“登录”为名字的密钥环,右击将其删除。
二、添加新的密钥环
在终端输入seahorse打开管理密钥环的软件,文件->新建->密码和密钥->输入名字(这里是以”chrome”为例)。,密码设置为空,重启后问题得以解决。
- 在编译linux内核的时候,make menuconfig可能会报错,因此需要
sudo apt install libncurses5-dev