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.rpm
[Read More]

Configure 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=<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
    
  • Set execute permission: sudo chmod +x /usr/bin/gitproxy
  • Configure git: git config --global core.gitproxy gitproxy
  • Disable SSL verify: git config --global http.sslverify false
git  proxy 

Restore 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/boot
[Read More]
grub  fedora