Fedora 20 安装 NVIDIA 官方驱动(单显卡)

注意:本文仅适用于单显卡机器,双显卡笔记本请绕行

lspci |grep -i VGA
如果是 nvidia 的显卡就是输出以下类似信息:
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)

添加 RPMFusion 的开源与闭源软件仓库(已经添加的可以略过此步):
sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

akmod 是避免内核升级时产生问题的一个简单易行的好选择:
sudo yum install akmod-nvidia xorg-x11-drv-nvidia-libs

yum list installed 
更多...

phpMyAdmin禁止左侧导航面板数据表分页

新版phpMyAdmin在数据表很多的情况下会自动分成多页显示,使用起来不是很方便,解决方法:

cd phpMyAdmin/

如果目录下没有 config.inc.php 则需执行:
cp config.sample.inc.php config.inc.php

vi config.inc.php
添加:
$cfg['MaxNavigationItems'] = 1000; //只有超过1000张表才会分页
更多...

Fedora 20/openSUSE 13.1 安装 QQ国际版1.6

wget http://packages.linuxdeepin.com/deepin/pool/non-free/d/deepinwine-qqintl/wine-qqintl_0.1.3-2_i386.deb
解压缩,给予777权限,将 wine-qqintl_0.1.3-2_i386/usr/ 拷贝到 /usr/ 目录下

安装需要用到的库:

Fedora:
sudo yum install libstdc++.so.6 gtk2.i686 cups-libs.i686
sudo yum install glibc.i686 libpng12.i686 libXext.i686
sudo yum install alsa-plugins-pulseaudio.i686 gtk+-devel.i686 lcms2-devel.i686 libSM.i686 ncurses-*

OpenSUSE:
sudo zypper install libstdc++.so.6 gtk2-32bit cups-libs-32bit
sudo zypper install glibc-32bit 
更多...

Ubuntu 14.04 安装 Mono

sudo apt-get install mono-gmcs mono-devel
mono -V

sudo service apache2 stop
sudo apt-get install libapache2-mod-mono libmono-i18n2.0-cil

# For .NET 2.0
sudo apt-get install mono-apache-server2
# For .NET 4.0
sudo apt-get install mono-apache-server4

sudo a2enmod mod_mono
sudo service apache2 restart

hostname
更多...

Fedora 22/20 GNOME 字体与界面美化

添加RPMFusion源:
20/21:
sudo yum localinstall --nogpgcheck http://mirrors.aliyun.com/rpmfusion/free/fedora/rpmfusion-free-release-stable.noarch.rpm
sudo yum localinstall --nogpgcheck http://mirrors.aliyun.com/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
22:
sudo rpm -Uhv http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-22.noarch.rpm
sudo rpm -Uhv http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-22.noarch.rpm

安装字体渲染程序:
sudo rpm -Uvh http://www.infinality.net/fedora/linux/infinality-repo-1.0-1.noarch.rpm
sudo yum install freetype-infinality fontconfig-infinality
注销重登陆

安装字体:
sudo yum install wqy-microhei-fonts.noarch

比较清晰美观的字体设置方案:
窗口标题字体:Liberation Sans 
更多...

CentOS 7.0 添加 SWAP

1.进入目录
cd /var/
2.获取要增加的SWAP文件块(这里以1GB为例)
dd if=/dev/zero of=swapfile bs=1024 count=1038336
3.创建SWAP文件
/sbin/mkswap swapfile
4.激活SWAP文件
/sbin/swapon swapfile
5.查看SWAP信息是否正确
/sbin/swapon -s
6.添加到fstab文件中让系统引导时自动启动
echo "/var/swapfile swap swap defaults 0 0" /etc/fstab
更多...

Ubuntu 安装 Nginx + PHP + MySQL

Nginx 1.8.0:
sudo add-apt-repository ppa:nginx/stable 
sudo apt-get update
sudo apt-get install nginx

sudo systemctl start nginx
sudo systemctl enable nginx

如出现 Apache 卸载不干净的话请执行:
sudo apt-get purge apache2*

Ubuntu 16.04:
sudo apt-get install php-fpm
sudo apt-get install php-dev
sudo apt-get install 
更多...