0x01 Background
Now, I've got a new air book(m1), and the old mbp(mid2014) was totally useless.
So, I installed Ubuntu on the mbp for linux c coding purpose.
Wubi has not been installed, so I'll write it down in English for the moment.
0x02 Install Ubuntu
- Download image at office site (Ubuntu 20.04 Desktop)
- Download windows image write software : rufus
- Need a usb3.0 32G USB
- Fire ubuntu image to usb in Windows 10.
reboot mbp, press "option", select usb boot.
select minimum install, and check 3rd part software install(drivers)
0x03 Change Caps and Ctrl key
sudo vim /etc/default/keyboard
XKBOPTIONS="ctrl:swapcaps"
# reboot
init 6
0x03 Dev Tools
sudo apt install git vim emacs curl net-tools
# install gcc , cmake
sudo apt install build-essential cmake
# download clion from jetbrans.com
0x04 Zsh
# install zsh
sudo apt install zsh
# install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install zsh plugin
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-autosuggestions.git
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
# config zsh
vim ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
0x05 Some libs
sudo apt install libjsoncpp-dev uuid-dev zlib1g-dev libssl-dev openssl
till here, we had already finished c/cpp development env settings.
0x06 Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i ./*.deb
网友评论