Date post: | 20-Dec-2015 |
Category: |
Documents |
View: | 223 times |
Download: | 0 times |
MNSBUNTUMiikka Leminen
&
Niko Mäkelä
SERVER AND SERVICES
Ubuntu Server 10.04 (Lucid Lynx)
Domain Name Server (DNS)• Bind9 configuration• 20 client servers on our DNS
Multimedia Streaming Server• Icecast 2• Darkice
START
1. New virtual machine by using Vmware vSphere.1. Downloading of Ubuntu Server media.2. Installation of Ubuntu Server with the very basic
options.3. Installation of SSH server
2. Installing and configuring of Iceacast 2 media
server.
3. Installing and configuring of Bind9 DNS.
ICECAST 2
A collection of programs and libraries for
streaming audio over the Internet• icecast, a program that streams audio data to
listeners • libshout, a library for communicating with Icecast
servers • IceS and Darkice, programs that sends audio data to
Icecast servers. Can also be implemented from another physical computer by using e.g VLC or Winamp with Shoutcast/Icecast plugins.
ICECAST 2 INSTALLATION
As root do..
1. Install Icecast• apt-get install icecast2
2. Add a new user and usergroup for icecast• useradd radioguy• passwd radioguy
3. Configure Icecast 2• vim /etc/icecast2/icecast.xml• Change authentication, hostname and listen-socket properties to fit your needs.• Modify change owner -property for newly created icecast user
4. Make sure that icecast user has write permission to icecast logs at
/var/log/icecast2.
5. Run Icecast• Icecast2 -b -c /etc/icecast2/icecast.xml
ICECAST FUNCTION DIAGRAM
IcecastSource Sharing(Vorbis .ogg)
streamTransformation
192.168.10.44User:passwordicecast2
PROBLEMS WITH ICECAST 2
1. Our virtual environment does not have support
for any sound card.• Darkice did not want to run so we could not stream
music directly from server itself.• Streaming music was implemented from another
physical computer using VLC or Winamp 5 with podcast plugins.
2. Problems to stream video because of unknown
reason.
BIND 9
BIND was as of 2004 the most commonly used Domain Name System
(DNS) server on the Internet, and still proclaims itself to be so. On Unix-
like operating systems it is the de facto standard.
A new version of BIND (BIND 9) was written by the ISC from scratch in
part to address the architectural difficulties with auditing the earlier BIND
code bases, and also to support DNSSEC (DNS Security Extensions). Other
important features of BIND 9 include: TSIG, DNS notify, nsupdate, IPv6,
rndc flush (remote name daemon control), views, multiprocessor support,
and an improved portability architecture. rndc uses a shared secret to
provide encryption for local and remote terminals during each session.
BIND 9 INSTALLATION
As root do..
1. Install Icecast• apt-get install bind9
2. Configure Bind 9• vim /etc/bind/named.conf.local
3. Modify forwarder where DNS will forward the requests he cannot process.
4. Add the zone definition files where we will put all the addresses / machine names that
our DNS server will know.
5. Create the reverse DNS zone file
6. Restart bind• sudo /etc/init.d/bind9 restart
7. Test your DNS• dig example.com
A great guide that we used to configure our server:
http://ubuntuforums.org/showthread.php?t=236093
BIND 9 CONFIGURATION
We also added 20 other servers in the network to
our lns-servers.com database
We also added dns-servers (our server) ip-address
to router’s dns-database• Note that Ip-address leases must be renewed!
lns-servers.com. IN SOA mns.lns-servers.com.
admin.lns-servers.com. (
2006081401
28800
3600
604800
38400
)
lns-servers.com. IN NS mns.lns-servers.com.
mns IN A 192.168.XX.XX
gw IN A 192.168.XX.XX
@ IN SOA mns.lns-servers.com. admin.lns-
servers.com. (
2006081401;
28800;
604800;
604800;
86400
)
IN NS mns.lns-servers.com.
XX IN PTR lns-servers.com
1 IN NS gw.lns-servers.com.
LNS-SERVERS ZONE-CONF
/etc/bind/zones/lns-servers.com.db
/etc/bind/zones/rev.10.168.192.in-
addr.arpa
PROBLEMS WITH BIND 9
1 false mark makes everything fail.
Finding errors is really hard or even impossible
even in verbose mode.
1. Nothing worked at the beginning because we
had left 1 comment line in a wrong place.
QUESTIONS?