Raspberry PI MegaPost

Ubuntu Raspberry PI OS

Snappy Ubuntu Core or Ubuntu 16.04 LTS ‘classic’

Snappy Ubuntu Core is a new rendition of Ubuntu with transactional updates – a minimal server image with the same libraries as today’s Ubuntu, but applications are provided through a simpler mechanism. images are available for the Raspberry Pi 2 and 3.

-https://wiki.ubuntu.com/ARM/RaspberryPi


Remote SSH

As of the November 2016 release, Raspbian has the SSH server disabled by default. You will have to enable it manually. This is done using raspi-config:

Enter sudo raspi-config in the terminal, first select Interfacing options, then navigate to ssh, press Enter and select Enable or disable ssh server.

For headless setup, SSH can be enabled by placing a file named ‘ssh’, without any extension, onto the boot partition of the SD card.

-https://www.raspberrypi.org/documentation/remote-access/ssh/


Transmission

  • Install
    • sudo apt-get install transmission-cli transmission-common transmission-daemon
  • Configure
    • transmission-daemon will start automatically each time you start your server, with the settings defined in /var/lib/transmission-daemon/info/settings.json
      • Make sure the Transmission daemon is not running when changing the config file otherwise your changes will be overwritten.
        • sudo service transmission-daemon stop
    • sudo nano /var/lib/transmission-daemon/info/settings.json
      • Username and Password
        • The default rpc-username and password is “transmission”
          • “rpc-password”: “{62b16db87b89a91dd49a5110a7cafc06d20eb4f2wtK6kqPj”,
          • “rpc-username”: “transmission”,

Correct permissions /var/www

sudo adduser $USER www-data

sudo chown $USER:www-data -R /var/www

sudo chmod +0775 -R /var/www


OpenVPN installer

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh


Install LAMP

sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 -y
sudo /etc/init.d/apache2 restart
php -r ‘echo “nnYour PHP installation is working fine.nnn”;’


Group/User Access to NTFS External Drive

sudo nano/etc/fstab
/dev/sda1 /mnt/HD1 ntfs-3g uid=1001,gid=33,umask=0002 0 0
/dev/sdb1 /mnt/HD2 ntfs-3g uid=1001,gid=33,umask=0022 0 0
Remount
mount -a


OpenVPN installer wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
List of Installed Packages dpkg –get-selections | grep -v deinstall > packages
wget  wget -A pdf,jpg -m -p -E -k -K -np http://site/path/

This will mirror the site, but the files without jpg or pdf extension will be excluded

Correct permissions /var/www sudo adduser $USER www-data

sudo chown $USER:www-data -R /var/www

sudo chmod +0775 -R /var/www

RPI2 sudo apt-get remove –purge bluej claws-mail claws-mail-i18n epiphany-browser epiphany-browser-data libreoffice* wolfram-engine sonic-pi
Find process pid ps aux | grep {process-name} ie.$ ps aux | grep apache2
path of executable whereis command

whereis apache2

Deploying MediaGoblin http://mediagoblin.readthedocs.io/en/latest/siteadmin/deploying.html
 beets music manager http://beets.readthedocs.io/en/v1.3.19/plugins/index.html
Apache Basic Authentication
  • sudo apt-get update
  • sudo apt-get install apache2 apache2-utils
  • sudo htpasswd -c /etc/apache2/.htpasswd [user name]
  • sudo nano /etc/apache2/sites-enabled/000-

default.confAuthType Basic

AuthName “Restricted Content”

AuthUserFile /etc/apache2/.htpasswd

Require valid-user

 Self-hosting
Download BBC iPlayer Videos
Insall LAMP
  • sudo apt-get install apache2 mysql-server php5 libapache2-mod-php5 -y
  • sudo /etc/init.d/apache2 restart
  • php -r ‘echo “nnYour PHP installation is working fine.nnn”;’
Group/User Access to NTFS External Drive
  •  sudo nano/etc/fstab
    • /dev/sda1 /mnt/HD1 ntfs-3g   uid=1001,gid=33,umask=0002    0       0/dev/sdb1 /mnt/HD2 ntfs-3g   uid=1001,gid=33,umask=0022    0       0
  •  Remount
    • /etc/fstab mount -a
List The Open Ports And The Process
  • sudo lsof -I
  • sudo netstat -lptu
  • sudo netstat -tulpn
Iodine iodine lets you tunnel IPv4 data through a DNS server. This can be usable in different situations where internet access is firewalled, but DNS queries are allowed.

Raspberry PI MegaPost was originally published on Something Different

Advertisements