domyślny login to: pi hasło: raspberry
nie ma ustawionego hasła root, zatem jako użytkownik PI należy ustawić hasło root. su passwd root
domyślny login to: pi hasło: raspberry
nie ma ustawionego hasła root, zatem jako użytkownik PI należy ustawić hasło root. su passwd root
This is about: Enable or Disable service on startup in Linux
systemctl start SERVICE
– starts a service, but doesn’t remain after reboot
systemctl stop SERVICE
– stops a service, but doesn’t remain after reboot
systemctl restart SERVICE
– restarts a service, but doesn’t remain after reboot
systemctl reload SERVICE
– is supported by service, will reload configuration of the service without interfering with services depending on it.
systemctl status SERVICE
– shows actual status of a service -is it currently running or not
systemctl enable SERVICE
– changing service status to enabled. Service will be turned on at nest reboot.
systemctl disable SERVICE
– turns off the service – it will not load at next reboot.
systemctl is-enabled SERVICE
– checks if the service is enabled to load at startup
systemctl is-active SERVICE
– checks if the service is running at the very moment
systemctl show SERVICE
– information about the service.
systemctl mask SERVICE
– (as root) the service is being disabled completely (service directed to/dev/null
). Service wont be able to turned on by any command.
sudo systemctl unmask SERVICE
– Reverts above action .
service –status-all – List running services using service command
To print the status of apache (httpd) service:service httpd status
chkconfig --list
– lists all known services
netstat -tulpn – lists services and their open ports
Edit /etc/dhcpcd.conf as follows:-
Here is an example which configures a static address, routes and dns.
interface eth0
static ip_address=10.1.1.30/24
static routers=10.1.1.1
static domain_name_servers=10.1.1.1
interface wlan0
static ip_address=10.1.1.31/24
static routers=10.1.1.1
static domain_name_servers=10.1.1.1