Skip to main content

8 posts tagged with "Linux"

Linux operating system and administration

View All Tags

Tmux Tutorial - Master Terminal Multiplexing for Productivity

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

Tmux (Terminal Multiplexer) is a powerful command-line tool that allows you to manage multiple terminal sessions within a single window. It's essential for developers, system administrators, and anyone who works extensively with the command line.

Overview

Tmux enables you to:

  • Run multiple programs simultaneously in separate windows and panes
  • Detach and reattach to sessions, maintaining long-running processes
  • Share sessions between multiple users or terminals
  • Organize workflows with custom layouts and configurations
  • Maintain persistent sessions that survive SSH disconnections

Key Concepts

  • Session: A collection of windows managed together
  • Window: A single screen containing one or more panes
  • Pane: Individual terminal instances within a window
  • Prefix Key: Command key combination (default: Ctrl+b)

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

Run Linux GUI Apps on Windows via SSH

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

When working on remote development via SSH, you sometimes need a graphical user interface (GUI). This guide explains how to set up and use an X server on Windows to run graphical Linux applications remotely via SSH, perfect for scenarios like using ROS with VS Code on a Windows machine while connecting to a Linux host.

X Server SSH Setup

Overview

X11 forwarding allows you to run graphical applications on a remote Linux machine and display them on your local Windows desktop. This is particularly useful for:

  • Remote development with GUI tools
  • Running ROS applications with visualization (RViz, Gazebo)
  • Using Linux-specific GUI applications from Windows
  • Docker containers with GUI applications

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