Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,667
» Latest member: yipog39807
» Forum threads: 16,243
» Forum posts: 117,143

Full Statistics

Latest Threads
I think you can try compi...
Forum: General Discussion on Pinebook Pro
Last Post: wangyukunshan
Today, 02:25 AM
» Replies: 0
» Views: 49
Second screen mirroring
Forum: General
Last Post: OpalTromp
Yesterday, 09:53 PM
» Replies: 2
» Views: 1,711
kivy app keeping focus wh...
Forum: Mobian on PinePhone
Last Post: Kevin Kofler
Yesterday, 08:37 PM
» Replies: 1
» Views: 52
Optimizing Battery Life o...
Forum: General Discussion on PinePhone
Last Post: Kevin Kofler
Yesterday, 08:31 PM
» Replies: 1
» Views: 89
Wake up Call
Forum: General Discussion on PinePhone
Last Post: biketool
Yesterday, 02:35 PM
» Replies: 4
» Views: 232
How to add an homemade ap...
Forum: Mobian on PinePhone
Last Post: JChdeL
Yesterday, 04:13 AM
» Replies: 3
» Views: 291
Has anyone installed Tris...
Forum: General
Last Post: RandB
11-03-2025, 12:08 PM
» Replies: 1
» Views: 2,185
Xen hypervisor on Rock64
Forum: Linux on Rock64
Last Post: darkfader
11-03-2025, 09:25 AM
» Replies: 6
» Views: 9,696
[Article] RISC-V Ox64 BL8...
Forum: General
Last Post: smithjohns
11-03-2025, 12:54 AM
» Replies: 3
» Views: 9,471
Pinetab2s running DanctNI...
Forum: PineTab Software
Last Post: biketool
11-02-2025, 04:45 AM
» Replies: 0
» Views: 102

 
  Is there a temperature sensor on Pine?
Posted by: Informatica - 05-31-2016, 10:13 AM - Forum: General Discussion on PINE A64(+) - Replies (12)

Hi, 
I installed CPU-Z (android) for monitoring processor and memory and I noticed that in the "Thermal" tab, the application show a specific value of temperature (about 50°C). It grows up (about 54°C) after video playing.

So, is there a temperature sensor on Pine or it is a fake temperature?


  Pushing notifications from home network to cell phone
Posted by: wahdooyah - 05-30-2016, 08:25 PM - Forum: Pine A64 Projects, Ideas and Tutorials - No Replies

This may be one of those uses that most people wouldn't find too useful, but I thought I'd share the setup since it helped me to solve a problem that had stumped me for awhile.

There are various reasons one might want to push notifications from your home network to your mobile device (notifying of changes in your dynamic IP address, alerts from smart home sensors/smoke alarms/security alarms, etc.), and while there are some easy ways to do this using third-party services, I dislike solutions that rely on third parties too much.

So for this example, I check whether my ISP has changed my home IP address, and if it has, I push a notification to my cell phone in the form of a text file with the new IP address. For the Pine, I'm using the latest Debian image from here, with Tor installed:

Code:
sudo apt-get install tor

Then, on my Android phone I have installed SSHelper, which I obtained via the f-droid repositories, but you can also install from the Play Store I believe. I also have installed Orbot, which I recommend getting from the official Guardian Project repository rather than the Play Store, though I believe it is also there.

To set up SSHelper to run as a hidden service, you will need to open the settings dialog in Orbot, and scroll down to the Hidden Service Hosting section, and check the box for Hidden Service Hosting. Click on Hidden Service Ports and pick whatever port you have selected in SSHelper (for this example I'm using the default, 2222). Next, you need to shut down Orbot and restart it so that it will generate your .onion address. Go into the hidden service settings again, click on the .onion hostname, and copy that address. You might want to write it down or save it as a text file since you'll need it later.

Next, on the Pine, attempt to access the Android phone using the .onion hostname:

Code:
torsocks ssh -p 2222 123456abcde.onion

Once you've confirmed this works, you need to set up the SSH server to use  a keypair instead of password, so on the Pine type these two commands:

Code:
ssh-keygen -t dsa -f ~/.ssh/id_dsa -N ''
torsocks ssh-copy-id -i ~/.ssh/id_dsa.pub -p 2222 12345abcdef.onion

Type in the password when it prompts you, then exit once the devices finish the key exchange. Now, on the Android phone, enter the SSHelper settings and check the box Disable password logins.

Next, I wrote a perl script that checks with a public site and creates a text file containing the IP, as well as a log of prior IPs and when they changed:

Code:
#!/usr/bin/perl -w

use strict;

my $nip;
my $now = localtime();
my $ipcheck = "http://ipecho.net/plain";
my $result = qx{curl --silent $ipcheck};

if($result =~  m/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/) {
 $nip = $1;
}
else { die "regex failed to match an IP: $!"; }

open(LAST, "<lastip") or die "Can't open lastip";
my $lastip = <LAST>;
close(LAST);

unless($lastip eq $nip) {
open(LAST, ">lastip") or die "Can't open lastip";
print LAST $nip;
close(LAST);

print qx{torsocks scp -P 2222 /home/pineuser/lastip 12345abcdef.onion:/sdcard/ipchecker/};
open(LOG, ">>history") or die "Can't open history";
print LOG "$nip\t[$now]\n";
close(LOG);

print qx{torsocks scp -P 2222 /home/pineuser/history 12345abcdef.onion:/sdcard/ipchecker/};
}
else {
open(CHECKED, ">checked") or die "Can't open checked";
print CHECKED $now;
close(CHECKED);
print qx{torsocks scp -P 2222 /home/pineuser/checked 12345abcdef.onion:/sdcard/ipchecker/};
}

Now, all that's left is to create the three files and set the script to run periodically via crontab:

Code:
touch lastip history checked
crontab -e

I set the cronjob to run hourly at five past the hour (because why not?), but obviously anything would work:

Code:
5 * * * * /home/pineuser/notifier.pl

Assuming everything went smoothly, you should have three files created in your SSH root directory: checked lets you know how recently it was checked, lastip should be the most recent IP address, and history should list each prior IP address.

As I indicated at the beginning, this particular script is just an example of one use, but once you have the SSH hidden service running, you can push any notifications or files you might want to that folder.


  Received package but missing accessory
Posted by: mhrsz17 - 05-30-2016, 07:53 PM - Forum: Shipment Related Discussion - Replies (8)

Any idea on how should I file a report for missing item? I pledged for Pine64+ 2gb and accessories but the 2nd USB cable was not in the parcel.

p.s. How can we identify the difference between 64 and 64+ board just by looking at the board? 
The details on parcel only stated '1 x PA642GB'

I'm still waiting for my sd card to arrive, so as for now I cant really do anything to check. 

thanks in advance Big Grin



Attached Files Thumbnail(s)
   

  Wifi/ Bluetooth chip
Posted by: abba2566 - 05-30-2016, 11:20 AM - Forum: Getting Started - Replies (4)

Possibly a stupid question but, I've slotted the wifi/ Bluetooth chip onto the pins labelled wifi+bt on the board, but there's a grey cable that doesn't seem to attach anywhere, should it?


  wget not working?
Posted by: slerched - 05-30-2016, 08:31 AM - Forum: Debian - Replies (3)

I am a 90% n00b when it comes to Linux.

I got my Pine64, I got a non-counterfeit SD card, and put the Debian install on it.

What I am trying to do now is get JRiver Media Center for ARM installed using these instructions:

http://yabb.jriver.com/interact/index.php?topic=99370.0


Problem is, I open the terminal, I try to use wget and it says it doesn't recognize the command.

Not sure where to go from here.

Here's the command I am trying to use:

wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -



Any help is appreciated!


  LCD Pannel working... Touch screen NOT working?? Why
Posted by: Chopshop13 - 05-30-2016, 02:00 AM - Forum: LCD and Touch Panel - Replies (3)

As the title suggests My Pine 7" LCD is working (showing graphics) but not responsive to touch at all. Im booting the LCD android 5.1 from the wiki. 
The only thing I can think of, is look how sheet the ribbon cable plug was attached to the board from factory. I couldnt say If its the problem but Its suspicious.
 [Image: 13313604_1183537048365249_91336053_o.jpg]


  Enclosure dimensions
Posted by: george - 05-30-2016, 01:51 AM - Forum: Enclosures - Replies (2)

Hey guys.
Would anyone of you who have the correct board dimensions just pass it to me.

Thanks again.


  U-Boot, partition layout and flash
Posted by: kap1r0t0 - 05-29-2016, 10:42 PM - Forum: Android on Pine A64(+) - Replies (13)

Hi. I compiled Android sdk from wiki without errors, but now i dont know how flash the files to sdcard (boot.img, system.img. recovery.img)

And i compile U-Boot from longsleep, this is compatible with Android?

What is the partition layout for Android? I try this http://linux-sunxi.org/Boot_Android_from..._Partition


  Lithium 'salt and battery
Posted by: UnixOutlaw - 05-29-2016, 09:32 PM - Forum: Lithium and RTC Ports - No Replies

I ordered three of these from e-bay :

    http://www.ebay.com.au/itm/111706418228

I've only got 2 Pine 64 (2GB), but I can always use another one with NextThing CHIP.

I also ordered 4 of these (thinking it was 1 per package - but turns out I'm getting 40 of them!) :

    http://www.ebay.ca/itm/201477249384

I can always rig them up as adapters to convert between 2 pin and 3 pin connectors...


  Screen going black
Posted by: Wesleypjones - 05-29-2016, 08:42 PM - Forum: Remix OS - Replies (7)

I have encountered a new issue.  Every so often my pine will crash to a near black screen.  The lights are all still on but I can't get a response to anything I try.   It happens often while streaming video on kodi.  Sometimes it just happens when I am not running any programs.  Any suggestions as to what might be the issue?