The following script will create thumbnails of each uploaded photo, along with a simple page of HTML which will allow users to browse and download the pictures. In order to make this part a bit easier, open up the permissions on the new folder. If your pictures are on a Windows PC, use WinSCP, Filezilla or another commonly available FTP tool. Upload a few photographs into the folder just created. ![]() ~ $ sudo apt-get install ~ $ sudo apt-get install zip Create a Directory for your PicturesĬreate a directory for your pictures under /var/ ~ $ sudo mkdir /var/www/wedding And zip will be needed to pre-package pictures for download. We will be using “ convert” to make thumbnail pictures, a part of the Imagemagick suite. The web page will be visible from any computer, smartphone or tablet on your home network, even in a browser running on the Pi itself. The web server software is running but no content has been added, yet. This is the default web page for this server. You should see a web page with these words: My Raspberry Pi’s IP address is 192.168.1.71, so I go to Note: The IP address of your Pi can be found with the ifconfig command: ~ $ ifconfig | grep inet In a web browser, surf to the URL and look at your new web site. ~ $ sudo apt-get ~ $ sudo apt-get install apache2 Check the New Websitee A few other packages will be installed at the same time. It will take two or three minutes to complete. Install the Apache web server with these commands. However, this procedure should also work for other distributions. My raspberry Pi is freshly installed with the latest Raspbian image of Debian Wheezy, -wheezy-raspbian.zip, which was downloaded from. While not as polished as Flickr, Smugmug or similar services, it allows you to retain ownetship, control and security of the shared images. This post describes how to create a simple photo gallery on the Pi, which can be shared over the internet with or without password protection. ![]() The Pi’s low power consumption makes it particularly suited to the role of always-on web server. Being a full Linux System, it can also be used as a server or as the basis for various projects. The Raspberry Pi is a small Linux computer designed to help children learn programming.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |