Ubuntu Server 24.04 安装 (超详细)

本文详细介绍了如何在Windows上使用VMware Workstation Pro 17安装Ubuntu Server 24.04 LTS,包括镜像下载、虚拟机创建、安装过程、用户登录以及SSH远程连接等步骤。

一、镜像下载

方式1:英文官网下载

访问 Ubuntu官网,在Get Ubuntu菜单页面中,选择左侧"Server"分类,点击“Get Ubuntu Server" 按钮下载。

此处,我选择了最新的版本 24.04 LTS ,点“Download 24.04 LTS" 下载。

方式2:中文官网下载

访问Ubuntu中文官网,在“下载”菜单页面,默认是桌面版的下载页面,选择“服务器”二级菜单,点击“下载Ubuntu Server 24.04 LTS"。

二、虚拟机安装

本文在Windows操作系统使用VMware WorkStation pro 17 来安装Ubuntu Server 24.04 LTS 版本来演示。

1 创建虚拟机

打开VMware,点“创建新的虚拟机”。

选择“自定义(高级)”,点击下一步。

下一步。

选择下载的系统镜像文件(iso文件)。下一步。

配置虚拟机名称和存储的位置。然后点击下一步。

此处,我修改了存储路径。默认为C盘(系统盘),我更改为非系统盘。下一步。

处理器数量建议配置为1,内核数量默认为2,根据自己电脑CPU能力配置即可。我配置为4。 注意这个数值不要高于物理CPU的内核数量。

### Ubuntu Server 24.04 Installation Guide Step-by-Step Ubuntu Server 24.04 is the latest version of the popular Linux-based server operating system, and it provides a robust platform for deploying servers, containers, and cloud environments. Below is a comprehensive guide to installing Ubuntu Server 24.04 step-by-step. #### Preparation Before beginning the installation process, ensure that you have the following prerequisites in place: - A computer or virtual machine capable of running Ubuntu Server. - A USB drive (at least 8GB) or an ISO image of Ubuntu Server 24.04[^1]. - Internet access for package updates and additional software installations. #### Step 1: Downloading the ISO Image Download the official Ubuntu Server 24.04 ISO image from the [Ubuntu website](https://ubuntu.com/download/server). This ensures that you are using a verified and secure source for your installation media[^1]. #### Step 2: Creating a Bootable USB Drive Use tools like **Rufus** (for Windows) or **balenaEtcher** (cross-platform) to create a bootable USB drive with the downloaded ISO image. Ensure that the USB drive is formatted properly before proceeding[^2]. ```bash # Example command to write the ISO to a USB drive on Linux sudo dd if=/path/to/ubuntu-server-24.04.iso of=/dev/sdX bs=4M status=progress && sync ``` #### Step 3: Booting from the USB Drive Insert the USB drive into your target machine and reboot it. Access the BIOS/UEFI settings by pressing a key such as `F2`, `Del`, or `Esc` during startup. Set the USB drive as the primary boot device and save the changes[^3]. #### Step 4: Initial Setup Once booted, you will be presented with the Ubuntu Server installer interface. Follow these steps: 1. Select your language and press Enter. 2. Choose "Install Ubuntu Server" and confirm the keyboard layout. 3. Configure the network settings: - Provide a hostname for your server. - Set up user accounts, including a root password and a standard user account[^4]. #### Step 5: Disk Partitioning Choose how you want to partition your disk: - **Guided storage setup**: Automatically partitions the disk. - **Manual storage setup**: Allows customization of partition sizes and mount points[^5]. #### Step 6: Package Updates and Installation The installer will prompt you to update packages during installation. It is recommended to enable this option to ensure that your system has the latest security patches and bug fixes. #### Step 7: Additional Software Selection Select any additional software that you may need, such as OpenSSH server for remote access or LXD for container management. These selections can be made through the installer menu[^2]. #### Step 8: Finalizing the Installation After the installation completes, remove the USB drive and reboot the system. Log in using the credentials created during the setup process. #### Post-Installation Configuration 1. Update the system: ```bash sudo apt update && sudo apt upgrade -y ``` 2. Install essential utilities: ```bash sudo apt install -y vim git curl wget ``` #### Optional Configurations - **TimescaleDB Installation**: If you plan to use TimescaleDB, follow the prerequisite steps outlined in the provided reference[^3]. - **NVIDIA Container Toolkit**: For GPU-accelerated workloads, configure the NVIDIA Container Toolkit as described in the reference material. ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

宫孙小兔

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值