hillwood 发表于 2006-12-13 18:12:27

随便改吧,只要遵守GPL协议就行了 :mrgreen:

love_eva 发表于 2006-12-13 19:00:36

# ./fc.sh
Please choose your language,Enter 1 to use English,Enter 2 to use Simplified Chnese,Enter 3 to use Traditional Chinese
2

##############################################################################################
                  欢迎使用RedHat Fedora Core常用软件安装脚本

本脚本可以自动安装系统缺失的多媒体解码器,以及其他网常用软件

请选择你使用的系统,FC5请输入5,FC6请输入6

##############################################################################################

5

请输入一个合适你的站点并回车,如:linux-vbird.3322.org
镜像一:linux-vbird.3322.org(电信)
镜像二:tel.gandong.net(电信)
镜像三:cnc.gandong.net(网通)
镜像四:www.gandong.net(移动)
镜像五:cu.gandong.net(联通)

cnc.gandong.net
开始运行脚本,整个脚本运行完成可能需要1个小时,具体时间视你的网速而定
开始导入yum源
--18:48:49--http://cnc.gandong.net/FC5/yumrepo-1.0-FC5.noarch.rpm
         => `yumrepo-1.0-FC5.noarch.rpm'
正在解析主机 cnc.gandong.net... 202.75.208.253
Connecting to cnc.gandong.net|202.75.208.253|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:3,679 (3.6K)

100%[====================================>] 3,679         --.--K/s

18:48:49 (81.59 MB/s) - `yumrepo-1.0-FC5.noarch.rpm' saved

Preparing...                ###########################################
      package yumrepo-1.0-FC5 is already installed
--18:48:49--ftp://ftp.fedora.cn/pub/fedora-cn/linux/5/i386/RPMS/fedora-cn-relase-1.1-2.noarch.rpm
         => `fedora-cn-release-1.1-2.noarch.rpm'
正在解析主机 ftp.fedora.cn... 219.234.95.153
Connecting to ftp.fedora.cn|219.234.95.153|:21... 已连接。
正在以 anonymous 登录 ... 登录成功!
==> SYST ... 完成。    ==> PWD ... 完成。
==> TYPE I ... 完成。==> CWD /pub/fedora-cn/linux/5/i386/RPMS ... 完成。
==> PASV ... couldn't connect to 219.234.95.153 port 28656: 连接超时
重试中。

--18:52:00--ftp://ftp.fedora.cn/pub/fedora-cn/linux/5/i386/RPMS/fedora-cn-relase-1.1-2.noarch.rpm
(尝试次数: 2) => `fedora-cn-release-1.1-2.noarch.rpm'
Connecting to ftp.fedora.cn|219.234.95.153|:21... 已连接。
正在以 anonymous 登录 ... 登录成功!
==> SYST ... 完成。    ==> PWD ... 完成。
==> TYPE I ... 完成。==> CWD /pub/fedora-cn/linux/5/i386/RPMS ... 完成。
==> PASV ...         

到这里就不动了!网络正常

hillwood 发表于 2006-12-13 19:41:06

链接失效了,我已经修改了。

love_eva 发表于 2006-12-14 15:13:15

还是不行!!

正在解析主机 ftp.fedora.cn... 219.234.95.153
Connecting to ftp.fedora.cn|219.234.95.153|:21... 已连接。
正在以 anonymous 登录 ... 登录成功!
==> SYST ... 完成。    ==> PWD ... 完成。
==> TYPE I ... 完成。==> CWD /pub/fedora-cn/linux/5/i386/RPMS ... 完成。
==> PASV ...         

到这里又停止了。。。郁闷!!!

是我们这封端口封的了???

hillwood 发表于 2006-12-14 15:21:53

那你直接用浏览器下这个文件吧
ftp://ftp.fedora.cn/pub/fedora-cn/linux/5/i386/RPMS/

pumpkin 发表于 2006-12-15 14:16:24

安装nVidia驱动时换了kernel,确不安装对应的kernel source。结果drcom没法重新编译了。
kernel-2.6.18-1.2849.fc6-i686.rpm的source在哪里啊?

夏日冻感 发表于 2006-12-18 22:22:04

对于我们不能联网的来说就惨了,现在连添加删除程序都运行不了,安装rpm包也不行,烦得要命,安装盘那么rpm包都没用。

飛龍の在天 发表于 2006-12-22 16:16:39

多谢楼主提供这么好的脚本。
我也是刚刚接触Linux,
之前用的共创版本,
装上了FC6之后,
真是相见恨晚啊!~

lang8888511 发表于 2006-12-23 10:56:35

顶顶顶顶顶

mgmy 发表于 2007-1-1 12:15:42

楼主,我用的是64位FC5,cwd时有问题

npcomet 发表于 2007-1-1 14:18:17

楼主,我用的是64位FC5,cwd时有问题
好像不支持64位的FC系列吧

dinstein 发表于 2007-1-14 01:29:56

问一下
下面这段是不是没考虑x86_64的情况阿
if [ "$releasever" = "5" ];then
   wget ftp://ftp.fedora.cn/pub/fedora-cn/linux/5/i386/RPMS/fedora-cn-release-1.1-2.noarch.rpm
   rpm -Uvh fedora-cn-release-1.1-2.noarch.rpm
   rm fedora-cn-release-1.1-2.noarch.rpm
elif [ "$releasever" = "6" ];then
   rpm -ivh http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm
   rpm -ivh ftp://ftp.fedora.cn/pub/fedora-cn/linux/6/i386/fedora-cn-release-6-1.y0.noarch.rpm
fi

zhengchuanxu 发表于 2007-1-14 13:02:02

:-) i 我也顶一下!!!!

kevin_li 发表于 2007-1-18 18:59:49

首先感谢楼主提供这么好的东西,但我在碰到了问题,一直无法更新成功,试了好几天了。都是这样,我是初学者,不太懂,请楼主指教。

# sh fc.sh
Please choose your language,Enter 1 to use English,Enter 2 to use Simplified Chinese,Enter 3 to use Traditional Chinese
1
Please choose your system,if it is FC5,enter 5,if it is FC6,enter 6
5
Site1:linux-vbird.3322.org(CHINA TELECOM)
Site2:tel.gandong.net(CHINA TELECOM)
Site3:cnc.gandong.net(CNC)
Site4:www.gandong.net(CHINA MOBILE)
Site5:cu.gandong.net(CHINA UNICOM)
Please enter a site which is the most fast.e.g. linux-vbird.3322.org
cnc.gandong.net
Start circulating script, the whole script's circulating completion may need anhour, concrete time sees your networt.
Start importing the sources of yum.
--18:41:31--http://cnc.gandong.net/FC5/yumrepo-1.0-FC5.noarch.rpm
         => `yumrepo-1.0-FC5.noarch.rpm'
正在解析主机 cnc.gandong.net... 202.75.208.253
正在连接 cnc.gandong.net:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:3,679

100%[====================================>] 3,679         --.--K/s

18:41:31 (122.10 KB/s) - `yumrepo-1.0-FC5.noarch.rpm' saved

Preparing...                ###########################################
      package yumrepo-1.0-FC5 is already installed
--18:41:33--ftp://ftp.fedora.cn/pub/fedora-cn/linux/5/i386/RPMS/fedora-cn-release-1.1-2.noarch.rpm
         => `fedora-cn-release-1.1-2.noarch.rpm'
正在解析主机 ftp.fedora.cn... 219.234.95.153
正在连接 ftp.fedora.cn:21... 已连接。
正在以 anonymous 登录 ... 登录成功!
==> SYST ... 完成。    ==> PWD ... 完成。
==> TYPE I ... 完成。==> CWD /pub/fedora-cn/linux/5/i386/RPMS ...
目录“pub/fedora-cn/linux/5/i386/RPMS”不存在。

error: open of fedora-cn-release-1.1-2.noarch.rpm failed: 没有那个文件或目录
rm: 无法删除‘fedora-cn-release-1.1-2.noarch.rpm’: 没有那个文件或目录
error: /usr/share/doc/fedora-release-*/*GPG-KEY*: import read failed.
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: WARNING: This version of gpg is not very matured and
gpg: WARNING: only intended for testing.Please keep using
gpg: WARNING: gpg 1.2.x, 1.3.x or 1.4.x for OpenPGP
2,3c2,3
<       Key fingerprint = 5EC3 04AE 424E 807E CD5FE165 00A7 144C 55F3 AA6F
< sub1024g/DB2C7E95 2003-01-24
---
>      Key fingerprint = 5EC3 04AE 424E 807E CD5FE165 00A7 144C 55F3 AA6F
> sub1024g/DB2C7E95 2003-01-24
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: WARNING: This version of gpg is not very matured and
gpg: WARNING: only intended for testing.Please keep using
gpg: WARNING: gpg 1.2.x, 1.3.x or 1.4.x for OpenPGP
gpg: unable to execute program "gpgkeys_hkp": 没有那个文件或目录
gpg: no handler for keyserver scheme "hkp"
gpg: keyserver receive failed: Keyserver error
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: WARNING: This version of gpg is not very matured and
gpg: WARNING: only intended for testing.Please keep using
gpg: WARNING: gpg 1.2.x, 1.3.x or 1.4.x for OpenPGP
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: WARNING: This version of gpg is not very matured and
gpg: WARNING: only intended for testing.Please keep using
gpg: WARNING: gpg 1.2.x, 1.3.x or 1.4.x for OpenPGP
gpg: error reading key: No public key
0a1,3
> pub1024D/55F3AA6F 2003-01-24 Thomas Vander Stichele <[email protected]>
>      Key fingerprint = 5EC3 04AE 424E 807E CD5FE165 00A7 144C 55F3 AA6F
> sub1024g/DB2C7E95 2003-01-24
Start installing Gstreamer Media decoder,you can use RhythmBox to play mp3,wma,aac.
fc.sh: line 111: yum: command not found
fc.sh: line 112: yum: command not found
fc.sh: line 113: yum: command not found
The Gstreamer Media decoder installs completion,start installing Mplayer.
fc.sh: line 123: yum: command not found
fc.sh: line 124: yum: command not found
--18:42:17--http://www4.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2
         => `all-20061022.tar.bz2'
正在解析主机 www4.mplayerhq.hu... 147.91.8.58
正在连接 www4.mplayerhq.hu:80... failed: 连接超时.
重试中。

--18:45:33--http://www4.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2
(尝试次数: 2) => `all-20061022.tar.bz2'
正在连接 www4.mplayerhq.hu:80...

SunshineRide 发表于 2007-1-19 23:33:52

这个东西怎么运行呀?
不会....
我在终端中运行,提示权限不够
页: 1 2 3 4 5 6 7 8 [9] 10
查看完整版本: Redhat FC5、6 自动配置脚本(已支持网通)