ether1 – WAN
ether5 – LAN 5 port
ether1 – WAN
ether5 – LAN 5 port
apt-get install iptables-persistent
After that, run next commands every time you want save iptables changes permanently:netfilter-persistent save
netfilter-persistent reload
mysql -u root -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.71.20' IDENTIFIED BY 'root_password_here' WITH GRANT OPTION;
ln -s /usr/local/mysql/data/mysql.sock /var/run/mysqld/mysqld.sock
How to have an OpenVPN client connect on system Startup. How to set up a persistant OpenVPN client connection.
Ensure *.conf file is located in /etc/openvpn/
*.ovpn files will not work, they will need to be renamed to *.conf.
Renaming a ovpen file to conf is ok and does work.
Edit /etc/default/openvpn
AUTOSTART=”ClientName”
Example: Lets say there is a client certificate called LocationB and the config/settings file is called LocationB.ovpn.
Copy LocationB.ovpn into /etc/openvpn/LocationB.conf
Then add a line into /etc/default/openvpn
AUTOSTART=”LocationB”
Adds a loopback device to ALSA, which appears in the PulseAudio Volume Control.
sudo modprobe snd_aloop
sudo nano /etc/default/grub
pridedam parametrą video=SVIDEO-1:d
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=SVIDEO-1:d"
Išsaugom.
sudo update-grub
sudo reboot
Ši komanda yra bendra visoms linux operacinėms sistemoms
ln -sf /usr/share/zoneinfo/Europe/Vilnius /etc/localtime
Debian operacinei sistemai
dpkg-reconfigure tzdata
1. Atsisiunčiame nano teksto redagavimo programą (nebūtina bet patogiau naudoti).
apt-get install nano
2. Atsidarome ssh serverio konfiguracinį failą su komanda
nano /etc/ssh/sshd_config
3. Atidaryto failo apačioje įrašome tokią komandą
AllowUsers root
po AllowUsers įrašome kokie naudotojai turės galimybę jungtis
prie serverio per SSH protokolą, visi kiti naudotojai, kurių šiame
saraše nebus negalės jungtis prie serverio per SSH protokolą.
Tarkime noriu kad prisijungimo galimybę per SSH turetų šie naudotojai: justas, tomas, root, mantas
tada įrašome šią komandą:
AllowUsers justas tomas root mantas
4.Išsaugome pakeitimus konfiguraciniame faile
spaudžiame ctrl+x tada raidę y ir klavišą enter.
5. perkrauname SSH servisą
/etc/init.d/ssh restart
Pamoka, kaip tvarkyti startup programas Debian OS.
Prireiks rcconf paketo.
Įsidiegiam jį
apt-get install rcconf
Kai įdiegimas bus baigtas rašome
rcconf
Ir pasirenkame duotame sąrašė programas, kurias norime, kad jos pasileistų automatiškai, kartu su sistema, arba atžymime nereikalingas programas, kurių mums nereikia pasileidus sistemai. ĮSPĖJIMAS: Neatžymėkite nežinomų programų, kitaip jūsų operacinė sistema gali nepasileisti!.
Jei norėsite paleisti jūsų norimą programą kartu su sistema, jums reikė į /etc/init.d/ skuruti failą, kuriame bus jūsų programos paleidimo eilutė ir kelias iki jos. Išsaugoję failą, nepamirškite jam duoti paleidimo privilėgijų, kitaip jis neatsiras sąraše tarp kitų programų parašius rcconf.