Giter VIP home page Giter VIP logo

setup-laptop's Introduction

Setup Fedora Laptop

Ansible playbook to automate the setup of a Fedora installation. If the laptop is a Asus ROG Zephyrus GA402XI additional asus-linux stuff and NVIDIA drivers will be installed.

Source for all the Asus Linux specific config comes from this guide: https://asus-linux.org/guides/fedora-guide/

Run the playbook and ask for 'Become' password with the following command:

ansible-playbook setup.yml -K

Manual settings

System boot configuration

This is specific if you run NVIDIA GPU. Edit system boot configuration:

sudo vim /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rhgb quiet preemt=full"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
  • The nouveau stuf will blacklist the nuoveau driver from being loaded
  • nvidia-drm.modset=1 allow the dGPU to display on external monitors.
    • Check if this is set correctly with sudo cat /sys/module/nvidia_drm/parameters/modset should return Y.
  • rhgb is the Red Hat Graphical Boot
  • quiet prevents output of the kernel boot process
  • preemt=full allows other processes to interrupt kernel processes, like I/O

Some settings might appreare multiple times, they can be deleted safely. If there is something with a nomodset this should be removed, as else graphics acceleration is disabled.

Update grub:

sudo grub2-mkconfig -o /etc/grub2.cfg

Reboot.

setup-laptop's People

Watchers

Oliver Morf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.