Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
project:single_boards [2016/03/18 21:29]
over23 [Pulseaudio]
project:single_boards [2019/07/13 18:17]
over23 [MacOSX install of Banana PI]
Line 2: Line 2:
 |**Interested:​** | peterbay, [[user:​overdrive|Overdrive]]| |**Interested:​** | peterbay, [[user:​overdrive|Overdrive]]|
 |**Related:​**| | |**Related:​**| |
 +|**Reference:​**| https://​en.wikipedia.org/​wiki/​Banana_Pi |
 | **License:​** | [[https://​creativecommons.org/​licenses/​by-sa/​3.0/​|Uveďte původ-Zachovejte licenci; CC BY-SA]] ​ | | **License:​** | [[https://​creativecommons.org/​licenses/​by-sa/​3.0/​|Uveďte původ-Zachovejte licenci; CC BY-SA]] ​ |
 {{ project:​picka_small.jpg?​300}} {{ project:​picka_small.jpg?​300}}
Line 27: Line 28:
  
 SemioTex:​Desktop pavouk$ sudo dd bs=1m if=~/​Desktop/​Raspbian_For_BPI_M1_V4.0.img of=/​dev/​disk3 ​ SemioTex:​Desktop pavouk$ sudo dd bs=1m if=~/​Desktop/​Raspbian_For_BPI_M1_V4.0.img of=/​dev/​disk3 ​
-</​code>​ 
- 
   * u can check progress with CTRL+T [SIGINFO]   * u can check progress with CTRL+T [SIGINFO]
 ==== Configure Mac to be able to directly conenct to Picka over ETH through trunderbolt ==== ==== Configure Mac to be able to directly conenct to Picka over ETH through trunderbolt ====
Line 59: Line 58:
 <​code>​ <​code>​
 SemioTex:​Picka pavouk$ nmap 192.168.2.* SemioTex:​Picka pavouk$ nmap 192.168.2.*
 +### more extensive nmap: nmap -p0- -v -A -T4 192.168.1.*
 Starting Nmap 6.47 ( http://​nmap.org ) at 2016-03-13 14:47 CET Starting Nmap 6.47 ( http://​nmap.org ) at 2016-03-13 14:47 CET
 Nmap scan report for 192.168.2.2 Nmap scan report for 192.168.2.2
Line 68: Line 67:
 </​code>​ </​code>​
  
 +===== MacOSX Backup & restore Banana PI SD card =====
 +  * https://​smittytone.wordpress.com/​2013/​09/​06/​back-up-a-raspberry-pi-sd-card-using-a-mac/​
 +
 +====== Backup ====== ​
 +
 +<​code>​
 +# to list partitions
 +
 +diskutil list 
 +
 +#/dev/disk4 (internal, physical):
 +#   #: ​                      TYPE NAME                    SIZE       ​IDENTIFIER
 +#   ​0: ​    ​FDisk_partition_scheme ​                       *7.9 GB     disk4
 +#   ​1: ​            ​Windows_FAT_32 boot                    58.7 MB    disk4s1
 +#   ​2: ​                     Linux                         7.9 GB     ​disk4s2
 +   
 +#in our case it was /dev/disk4
 +#CTRL+T as SIGINFO could be used to check progress
 +
 +sudo dd if=/​dev/​disk4 bs=1m | gzip > ~/​1_Labka/​banana_picka_25.5.2016.img.gz
 +</​code>​
 +====== example how to copy backup by scp ======
 +======= copy to remote host ======= ​
 +
 +<​code>​scp ~/​1_Labka/​banana_picka_25.5.2016.img.gz user@remotehost:/​home/​share/​Picky_Backup/</​code>​
 +
 +======= copy to localhost ======= ​
 +<​code>​scp your_username@remotehost:/​home/​share/​Picky_Backup/​banana_picka_25.5.2016.img.gz /​some/​local/​directory</​code>​
 +
 +
 +
 +====== Restore ======
 +   * **remember, SD card should be unmounted**
 +<​code>​
 +# first check where SD card is visible, but not mounted by
 +diskutil list 
 +# let it be again /dev/disk4
 +gzip -dc ~/​1_Labka/​banana_picka_25.5.2016.img.gz | sudo dd of=/​dev/​disk4 bs=1m
 +</​code>​
 +
 +
 +
 +===== remove password to ssh =====
 https://​wiki.archlinux.org/​index.php/​Banana_Pi#​Network https://​wiki.archlinux.org/​index.php/​Banana_Pi#​Network
   * ssh root@IP   * ssh root@IP
   * password is bananapi   * password is bananapi
  
-===== remove password to ssh =====+
    mkdir ~/.ssh    mkdir ~/.ssh
    chmod 700 ~/.ssh    chmod 700 ~/.ssh
    touch ~/​.ssh/​authorized_keys    touch ~/​.ssh/​authorized_keys
    chmod 600 ~/​.ssh/​authorized_keys    chmod 600 ~/​.ssh/​authorized_keys
 +   
 +==== example of generating key to non standard position ====
 +
 +<​code> ​
 +over@darkstar>​mkdir ~/ssh_tmp
 +ssh-keygen -t rsa -C "​tpetru@gmail.com"​ -f ~/​ssh_tmp/​id_rsa_na_jine_misto
 +Generating public/​private rsa key pair.
 +Enter passphrase (empty for no passphrase):​
 +Enter same passphrase again:
 +Your identification has been saved in /​home/​over/​ssh_tmp/​id_rsa_na_jine_misto
 +Your public key has been saved in /​home/​over/​ssh_tmp/​id_rsa_na_jine_misto.pub.
 +The key fingerprint is:
 +SHA256:​hriECJShFg+8AKVHVkoqYtBknvhf/​sGW+KQr4wqtEUE tpetru@gmail.com
 +The key's randomart image is:
 ++---[RSA 2048]----+
 +|=EX.. ​           |
 +|*%=o             |
 +|@o*.             |
 +|** . . .         |
 +|o o o o S        |
 +| o o + + .       |
 +|o . o o *        |
 +| +  o  * .       |
 +|. .o.oo.o ​       |
 ++----[SHA256]-----+
 +</​code>​
 +   
 +
    nano ~/​.ssh/​authorized_keys <--- copy there public key generated somewhere    nano ~/​.ssh/​authorized_keys <--- copy there public key generated somewhere
  
Line 96: Line 166:
 when able to connect by key, everything is fine when able to connect by key, everything is fine
  
 +==== create ~/​.ssh/​config for labka ====
 +  touch ~/​.ssh/​config ​  
 +  chmod 110 ~/​.ssh/​config
 +
 +* add there this block of code; user needs to be correctly set up:
 +<​code>​
 +Host labka
 +    user [SOME USER PICO]
 +    hostname 193.84.207.21
 +    ForwardX11 yes
 +</​code>​
 +
 +* next time, you can connect to server by
 +   ssh labka
 +instead of 
 +   ssh [some_user]@193.84.207.21
 +
 +==== add user to wheel group [grant him sudo] ====
 +   ​usermod -aG wheel username
  
 ===== Change colour of shell ===== ===== Change colour of shell =====
Line 111: Line 200:
 ===== Timezone ===== ===== Timezone =====
    ​tzselect  ​    ​tzselect  ​
 +   
 +===== Install basic tools =====
 +aptitude install lsof
 +   
 ===== Run Banana PI from SATA ===== ===== Run Banana PI from SATA =====
    * http://​www.htpcguides.com/​move-linux-banana-pi-sata-setup/ ​    * http://​www.htpcguides.com/​move-linux-banana-pi-sata-setup/ ​
Line 231: Line 324:
   ​   ​
    ​amixer -Dpulse    ​amixer -Dpulse
-===== GnuRadio on BannanaPI ===== 
-  * http://​gnuradio.4.n7.nabble.com/​Compiling-GNURadio-on-BananaPI-td51866.html 
  
-edit like this 
-   deb http://​mirrordirector.raspbian.org/​raspbian/​ jessie ​ main contrib non-free rpi 
-patch whole system 
-   ​apt-get update 
-   ​apt-get upgrade 
-apt gnuRadio 
-   ​apt-get install gnuradio 
-==== RTL-SDR ====    
-   * http://​kmkeen.com/​rtl-demod-guide/​ 
-   * http://​www.kerrywong.com/​2014/​11/​16/​testing-an-rtl-sdr-spectrum-analyzer/​ 
-   * http://​www.rs-online.com/​designspark/​electronics/​eng/​blog/​taking-the-raspberry-pi-2-for-a-test-drive-with-gnu-radio-2 
-   * http://​www.delta-team.cz/​co-se-pise/​ham/​frekvence-ruznych-sluzeb.htm 
-   * http://​forum.autoforum.cz/​viewtopic.php?​f=14&​t=1063 <-- zajimave frekvence 
-   * https://​www.youtube.com/​watch?​v=qPWD4imXXsc - RTL-SDR: GQRX and DSD decoding in GNU/Linux command line.  
-   * http://​marcinkowski.ca/​blog/​2014/​02/​19/​decoding-dmr-radio-using-rtlsdr-gqrx-and-pulseaudio --- howto pro predchozi radek 
-   * http://​notes.secretsauce.net/​notes/​2014/​07/​25_decoding-p25-with-rtl-sdr-on-debian.html 
-<​code>​ 
-   ​aptitude install rtl-sdr rtl-sdr gr-osmosdr gqrx-sdr cmake libsndfile1-dev pavucontrol libitpp-dev 
-XXXX:   ​aptitude install python3-pip 
-</​code>​ 
  • project/single_boards.txt
  • Last modified: 2019/07/17 04:54
  • by over23