traffickillo.blogg.se

Lightweight linux distro with apache and ssh
Lightweight linux distro with apache and ssh












lightweight linux distro with apache and ssh
  1. #Lightweight linux distro with apache and ssh install
  2. #Lightweight linux distro with apache and ssh password
  3. #Lightweight linux distro with apache and ssh free

I’ve done the following by editing the file so that you can see the file (it’s also arguably a little quicker as you can make multiple changes whilst editing the file). You can add the new user to the groups using the usermod command or you can edit the file directly. The new user will need to be added to certain groups to allow the same privileges that the pi user had.

lightweight linux distro with apache and ssh

This is a security feature that protects the system from other users, but also limits the amount of damage that a user can do by mistake (although if prefixed with the sudo command it will not help against accidents). Without using the sudo command this would fail as regular users are not allowed to create other users. As used above the sudo command allows the user to issue a command as the superuser. Here you will see the first use of the sudo command which we will be using a lot. This will add a new user and change their password. You can skip this and go straight to the performance / networking steps if this is not required. I have used user1 as the username, but typically this will be a persons name. You may also want to add your own username.

#Lightweight linux distro with apache and ssh password

To change the password for the pi user after logging in issueĪnd follow the prompts for changing the password.

#Lightweight linux distro with apache and ssh free

The image includes a default username and password, which once connected to the Internet would allow anyone to login and have free roam of the device. The first priority is to make the Raspberry Pi a little more secure.

lightweight linux distro with apache and ssh

Without using the sudo command many of the commands would fail stating insufficient permissions. The sudo command allows the user to issue a command as the superuser (or in certain circumstances as another user).

#Lightweight linux distro with apache and ssh install

Throughout the install you will see many commands prefixed with sudo. Although this provides step-by-step instructions if you haven’t used the command line previously I suggest you read the basic shell reference guide, and then return to this point. Using the command line and editing filesĪs we are going to be doing this through the command line it is useful to understand a little about the shell. This is based on the Debian Raspberry Pi Raspbian. It's ideal for providing web access to the Raspberry Pi as a monitoring tool, or as a lightweight webserver for a personal website. Lighttpd provides a way of setting up a web server without putting too much load on the limited processing capability. I've already written a tutorial based on the "full-fat" Apache webserver ( running a LAMP Apache based webserver on the Raspberry Pi). Most of these instructions can also be applied to other Debian or Ubuntu based distributions (except the tasks using the raspi-config tool). This guide covers setting up a light webserver on Linux using the lighttpd web server on the Raspberry Pi. Running a lightweight webserver on the Raspberry Pi (lighttpd)














Lightweight linux distro with apache and ssh