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


2021年7月16日 星期五

Ventoy USB iso

 Ventoy-製作 USB開機碟的軟體

官網:https://www.ventoy.net/en/index.html

目前版本:1.0.46

-----------------我是分隔線---------------------
以在下目前使用 Arch為例,目標 USB碟為 /dev/sdb:

安裝:下載並解tar後,到新增加的目錄下 /home/faiz/Downloads/ventoy-1.0.46

sudo sh Ventoy2Disk.sh { -i | -I | -u } /dev/sdb

-i:預設 USB碟沒有裝過 Ventoy各版本,有裝過的話會跳 error。

-I:不管 USB碟有啥東西,寫入就對了!

-u:升級你的 Ventoy版本。


-----------------我又是分隔線------------------
懶人操作法:

sudo sh Ventoy2Disk.sh -I -g /dev/sdb

-g:把 USB碟作成 GPT格式

預設是 MBR,安裝有沒有影響,我不知道,我都是用 GPT的。

後悔的話,需要安裝 parted來重新恢復上一動。


-----------------你沒看錯我是分隔線----


 -----------------你沒看錯我是分隔線------------ lsblk,你會發現 USB碟會被分成 /dev/sdb1和 /dev/sdb2。 /dev/sdb1:你丟 linux的 iso的地方。 /dev/sdb2:Ventoy的系統目錄 sudo mount /dev/sdb1 /mnt 你就可以放一堆 linux iso檔了。(Windows 的 iso也可以同時放入。) 自動按 iso檔名順序生成選單目錄。 ----------------分隔線還是會出來的------------ 你還是要用 VM試一下你的 USB開機碟有沒有做成功的,臉黑的話自行保重。


Powered By Blogger