13.virtualbox安装ubuntu

文章目录

1.virtualbox如何实现unbuntu与windows主机共享粘贴板和拖拽文件

1.安装unbuntu时安装guest addtion

2.打开配置

2.设置语言

shell 复制代码
#安装vim
sudo apt install vim
#把所有zh开头的注释都放开
sudo vim /etc/locale.gen 
# 添加如下内容
sudo vim /etc/default/locale  


#内容
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
LC_ALL="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"

#重启
reboot

3.设置键盘选择中文拼音

4.设置unbuntu国内镜像源

bash 复制代码
# 备份原始配置
sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak

# 编辑配置文件

sudo vim /etc/apt/sources.list.d/ubuntu.sources

#添加如下内容
Types: deb
URIs: https://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-backports noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg


#更新软件包列表
sudo apt update

参考

相关推荐
幸福指北9 小时前
我用 Tauri + Vue 3 + Rust 开发了这款跨平台网络连接查看工具PortView,性能炸裂!
运维·网络·监控
V__KING__10 小时前
systemd-remount-fs,fstab之间的渊源
linux·服务器·网络
酿情师10 小时前
Windows Subsystem for Linux (WSL, Ubuntu)安装教程(详细)
linux·windows·ubuntu
Titan202411 小时前
Linux环境变量个人笔记
linux·服务器·c++
青柠代码录11 小时前
【Linux】路径区分:testdir、testdir/、testdir/*
linux·运维·服务器
7yewh11 小时前
jetson_yolo_deployment 02_linux_dev_skills
linux·python·嵌入式硬件·yolo·嵌入式
djarmy11 小时前
ubuntu20.04搭建openharmony6.0的master分支。构建编译环境报错解决记录
c语言·ubuntu
supersolon11 小时前
Windows下WSL(Ubuntu24.04)安装Nodejs
linux·ubuntu·node.js
进击切图仔12 小时前
跨系统时间戳同步问题解决总结
linux
Benszen12 小时前
Docker容器化解决方案全解析
运维·docker·容器