Zakładam, że mamy zainstalowaną najczystszą dystrybucję Debiana 7 tylko z połączeniem SSH. Obecnie wszystko robimy z dostępu ROOTa
0) Potrzebne narzęcia
1 2 |
apt-get install nano apt-get install htop |
nano - edytor tekstu
htop - lepsza wersja top
1) Aktualizacja dystrybucji
Z edytuj listę repository
1 |
nano /etc/apt/sources.list
|
Ustaw tak aby była lista:
1 2 3 4 5 6 7 8 9 |
deb http://ftp.debian.org/debian wheezy main contrib non-free deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free deb http://security.debian.org wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free deb http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free deb-src http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free |
A następnie:
1 2 |
apt-get update apt-get upgrade |
2) Zmiana strefy czasowej + NTP
Zmień strefę czasową:
1 |
dpkg-reconfigure tzdata
|
Wybierz 8.Europe
Wybierz 56. Warsaw
Zainstaluj NTP (synchronizacja daty oraz godziny)
1 |
apt-get install ntp ntpdate
|
3) Zmień domyślny Charset na PL UTF-8
Wykonaj polecenie aby zmienić domyślne kodowanie znaków:
1 |
dpkg-reconfigure locales
|
4) Zmień domyślną powłokę Shell - wymagane dla ISPConfig
/bin/sh to symlink do /bin/dash, Potrzebujemy aby /bin/bash był główną powłoką a nie /bin/dash. Bez tej operacji nie zainstalujemy ISPconfiga
1 2 3 |
dpkg-reconfigure dash #Use dash as the default system shell (/bin/sh)? |
5) Zmień PORT SSH
Tylko dla bezpieczeństwa zmień na niestandardowy port SSH. Edytujemy plik: /etc/ssh/sshd_config
Zmień PORT z 22 na np. 6622
A następnie zrestartuj usługę:
1 |
/etc/init.d/ssh restart
|
6) Konfiguracja domeny do serwera