Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import os
- os.system('sudo apt-get update')
- os.system('sudo apt-get -y upgrade')
- os.system('sudo apt-get -y dist-upgrade')
- os.system('sudo apt-get -y install python-dev')
- os.system('sudo apt-get -y install python-pip')
- os.system('sudo apt-get -y install imagemagick') #ImageMagick
- os.system('sudo apt-get -y install python-imaging') #PIL
- os.system('sudo apt-get -y install python-imaging-tk')
- ### Hostname Broadcast ###
- os.system('sudo apt-get -y install avahi-daemon')
- os.system('sudo insserv avahi-daemon')
- os.system('sudo /etc/init.d/avahi-daemon restart')
- os.system('sudo pip install pyephem') #Astronomical Computions
- os.system('sudo pip install requests')
- os.system('sudo pip install picamera') # PiCamera Module
- ### Webserver Install ###
- os.system('sudo apt-get -y install apache2 php5 libapache2-mod-php5')
- os.system('sudo service apache2 restart')
- os.system('ln -s /var/www/ ~/www')
- ### Mysql Install ###
- os.system('sudo apt-get -y install mysql-server mysql-client php5-mysql')
- os.system('sudo chown -R pi /var/www')
- ### FTP Server ###
- os.system('sudo apt-get -y install vsftpd')
- print('Change /etc/vsftpd.conf')
- print('anonymous_enable=YES to anonymous_enable=NO, Uncomment local_enable=YES and write_enable=YES, then go to the bottom of the file and add force_dot_files=YES.')
- print('sudo service vsftpd restart')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement