Skip to content

Instantly share code, notes, and snippets.

@wynemo
Created April 5, 2012 15:40
Show Gist options
  • Save wynemo/2312016 to your computer and use it in GitHub Desktop.
Save wynemo/2312016 to your computer and use it in GitHub Desktop.
something about fedora 15

##f15 kde 桌面

###video music 加源 http://rpmfusion.org/Configuration yum -y install gstreamer-plugins-bad-free ffmpeg ffmpeg-devel lame 显卡安装失败

###install kernel 更新内核 : yum update kernel 大更新: yum update

yum install kernel-headers
yum install kernel-devel

###install compiler

gcc,g++ yum -y install gcc gcc-c++

###network

  • privoxy is socks to http proxy
  • tsocks let program use socks proxy(tcp only)
  • miredo set ipv6 in ipv4 environment

yum -y install privoxy tsocks miredo

###输入法 yum -y install scim scim-pinyin scim-bridge scim-bridge-gtk

用input method selector选择scim作为输入法,登出再进

###浏览器 firefox chromium 与opera 需要加源 yum -y install wget curl w3m lynx curl

###flash插件 从http://labs.adobe.com/downloads/flashplayer10_square.html 下载得到 libflashplayer.so, $ su # echo '0' > /selinux/enforce # mv libflashplayer.so /usr/lib64/mozilla/plugins

###下载 ktorrent凑合,utorrent也可以(web界面) 电驴 amule

###python 开发 yum -y install Django python-webpy gae sdk

###svn yum -y install svn

###实用 yum -y install screen nmap nload

use nload -u K wlan0 to see your network

###同步

####dropbox $ wget https://www.dropbox.com/download?dl=packages/dropbox.py -O dropbox.py $ chmod a+x dropbox.py $ su # mv dropbox.py /usr/local/bin/ # exit $ tsocks dropbox.py start -i #安装 以后每次就dropbox.py start

###摄像头 cheese

###ssh 服务 $ su # cd /etc/ssh # ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key # /sbin/service sshd restart`

###聊天 irc,msn,gtalk : yum -y install irssi finch

qq : http://code.google.com/p/myqq3/

twitter client:yum -y install hotot

###音视频 mplayer,kmplayer moc编译:

yum -y insatll ncurses-devel yasm
yum -y install ffmpeg-devel libid3tag-devel libmad-devel 
yum -y install zlib-devel jack-audio-connection-kit-devel alsa-lib-devel

不要编译装librcc 如果make 有头文件错误,可能要改ffmpeg.c

//#if HAVE_LIBAVFORMAT_AVFORMAT_H
#include <libavformat/avformat.h>
//#else
//#include <ffmpeg/avformat.h>
//#endif

###虚拟机 virtualbox 要用usb的话官网上去下,不用usb直接用ose的

###wine 不知道为啥我装的wine 1.3是64位的windowos了 这下装不了ie6 直接用不了qq

$ cd /tmp
$ wget http://winetricks.googlecode.com/svn/trunk/src/winetricks
$ sh winetricks vcrun6,vcrun2005,vcrun2008

其中vcrun6 下载的vc6redistsetup_enu.exe,用wine运行解压得到vcredist.exe

$ cp vcredist.exe /tmp
$ cd /tmp
$ mkdir vc6
$ cd vc6
$ 7z x ../vcredist.exe
$ cp *.dll ~/.wine/drive_c/windows/system32/

有可能还要执行$ cp *.dll ~/.wine/drive_c/windows/syswow64/

创建simsun.sh(http://dl.dropbox.com/u/13112361/simsun.ttc.7z),simsun.ttc或者自己去xp上找 $ touch simsun.sh

#!/bin/sh
cd /tmp
wget https://dl.dropbox.com/u/13112361/simsun.ttc.7z
7z x simsun.ttc.7z
mv simsun.ttc ~/.wine/drive_c/windows/Fonts/
regedit simsun.reg

建立simsun.reg $ touch simsun.reg

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"MS Shell Dlg"="SimSun"
"MS Shell Dlg 2"="SimSun"
"Tahoma"="SimSun"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Tahoma"="str(7):SimSun.TTC,SimSun\\0"

执行sh simsun.sh,wine运行的程序就可以显示中文了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment