{"id":1809,"date":"2015-05-22T22:33:24","date_gmt":"2015-05-22T14:33:24","guid":{"rendered":"http:\/\/iswedding.no-ip.com\/wordpress\/?p=1809"},"modified":"2015-05-22T22:33:24","modified_gmt":"2015-05-22T14:33:24","slug":"installation-guide-of-astrophoto-program-for-raspbian","status":"publish","type":"post","link":"https:\/\/sampson.synology.me\/?p=1809","title":{"rendered":"Installation guide of Astrophoto program for Raspbian (Raspberry Pi2)"},"content":{"rendered":"<h2><span style=\"text-decoration: underline;\"><span style=\"color: #000000;\"><strong>Download and install Raspbian first and then follow the guide for installation.<\/strong><\/span><\/span><\/h2>\n<p style=\"padding-left: 30px;\">Download Raspbian at<a href=\"https:\/\/www.raspberrypi.org\/downloads\/\" target=\"_blank\" rel=\"noopener\"> https:\/\/www.raspberrypi.org\/downloads\/<\/a><br \/>\nDownload\u00a0Win32DiskImager at <a href=\"http:\/\/sourceforge.net\/projects\/win32diskimager\/\" target=\"_blank\" rel=\"noopener\">http:\/\/sourceforge.net\/projects\/win32diskimager\/<\/a><\/p>\n<p>Write the image file into a 16G or above (class 10) micro SD card using the Windows tool &#8220;Win32DiskImager&#8221;<br \/>\nBoot up the Raspberry pi2 and open the terminal to install the programs by following the guide.<br \/>\nUpdate the apt packages<br \/>\n################################################<br \/>\nsudo apt-get update<br \/>\nInstall oacapture<br \/>\n################################################<br \/>\n#Goto http:\/\/www.openastroproject.org\/wp-content\/uploads\/2015\/03\/oacapture-0.4.0-raspbian.tar.bz2<br \/>\n#Download and extract oacapture-0.4.0-raspbian.tar.bz2<br \/>\ncd \/home\/pi<br \/>\nwget http:\/\/www.openastroproject.org\/wp-content\/uploads\/2015\/05\/oacapture-0.5.0-raspbian.tar.bz2<br \/>\nsudo tar -vxf oacapture-0.5.0-raspbian.tar.bz2<br \/>\nsudo apt-get install libqtcore4 libqtgui4 libv4l-0 libv4lconvert0 fxload libcfitsio3 libdc1394-22<br \/>\ncd oacapture-0.5.0-raspbian<br \/>\nsudo .\/install-binaries.sh<br \/>\n#Create a Launcher on the desktop that runs \/usr\/local\/bin\/oacapture<br \/>\nsudo ln -s \/usr\/local\/bin\/oacapture \/home\/pi\/Desktop\/Oacapture<br \/>\nCompile\/Install LinGuider<br \/>\n################################################<br \/>\n#Goto http:\/\/sourceforge.net\/projects\/linguider\/<br \/>\n#http:\/\/ncu.dl.sourceforge.net\/project\/linguider\/3.1.0\/lin_guider-3.1.0.tar.bz2<br \/>\n#Download and extract lin_guider-3.1.0.tar.bz2<br \/>\n#Goto http:\/\/sourceforge.net\/projects\/cccd\/files\/firmware\/<br \/>\n#http:\/\/jaist.dl.sourceforge.net\/project\/cccd\/firmware\/firmware-ccd_1.2_all.deb<br \/>\n#Download firmware-ccd_1.2_all.deb<br \/>\ncd \/home\/pi<br \/>\nwget http:\/\/ncu.dl.sourceforge.net\/project\/linguider\/3.1.0\/lin_guider-3.1.0.tar.bz2<br \/>\nwget http:\/\/jaist.dl.sourceforge.net\/project\/cccd\/firmware\/firmware-ccd_1.2_all.deb<br \/>\nsudo dpkg -i firmware-ccd_1.2_all.deb<br \/>\nsudo tar -xvf lin_guider-3.1.0.tar.bz2<br \/>\ncd lin_guider_pack\/io_ftdi\/<br \/>\nsudo apt-get install libftdi-dev g++<br \/>\n.\/build.sh<br \/>\ncd \/home\/pi\/lin_guider_pack\/lin_guider\/<br \/>\nsudo apt-get install fxload libusb-dev libqt4-dev libusb-1.0<br \/>\n.\/configure<br \/>\nmake<br \/>\nsudo cp .\/lin_guider \/usr\/local\/bin\/<br \/>\n#Create a Launcher on the desktop that runs \/usr\/local\/bin\/lin_guider<br \/>\nsudo ln -s \/usr\/local\/bin\/lin_guider \/home\/pi\/Desktop\/LinGuider<br \/>\nInstall OpenSkyImager<br \/>\n################################################<br \/>\n#Goto https:\/\/github.com\/OpenSkyProject\/OpenSkyImager\/archive\/master.zip<br \/>\n#Download and extract master.zip<br \/>\ncd \/home\/pi<br \/>\nwget https:\/\/github.com\/OpenSkyProject\/OpenSkyImager\/archive\/master.zip<br \/>\nunzip master.zip<br \/>\ncd OpenSkyImager-master<br \/>\n#install_OSI.bash will install all that is needed to use QHY camera series<br \/>\n#install_OSI_full.bash will add SBIG (unidrv) support<br \/>\n#sudo .\/install_OSI_full.bash<br \/>\nsudo .\/install_OSI.bash<br \/>\nInstall x11vnc<br \/>\n################################################<br \/>\nsudo apt-get install x11vnc<br \/>\nx11vnc -forever -display :0<br \/>\n#x11vnc auto start up on boot<br \/>\ncd \/home\/pi\/.config<br \/>\nsudo mkdir autostart<br \/>\ncd autostart<br \/>\nsudo nano x11vnc.desktop<br \/>\n### Paste the following text into the file #####<br \/>\n[Desktop Entry]<br \/>\nEncoding=UTF-8<br \/>\nType=Application<br \/>\nName=X11VNC<br \/>\nComment=<br \/>\nExec=x11vnc -forever -display :0<br \/>\nStartupNotify=false<br \/>\nTerminal=false<br \/>\nHidden=false<br \/>\n################################################<br \/>\n### Save the file and logout<br \/>\n### Reboot the pi<br \/>\n### Connecting to the Raspberry Pi with Real VNC Viewer on Andriod or Windows<br \/>\n#Setup AP mode using Edimax EW 7811un<br \/>\nwget https:\/\/github.com\/jenssegers\/RTL8188-hostapd\/archive\/v2.0.tar.gz<br \/>\ntar -zxvf v2.0.tar.gz<br \/>\ncd RTL8188-hostapd-2.0\/hostapd<br \/>\nsudo make<br \/>\nsudo make install<br \/>\nsudo service hostapd restart<br \/>\nsudo nano \/etc\/hostapd\/hostapd.conf<br \/>\n### Paste the following text into the file #####<br \/>\n# Basic configuration<br \/>\ninterface=wlan0<br \/>\nssid=RPi2<br \/>\nchannel=1<br \/>\n#bridge=br0<br \/>\n# WPA and WPA2 configuration<br \/>\nmacaddr_acl=0<br \/>\nauth_algs=1<br \/>\nignore_broadcast_ssid=0<br \/>\nwpa=2<br \/>\nwpa_key_mgmt=WPA-PSK<br \/>\nwpa_pairwise=CCMP<br \/>\nrsn_pairwise=CCMP<br \/>\nwpa_passphrase=1234512345123<br \/>\n# Hardware configuration<br \/>\ndriver=rtl871xdrv<br \/>\nieee80211n=1<br \/>\nhw_mode=g<br \/>\ndevice_name=RTL8192CU<br \/>\nmanufacturer=Realtek<br \/>\n################################################<br \/>\nsudo apt-get install dnsmasq<br \/>\nsudo nano \/etc\/dnsmasq.conf<br \/>\n############# ADD #############<br \/>\ninterface=wlan0<br \/>\nexpand-hosts<br \/>\ndomain=local<br \/>\ndhcp-range=10.0.0.10,10.0.0.20,24h<br \/>\ndhcp-option=3,10.0.0.1<br \/>\n###############################<br \/>\nsudo nano \/etc\/network\/interfaces<br \/>\n###############################<br \/>\nauto lo<br \/>\niface lo inet loopback<br \/>\niface eth0 inet dhcp<br \/>\n#allow-hotplug wlan0<br \/>\n#iface wlan0 inet manual<br \/>\n#wpa-roam \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\n#iface default inet dhcp<br \/>\niface wlan0 inet static<br \/>\naddress 10.0.0.1<br \/>\nnetwork 10.0.0.0<br \/>\nnetmask 255.255.255.0<br \/>\nbroadcast 10.0.0.255<br \/>\n###############################<br \/>\nsudo nano \/etc\/rc.local<br \/>\n###############################<br \/>\nifup wlan0<br \/>\nsudo service dnsmasq restart<br \/>\nsudo service hostapd restart<br \/>\necho 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward<br \/>\n#iptables -t nat -A POSTROUTING -j MASQUERADE<br \/>\n###############################<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download and install Raspbian first and then follow the guide for installation. Download Raspbian at https:\/\/www.raspberrypi.org\/downloads\/ Download\u00a0Win32DiskImager at http:\/\/sourceforge.net\/projects\/win32diskimager\/ Write the image file into a 16G or above (class 10) micro SD card using the Windows tool &#8220;Win32DiskImager&#8221; Boot up the Raspberry pi2 and open the terminal to install the programs by following the guide. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/sampson.synology.me\/?p=1809\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Installation guide of Astrophoto program for Raspbian (Raspberry Pi2)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,24,14,16],"tags":[31,81,82,97,98,110,138],"class_list":["post-1809","post","type-post","status-publish","format-standard","hentry","category-23","category-24","category-interest","category-it-info","tag-auto-guide","tag-linguider","tag-linux","tag-oacapture","tag-openskyimager","tag-raspberry-pi2","tag-x11vnc"],"_links":{"self":[{"href":"https:\/\/sampson.synology.me\/index.php?rest_route=\/wp\/v2\/posts\/1809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sampson.synology.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sampson.synology.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sampson.synology.me\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sampson.synology.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1809"}],"version-history":[{"count":0,"href":"https:\/\/sampson.synology.me\/index.php?rest_route=\/wp\/v2\/posts\/1809\/revisions"}],"wp:attachment":[{"href":"https:\/\/sampson.synology.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sampson.synology.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sampson.synology.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}