放肆青春的博客
首页
前端
算法
网络
面试
技术
后端
运维
杂项
数据库
工具
网址
电脑
个人
文章
  • 分类
  • 标签
  • 归档
github (opens new window)
gitee (opens new window)

放肆青春

一个前端菜鸟的技术成长之路
首页
前端
算法
网络
面试
技术
后端
运维
杂项
数据库
工具
网址
电脑
个人
文章
  • 分类
  • 标签
  • 归档
github (opens new window)
gitee (opens new window)
  • 服务器

    • nginx

      • nginx
    • 服务器总结
    • tomcat
    • 本地搭建 web 服务器
  • linux

    • linux 命令
    • manjaro
  • ubuntu

    • ubuntu
      • ubuntu
        • 安装 vmware tools
        • Ubuntu 输入 su 提示认证失败(修改超级管理员密码)
        • Ubuntu 更换成国内的源
        • Ubuntu 新建新用户(xxx 为用户名)
        • MobaXterm 连接 Ubuntu
        • windows 访问 ubuntu web 服务器
        • ubuntu 开机启动
    • ubuntu问题汇总
    • ubuntu 软件安装
    • Docker
    • ubuntu gitlab
    • java
    • jenkins
    • ngnix
    • tomcat
    • windows上的ubuntu子系统
  • docker

    • docker
    • centos docker安装
  • blog

    • vmware
  • devops
放肆青春
2020-07-29

ubuntu

# ubuntu

# 安装 vmware tools

    1. 登陆进入 ubuntu 桌面。选择“虚拟机”->“安装 vmware tools”VMware tools
    1. 双击桌面的“vmware tools”,打开 vmware tools 安装介质。右键选择 vmwaretools 的 gz 压缩包,
    1. 将该文件复制到 temp 文件夹,至于复制到什么文件夹。大家可以自行选择。
    1. 右键点击该文件,选择“提取到此处”
    1. 打开解压后的 vmwaretools 文件夹,右键点击 vmware-tools-distrib 文件夹,选择“在终端打开”
    1. 在终端的命令窗口当中,输入 sudo ./vmware-install.pl 命令。输入用户密码回车开始安装。出现第一个画面时,选择“y”回车。
    1. 一路回车/yes 进行安装
    1. 重启电脑,重新进入,安装 vmware tools 即生效

# Ubuntu 输入 su 提示认证失败(修改超级管理员密码)

  • sudo passwd
  • [sudo] roninwz 的密码: 输入安装时那个用户的密码
  • 输入新的 UNIX 密码:
  • 重新输入新的 UNIX 密码:
  • passwd:已成功更新密码

# Ubuntu 更换成国内的源

  • 切换 root 用户 : su
  • mv /etc/apt/sources.list /etc/apt/sourses.list.backup (备份)
  • 新建源文件 vi /etc/apt/sources.list
  • 加入源地址(推荐用阿里云源)
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
1
2
3
4
5
6
7
8
9
10
  • 更新软件列表 sudo apt-get update

  • 更新软件(把已安装的软件与刚刷新的软件列表中的版本进行对比,如果发现已安装的软件版本太低,就会提示更新) sudo apt-get upgrade

# Ubuntu 新建新用户(xxx 为用户名)

  • ubuntu18 添加一个用户

    useradd -m xxx -d /home/xxx -s /bin/bash

  • 为新用户设置密码

    passwd xxx

  • 为新用户设置 sudo 权限

    sudo vim /etc/sudoers

  • 在文件中 root 下新加入以下内容

root ALL=(ALL:ALL) ALL
xxx ALL=(ALL:ALL) ALL
1
2

# MobaXterm 连接 Ubuntu

  • 安装 net-tools 使用 ifconfig 命令

    sudo apt install net-tools

  • ifconfig -a 查看 ip

  • MobaXterm 创建 session->SSH

  • Remote Host 填入 ubuntu ip

  • Specify username 选中,添加一个新用户(用户名密码为 Ubuntu 登陆的用户)

# windows 访问 ubuntu web 服务器

    1. 设置 VMware 虚拟机的网络模式为桥接模式(虚拟机-> 设置-> 网络适配器->桥接模式)
    1. 服务器端在 ubuntu 中启动 web 服务器
    1. 客户端打开 chrome,访问http://Ubuntu的ip(:Ubuntu中使用ifconfig查看):端口号

# ubuntu 开机启动

http://www.r9it.com/20180613/ubuntu-18.04-auto-start.html (opens new window)

更新时间: 12/21/2021, 3:54:38 PM
manjaro
ubuntu问题汇总

← manjaro ubuntu问题汇总→

最近更新
01
前端权限管理
02-24
02
vue2指令
02-24
03
vue2 hook
02-24
更多文章>
Theme by Vdoing | Copyright © 2019-2022 放肆青春
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式