623 字
3 分钟
简单的一天
今天没有死,配置了我的ubuntu
配置了miniconda
minicoda管理我的环境
配置了Gdebi
Gdebi管理我的deb包,Gdebi比单纯的apt和dpkg好多了自动配置需要的环境
配置了flatpak
flatpak下载平时使用的软件
配置了vscode,git
vscode编写代码
将我的博客从windows转移到ubuntu
用git上传我的博客 博客开源:
Waiting for api.github.com...
现在的配置代码
zcw@ubuntu:~$ history 1 sudo apt update 2 suao apt upgrade -y 3 sudo apt upgrade -y 4 sudo apt install git curl build-essential -y 5 sudo apt update 6 sudo apt install flatpak 7 flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 8 sudo apt install gnome-software-plugin-flatpak 9 flatpak install flathub com.github.tchx84.Flatseal 10 history 11 cd 12 git -version 13 git --version 14 gcc -v 15 gcc -v 16 python3 --version 17 pip --version 18 sudo apt update 19 sudo apt install python3-pip 20 sudo apt install python3-venv 21 wget https://repo.anaconda.com/miniconda/Miniconda3-py311_23.11.0-2-Linux-x86_64.sh 22 sh Miniconda3-py311_25.7.0-2-Linux-x86_64.sh 23 rm ~/Miniconda3-py311_23.11.0-2-Linux-x86_64.sh 24 wget https://repo.anaconda.com/miniconda/Miniconda3-py311_25.7.0-2-Linux- 25 x86_64.sh 26 wget https://repo.anaconda.com/miniconda/Miniconda3-py311_25.7.0-2-Linux- 27 x86_64.sh 28 wget https://repo.anaconda.com/miniconda/Miniconda3-py311_25.7.0-2-Linux- 29 x86_64.sh 30 wget https://repo.anaconda.com/miniconda/Miniconda3-py311_25.7.0-2-Linux-x86_64.sh 31 ls 32 sh Miniconda3-py311_25.7.0-2-Linux-x86_64.sh 33 sudo apt update && sudo apt install gedit -y 34 gedit .bashrc 35 source ~/.bashrc 36 gedit ~/.bashrc 37 conda config --set auto_activate false 38 source ~/.bashrc 39 conda --version 40 conda create -n lerobot python=3.10.18 ffmpeg=7.1.1 -c conda-forge 41 conda env list 42 conda activate lerobot 43 python --version 44 python 45 python3 46 /home/zcw/miniconda3/envs/lerobot/bin/python /home/zcw/Vscode/Python/hello.py 47 conda activate lerobot 48 /home/zcw/miniconda3/envs/lerobot/bin/python /home/zcw/Vscode/Python/hello.py 49 /bin/python3 /home/zcw/Vscode/Python/hello.py 50 cd /home/zcw/Vscode/Python 51 code . 52 ls 53 conda create -n blog -c conda-forge nodejs=20 54 conda activate blog 55 npm install -g pnpm 56 ls -a 57 ls 58 git clone https://github.com/cwzhong627-source/my-blog.git . 59 pnpm install 60 pnpm dev 61 conda activate blog 62 pnpm dev 63 rm -rf node_modules 64 pnpm install 65 pnpm dev 66 /bin/python3 /home/zcw/Vscode/Python/hello.py 67 conda activate blog 68 conda activitate blog 69 conda activate blog 70 touch mail.txt 71 ls /etc 72 sudo mkdir -p /etc/apt/keyrings 73 curl -fsSL https://typoraio.cn/linux/typora.gpg | sudo tee /etc/apt/keyrings/typora.gpg > /dev/null 74 echo "deb [signed-by=/etc/apt/keyrings/typora.gpg] https://typoraio.cn/linux ./ " | sudo tee /etc/apt/sources.list.d/typora.list 75 sudo apt update 76 sudo apt install typora 77 git init 78 git remote add origin git@github.com:cwzhong627-source/my-blog.git 79 git remote remove origin 80 git remote add origin git@github.com:cwzhong627-source/my-blog.git 81 git remote -v 82 git push -u origin main 83 git push -f origin main 84 git config --global user.name "cwzhong627-source" 85 git config --global user.email "cwzhong627@gmail.com" 86 ssh-keygen -t ed25519 -C "cwzhong627@gmail.com" 87 cat ~/.ssh/id_ed25519.pub 88 ssh -T git@github.com 89 unzip my-blog-main.zip 90 pnpm dev 91 git clone https://github.com/cwzhong627-source/my-blog.git 92 git clone git@github.com:cwzhong627-source/my-blog.git 93 rm -rf my-blog 94 gedit bolg.txt 95 git remote add origin https://github.com/cwzhong627-source/my-blog.git 96 git init 97 git remote add origin https://github.com/cwzhong627-source/my-blog.git 98 git fetch --all 99 git reset --hard origin/main 100 npm install 101 history 102 conda activate blog 103 pnpm dev 104 pnpm install 105 pnpm dev 106 cd /home/zcw/Vscode/ 107 rm -rf Blog 108 pnpm create astro@latest Blog --template saicaca/fuwari 109 cd Blog 110 git clone https://github.com/saicaca/fuwari.git Blog 111 cd Blog 112 rm -rf .git 113 git init 114 git branch -M main 115 pnpm install 116 pnpm dev 117 pnpm build 118 code /home/zcw/Vscode/Blog/src/styles/markdown.css 119 pnpm build 120 code /home/zcw/Vscode/Blog/src/styles/markdown.css 121 pnpm dev 122 git add . 123 git commit -m "Fix markdown css issue" 124 git push 125 git remote add origin https://github.com/cwzhong627-source/my-blog.git 126 git branch -M main 127 git push -u origin main --force 128 conda activate blog