How to install fedora 20 with mini install

config git repo 1 2 3 4 5 6 # cat /etc/yum.repos.d/nay.repo [nay] name=Fedora $releasever - $basearch baseurl=http://download.englab.nay.redhat.com/pub/fedora/linux/releases/20/Everything/x86_64/os/ enabled=1 gpgcheck=0 Install X 1 2 3 yum -y --nogpgcheck install xorg-x11-server-Xorg xorg-x11-server-utils \ xorg-x11-utils xorg-x11-xinit xorg-x11-apps xorg-x11-drv-intel \ xorg-x11-drv-evdev xorg-x11-drv-keyboard dbus-x11 Install desktop env 1 2 3 4 5 6 yum install -y awesome libnotify xsel sdcv slock scrot xrandr arandr ranger \ gtk2-engines clearlooks-phenix-* tango-icon-theme gtk-chtheme \ dejavu-sans-mono-fonts wqy-zenhei-fonts \ gdb ctags cscope automake make gcc git xterm vim-enhanced wget \ firefox fcitx fcitx-cloudpinyin fcitx-configtool irssi screen offlineimap ntpdate cups \ unrar p7zip lftp vsftpd tigervnc tar alsa-utils vpnc awesome: a light desktop libnotify: send notify message xsel: copy from Clipboard sdcv: dictonary slock: lock the screen xrandr: config multi screen arandr: gui for xrander ranger: file manager gtk2-engines clearlooks-phenix-* tango-icon-themea: themeas gtk-chtheme: gui tools to change gkt cheme pcmanfm: gui file manager fcitx fcitx-cloudpinyin: input method dejavu-sans-mono-fonts wqy-zenhei-fonts: fonts alsa-utils: sound manager

GCC tips

How to compile a 32bit program on 64bit system install related package and header file, like glibc-devel.i686 If you meet error like: 1 2 /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: cannot find -lgcc_s Then you need to install libgcc.i686 3. gcc -m32 -o test test.c How to compile a program with .so file cc simple_parse.c -o simple_parse -ljansson -L .

How to install JDK on linux

Install Open JDK: yum install -y java-1.7.0-openjdk Install jdk web plug-in: yum install -y icedtea-web click the link and open with icedtea (firefox) Or download the jnlp file and run javaws your_jnlp_file.jnlp in cmd

apache显示目录

虽然直接显示目录不安全,但是有时候还是需要显示目录的,网上找了很多方法,都是说通过在Directory下添加删除Indexes来控制是否显示

Bitcoin

tool: cgminer https://deepbit.net/ https://en.bitcoin.it/wiki/Mining_hardware_comparison