Ubuntu配置清單

1. username不在sudoers文件中。此事將被報告?

登錄到root用戶

sudo vi /etc/sudoers
在 root ALL=(ALL:ALL) ALL
下面輸入:
username ALL=(ALL:ALL) ALL

之后 wq! 退出

2. docker

官方文檔:https://docs.docker.com/install/linux/docker-ce/ubuntu/

(1) 安裝依賴:
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

(2) Manage Docker as a non-root user

The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The Docker daemon always runs as the root user.

If you don’t want to preface the docker command with sudo, create a Unix group called docker and add users to it. When the Docker daemon starts, it creates a Unix socket accessible by members of the docker group.
To create the docker group and add your user:

Create the docker group.

$ sudo groupadd docker

Add your user to the docker group.

$ sudo usermod -aG docker $USER

Log out and log back in so that your group membership is re-evaluated.

If testing on a virtual machine, it may be necessary to restart the virtual machine for changes to take effect.

On a desktop Linux environment such as X Windows, log out of your session completely and then log back in.
Verify that you can run docker commands without sudo.

$ docker run hello-world

This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits.

(3)檢查

檢查一下創(chuàng)建是否有效
cat /etc/group
退出當前用戶登陸狀態(tài),然后重新登錄,以便讓權限生效,或重啟docker-daemon
sudo systemctl restart docker

3. npm

sudo apt-get install npm
無可避免會安裝python2.7的依賴

4. VS code

來源:https://code.visualstudio.com/docs/setup/linux
在官網(wǎng)下載deb安裝包,然后

sudo apt install ./<file>.deb

4.redis

$ wget http://download.redis.io/releases/redis-5.0.4.tar.gz
$ tar xzf redis-5.0.4.tar.gz
$ cd redis-5.0.4
$ make

5. vmplayer

命令行啟動vmplayer
vmplayer -X "G:Linux\Ubuntu 64 位.vmx -X 為全屏啟動

6. 搜狗輸入法

Ctrl + 5 解決輸入中文選項出現(xiàn)亂碼的問題。

7.顯卡
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,872評論 0 10
  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,218評論 0 23
  • 和朋友玩狼人殺游戲,兩狼連著跳出來指認預言家是狼,預言家指認其中第一狼是狼。 我作為警長,因其中一只狼說了一句,投...
    有朵茉莉閱讀 408評論 0 0
  • 光滑的鱗片讓人伸手一摸就愛不釋手,只不過它并不喜歡別人的手在它的身上亂摸索。有的時候它不高興可能會走開,也可能會回...
    和藹的血型閱讀 427評論 2 3
  • 新的打卡周期開始了,新開始,希望我能堅持下來,并且真摯的對待。 看到以前一直關注的姐姐最新更新,她為了脫離手機電腦...
    脫胎換骨的小葫蘆閱讀 205評論 0 0

友情鏈接更多精彩內(nèi)容