Ubuntu配置記錄

2021-10-20 11:49:34 字數 2306 閱讀 4745

1. 中文版ubuntu修改桌面資料夾為desktop

sudo gedit ~/.config/user-dirs.dirs
2. 配置ssh
sudo

apt-get

install openssh-server

(安裝對應依賴,例如:sudo apt-get install openssh-client=1:6.6p1-2ubuntu2.13)

a. 開啟ssh

systemctl start ssh
b. 設定開機自啟動

systemctl enable

ssh

3. 安裝python3.8 和 pip

a.安裝python

sudo apt update

sudo apt install software-properties-common

sudo add-apt-repository ppa:deadsnakes/ppa

sudo apt update

sudo apt install python3.8

sudo

ln -s /usr/bin/python3.8 /usr/bin/python3

b.安裝pip3

sudo apt install python3-pip

sudo apt install python3.8-gdbm

sudo apt install python3.8-distutils

pip3 install --upgrade pip

sudo apt remove python3-pip

sudo python3.8 -m easy_install pip

c.pip換源

mkdir ~/.pip

gedit ~/.pip/pip.conf

[global]

index-url =

4. linux開機自啟動
gnome-session-properties
在選項中新增自動執行命令

ps:向日葵開啟自啟動命令:

/usr/local/sunlogin/bin/sunloginclient

5. ubuntu自動安裝依賴包命令
sudo apt -f install
6. v4l2-ctl安裝

a. 安裝

sudo apt install v4l-utils
b. 檢視usb攝像頭

v4l2-ctl --list-devices
7. 更換apt清華源
sudo gedit /etc/apt/sources.list
deb bionic main restricted universe multiverse

# deb-src bionic main restricted universe multiverse

deb bionic-updates main restricted universe multiverse

# deb-src bionic-updates main restricted universe multiverse

deb bionic-backports main restricted universe multiverse

# deb-src bionic-backports main restricted universe multiverse

deb bionic-security main restricted universe multiverse

# deb-src bionic-security main restricted universe multiverse

sudo

apt-get update

8. 解決no module named 'apt_pkg』問題
cd /usr/lib/python3/dist-packages/

ln -s apt_pkg.cpython-36m-x86_64-linux-gnu.so apt_pkg.so

配置記錄ubuntu

1 conda換源 vim condarcchannels default ssl verify true2 pip換源 pip install django i vim pip pip.conf global index url install trusted host pypi.tuna.tsi...

ubuntu配置vsftpd記錄

基本上,我是按照這篇文章來做的,當然中間還參考了一些別的教程,最終雖然跑起來了,但不完全合我的意,這玩意在windows上玩serveru和filezilla簡單爆了,到linux上腫麼就這麼複雜 基本步驟 安裝 配置 新增 系統使用者 新增組 設定目錄許可權 如果按照教程跑起來了,你的 etc目錄...

Ubuntu配置vim過程記錄

問題 ubuntu預設沒有安裝vim,出現 root ubuntu vim test.c the program vim can be found in the following packages vim vim gnome vim tiny vim athena vim gtk vim nox ...