039 Log of migrating to Linux
本文最后更新于:2024-06-18
Newbie
Boot Failed: Failed to start Remount Root and Kernel File Systems
1 |
|
ref:
Boot Failed: Failed to start Remount Root and Kernel File Systems
Set custom resolution
System Setting ->> Hardware Configuraion ->> Display controller ->> video-modesetting & video-vesa
After these 2 driver installed, my monitor display in a wrong resolution or just go black after reboot
1 |
|
ref:
Vega 64 installation problems
amdgpu displayport
xrandr - How to set a custom resolution?
Restart X-windows service
Ctrl Alt Backspace
But usually doesn’t work
Ctrl Alt F6
Switch to tty6(any other tty is ok), login and systemctl restart display-manager
ref:
How to restart X Window Server from command line?
Set Wacom tablet, scrolling pages with middle mouse button
1 |
|
But I need to set these parameters every login, therefore add following lines to .bashrc
1 |
|
ref:
Wacom tablet middle mouse button scrollingman xsetwacom
in terminal
2020/07/28 update
1 |
|
Access to SMB share folder
eg. input smb://win/e
to address bar of folder manager
win/e
is the share link of SMB folder
cd to custom directory
ref:
Use CDPATH to define the base directory for cd command
2020/07/05 update
Chris Titus Tech provide a solution that set alias for custom directory in his video 16 Linux Tips in 10 Minutes
eg. alias ctt=’cd /media/backups/SynologyDrive/ctt’
Work on VPS.
But on my desktop, it’ll always crash bash shell (misleading me for a long time…)
Network problem
System Setting ->> Hardware Configuraion ->> Network controller
this driver doesn’t work well on my computer
No connetion with the wired cable, connection only succeed after reboot.
cat /etc/resolv.conf
no nameserverip route
output nothingip addr
output a lot, but I can’t find bugs
uninstall this driver will solve the problem
(maybe it’s not the correct driver
Return to last edit position in Vim
Solution from /usr/share/vim/vim82/defaults.vim
1 |
|
Ubuntu Boot Partition Full
1 |
|
Ref: Ubuntu Boot Partition Full
2020/11/28 update
Telegram Desktop can’t input Chinese characters
Solution [Note] Linux下無法在telegram輸入中文(解法)
addenv QT_IM_MODULE=***
totelegramdesktop.desktop
file***
is the input method
I use ibus, so addenv QT_IM_MODULE=ibus
afterExex=
edited .desktop file
1
2
3
4
5
6
7
8
9
10
11
12
13
14[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=telegram-desktop
Exec=env QT_IM_MODULE=ibus telegram-desktop -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
Categories=Chat;Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
X-GNOME-UsesNotifications=true(only
QT_IM_MODULE=ibus
is also ok)but other applications can’t input Chinese too
在 Linux 上用 Telegram Desktop 打不到中文?
思前想後,決定去報告問題。然後在 ilya-fedin 大大的協助下,發現較新版本的 iBus 會參考 $WAYLAND_DISPLAY 參數決定 socket 的名稱,而 Qt 暫時還未適應這個轉變,而引用了錯誤的 iBus socket,導致無法收到任何 iBus 的輸入,而只能顯示英文字母。
同樣的問題應該適用於 .deb / .rpm / tarball 安裝的任何 Qt 軟件。
Soution from above article:
1 |
|
and reboot
But above solution don’t work on my manjaro kde 20.1.2
- Finallyand log out, log in again, work on every application (except telegram…
1
echo "IBUS_USE_PORTAL=1" > $HOME/.pam_environment
Ref: Telegram Desktop does not recognize IBus switch between Japanese and English input
Firefox hardware acceleration
ArchWiki - Firefox
ArchWiki - Hardware video acceleration
mpv.io - options hwdec
mozilla wiki - Blocklisting/Blocked Graphics Drivershttps://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drivers#On_X11
input about:support
at address bar of firefox to check info
input about:config
at address bar of firefox to edit advance options
AMD gpu fan control
pacman -S fancontrol-gui
Pacman Mirrors
ArchWiki - Mirrors
ArchWiki - Mirrors Status
ArchWiki - Pacman Mirrorlist Generator
After creating/editing /etc/pacman.d/mirrorlist, issue the following command:
pacman -Syyu
2020/12/16 update
Search function
The search function of Dlophin
which is the default file manager in Manjaro KDE is tooooooooooo weak to use.
FSearch and ANGRYsearch are good search tools with GUI, fzf is a choice in command line.
Ref: Linux下快速搜索文件(类似Everything)
2021/02/24 update
Reinstall system aaaaaagain
Breaking my Linux system one/two/three/…etc time(s)
:(
1 |
|
try to fix, but failed :(
A similar post: Error = ‘FAILED. Failed to start Load Kernel Modules’
2021/03/06 update
Enable BBR in Ubuntu
check if BBR in use
1
2# output nothing shows that BBR is off
lsmod | grep bbror
1
2
3
4
5
6
7
8
9
10
11# By default, Linux uses the Reno and CUBIC congestion control algorithm. To check available congestion control algorithms, run the following command:
sysctl net.ipv4.tcp_available_congestion_control
# Output:
net.ipv4.tcp_available_congestion_control = cubic reno
# To check the current congestion control algorithm in use, run:
sysctl net.ipv4.tcp_congestion_control
# Output:
net.ipv4.tcp_congestion_control = cubicenable BBR
1
2
3
4
5
6
7
8vim /etc/sysctl.d/local-bbr.conf
# add following two lines
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
# apply change by
deb-systemd-invoke restart procps.service
Ref:
- Easily Boost Ubuntu Network Performance by Enabling TCP BBR
- sysctl mannual:
/etc/sysctl.d/README.sysctl
2021/03/14 update
Install nvidia driver
1 |
|
Ref:
NVIDIA - ArchWiki
Nouveau - ArchWiki
How to disable/blacklist Nouveau nvidia driver on Ubuntu 20.04 Focal Fossa Linux
2021/03/14 update
Downgrade a package
Search the old package in “Arch Linux Historical Archive” on archive.org
For example, install qbittorrent-4.1.9
sudo pacman -U https://archive.org/download/archlinux_pkg_qbittorrent/qbittorrent-4.1.9-1-x86_64.pkg.tar.xz
install telegram-desktop
sudo pacman -U https://archive.org/download/archlinux_pkg_telegram-desktop/telegram-desktop-2.7.4-2-x86_64.pkg.tar.zst
Ref: ArchWiki - Arch Linux Archive: How to downgrade one package
2021/03/22 update
Creat Disk Partition with parted
1 |
|
Ref:
How to Create Disk Partitions with Parted Command in Linux
How to properly automount a drive in Ubuntu Linux
2021/04/09 update
Update Pacman Mirrorlist
1 |
|
After creating/editing /etc/pacman.d/mirrorlist, issue the following command:
pacman -Syyu
2021/05/01 update
Automated Backup
ArchWiki - Rsync: Automated backup
2021/05/05 update
[In-prograss] Automated Empty Clipboard Content
Use ‘KDE klipper actions’ with ‘qdbus org.kde.klipper /klipper clearClipboardContents’ command.
But not perfect, need another method.
klipper has these commands:
1 |
|
clearClipboardContents
sometimes don’t work, ‘clearClipboardHistory’ work normally
Ref:
KDE UserBase Wiki - Klipper
Command line access to Plasma clipboard
Clear clipboard in Konsole
2021/08/18 update
Firefox smoothScroll (maybe useful?)
input about:config
in address bar, edit general.smoothScroll.mouseWheel.migrationPercent
to 0
Ref: I can’t remember……
2021/10/01 update
Do Not Disturb a server which running normally(
Update and reboot 2 servers, then can’t SSH to them, 100 percentage lost…
Server 1
VNC to it, a mounted driver bugged.
ls
get ls: reading directory XXX Input/output error
dmesg
get Buffer I/O error on dev sda1, logical block 0, lost sync page write
Reboot the server, mount
get mount: XXX : can't read superblock on /dev/sda.
First comment this bugged driver in /etc/fstab
, I just want to boot and SSH normally.
Open a support ticket, get a reply power/off and power on (not a reboot) your server and try again
It working, fine ~
Server 2
VNC to it, found server’s network is down.
- When boot, it said
Failed to start Raise network interfaces
journalctl -u networking
get/etc/network/if-pre-up.d/iptables: line 2: /sbin/iptables-restore: No such file or directory
touch /sbin/iptables-restore && chmod 744 /sbin/iptables-restore
systemctl start networking
Ref: Iptables if-pre-up blocking my network interfaces - Debian
Network interfaces is up, but IP changed…
Open a support ticket, want to change the IP back.
In one word, Do Not Disturb a server which running normally(
2022/03/01 update
Batch rename
Ref: The 7 Best Ways to Batch Rename Files in Linux
1 |
|
2022/08/10 update
“Failed to mount /boot/efi” after update
Ref:
HowTo - Restore an unbootable system after an interrupted kernel update
Mkinitcpio tries to work on uninstalled kernels
1 |
|
2022/09/18 update
Wired Connetion Disconnects, journalctl display “carrier-changed”
Ref:
Network Manager Stops Working Every 30 Minutes or So
Ethernet connection randomly disconnects, “reason: ‘carrier-changed”
1 |
|
2023/08/26 update
gpg: [don’t know]: invalid packet (ctb=00)
Keyring Errors
1 |
|
Ref:
Manjaro Wiki - Errors_about_Keys
2024/01/13 update
Hangs after login
/usr/lib/Xorg -nolisten tcp -background none -seat seat0 vt* -auth /run/sddm/xauth_ADBaYx -noreset -displayfd **
100% CPU useage
Arch Wiki - SDDM: Hangs after login
1 |
|
Maybe VS Code resulte a memory leak(1000 GB+ virtual memory useage)…..
KDE Applications Launcher not work
After updated to KDE 6, Applications Launcher doesn’t show any installed packages.(Open from command line is working.)
Maybe ~/.local/share/applications
folder disappearring is the reason.
1 |
|
1 |
|
(note: the second command will likely return a number of KDE apps lacking MimeType, which is fine)
Ref:
Manjaro Forum - KDE Launcher no longer displays hardly any installed apps
本博客所有文章除特别声明外,均采用 CC BY-NC-ND 4.0协议 。转载请注明出处~