The Network Time Protocol (NTP) is a protocol for synchronizing the clocks of computer systems over packet-switched, variable-latency data networks. NTP uses UDP port 123 as its transport layer. It is designed particularly to resist the effects of variable latency (Jitter).
(...)
Read the rest of Network Time Protocol (NTP) Server and Clients Setup in Ubuntu (916 words)
© admin for Ubuntu Geek, 2008. |
Permalink |
6 comments |
Add to
del.icio.us
digg
Who's linking ?
Technorati
BlogPulse
Google
Want more on these topics ? Browse the archive of posts filed under Server.
Ubuntu: Ubuntu Geek - Ubuntu Tutorials,Howto's,Tips and Tricks
atftp is Multi-threaded TFTP server implementing all options (option extension and multicast) as specified in RFC1350, RFC2090, RFC2347, RFC2348 and RFC2349. Atftpd also supports multicast protocol known as mtftp, defined in the PXE specification. The server supports being started from inetd as well as in daemon mode using init scripts.
(...)
Read the rest of Howto Setup advanced TFTP server in Ubuntu (284 words)
© admin for Ubuntu Geek, 2008. |
Permalink |
2 comments |
Add to
del.icio.us
digg
Who's linking ?
Technorati
BlogPulse
Google
Want more on these topics ? Browse the archive of posts filed under Server.
Ubuntu: Ubuntu Geek - Ubuntu Tutorials,Howto's,Tips and Tricks
Postfix is an attempt to provide an alternative to the widely-used Sendmail program. Postfix attempts to be fast, easy to administer, and hopefully secure, while at the same time being sendmail compatible enough to not upset your users.
(...)
Read the rest of Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail (1,074 words)
© Admin for Debian Admin, 2008. | Permalink | 10 comments
Add to del.icio.us
Search blogs linking this post with Technorati
Want more on these topics ? Browse the archive of posts filed under General.
---
Related Articles at Debian Admin:
Debian: Debian Admin Step By Step Tutorials and articles with screenshots
monit is a utility for managing and monitoring, processes, files, directories and devices on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
Monit Features
* Daemon mode - poll programs at a specified interval
* Monitoring modes - active, passive or manual
* Start, stop and restart of programs
* Group and manage groups of programs
* Process dependency definition
* Logging to syslog or own logfile
* Configuration - comprehensive controlfile
* Runtime and TCP/IP port checking (tcp and udp)
* SSL support for port checking
* Unix domain socket checking
* Process status and process timeout
* Process cpu usage
* Process memory usage
* Process zombie check
* Check the systems load average
* Check a file or directory timestamp
* Alert, stop or restart a process based on its characteristics
* MD5 checksum for programs started and stopped by monit
* Alert notification for program timeout, restart, checksum, stop resource and timestamp error
* Flexible and customizable email alert messages
* Protocol verification. HTTP, FTP, SMTP, POP, IMAP, NNTP, SSH, DWP,LDAPv2 and LDAPv3
* An http interface with optional SSL support to make monit accessible from a webbrowser
Install Monit in Ubuntu
sudo apt-get install monit
This will complete the installation.
Configuring Monit
Default configuration file located at /etc/monit/monitrc you need to edit this file to configure your options
sudo vi /etc/monit/monitrc
Sample Configuration file as follows and uncomment all the following options
## Start monit in background (run as daemon) and check the services at 2-minute
## intervals.
#
set daemon 120
## Set syslog logging with the 'daemon' facility. If the FACILITY option is
## omited, monit will use 'user' facility by default. You can specify the
## path to the file for monit native logging.
#
set logfile syslog facility log_daemon
## Set list of mailservers for alert delivery. Multiple servers may be
## specified using comma separator. By default monit uses port 25 - it is
## possible to override it with the PORT option.
#
set mailserver localhost # primary mailserver
## Monit by default uses the following alert mail format:
From: monit@$HOST # sender
Subject: monit alert -- $EVENT $SERVICE # subject
$EVENT Service $SERVICE
Date: $DATE
Action: $ACTION
Host: $HOST # body
Description: $DESCRIPTION
Your faithful,
monit
## You can override the alert message format or its parts such as subject
## or sender using the MAIL-FORMAT statement. Macros such as $DATE, etc.
## are expanded on runtime. For example to override the sender:
#
set mail-format { from: monit@monitorserver.com }
## Monit has an embedded webserver, which can be used to view the
## configuration, actual services parameters or manage the services using the
## web interface.
#
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
allow 172.29.5.0/255.255.255.0
allow admin:monit # require user 'admin' with password 'monit'
===> Change 172.29.5.0/255.255.255.0 to your network ip range
# Monitoring the apache2 web services.
# It will check process apache2 with given pid file.
# If process name or pidfile path is wrong then monit will
# give the error of failed. tough apache2 is running.
check process apache2 with pidfile /var/run/apache2.pid
#Below is actions taken by monit when service got stuck.
start program = "/etc/init.d/apache2 start"
stop program = "/etc/init.d/apache2 stop"
# Admin will notify by mail if below of the condition satisfied.
if cpu is greater than 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if totalmem > 200.0 MB for 5 cycles then restart
if children > 250 then restart
if loadavg(5min) greater than 10 for 8 cycles then stop
if 3 restarts within 5 cycles then timeout
group server
#Monitoring Mysql Service
check process mysql with pidfile /var/run/mysqld/mysqld.pid
group database
start program = "/etc/init.d/mysql start"
stop program = "/etc/init.d/mysql stop"
if failed host 127.0.0.1 port 3306 then restart
if 5 restarts within 5 cycles then timeout
#Monitoring ssh Service
check process sshd with pidfile /var/run/sshd.pid
start program "/etc/init.d/ssh start"
stop program "/etc/init.d/ssh stop"
if failed port 22 protocol ssh then restart
if 5 restarts within 5 cycles then timeout
You can also include other configuration files via include directives:
include /etc/monit/default.monitrc
include /etc/monit/mysql.monitrc
This is only sample configuration file. The configuration file is pretty self-explaining; if you are unsure about an option, take a look at the monit documentation
After configuring your monit file you can check the configuration file syntax using the following command
sudo monit -t
Once you don't have any syntax errors you need to enable this service by changing the file /etc/default/monit
sudo vi /etc/default/monit
# You must set this variable to for monit to start
startup=0
to
# You must set this variable to for monit to start
startup=1
Now you need to start the service using the following command
sudo /etc/init.d/monit start
Monit Web interface
Monit Web interface will run on the port number 2812.If you have any firewall in your network setup you need to enable this port.
Now point your browser to http://yourserverip:2812/ (make sure port 2812 isn't blocked by your firewall), log in with admin and monit.If you want a secure login you can use https check here
Once it opens you should see the following screen

Here you need to enter the username and password

Once it opens you should see the following screen with all the services we are monitoring

Apache web server process details

You can start,stop,restart and disable this service from web interface you can see this in the following screen

The GNU MP3/Media Streamer is a simple application which makes it possible to navigate through your audio and video collection via a browser, and stream playlists across a network.GNUMP3d is a streaming server for MP3s, OGG vorbis files, movies and other media formats.The software supports browsing, searching, and streaming all via your browser with support for MP3, OGG Vorbis, WMA and many other types of audio files.
If you have a large music collection then streaming it across a LAN, or the internet, is a logical thing to do with it.Now we will have a look at gnump3d.
Gnump3d features
Install Gnump3d in Ubuntu
sudo apt-get install gnump3d
This will install all the required packages for gnump3d
When the software is installed it will have the following options configured
The directory containing all your media, /var/music by default.
The port number the server should listen upon, 8888 by default.
The user the daemon should run as, gnump3d by default.
Now you need to access go to http://youripaddress:8888 you should see similar to the following screen

To change the theme you wish to use simply click upon the "Preferences" link and you should see the following screen here you can change theme

Default Configuration file located at /etc/gnump3d/gnump3d.conf you can change this for your needs most common things users change is The default theme,The security options,The downsampling support.
Change the default directory containing multimedia files for GNUMP3d
By default multimedia files location is /var/music.If you want to change this to /home/music using the following steps
Backup existing config file
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup
Edit the configfile
gksudo gedit /etc/gnump3d/gnump3d.conf
Search for the following line
root = /var/music
Replace with the following line
root = /home/music
Find this line
user = gnump3d
Replace with the following line
user = root
Save and exit file
Restart gnump3d service using the following command
sudo /etc/init.d/gnump3d restart
Change the default port number for GNUMP3d
By Default gnump3d server port will listen port number 8888.If you want to change to 7878 use the following steps
Backup existing config file
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup
Edit the configfile
gksudo gedit /etc/gnump3d/gnump3d.conf
Find this line
port = 8888
Replace with the following line
port = 7878
Save and exit the edited file
Restart gnump3d service using the following command
sudo /etc/init.d/gnump3d restart
Now you can access at http://youripaddress:7878
Adding files to gnump3d
Now, you'll probably want to add some files to gnump3d. The default directory is /var/music.
There are many different ways to copy files into your server from another Ubuntu machine,More secure way is using openssh. On the Ubuntu box that you want to copy the files from, open a terminal and type
sudo apt-get install openssh
Assuming that the path of a folder to copy is /home/username/music and the local IP of the remote Ubuntu computer is xxx.xxx.x.xxx, and the directory where the copied files will go is /var/music, go you your server and type
cd /var/music sudo su scp -r username@xxx.xxx.x.xxx:/home/username/music
Once you copied some files you should see similar to the following screen

vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable. Don’t take my word for it, though. Below, we will see evidence supporting all three assertions. We will also see a list of a few important sites which are happily using vsftpd. This demonstrates vsftpd is a mature and trusted solution.vsftpd is an FTP server, or daemon. The “vs” stands for Very Secure.
vsftpd server installation in debian
#apt-get install vsftpd
that’s it this will complete the installation.
vsftpd configuration file
vsftpd configuration file is located at /etc/vsftpd.conf.This is the main configuration file where you need to configure all the required options.
I am going to give the some of the configuration options as follows.This is only example configuration options only.
ftpd_banner
This option is the name of a file containing text to display when someone connects to the server
ftpd_banner=example.com FTP server
listen
If enabled, vsftpd will run in standalone mode. This means that vsftpd must not be run from an inetd of some kind. Instead, the vsftpd executable is run once directly. vsftpd itself will then take care of listening for and handling incoming connections.
listen=YES
xferlog_enable
If enabled, a log file will be maintained detailling uploads and downloads. By default, this file will be placed at /var/log/vsftpd.log, but this location may be overridden using the configuration setting vsftpd_log_file.
xferlog_enable=YES
connect_from_port_20
This controls whether PORT style data connections use port 20 (ftp-data) on the server machine. For security reasons, some clients may insist that this is the case. Conversely, disabling this option enables vsftpd to run with slightly less privilege.
connect_from_port_20=YES
hide_ids
If enabled, all user and group information in directory listings will be displayed as “ftp”.
hide_ids=YES
max_clients
If vsftpd is in standalone mode, this is the maximum number of clients which may be connected. Any additional clients connecting will get an error message.
max_clients=20
max_per_ip
If vsftpd is in standalone mode, this is the maximum number of clients which may be connected from the same source internet address. A client will get an error message if they go over this limit.
max_per_ip=1
anon_root
This option represents a directory which vsftpd will try to change into after an anonymous login. Failure is silently ignored.
anon_root=/home/ftp
anonymous_enable
Controls whether anonymous logins are permitted or not. If enabled, both the usernames ftp and anonymous are recognised as anonymous logins.
anonymous_enable=YES (be careful when you enable this option)
write_enable
This controls whether any FTP commands which change the filesystem are allowed or not. These commands are: STOR, DELE, RNFR, RNTO, MKD, RMD, APPE and SITE.
write_enable=YES
anon_upload_enable
If set to YES, anonymous users will be permitted to upload files under certain conditions. For this to work, the option write_enable must be activated, and the anonymous ftp user must have write permission on desired upload locations.
anon_upload_enable=YES (be careful when you enable this option)
anon_mkdir_write_enable
If set to YES, anonymous users will be permitted to create new directories under certain conditions. For this to work, the option write_enable must be activated, and the anonymous ftp user must have write permission on the parent directory.
anon_mkdir_write_enable=YES (be careful when you enable this option)
If you want to know about more configuration options check the man page of vsftpd.conf file. man page of vsftpd.conf file click here
Note:-If are dealing with anonymous options be careful about those options.
After changing these settings you need to restart vsftpd server to take the effect of our new changes
#/etc/init.d/vsftpd restart
vsftpd server Web interface or GUI tool
vsftpd Webmin module
Vsftpd Webmin module is a Webmin module that configures the vsftpd.conf file from your vsftpd FTP server.You can download from here
Tags: configure vsftpd server, ftp server debian, install vsftpd debian, secure ftp server debian, vsftp server debian, vsftpd server debian, vsftpd web interface, vsftpd webmin moduleconfigure vsftpd server, ftp server debian, install vsftpd debian, secure ftp server debian, vsftp server debian, vsftpd server debian, vsftpd web interface, vsftpd webmin moduleDebian: Debian Admin Step By Step Tutorials and articles with screenshots