{"id":603,"date":"2018-07-14T18:40:11","date_gmt":"2018-07-14T10:40:11","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=603"},"modified":"2018-10-28T13:52:02","modified_gmt":"2018-10-28T05:52:02","slug":"programming-languages-that-you-can-use-to-build-applications-for-raspberry-pi-via-raspbian-stretch-lite","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/programming-languages-that-you-can-use-to-build-applications-for-raspberry-pi-via-raspbian-stretch-lite\/","title":{"rendered":"Programming languages that you can use to build applications  for Raspberry Pi, via Raspbian Stretch Lite"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/code-file-with-raspbian-logo.jpg\" alt=\"Code file with Raspbian logo\"\/><\/p>\n<p>A programming language give programmers an interface to create computer applications to serve different use cases. On the other hand, a <a href=\"https:\/\/www.amazon.com\/s\/ref=as_li_ss_tl?url=search-alias=aps&field-keywords=raspberry+pi&linkCode=ll2&tag=clivsperswebs-20&linkId=18e6e0c29f88750a8dfdb63330c8a9eb\" rel=\"noopener\" target=\"_blank\">Raspberry Pi<\/a> is one of the <a href=\"http:\/\/things-that-you-should-consider-getting-if-you-are-a-computer-programmer\" rel=\"noopener\" target=\"_blank\">things that a programmer should consider getting<\/a>. <\/p>\n<p>Raspbian Stretch Lite is the official operating system for programmers to run server applications on a Raspberry Pi. You can use Raspbian Stretch Lite for applications that do not require a graphical user interface.<\/p>\n<p>So what programming languages can you use for building applications for Raspbian Stretch Lite? <\/p>\n<p>This post discusses some programming languages that you can use for building applications for Raspbian Stretch Lite.<\/p>\n<h2>Python on Raspbian Stretch Lite<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/python-logo.png\" alt=\"Python Logo\"\/><\/p>\n<p><a href=\"https:\/\/www.techcoil.com\/blog\/tag\/python\" rel=\"noopener\" target=\"_blank\">Python<\/a> is one of the most versatile programming languages that can help us build different kinds of applications. <\/p>\n<p>For example, you can use Python to:<\/p>\n<ul>\n<li>interact with the GPIO pins on your Raspberry Pi for <a href=\"https:\/\/www.techcoil.com\/glossary\/internet-of-things-iot\/\" rel=\"noopener\" target=\"_blank\">IOT<\/a> projects that interface with your home appliances.<\/li>\n<li>build a web interface to communicate with your Raspberry Pi<\/li>\n<li>include machine learning capabilities into your application.<\/li>\n<\/ul>\n<p>Both Python 2 and Python 3 are included on Raspbian Stretch Lite. <\/p>\n<p>Since Python 2 is reaching end of life soon, I recommend using Python 3 on Raspbian Stretch Lite. <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-raspbian-stretch-lite-on-raspberry-pi-3-to-run-python-3-applications\/\" rel=\"noopener\" target=\"_blank\">This is how to setup Raspbian Stretch Lite on Raspberry Pi 3 to run Python 3 applications<\/a>.<\/p>\n<h3>Some articles on setting up Python 3 applications on Raspbian Stretch Lite:<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-jupyter-notebook-on-raspberry-pi-3-with-raspbian-stretch-lite-supervisor-and-virtualenv-to-run-python-3-codes\/\" rel=\"noopener\" target=\"_blank\">How to setup Jupyter Notebook on Raspberry Pi 3 with Raspbian Stretch Lite, Supervisor and Virtualenv to run Python 3 codes<\/a><\/li>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-taiga-project-management-platform-on-raspberry-pi-3-with-raspbian-stretch-lite\/\" rel=\"noopener\" target=\"_blank\">https:\/\/www.techcoil.com\/blog\/how-to-setup-taiga-project-management-platform-on-raspberry-pi-3-with-raspbian-stretch-lite\/<\/a>.<\/li>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/how-to-deploy-python-3-flask-application-on-raspberry-pi-3-with-raspbian-stretch-lite-nginx-supervisor-virtualenv-and-gunicorn\/\" rel=\"noopener\" target=\"_blank\">How to deploy Python 3 Flask application on Raspberry Pi 3 with Raspbian Stretch Lite, Nginx, Supervisor, Virtualenv and Gunicorn<\/a><\/li>\n<\/ul>\n<h2>PHP on Raspbian Stretch Lite<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/php-logo.png\" alt=\"PHP Logo\"\/><\/p>\n<p>While PHP can be used to <a href=\"https:\/\/www.techcoil.com\/blog\/designing-command-line-applications-for-scheduled-execution\/\" rel=\"noopener\" target=\"_blank\">build command-line applications<\/a>, it is more widely used for web applications. <\/p>\n<p>Indeed, it is a very popular server-side scripting language designed for web development. <\/p>\n<p>Therefore, it powers many of the popular websites that had became part and parcel of our lives.<\/p>\n<p>In case you had figured out <a href=\"https:\/\/www.techcoil.com\/blog\/why-should-programmers-blog\/\" rel=\"noopener\" target=\"_blank\">why programmers should blog<\/a>, you can consider putting up <a href=\"https:\/\/www.techcoil.com\/blog\/setting-up-wordpress-on-raspberry-pi-3-with-raspbian-stretch-lite-nginx-mariadb-and-php-7-as-the-lemp-stack\/\" rel=\"noopener\" target=\"_blank\">WordPress on Raspbian Stretch Lite<\/a>. After that, you can write some PHP codes to <a href=\"https:\/\/www.techcoil.com\/blog\/how-to-create-a-custom-page-template-in-wordpress\/\" rel=\"noopener\" target=\"_blank\">create customized WordPress page templates<\/a> for your blog.<\/p>\n<p>When deploying PHP web applications, I personally prefer to deploy an instance of <a href=\"https:\/\/www.techcoil.com\/blog\/tag\/nginx\" rel=\"noopener\" target=\"_blank\">Nginx<\/a> to serve as a <a href=\"https:\/\/www.techcoil.com\/blog\/the-reverse-proxy-server\/\" rel=\"noopener\" target=\"_blank\">reverse proxy server<\/a>. As a result of doing so, I can optimize the delivery of static content from my server.<\/p>\n<h3>How to install PHP 7 on Raspbian Stretch Lite<\/h3>\n<p>To install PHP on Raspbian Stretch Lite, you can run the following commands in a terminal session with Raspbian Stretch Lite:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get update\r\nsudo apt-get install php7.0 php7.0-fpm -y\r\n<\/pre>\n<p>After the commands complete, your Raspbian Stretch Lite will have the PHP 7 command-line binary and the <a href=\"http:\/\/php.net\/manual\/en\/install.fpm.php\" rel=\"noopener\" target=\"_blank\">FastCGI Process Manager<\/a>.<\/p>\n<h3>Some articles on setting up PHP applications on Raspbian Stretch Lite:<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/how-to-host-your-own-file-sharing-website-on-raspberry-pi-3-with-raspbian-stretch-lite-nginx-projectsend-mariadb-and-php\/\" rel=\"noopener\" target=\"_blank\">How to host your own file sharing website on Raspberry Pi 3 with Raspbian Stretch Lite, Nginx, ProjectSend, MariaDB and PHP<\/a><\/li>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-your-own-wiki-site-on-a-raspberry-pi-3-with-dokuwiki-raspbian-stretch-lite-nginx-and-php\/\" rel=\"noopener\" target=\"_blank\">How to setup your own Wiki site on a Raspberry Pi 3 with Dokuwiki, Raspbian Stretch Lite, nginx and PHP<\/a><\/li>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-codiad-web-ide-on-your-raspberry-pi-3-with-raspbian-stretch-lite-nginx-and-php\/\" rel=\"noopener\" target=\"_blank\">How to setup Codiad Web IDE on your Raspberry Pi 3 with Raspbian Stretch Lite, Nginx and PHP<\/a><\/li>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/how-to-setup-phpmyadmin-on-a-raspbian-stretch-lite-nginx-mariadb-mysql-and-php-7-lemp-stack\/\" rel=\"noopener\" target=\"_blank\">How to setup phpMyAdmin on a Raspbian Stretch Lite, Nginx, MariaDB \/ MySQL and PHP 7 LEMP stack<\/a><\/li>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/setting-up-wordpress-on-raspberry-pi-zero-w-with-raspbian-stretch-lite-nginx-mariadb-and-php-as-the-lemp-stack\/\" rel=\"noopener\" target=\"_blank\">Setting up WordPress on Raspberry Pi Zero W with Raspbian Stretch Lite, nginx, MariaDB and PHP as the LEMP stack<\/a><\/li>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/setting-up-wordpress-on-raspberry-pi-3-with-raspbian-stretch-lite-nginx-mariadb-and-php-7-as-the-lemp-stack\/\" rel=\"noopener\" target=\"_blank\">Setting up WordPress on Raspberry Pi 3 with Raspbian Stretch Lite, nginx, MariaDB and PHP 7 as the LEMP stack<\/a><\/li>\n<\/ul>\n<h2>Java on Raspbian Stretch Lite<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/java-logo.jpg\" alt=\"Java logo\"\/><\/p>\n<p>The <a href=\"https:\/\/www.techcoil.com\/blog\/tag\/java\/\" rel=\"noopener\" target=\"_blank\">Java<\/a> programming language is a popular object-oriented programming language that is used for creating many server and mobile applications in the world.<\/p>\n<p>If you are a programmer looking to build Java applications for Raspberry Pi, Java is an option on Raspbian Stretch Lite.  <\/p>\n<h3>How to install Java on Raspbian Stretch Lite<\/h3>\n<p>As I have noted in <a href=\"https:\/\/www.techcoil.com\/blog\/how-i-make-my-java-programs-run-faster-on-my-raspberry-pi-3\/\" rel=\"noopener\" target=\"_blank\">how I make my Java programs run faster on my Raspberry Pi 3<\/a>, Oracle Java perform better on Raspberry Pi. <\/p>\n<p>Therefore, we will want to install Oracle Java. To do so, run the following commands in your terminal session with Raspbian Stretch Lite:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo apt-get update\r\nsudo apt-get install oracle-java8-jdk -y\r\n<\/pre>\n<p>After the commands complete, you will be able to run Java applications on your Raspbian Stretch Lite.<\/p>\n<h3>Article on setting up Java application on Raspbian Stretch Lite:<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.techcoil.com\/blog\/how-i-setup-jenkins-on-my-raspberry-pi-3-with-raspbian-stretch-lite\/\" rel=\"noopener\" target=\"_blank\">How I setup Jenkins on my Raspberry Pi 3 with Raspbian Stretch Lite<\/a><\/li>\n<\/ul>\n<h2>Node.js on Raspbian Stretch Lite<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/nodejs-new-pantone-black.png\" alt=\"Nodejs new pantone black logo\" \/><\/p>\n<p>The website of <a href=\"https:\/\/nodejs.org\/en\/\" rel=\"noopener\" target=\"_blank\">Node.js<\/a> describes it as a JavaScript runtime built on <a href=\"https:\/\/developers.google.com\/v8\/\" rel=\"noopener\" target=\"_blank\">Chrome's V8 JavaScript engine<\/a>. What this means is that you can write <a href=\"https:\/\/www.techcoil.com\/blog\/tag\/javascript\/\" rel=\"noopener\" target=\"_blank\">JavaScript<\/a> codes to build server applications. <\/p>\n<p>Node.js is ideal for building real-time web applications such as a web chat program. <\/p>\n<p>In case you want to build a Node.js application for your Raspberry Pi, you can install Node.js on your Raspbian Stretch Lite. <\/p>\n<h3>How to install Node.js on Raspbian Stretch Lite<\/h3>\n<p>Suppose that you want to install Node.js 6.x on your Raspbian Stretch Lite, you will run the following commands in a terminal session with Raspbian Stretch Lite:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl -sL https:\/\/deb.nodesource.com\/setup_6.x | sudo -E bash -\r\nsudo apt-get install -y nodejs\r\n<\/pre>\n<p>After the commands complete, you should be able to run Node.js application on your Raspbian Stretch Lite.<\/p>\n<p>You can find more Node.js setup scripts at <a href=\"https:\/\/github.com\/nodesource\/distributions\/tree\/master\/deb\" rel=\"noopener\" target=\"_blank\">Node.js Github repository<\/a>.<\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-9J\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-9J&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-9J&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F603&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>A programming language give programmers an interface to create computer applications to serve different use cases. On the other hand, a <a href=\"https:\/\/www.amazon.com\/s\/ref=as_li_ss_tl?url=search-alias=aps&#038;field-keywords=raspberry+pi&#038;linkCode=ll2&#038;tag=clivsperswebs-20&#038;linkId=18e6e0c29f88750a8dfdb63330c8a9eb\" rel=\"noopener\" target=\"_blank\">Raspberry Pi<\/a> is one of the <a href=\"http:\/\/things-that-you-should-consider-getting-if-you-are-a-computer-programmer\" rel=\"noopener\" target=\"_blank\">things that a programmer should consider getting<\/a>. <\/p>\n<p>Raspbian Stretch Lite is the official operating system for programmers to run server applications on a Raspberry Pi. You can use Raspbian Stretch Lite for applications that do not require a graphical user interface.<\/p>\n<p>So what programming languages can you use for building applications for Raspbian Stretch Lite? <\/p>\n<p>This post discusses some programming languages that you can use for building applications for Raspbian Stretch Lite.<\/p>\n","protected":false},"author":1,"featured_media":1047,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[375,4],"tags":[6,196,13,226,233,240,412,445],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/code-file-with-raspbian-logo.jpg","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-9J","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/603"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=603"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/603\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/1047"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}