Skip to content

philljj/fedora-stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 

Repository files navigation

Fedora Stuff

Things I wished I'd written down if I have to wipe and reinstall.

Chrome

sudo dnf install fedora-workstation-repositories

sudo dnf config-manager --set-enabled google-chrome

sudo dnf install google-chrome-stable

Chrome silliness

If chrome crashes, then won't launch again:

rm -rf ~/.config/google-chrome/Singleton*

If you can't update Chrome through the browser, then update through dnf:

sudo dnf update google-chrome-stable

Vim

Get full vim install, not just minimal:

sudo dnf install vim

Colors

Get legacy color schemes:

git clone https://github.com/vim/colorschemes.git
cd colorschemes/legacy_colors/
mkdir -p ~/.vim/colors
cp elflord.vim ~/.vim/colors/

vimrc

Get my vimrc:

Bashrc

Title function, and shorten terminal cmd prompt.

Add this to top of bashrc:

# Set title to arg passed, or to current dir.
# Attribution:
#   https://stackoverflow.com/a/75144186
function ttl() {
  if [ $# -eq 1 ]; then
    str=$1
  else
    str=$(pwd | awk -F '/' '{print $NF}')
  fi

  if [[ -z "$ORIG" ]]; then
    ORIG=$PS1
  fi
  TITLE="\[\e]2;$str\a\]"
  PS1=${ORIG}${TITLE}
}

# Shorten cmd prompt.
export PS1="[\u \W]\$"

Desktop background

Set scaled background image:

gsettings set org.gnome.desktop.background picture-options scaled

See options:

gsettings range org.gnome.desktop.background picture-options

References:

Git

Git aliases

git config --global alias.co checkout
git config --global alias.br branch

Git global user config

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

Git credential store. This will save credentials plaintext:

git config --global credential.helper store

Install Kernel Src Tree

sudo dnf install kernel-devel-$(uname -r)

Installs kernel src tree to:

$ls /usr/src/kernels/$(uname -r)
arch           drivers   ipc       Makefile.rhelver  samples     tools
block          fs        Kconfig   mm                scripts     usr
certs          include   kernel    Module.symvers    security    virt
crypto         init      lib       net               sound       vmlinux.h
Documentation  io_uring  Makefile  rust              System.map  vmlinux.id

GNU toolchain

sudo dnf install autoconf
sudo dnf install automake
sudo dnf install libtool
sudo dnf install perl
sudo dnf install libasan

Essential packages

sudo dnf install flex bison
sudo dnf install elfutils-libelf-devel
sudo dnf install pcre2grep
sudo dnf install patch
sudo dnf install valgrind
sudo dnf install openssl
sudo dnf install openssl-devel
sudo dnf install qemu
sudo dnf install dracut
sudo dnf install expect
sudo dnf install clang
sudo dnf install clang-devel
sudo dnf install glibc
sudo dnf install glibc-static
sudo dnf install busybox
sudo dnf install shellcheck
sudo dnf install cppcheck
sudo dnf install check
sudo dnf install check-devel

Useful packages

sudo dnf install sensors
sudo dnf builddep systemd #systemd dependencies
sudo dnf install libgcrypt
sudo dnf install libgcrypt-devel
sudo dnf install libevent
sudo dnf install libevent-devel
sudo dnf install libpsl-devel # for building libcurl
sudo dnf install cmake # needed for west zephyr builds
sudo dnf install ninja-build # needed for west zephyr builds
pip3 install pyelftools # needed for west zephyr builds
sudo dnf install libpcap-devel # for testing lwip

ssh server

install:

sudo dnf install openssh-server

start:

systemctl start sshd.service

Useful tools

sudo dnf install meld
sudo dnf install lm_sensors

gcc-arm-none-eabi-

sudo dnf install arm-none-eabi-gcc-cs

May also require:

sudo dnf install ncurses-compat-libs
sudo dnf install arm-none-eabi-newlib

powerpc cross compile

sudo dnf install gcc-powerpc64-linux-gnu

more qemu

sudo dnf install qemu-system-ppc virt-install libvirt-daemon-kvm

FreeBSD stuff too

Date

Set date and time:

sudo service ntpdate onestart

Enable time sync:

sudo sysrc ntpd_enable="YES"
sudo service ntpd start

Fedora Gaming

DooM

nalika gzdoom seems to be well supported:

sudo dnf copr enable nalika/gzdoom
sudo dnf install gzdoom

wine

todo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages