顯示具有 linux 標籤的文章。 顯示所有文章
顯示具有 linux 標籤的文章。 顯示所有文章

2028年8月29日 星期二

How to install Arch Linux for Taiwan User?(incomplete) 來玩玩 Arch Linux吧!(2025/8/25更新,未完)

    
Arch Linux
安裝 Arch Linux前置作業=====================================================

1.    下載 Arch Linux ISO檔案

至 https://archlinux.org/download/ 下拉至 HTTP下載頁面,找到 Taiwan項目後,建議到 
此兩個站點內下載 archlinux-2025.08.01-x86_64.iso 即可,其它大學站台的穩定性可以無視。


2.    把 Arch ISO作成開機 USB隨身碟

EX: archlinux-2025.08.01-x86_64.iso 放在~/download,用作開機碟的 USB隨身碟掛載在 /dev/sdb

其中的 statsus=progress 加入後,開始寫入時就可以看見寫入進度。
# dd bs=4M if=~/download/archlinux-2025.08.01-x86_64.iso of=/dev/sdb conv=fsync oflag=direct status=progress

4.    調整 BIOS設定

進 BIOS設定成 UEFI BOOT MODE


把 TPM關閉(如果有的話)

重開機按 F12,把預設開機設備選成你做好 Arch Linux USB隨身碟


你看到這個畫面,就已經代表你是使用 UEFI設定,而且用自己做的 Arch Linux USB隨身碟開機成功了。


5.    nomodeset

把開機畫面調成符合螢幕解析度。在開機畫面進行到 OS選單時,按下 E鍵,暫停開機進度,在下面的命令行末端輸入 nomodeset後 ENTER,這樣到了安裝完顯示驅動之前,畫面的解析度都會是全螢幕的。

6.    setfont ter-132n

這是改善 Arch Linux安裝時,終端機字體過小的方法,不一定要做這一步。不過在安裝 Arch Linux到 Laptop 時,會方便一些。

不建議作下列這步了!因為常常重新自行定位站台列表,反而變成干擾了
7.
   下載安裝 reflector 

pacman -S reflector

使用:reflector -c Taiwan -a 6 --sort rate --save etc/pacman.d/mirrorlist

這是一個刷新 Arch Linux站台的小程式:
-c for Country,,EX:Taiwan。
-a for Age 站台更新時間,EX:6,表過去 6小時內更新的站台。
--sort 站台排序,後面空格加 rate,表示用站台 download 的速率。
--save 你要把站台更新後的列表存起來,已有同名檔案就直接覆蓋舊檔。後面接目錄路徑。



一般應用程式==============================================================
3.    顯示卡安裝驅動程式

VM下:
sudo pacman -S x86-video-qxl

intel:
sudo pacman -S x86-video-intel

AMD:
sudo pacman -S x86-video-amd

Nvidia:
sudo pacman -S nvidia nvidia-utils nvidia-setting(nvidia-setting不是一定要裝)。

4.    nitrogen

sudo pacman -S nitrogen

這是方便換桌布的 GUI程式,可裝可不裝,裝了,換桌布及換換心情很方便,XD。裝完整 DE的,這點可以無視,各大 DE都有內建自己的桌布管理程式。

5.    arandr

sudo pacman -S arandr

如果你想要用多螢幕輸出的話,這個是 GUI的程式,終於可以用多螢幕來爽了。


2025年3月3日 星期一

Cleaning up old repositories 清理舊儲存庫

 Cleaning up old repositories 2025-02-17 - Sven-Hendrik Haase  Around two years ago, we've merged the [community] repository into [extra] as part of the git migration. In order to not break user setups, we kept these repositories around in an unused and empty state. We're going to clean up these old repositories on 2025-03-01.

清理舊儲存庫 2025-02-17 - Sven-Hendrik Haase 大約兩年前,我們將 [社區] 儲存庫合併到 [額外],作為 git 遷移的一部分。為了不破壞用戶設置,我們將這些存儲庫保持在未使用和空的狀態。我們將於 2025-03-01 清理這些舊儲存庫。

On systems where /etc/pacman.conf still references the old [community] repository, pacman -Sy will return an error on trying to sync repository metadata.The following deprecated repositories will be removed: [community], [community-testing], [testing], [testing-debug], [staging], [staging-debug].Please make sure to remove all use of the aforementioned repositories from your /etc/pacman.conf (for which a .pacnew was shipped with pacman>=6.0.2-7)!

在 /etc/pacman.conf 仍然引用舊 [community] 儲存庫的系統上,pacman -Sy 將在嘗試同步儲存庫元資料時傳回錯誤。以下棄用的儲存庫將會被刪除:[community]、[community-testing]、[testing]、[testing-debug]、[staging]、[staging-debug]。請確保從您的 /etc/pacmanNote: A .pacnew file was shipped with pacman>=6.0.2-7 to assist with this. If you haven't already, merge this .pacnew file into your /etc/pacman.conf.


如何在 Arch Linux 中刪除舊的棄用儲存庫 刪除舊的儲存庫很容易!基本步驟如下: 1.找到 /etc/pacman.conf:這是 Pacman 的主要設定文件,Pacman 是 Arch Linux 的預設套件管理器。

2. 使用文字編輯器開啟檔案:使用具有 root 權限的您喜歡的文字編輯器。

3.尋找已棄用的儲存庫:搜尋上面列出的儲存庫名稱。它們將出現在[括號]中。

4.刪除或註解掉這些行:您可以刪除整行,也可以在行首新增#來註解掉這些行。這將禁用該線路,但不會完全刪除。

5.保存文件。

注意:pacman>=6.0.2-7 附帶了一個 .pacnew 檔案來幫助解決此問題。如果您還沒有,請將此 .pacnew 檔案合併到您的 /etc/pacman.conf 中。

請容許我向您展示一個實際的例子。

假設你的 pacman.conf 檔案如下所示:

[options]

...


[core]

Include = /etc/pacman.d/mirrorlist


[extra]

Include = /etc/pacman.d/mirrorlist


[community]

Include = /etc/pacman.d/mirrorlist


您可以刪除或註解掉 [community] 部分:


[options]

...


[core]

Include = /etc/pacman.d/mirrorlist


[extra]

Include = /etc/pacman.d/mirrorlist


#[community]

#Include = /etc/pacman.d/mirrorlist


儲存檔案並關閉編輯器。就是這樣。

現在使用指令更新你的 Arch Linux 系統:


sudo pacman -Syu



2024年11月15日 星期五

linux 終端下看硬體的指令

終端下看硬體型號指令:sudo lshw

終端下看硬體型號指令只看記憶體的型號指令:sudo lshw | grep memory

終端下看網路卡(有線、無線都會列出來。)型號指令:lspci | grep -i net

2024年11月13日 星期三

Arch and Xfce

1. USB pnp: Thunar can not mount USB sticks automatically. You check the pnp setting first, let the pnp on. Then install thunar-volman package logout and login one time, then USB pnp can be used.


------------------------------------------------------------------------MAYBE SOLVE THE USB QUESTION
$ pacman -Qi thunar
Name            : thunar
Version         : 1.8.16-1
Description     : Modern file manager for Xfce
Architecture    : x86_64
URL             : https://docs.xfce.org/xfce/thunar/start
Licenses        : GPL2  LGPL2.1
Groups          : xfce4
Provides        : None
Depends On      : desktop-file-utils  libexif  hicolor-icon-theme  libnotify  
libgudev  exo  libxfce4util  libxfce4ui  libpng
Optional Deps   : gvfs: for trash support, mounting with udisk and remote filesystems [installed]
                  xfce4-panel: for trash applet
                  tumbler: for thumbnail previews [installed]
                  thunar-volman: manages removable devices
                  thunar-archive-plugin: create and deflate archives
                  thunar-media-tags-plugin: view/edit id3/ogg tags
Required By     : thunar-dropbox
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 6.44 MiB
Packager        : Evangelos Foutras <foutrelis@archlinux.org>
Build Date      : Sat 31 Oct 2020 11:07:36 PM EDT
Install Date    : Sun 01 Nov 2020 01:15:11 PM EST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

2024年10月24日 星期四

dropbox-lnx.x86_64-210.4.4854.tar.gz ... failed solved

 dropbox-lnx.x86_64-210.4.4854.tar.gz ... fail


I solved it by a stupid method. I always used paru for my first AUR helper. But I always installed yay for my second choice. So I used the command "paru -Rns dropbox" to uninstall the older version dropbox, then used yay to install the new version. It worked.


這個異常是因為金鑰問題需要更新。反正 arch論壇上大大們的解法,我看不懂,也不會。所以我就用比較暴力的方法解決這個問題,一開始我也是抱著試試看的想法,結果是我想要的,這樣就可以了!

方法如下:

1.執行 paru -Rns dropbox 指令,把所有系統裡的 dropbox相關檔案清光。

2.執行 yay -S dropbox 指令,重裝 dropbox。

3.




2024年5月6日 星期一

ARCH LINUX virtualbox

ARCH LINUX virtualbox problem:

'/sbin/vboxconfig'









reload virtualbox kernel


sudo modprobe vboxdrv



2023年10月23日 星期一

When you meet these problem on Arch 正在安裝的 kio5 (5.111.0-1) 破壞了 kipi-plugins 需要的依賴關係「kio」

 :: 正在進行全系統更新…

正在解決依賴關係…
正在檢查衝突的軟體包…
錯誤:無法準備事務處理 (無法滿足依賴關係)
:: 正在安裝的 kio5 (5.111.0-1) 破壞了 kipi-plugins 需要的依賴關係「kio」
:: 正在安裝的 kxmlgui5 (5.111.0-1) 破壞了 libkipi 需要的依賴關係「kxmlgui」
:: 正在安裝的 kservice5 (5.111.0-1) 破壞了 libkipi 需要的依賴關係「kservice」
:: 正在安裝的 kcoreaddons5 (5.111.0-1) 破壞了 libmediawiki-git 需要的依賴關係

解法:sudo pacman -Rdd kipi-plugins kipi-plugins && sudo pacman -Syu

2023年9月2日 星期六

Why arch is my choice for daily using OS of nb? 為什麼我會選擇 arch linux來當做每天使用的筆電作業系統?

因為…

archlinux很自由啊!

只有一個小小的核心啟動包…

裝完只有終端機的黑畫面對著你…

我也不知道用了幾年的 linux了…

從初心只是想要解決微軟視窗的綁架…

再到偏激的 linux狂熱者(我比較沒這麼狂熱啦!版上很多強者一言不合就寫出新軟體的!)…

現在的反璞歸真…

我只是想自由地使用電腦,不會的問題可以有很多解決方式…

不用再因為想玩遊戲安裝微軟視窗…

雖然能輕鬆地玩遊戲是很誘人的…

但是用 PS2那種遊戲機玩遊戲更有投入感,我真的是在玩遊戲…

所以你真的可以輕鬆地來到 linux的世界裡…

我大哥以前是 linux的粉絲,那時我總是被他問,啟唐為什麼不試用看 linux?

結果他現在反而用回 windows,他說他老了,不想為了 linux軟體折騰自己…

這也是對的…

成長的道路一直都是選擇題,而不是是非題,什麼順手拿什麼用是對的,非要自己玩個新的也是對的…

2023年4月29日 星期六

Arch 時間校正

 如果你的 Arch裝完跟我一樣會跟手機差個三分鐘的話,可以把這個套件裝起來使用。


Arch Linux 的時間同步是通過 ntpd 實現的。 ntpd 是一個時間協議服務器,能夠在系統時鐘與網絡標準時間服務器之間保持同步。可以通過以下步驟在 Arch Linux 上啟用時間同步:


1.安裝 ntpd:使用 pacman 命令安裝 ntpd 軟件包:sudo pacman -S ntp


2.啟動 ntpd 服務:使用 systemctl 命令啟動 ntpd 服務:sudo systemctl start ntpd


3.設置 ntpd 服務開機自啟動:sudo systemctl enable ntpd


4.使用 ntpq 命令檢查時間同步狀態:ntpq -p


如果一切正常,您應該能夠看到一個列表,顯示 ntpd 當前正在連接的 NTP 服務器以及其狀態。

2022年9月18日 星期日

Install fcitx5 and bioshamy in Arch 安裝 fcitx5輸入法引擎和嘸蝦米輸入法

1.sudo pacman fcitx5-im

2.sudo pacman -S fcitx5-table-extra(這是碼字-嘸蝦米包含在裡面) fcitx5-chewing(這是注音) fcitx5-chinese-addon(你要用拼音的話,要裝這個)

3.sudo vim /etc/environment 這個檔案,加入以下這三行:

        GTK_IM_MODULE=fcitx

        QT_IM_MODULE=fcitx

   XMODIFIERS=@im=fcitx
 4.reboot
 
你就可以在 firefox、libreoffice打中文字了! 

2022年7月12日 星期二

cmatrix 2.0-2 in Arch Linux

How to install cmatrix 2.0-2 in Arch Linuxs?

  1. open terminal emulator
  2. yay -S cmatrix 2.0-2
  3. key Yes to all
  4. key cmatrix to start it
  5. q or ctrl-c to exit  
cmatrix是一個讓你的終端機秀出類似駭客任務電影畫面的一個程式,把終端機軟體的邊框設無或是全螢幕,就可以拿來代替螢幕保護程式,滿好玩的啦!

2022年4月13日 星期三

網站名字沒有被解析到,所以不能上網

我昨天在試 arch pppoe的事情,想弄清楚為什麼我是20M的網路,結果每次下載只跑10M的網速,怕是自己路由器的問題。

不知道砍了什麼東西,突然變這樣子…

文甫說網路主機沒有被解析到名稱,所以不能連網站。

所以提供下列解法

ping tw.yahoo.com 隨便ping個網站,看出現啥訊息?

結果:

ping: tw.yahoo.com: Temporary failure in name resolution

一個不凖,再抓 google試一次

ping www.google .com

結果:

ping: www.google.com: Temporary failure in name resolution

 

確認是無法解析主機名稱,所以要在這個檔案裡面搞一下。

vim /etc/resolv.conf

加上這兩行內容 nameserver 8.8.8.8 還有 168.95.1.1。

一個google,一個中華。

 重開browser,解決了!

 現在恢復可以上網看片了,真爽!

2022年4月5日 星期二

How to get your / space back by Arch?

How to get your / space back by Arch?

 

1.Clean the orphan pkg

sudo pacman -Rns $(pacman -Qtdq)

 

2.Remove your installed pkg cache

 sudo pacman -Scc

 

如何釋放你的 / 被佔用的空間,以 Arch為例:

1.清理系統內無用和已成為孤兒的安裝包。

sudo pacman -Rns $(pacman -Qtdq)

2.移除你系統安裝檔的快取。

sudo pacman -Scc

2022年2月19日 星期六

Arch Linux pacman error

On these days, when I want to update my arch, it tells me "no responsity site to connect".

I check a lot of forums, and get no answers.Until my checking the Youtube, a Chinese Youtuber(whose name is ledis教程) teaches me how to solve the problem.


sudo pacman -S archlinux-keyring


Using the command to update the mirror's keying, then I can update my arch as usual.

 

2021年9月1日 星期三

Mint Installing Nvidia drivers by bumblebee to show the second monitor

 


 

在T420S上我沒辦法使用nvidia driver經由display port輸出畫面至我的外接螢幕:

 先在終端機輸入下列指令查T420S內使用的nvidia devices

  • ubuntu-drivers devices
  • sudo ubuntu-drivers autoinstall

我的只有 NVM4200(顯卡)。


在終端機裡下這兩行指令,把所有的nvidia driver全刪除乾淨。

  • sudo apt-get remove --purge nvidia-*
  • sudo dpkg-reconfigure xserver-xorg

然後鍵入下列指令

  • sudo prime-select nvidia
  • sudo add-apt-repository ppa:bumblebee/stable
  • sudo apt-get update
  • sudo apt-get install bumblebee bumblebee-nvidia

重開機後,我的 nvidia X settings就可以用了,直接在登入畫面時就輸出顯示畫面到我的外接螢幕。爽!!!!!!!!!!!!!


2021年8月27日 星期五

I am distro-hopping from Arch to Mint

 

I am distro-hopping from Arch to Mint. It's cause of my laptop ThinkPad T420S has Displayport to output the Monitor, and it seems to manage by nvidia GF119. Using Arch to solve the monitor switch problem is not easy to fix. I try many, not only TP's fail but also nvidia's driver is too difficult to install correct.

So, I decide to use Mint or lubuntu to make this problem not to happen.

It is a bad solution to install nvidia-optimus, but it can be free from this FK problem immediatly.

Now it is work on my TP correctly, maybe. I don't want to check this problem in these days.

2021年8月25日 星期三

EndeavourOS(Arch Linux) can not lock the Server DB when use the pacman -Syyy

 

Using pacman to update all sw, than show the next problem.

錯誤:未能成功同步所有資料庫
Solved:
sudo rm /var/lib/pacman/db.lck
 

  

2021年8月17日 星期二

Midori browser not playing Youtube videos - Arch Linux


 

 

Midori browser not playing Youtube videos - Arch Linux

 

Plz reinstall the package followed:

gst-plugins-base: HTML5 OGG videos support
gst-plugins-good: HTML5 H264 and WebM videos support
gst-libav: HTML5 H264 videos support
 
Restart midori, it will be worked with your own pc.

2021年7月21日 星期三

How to manage your Arch default Apps.

How to manage your Arch default Apps.

  1. install xdg-utils
  2. use the xdg-mime

Determine a file's MIME type:
$ xdg-mime query filetype photo.jpeg
image/jpeg

Determine the default application for a MIME type:
$ xdg-mime query default image/jpeg
gimp.desktop

Change the default application for a MIME type:
$ xdg-mime default feh.desktop image/jpeg


Powered By Blogger