Uninstall bumblebee and nvidia driver from rpmfusion if installed.
$ sudo dnf remove *nvidia* akmod-bbswitch bumblebee primus
Uninstall bumblebee and nvidia driver from rpmfusion if installed.
$ sudo dnf remove *nvidia* akmod-bbswitch bumblebee primus
To download patch file of a commit on github, just add .patch
to its URL (without arguments like ?diff=unified
).
Common URL:
https://github.com/<owner>/<repo>/commit/<commit_id>.patch
For example, the patch file for commit
https://github.com/dothanhtrung/godebian/commit/cf0495a9e2f5996fbb3e00f21e92b9aa259a6c2b
is at
https://github.com/dothanhtrung/godebian/commit/cf0495a9e2f5996fbb3e00f21e92b9aa259a6c2b.patch
Edit $HOME/.tmux.conf
.
Reload .tmux.conf
Reload configuration file with Ctrl-b r
:
bind-key r source ~/.tmux.conf
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.
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.
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.rpm
For http and https protocol:
$ git config --global http.proxy $http_proxy
$ git config --global https.proxy $http_proxy
For git protocol
socat
./usr/bin/gitproxy
with content:
#!/bin/sh
proxy_host=<your_proxy_host>
proxy_port=<your_proxy_port>
proxy_user=<your_proxy_username>
proxy_pass=<your_proxy_password>
exec socat STDIO PROXY:$proxy_host:$1:$2,proxyport=$proxy_port,proxyauth=$proxy_user:$proxy_pass
sudo chmod +x /usr/bin/gitproxy
git config --global core.gitproxy gitproxy
git config --global http.sslverify false
Download kernel-qemu-4.14.79-stretch
and versatile-pb.dtb
at dhruvvyas90/qemu-rpi-kernel
.
Download Raspbian Stretch at the official site. I use ’lite’ version, but other version should be fine.
Create a Debian chroot
$ sudo debootstrap <code name> <chroot folder> <apt repo URL>
# Example
$ sudo debootstrap buster ./chroot-buster http://deb.debian.org/debian