User Tools

Site Tools


wiki:rpilinuxjesse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:rpilinuxjesse [2016/07/23 19:20] walkeradminwiki:rpilinuxjesse [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 4: Line 4:
 \\  \\ 
 \\  \\ 
-[[Configure Static IP Address]] +The commands here will work regardless of the Raspberry Pi hardware (not sure about the compute module) but will work with the Raspberry Pi1/2/3 and Zero.
-[[Command Line MySQL]] +
-===== UFW - Uncomplicated Firewall =====+
 \\  \\ 
 \\  \\ 
-Uncomplicated Firewall //**UFW**// is a much simpler security solution than using iptables, it is very easy to install and configure. iptables might ultimately have more features, but I think UFW is suitable for most users. +[[Configure Static IP Address]]\\  
-\\  +[[Command Line MySQL]]\\  
-\\  +[[UFW - Uncomplicated Firewall]]\\  
-To install //**UFW**// from the command line: +[[Restart Apache2 Web Server]]\\  
-\\  +[[Check Disk Space]]\\  
-//**sudo apt-get install ufw**// +[[Change Password]]\\ 
-\\  +
-\\ +
-To allow all ports on the local subnet: +
-\\ +
-//**sudo ufw allow from 192.168.0.0/24**// (allow access from 192.168.0.1 - 192.168.0.254) +
-\\  +
-\\  +
-Allow web port 80 to everyone (internal and external LAN) +
-\\  +
-//**sudo ufw allow 80**// +
-\\  +
-\\  +
-To enable UFW and start rules: +
-\\  +
-//**sudo ufw --force enable**// +
-\\  +
-\\  +
-\\  +
-===== Restart Apache2 Web Server ===== +
-\\  +
-\\  +
-From time to time it might be necessary to restart the Apache Web Server, normally this is required after a configuration change, or if a site has stopped. +
-\\  +
-\\  +
-From the command line: +
-\\  +
-//**sudo /etc/init.d/apache2 restart**// +
-\\  +
-\\  +
-\\  +
-===== Check Disk Space ===== +
-\\  +
-\\  +
-Working from the command line has some disadvantages, one of those is that you don't have a constant graphical reminder of physical and available disk space. To check this we can use the command //**df**// which stands for //**disk filesystem**// +
-\\  +
-\\  +
-From the command line: +
-\\  +
-//**df -h**// --- (the -h means human readable format, so instead values being in bytes, they are displayed at MB or GB etc) +
-\\  +
-\\  +
-$ df -h\\  +
-\\  +
-Filesystem      Size  Used Avail Use% Mounted on\\  +
-/dev/root       6.0G  3.7G  2.0G  66% /\\  +
-devtmpfs        214M      214M   0% /dev\\  +
-tmpfs           218M      218M   0% /dev/shm\\  +
-tmpfs           218M  4.5M  213M   3% /run\\  +
-tmpfs           5.0M  4.0K  5.0M   1% /run/lock\\  +
-tmpfs           218M      218M   0% /sys/fs/cgroup\\  +
-/dev/mmcblk0p6   63M   20M   43M  32% /boot\\  +
-tmpfs            44M       44M   0% /run/user/1000\\  +
-\\  +
-\\  +
-\\  +
-===== Change Password ===== +
-\\  +
-\\  +
-To change the password for a user, when logged in as that user, from the command line enter: +
-\\  +
-\\  +
-//** sudo passwd pi **// --- (make sure you use the correct username, pi is just for the example) +
-\\ +
-you will then be prompted to enter, then re-enter the new password +
-\\  +
-\\  +
-//** +
-$ sudo passwd pi\\  +
-Enter new UNIX password:\\  +
-Retype new UNIX password:\\  +
-passwd: password updated successfully +
-**// +
-\\  +
-\\  +
- +
wiki/rpilinuxjesse.1469298057.txt.gz · Last modified: 2023/03/09 22:35 (external edit)