Skip to main content

7 posts tagged with "Ubuntu"

Ubuntu Linux operating system

View All Tags

Safely Remove Ubuntu from Windows Dual-Boot - Complete UEFI & GRUB Cleanup

· 9 min read
Guangze Yang
Master of Control System, Ibaraki University

This comprehensive guide explains how to safely remove Ubuntu from a Windows dual-boot system, clean up partitions, and restore the Windows bootloader. Follow these steps carefully to avoid data loss and system issues.

Data Loss Warning

Removing Ubuntu involves deleting partitions and modifying system boot files. Always backup important data before proceeding. Incorrect execution can make your system unbootable.

Overview

When Ubuntu is installed alongside Windows in a dual-boot configuration, it typically:

  • Creates Linux partitions (root, swap, sometimes home)
  • Installs GRUB bootloader to manage boot options
  • Adds EFI entries for Linux boot process
  • Modifies system boot sequence

Proper removal requires:

  1. Backing up important data
  2. Removing Ubuntu EFI entries
  3. Deleting Ubuntu partitions
  4. Restoring Windows bootloader
  5. Reclaiming disk space

Prerequisites

Required Access

  • Windows Administrator privileges
  • Physical access to the computer
  • Windows installation media (for recovery if needed)
  • Complete data backup of important files
  • Create Windows recovery drive
  • Document current partition layout
  • Note Ubuntu version and installation details

System Requirements

  • UEFI-based system (most modern computers)
  • Windows 10/11 with Disk Management tools
  • Stable power supply during the process

Configure Static IP Address on Ubuntu with Netplan

· 8 min read
Guangze Yang
Master of Control System, Ibaraki University

This comprehensive guide explains how to configure a static IP address on Ubuntu using the netplan configuration system. Setting a static IP is essential for servers, network devices, or any system that requires a consistent network address for reliable connectivity.

Overview

Static IP addresses provide several advantages over dynamic IP assignment:

  • Consistent Network Identity: Same IP address after reboots and network changes
  • Server Applications: Essential for hosting services that clients need to find
  • Network Management: Easier to manage firewall rules and network policies
  • Remote Access: Reliable SSH and remote desktop connections
  • Port Forwarding: Stable configuration for router port forwarding rules

Prerequisites

  • Ubuntu system with network connectivity
  • Administrative (sudo) privileges
  • Basic understanding of network concepts (IP, subnet, gateway)
  • Access to your network's configuration details

Understanding Netplan

Ubuntu uses netplan as the default network configuration system since Ubuntu 18.04. Netplan:

  • Uses YAML configuration files for network settings
  • Supports both NetworkManager and systemd-networkd as backends
  • Provides a unified configuration approach across Ubuntu systems
  • Validates configuration before applying changes

VS Code Remote SSH Setup for Ubuntu Server

· 8 min read
Guangze Yang
Master of Control System, Ibaraki University

This comprehensive guide explains how to set up Visual Studio Code (VS Code) for remote development on an Ubuntu machine using SSH. This setup enables you to develop directly on remote servers while maintaining the comfort of your local VS Code environment.

VS Code Remote SSH

Overview

Remote development with VS Code over SSH provides several benefits:

  • Direct server development: Edit files directly on the remote machine
  • Consistent environment: Use your local VS Code setup with remote resources
  • Security: Encrypted SSH connection protects your work
  • Flexibility: Access powerful remote machines from any local device

Prerequisites

  • VS Code installed on your local machine
  • Ubuntu machine with network access
  • Administrator privileges on both machines

Create Portable Ubuntu USB with GRUB - Full Installation Guide (Not Live USB)

· 12 min read
Guangze Yang
Master of Control System, Ibaraki University

This comprehensive guide explains how to install Ubuntu on a USB drive with a portable GRUB bootloader configuration. This setup allows you to run Ubuntu from any computer while keeping the host system's bootloader intact.

Ubuntu on USB

Overview

Installing Ubuntu on a USB drive provides several advantages:

  • Portability: Run your Ubuntu environment on any compatible computer
  • Non-invasive: No changes to the host computer's internal storage
  • Isolation: Complete separation from host operating system
  • Development Environment: Portable development setup for embedded systems
  • Recovery Tool: Bootable Ubuntu system for system recovery tasks

Understanding the Boot Process

Traditional Installation vs USB Installation

Traditional Installation:

  • GRUB installed on internal disk
  • EFI files stored in host system's ESP (EFI System Partition)
  • GRUB menu appears even without USB drive

USB Installation (This Guide):

  • GRUB installed entirely on USB drive
  • EFI files contained within USB drive
  • Host system remains unchanged
  • GRUB only appears when USB is connected

Boot Flow Diagram