Posts

Showing posts from 2017

Autologin on boot is not working (Raspbian Jessie Lite)

Create file:
sudo mkdir /etc/systemd/system/getty@tty1.service.d
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf


[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin yourUserName --noclear %I 38400 linux

replace "yourUserName" with your user

run command: 

sudo systemctl enable getty@tty1.service

nginx on Ubuntu: Permission denied

If you found these error, run command [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) [warn] 1898#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1 [emerg] 1898#0: open() "/var/log/nginx/access.log" failed (13: Permission denied)while restarting Nginx and found it to be a cause of SeLinux. Be sure to give a try after either disabling SeLinux or temporarily setting it to Permissive mode using below commandsetenforce 0