2026년 7월 22일 수요일

Ubuntu 24.04: Fresh Install for MyChip-on-MyDesk

Ubuntu 24.04: Fresh Install for MyChip-on-MyDesk

0. Preps.
1. Make Ubuntu latest,
2. System Setup for Korean
3. Download & install Browser & Editor(MS-Code)
4.  Add command alias at the end of ~/.bashrc
    * X11 or Wayland
5. Apply Ubuntu Pro, https://ubuntu.com/pro,
    * Access VHDX(Virtual Harddisk v2) under,
    * LINUX isn't Hard Once You Understand This (File Directories)
6. Install git,
7. Clone ETRI050 Design Kit
8. Install libs & pkgs for building Open-Source EDA tools,
9.  Add $USER to dialout group,
10. Download & install Xilinx FPGA Tools
11. Download & install Altera FPGA Tools
12. Environments,
13. Download & install Arduino,
14. Download & install KiCAD
15. Additional apt install: LibreOffice, XnView, KolourPaint
16. Additional apt install: Zoom, OBS Studio, DroidCam
    * Use Cell-Phone as Web-Camera(OBS Client),

More to come ........
---------------------------------------

0. Preps.
on PC(old i5 CPU is ok. But UEFI for USB booting) with RAM(>8GB) & SSD(>128GB)

Prepare Ubuntu 24.04 Install Boot Disk
    - USB Disk(>8GB)
    - Download Ubuntu 24.04 ISO image [download]
    - Create bootable USB Disk using Rufus

* NOTE: As of Aug., 2026, Ubuntu 26.04 is released but NOT recommended for Open-Source EDA.

1. Make Ubuntu latest,

    $ sudo apt update && sudo apt upgrade

    * Install nVidia driver,

    $ sudo add-apt-repository ppa:graphics-drivers/ppa
    $ sudo apt update
    $ ubuntu-drivers devices
    $ sudo ubuntu-drivers autoinstall
    $ sudo snap refresh

2. System Setup for Korean

        App: Settings > System > Language support > add Korean
        App: Settings > Keyboard > Input Sources > add Korean(Hangul)

    Korean fonts,

    $ sudo apt update && sudo apt upgrade
    $ sudo apt install -y fonts-nanum fonts-nanum-coding fonts-nanum-extra
    $ fc-cache -fv
    $ fc-list | grep -i nanum

    See current Locale,

    $ locale
    LANG=en_US.UTF8
    LANGUAGE=
    LC_CTYPE="en_US.UTF8"
    LC_NUMERIC="en_US.UTF8"
    LC_TIME="en_US.UTF8"
    LC_COLLATE="en_US.UTF8"
    LC_MONETARY="en_US.UTF8"
    LC_MESSAGES="en_US.UTF8"
    LC_PAPER="en_US.UTF8"
    LC_NAME="en_US.UTF8"
    LC_ADDRESS="en_US.UTF8"
    LC_TELEPHONE="en_US.UTF8"
    LC_MEASUREMENT="en_US.UTF8"
    LC_IDENTIFICATION="en_US.UTF8"
    LC_ALL=

    Install Korean Language Pack(optional),
    $ sudo apt update
    $ sudo apt install language-pack-ko

    Update Locale,
    $ sudo update-locale LANG=ko_KR.UTF-8 LC_ALL=ko_KR.UTF-8

    Reboot System to take effect updated locale config.,

3. Download & install Browser & Editor

        - Google's Chrome for Linux [Link]

    $ cd ~/Downloads
    $ sudo apt install ./google-chrome-stable_current_amd64.deb

        - Microsoft Code for Linux [Link]

    $ cd ~/Downloads
    $ sudo apt install ./code_1.129.1-1784303641_amd64.deb

    * Recomended Extensions:
        - C/C++ by MicroSoft
        - C/C++ Dev Tools by MicroSoft
        - C/C++ Extension Pack by MicroSoft
        - C/C++ Themes by MicroSoft
        - CMake Tools by MicroSoft
        - Makefile Tools by MicroSoft
        - Binary Viewer by Qiao Jie
        - Verilog-HDL/SystemVerilog by Masahiro Hiramori

4.  Add command alias at the end of ~/.bashrc

    alias ls='ls --color=auto --group-directories-first'
    alias la='ls -al --color=auto --group-directories-first'
    alias ll='ls -l --color=auto --group-directories-first'

* X11 or Wayland

Know current settings,
    echo $XDG_RUNTIME_DIR
    echo $WAYLAND_DISPLAY

Env. setting for Wayland,
    export XDG_RUNTIME_DIR=/run/user/$(id -u)
    export WAYLAND_DISPLAY=wayland-0

Forcing X11,
    export GDK_BACKEND=x11
    export QT_QPA_PLATFORM=xcb

Forcing Wayland,
    export GDK_BACKEND=wayland
    export QT_QPA_PLATFORM=wayland

Virtual machine: Docker or WSL,
You must mount the Wayland runtime socket into the container (e.g., -v $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/tmp/wayland-0) and pass the corresponding environment variables into the container environment.

5. Apply Ubuntu Pro, https://ubuntu.com/pro,

    $ sudo pro attach <Your Token>
    $ sudo apt update && sudo apt upgrade

* Access VHDX(Virtual Harddisk v2) under,

Ubuntu not support VHDX(Virtual Harddisk v2 by MicroSoft) natively. Access to virtual disk partition after attaching the VHDX as a network block device(nbd) using QEMU:

Install QEMU:

    $ sudo apt install qemu-utils

Set number of partion on block device(nbd),

    $ sudo modprobe nbd max_part=8

Connect VHDX to nbd and mount,

    $ sudo qemu-nbd --connect=/dev/nbd0 /path/to/file.vhdx
    $ sudo mount /dev/nbd0p1 /mnt/vhdxdrive

Un-mount and Disconnect VHDX,

    $ sudo umount /mnt/vhdxdrive
    $ sudo qemu-nbd --disconnect /path/to/file.vhdx

* LINUX isn't Hard Once You Understand This (File Directories)


6. Install git,

    $ sudo install git

7. Clone ETRI050 Design Kit

    $ git clone https://github.com/GoodKook/ETRI-0.5um-CMOS-MPW-Std-Cell-DK.git
    $ ln -s ETRI-0.5um-CMOS-MPW-Std-Cell-DK ~/ETRI050_DesignKit

8. Install libs & pkgs for building Open-Source EDA tools,

    $ cd ~/ETRI050_DesignKit/Tools
    $ chmod +x *.sh
    $ ./prerequisites.sh
    $ ./build_tools.sh

9.  Add $USER to dialout group,
    accessing USB device without any system complaint

    $ sudo usermod -aG dialout $USER

10. Download & install Xilinx FPGA Tools

    - Xilinx [Web Installer 26.1]: Vivado, Vitis-HLS, Artix-7

    $ cd ~/Downloads
    $ chmod +x FPGAs_AdaptiveSoCs_Unified_SDI_2026.1_0616_1700_Lin64.bin
    $ sudo ./FPGAs_AdaptiveSoCs_Unified_SDI_2026.1_0616_1700_Lin64.bin

11. Download & install Altera FPGA Tools
    - Quartus Prime Standard [25.1 Installer]: Cyclone IV & V

    $ cd ~/Downloads
    $ chmod +x ./qinst-standard-linux-25.1std-1129.run
    $ sudo ./qinst-standard-linux-25.1std-1129.run

12. Environments,
    Copy Env file to user's home,

    $ cp /~/ETRI050_DesignKit/Tools/Altera_env ~/.Altera_env
    $ cp /~/ETRI050_DesignKit/Tools/Xilinx_env ~/.Xilinx_env
    $ cp /~/ETRI050_DesignKit/Tools/SC_env ~/.SC_env

13. Download & install Arduino,
    - Arduino IDE[Download AppImage] & CLI

    $ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh

14. Download & install KiCAD [Download] 

    If the message shown,

        Gtk-Message: 12:58:38.720: Failed to load module "xapp-gtk3-module"

    Un-Set GTK3_MODULES,

    $ unset GTK3_MODULES
    $ kicad


15. Additional apt install: LibreOffice, XnView, KolourPaint

    - Libreoffice

    $ sudo apt install libreoffice

    - KolourPaint

    $ sudo apt-get install kolourpaint

16. Additional apt install: Zoom, OBS Studio, DroidCam

    - Zoom workplace [Download]

    $ wget https://zoom.us/client/latest/zoom_amd64.deb
    $ sudo apt install ~/$HOME/Downloads/zoom_amd64.deb

    - kdenlive

    $ sudo apt install kdenlive

* Use Cell-Phone as Web-Camera(OBS Client),

Install OBS-Studio,

    $ sudo add-apt-repository ppa:obsproject/obs-studio
    $ sudo apt update
    $ sudo apt install obs-studio

Install virtual-camera device driver,

    $ sudo apt install v4l2loopback-dkms \
        v4l2loopback-utils v4l-utils
    $ sudo modprobe v4l2loopback exclusive_caps=1 \
        card_label="Virtual Camera"

When error,

    modprobe: ERROR: could not insert 'v4l2loopback': Key was rejected by service

Un-Install v4l2 device,

    $ sudo apt purge v4l2loopback-dkms v4l2loopback-utils

Then,
    ----------------------
    1. 컴퓨터를 재부팅하고 부팅 시 F1, F2, F12, Del 등의 키를 눌러 BIOS/UEFI 설정 진입
    2. Security 또는 Boot 탭에서 Secure Boot 항목을 찾아 Disabled로 변경합니다
    ----------------------

At Linux terminal,

    $ sudo modprobe v4l2loopback

On Cell-Phone,
    Install DroidCam App. & Launch

On Linux terminal, Run DroidCam,

    $ droidcam

댓글 없음:

댓글 쓰기