{"id":19,"date":"2012-12-30T18:30:00","date_gmt":"2012-12-30T18:30:00","guid":{"rendered":"\/blog\/blog\/Android_as_display.html"},"modified":"2012-12-30T18:30:00","modified_gmt":"2012-12-30T18:30:00","slug":"use-your-android-phone-as-a-display-for-raspberrypi","status":"publish","type":"post","link":"https:\/\/mohammedlakkadshaw.com\/blog\/use-your-android-phone-as-a-display-for-raspberrypi.html","title":{"rendered":"Use your Android Phone as a display for Raspberrypi"},"content":{"rendered":"<p>I read this tutorial on how to use your Kindle as a display for your Raspberrypi <a href=\"http:\/\/www.ponnuki.net\/2012\/09\/kindleberry-pi\/\">link<\/a>, and I thought why not use an Android phone as display and use usb ports on the Raspberry Pi for keyboard and mouse.<\/p>\n<p>Things you\u2019ll need:<\/p>\n<ol>\n<li>Android phone<\/li>\n<li>A Raspberry pi<\/li>\n<\/ol>\n<p>What we\u2019ll do:<\/p>\n<ol>\n<li>We will install VNC on Android, I am using pocketvnc<\/li>\n<li>Then, we will use USB tethering on Android and connect it to Raspberry pi using USB<\/li>\n<li>Then in the Raspberry pi we will install x11vnc <strong>(sudo apt-get install x11vnc)<\/strong> so that we can connect to an exisiting X-Window server and share it using vnc, so that we can use keyboard and mouse connected to raspberry pi.<\/li>\n<li>Change the ip address of raspbery pi <strong>sudo ifconfig usb0 192.168.42.10<\/strong> (Because android assing IP in USB tether mode in the range 192.168.42.x)<\/li>\n<li>Start the X-Server (if you have not started it alerady) using the  <strong><em>startx<\/em><\/strong> command.<\/li>\n<li>The share it using x11vnc, type the following command in the terminal: ***sudo x11vnc -display : 0<\/li>\n<li>Then connect to your raspberry pi to Android using the VNC software you have downloaded: port 5900 and IP 192.168.42.10<\/li>\n<\/ol>\n<p>I know it is not very detialed tutorial and a bit crude, I will soon post a detialed one with images and video.<br \/>\nAlso we could automate a lot stuff on startup using .bash_profile so that we don\u2019t have to type in these commands everytime.<br \/>\nI\u2019ll post all this in the next update.<\/p>\n<p>I would love to hear about you suggestions in the comments.<br \/>\nThanks<\/p>\n<p>(Please excuse the typos, I am very excited about this and I want to post it online ASAP, so I am not profreading it.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I read this tutorial on how to use your Kindle as a display for your Raspberrypi link, and I thought why not use an Android phone as display and use usb ports on the Raspberry Pi for keyboard and mouse. Things you\u2019ll need: Android phone A Raspberry pi What we\u2019ll do: We will install VNC [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}