一、安裝Fcitx5
最簡(jiǎn)單三步驟,把下面的命令都跑一遍之后重啟電腦,不要去下載搜狗輸入法,非常垃圾
- Fcitx 5 主程序
- 中文輸入法引擎
- 圖形界面相關(guān)
sudo apt install fcitx5
sudo apt install fcitx5-chinese-addons
sudo apt install fcitx5-frontend-gtk3 fcitx5-frontend-gtk2
sudo apt install fcitx5-frontend-qt5 kde-config-fcitx5
im-config
轉(zhuǎn)載自掘金
二、安裝 & 配置 vscode
- 安裝的兩種方法:
-
官網(wǎng)選擇deb安裝包
cd進(jìn)安裝包目錄運(yùn)行sudo dpkg -i code_1.83.1-1696982868_amd64.deb
- 直接在ubuntu software里搜索vscode安裝
- 配置 & 遷移vscode數(shù)據(jù)的兩種方法
-
[ 1 ] 手動(dòng)復(fù)制
插件: 目錄為C:\Users(用戶)\Administrator(你的用戶名).vscode\extensions, 把此文件夾復(fù)制過去, 就相當(dāng)于把你安裝的插件復(fù)制過去了.
快捷鍵:快捷鍵的配置文件在用戶數(shù)據(jù)里, 目錄是C:\Users(用戶)\Administrator(你的用戶名)\AppData\Roaming\Code\User, 建議把整個(gè)文件夾復(fù)制過去. 里面還包括你的一些自定義設(shè)置, 比如界面語言等.
轉(zhuǎn)載自簡(jiǎn)書 -
[ 2 ] vscode設(shè)置遷移
舊電腦將vscode更新至最新版后登陸github帳號(hào)后開啟同步功能,再在新電腦也勾選上這一功能就可以直接把vscode插件 & 一系列設(shè)置等遷移
轉(zhuǎn)載自csdn
三、 flameshot不能正常使用,選區(qū)功能issue解決
問題的產(chǎn)生主要因?yàn)閒lameshot不能很好地支持Ubuntu22默認(rèn)使用Wayland顯示協(xié)議,這在flameshot未來的迭代中應(yīng)該會(huì)得到解決。我們現(xiàn)在將協(xié)議換成X11即可。
solution:
- 編輯 /etc/gdm3/custom.conf 文件,將WaylandEnable=false前的注釋去掉,保存,表示不再使用Wayland
sudo vim /etc/gdm3/custom.conf
之后重啟gdm3,使設(shè)置生效就好了(這一步會(huì)直接注銷,記得保存一下現(xiàn)有工作
sudo systemctl restart gdm3
轉(zhuǎn)載自知乎
四、ubuntu22.04下載微信
- 使用wget下載優(yōu)麒麟的deb包
wget http://archive.ubuntukylin.com/software/pool/partner/ukylin-wechat_3.0.0_amd64.deb
wget http://archive.ubuntukylin.com/software/pool/partner/ukylin-wine_70.6.3.25_amd64.deb
- 到已下載文件的文件夾下,分別執(zhí)行如下命令,安裝微信并自動(dòng)安裝對(duì)應(yīng)依賴。
sudo apt-get install -f -y ./ukylin-wine_70.6.3.25_amd64.deb
sudo apt-get install -f -y ./ukylin-wechat_3.0.0_amd64.deb
轉(zhuǎn)載自知乎
五、下載mysql很簡(jiǎn)單,一條命令就好了
sudo apt install mysql-client-core-8.0
六、 下載workbench
直接官網(wǎng)下載了deb包之后運(yùn)行以下命令
sudo dpkg -i mysql-workbench-community_8.0.33-1ubuntu22.04_amd64.deb
注意自己輸命令的時(shí)候dpkg和后面的-i有空格
七、yarn工具安裝
下面代碼都跑一遍
sudo apt update
sudo apt install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
運(yùn)行以下命令來安裝Yarn的依賴項(xiàng)
導(dǎo)入Yarn的GPG密鑰
添加Yarn的APT存儲(chǔ)庫
更新包列表
安裝Yarn
八、安裝配置zsh
簡(jiǎn)單幾步安裝,將下列命令都跑一遍
1、查看可用shell & 查看當(dāng)前默認(rèn)shell命令
cat /etc/shells
echo $SHELL
2、下載安裝zsh & oh my zsh
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
3、切換默認(rèn)shell為zsh
chsh -s /bin/zsh
這個(gè)命令跑了之后可能需要注銷電腦之后再重新打開終端才生效
4、配置zsh
[自動(dòng)補(bǔ)全插件]
a.先下載# git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
b.編輯.zshrc文件
找到plugins=(git),更改為plugins=(git zsh-autosuggestions),沒有就自己添加進(jìn)去文章來源:http://www.zghlxwxcb.cn/news/detail-810072.html
[zsh顯示git分支]
向.zshrc文件文件中添加代碼文章來源地址http://www.zghlxwxcb.cn/news/detail-810072.html
function parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
setopt PROMPT_SUBST
export PROMPT='%F{grey}%n%f %F{cyan}%~%f %F{green}$(parse_git_branch)%f %F{normal}$%f '
到了這里,關(guān)于ubuntu 22.04配置開發(fā)環(huán)境 [Fcitx5中文輸入法+配置 & 遷移vscode & 安裝flameshot & 微信 & mysql &workbench & yarn工具 & zsh]的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!