These are my installation-tricks and notes for running Linux on a Thinkpad P14s Gen1 with AMD Ryzen 7 4750U.
OS: Fedora release 35 (Thirty Four) x86_64
Model: 20Y1CTO1WW ThinkPad P14s Gen 1
CPU: AMD Ryzen 7 PRO 4750U with Radeon Graphics (16) @ 1.700GHz
GPU: AMD ATI 07:00.0 Renoir
Memory: 8GiB Samsung + 32GiB Kingston (SODIMM DDR4 3200 MHz)
NVMe: Sabrent Rocket Q 1TB
Ethernet: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Wifi: Wi-Fi 6 AX200
For Linux suspend to work, set the following in UEFI:
Config -> Energy-Optimization -> select Linux instead of Windows 10
I used the automatic partitioning of the GUI-fedora-Installer with Btrfs. Everything else was also set to default.
See Scripts postinstall for Fedora Workstation
I add some flags to the dnf conf file to speed it up:
echo 'fastestmirror=1' | sudo tee -a /etc/dnf/dnf.conf
echo 'max_parallel_downloads=10' | sudo tee -a /etc/dnf/dnf.conf
echo 'deltarpm=true' | sudo tee -a /etc/dnf/dnf.conf
cat /etc/dnf/dnf.confBy default my machine is called localhost; hence, I rename it for better accessability on the network:
hostnamectl set-hostname fedoraLet’s check if the locales and timezone is correctly set:
localectl status
# System Locale: LANG=fr_FR.UTF-8
# VC Keymap: fr-oss
# X11 Layout: fr
# X11 Variant: oss
timedatectl
# Local time: sam. 2021-10-23 08:48:12 CEST
# Universal time: sam. 2021-10-23 06:48:12 UTC
# RTC time: sam. 2021-10-23 06:48:12
# Time zone: Europe/Paris (CEST, +0200)
#System clock synchronized: yes
# NTP service: active
# RTC in local TZ: noLooks good, if not see the help file on the two commands or change locales and timezone in Gnome-Settings.
Equivalent of sudo apt install unattended-upgrades on Fedora:
sudo dnf install dnf-automaticInstall FiraCode Nerd Font or FiraMono Nerd Font from https://www.nerdfonts.com/
The first step is to install dependencies for Ruby.
sudo dnf install git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-develcd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
exec $SHELLrbenv install 3.0.2
rbenv global 3.0.2
ruby -vUse this command if you do not want rubygems to install the documentation for each package locally.
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
gem install bundler
Whenever you install a new version of Ruby or a gem, you should run the rehash sub-command. This will make rails executables known to rbenv, which will allow us to run those executables:
rbenv rehash
gem install rails -v 6.1.4
rbenv rehash
rails -vDisable bluetooth autostart in /etc/bluetooth/main.conf. Set AutoEnable to false.
sudo systemctl stop NetworkManager-wait-online.service
sudo systemctl disable NetworkManager-wait-online.servicesudo systemctl stop systemd-udev-settle.service
sudo systemctl disable systemd-udev-settle.serviceSee https://austingwalters.com/increasing-battery-life-on-an-arch-linux-laptop-thinkpad-t14s/
You have to edit the file ~/.config/autostart/teams.desktop and change the line X-GNOME-Autostart-enabled=true from true to false
[Desktop Entry]
Version=1.0
Type=Application
Encoding=UTF-8
Name=Microsoft Teams - Preview
Exec=/usr/bin/teams %U
Icon=teams
Terminal=false
StartupNotify=false
Categories=Network;Application;
MimeType=x-scheme-handler/msteams;
X-GNOME-Autostart-enabled=false
X-KDE-Protocols=teams- https://gist.github.com/timlinux/dfcc773be7db435a8a79b8253de69b1b
- https://gist.github.com/linderd/71ec30048e78813115ba3f634e1b0817
- https://mutschler.eu/linux/install-guides/fedora-post-install/
- https://austingwalters.com/increasing-battery-life-on-an-arch-linux-laptop-thinkpad-t14s/
- https://gist.github.com/Obihoernchen/973edb3618ed87a91e4af29d9484e804