Цели: Простенький аудиоплеер, для того что бы тетя продавец в магазине утром пришла нажала на кнопку Power и заиграла в зале музыка, так же был доступ по сети, общая шара куда можно заливать музыку, которую потом бы плеер воспроизводил.Устанавливаем Плеер
//> cd /usr/ports/multimedia/mplayer
/usr/ports/multimedia/mplayer/> make config
+--------------------------------------------------------------------+
| Options for mplayer 0 .99 .11_14 |
| +----------------------------------------------------------------+ |
| | [ ] DEBUG Include debug symbols in mplayer's binary files |
| | [X] RTCPU Let mplayer dynamically check for CPU features| |
| | [X] OCFLAGS Use optimized compiler flags | |
| | [X] SIMD Allow mplayer to use vector engines (MMX...) | |
| | [ ] IPV6 Include inet6 network support | |
| | [ ] X11 Enable X11 support for mplayer's video output | |
| | [ ] X11XV X11 video drivers: XV | |
| | [ ] X11DGA X11 video drivers: DGA | |
| | [ ] X11GL X11 video drivers: OpenGL | |
| | [ ] X11XIN X11 video drivers: Xinerama | |
| | [ ] X11VM X11 VidMode support | |
| | [ ] X11XVMC Enable XvMC acceleration | |
| | [ ] GUI Enable GTK2 graphical user interface with X11 | |
| | [ ] SDL Enable SDL video output | |
| | [ ] VIDIX Enable VIDIX video output on supported archs | |
| | [ ] SKINS Force dependency on mplayer-skins | |
| | [ ] FREETYPE Use freetype for OSD fonts (TrueType!) | |
| | [ ] RTC Add support for kernel real time clock timing | |
| | [ ] ARTS Enable KDE sound system support | |
| | [ ] ESOUND Enable GNOME esound support | |
| | [ ] JACK Enable JackIt audio server support | |
| | [ ] NAS Enable NAS sound server support | |
| | [ ] OPENAL Enable OpenAL sound support | |
| | [ ] LIBUNGIF Enable gif support | |
| | [ ] AALIB Enable aalib support | |
| | [ ] LIBCACA Enable libcaca support | |
| | [ ] SVGALIB Enable svgalib support | |
| | [ ] LIBDV Enable libdv support | |
| | [X] MAD Enable mad MPEG audio engine support | |
| | [X] DTS Enable DTS audio codec support | |
| | [X] LIBMPCDEC Enable libmpcdec support | |
| | [ ] LADSPA Enable LADSPA plugin support | |
| | [X] SPEEX Enable speex audio codec support | |
| | [ ] TREMOR Use built-in tremor instead of libvorbis | |
| | [ ] XMMS Enable XMMS plugin support | |
| | [ ] THEORA Enable ogg theora video support | |
| | [X] WIN32 Enable win32 codec set on the IA32 arch | |
| | [ ] AMR Enable AMR audio codec support | |
| | [ ] X264 Enable x264 (H.264 ) video codec support | |
| | [ ] XANIM Enable xanim DLL support | |
| | [ ] XVID Enable XVID video codec support | |
| | [ ] REALPLAYER Enable real player plugi | |
| | [ ] LIVEMEDIA Enable LIVE555 streaming support | |
| | [ ] SMB Enable Samba input support | |
| | [ ] FRIBIDI Enable FriBiDi support | |
| | [ ] LIRC Enable lirc support | |
| | [ ] LIBCDIO Enable libcdio support | |
| | [ ] CDPARANOIA Enable cdparanoia support | |
| | [ ] LIBLZO Enable external liblzo library | |
| | [ ] JOYSTICK Enable joystick support | |
+-+------v(+)------------------------------------------------------+-+
| [ OK ] Cancel |
+--------------------------------------------------------------------+
/usr/ports/multimedia/kmplayer/> make install clean
Устанавливаем Samba 3
//> cd /usr/ports/net/samba3
/usr/ports/net/samba3/> make config
+--------------------------------------------------------------------+
| Options for samba 3 .0 .32_1,1 |
| +----------------------------------------------------------------+ |
| | [ ] LDAP With LDAP support | |
| | [ ] ADS With Active Directory support | |
| | [ ] CUPS With CUPS printing support | |
| | [ ] WINBIND With WinBIND support | |
| | [ ] ACL_SUPPORT With ACL support | |
| | [ ] AIO_SUPPORT With Asyncronous IO support | |
| | [ ] FAM_SUPPORT With File Alteration Monitor | |
| | [X] SYSLOG With Syslog support | |
| | [ ] QUOTAS With Disk quota support | |
| | [X] UTMP With UTMP accounting support | |
| | [ ] PAM_SMBPASS With PAM authentication vs passdb backends | |
| | [ ] CLUSTER With experimental cluster support | |
| | [ ] DNSUPDATE With dynamic DNS update(require ADS) | |
| | [ ] EXP_MODULES With experimental modules | |
| | [X] POPT With system-wide POPT library | |
| | [X] PCH With precompiled headers optimization | |
| | [ ] MAX_DEBUG With maximum debugging | |
| | [ ] SMBTORTURE With smbtorture | |
+-+------v(+)------------------------------------------------------+-+
| [ OK ] Cancel |
+--------------------------------------------------------------------+
/usr/ports/net/samba3/> make install clean
//> ee /usr/local/etc/smb.conf
[global]
workgroup = WORKGROUP
server string = Player18
security = share
hosts allow = 192 .168 .18 . 192 .168 .0 . 127 .
log file = /var/log/samba/log.%m
max log size = 50
dns proxy = no
disable spoolss = yes
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
[Music]
comment = Музыка
path = /usr/music
read only = No
create mask = 0660
directory mask = 0770
public = yes
writable = yes
//> echo 'samba_enable="YES"' >> /etc/rc.conf
//> /usr/local/etc/rc.d/samba start
Создаем директорию /usr/music куда будем складывать муыку
и даем на нее права 777
Настройка звуковой карты Подгружаем драйвер
или может быть от этого драйвера
Проверяем
Id Refs Address Size Name
1 5 0xc0400000 7db448 kernel
2 1 0xc0bdc000 4b5c snd_via8233
3 2 0xc0be1000 239e8 sound.ko
4 1 0xc0c05000 5c838 acpi.ko
Добавляем драйвер в loader.conf
snd_via8233_load="YES"
autoboot_delay="3 "
Прочитать об этом подробнее в Handbook можно тут Добавляем строку в /etc/rc.local для того что бы у нас плеер запускался при старте системы
su root -c "/usr/local/bin/mplayer -loop 0 /usr/music/*.mp3 \
< /dev/null > /dev/null &"
Источник: http://www.lissyara.su/articles/freebsd/trivia/install_mplayer_music_player/