
wodim:
widom --devices
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
0 dev='/dev/sr1' rwrw-- : 'TSSTcorp' 'CDDVDW SH-S223F'
-------------------------------------------------------------------------
/dev/sr1.wodim -prcap dev=/dev/sr1
wodim -v dev=/dev/sr1 speed=10 -eject /temp/file.iso
growisofs -dvd-compat -Z /dev/sr1=/temp/file.iso
Boot from CD/DVD or something similar. Enter the installation menu of Linux and pay attention to the instructions before you start. Otherwise you will destroy the operating system or the boot record on the harddisk.
F10 to enter the (BIOS) menu for boot device selection .USB: DVD device to boot (in this example, USB : MATSUSHITADVD-RAM). Exact name of the device will vary.
English or Chinese interface, then click Install Ubuntu.F2 to enter BIOS setup, F10 to list menu for boot devicesF2 to enter BIOS config,
PNY CS1031 256GB SSD with Windows 7 installed using legacy Master Boot Record (MBR) partition. Legacy refers to the novel UEFI firmware with Compatibility Support Module (CSM) enabled.
Legacy mode to enable pure-UEFI booting strategy by un-checking the box. F10 to save and exit BIOS. The system will reboot.
F10 to list boot-able devices. Choose UEFI:LAN:PXE IP4 to boot the system from Ukko via network using IPv4. 
Casper Live over Focal (20.04.3) and press Enter to load the Casper Live from network.
Install Ubuntu 20.04.3 LTS icon to start the installer later.
Terminal and type sudo su - to switch to root without password under the shell prompt.

df | grep sd to check if your USB flash drive is automatically mounted during boot process. If yes, type umount /dev/sda? to unmount its partitions. In the following figure it was /dev/sda1 to be unmounted.
gdisk -l /dev/nvme0n1 and you will see the SSD with Windows 7 installed. Do NOT change the configuration of this SSD!gdisk -l /dev/sda , you will see the USB flash drive with the model number and its current partition. Since this one is brand new, it should only contain one partition /dev/sda1 with FAT32 or NTFS.Install Ubuntu 20.04.3 LTS icon to start the installer.
English and click Continue.
English(US) for both columns and click Continue. This selects the layout, not the language!
I don't want to connect to a Wi-Fi network and click Continue, since wired Ethernet is used in BI-304.
Normal installation and click Continue.
Something else and click Continue.
/dev/sda. Again, do NOT change the configuration of the SSD /dev/nvme0n1 !

gdisk -l /dev/sda under shell prompt to check its current partition contents.
–. This will remove the partition of sda1
+;
2048 MB, set its partition type to Primary, Location as Beginning of the space, Use as (filesystem type) FAT32, and assign its Mount point as /windows. This partition can be accessed under Windows or MacOS, but DO NOT try to check this filesystem under Windows; otherwise the whole Linux system in this USB flash will be destroyed !OK.
sda1, then the plus sign +. Just ignore the free space of 1MB above sda1 because it has a reserved function.
1 MB only. Set its partition type to Primary, Location as Beginning of the space, Reserved BIOS boot area, also known as biosgrub; later this partition will be installed with the file grub-instll program. OK. 
sda2, then the plus sign +.

512 MB. Set its partition type to Primary, Location as Beginning of the space, EFI System Partition, also known as ESP; later this partition will be mounted as OK. 
/dev/sda4 by clicking the free space below sda3, then the plus sign +.

28205 MB, which is about 27GB to install the Ubuntu 20.04.3 Linux system.Primary, Location as Beginning of the space, Ext4 journaling filesystem, and assign its Mount point as /OK. 
sda4 is not usable. Just ignore it.
/dev/sda USB SanDisk 3.2Gen1 (30.8GB)!!! 
Install Now.
Revert. Continue, all the changes to partitions will be written to the disk and undo actions will no longer be possible.
Taiwan or Taipei by either clicking on the world map, or just type Taiwan in the blank box.
Continue after you choose the correct local time zone.gdisk -l /dev/sda to check the new partitions the installer just created.
df -h lists the new partitions mounted under 
blkid /dev/sda? to get the UUIDs of those new partitions, and check cat /target/etc/fstab 

$USER, $USERNAME and $LOGNAME variables after you login the new system under bash.ssh and sftp in class.finger command output; in this example, John Doe.
Continue. The following figures show the screen during installation.
Continue Testing.Restart Now to reboot the system.
Ctrl-C to force reboot.F10 repeatedly. In the boot device list, choose ubuntu. Boot from it brings you into Linux Desktop GUI. 







Done.
<Super> refers to the window key on your keyboard.Application Center of Ubuntu is moved to the lower-left corner of your desktop by default.terminal to get the shell prompt.

terminal or gnome-terminal.
Remind Me Later or just close its window.
sudo su - and enter your password again. We need to do some setup for this new system.sudo apt install vim sudo vi /etc/apt/apt.conf.d/20auto-upgrades
apt install binutils . This will install the strings tool.df -h to make sure all of the partitions under grub-install --target=i386-pc --recheck /dev/sda . You should see the output message of installation finished without error reported.
dd if=/dev/sda bs=512 count=1 2>/dev/null | strings 
vi /etc/fstabswapoff /swapfilerm /swapfilecat /proc/swapsFilename Type Size Used Prioritythere is no swap space used right now.
update-initramfs -u to update the inital ramdisk for booting.update-initramfs -u followed by update-grub to make it effective for the next boot.
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX_DEFAULT=" splash" update-grub

ls -al /sys/firmware 
F10 and choose ubuntu from the boot device list.
F2 to enter the BIOS setup.F10 to save and exit. This enables the CSM function under UEFI.
F10 during system reset. The boot device list becomes the figure below.

Enter will boot directly without waiting for 10 seconds.
Terminal and type ls -al /sys/firmware under shell prompt. 
secure boot function in the UEFI setting. sudo dhclient to obtain the IP address.ping 168.95.1.1 -c 3 to check if Internet connection is available. That host is the DNS server of hinet.sudo apt updatevim for our class.whereis vimlocate vimsudo apt install vimsudo apt upgrade sudo apt install <pkg-name> , NOT using apt upgrade.sudo vi /etc/locale.genzh_TW BIG5 , zh_TW.EUC-TW EUC-TW and zh_TW.UTF-8 UTF-8, then save and run:sudo locale-gensudo vi /etc/default/localeen_US.UTF-8" or "en_US.utf8".gcin or fcitx.sudo apt install hime after you have done the configuration for im-config & , choose hime then save and exit.
Ctrl-space.sudo apt install pcmanfmLANG=zh_TW.utf8 pcmanfm & firefox or opera as the pre-installed web browser. Additional installation of Google Chrome is suggested because it comes with several extra fonts that will make the browser look nicer. Its open-source version in Linux is called Chromium. To install Chromium to Ubuntu 20.04, refer to this link and search the string You can use Chromium from the Debian "buster" repository. Follow the instructions there.sudo apt install chromium-browser without the instructions above, the default action is to download Chromium from Canonical's snap store; this version of Chromium from snap is not compatible with the HIME input! You will get NOTHING if your press Ctrl-space inside Chromium from snap.
terminal, xterm, gnome-terminal, lxterm and uxterm.
| M$ Office: | Word | Excel | PowerPoint | Equation editor | Access | Publisher |
| LibreOffice: | Write | Calc | Impress | Math | Base | Draw | .
sudo apt install libreoffice
xclock, xeyes, xmaze, .....etc. Launch them under the shell by commands like:xclock &bash for our class.whereis bashlocate bashsudo apt install bashbash. In those earlier distributions, you need to do apt install bash by yourself.FileZillasudo apt install filezillaPrintScreen, Alt-PrintScreen and Shift-PrintScreen can already offer enough functions for you. The captured image will be saved under your 
ksnapshot.ksnapshot. You might need to use either one for your presentation or homework.sudo dhclient



