180 likes | 344 Views
Workshop Debian. ISO. /export/ isw / debian. Wat gaan we installeren. SSH statisch ip SCREEN irssi APACHE2 FTP SAMBA DLNA ( MediaTomb ). De installatie. SSH. sudo apt -get update sudo apt -get install openssh -server nano / etc / ssh / sshd_config
E N D
ISO • /export/isw/debian
Wat gaan we installeren • SSH • statisch ip • SCREEN • irssi • APACHE2 • FTP • SAMBA • DLNA (MediaTomb )
SSH • sudoapt-get update • sudoapt-get installopenssh-server • nano/etc/ssh/sshd_config • # Whatports, IPsandprotocols we listen for Port 22 Port 2222 • sudo /etc/init.d/sshrestart
Statisch ip • sudoifconfig • nano /etc/network/interfaces auto eth0 iface eth0 inetstatic address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.254 • /etc/init.d/networkingrestart
Screen & irssi • Sudoapt-get installirssi screen • Screen –s irssi • Irrsi • /connectirc.khleuven.be • /join#bebian • /nic naam • Ctrl + A • Crtl + D
Apache2 webserver • Sudoapt-get install apache2 • Cd /var/www/ • Nano index.html
Samba • Mkdir /samba • Sudoapt-get samba • Useradd samba • smbpasswd–a samba • Nano /etc/samba/smb.conf
[global] workgroup = debian netbios name = debianserver server string = %h server (Samba %v) log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 [SAMBA] path=/samba browseable=yes writeable=yes valid users = samba admin users = debain
Samba • /etc/init.d/samba restart
MediaTomb • Sudoapt-get installmediatomb • nano/etc/mediatomb/config.xml
<name>debian_nas</name> <ui enabled="yes" show-tooltips="yes"> <accounts enabled="yes" session-timeout="30"> <account user=”root" password="t"/> </accounts> </ui>
MediaTomb • sudo service mediatombrestart • http://nas_ip:49152