Showing posts with label Remote. Show all posts
Showing posts with label Remote. Show all posts

Friday, May 25, 2018

Remote Desktop at Raspberry PI


so if you who wanted remote desktop at Raspberry Pi. there is possible to do that which be will describe in this article. remote desktop allowed us to remote by GUI Raspberry Pi like picture at above. Remote desktop on Raspberry Pi used for you who know how look about GUI Raspbian at Raspberry Pi if you dont have monitor. so let's do that.

the first we do is access terminal Raspberry Pi with remote as ssh. if you dont know about remote ssh, you can read my article before at my link setup wifi and ssh and also raspberry pi have access internet.

Following steps that friends need to follow to configure Raspberry PI via terminal:

1. Install VNC Server on Raspberry Pi

to install VNC server we just need to type the following command in the terminal

sudo apt-get update
sudo apt-get install tightvncserver

sudo apt-get update is used to update the repository list. while on the next line is a command to install VNC Server. if any question do you want Continue Y / n? answer with Y and enter

2. Run VNC Server on Raspberry PI

make sure the install process runs perfectly without any error. after VNC Server is installed it needs to run. to run it can by typing the following command in the terminal.

vncserver

when first run, then we are prompted to create a password to enter Raspberry PI via Remote Desktop VNC from another computer.

You will require a password to access your desktops.

Password:

enter a password that you can easily remember, then press enter

then input the password again to verify.

then there will be a question whether the need for a password for view-only, you  may fill Y or n
when finished then there will be notification as follows:


New 'X' desktop is raspberrypi: 1

 
Creating default startup script /home/pi/.vnc/xstartup

Starting applications specified in /home/pi/.vnc/xstartup

Log file is /home/pi/.vnc/raspberrypi:1.log

this means that vncserver is already running on port 1.

3. install VNC Client on Computer / Laptop

to remote we need to use VNC Client application one of them you can use application from TightVNC at the following address:


there are two options for both 64-bit and 32-bit versions. after the download and then install.

when the prosess install in the Choose Type select Type select with Custom then for TightServer in select Entire Feature will be unavailable. because all we need is an application viewer.

after successfully install. friends can try it directly, open the TightVNC Viewer app on the remote host field input Raspberry IP PI follow with ": 1" example eg Raspberry IP PI 192.168.1.13 then when the remote host 192.168.1.13:1

then click Connect then will appear field for the password, you can input password that you make when first configure VNC Server in Raspberry PI. then click OK

when successful will pop up windows for Raspbian Raspbian Raspberry PI display.

so much sharing from me hopefully useful :)

Monday, May 21, 2018

How to Setup WiFi and SSH at Raspberry PI without monitor



What do you do if you want to access raspberry pi but do not have monitor? one of the ways that is can remote ssh. what is ssh ?

remote ssh can be briefly explained that a remote computer from another computer via terminal. at Raspberry Pi to be do remote ssh, computer at another side have to one network with Raspberry Pi. so if you want to connect Raspberry Pi to WiFi network, it can be done with configure by file in situation you don't have monitor.

to access partition Raspberry Pi at Linux, it can be easy, because Raspberry Pi partition easily can be read. at windows to read Raspberry Pi partition you have to install third party software, one of them ie paragon software. you can get on below link :

https://www.paragon-software.com/home/linuxfs-windows/

at Raspberry Pi  by default any two partition ie : boot and root, boot have file system FAT so in both Windows and Linux environment it can be access. root partition have file system EXT ie file system Linux based, this partition which only access at Linux environment so at Windows environment you have install third party to access file system ext at Windows. i use paragon software and easily access partition Linux at Windows environment.

if you done can access partition both root and boot so the below step by step configure Raspberry Pi to be remote by ssh.

1. connect Raspberry Pi to WiFi network


to do this. quite easily friends just go to the root partition and visit the file in /etc/wpa_supplicant/wpa_supplicant.conf open it with notepad and add at the bottom of the following syntax :

network={
    ssid="testing"
    psk="testingPassword"
}

ssid is filled with WiFi name and psk is filled with WiFi password. if the WiFi Transmitter there is no password then simply input the writing as follows:

network={
   ssid="testing"
   key_mgmt=NONE
}


if you have added the above text according to their respective configuration then save.


finished setting for WiFi configuration then go to second step.


2. Enable SSH at Raspberry Pi

for security reasons by default Raspbian will disable or disable the ssh feature. so we need to enable ssh by file. the steps are quite easy. you just need to create a blank file called "ssh" (without quotation marks) without esktension and is a blank file put on the outer partition boot. just need it.

3. Operate SSH 

when the two steps have been done, then the SD Card is ready to put into Raspberry PI and power - on.

when Raspberry PI is On. wait a while until Raspberry PI connect WiFi or tethering network and do ssh with software your favorite, one of them can with putty. to use fill host name with ip address Raspberry Pi registered on network. to know that you can use Angry IP Scanner software to scan WiFi network. Raspberry hostname by default is raspberrypi.local, port default is 22. if done you can click open button on putty.

you will meet the console which ask login username, by default it is pi and the password is raspberry.  after that you will enter to terminal which terminal at Raspberry Pi open by remotely.

that is my articles. hopefully useful.


Sunday, April 15, 2018

Remote Desktop pada Raspberry PI



Bagi teman-teman yang Raspberry PI-nya ingin bisa diremote desktop layaknya remote desktop pada microsoft windows, tutorial ini adalah jawabannya. iya remote VNC mengijinkan kita untuk menremote secara tampilan GUI seperti Remote Desktop pada windows.

namun bagaimana kita mengkonfigurasinya agar Raspberry PI yang kita punya dapat di remote desktop. untuk mengkonfigurasinya kita perlu untuk masuk ke terminal. hal ini bisa kita lakukan secara remote ssh (lihat artikel : setup ssh di sini) dan Raspberry PI tersebut mendapat akses internet.

berikut langkah-langkah yang perlu teman-teman ikuti untuk mengkonfigurasi Raspberry PI melalui terminal:

1. Install VNC Server pada Raspberry PI

untuk menginstall VNC server kita hanya perlu mengetikan perintah dibawah ini pada terminal 

sudo apt-get update
sudo apt-get install tightvncserver

sudo apt-get update digunakan untuk mengupdate list repository. sedangkan pada baris selanjutnya merupakan perintah untuk menginstall VNC Server. apabila ada pertanyaan do you want Continue Y/n? jawab dengan Y dan enter

2. menjalankan VNC Server pada Raspberry PI

pastikan proses install berjalan dengan sempurna tanpa ada error. setelah VNC Server terinstall maka perlu dijalankan.

untuk menjalankannya dapat dengan mengetik perintah berikut di terminal

vncserver

ketika pertama kali dijalankan, maka kita diminta untuk membuat password untuk masuk ke Raspberry PI via Remote Desktop VNC dari komputer lain. 

You will require a password to access your desktops.

Password:

masukan password yang teman-teman mudah ingat, kemudian tekan enter

kemudian masukan password sekali lagi untuk verify.

kemudian akan ada pertanyaan apakah perlu password untuk view-only, teman-teman boleh isi Y atau n 
ketika selesai maka akan ada notifikasi seperti berikut :

New 'X' desktop is raspberrypi:1
Creating default startup script /home/pi/.vnc/xstartup
Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:1.log

ini artinya vncserver sudah jalan pada port 1.

3. install VNC Client di Komputer/Laptop

untuk menremotenya kita perlu menggunakan aplikasi VNC Client salah satunya bisa menggaunakan applikasi dari TightVNC di alamat berikut :


ada dua pilihan untuk versi 64-bit maupun 32-bit. setelah di download kemudian teman-teman install.

ketika prosess install pada bagian Choose Setup Type pilih dengan Custom kemudian untuk TightServer di pilih Entire Feature will be unavailable. karena yang kita perlukan hanya aplikasi viewer. 

setelah berhasil install. teman-teman bisa langsung mencobanya,  buka apliksi TightVNC Viewer pada kolom remote host masukan IP Raspberry PI ikuti dengan ":1" contoh misal IP Raspberry PI 192.168.1.13 maka ketika di remote host 192.168.1.13:1

setelah itu klik Connect kemudian akan muncul isian untuk password, teman-teman masukan password yang teman-teman buat saat pertama kali konfigurasi VNC Server di Raspberry PI. kemudian klik OK

ketika berhasil akan muncul windows untuk tampilan GUI Raspbian Raspberry PI.

sekian sharing dari saya semoga bermanfaat :)

Saturday, April 14, 2018

Setup WiFi dan SSH Raspberry PI tanpa monitor

Mungkin ada yang kesulitan ketika menginstall baru Raspbian pada Raspberry PI, namun  kesulitan meremote ssh karena tidak ada monitor?

iya itu baru saja terjadi pada saya beberapa saat yang lalu sebelum saya menulis artikel ini. versi Raspbian yang saya gunakan adalah Raspbian terbaru saat ini yaitu Raspbian STRETCH.

karena tidak ada monitor, maka yang perlu dilakukan adalah mengkonfigure Raspbery PI secara menuliskan atau mengedit file di dalam memory SD Card Raspberry PI. jadi perlu memasukan SD Card Raspberry PI teman-teman ke dalam laptop/komputer dan bisa dibacanya.

ada dua partisi didalam SD Card yaitu boot berekstensi FAT32 dan satu lagi root berekstensi jenis linux. partisi  root karena berjenis linux maka tidak bisa diakses ketika memasukannya kedalam OS Microsoft Windows. dan itu terjadi pada saya. untuk mengatasinya kita perlu software tambahan pada Microsoft Windows agar bisa bisa mengakses partisi tersebut. silahkan teman-teman mendownload software pada link dibawah ini untuk melakukan hal tersebut.


ketika partisi boot dan root sudah bisa kita akses. kita perlu memainkannya saja sedikit :)

secara umum ada 2(dua) langkah yang perlu kita lakukan agar bisa menremote ssh ke Raspberry PI tanpa monitor dimana kondisinya Raspberry PI  tersebut baru diinstall ulang dan tidak ada monitor.

1. meng-connect-kan Raspberry PI ke Jaringan WiFi/Thetering Handphone

untuk melakukan hal ini. cukup mudah teman-teman hanya pergi ke partisi root dan mengunjungi file pada /etc/wpa_supplicant/wpa_supplicant.conf  buka dengan notepad dan tambahkan di paling bawah tulisan berikut :

network={
    ssid="testing"
    psk="testingPassword"
}

ssid diisi dengan nama WiFi dan psk diisi dengan password WiFi. jika pada WiFi Pemancar tidak ada password maka cukup masukan tulisan sebagai berikut :

network={
   ssid="testing"
   key_mgmt=NONE
}

jika sudah ditambahkan tulisan diatas sesuai dengan konfigurasinya masing-masing maka simpan atau save.

selesai pengaturan untuk WiFi lanjut kelangkah kedua.

2. meng-enable-kan SSH pada Raspbery PI

karena alasan security secara default Raspbian akan mendisablekan atau menonaktifkan feature ssh. sehingga kita perlu mengaktifkan ssh secara file. langkahnya cukup mudah. teman-teman hanya perlu membuat file kosong bernamakan "ssh" (tanpa tanda petik)  tanpa esktension dan merupakan file kosong taruh pada partision boot paling luar. hanya perlu itu saja. :)

ketika dua langkah tersebut sudah dilakukan, maka SD Card sudah siap untuk dimasukan kedalam Raspberry PI dan di - power on.

ketika Raspberry PI sudah On. tunggu beberapa saat sampai Raspberry PI terhubung kejaringan WiFi atau thetering dan lakukan ssh dengan software kesayangan teman-teman salah satunya bisa dengan putty

untuk mengetahui IP Address pada Raspberry PI cukup gunakan software Angry IP Scanner untuk mengscan jaringan WiFi. hostname Raspberry secara default adalah raspberrypi.local

sekian artikel saya. semoga bisa bermanfaat :)