Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 29,560
» Latest member: nicolaos
» Forum threads: 16,212
» Forum posts: 116,978
Full Statistics
|
Latest Threads |
Wifi 5Ghz Issue
Forum: PineNote Software
Last Post: nicolaos
5 hours ago
» Replies: 0
» Views: 174
|
Special keys stopped work...
Forum: General Discussion on PineNote
Last Post: nicolaos
6 hours ago
» Replies: 1
» Views: 6,622
|
the self built bl602_boot...
Forum: Getting Started
Last Post: pinecheng
09-16-2025, 02:15 PM
» Replies: 2
» Views: 1,126
|
Why projects like PinePho...
Forum: General Discussion on PinePhone
Last Post: Gary2003
09-16-2025, 01:13 PM
» Replies: 13
» Views: 9,284
|
Cannot flash the modem fi...
Forum: Mobian on PinePhone
Last Post: anonymous
09-16-2025, 12:18 PM
» Replies: 7
» Views: 2,569
|
Star64 Irradium (based on...
Forum: Getting Started
Last Post: mara
09-16-2025, 11:18 AM
» Replies: 8
» Views: 5,629
|
Mobian MMS/SMS text probl...
Forum: Mobian on PinePhone
Last Post: georgegohl888
09-15-2025, 02:42 AM
» Replies: 16
» Views: 21,279
|
Default password for KDE ...
Forum: General Discussion on PinePhone
Last Post: Toni
09-14-2025, 06:35 PM
» Replies: 0
» Views: 1,947
|
My Phone stopped making a...
Forum: PinePhone Hardware
Last Post: tracyanne
09-14-2025, 03:30 PM
» Replies: 0
» Views: 2,336
|
StarPro64 Irradium (based...
Forum: Getting Started
Last Post: mara
09-14-2025, 01:56 PM
» Replies: 9
» Views: 4,780
|
|
|
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.
|
|
|
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.
|
|
|
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?
|
|
|
My experience with the Pine64 |
Posted by: edu2004eu - 05-29-2016, 01:48 PM - Forum: Getting Started
- Replies (9)
|
 |
Well, for starters let me say that I am very frustrated by my interaction with this board. I'm in no way a hardware guy, but I'm a developer, so it should be fairly easy for me to get this thing started. However, nothing works. I'm pretty sure my board is not DOA, but that it doesn't like something I do; only there are too many things that it can dislike, for me to try them all.
So, here's my setup:
1. Memory
I've seen the posts about counterfeit SD cards, and I'm fairly sure that mine is not. It's a 64GB SanDisk Class 10 card. Nothing fancy, but it should do the trick. Nothing else to say here.
2. Display
I originally tried hooking it up to my Samsung monitor, which only has DVI and VGA, so I used a DVI -> HDMI converter. After I saw all the "no-no" posts about this, I hooked it up to my Phillips TV, which has HDMI input. My TV is HD Ready (meaning 720p, however it does say that it supports 1080p coming from computers). The only thing I can't verify is my HDMI cable, but it does work on my XBox 360, so why shouldn't it work with the Pine?
3. Peripherals
Originally I started it with just HDMI and ethernet cable. After a few seconds, the ethernet connection started showing activity (both yellow and green lights lit up; this is the reason I think my board is not DOA). However after I saw the posts about not hooking anything up but the display and card, I also removed the ethernet cable.
4. Power
First I tried with an old no-name phone charger and the USB cable I got with my phone. Later I found out that the charger only gives 5V 1A, so next I tried it with my OnePlus One charger, which outputs exactly 5V 2A. The cable seems also pretty good quality. The only thing I'm worried about here, is that my OPO charger has a US-type socket, and I live in Europe, so I'm also using an adapter (but AFAIK that doesn't transform the current).
5. Software
I tried all 3 methods of flashing Android and RemixOS onto my card: Win32DiskImager, PhoenixCard and DD (the last one via ubuntu). Since I haven't found a video which follows this process from start till end (including sticking the card into the board and booting), I have no idea about stuff like what filesystem to use (for Win32DiskImager and DD -- PhoenixCard formats the card), and stuff like that.
6. Other stuff
I'm pretty sure I've tried almost all the suggestions on this forum, and no, nothing worked.
After trying all these things, I will probably try flashing Ubuntu as my last resort (although I'm not getting my hopes up), but the end result will probably stay the same: the board starts (red LED), stays on as long as I let it, however there's no video to my screen.
As I said at the beginning, my experience with this board is incredibly frustrating, and I can barely refrain myself from using certain words to describe the project leaders, because honestly? I don't think I'll ever get it to work. Some people say it can be resolved via a software improvement, but I think it's a hardware problem, and that I can throw the board away. In any case, in hopes that I'm wrong, I'll keep the board for a couple of months, and try again. If it still won't work, I'll throw it away and get myself a Pi3, and always be angry at myself for being to cheap to spend an extra $20 to go for the Pi from the beginning.
Also, I understand that the project owners are still having headaches to fulfill the Kickstarter pledges, but that does not in any way mean that they should neglect documentation & software. The wiki page is nothing more than a bunch of user-written suggestions. The Android & Ubuntu images are also user-contrib, so basically low-to-none software support from the creators, just a shiny board.
PS. What's up with the power button being in the yellow shipping bag?! It should be in the box at least. I've thrown it away and had to go through my trash to get it back.
I honestly hope you guys are having better luck than me
|
|
|
|