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)检查

检查一下创建是否有效
cat /etc/group
退出当前用户登陆状态,然后重新登录,以便让权限生效,或重启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
在官网下载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 解决输入中文选项出现乱码的问题。

7.显卡
ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,448评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,890评论 0 23
  • 和朋友玩狼人杀游戏,两狼连着跳出来指认预言家是狼,预言家指认其中第一狼是狼。 我作为警长,因其中一只狼说了一句,投...
    有朵茉莉阅读 344评论 0 0
  • 光滑的鳞片让人伸手一摸就爱不释手,只不过它并不喜欢别人的手在它的身上乱摸索。有的时候它不高兴可能会走开,也可能会回...
    和蔼的血型阅读 337评论 2 3
  • 新的打卡周期开始了,新开始,希望我能坚持下来,并且真挚的对待。 看到以前一直关注的姐姐最新更新,她为了脱离手机电脑...
    脱胎换骨的小葫芦阅读 195评论 0 0