- Use
flatpak remote-info --log <repo> <app-id>
for getting<commit>
.
Note
For example <repo>
will be flathub
, <app-id>
will be io.github.spacingbat3.webcord
.
- Use
sudo flatpak update --commit=<commit> <app-id>
for reverting.
Note
Use sudo flatpak mask <app-id>
for removing it from updates list.
Use flatpak override --user --env=GTK_THEME=<theme-name> <app-id>
for changing theme for the app.
Note
For example <theme-name>
will be Adwaita:dark
, <app-id>
will be org.libreoffice.LibreOffice
.
Use source ~/.gef.py
in GDB prompt to launch GEF.
Add :Z
to volume definition. See for details.
Note
For example -v "/path/host:/path/container:Z"
.
Use rpm -qf <filename>
to find related package.
Note
For example rpm -qf /usr/bin/zsh
.
Use dgpu <command> <arguments>
to lauch application in dGPU mode.
Note
For example dgpu firefox
.
See zsh aliases for additional details.
Use eject -t <device>
for connect media devices back after ejecting process.
Note
For example eject -t /dev/sda
.
Use udisksctl status
or lsblk
for getting device path.
Use gsettings set org.gnome.shell disable-extension-version-validation true
to disable Gnome shell extension version validation.
Edit file ~/.local/share/gnome-shell/extensions/<extension-id>/metadata.json
. Find key shell-version
and add your version (may be founded by executing gnome-shell --version
in terminal)
Note
For example, replace
"shell-version": [
"3.38",
]
To
"shell-version": [
"3.38",
"40.0"
]
Use sudo dnf -y --enablerepo=rpmfusion-nonfree-rawhide update "*nvidia*"
to install beta Nvidia drivers.
Create file howdy.te
module howdy 1.0;
require {
type lib_t;
type xdm_t;
type v4l_device_t;
type sysctl_vm_t;
class chr_file map;
class file { create getattr open read write };
class dir add_name;
}
#============= xdm_t ==============
allow xdm_t lib_t:dir add_name;
allow xdm_t lib_t:file { create write };
allow xdm_t sysctl_vm_t:file { getattr open read };
allow xdm_t v4l_device_t:chr_file map;
Then you can compile and insert it
checkmodule -M -m -o howdy.mod howdy.te
semodule_package -o howdy.pp -m howdy.mod
semodule -i howdy.pp
-
Provide access to
xhost
for current user or root:For current user:
xhost "+SI:localuser:$(id -un)"
For root:
xhost "+SI:localuser:$(id -un 0)"
-
Add parameters to
docker run
command:-e "DISPLAY=$DISPLAY" \ -v "/tmp/.X11-unix:/tmp/.X11-unix:Z"
Note
Add -u="$(id -u):$(id -g)"
if you use current user instead of root.
Change the file /usr/share/icons/default/index.theme
for applying new cursor theme.
Note
For example
[Icon Theme]
Inherits=Adwaita
Use sdkmanager
and avdmanager
to create new AVD:
yes | sdkmanager --licenses && \
sdkmanager --install 'system-images;android-<sdk-version>;google_apis;x86_64' 'emulator' 'platforms;android-<sdk-version>' 'platform-tools' && \
avdmanager create avd --name <avd-name> --package "system-images;android-<sdk-version>;google_apis;x86_64"
Specify in $HOME/.android/advancedFeatures.ini
:
Vulkan = off
GLDirectMem = on
See this page for details.
Specify in $HOME/.android/avd/<avd-name>/config.ini
:
hw.keyboard = yes
Use emulator
to launch it:
emulator -avd <avd-name> -cores 4 -memory 4096
Use rootAVD for getting the root access.
Note
For example <sdk-version>
will be 33
, <avd-name>
will be android-33
.