or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
CCNS 定期聚
Steam 的掌上遊戲機都裝 Linux 了
你的電腦也該裝了吧
什麼是 Linux?
Linux kernel 是作業系統核心
提供一個作業系統運作所需的基本功能
使用包裝好 Linux kernel 的發行版(distro)
手機 伺服器 嵌入式裝置
個人電腦?
Note:
Linux kernel 是作業系統核心,提供一個作業系統運作所需的基本功能
普存在於手機與伺服器及嵌入式裝置
一般我們使用的是 Linux kernel 的發行版 (distro)
發行版是 kernel 再加上一些其他軟體(library, GNU tool chain, file manager, window manager, package manager…)的軟體套裝,使其成為一個可以日常使用的作業系統
大家最常聽到的 Ubuntu 就是一種發行版(distro)
還有一些發行版像是 Rocky, Redhat Enterprise 是針對伺服器的發行版,Raspberry Pi OS 則是給樹梅派的發行版
先調查一下現場聽眾的背景再決定要講多少
options - 沒聽過、聽過而已、有用過裝好的、有自己裝過 desktop/server、有動手改過
什麼是 Linux desktop?
Linux desktop 泛指具備圖形界面
給一般使用者日常使用的發行版
kernel
+
library GNU tool chain file manager windows system package manager browser …
Debian Fedora Android …
GNU GPLv2
Linux kernel 採 GNU GPLv2 授權釋出
是促使 GNU/Linux 遍布全世界的關鍵之一
詳細請看 啊是多開放?
Note:
tl;dr - 使用者可以任意的使用、修改、散佈,但是原始碼同時也必須使用 GPLv2 授權釋出
這麼多發行版怎麼選?
https://distrowatch.com/ > 1000 種!
Note:
每個發行版各有特色
可以基於某個發行版進行改造,變成另一個發行版
Debian 系
Fedora 系
Opensuse
最常見的 Ubuntu 屬於 Debian 的分支版,Ubuntu 又還有 Lubuntu, Kubuntu, Ubuntu bridge,由 Canonical 開發
新手友善發行版:popos, elementary, zorin,以及各基於 Ubuntu 的衍伸版
ArchLinux 社群維護,滾動更新
其他 rolling: Manjaro, Tumbleweed. Artix
Gentoo
LFS
Steam deck 使用基於 Arch Linux 改裝的發行版,據說會有自己的 repository
什麼是桌面環境?(DE)
早期的電腦沒有圖形界面,僅可透過文字界面與系統互動
桌面環境是在圖形界面上處理使用者輸入與視窗輸出、編排的一整套程式
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →KDE
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →xfce
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Gnome
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →LXDE
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Unity
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →h
j
k
l
方向鍵都是以前終端機的所確實在使用的組合鍵及鍵位
Note:
精準講法 - 僅可使用 command line interface(cli) 在終端機上透過 shell 與系統互動
KDE 與 gnome 是最常見的兩種 DE,如果是筆電建議裝 gnome,本身設計上比較面向筆電。Gnome 作為 Ubuntu 的預設桌面(Ubuntu 曾經有一段時間想一統所有裝置而採用 Unity,但是後來失敗就改回 Gnome 了)基本上可以說是有最多的使用者,各式各樣奇怪怪的插件都有,有問題也好解決。Steam deck 是用 KDE 因為比較像 Windows。Gnome 自帶 Js 執行環境,十分方便開發插件,主題也是用 CSS ,如果你是網頁開發者應該會很好上手。KDE 的好東西大部分也都會被搬過來
要簡潔一點可以用 xfce,手不想離開鍵盤 wm 可以換 i3 (r/unixporn 上的炫砲截圖很多是 i3,極度 geek 那種)
真的想要長的像 mac 或 Windows: how to make gnome looks like windows and mac
https://en.wikipedia.org/wiki/IBM_2250
魔改 Gnome
想改的像 windows 或 mac 也可以Gnome demo
Shell theme
Application theme
Icon
Cursor (沒有無名小站那麼花俏)
Tons of extension
Gnome-Look.org
可以改的超浮誇: r/unixporn
例如 wm 換 i3,變得很 geek
Fedora, Debian, Ubuntu, SUSE Linux Enterprise, Red Hat Enterprise Linux, CentOS, Pop!_OS, Oracle Linux, Endless OS, Tails, Solaris
預設使用 Gnome
Linux desktop 優點
QEMU/KVM, anbox, docker…etc.
Note:
package manager: 這才是安裝軟體的正確姿勢,winodws 簡直自殘
Linux desktop 缺點
…🗳️…
Linus Torvalds on why desktop Linux sucks (2014)
大多數觀點放到今天仍舊為真
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →No Adobe !
more alternatives…
Note:
偷曬作品
Linus: 需要 pre-installed (目前只有 dell 和一些專門賣 Linux 硬體的廠商
no PS on Linux :(
動手裝起來
如果害怕,可以先用虛擬機試試看!
Ubuntu/Pop!OS/ElementaryOS 安裝
下載
.iso
並製作 Live boot USBdd if=/path/to/iso of=/path/to/device
Boot with your flash drive
在開機後有製造商 logo 的時候瘋狂按 delete, F11 或 F12
In UEFI:
直接進入暫時的系統使用或真的裝起來

Note: 圖片來源
選擇語言、時區、鍵盤配置

第三方可以考慮勾一下,可避免掉一些驅動問題

硬碟分割、格式化: 雙系統? 只裝 Linux?

若 Windows 和 Linux 要裝在同一顆硬碟,必須共用 EFI 分割區
也可以用 Windows 的分割工具分割
同磁碟上有 winodws 的話建議就用 windows 分割工具
填寫使用者資料

watch it install…

Add ccns repository
如何使用 Ubuntu 的 package manager
apt
或是使用內建應用程式商店
Note:
https://www.reddit.com/r/linuxmasterrace/comments/b28ug4/i_use_arch/
btw I use Arch
Arch Linux 安裝大致流程
想試試看的話可以先用最新的官方安裝腳本玩玩看。docker 版不建議,據說問題多
安裝參考文件:
Arch Wiki 是 Linux 知識寶庫,及便是其他發行版使用者也可以參考
Note:
The Arch friend
硬碟分割
fdisk -l
fdisk /dev/the_disk_to_be_partitioned
格式化
mkfs.ext4 /dev/root_partition
掛載
mount /dev/root_partition /mnt
安裝主要系統
pacstrap /mnt base linux linux-firmware
設定系統(包含設定使用者跟密碼)
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
再進行其他設定安裝 Boot Loader
os-prober
,自動偵測讚安裝路連線套件
NetworkManager
,懶得選就全家桶Systemd-Networkd
,不然至少也要有dhcpcd
來索取 IP重開機
安裝圖形化界面
pacman -S gnome gnome-extra
,systemctl enable gdm
Add ccns repository
and
anything else you want
常見問題
Display driver:
wayland + N 卡 = 祝你好運!
如果開機開到螢幕黑不會動可以先加
nomodeset
參數,暫時能開機後換成 NVIDIA 的驅動或是直接換成 X11Windows 升級或是筆電電池沒電都有可能會重製 UEFI 設定
CCNS 鏡像站
Note:
解釋鏡像站
Pre-installed linux
Linux laptop
Dell XPS, framework, Librem 14, pine book, Musicha musictop, System76 laptops
(no msi, no asus, no acer)
Linux phone
distro: Ubuntu touch, Manjaro, Arch, Mobian, postmarketOS
Hardware: pine phone, Librem 5, Fairphone
https://fosstodon.org/@linmob
Linux watch
Pine Time
推薦安裝的工具
Linux Audio Production 是另一個很有趣的議題
Note:
Wine/proton 有點肥,因為基本上他就是把整個 windows 應用程式所需的 Library 和 runtime 都搬過來了
偷推廣
進階議題
What are those partitions?
Wayland vs X11
Systemd, Yay?Nay?
User 權限, root , sudoer(doas)
目錄結構
How a system is booted
fstab
Swap, zram and OOM killer
r/unixporn
COSCUP arch 議程軌
audio server - ALSA? Jack? Pipiewire?
Windows System
Everything is a file
換 kernel、kernel module
對 Linux kernel 更進階的內容有興趣的話歡迎一起挑戰下學期的 jserv 開的 「Linux 核心設計」「Linux 核心實作和改進」
Canonical 的春秋大夢 - Unity
Linux 相關笑話
sudo rm -rf /
We've all been there…
https://twitter.com/nixcraft/status/1383700478547034124
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →https://discord.ccns.io
Note:
感謝 CCNS 讓我有機會可以上台和大家分享
有任何疏失歡迎指正
Linux Audio
Distro: Ubuntu Studio, AV Linux, KX Studio