ISW Presents Debian Homeserver Workshop
Debian Homeserver Lucas Kauffman −
Voorzitter ISW
−
[email protected]
Vincent Andries −
serveradmin ISW
−
[email protected]
Debian Homeserver Installatie Debian Basic commando's Basic configuratie Samba Installatie + configuratie ftp server Apache + PHP + MySQL Installatie + configuratie torrentflux-b4rt
Vragen? Niet wachten!
Weinig op slide
Werkwijze
−
Debian Netinstall
−
Werken op VM
−
Voorgemaakte scripts voor applicaties
−
Voorkomt fouten
Tijdbesparend
Installatie via apt-cache mirror
Snelheid
Besparing netwerk
Debian Homeserver Installatie Debian Basic commando's Basic configuratie Samba Installatie + configuratie ftp server Apache + PHP + MySQL Installatie + configuratie torrentflux-b4rt
Installatie Debian •
NetInstall CD –
Verkrijgbaar op debian website •
http://www.debian.org
Debian Homeserver Installatie Debian Basic commando's Basic configuratie Samba Installatie + configuratie ftp server Apache + PHP + MySQL Installatie + configuratie torrentflux-b4rt
Basic commando's
•
Cd & varianten
•
Vim editing –
Krachtige editor
–
Niet zo makkelijk gebruik
•
Tijdens workshop nano
•
The use of sudo
Debian Homeserver Installatie Debian Basic commando's Basic configuratie Samba Installatie + configuratie ftp server Apache + PHP + MySQL Installatie + configuratie torrentflux-b4rt
Basic Configuratie
Static IP instellen
Apt sources.list nakijken
Updates uitvoeren
Sudo installeren
SSH Server installeren
Root login niet meer toelaten
Debian Homeserver Installatie Debian Basic commando's Basic configuratie Samba Installatie + configuratie ftp server Apache + PHP + MySQL Installatie + configuratie torrentflux-b4rt
Samba
•
Mappen delen in windows netwerk
•
apt-get install samba smb-client
•
smbpasswd -a $USER
•
Samba config aanpassen •
Eventueel shares toevoegen
smb.conf [SHARE] path=/home/$user/shared Read only = yes/no browseable=yes writeable=yes valid users = $USER http://www.samba.org/samba/docs/man/manp ages-3/smb.conf.5.html
Samba test
Linux: smbclient -L //debianserver -U $USER Windows: \\
\SHARE
Debian Homeserver Installatie Debian Basic commando's Basic configuratie Samba Installatie + configuratie ftp server Apache + PHP + MySQL Installatie + configuratie torrentflux-b4rt
•
VSFTPD
FTP
–
Makkelijk te installeren / configureren
–
Heeft mogenlijkheid tot webmin interface
•
Apt-get install vsftpd
•
nano /etc/vsftpd.conf
Debian Homeserver Installatie Debian Basic commando's Basic configuratie Samba Installatie + configuratie ftp server Apache + PHP + MySQL Installatie + configuratie torrentflux-b4rt
Apache / PHP5 / MySQL •
apt-get install apache2
•
apt-get install php5 php5-cli php5-mysql
•
apt-get install mysql-server mysql-client5.0 –
apt-get install phpmyadmin
Apache / PHP5 / MySQL •
apt-get install apache2
•
apt-get install php5 php5-cli php5-mysql
•
apt-get install mysql-server mysql-client5.0 –
apt-get install phpmyadmin
Debian Homeserver Installatie Debian Basic commando's Basic configuratie Samba Installatie + configuratie ftp server Apache + PHP + MySQL Installatie + configuratie torrentflux-b4rt
TorrentFlux •
We are in need of some extra programs –
apt-get install zip unzip unrar perl python libxml-dom-perl libxml-simpleperl libthreads-shared-perl libdigest-sha1-perl libhtml-parser-perl transmission-cli vlc uudeview
–
Wget http://ftp.de.debian.org/debian/pool/main/c/cksfv/cksfv_1.3.5-1_i386.deb
–
dpkg -i cksfv_1.3.5-1_i386.deb
TorrentFlux part 2 •
wget http://download.berlios.de/tfb4rt/torrentflux-b4rt_1.0-beta2.tar.bz2
•
tar xjvf torrentflux-b4rt_1.0-beta2.tar.bz2
•
cp ~/torrentflux-b4rt_1.0-beta2/html/ /var/www/torrentflux -R
•
Eventueel ->
Torrentflux part 3
–
apt-get install build-essential libssl-dev pkg-config
–
cd ~/torrentflux-b4rt_1.0-beta2/clients
–
wget http://download.m0k.org/transmission/files/transmission-1.06.tar.bz2
–
tar jxvf transmission-1.06.tar.bz2
–
cp transmission/Transmission-1.06_tfCLI-svn3356.tar.bz2 .
–
tar jxvf Transmission-1.06_tfCLI-svn3356.tar.bz2
–
cp Transmission-1.06_tfCLI-svn3356/cli/transmissioncli.c transmission1.06/cli/transmissioncli.c
–
./configure --disable-gtk
–
make
–
make install
–
Settings -> Binary paths -> transmissioncli -> /usr/local/bin/transmissioncli
TorrentFlux part 4 •
Mysql configureren –
Surf naar http://uw-ip/phpmyadmin
–
Log in met user root en eerder gekozen wachtwoord
–
Klik op Privileges -> Add a new User
–
-> Kies een gebruikersnaam (vb torrentflux)
–
-> Bij Host: Selecteer dropdown -> we gaan kiezen voor localhost (security redenen)
–
-> Password: zelf 1 kiezen of genereren (wat aangeraden is)
–
-> Database for user: -> Create Database with same name and grant all privileges.
–
-> Bij succes de melding (You have added a new user)
–
Phpmyadmin mag gesloten worden.
•
TorrentFlux part 5 Configuratie tf-b4rt –
Surf naar http://uw-ip/torrentflux/setup.php
–
Continue 2x -> Mysql -> Database check (OK) -> Vul eerder aangemaakte gegevens in ->
–
Alles uitvinken -> Creation (OK) + chmod 777 /var/www/torrentflux/inc/config ->
–
Create Tables -> All queries OK -> Insert data (All ok) ->
–
Server Settings -> Selecteer download directory + chown wwwdata -> Check OK ->
–
Third pary tools (no errors) -> Server Settings Save (OK) ->
–
Delete /var/www/torrentflux/setup.php -> refresh
–
User en Wachtwoord kiezen -> superuser in torrentflux!
Cups •
Service voor printservers –
1 pc met printer
–
Alle computers in netwerk kunnen printen
•
http://tldp.org/HOWTO/Debian-andWindows-SharedPrinting/sharing_with_windows.html
•
Niet mogenlijk te tonen in workshop
Extra Vragen? •
Indien er nog tijd is...