Posts
49 articlesGet started with tmux

Configuration
Edit $HOME/.tmux.conf.
Keyboard shortcut
-
Reload
.tmux.conf
Reload configuration file withCtrl-b r:bind-key r source ~/.tmux.conf
Write markdown in Visual Studio Code
Recommend extensions: markdownlint: For markdown linting and style checking. Markdown Preview Github Styling: Markdown preview in Github's style. Open the preview side-by-side with shortcut Ctrk+K V. More
Set up Bumblebee for NVIDIA Optimus on Fedora
This post is obsolete. Please check the new manual at this post
If you don't care to battery and want to use NVIDIA card fulltime, check this post.
Install Bumblebee and NVIDIA driver
Add RPMFusion repositories
$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpmConfigure proxy for git
For http and https protocol: $ git config --global http.proxy $http_proxy $ git config --global https.proxy $http_proxy For git protocol Install socat. Create /usr/bin/gitproxy with content:#!/bin/sh proxy_host=<you…
Run Raspbian with qemu and virt-manager

Run with QEMU
-
Download
kernel-qemu-4.14.79-stretchandversatile-pb.dtbat dhruvvyas90/qemu-rpi-kernel . -
Download Raspbian Stretch at the official site. I use 'lite' version, but other version should be fine.
Get started with Debian chroot
Create a Debian chroot
$ sudo debootstrap <code name> <chroot folder> <apt repo URL>
# Example
$ sudo debootstrap buster ./chroot-buster http://deb.debian.org/debianRestore grub on Fedora
Boot to live USB
Mount the partition we want to restore grub (assume /dev/sda1)
sudo mount /dev/sda1 /mnt
# If /boot folder in another partition (assume /dev/sda2)
# you need to mount it too
# sudo mount /dev/sda2 /mnt/bootInstall NVIDIA driver on Fedora
This post is obsolete. Please check the new manual at this post
Install driver
Add negativo17's repo
$ sudo dnf config-manager --add-repo=https://negativo17.org/repos/fedora-nvidia.repo
Install NVIDIA driver
$ sudo dnf install nvidia-driver nvidia-driver-libs.i686