Skip to content

Instantly share code, notes, and snippets.

@gitawego
Last active February 26, 2023 21:11
Show Gist options
  • Save gitawego/3f8e04b8da3e10da9a9428c6e4028c09 to your computer and use it in GitHub Desktop.
Save gitawego/3f8e04b8da3e10da9a9428c6e4028c09 to your computer and use it in GitHub Desktop.
ubuntu apps
function prime_run_fnc(){
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia $@
}
alias prime-run=prime_run_fnc
sudo apt-get install android-tools-adb android-tools-fastboot -y
# after installation, reboot to switch to nvidia
sudo apt install nvidia-driver-470 nvidia-settings nvidia-prime
sudo add-apt-repository ppa:atareao/atareao -y
gsettings set org.gnome.desktop.interface show-battery-percentage true
# install video decode
sudo apt install ubuntu-restricted-extras
sudo apt-get update
# for macbook pro broadcom wifi
sudo apt-get install firmware-b43-installer
sudo apt-get remove bcmwl-kernel-source
iwconfig
sudo apt-get install touchpad-indicator
sudo apt install android-tools-adb android-tools-fastboot
sudo apt-get install chrome-gnome-shell gnome-tweaks
# install flakpak
sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
## gnome extension manager
flatpak install flathub com.mattjakeman.ExtensionManager
# fix no connection for steam in wine
sudo apt-get install libnss-mdns:i386
sudo apt-get install p11-kit-modules:i386
sudo apt-get install libp11-kit-gnome-keyring:i386
#fix: ntlm_auth was not found or is outdated.
sudo apt-get install winbind
#fix: libudev0 not found
wget http://mirrors.kernel.org/ubuntu/pool/main/u/udev/libudev0_175-0ubuntu9_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/u/udev/libudev0_175-0ubuntu9_i386.deb
sudo dpkg -i libudev0_175-0ubuntu9_amd64.deb
sudo dpkg -i libudev0_175-0ubuntu9_i386.deb
#fix: libgluezilla not found
sudo apt install libmono-webbrowser4.0-cil
@gitawego
Copy link
Author

gitawego commented Sep 7, 2021

FAQ

can't mount ntfs disk with write permission

when mount using cli, it says: The disk contains an unclean file system (0, 0)

solution:

sudo ntfsfix /dev/sdb1

how to uninstall android applications in kylin

  1. start setting in android, and uninstall app in application management
startapp com.android.settings 0.107.0
  1. remove desktop files in ~/.local/share/icons and ~/.local/share/application

how to offload nvidia in on-demand mode

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia <your programe>

how to resolve time conflict in dual boot (windows)

two solutions:

  • in windows, run this to add a record in registry to for use UTC, ref
     reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f
  • in linux, run this to force use local time.
     timedatectl set-local-rtc 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment