体验ubuntu,windows双系统

简介: 体验ubuntu,windows双系统

大家好,这里是七七,今天来分享一下安装双系统的经历,这不是用虚拟机来运行哦。


一、安装过程


首先是下载一个ubuntu(对于新手建议下载ubuntu kylin,这是国产的哦)的镜像,并且对内存进行压缩、分区。然后用Win30 Disk Imager来将系统搞到自己的U盘,之后就是进入BIOS模式设置U盘优先读取,再后就是安装Ubuntu了,根据先前分好的区来安装。详细可以看B站的这个视频:下载安装镜像工具_哔哩哔哩_bilibili


二、使用Ubuntu过程


1、下载Docker


先来下载Docker的原因是之前我在windows下载过一次Docker,下载过程很繁琐,不是很友好,因此想在Linux下再一次Docker,对比一下两个环境的差别。


有两种方式都可以下载


方法一: 这种方式是从apt源安装docker.io,但版本比较旧

sudo apt-get install docker.io


方法二:用官方提供的安装脚本,可以安装最新的Docker.安装命令如下

sudo apt-get install curl
curl -sSl https://get.docker.com/ | sh


安装完成后,通过如下命令启动Docker的守护进程

sudo service docker start docker start/running. process 3050


然后,通过如下脚本检查Docker是否安装成功

sudo docker run hello-world


若成功,则会出现下列代码

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c1ec31eb5944: Pull complete 
Digest: sha256:ac69084025c660510933cca701f615283cdbb3aa0963188770b54c31c8962493
Status: Downloaded newer image for hello-world:latest
 
Hello from Docker!
This message shows that your installation appears to be working correctly.
 
To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.
 
To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash
 
Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/
 
For more examples and ideas, visit:
 https://docs.docker.com/get-started/


如果不想每次运行Docker都是用sudo权限,可以把用户加到Docker组中。例如我的用户名为a,则添加命令如下

sudo usermod -aG docker a


充气后生效,再次执行Docker的指令,直接输入“docker xx”,不需要加“sudo”了。


现在在Ubuntu下的Docker已经安装成功了。


三、对比两个系统的差距


对于日常生活来说,WIndows确实更好,Linux系统的优势在于其优雅的操作方式以及一些功能,软件的简易实现性。

相关文章
|
1月前
|
Ubuntu Linux 数据安全/隐私保护
Windows11 使用 WSL2部署Ubuntu
在管理员PowerShell中运行命令启用Windows子系统Linux和虚拟机平台,但安装Ubuntu时遇到错误。解决方法是下载NoLsp_fix_WSL2工具,以管理员权限进入其目录,使用工具指向WSL的路径(例如 `C:\windows\system32\wsl.exe`)进行修复,然后能成功打开Ubuntu。
39 4
|
1月前
|
Ubuntu 关系型数据库 MySQL
使用Ubuntu和Windows电脑实现Mysql主从同步(详细操作步骤)
使用Ubuntu和Windows电脑实现Mysql主从同步(详细操作步骤)
30 2
|
3月前
|
存储 Shell Windows
安装OSX和Windows双系统以后系统时间不同步的问题
安装OSX和Windows双系统以后系统时间不同步的问题
42 0
|
3月前
|
Ubuntu 网络协议 Linux
如何在无公网IP环境使用Windows远程桌面Ubuntu
如何在无公网IP环境使用Windows远程桌面Ubuntu
61 0
|
3月前
|
Ubuntu Linux Windows
两种Ubuntu和Windows互相共享文件夹的方法
两种Ubuntu和Windows互相共享文件夹的方法
|
3月前
|
存储 Ubuntu Linux
windows可以安装Ubuntu,ubuntu上也可以安装Powershell
powerhsell除了可以在windows上使用外,还可以在Ubuntu上部署开发环境。下面介绍Ubuntu上安装powershell的方法。
51 0
|
Windows PHP Linux
【转】折腾好windows 7和windows 2003双系统
原文地址:http://www.ideaduo.com/archives/184/ Windows 7 RTM刚出来的时候,我就迫不及待的装了,经过一段时间的使用,基本上顺手,就是有一点不好,在本地测试php程序的时候,访问速度比原来慢了很多。
683 0
|
1月前
|
安全 数据安全/隐私保护 Windows
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
解锁安全之门,Windows Server 2019密码修改攻略大揭秘