LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2171|回复: 2

快速安装OOS(开放的声卡系统)指南

[复制链接]
发表于 2002-5-20 06:03:56 | 显示全部楼层 |阅读模式
快速安装OOS(开放的声卡系统)指南
蓝森林 http://www.lslnet.com 2001年5月20日 21:55


Quick installation instructions for Open Sound System
=====================================================
快速安装OOS(开放的声卡系统)指南

IMPORTANT! Do not remove any OSS files if you are upgrading from an earlier Open Sound System version. The upgrade procedure requires that all files from the previous Open Sound System installation are in their place.
重要提示:如果你是从更早版本的OOS中升级,一定不要删除任何一个文件。因为升级时需要这些文件呆在原位上。

You should have three files in this directory:
你可以在这个目录下看到三个文件:

INSTALL (this file)
INSTALL:安装指南,就是这个文件!

oss-install The installation program
oss-install:安装主文件

oss.pkg A data file containing the software to be installed.
oss.pkg:OSS包含的数据文件

To install the OSS software you should perform the following steps:
安装OSS软件你需完成以下几个步骤:

1) OSS cant be installed if there is a sound driver already loaded. The easiest way to verify this is to execute cat /dev/sndstat. If it prints out information about sound drivers, it means you have some driver installed.
1)如果在你的系统中已经装载了声卡驱动程序,OSS将不能正常安装。你可以执行 cat /dev/sndstat命令检查你的系统中是否已经安装了声卡驱动程序。如果这个命令打印出一些关于声卡的驱动程序信息,就意味着你安装了声卡驱动程序。

a) If you have earlier version of Open Sound System installed you should unload it using "soundoff" before proceeding. However you _DO NOT_ need to remove the existing driver files since the installation automaticly updates (only) the required parts.
a)如果你已经安装了早期版本的OSS,你可以使用soundoff 将OSS从你正在运行的系统中unload掉。但你不能将OSS中的已存在的驱动程序文件面面删掉!因为在升级时,需要这些文件。

b) There is a sound driver compiled in the kernel (not as a loadable module). In this case you have to reconfigure and recompile the kernel so that there is no sound driver included. Dont forget to boot with the newly compiled kernel before proceeding.
This only affects Linux,FreeBSD, SCO OpenServer, UnixWare and BSD/OS versions of OSS.
b)如果你有一个声卡驱动程序编译在内核中,你就必需重新配置再重新编译内核以确保不包含声卡驱动程序。做完后别忘了用新的内核重新引导系统。这一点针对的是Linux,FreeBSD, SCO OpenServer, UnixWare and BSD/OS版本的OSS软件。

NOTE FOR LINUX USERS:
In the event that your sound driver is a loadable kernel module,
you should unload the sound module before proceeding with the OSS installation.
Execute "rmmod sound" and ensure that the module is not reinstalled during next boot or by kerneld.
The easiest way to do this is to remove all "sound.o" files from the subdirectories of /lib/modules.
LINUX用户请注意:
如果在你的系统中,内核已装载了驱动程序,你必须unload掉这个声卡模块才能安装OSS,执行rmmod sound,然后确认这个模块不会在重新启动时被装入。一种简单的方法就是直接移去/lib/modules中所有sound.o文件。

2) Execute the installation program (./oss-install). This must
be done when logged on as root (dont use "su"). The installation
procedure is described below.
2)执行安装程序:./oss-install。要注意的是:执行这个命令必须以root登录,而不能是用su命令进入root!具体安装如下:

If you get error "./oss-install: No such file or directory" please verify that you are trying to install proper OSS/Linux installation package. There are different packages available for both the "traditional" libc/libc5 and the new
glibc/libc6 version (for example RedHat 5.x, SuSE 6.x and later).
如果你在安装的过程中遇到错误:"./oss-install:No such file or directory",请检查你是否选择了正确的安装包。因为有供不同libary使用的版本。

In Linux its possible that oss-install complains something like
"Error opening terminal: linux".
在LINUX中,可能会出现oss-install提示象:"Error opening terminal:linux"的错误。

This may happen because there are two different versions of the curses library.
这种情况的发展是原因在你的系统中有两个版本的library。

You may also try setting the TERM environment variable to vt100.
你也可以尝试有vt100的终端进行设置。

3) After installation is complete, you can start the driver by
executing "soundon".
To stop the driver use "soundoff". These files are found in the directory where OSS is installed and in some systems they can be found in /usr/local/bin.
When you need to change configuration of the driver, you an do it by executing "soundconf" in the directory
where you installed OSS (usually /usr/lib/oss).
3)当安装完成时,你可以执行soundon来启动OSS声卡驱动程序,用soundoff来中止OSS声卡驱动程序。这些文件可以在OSS安装后的目录或/usr/local/bin目录下找到。当你需要改变这个驱动程序的配置时,你可以执行soundconf,这个文件也在你安装OSS的目录下(通常是/usr/lib/oss)。

Selecting the right OSS/Linux installation package (Linux only)
---------------------------------------------------------------
正确地选择OSS/Linux安装包(仅限Linux)

Due to differences between kernel versions there are 8 different
OSS/Linux installation packages downloadable from our web site.4 of them are for systems using the traditional libc and the last 4
ones are for new glibc/libc6 library (RedHat 5.x and later, SuSE 6.x
and later and probably all Linux 2.2.x based distributiins).
对应不同的内核,OSS共有8种不同的安装包以供下载。其中有四种是用于传统的library,其余四种是用于新的glibc/libc6(RedHat 5.x以后版本,SuSE 6.x以后版本以及绝大部分基于linux 2.2.x核心的发行版本。

Linux 2.0.x
This is the "normal" version which should be used together with all kernels between 2.0.0 and 2.0.36 compiled with uniprocessor support(the default case).
Linux 2.0.x:标准版本,支持Linux 2.0.0-2.0.36内核(单处理器)。

Linux 2.0.x (SMP)
This package is for Linux 2.0.0 to 2.0.36 kernels compiled with SMP support (SMP=1 uncommented in the kernel Makefile). Use this package only if you have compiled the kernel yourself with SMP support (all Linux distributions install the "normal" (non SMP) kernel by default).
Linux 2.0.x(SMP):这个包支持Linux 2.0.0-2.0.36内核(多处理器)。

Linux 2.2.x (SMP)
Linux 2.2.x (UP)
There are two different packages for the latest Linux 2.2.x
kernels. You should select the package depending on the way how the kernel is compiled (this has nothing to do with the number of CPUs on your machine).
Linux 2.2.x(SMP)、Linux 2.2.x(UP):这是两个基于Linux 2.2.x核心的不同安装包。你可以根据核心如何编译而选择(这里并不关心你的机器上有几个CPU)。

For example:
例如:

"2.2.0 #2 SMP ..." means that you should select the SMP version while
"2.2.0 #2 ..." means that you should select the UP version.
"2.2.0 #2 SMP ..."意思是你选择了SMP版本。
"2.2.0 #2 ..."则表示你选择了UP版本。

Steps performed by the installation program (oss-install)
------------------------------------------------------------
安装程序oss-install步骤:

When executed oss-install performs the necessary steps required to install
Open Sound System. The steps are:
当你执行oss-install后,须要完成以下步骤:

0) Initial compatibility checks are performed. You will be informed if
you should download another installation package of OSS.
0)首先做兼容性测试。如果你下载了不对的OSS安装包,你将得到它的提示。

1) The program shows the licence agreement. After reading the
agreement, accept it by activating the [Accept] button below the text area.
You can use the arrow up and arrow down keys to scroll the text. Use TAB to
jump between the scroll area and the buttons below it. Press ENTER to
activate the selected (highted lighted) choice.
1)检查后,安装程序将显示安装许可协议。当你读了协议后,如果你同意,则按[Accept]按钮。你可以使用光标键滚动文本区。按TAB键在按钮与文本区中切换。按回车确认。

2) Next the program views release notes of Open Sound System (Readme). After
reading it activate the [Ok] button.
2)接受协议后,程序将显示OOS的版本信息及帮助信息。你读过后按OK按钮继续。

3) The third step is selecting the directory where the Open Sound System
software is installed. The program offers several alternatives but
/usr/lib/oss is the recommended choice.
3)第三步则是为OSS选择安装目录。OSS提供了几个选择,默认是/usr/lib/oss

4) After the above interactive steps the installation program extracts the
software files to the selected directory. It also verifies that the driver
version is compatible with your current kernel version by trying to
load the modules.
4)完成了以上步骤,安装程序将解压软件文件到所选择的目录。并且还检验这个驱动程序是否与你的内核兼容,然后尝试装载这个模块。

NOTE FOR LINUX USERS:
Linux用户注意:

On Linux, if there are some kind of kernel version incompatibilities, the
installation program attempts to resolve them by recompiling the "sndshield"
module. This step succeeds only in systems that meet criterias listed in Readme.
If remompilation fails, you should download new driver version from
http://www.4front-tech.com/linux.html.
在Linux中,如果有些内核版本是不兼容OSS的安装程序将试图通过重新编译"sndshield"模块来解决这个问题。这一步只有当你的系统能使用标准版才会取得成功。如果重新编译失败,你就必须从http://www.4front-tech.com/linux.html下载一个新的版本。

5) Finally the configuration program is invoked automaticly (see below).
最后配置程序以便今后自动调用!

Running the configuration program (soundconf)
---------------------------------------------
运行配置程序soundconf

The configuration program is started automaticly after software installation
is complete. You can run it again by executing "soundconf" command in the
directory where Open Sound System was installed (/usr/lib/oss in most cases).
软件安装完成后,将自动启动配置程序。你今后也可以在OOS安装的目录下执行soundconf命令再次启动配置程序。

When running the configuration for first time, it performs all the necessary
auto-detection steps. You will first be presented with a screen that asks you
if you want to automatically detect Plug-and-Play (PnP) sound cards. Its
safe to proceed to select the [Detect] option by pressing the key and
then pressing the key. The next screen prompts you to select if you
want to detect Non-Plug-and-Play (Non PnP) cards. You should proceed with
caution since the sound drivers will probe all known sound cards and if
there is an IRQ or I/O address conflict, the system can lock up. However,
if youre reasonably sure that there are no hardware conflicts with your
adapters, you can proceed to select the [Detect] option. If you want to
skip this process, select the [Cancel] button by hightlighting the option
on the screen using the key and then pressing .
当你第一次运行配置程序时,将自动完成所有必要的检测工作。首先,将出现一个屏幕提示你是否需要自动检测PNP(即插即用)声卡。建议在按下键时先选择[Detect]选项。然后,将出现一个屏幕提示你是否需要检测Non PNP(非即插即用)声卡。需要注意的是,如果测试到的声卡的IRQ或I/O地址存在冲突,系统将会被死锁。然而如果你确认你的声卡没有冲突,你可以选择[Detect]]。如果你想跳过这个步骤,就选择[Cancel]。

After this the main menu is displayed. Activate the "Add new card/device" to
add more cards if more than one of them installed. It will display a list
of devices from which you can choose your sound card. Use the arrow keys
to go up and down the list. Select a card by high-lighting it and pressing
the key.
接着,主菜单被显示。按下"Add new card/device",可增加声卡。它将显示一个可选列表供您选择。你可用光标键选择。

On some systems, you will be prompted to select the I/O addresses, IRQ and
DMA values for various sound card ports. Once you are done, you can simply
select the [OK] button and get back to the main menu.
有些系统可能需要你选择一下声卡的I/O地址,IRQ和DMA。当你完成后,你可以选择[ok]按钮继续。

If you have multiple sound cards, you can resolve the settings by
selecting the "Manual Configuration" option.
如果你拥有多块声卡,你可以通过选择"Manual Configuration"选项来解决。

When you have completed the configuration, save it by activating the
[Save changes and exit] selection. Its important to save the changes
after installing new Open Sound System version even if you made no changes
to the device configuration. Otherwise unnecessary driver modules will be
loaded during soundon.
当你完成了配置工作,就可以按[Save changes and exit]按钮。及时地将这配置保存是十分重要的。否则不必要的声卡驱动模块可能会为soundon调用。

Now you are ready to run Open Sound System by running the soundon command.
To check the status of your drivers, you can type "cat /dev/sndstat". This
will give you a detailed listing of all devices configured by OSS and also
information about your license and serial number.
这时候你就可以准备在命令行执行soundon命令来运行OSS了。你可以使用"cat /dev/sndstat"命令来检查你的驱动器的状态。这个命令将给出一个由OSS列出的详细驱动程序配置信息,还有一些OSS的许可协议及序列号。

Should you have any questions, please submit a technical support request by
fillout the form at http://www.4front-tech.com/support.cgi
如果你有什么问题,请到:http://www.4front-tech.com/support.cgi

-----------------------
Copyright (c) 1999, 4Front Technologies. All rights reserved.
Open Sound System is a trade mark of 4Front Technologies.All other trade marks and copyrights belong to their respective
 楼主| 发表于 2002-5-20 06:05:55 | 显示全部楼层
Linux下装声卡(OSS中文安装说明)
蓝森林 http://www.lslnet.com 2000年2月9日 11:49


作 者: 阎宗岭


    大家可能早已经领会到了Linux下对声卡的支持之丑陋,不管是从最初的RedHat 5.1还是现在的Mandrake 6.1,从来就没有让我的Ad1816声卡正儿八经的发过一句好听的声音(尽管官方报道 Linux Kernel 2.0.36以后版本已经支持Ad1816,可是不管我将内核编译了多少遍,它还是涛声依旧,寂静无声的Linux世界是我用Linux以来唯一的感觉不舒服的地方),不过现在好了,自从在网上DownLoad了一款Linux下的声卡支持软件,之后一切的烦恼都随之而去了,现在我在Linux下一样可以听MP3,看VCD,这样的感觉真爽……   好了,废话少说,我这里说的这个声卡驱动程序是大名鼎鼎的OSS,虽然它是一个商业的声卡驱动程序,但是你可以有240小时的免费使用时间,首先我们到http://www.opensound.com/download.cgi填写一个表格,然后就可以下载驱动程序了,下载的文件有好几种,根据不同的操作系统和不同的系统配置而有所不同:

    现在oss支持Caldera 2.3、TurboLinux 4.0、Mandrake 6.1、Redhat 6.1、SuSe 6.2、FreeBSD、Solaris等,你只要选择相应的操作系统就可以了,如果相应的操作系统不在列表中,你也不用着急,一样可以选择相应的驱动程序,它的文件名一般是这样一种格式:Linux 2.0.x-glibc(SMP)此时表示你如果用的编译库是glibc的话,系统核心是2.0.x,如果还支持多处理器,就可以下载它;反之如果你用的是2.2.x的内核并且编译库是libc,同时不支持多处理器,你可以下载Linux 2.2.x-libc5(UP)的文件(当然组合类型很多,你可以选择与你相符合的类型),比如我的Linux是Mandrake 6.1,可以在Select the Version of OSS后边选择Mandrake 6.1,在上边的声卡类型中输入Ad1816,然后Submit进入下载页面,在Click here to download OSS for Mandrake 6.1 联结上边点击就可以开始下载了。

    安装

    启动LINUX,把下载下来的osslinux392v-glibc-2212-UP.tar.gz拷到一个临时目录中:
  cp osslinux392v-glibc-2212-UP.tar.gz /tmp/
  cd /tmp
  tar zxvf osslinux392v-glibc-2212-UP.tar.gz

    此时文件已经解开,你可以看到在当前目录下有四个文件:INSTALL、LISCENSE、oss-install和oss.pkg文件,其中INSTALL是安装帮助文件,如果你是第一次安装一定要好好的看一看才是。

    配置

    以root用户运行oss-install,
  ./oss-install

    如果出现了“No such file or directory”的错误信息,那是因为你下载的OSS驱动程序的版本和你用的Linux不匹配,重新到上边的站点,下载相应的驱动程序就可以了。

    这时候,一般会提示,你的Linux以模块的形式加载了声卡驱动程序,要不要安装程序自动将它去掉,选择去掉就可以了。

    注:如果你想自己DIY一下,完全可以自己在OSS驱动程序安装之前就可以手工将声卡驱动程序去掉:
rmmod soundlow
rmmod soundcore
rmmod sound

    然后在/lib/modules下的相应目录中删除soundlow.o、soundcore.0和sound.o,至此手工删除原来声卡驱动程序完毕。

    接下来就是处理过程、协议及一大堆东西,接受协议安装,使用默认安装路径即可(/usr/lib/oss)。oss一般可以自动检测出大部分声卡,看看是不是和你的条件相符,如过一切和Windows 9X下看起来没有什么两样的话,直接在菜单中选择“Save changes and Exit.."。对于那些不能直接探测到的声卡,你就只有用手工方法选择了,找到你的声卡。如:Yamaha OPL3-SAX (YMF715/YMF719) chip 选:"Generic Yamaha OPL3-SAx (YMF715/YMF719) non-PnP" driver。

    打开/关闭声卡

    在默认的安装目录里/usr/lib/oss/有一个soundon命令用来打开oss驱动,同样的你也可以用soundoff关闭oss驱动。

    疑难解决

    有时也可能出现这样的情况,你的声卡检测到了,而且安装过程也好像一切正常,但是声卡就是不能正常工作,不要急,作为一个优秀的的商业声卡驱动程序,它肯定还有可以让你手工调节设置参数的地方,不知道你注意到了没有,在你的“Save changes and Exit”的同一个窗口中,还有一个选项“Manual Configuration”,它就是让你来手工调节设置参数的,,你可以在这里设置你的声卡的IO、DMA等等参数,如图三就是我的AD1816的设置界面,和你说一个诀窍吧:你可以在Windows下将声卡设置好,然后将它在Windows下的各种参数记下来,在这里依原样输入一般没有什么问题了。

    到此为至,你的声卡驱动程序已经安装好了,怎么?你还不知到怎么来发挥它的效能,X-Windows下的这样的应用程序比Windows下的一点都不少,X11amp、CD-Player......,哪个也不比Windows下的逊色嘛!(文 / 阎宗岭)〖合作单位:《远望资讯》〗
发表于 2003-1-31 05:55:31 | 显示全部楼层
是个好东西阿。

我补充一下吧,在新的2。4。19内河里面可以内嵌支持OSS,编译安装新内河,然后直接DSP设备就可以用了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表