Sunday, April 29, 2007

О лицензиях open suorce

При просмотре новостей я случайно наткнулся на перевод части книги  Lazarus. Там идется про лицензии, очень поучительно и занимательно. Конечно это обзор со стороны производителя открытого програмного обеспечения но всетаки. Мне кажется, что в  стоимость програмного обеспечения должно входить еще и стоимость владения этой системой. Например: обучение персонала, покупки тех поддержки. Вот тут сразу становиться ясно что даже бесплатное стает платным. НО! Это бесплатное намного дешевле и качественней нежели платное. http://nerusoft.com/content/store_159.html

Thursday, April 26, 2007

TCP UDP номера портов

На днях передомной поставили задачу написать ACL для PIX и тут возникла у меня проблема, я знал приложения которые пропускать и ихние порты но не знал это приложение использует TCP или UDP. При поиске в Google я наткнулся на вот такую табличку.

Port No.

Protocol

Service Name

Aliases Comment

7

TCP

echo

Echo

7

UDP

echo

Echo

9

TCP

discard

sink null

Discard

9

UDP

discard

sink null

Discard

13

TCP

daytime

Daytime

13

UDP

daytime

Daytime

17

TCP

qotd

quote

Quote of the day

17

UDP

qotd

quote

Quote of the day

19

TCP

chargen

ttytst source

Character generator

19

UDP

chargen

ttytst source

Character generator

20

TCP

ftp-data

File Transfer

21

TCP

ftp

FTP Control

23

TCP

telnet

Telnet

25

TCP

smtp

mail

Simple Mail Transfer

37

TCP

time

Time

37

UDP

time

Time

39

UDP

rlp

resource

Resource Location Protocol

42

TCP

nameserver

name

Host Name Server

42

UDP

nameserver

name

Host Name Server

43

TCP

nicname

whois

Who Is

53

TCP

domain

Domain Name

53

UDP

domain

Domain Name Server

67

UDP

bootps

dhcps

Bootstrap Protocol Server

68

UDP

bootpc

dhcpc

Bootstrap Protocol Client

69

UDP

tftp

Trivial File Transfer

70

TCP

gopher

Gopher

79

TCP

finger

Finger

80

TCP

http

www, http

World Wide Web

88

TCP

kerberos

krb5

Kerberos

88

UDP

kerberos

krb5

Kerberos

101

TCP

hostname

hostnames

NIC Host Name Server

102

TCP

iso-tsap

ISO-TSAP Class 0

107

TCP

rtelnet

Remote Telnet Service

109

TCP

pop2

postoffice

Post Office Protocol - Version 2

110

TCP

pop3

postoffice

Post Office Protocol - Version 3

111

TCP

sunrpc

rpcbind portmap

SUN Remote Procedure Call

111

UDP

sunrpc

rpcbind portmap

SUN Remote Procedure Call

113

TCP

auth

ident tap

Authentication Sevice

117

TCP

uucp-path

UUCP Path Service

119

TCP

nntp

usenet

Network News Transfer Protocol

123

UDP

ntp

Network Time Protocol

135

TCP

epmap

loc-srv

DCE endpoint resolution

135

UDP

epmap

loc-srv

DCE endpoint resolution

137

TCP

netbios-ns

nbname

NETBIOS Name Service

137

UDP

netbios-ns

nbname

NETBIOS Name Service

138

UDP

netbios-dgm

nbdatagram

NETBIOS Datagram Service

139

TCP

netbios-ssn

nbsession

NETBIOS Session Service

143

TCP

imap

imap4

Internet Message Access Protocol

158

TCP

pcmail-srv

repository

PC Mail Server

161

UDP

snmp

snmp

SNMP

162

UDP

snmptrap

snmp-trap

SNMP TRAP

170

TCP

print-srv

Network PostScript

179

TCP

bgp

Border Gateway Protocol

194

TCP

irc

Internet Relay Chat Protocol

213

UDP

ipx

IPX over IP

389

TCP

ldap

Lightweight Directory Access Protocol

443

TCP

https

MCom

443

UDP

https

MCom

445

TCP

Microsoft CIFS

445

UDP

Microsoft CIFS

464

TCP

kpasswd

Kerberos (v5)

464

UDP

kpasswd

Kerberos (v5)

500

UDP

isakmp

ike

Internet Key Exchange (IPSec)

512

TCP

exec

Remote Process Execution

512

UDP

biff

comsat

Notifies users of new mail

513

TCP

login

Remote Login

513

UDP

who

whod

Database of who's logged on, average load

514

TCP

cmd

shell

Automatic Authentication

514

UDP

syslog

515

TCP

printer

spooler

Listens for incoming connections

517

UDP

talk

Establishes TCP Connection

518

UDP

ntalk

520

TCP

efs

Extended File Name Server

520

UDP

router

router routed

RIPv.1, RIPv.2

525

UDP

timed

timeserver

Timeserver

526

TCP

tempo

newdate

Newdate

530

TCP,UDP

courier

rpc

RPC

531

TCP

conference

chat

IRC Chat

532

TCP

netnews

readnews

Readnews

533

UDP

netwall

For emergency broadcasts

540

TCP

uucp

uucpd

Uucpd

543

TCP

klogin

Kerberos login

544

TCP

kshell

krcmd

Kerberos remote shell

550

UDP

new-rwho

new-who

New-who

556

TCP

remotefs

rfs rfs_server

Rfs Server

560

UDP

rmonitor

rmonitord

Rmonitor

561

UDP

monitor

636

TCP

ldaps

sldap

LDAP over TLS/SSL

749

TCP

kerberos-adm

Kerberos administration

749

UDP

kerberos-adm

Kerberos administration

Оригенальная статья http://www.javvin.com/protocolTCPUDPport.html

Wednesday, April 25, 2007

Снифер tethereal

В процессе работы возникла такая проблема. Для просмотра на сервере входящих и исходящих пакетов я использовал tcpdump но он не показывает структуру пакета как это делает etherial. Мой колега посоветовал посмотреть такой прогой tethereal. Результат меня порадовал, количество данных получаемое с пакета достаточно информативное.
Для просмотра на Solaris я использоывал такую команду

tethereal -i ce1 -V -R "ntp"


Saturday, March 31, 2007

Linux CD/DVD Recording

Linux CD/DVD Recording

Thursday November 18, 2004 (08:00 AM GMT)

By: Ola Eriksson

Modified by : Connie Sieh

December 2004

This is an introduction to using CD and DVD recorders under Linux and UNIX systems. Its main focus is on command line based tools. It will give you an idea how the powerful tools and utilities behind the fancy GUIs work and what they can do for you. Recording CDs and DVDs from the command line can be useful in many situations, for example if you access to the host only via the network; if your host does not have X11 available; or perhaps your favorite GUI won't start for some reason. Another reason for using the command line based tools is that they can be used in scripts to automate repetitive tasks such as backups.

Software

To create images and record them onto a CD/DVD, we need to have some programs available on our system. All programs used in this guide are open source, released under licenses that make them free to download and use. Please make sure that you have all of these programs installed and working before you continue reading this guide.

Note: Many Linux distributions have many or even all or these programs installed in the default installation, so make sure that you don't have them installed already before spending time downloading and compiling the packages listed below.

WORKING WITH CD'S
  • cdrecord

    Creating ISO images

    Mkisofs from cdrtools can pre-master ISO images so they can be written to CDs at a later time. Mkisofs has a large set of options available, but we will only use the most common ones to create a normal mage. For more details on the accepted options, please see the manpage.

    Syntax:

    mkisofs -o image.iso -J -r /path/to/data/

    -o Output file

    -J This will create an image using Joliet file naming, Useful for Windows . Allows for longer thatn 8.3 file names

    -r Rock Ridge (-r) extensions. Unix version of allowing for longer filenames. This standard has been around for a long time.

    Creates ISO9660 filesystem

    Example:

    root@linux:~# mkisofs -o mycd.iso -J -r /a/data/ Working with CDs

    Note that DVD recorders can be used to record data to normal CD-R(W) discs too, not just DVDs. This part will cover the basics of recording files and images to CD-R(W) discs.

    Determining devices for cdrecord

    We provide cdrecord with an option that specifies which device it should use when performing the requested actions. (recording, reading etc) This is done with the --device argument. Depending on your system and setup, you will need to address the recorder in different ways. The format for the --device argument is: [prot:]bus,id .

    This is because of atapi cd record devices using a translation from atapi to scsi. This was done originally because all of the original cdreorders were scsi. Thus all the programs that communucated with them were written expecting a scsi device.

    Newer versions of cdrecord allow for native ATAPI support . With the device entry of the form ATAPI:0,1,0 or ATA:0,1,0.

    To find out how to address your recorder, cdrecord offers a scanbus argument, that will try to find all available recorders and CD players connected to your system, and display them along with their bus id. To scan for devices, simply execute cdrecrord --scanbus.

    Example:

    From the example below, we see that our recorder should be addressed as ATA:1,0,0.

    root@linux:~#cdrecord --scanbus

    Using libscg version 'schily-0.8'

    1,0,0 _NEC ,DVD_RW ND-3500AG, 2.1 root@linux:~#

    Note: In our examples, we will use device 0,1,0, which you should replace with the identifier for your recorder.

    Recording ISO image to CD

    Recording an image from iso image using cdrecord is rather straight forward. Just issue cdrecord with the iso image name along with cdrecord options.

    Syntax:

    cdrecord –dev=0,1,0 -speed=10 –eject -v something.iso

    There are also some common options that might be useful: --speed <speed> Force a given write-speed. --eject CDRECORD will eject the CD after it's finished writing to it.

    -v Verbose messages

    Example:

    root@linux:~# cdrecord -dev=0,1,0 -speed=10 -eject something.iso

    Making ISO images from CDs

    The creation of ISO-images from CDs is done in the same way as for DVDs, using the readcd. Syntax:

    readcd dev=device f=image

    This example will make an image named mycd.raw from the disc inserted into device addressed at ATAPI:0,1,0:

    root@linux:~# readcd dev=ATAPI:0,1,0 f=mycd.raw

    Erasing a CD-RW disc

    Erasing a CD-RW disc with cdrecord is pretty straight forward, all needed is to issue it's 'blank' option, followed by information on what drive to erase the media in, using the --device option.

    Can include this on the normal burn line.

    Sometimes cdrecord will be unable to blank your media at the drivers default speed, if this is the case, you can force it to use a lower speed with the --speed option. (Example: --speed 10)

    Example:

    root@linux:~# cdrecord –blank=fast –device=0,1,0 -speed=10 something.iso

    Working with DVDs

    Below are descriptions of how to do the more common tasks related to recording of DVDs.

    Note on + and - medias

    Today most DVD recorders support both DVD-R(W) and DVD+R(W) medias, and even though this guide refers to DVD-R(W) discs the same instructions could just as well be used with DVD+R discs.

    Dvdrecord

    Dvdrecord is a fork of cdrecord which is part of the cdrtools package. Modifications were added to support writing to dvd-r/rw .

    DVD+RW-Tools

    This is a package containing tools used when working with DVDs and images. In this guide, we will focus on the growisofs-application provided with this package. However, it does also provide a utility that erases DVD-RW discs (dvd+rw-format) that we will use for this purpose. http://fy.chalmers.se/~appro/linux/DVD+RW/

    Determinng devices for dvd+RW tools

    Growisofs has a different way of addressing it's recording-device. It uses a UNIX-path to a device under /dev that is connected to the recorder. For more information on how to locate the path to use for your recorder, please see the setup-notes for DVD-recorders/readers for your particular system and distribution.

    Note: On some systems, a softlink named /dev/dvd will be set up at installation to point to your DVD-reader/writer if available, so this could be a good place to start.

    Note: In this guide, we will use /dev/dvd whenever a device needs to be specified when recording DVDs. If this does not work on your system, please replace it with the appropriate path for your system in all examples related to DVD-recording.

    Recording a DVD image

    To record an image to a DVD-R disc, we will use the growisofs software. To do this, we run growisofs with a set of arguments instructing it about our intentions. We execute growisofs with the following syntax:

    growisofs -Z /dev/dvd=image

    -Z ZERO time used for this media.

    Example: The example below shows how to record the image 'mydvd.img' to a DVD-R(W) disc.

    root@linux:~# growisofs -Z /dev/dvd=mydvd.img

    Storing files on a DVD disc

    DVDs can be used to store files in the same way as ordinary CDs, with the major difference that DVDs can store quite a lot more data. DVDs even use the same filesystem (ISO9660) with the same common extensions (Joliet and Rock Ridge) as normal CDs.

    Growisofs offers an easy way to store a set of directories and/or files on a DVD. It uses mkisofs to create an image, and writes it to the DVD recorder without needing to store a copy of the image on the harddrive before recording it.

    For example:

    growisofs -Z /dev/dvd -J -R /path/to/disc/root

    -J Joliet file naming

    -R Rock Ridge Unix naming allowed

    Note that these are really options to mkisofs.

    Blanking DVD-RW discs

    Working with rewritable media is no different from working with ordinary DVD-R media aside from the obvious fact that every now and then you may want to erase the data on them and start over. From the DVD+RW-Tools package we get the dvd+rw-format command that does this for us. It has two modes that can be used when erasing discs, either quick or full mode. In most cases, a quick erase is enough, and this will only take a minute or two (depending on your recorder), compared to the full-erase mode, that takes about the same time as writing a full-size to the media. (Or even longer, depending on the recorder you are using)

    To perform a quick format, issue the following command:

    dvd+rw-format -blank /dev/dvd

    And here is the syntax for erasing the entire disc:

    dvd+rw-format -blank=full /dev/dvd

    Master and record a DVD Video image

    In some cases, you might have a Video DVD stored as a series of normal files in your filesystem, perhaps from some DVD authoring software, and want to write this to a disc for usage in your DVD-player.

    To do this, we yet again turn to growisofs for help, which as usual provides an easy solution to our problem.

    In the example below, the disc-root refers to a directory containing any, or both of the AUDIO_TS/ and VIDEO_TS/ directories. The main difference from writing an ISO image is the -dvd-video option, that instructs growisofs that it should prepare the disc to be used as a DVD Video disc.

    growisofs -Z /dev/dvd -dvd-video /path/to/disc/root

    Below is a sample listing of what the filestructure of a Video DVD might look like:

    AUDIO_TS/ VIDEO_TS/ VIDEO_TS/VIDEO_TS.BUP VIDEO_TS/VIDEO_TS.IFO VIDEO_TS/VIDEO_TS.VOB VIDEO_TS/VTS_01_0.BUP VIDEO_TS/VTS_01_0.IFO VIDEO_TS/VTS_01_0.VOB VIDEO_TS/VTS_01_1.VOB ...

    Making image from a DVD

    Sometimes you might need to create an ISO image from an existing DVD disc. To do this, we use the readcd-tool provided with cdrtools. Readcd can also be used to make images from normal CDs.

    Syntax:

    readcd dev=device f=image

    The device is given in the same was as when using cdrdao. For more options, please see the manpage for readcd.

    This example will make an image named mydvd.raw from the disc inserted into device addressed at ATAPI:0,1,0:

    root@linux:~# readcd dev=ATAPI:0,1,0 f=mydvd.raw

    CCD and NRG images

    You may run into .nrg- or .ccd images that you wish to write to a CD. This can be quite tricky in the Linux/Unix-world, since none of the programs available today have support for this. Currently, the only way to do this is to convert them to ISO images first. To do this, there are two small utilities available, nrg2iso and ccd2iso.

    Although these two tools do their best to convert NRG and CCD images to ISOs, there is no guarantee that the resulting images will be fully usable since the ISO-image format does not support all the features used by NRG and CCD images.

    NRG2ISO

    Nrg2iso will convert Nero image files to ISO files. If it is not provided with your installation, it can be downloaded from: http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html

    Usage: nrg2iso image.nrg image.iso

    CCD2ISO

    CloneCD images can be converted into ISO's with ccd2iso, that can be downloaded from: http://ccd2iso.sourceforge.net/

    Usage: ccd2iso [.img filename] [.iso filename]

    Converting video-files to (S)VCD

    Sometimes you might have a set of MPEG streams from which you would like to create a (Super) VideoCD (SVCD or VCD) to be recorded with CDRDAO and used in your VCD/DVD-player. To do this, we will use the GNU VCDImager software.

    Use the following syntax for VCDImager to create a set of bin/cue-files from an MPEG stream. Replace “type” with the appropriate type for the output image, based on the type MPEG-stream you are recording. The more common types are 'vcd' for mpeg1-streams, and 'svcd' for mpeg2-streams. VCDImager will notify you if it believes that you have selected the wrong type for the given stream.

    Syntax: vcdimager -t type --update-scan-offsets video.mpg

    The following example will create a bin/cue-image in SuperVCD format, containing the stream found in myshow.mpg. (That in this case is an MPEG2 stream)

    root@linux:~# vcdimager -t svcd --update-scan-offset myshow.mpg

    The MPEG streams needs to be in somewhat appropriate formats to be used as (S)VCDs, but this is beyond the scope of this guide. There is more information about this on VCDImager's website. (See the “Software” section)

    Graphical User Interfaces (GUIs)

    Over the years, more and more graphical frontends for various terminal-based CD/DVD recording programs have appeared. Many of these provides great features and really make things easier when performing basic tasks. Here we will mention a few of the best-known GUIs for CD and DVD recording, along with links to more information about them.

    X-CD-Roast

    This is one of the oldest programs in this category. It has been around for quite some time now, and offers a good set of functions without being hard or complex to use. X-CD-Roast is a frontend for the tools found in the cdrtools-package.
  • http://www.xcdroast.org

  • K3B (CD/DVD Kreator for KDE)

    K3B is a nice-looking CD and DVD creator

    Gnome Nautili

  • © Copyright 2004 - OSTG, Inc., All Rights Reserved

    Часто Задаваемые Вопросы по Fedora

    Часто Задаваемые Вопросы по Fedora

    Замечание: Это неофициальная форма поддержки пользователей. Это не официальный сервис Red Hat. Эти вещи могут решить ваш самых худший кошмар, или они могут съесть весь сыр в вашем доме. Я не даю гарантий.

    Если у вас есть вопрос, который не имеет здесь ответа

    1. Подпишитесь на Insider FAQ.
    2. Прочитайте Fedora Core 6 Release Notes.
    3. Спросите на FedoraForum.org.
    4. Поищите на Linux Google.
    5. Спросите на канале #Fedora IRC.

    Если вы новичок в Linux

    Я ответил на множество основных вопросов в Fedora Basics FAQ. Даже если вы не новичок в Linux, вы можете найти там один или два полезных совета.

    Участие в FAQ

    Если вы думаете, что у вас есть часто задаваемый вопрос, который не нашел отражения здесь, или вы вы видите что-нибудь что нуждается в корректировке или обновлении, свободно принимайте участие!


    Содержание


    О Fedora

    1. Что такое Fedora Core 6?
    2. Какие различия между Fedora и Red Hat Enterprise Linux?
    3. Fedora стабильна?
    4. Fedora была выпущена?
    5. Где я могу найти список всех программ которые идут с Fedora Core 6 (набор пакетов)?
    6. Когда будет выпущена следующая версия Fedora?
    7. Что такое Fedora Extras?
    8. Как я могу помочь Fedora Project?

    Установка Fedora

    1. Где я могу получить Fedora
    2. Могу ли я установить Fedora на ReiserFS, JFS или XFS?
    3. Может ли Fedora работать на 64-битных (AMD-64 or Intel-64) машинах?
    4. Могу ли я запустить Fedora на Mac?
    5. Где установочный образ Fedora для гибкого диска?

    Использование Fedora и установка программного обеспечения

    1. Где я могу получить программное обеспечение для Fedora?
    2. Как мне установить программное обеспечение на Fedora? (Как использовать yum или RPM)
    3. Есть ли графический интерфейс для yum?
    4. Есть ли что-нибудь наподобие apt для Fedora?
    5. up2date все еще работает?
    6. Как установить Java?
    7. Как установить Flash в моем браузере?
    8. Как я могу просмотреть PDF файлы в моем бразуере?
    9. Как я могу просмотреть видео в моем браузере?
    10. Могу ли я использовать MSN Messenger/AIM/ICQ/Yahoo сервисы мгновенных сообщений в Fedora?
    11. Как установить шрифты? Могу ли я использовать Windows (.ttf) шрифты?
    12. Где я могу получить драйвера под мое оборудование для Fedora?
    13. Как мне проиграть MP3 в Fedora?
    14. Как мне прочитать NTFS (Windows NT/2000/XP/2003) раздел в Fedora?
    15. Как мне отредактировать меню в панели?
    16. Как мне заставить Wine работать?
    17. Как проиграть DVD в Fedora?
    18. Как мне установить Flash и Java в моем браузере для 64-битной версии Fedora?

    Проблемы и их решение

    1. Я получил NOKEY предупреждение из RPM, или я получил gpg signature ошибку, когда использовал yum!
    2. Как установить поддержку 3D для видеокарты ATI Radeon в Fedora?
    3. Как установить поддержку 3D для видеокарты nVidia в Fedora?
    4. Media check инсталятора сообщил что все мои CD повреждены!
    5. У меня странная проблема с установкой.
    6. Как сделать? чтобы все папки открывались в том же окне в Nautilus?
    7. Я больше не могу получить доступ Windows network shares! Люди сказали мне использовать команду smbmount, но она не работает!
    8. О Боже, ты такой ламер!

    Часто задаваемые вопросы (FAQ)



    О Fedora


    1. Q: Что такое Fedora Core 6?
      A: Во-первых, прочитайте About Fedora. Так же, если хотите, можете прочитать Fedora Project FAQ.

      Сейчас я дам вам резюме. Вы можете думать о Fedora Core 6, как о "Red Hat Linux 15", со следующими отличиями от старого Red Hat Linux:

      • Это проект поддерживаемый сообществом. Это означает, что при желании, вы можете принять участие в создании Fedora Core.
      • Новые версии Fedora Core выходят каждые 6 месяцев.
      • Когда выходит новая версия, предыдущая версия прекращает поддерживаться через 6-8 месяцев.

      Это означает обновление вашей OC каждые 6-8 месяцев. Обновления обычно минорны, наподобие Red Hat Linux 8 – Red Hat Linux 9. Но минорность не гарантирована

      Red Hat Enterprise Linux основывается на Fedora Core, так что если вы желаете немного поучиться RHEL бесплатно, используйте Fedora Core. RHEL 5 будет основан на Fedora Core 6.

    2. Q: Какие различия между Fedora и Red Hat Enterprise Linux?
      A: Red Hat Enterprise Linux официально поддерживается Red Hat уже 7 лет. Это хороший выбор, если ваши машины задействованы в важном процессе, и вы не желаете обновлять вашу ОС все время. Так же RHEL имеет много хороших особенностей, полезных в случае работы на нескольких серверах.

      Также, вы можете (иногда) позвонить в Red Hat и получить поддержку для RHEL, которую вы никогда не получите для Fedora.

      Fedora распространяется бесплатно. RHEL стоит денег.

      Fedora более продвинута чем RHEL, и Fedora имеет большее сообщество пользователей, которое бесплатно поможет вам и окажет поддержку (например этой страницей).

      У Red Hat тоже есть отличная страница с ответом на этот вопрос.

    3. Q: Fedora стабильна?
      A: Да!
    4. Q: Fedora была выпущена?
      A: Да! Fedora Core 6 была выпущена 24 октября 2006 года. Чтобы увидеть, когда будут выпущены новые версии Fedora вы можете ознакомиться с расписанием выпусков.
    5. Q: Где я могу найти список всех программ которые идут с Fedora Core 6 (набор пакетов)?
      A: Список основных пакетов Fedora Core на Distrowatch Fedora Page.
    6. Q: Когда будет выпущена следующая версия Fedora?
      A: Новые версии Fedora выходят каждые 6-8 месяцев. Более точные даты указаны в расписании выпусков.
    7. Q: Что такое Fedora Extras?
      A: Fedora Extras набор программных пакетов, поддерживаемых Fedora Project, но не распространяемых с Fedora Core.

      Вы можете прочитать о них больше на официальном сайте Fedora Extras.

      Для установки программ из Fedora Extras просто ознакомьтесь с вопросом установки программного обеспечения.

    8. Q: Как я могу помочь Fedora Project?
      A: Fedora Project требуется помощь множества людей в различных областях! Вы можете писать документацию? Вы можете программировать? Вы знаете что-нибудь о программных ошибках? Вы можете переводить? Желаете научиться чему-нибудь из этого? Вы художник? Вы просто хотите помочь как-нибудь? Fedora Project имеет прекрасную страницу, с описанием как вы можете помочь. Проверьте ее!

    Установка Fedora


    1. Q: Где я могу получить Fedora?
      A: Скачав тут или через BitTorrent. Вам не нужна "source" версия, вам необходима "binary" версия.

      Существуют три версии, i386, x86_64 и ppc. Выберите то, что вам нужно:

      • i386 - если у вас Pentium или Celeron (означает любой Pentium или Celeron, включая Pentium 4, Pentium M и т.п.)
      • x86_64 - если у вас Core Duo, Core Solo, Opteron, Athlon 64, Turion 64 или Sempron. (Сюда так же входят новые «Intel Mac» машины)
      • ppc - любой современный Mac, но не Intel Mac.

      Более подробно о том как получить Fedora, включая как купить CD (если вы не можете скачать), вы можете узнать на странице Distribution сайта Fedora Project.

    2. Q: Могу ли я установить Fedora наReiserFS, JFS или XFS?
      A: Да, вы можете установить Fedora на ReiserFS, JFS или XFS.

      Ни одна из этих файловых систем официально не поддерживается Fedora Porject. (Это означает, что вы можете использовать их, но если что-то пойдет не так, вы не найдете много официальной информации по ним от Fedora Project.)

      Для ReiserFS в строке запроса инсталятора наберите:

      linux selinux=0 reiserfs

      или это для JFS:

      linux selinux=0 jfs

      или это для XFS:

      linux xfs

      Замечание: Вы не можете использовать SELinux на ReiserFS или JFS. С XFS все нормально. (Если вы не знаете что такое SELinux, вы можете проигнорировать это замечание)

    3. Q: Может ли Fedora работать на 64-х битных (AMD-64 или Intel-64) машинах?
      A: Да, может! 64-х битные версии Fedora Core доступны для скачивания. Смотрите вопрос о получении Fedora Core.

      Вы также можете запустить 32-х битную версию Fedora Core на своей 64-х битной машине, хотя сейчас это редко когда может потребоваться.

    4. Q: Могу ли я запустить Fedora на Mac?
      A: Да, вы можете!

      Если у вас новый Intel Mac, вам нужна версия x86_64 Fedora Core, описанная в вопросе о получении Fedora Core. Заметьте, что некоторые вещи пока могут работать не идеально на Intel Macs. Fedora Project имеет страницу о Fedora на Mactel. Так же есть mactel-linux.org, на котором тоже есть страница о Fedora.

      Если у вас G3, G4 или G5 Mac, вы можете просто установить ppc версию Fedora Core. Смотрите вопрос о получении Fedora Core.

    5. Q: Где установочный образ Fedora для гибкого диска?
      A: Вы не можете установить Fedora с помощью вашего дисковода на гибких дисках, потому что ядро Fedora версии 2.6 слишком большое, чтобы поместиться на дискету.

      Если у вас есть CD-ROM привод, но вы не можете загрузиться с него, попробуйте Smart Boot Manager.


    Использование Fedora и установка программного обеспечения


    1. Q: Где я могу получить программное обеспечение для Fedora?
      A: Наилучший путь для получения программного обеспечения, это использовать yum.

      Если вы хотите скачивать программное обеспечение без использования yum, существует несколько репозитариев (сайты, которые хранят программное обеспечение), которые вы можете использовать. Основные сайты: крайне неофициальный rpm.livna.org (для пакетов с проблемами лицензирования) и официальный Fedora Extras. Они хранят различное программное обеспечение.

      Альтернативный выбор – RPMForge. Там есть некоторые пакеты, которые не содержаться ни на livna.org, ни на Fedora Extras. ы можете ознакомиться со списком доступных пакетов на странице Dag Wieers's RPMForge package list.

      Для поиска программного обеспечения в основных репозитариях используйте FedoraTracker search engine или rpm.pbone.net.

    2. Q: Как установить программное обеспечение на Fedora? (Как использовать yum или RPM)
      A: TПростейший пусть для установки программного обеспечения в Fedora это использовать yum.

      Настройка Yum

      Здесь написано, как настроить yum:

      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Теперь установите мои настройки для yum, используя эту команду:

        rpm -Uvh http://www.fedorafaq.org/yum http://rpm.livna.org/livna-release-6.rpm

      Замечание: Настройки предоставленные здесь обновляются время от времени по разным причинам.

      Использование Yum

      Если у вас есть графическая оболочка к вашему рабочему столу, вы можете получить доступ к yum через меню "Applications" выбрав "Add/Remove Software." (Это называется "pirut", когда вы работаете через графическую оболочку.)

      Тем не менее, часто люди хотят использовать yum из командной строки. Чтоб использовать yum, вам необходимо стать root, и затем вы можете использовать следующие команды:

      • Для просмотра списка доступного программного обеспечения:

        yum list available

      • Для установки программного обеспечения, наберите:

        yum install packagename

      • Для обновления программного обеспечения, наберите:

        yum update packagename

        Если вы опустите "packagename" yum обновит все ваше программное обеспечение.

      • Для просмотра списка доступных обновлений, вы можете сделать:

        yum check-update

      • Для поиска пакета, вы можете сделать:

        yum search word

      Чтобы узнать больше о yum, посетите сраницу yum project.

      Для работы yum через прокси, ознакомьтесь с Fedora documentation about yum and proxies.

      Установка программного обеспечения без yum

      Для установки RPM файла, который вы скачали без использования yum, откройте терминал, и как root выполните:

      rpm -Uvh filename.rpm

    3. Q: Есть ли графический интерфейс для yum?
      A: Да! Есть один для добавления нового программного обеспечения, и один для обновления программного обеспечения, которое уже было установлено.
      • Для установкиl нового программного обеспечения, просто откройте меню "Applications" и выберите "Add/Remove Programs". Это и есть графический интерфейс для yum.
      • Когда ваше программное обеспечение нуждается в обновлении маленькая иконка появиться на вашей верхней панели (обычно верхний правый угол вашего экрана) и Fedora скажет, что вы нуждаетесь в обновлении.

        Если этого не происходит, вам необходимо установить пакет yum-updatesd:

        1. Откройте терминал.
        2. Станьте root:

          su -

        3. Выполните следующую команду:

          yum install yum-updatesd

        Теперь вы будете автоматически извещены, если будут доступны новые обновления к программному обеспечению, которое установлено у вас!

    4. Q: Есть ли что-нибудь наподобие apt для Fedora?
      A: APT это программа для Debian Linux, которая устанавливает не только программное обеспечение, которое вы указали, но и все зависимости. Это делает установку программного обеспечения легче.

      В Fedora есть программа наподобие, которая идет в стандартной установке Fedora Core. Она называется yum. Она может автоматически скачивать и устанавливать программное обеспечение и его зависимости. Я даже предоставляю специальные настройки которые использует yum на моем компьютере. Смотрите вопрос, где я рассказывю как использовать yum.

      Если вы действительно хотите использовать APT, то существует версия для Fedora. Вы можете установить его используя yum, имя пакета apt, хотя он не поддерживается официально Fedora Project.

    5. Q: up2date все еще работает?
      A: Нет, up2date больше не поставляется с Fedora Core. Вместо этого, вы можете использовать yum для получения обновлений.

      Если вы просто хотите поддерживать в обновленном состоянии ваши пакеты, то есть новая программа, под названием "pup", которая имеет графический интерфейс. Она называется "Software Updater" в меню "System Tools".

    6. Q: Как установить Java?
      A: ля Java программистов, Fedora Core идет с Java компилятором под названием gcj.

      Хотя, если вы хотите выполнять Java программы в своем браузере, вам необходимо выполнить следующие инструкции:

      1. Убедитесь что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Скачайте Sun's Java Software Development Kit Version 5.0 Update 10 (он также называется "JDK 5.0 Update 10").Выберите "Linux self-extracting file" версию (не RPM версию).
      3. Вы должы получить Java Software Development Kit на ваш рабочий стол. Имя файла выглядит как:

        jdk-1_5_0_10-linux-i586.bin

      4. Откройте терминал.
      5. Станьте root:

        su -

      6. Вернитесь в вашу home директорию (вместо home директории root'a):

        cd ~username

        Где "username" ваше имя пользователя.

      7. Переместите полученный файл в правильное место:

        mv Desktop/jdk*bin /usr/src/redhat/SOURCES/

      8. Установите некоторые программы, которые необходимы для продолжения:

        yum install yum-utils jpackage-utils rpm-build

      9. Скачайте JPackage Java RPM:

        yumdownloader --enablerepo=jpackage-nonfree java-1.5.0-sun

      10. Соберите JPackage Java RPM:

        setarch i586 rpmbuild --rebuild java-1.5.0-sun*nosrc.rpm

      11. Установите Java:

        yum localinstall /usr/src/redhat/RPMS/i586/java-1.5.0-sun-*

      12. Влючите Java плагин:

        ln -s /usr/lib/jvm/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/

      Теперь Java должна быть установлена и правильно работать. Вам может потребоваться сделать logout и login, чтобы заработали некоторые вещи.

    7. Q: Как установить Flash в моем браузере?
      A:
      1. Убедитесь что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Откройте терминал.
      3. Станьте root:

        su -

      4. Наберите:

        yum install flash-plugin

      Если у вас есть вопросы, посмотрите Flash Plugin FAQ!

    8. Q: Как я могу просмотреть PDF файлы в моем бразуере?
      A: Просто установите mozplugger:
      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Установите mozplugger:

        yum install mozplugger evince

      Это также позволит открывать Firefox множество других типов файлов: видео, документы Word и т.д.

    9. Q: Как я могу просмотреть видео в моем браузере?
      A: Просто установите плагин mplayer:
      1. Убедитесь что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Откройте терминал.
      3. Станьте root:

        su -

      4. Установите плагин:

        yum install mplayerplug-in

      5. Закройте все окна вашего браузера и затем откройте вновь.

      Теперь вы можете видеть видео на сайтах!

      Так же вы можете захотеть установить различные Windows видео кодеки. Заметьте, что могут быть некоторые проблемы с законностью этих кодеков. Вы можете установить их путем:

      1. Убедитесь что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Откройте терминал.
      3. Станьте root:

        su -

      4. Установите пакет кодеков:

        yum --enablerepo=atrpms install w32codec

    10. Q: Могу ли я использовать MSN Messenger/AIM/ICQ/Yahoo сервисы мгновенных сообщений в Fedora?
      A: Да, Fedora поставляется с программой для работы с сервисами мгновенных сообщений, под названием Gaim. Когда вы используете gaim, вы можете работать одноврменно с MSN Messenger, ICQ, AIM, Yahoo! Messenger и Jabber.

      Для запуска Gaim, кликните на меню "Applications", затем "Internet" и выберите "Internet Messenger".

      Прочитайте докуменацию по Gaim, чтобы понять как настроить gaim для работы с вашими IM учетными записями.

    11. Q: Как установить шрифты? Могу ли я использовать Windows (.ttf) шрифты?
      A: Да, вы можете. Вот как это делается:
      1. В меню "System" выберите "Preferences" и затем "Fonts".
      2. Кликните по кнопке "Details...".
      3. Кликните по "Go to font folder."

      Теперь просто перетащите ваши шрифты в окно "Fonts" и добавьте их. Вам может потребоваться сделать logout и login, чтобы увидеть что они действительно показаны в этой папке.

      Если у вас есть открытые программы, вам необходимо закрыть и открыть их. Тогда новые шрифты будут показываться в этих программах.

      Между прочим, есть очень легкий способ установить обычные Windows шрифты на Linux. Это делает некоторые web страницы более симпотичными:

      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Скачайте файл MS Core Fonts Smart Package:

        wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec

      4. Убедитесь что пакеты rpm-build и cabextract packages установлены:

        yum install rpm-build cabextract

      5. Соберите пакет Core Fonts:

        rpmbuild -ba msttcorefonts-2.0-1.spec

      6. Установите пакет Core Fonts:

        rpm -Uvh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm

    12. Q: Где я могу получить драйвера под мое оборудование для Fedora?
      A: Большинство драйверов идет с Fedora. Если ваш драйвер не поставляется с Fedora, вы можете проверить какие драйвера доступны для автомаческого скачивания:
      1. Убедитесь, что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Откройте терминал.
      3. Станьте root:

        su -

      4. Выполните:

        yum --enablerepo=rpmforge list kmod-* dkms-*

      Если вы не нашли то что нужно на сайте Dag'a, попробуйте погуглить:

      Fedora NameOfHardware

      или:

      Linux NameOfHardware

      Где NameOfHardware название вашего оборудования. Если оно имеет несколько названий, попробуйте и их тоже, чтобы получить результат.

    13. Q: Как мне проиграть MP3 в Fedora?
      A: Прежде чем я расскажу об этом, вам следует знать, что в США и некоторых других странах вы должны заплатить отчисления за использование MP3 проигрывателей или декодеров. Хотя для домашних пользователей нет проблем с законом с использованием MP3 проигрывателей.

      Из-за сказанного, плагины для этих вещей обычно находятся в rpm.livna.org репозитории. Вы можете установить различные пакеты, взависимости от того какой MP3 проигрыватель вы хоитете использовать. Если вы не знаете какой выбрать, то выбирайте Rhythmbox, который является стандартным проигрывателем. Он в меню "Applications", далее "Sound & Video" и "Music Player." Когда вы его запустите, он будет очень похож на iTunes.

      Теперь как установить правильный MP3 плагин:

      1. Убедитесь, что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Откройте терминал.
      3. Станьте root:

        su -

      4. Теперь установите плагин, взависимости от того какой MP3 проигрыватель вы используете:
        • Для Rhythmbox или Totem:

          yum install gstreamer-plugins-ugly

        • Для Audacious (он похож на XMMS или Winamp):

          yum install audacious-plugins-nonfree-mp3

        • Для KDE MP3 проигрывателей, наподобие Noatun или Juk:

          yum install kdemultimedia-extras-nonfree

      Теперь у вас есть возможность слушать ваши MP3 файлы в любимом MP3 проигрывателе!

    14. Q: Как мне прочитать NTFS (Windows NT/2000/XP/2003) раздел в Fedora?
      A: Ну, теперь это легко! Просто установите программу ntfs-3g!
      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Наберите:

        yum install ntfs-3g

      Теперь вы можете читать и писать на ваши NTFS разделы!

      О том как работать с вашим NTFS разделом, прочитайте NTFS FAQ.

    15. Q: Как мне отредактировать меню в панели?
      A: Вы можете использовать программу под названием Alacarte Menu Editor.
      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Установите alacarte:

        yum install alacarte

      4. Теперь, в меню наверху вашего экрана: идите SystemPreferencesMore PreferencesMenu Layout. Это редактор меню!

      Для пользователей KDE, есть программа под названием kmenuedit

    16. Q: Как мне заставить Wine работать?
      A: Wine это средство, чтобы запустить некоторые Windows программы на Linux. Программа доступна из Fedora Extras:
      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Установите wine:

        yum install wine

    17. Q: Как проиграть DVD в Fedora?
      A: Легко! Просто уставновите новую версию Totem Movie Player:
      1. Убедитесь, что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Откройте терминал.
      3. Станьте root:

        su -

      4. Теперь мы удалим версию Totem, которая идет с Fedora, и установим новую версию Totem (вместе с файлами, которые необходимы для проигрывания DVD):

        echo -e "remove totem\n install totem-xine libdvdcss libdvdnav xine-lib-extras-nonfree\n run\n quit" | yum -y shell

      И теперь вы можете проигрывать DVD! Найти Totem можно в меню "Applications" в "Sound and Video." Он называется "Movie Player." Для проигрывания DVD вы должны зайти в меню File, выбрать Open Location и затем набрать dvd:// в строке.

      Между прочим, есть еще отличный способ смотреть фильмы, которые Totem не может нормально воспроизвести. Пакет totem-xineможет проигрывать почти все существующие фильмы !

    18. Q: Как мне установить Flash и Java в моем браузере для 64-битной версии Fedora?
      A: Это немного сложнее чем на 32-битной версии Fedora, но это возможно!

      Основная проблема что нет 64-битного Flash плагина. Adobe надеется сделать его в будущем, но это потребует от них некоторого времени.

      Так или иначе, во-первых вы должны установить 32-битную версию Firefox. Он работает также быстро как и 64-битная версия. Тут показано как::

      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Установите 32-битую версию Firefox:

        yum install firefox.i386

      4. Удалите 64-битную версию Firefox:

        yum remove firefox.x86_64

      Теперь вы можете установить Flash нормально.

      Для того чтобы заработал Java плагин, вы должны:

      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Временно переместите файл, который может стать причиной ваших проблем:

        mv /etc/rpm/platform /etc/rpm/platform.bak

      4. Установите дополнительные пакеты, которые вам нужны:

        yum install unixODBC-devel.i386

      5. Следуйте обычным инструкция.
      6. Верните назад файл, который вы перемещали:

        mv /etc/rpm/platform.bak /etc/rpm/platform

      Теперь Java и Flash работают! Для работы с чем-нибудь еще, вы можете попробовать установить 32-битную версию MozPlugger. (Не забудьте удалить предыдущую установленную версию MozPlugger.)


    Проблемы и их решение


    1. Q: Я получил NOKEY предупреждение из RPM, или я получил gpg signature ошибку, когда использовал yum!
      A: Предупреждение NOKEY на самом деле не проблема. Это не может помешать тому что вы делали. (Хоя ошибка yum обычно прекращает установку программного обеспечения.)

      Если вы хотите разрешить это вопрос, выполните следующие комманды, чтобы получить правильный ключ для сайта, с которого вы скачиваете:

      Вы должны быть root чтобы сделать это.

      • Red Hat и Fedora Extras:

        rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

      • rpm.livna.org:

        rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

      • FreshRPMs:

        rpm --import http://freshrpms.net/RPM-GPG-KEY-freshrpms

      • DAG:

        rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

      • ATrpms:

        rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms

      • NewRPMs:

        rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt

      • Dries (RPMForge):

        rpm --import http://apt.sw.be/dries/RPM-GPG-KEY.dries.txt

      • JPackage:

        rpm --import http://www.jpackage.org/jpackage.asc

      • kde-redhat:

        rpm --import http://kde-redhat.sourceforge.net/gpg-pubkey-ff6382fa-3e1ab2ca

      Замечание: Если вы установили мои настройки yum, большинство этих ключей установятся автоматически.

    2. Q: Как установить поддержку 3D для видеокарты ATI Radeon в Fedora?
      A: livna.org предоставляет драйвера для ATI спроектированные специально для Fedora.

      Замечание: Если у вас установлены драйвера от nVidia, вы должны удалить их, прежде чем установить драйвера от ATI.

      Теперь, как их установить:

      1. Убедитесь, что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Откройте терминал.
      3. Станьте root:

        su -

      4. Установите драйвер :

        yum install kmod-fglrx

      5. Остановите X:

        init 3

      6. Зайдите под root.
      7. Включите драйвер:

        ati-fglrx-config-display enable

      8. Перезапустите X:

        init 5

      Если у вас материнская плата от Intel, вы должны изменить файл xorg.conf после установки драйверов:

      1. Откройте терминал.
      2. Станьте root:

        su -

      3. Откройте файл xorg.conf в тексовом редакторе:

        gedit /etc/X11/xorg.conf

      4. Найдите строку :

        Driver "fglrx"

      5. Добавьте эту строку ниже :

        Option "UseInternalAGPGART" "no"

      6. Сохраните файл, перезагрузите ваш компьютер.

      Если у вас проблемы с RPM от livna.org, пожалуйста, сообщите об этом на Livna.org Bugzilla.

      Если вы заметили ошибку в драйверах ATI, пожалуйста, сообщите об этом на ATI Feedback Form!

    3. Q: Как установить поддержку 3D для видеокарты nVidia в Fedora?
      A: На livna.org есть драйвера для nVidia спроектированные специально для Fedora. О том как их установить::
      1. Убедитесь, что вы используете мои настройки yum из вопроса по установке программного обеспечения.
      2. Откройте терминал.
      3. Станьте root:

        su -

      4. Установите драйвер :

        yum install kmod-nvidia

      5. Остановите X:

        init 3

      6. Зайдите как root.
      7. Включите драйвер:

        nvidia-config-display enable

      8. Перезапустите X:

        init 5

      Теперь у вас должно работать 3D на вашей видеокарте от nVidia!

      Если вы нуждаетесь в поддержке по драйверам от nVidia, проверьте nV News "NVIDIA Linux Forum".

    4. Q: Media check инсталятора сообщил что все мои CD повреждены!
      A: Там ошибка в ядре из-за которой на некоторых системах media check говорит, что некоторые CD повреждены, хотя на самом деле нет. Для успешного media check сделайте это:
      1. В строке инсталятора наберите:

        linux mediacheck ide=nodma

      2. Запустите media check для ваших CD/DVD.
      3. Перегрузитесь и запустите инсталятор.

      Заметьте, что иногда mediacheck будет сообщать что повреждены только некоторые CD, это решение исправит и эту проблему.

    5. Q: У меня странная проблема с установкой.
      A: Если ваша установка не работает, или у вас есть проблемы в процессе или после установки, для начала прочитайте последние Release Notes.

      Если вам нужна помощь в процессе установки, Fedora Project предоставляет детальное руководство по установке.

      Если Release Notes и Руководство по установке не содержать решения вашей проблемы, попробуйте загрузить установщик с одно из следующих команд:

      linux ide=nodma

      linux acpi=off

      linux i8042.nomux

      linux acpi=off apm=off

      linux nofb

      "i8042.nomux" особенно полезна если у вас проблемы с клавиатурой или мышкой. "nofb" помогает при проблемах с видео.

      Если одна из этих команд решила вашу проблему, пожалуйста, отправьте сообщение об ошибке на Red Hat's Bugzilla.

    6. Q: Как сделать? чтобы все папки открывались в том же окне в Nautilus?
      A: Если вы хотите настроить чтобы ваш файловый меджер не открывал новое окно для каждой папки, выполните следующие шаги:
      1. Выполните двойнок клик по иконке "Computer" на вашем рабочем столе.
      2. Идите в меню "Edit" и выберите "Preferences."
      3. Кликните на таб "Behavior".
      4. Отметьте чекбокс "Always open in browser windows."
    7. Q: Я больше не могу получить доступ Windows network shares! Люди сказали мне использовать команду smbmount, но она не работает!
      A: Современная версия Fedora Core использует новый тип Windows file sharing называемый "The Common Internet File System" (CIFS). Вместо "smbmount" попробуйте :

      mount -t cifs //1.2.3.4/share /mnt/somedirectory

      Чтобы получить больше информации выполните в терминале:

      man mount.cifs

      Заметьте, что CIFS не может разрешать имя Windows машин, поэтому лучше использовать их IP адреса.

    8. Q: О Боже, ты такой ламер!
      A: Я вас тоже люблю. Правда люблю.
    Этот FAQ поддерживается Max Kanat-Alexander. Это max [at] fedorafaq *dot* org или "mkanat" на #fedora FreeNode IRC. Вы можете помочь нам поддерживать этот FAQ в актуальном состоянии! Если вы знаете о какой-то проблеме, которая не раскрыта здесь, нашли какие-нибудь ошибки в ответах, представленных здесь, или у вас имееются какие-либо предложения, пожалуйста, свяжитесь с нами. The author of fedorafaq.org would also like to thank Jolie Kanat for her various advices and assistance.
    Оригинальная статья http://www.fedoracenter.ru/

    Стирание DVD

    growisofs -Z /dev/dvd=/dev/zero

    или

    dvd+rw-format -force /dev/hdc
    /dev/hdc - привод.

    точно не разобрался что эти команды делают но первая помоему стерает диск, а вторая форматирует.

    Зипись DVD

    Creating and Using Optical Media (DVDs)
    Contributed by Marc Fonvieille. With inputs from Andy Polyakov.

    1 Introduction

    Compared to the CD, the DVD is the next generation of optical media storage technology. The DVD can hold more data than any CD and is nowadays the standard for video publishing.

    Five physical recordable formats can be defined for what we will call a recordable DVD:

    DVD-R: This was the first DVD recordable format available. The DVD-R standard is defined by the DVD Forum. This format is write once.

    DVD-RW: This is the rewriteable version of the DVD-R standard. A DVD-RW can be rewritten about 1000 times.

    DVD-RAM: This is also a rewriteable format supported by the DVD Forum. A DVD-RAM can be seen as a removable hard drive. However, this media is not compatible with most DVD-ROM drives and DVD-Video players; only a few DVD writers support the DVD-RAM format.

    DVD+RW: This is a rewriteable format defined by the DVD+RW Alliance. A DVD+RW can be rewritten about 1000 times.

    DVD+R: This format is the write once variation of the DVD+RW format.

    A single layer recordable DVD can hold up to 4,700,000,000 bytes which is actually 4.38 GB or 4485 MB (1 kilobyte is 1024 bytes).

    Note: A distinction must be made between the physical media and the application. For example, a DVD-Video is a specific file layout that can be written on any recordable DVD physical media: DVD-R, DVD+R, DVD-RW etc. Before choosing the type of media, you must be sure that both the burner and the DVD-Video player (a standalone player or a DVD-ROM drive on a computer) are compatible with the media under consideration.

    2 Configuration

    The program growisofs(1) will be used to perform DVD recording. This command is part of the dvd+rw-tools utilities (sysutils/dvd+rw-tools). The dvd+rw-tools support all DVD media types.

    These tools use the SCSI subsystem to access to the devices, therefore the ATAPI/CAM support must be added to your kernel. If your burner uses the USB interface this addition is useless, and you should read the Section 16.5 for more details on USB devices configuration.

    You also have to enable DMA access for ATAPI devices, this can be done in adding the following line to the /boot/loader.conf file:
    hw.ata.atapi_dma="1"

    Before attempting to use the dvd+rw-tools you should consult the dvd+rw-tools' hardware compatibility notes for any information related to your DVD burner.

    Note: If you want a graphical user interface, you should have a look to K3b (sysutils/k3b) which provides a user friendly interface to growisofs(1) and many others burning tools.

    3 Burning Data DVDs

    The growisofs(1) command is a frontend to mkisofs, it will invoke mkisofs(8) to create the file system layout and will perform the write on the DVD. This means you do not need to create an image of the data before the burning process.

    To burn onto a DVD+R or a DVD-R the data from the /path/to/data directory, use the following command:
    # growisofs -dvd-compat -Z /dev/cd0 -J -R /path/to/data

    The options -J -R are passed to mkisofs(8) for the file system creation (in this case: an ISO 9660 file system with Joliet and Rock Ridge extensions), consult the mkisofs(8) manual page for more details.

    The option -Z is used for the initial session recording in any case: multiple sessions or not. The DVD device, /dev/cd0, must be changed according to your configuration. The -dvd-compat parameter will close the disk, the recording will be unappendable. In return this should provide better media compatibility with DVD-ROM drives.

    It is also possible to burn a pre-mastered image, for example to burn the image imagefile.iso, we will run:
    # growisofs -dvd-compat -Z /dev/cd0=imagefile.iso

    The write speed should be detected and automatically set according to the media and the drive being used. If you want to force the write speed, use the -speed= parameter. For more information, read the growisofs(1) manual page.

    4 Burning a DVD-Video

    A DVD-Video is a specific file layout based on ISO 9660 and the micro-UDF (M-UDF) specifications. The DVD-Video also presents a specific data structure hierarchy, it is the reason why you need a particular program such as multimedia/dvdauthor to author the DVD.

    БIf you already have an image of the DVD-Video file system, just burn it in the same way as for any image, see the previous section for an example. If you have made the DVD authoring and the result is in, for example, the directory /path/to/video, the following command should be used to burn the DVD-Video:
    # growisofs -Z /dev/cd0 -dvd-video /path/to/video

    The -dvd-video option will be passed down to mkisofs(8) and will instruct it to create a DVD-Video file system layout. Beside this, the -dvd-video option implies -dvd-compat growisofs(1) option.

    5 Using a DVD+RW

    Unlike CD-RW, a virgin DVD+RW needs to be formatted before first use. The growisofs(1) program will take care of it automatically whenever appropriate, which is the recommended way. However you can use the dvd+rw-format command to format the DVD+RW:
    # dvd+rw-format /dev/cd0

    You need to perform this operation just once, keep in mind that only virgin DVD+RW medias need to be formatted. Then you can burn the DVD+RW in the way seen in previous sections.

    If you want to burn new data (burn a totally new file system not append some data) onto a DVD+RW, you do not need to blank it, you just have to write over the previous recording (in performing a new initial session), like this:
    # growisofs -Z /dev/cd0 -J -R /path/to/newdata

    DVD+RW format offers the possibility to easily append data to a previous recording. The operation consists in merging a new session to the existing one, it is not multisession writing, growisofs(1) will grow the ISO 9660 file system present on the media.

    For example, if we want to append data to our previous DVD+RW, we have to use the following:
    # growisofs -M /dev/cd0 -J -R /path/to/nextdata

    The same mkisofs(8) options we used to burn the initial session should be used during next writes.

    Note: You may want to use the -dvd-compat option if you want better media compatibility with DVD-ROM drives. In the DVD+RW case, this will not prevent you from adding data.

    If for any reason you really want to blank the media, do the following:
    # growisofs -Z /dev/cd0=/dev/zero

    6 Using a DVD-RW

    A DVD-RW accepts two disc formats: the incremental sequential one and the restricted overwrite. By default DVD-RW discs are in sequential format.

    A virgin DVD-RW can be directly written without the need of a formatting operation, however a non-virgin DVD-RW in sequential format needs to be blanked before to be able to write a new initial session.<\p>

    To blank a DVD-RW in sequential mode, run:
    # dvd+rw-format -blank=full /dev/cd0

    Note: A full blanking (-blank=full) will take about one hour on a 1x media. A fast blanking can be performed using the -blank option if the DVD-RW will be recorded in Disk-At-Once (DAO) mode. To burn the DVD-RW in DAO mode, use the command:
    # growisofs -use-the-force-luke=dao -Z /dev/cd0=imagefile.iso

    The -use-the-force-luke=dao option should not be required since growisofs(1) attempts to detect minimally (fast blanked) media and engage DAO write.

    In fact one should use restricted overwrite mode with any DVD-RW, this format is more flexible than the default incremental sequential one.

    To write data on a sequential DVD-RW, use the same instructions as for the other DVD formats:
    # growisofs -Z /dev/cd0 -J -R /path/to/data

    If you want to append some data to your previous recording, you will have to use the growisofs(1) -M option. However, if you perform data addition on a DVD-RW in incremental sequential mode, a new session will be created on the disc and the result will be a multi-session disc.

    A DVD-RW in restricted overwrite format does not need to be blanked before a new initial session, you just have to overwrite the disc with the -Z option, this is similar to the DVD+RW case. It is also possible to grow an existing ISO 9660 file system written on the disc in a same way as for a DVD+RW with the -M option. The result will be a one-session DVD.

    To put a DVD-RW in the restricted overwrite format, the following command must be used:
    # dvd+rw-format /dev/cd0

    To change back to the sequential format use:
    # dvd+rw-format -blank=full /dev/cd0

    7 Multisession

    Very few DVD-ROM drives support multisession DVDs, they will most of time, hopefully, only read the first session. DVD+R, DVD-R and DVD-RW in sequential format can accept multiple sessions, the notion of multiple sessions does not exist for the DVD+RW and the DVD-RW restricted overwrite formats.

    Using the following command after an initial (non-closed) session on a DVD+R, DVD-R, or DVD-RW in sequential format, will add a new session to the disc:
    # growisofs -M /dev/cd0 -J -R /path/to/nextdata

    Using this command line with a DVD+RW or a DVD-RW in restricted overwrite mode, will append data in merging the new session to the existing one. The result will be a single-session disc. This is the way used to add data after an initial write on these medias.

    Note: Some space on the media is used between each session for end and start of sessions. Therefore, one should add sessions with large amount of data to optimize media space. The number of sessions is limited to 154 for a DVD+R, about 2000 for a DVD-R, and 127 for a DVD+R Double Layer.

    8 For More Information

    To obtain more information about a DVD, the dvd+rw-mediainfo /dev/cd0 command can be ran with the disc in the drive.

    More information about the dvd+rw-tools can be found in the growisofs(1) manual page, on the dvd+rw-tools web site and in the cdwrite mailing list archives.

    Note: The dvd+rw-mediainfo output of the resulting recording or the media with issues is mandatory for any problem report. Without this output, it will be quite impossible to help you.

    Оригинальная статья http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html