My linux install fedora

来源:互联网 发布:linux spi dma 编辑:程序博客网 时间:2024/04/28 19:34

my_setup


1, 加载 disk 分区
vi /etc/rc.local
mount /dev/sda6  /mnt/sda5
mount /dev/sda5  /mnt/sda6


2, modify 阿贴 的同步信息
同步到我的自己硬盘中
need search how can configure.


3, modify sudo
visudo
## Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL
leo             ALL=(ALL)       NOPASSWD: ALL


4, restore hosts file
sudo cp /mnt/sda5/linux_env/hosts  /etc/hosts
source /etc/hosts


5,configure file prop



6, restore the web browse info
from my backup


7, configure firefox and network
proxy: wwwgate0.mot.com:1080
no proxy for all motorola intranet sites including all listed in hosts. e.g. fill "No proxy for" item with "localhost, 127.0.0.1,svn,192.168.0.0/16,.mot.com,intranet,zse18app01,scapa, speyburn,speyside,chieftec,twinpeek,media,xia,zse18fil01"

wwwgate0-cn.mot.com
proxy: wwwgate0.mot.com
DNS:  
DNS1=10.193.143.1
DNS2=10.194.128.15
10.179.0.3
sudo vim /etc/sysconfig/network-scripts/ifcfg-eth1


8, configure yum
/etc/yum.conf: add the line
proxy=http://wwwgate0.mot.com:1080


9,install dhcp nfs tftp http infocast 
and backup corresponding configure.
dhcpd.conf
add nfs root path
configure tftp root path
download http portal page.
restore infocast configure



10, install and configure thunderbird
chkq76@motorola.com
outlook.mot.com
server:  zmy16exf61.ds.mot.com
wwwgate0-ch.mot.com:1080

restore mail info



11, step by step set up development environment.
tftp and nfs 一定要按照说明进行;

防火墙要关闭;
disable selinux:     vi /etc/sysconfig/selinux

sudo yum install ushare
config ushare : /etc/ushare.conf
# /etc/ushare.conf
# Configuration file for uShare
# uShare UPnP Friendly Name (default is 'uShare').
# Ex: USHARE_NAME="any name for server is OK", note: no space for the name
USHARE_NAME=MediaServer
# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth0
USHARE_IFACE= eth0
# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT= 49200
# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR="any folder to share"
USHARE_DIR=/home/movie,/home/music

/etc/init.d/ushare start  
service ushare start


12, install player:
VLC:
su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
or use:  sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

$> su -
#> rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
#> yum install vlc
#> yum install mozilla-vlc (optionnal)

free and the nonfree repository use the following command:
#Fedora 10 or 11:
su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'
#Fedora Alpha, Beta, Preview, Rawhide, RC, Snapshot aka. what will become Fedora 12:
su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm'
#RHEL5 or compatible like CentOS:
su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm'

player: yum GUI install;
adobe flash player:
http://get.adobe.com/flashplayer/thankyou/?installer=Flash_Player_10_for_Linux_(YUM)
install adobe-reader from GUI
install adobe-flash from GUI

13,   chm tools for linux
install chm viewer from GUI


14,  setup  printer;
10.192.133.52:9100
HP   LaserJet 4350



15,  insall kscope
sudo yum install kscope



16,  install vmware
rpm -ivhU  VMware-Workstation-6.5.2-156735.i386

安装完毕后, 可以用vmware player 进行打开虚拟OS


类似的软件: sun virtualbox



17, linux 显卡类型识别
lspci -v
lspci 
glxinfo
glxinfo | grep render基本上可以看你的显卡的vendor了
lspci能够显示出显卡信息,前提是系统能够识别这个显卡
驱动可以用默认的vesa 

lspci 
01:00.0 VGA compatible controller: nVidia Corporation NV44 [Quadro NVS 285] (rev a1)

lspci -v
01:00.0 VGA compatible controller: nVidia Corporation NV44 [Quadro NVS 285] (rev a1) (prog-if 00 [VGA controller])
Subsystem: nVidia Corporation Device 029d                                                                 
Flags: fast devsel, IRQ 11                                                                                
Memory at fc000000 (32-bit, non-prefetchable) [size=16M]                                                  
Memory at e0000000 (64-bit, prefetchable) [size=256M]                                                     
Memory at fd000000 (64-bit, non-prefetchable) [size=16M]                                                  
Expansion ROM at fea00000 [disabled] [size=128K]                                                          
Capabilities: <access denied>                                                                             
Kernel modules: nvidiafb     



18, install k3b,  类似于nero 的刻录软件
sudo yum install k3b

genisoimage -input-charset help

Linux下用mkisofs制作光盘镜像ISO文件
下面给一个例子。
root:~$ mkisofs -o windows_2003_zh_ent_edition.iso -J -r -v -V windows_2003_zh_ent_edition /media/cdrom0 
如果光盘内容有中文文件,并且你linux的系统编码是UTF-8的话 参数 -input-hfs-charset 和 -output-hfs-charset 就需要用上. 

root:~$ mkisofs  -output-charset gbk -o windows_xp_zh.iso -J -r -v -V windows_xp_zh -input-charset gbk   /media/XRMPVOL_CN
如果光盘内容有中文文件,并且你linux的系统编码是UTF-8的话 参数 -input-hfs-charset 和 -output-hfs-charset 就需要用上. 



功能说明:建立ISO 9660映像文件。
语  法:mkisofs    [-adDfhJlLNrRTvz]   [-print-size]  [-quiet]  [-A<应用程序ID>]  [-abstract<摘要文件>]  [-b<开机映像文件>]  [-biblio ]  [-c<开机文件名称>]  [-C<盘区编号,磁区编号>]  [-copyright<版权信息文件>] [-hide<目录或文件名>][-hide-joliet<文件或目录名>][-log-file<记录文件>] [-m<目录或文件名>][-M<开机映像文件>]           [-o<映像文件>]  [-p<数据处理人>] [-P<光盘发行人>]  [-sysid<系统ID >][-V<光盘ID >][-volset<卷册集ID>][-volset-size<光盘总数>][-volset-seqno<卷册序号>]   [-x<目录>]  [目录或文件]
补充说明:mkisofs可将指定的目录与文件做成ISO9660格式的映像文件,以供刻录光盘。

最简单的用法是:
# mkisofs -o imagefile.iso/path/to/tree
这个命令将创建一个包含 ISO9660 文件系统的imagefile.iso文件,它是目录树 /path/to/tree的一个副本。在处理过程中,它将文件名称映射为标准的 ISO9660文件系统的文件名,将排除那些不典型的 ISO文件系统的文件。

# 运行如下命令,如果 Known charsets 没有 big5,gb2312,cp936,则表明 k3b 不支持 CJK。

mkisofs -input-charset -help



19,  linux 下的 vmware 出来的windows 配置
配置dns, dhcp,  配置no proxy 项;
配置hosts: C:\Winnt\System32\Drivers\Etc    内容参考linux 下面的/etc/hosts 文件

声音的问题:
[sam's method]修改 Windows XP Professional.vmx 文件: 添加下面两行
sound.device="/dev/audio"
sound.virtualDev="es1371"

[my method]
vmware->vm->settings->sound card->
two selected;  select /dev/dsp




20, 安装类似于千千静听的播放器
awarok


21, Mot IM configure

Pidgin: Motorola Jabber Configuration 
http://pidgin.im/
XMPP is what Jabber is made of
Screen name: chkq76
Domain:  jabber.sourceforge.mot.com
Resource:  XXX
Password:  
Require SST/TLS
no proxy

a, download:
http://sourceforge.net/projects/sipe/files/sipe/pidgin-sipe-1.7.0/pidgin-sipe-1.7.0.tar.gz/download

b, install
sudo yum install -y libpurple.i386 libpurple-devel.i386 purple-plugin_pack.i386 purple-plugin_pack-pidgin.i386

# tar xzf pidgin-sipe-1.7.0.tar.gz
# cd pidgin-sipe-1.7.0
# ./configure --prefix=/usr
# make
# sudo make instal

c, configure
restart Pidgin
protocol: Office Communicator
Username:Leo.Su@motorola.com  (your friendly email ID (name@motorola.com)) 
Login: ds\chkq76    // Not leave it to blank. Don't believe the web.
User Agent: Purple/2.4.0  // Change if you're different.
Proxy: No Proxy


22,  install Calendar
calendar
Korganizer


23, install  meld   and diff3

yum install meld
yum install diff3


24,  development compile project error:
make[3]: gtk-config: Command not found             
../../../makesystem/common.mk:960: *** Error: Shell command with empty result: gtk-config --cflags.  Stop.
make[2]: *** [.target_host] Error 2                                                                       
make[1]: *** [applications/common/gtk-ipc] Error 2                                                        
make: *** [tree_all] Error 2                                                                              
[leo@leo custom]$                                                                                         
[leo@leo custom]$                                                                                         
[leo@leo custom]$ sudo  yum install 'gtk+-devel'                                                          
Loaded plugins: refresh-packagekit            


/usr/bin/gdk-pixbuf-config: Command not found
../../../makesystem/common.mk:960: *** Error: Shell command with empty result: /usr/bin/gdk-pixbuf-config --cflags.  Stop.
make[2]: *** [.target_host] Error 2
make[1]: *** [applications/tia/common] Error 2
make: *** [tree_all] Error 2

[leo@leo custom]$ sudo  yum install 'gdk'     

checking for libIDL-config... no
checking for libIDL - version >= 0.6.3... no
*** The libIDL-config script installed by libIDL could not be found
*** If libIDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the LIBIDL_CONFIG environment variable to the
*** full path to libIDL-config.
configure: error: libIDL not found.
libIDL 0.6.3 or higher is required.
make[3]: *** [vip1900/Makefile] Error 1
make[2]: *** [.target_vip1900] Error 2
make[1]: *** [applications/3pp/mozilla-1.7.12] Error 2
make: *** [tree_all] Error 2

Dogcow, I think your problem is with orbit, not libidl2 :
Do you have orbit-dev and orbit-shlibs installed?
apt-get install orbit --reinstall
apt-get install orbit-shlibs --reinstall
apt-get install orbit-dev --reinstall 


25. . yum update failed
yum install vlc failed

Missing Dependency: libx264.so.56 is needed by package mencode的解决办法
I do it like this:
# updatedb
# whereis libx264.so.56
/usr/lib/libx264.so.55
# yum remove libx264.so.55
# yum install vlc


yum clean all
yum check update
yum update
rpm -e kmod-alsa
yumex


--> Finished Dependency Resolution                                                                     
kdeedu-marble-4.3.3-1.fc10.i386 from updates has depsolving problems                                   
--> kdeedu-marble conflicts with kdeedu-libs                                                         
Error: kdeedu-marble conflicts with kdeedu-libs           

sudo yum update yum
sudo yum update


26,  install mht  support

UnMHT 5.4.0


27, active network
sudo ifup tho

0 0