O'Reilly logo

Raspberry Pi For Dummies by Mike Cook, Sean McManus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Publishing Your Web Page on the Internet

Congratulations! You’ve built your first web page, and you can use it as a template to build the rest of your site. You can create the other HTML files you need, using your index.html file as a starting point so you can reuse the banner and navigation bar, and any other content that you want to put on every page.

As we said at the start of this chapter, if you want people to view your website over the Internet, it needs to be hosted on a server. Most people rent web hosting services from companies like Go Daddy (www.godaddy.com ), 1 and 1 (www.1and1.com ), or Fasthosts (www.fasthosts.co.uk ). They will sell you your own domain name (such as yourname.com or yourname.co.uk), which people use to visit your site and link to it. You need to re-register the domain name every few years.

After you have set up your hosting account, you need to copy your website’s files from your Raspberry Pi to the server. You can use the FileZilla program to do this, which you can install from the command line (see Chapter 5) by using

sudo apt-get install filezilla

Figure 8-9 shows FileZilla in action. Where it says host at the top of the screen, enter your host name. In the next boxes, enter your username and password. Your hosting company can give you all of these.

The panels on the left show your Raspberry Pi, and the panels on the right show your server. You use the boxes in the top half of the screen to find the folders where your website is stored on your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required