Skip to content

Instantly share code, notes, and snippets.

@goncha
Last active December 20, 2015 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goncha/6148625 to your computer and use it in GitHub Desktop.
Save goncha/6148625 to your computer and use it in GitHub Desktop.
Fedora 20 Setup

System

  1. Disable SELinux in `/etc/selinux/config` (need reboot)
  2. Install RPMFusion free&nofree repos rpm
  3. Install Wifi BCM4313 driver `yum install kmod-wl` after Step 2
  4. Install Adobe and Google repos rpm
  5. Install 163 mirror repos (http://mirrors.163.com/.help/fedora.html)
  6. Install build-essential alternative, `yum install make automake gcc gcc-c++ kernel-devel` or `yum-builddep sqlite` or `yum groupinstall “Development Tools”`
  7. Configure yum use proxy in /etc/yum.conf
# The proxy server - proxy server:port number 
proxy=http://mycache.mydomain.com:3128 
# The account details for yum connections 
proxy_username=yum-user 
proxy_password=qwerty

Multimedia

  1. Install mplayer gstreamer-ffmpeg
  2. Link a font to .mplayer/subfont.ttf
  3. Mplayer config for utf8 subtitle file: `nofontconfig=yes` and `utf8=yes`

KDE

  1. Create a .sh file in ~/.kde/env/ to provide environment variables for all desktop apps, ~/.profile only works for terminal
  2. System Settings -> File Association, change application of Video files to mplayer
  3. System Settings -> Shortcuts and Gestures -> Global Keyboard Shortcuts to learn and adjust keyboard shortcuts

Don’t Run Auto Updating & Misc Services

  1. System Settings -> Software Management -> (the wrench icon at the right) -> “Settings”: set “Check for Updates” to Never
  2. System Settings -> Startup & Shutdown -> Service Manager, uncheck & stop helpless services (ApperMoniter without auto updating)

Chinese Input Method

Use fcitx

yum install fcitx fcitx-qt4 fcitx-pinyin kcm-pinyin kcm-fcitx

Then edit your X11 profile. For KDE4, it’s one file in ~/.kde/env sourced by startkde

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

# Run fcitx
LC_ALL=zh_CN.UTF-8 LANG=zh_CN.UTF-8 fcitx

Services

Fedora uses systemd instead of init script to manage services. systemctl is the command line tool to manage services.

sudo systemctl list-unit-files

Use the above cmd to find your service

sudo systemctl enable SERVICE_NAME

Use the above cmd to enable your service

sudo systemctl start SERVICE_NAME

Use the above cmd to run your service

Google Chrome

sudo su

wget https://dl-ssl.google.com/linux/linux_signing_key.pub
rpm --import linux_signing_key.pub

cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome - \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
EOF

yum install google-chrome-stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment