Skip to content

Niapollab/FedoraG14Dots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Fedora notes - Asus ROG Zephyrus G14 GA402XV

Install different version of Flatpak app

  1. 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.

  1. Use sudo flatpak update --commit=<commit> <app-id> for reverting.

Note

Use sudo flatpak mask <app-id> for removing it from updates list.

Fix issue with wrong Gnome theme in Flatpak apps

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.

Launch GEF from GDB

Use source ~/.gef.py in GDB prompt to launch GEF.

Fix Permission denied in Docker volumes

Add :Z to volume definition. See for details.

Note

For example -v "/path/host:/path/container:Z".

Find related package by filename

Use rpm -qf <filename> to find related package.

Note

For example rpm -qf /usr/bin/zsh.

Lauch application in dGPU mode from console

Use dgpu <command> <arguments> to lauch application in dGPU mode.

Note

For example dgpu firefox. See zsh aliases for additional details.

Uneject media device

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.

Disable Gnome shell extension version validation

Use gsettings set org.gnome.shell disable-extension-version-validation true to disable Gnome shell extension version validation.

Add support your Gnome shell version for specific extension

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"
   ]

Install beta Nvidia drivers

Use sudo dnf -y --enablerepo=rpmfusion-nonfree-rawhide update "*nvidia*" to install beta Nvidia drivers.

Howdy SELinux problems

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

Run X11 Docker applications

  1. 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)"
  2. 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.

Set cursor theme for every user

Change the file /usr/share/icons/default/index.theme for applying new cursor theme.

Note

For example

[Icon Theme]
Inherits=Adwaita

Install Android Virtual Device

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages