# set this to ‘yes’ to use TLS encrypted connections# to the LDAP database by using the StartTLS extended# operation.# The StartTLS operation is supposed to be used with normal# ldap connections instead of using ldaps (port 689) connectionsstart_tls = no

## The ldap module will set Auth-Type to LDAP if it has not# already been setldap

c. authenticate dengan ldap

# Uncomment it if you want to use ldap for authentication## Note that this means “check plain-text password against# the ldap database”, which means that EAP won’t work,# as it does not supply a plain-text password.Auth-Type LDAP {ldap}

2. Sesuaikan users

# vi /etc/raddb/users

Ubah Auth-Type dari system ke LDAP

## First setup all accounts to be checked against the UNIX /etc/passwd.# (Unless a password was already given earlier in this file).##DEFAULT Auth-Type = System# Fall-Through = 1

DESCRIPTION

mpg123 reads one or more files (or standard input if ``- is specified) or URLs and plays them on the audio device (default) or outputs them to stdout. file/URL is assumed to be an MPEG-1/2 audio

bit stream.

OPTIONS

mpg123 options may be either the traditional POSIX one letter options, or the GNU style long options. POSIX style options start with a single ``-, while GNU long

options start with ``--.

-t, --test

Test mode. The audio stream is decoded, but no output

occurs.

-s, --stdout

The decoded audio samples are written to standard output, instead of playing them through the audio device. This option must be used if your audio hardware is not supported by mpg123. The output format is raw (headerless) linear PCM audio data, 16 bit, stereo, host byte

order.

-c, --check

Check for filter range violations, and report them for each

frame if any occur.

-C, --control

Enable control keys. By default use 's' to stop, 'p' to pause, 'f' to jump forward to the next song, 'b' to jump back to the beginning of the song, ',' to rewind, '.' to

fast forward, and 'q' to quit.

-v, --verbose

Increase the verbosity level. For example, displays the

frame numbers during decoding.

-q, --quiet

Quiet. Suppress diagnostic messages.

-y, --resync

Try to resync and continue decoding if an error occurs in the input file. Also try to recover from certain broken headers. Useful if you have a broken MPEG file, on which mpg123 normally gives up saying `Illegal header'. Be careful: Broken locations in MPEG files might cause sharp, loud pops or clicks, which might damage your speakers if

played too loud.

-0, --single0; -1,

--single1

Decode only channel 0 (left) or channel 1 (right), respectively. These options are available for stereo MPEG

streams only.

-m, --singlemix

Mix both channels. This option is available for stereo MPEG layer-3 streams only. It takes less CPU time than full

stereo decoding.

-2, --2to1; -4,

--4to1

Performs a downsampling of ratio 2:1 (22 kHz) or 4:1 (11 kHz) on the output stream, respectively. Saves some CPU cycles, but at least the 4:1 ratio sounds ugly. Please note, that does not change speed of the song. Ie the --2to1 option is the same like forcing the sampling output rate to -r

22050 on a 44.1 kHz song.

-bsize, --buffer

size

Use an audio output buffer of size Kbytes. This is useful to bypass short periods of heavy system activity, which would normally cause the audio output to be interrupted. You should specify a buffer size of at least 1024 (i.e. 1 Mb, which equals about 6 seconds of audio data) or more; less than about 300 does not make much sense. The

default is 0, which turns buffering off.

-knum, --skipnum

Skip first num frames. By default the decoding starts

at the first frame.

-nnum, --frames

num

Decode only num frames. By default the complete

stream is decoded.

-ffactor, --scale

factor

Change scale factor (default: 32768).

-rrate, --rate

rate

Set sample rate (default: automatic). You may want to change this if you need a constant output rate independed of the mpeg stream rate. mpg123 automagically converts the rate (down/up sampling) . You should then combine this with

--stereo or --mono.

-ggain, --gain

gain

Set audio hardware output gain (default: don't

change).

-adev, --audiodevice

dev

Specify the audio device to use. The default is system-dependent (usually /dev/audio or /dev/dsp). Use this option if you have multiple audio devices and the default is

not what you want.

-o s, --speaker

Direct audio output to the speaker.

-o h, --headphones

Direct audio output to the headphone connector.

-o l, --lineout

Direct audio output to the line-out connector.

-dn, --doublespeed

n

Only play every n'th frame. This will cause the MPEG stream to be played n times faster, which can be used for special effects. Can also be combined with the --halfspeed option to play 3 out of 4 frames etc. Don't expect great sound quality when using this

option.

-hn, --halfspeedn

Play each frame n times. This will cause the MPEG stream to be played at 1/n'th speed (n times slower), which can be used for special effects. Can also be combined with the --doublespeed option to double every third frame or things like that. Don't expect great

sound quality when using this option.

-pURL | none, --proxy

URL | none

The specified proxy will be used for HTTP requests. It should be specified as full URL (``http://host.domain:port/), but the ``http:// prefix, the port number and the trailing slash are optional (the default port is 80). Specifying none means not to use any proxy, and to retrieve files directly from the respective servers. See also the ``HTTP SUPPORT

section.

-uauth, --auth

auth

HTTP authentication to use when recieving files via HTTP.

The format used is user:password.

-@file, --list

file

Read filenames and/or URLs of MPEG audio streams from the specified file in addition to the ones specified on the command line (if any). Note that file can be either an ordinary file, a dash ``- to indicate that a list of filenames/URLs is to be read from the standard input, or an URL pointing to a an appropriate list file. Note: only one -@ option can be used (if more than one is specified, only the last one will be

recognized).

-z, --shuffle

Shuffle play. Randomly shuffles the files specified on the

command line and in the list file.

--stereo

Force stereo output

--reopen

Forces reopen of the audiodevice after ever

song

--8bit

Forces 8bit output

-w, --wavfile

Write the song using the WAV format to the specified file Instead of a real filename you can use a dash ``- to indicate that the data is to be written to standard

When somebody wants to connect to Internet using my wifi, the first page he can see is the register/login page (whatever page he wants to visit).After registration/login he is able to connect to Internet.

So let’s see how I did it.

Let’s have one server with two network interfaces – first (eth0) goes to Internet, the second one (eth1) is the wifi for “unknown” clients.

You also need to modify following configuration files to setup sign in web pages /var/www/signup-*/library/daloradius.conf.php:

$configValues['CONFIG_DB_PASS']='xxxx';$configValues['CONFIG_DB_NAME']='radius';$configValues['CONFIG_DB_TBL_RADUSERGROUP']='radusergroup';$configValues['CONFIG_SIGNUP_SUCCESS_MSG_LOGIN_LINK']="Click here"." to return to the Login page and start your surfing