Category: Raspberry Pi3

Raspberry Pi3

By , March 13, 2016 7:56 PM

CHANGE PASSWORD
passwd

TIME ZONE
sudo dpkg-reconfigure tzdata

UPDATE FIRMWARE
sudo rpi-update

UPDATE SOURCES
sudo apt-get update

UPDATE SOFTWARE
sudo apt-get upgrade

DISTRO UPGRADES
sudo apt-get dist-upgrade

INSTALL MIDNIGHT COMMANDER
sudo apt-get install mc -y

INSTALL RDP SERVER
sudo apt-get install xrdp y

VNC INSTALL
sudo apt-get install tightvncserver -y
tightvncserver
vncserver :1 -geometry 1920×1080 -depth 24
sudo service lightdm stop

APACHE AND PHP5
sudo apt-get install apache2 php5 libapache2-mod-php5 php5-mysql php5-fpm php5-curl php5-gd php5-cli php5-mcrypt php-apc libssh2-php -y

INSTALL MARIADB
apt-get install mariadb-server
need to # the my.cnf file 127.0.0.1

PHPMYADMIN
sudo apt-get install phpmyadmin -y

WEBMIN
sudo nano /etc/apt/sources.list
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

cd ~

wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
sudo apt-get update
sudo apt-get install webmin -y

SAMBA
sudo apt-get install samba samba-common-bin -y
sudo apt-get install ntfs-3g -y

sudo nano /etc/samba/smb.conf
workgroup = your_workgroup_name
wins support = yes

[pihome]

comment= Pi Home
path=/home/pi
browseable=Yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no

sudo smbpasswd -a pi

FTP SERVER
sudo apt-get install proftpd -y
sudo nano /etc/proftpd/proftpd.conf

DefaultRoot ~
AuthOrder mod_auth_file.c mod_auth_unix.c
AuthUserFile /etc/proftpd/ftpd.passwd
AuthPAM off
RequireValidShell off

sudo chmod g+s /var/www
sudo chmod 775 /var/www
sudo chown -R www-data:www-data /var/www

sudo /etc/init.d/proftpd restart

OTHERS

sudo apt-get install openssl ssl-cert php5-cli php5-sqlite php5-gd php5-common php5-cgi sqlite3 php-pear php-apc curl libapr1 libtool curl libcurl4-openssl-dev php-xml-parser php5 php5-dev php5-gd php5-fpm memcached php5-memcache varnish -y

sudo apt-get install apache2-doc apache2-utils

sudo apt-get install libapache2-mod-php5 php5 php-pear php5-xcache -y

PHP7
sudo nano /etc/apt/sources.list
deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-free
#deb-src http://repozytorium.mati75.eu/raspbian jessie-backports

gpg –keyserver pgpkeys.mit.edu –recv-key CCD91D6111A06851
gpg –armor –export CCD91D6111A06851 | sudo apt-key add –

 

sudo apt install php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-gd php7.0-json php7.0-mcrypt php7.0-mysql php7.0-readline -y
sudo apt-get install php7.0 php7.0-opcache
sudo apt-get install php7.0-cli php7.0-curl php7.0-dev php7.0-fpm php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-opcache -y

sudo service php7.0-fpm stop|
sudo service php7.0-fpm start

OTHER INSTALLS
sudo apt-get install fail2ban

Thomas Challenger Thomas Challenger