View: 14187|Reply: 12

First OP-PC-P, First day with Armbian 5.14

[Copy link]

1

threads

4

posts

37

credits

Novice

Rank: 1

credits
37
Published in 2016-6-14 16:36:51 | Show all floors |Read mode
Hello, Everyone.
Today my orange pi pc plus arrived.
I mannaged to boot( Armbian 5.14)
I had to remove the security from my wifi before i could connect, kept telling me bad password.( I believe I'm using the wrong setting, i can't figure it out).
after that web a-ok.
I would like to know if i can i view cpu/Soc temp.
How do i use the onboard flash.
Um,
what are the must do updates and tweaks for a begginner.

I hope that isn't too demanding.





9

threads

634

posts

4427

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4427
Published in 2016-6-14 16:57:32 | Show all floors

1

threads

4

posts

37

credits

Novice

Rank: 1

credits
37
 Author| Published in 2016-6-14 21:56:22 | Show all floors
igorpec replied at 2016-6-14 16:57
Check docs:

https://github.com/igorpecovnik/lib/blob/master/documentation/user-faq.md

Thank you


4

threads

21

posts

449

credits

Intermediate member

Rank: 3Rank: 3

credits
449
Published in 2016-6-16 07:36:57 | Show all floors
Hello, Everyone.
I would like to know if i can i view cpu/Soc temp.
Hi!

Could you try my h3control dashboard? The thread
Looking forward for feedback on the thread by link above

Installation is pretty ease. just copy code in the bash console.

_
Vlad

4

threads

21

posts

449

credits

Intermediate member

Rank: 3Rank: 3

credits
449
Published in 2016-6-20 20:40:17 | Show all floors
Edited by Vlad at 2016-6-20 20:44

Hi

How do i use the onboard flash.
Um,
what are the must do updates and tweaks for a begginner.

I could suggest this checklist:
1. Move $HOME to internal flash. Without this step both chrome and firefox are useless. Due to slow speed of the fastest microsd.
2. Check /var/log and /tmp are tmpfs. It will significantly increase lifetime of your microsd.
3. Create swap on internal flash. Without it some rare operations fail in my scenarios.
4. Create 3 shortcuts on your PC to PI: ssh-connection, VNC-connection & h3control dashboard

Have you done it?

Regards


1

threads

4

posts

37

credits

Novice

Rank: 1

credits
37
 Author| Published in 2016-6-20 20:58:19 | Show all floors
Oh wow thanks, I have entire system on internal flash, i assume that will give the same benefit in speed? ( I don't know how to install chrome or firefox, i accidentally installed firefox somehow by using sources for ubuntu or something i forget ( I ruined that system with lots of mistakes and did fresh install)
I'm not sure what you mean by 2. check...., i should read the contents.... i don't understand.
if i am running from internal, do i need to change swap at all, or is this just for speed and space?.
ooooo where do i find h3control? in sbin?
sorry if that makes no sense I'm a n0000b.

4

threads

21

posts

449

credits

Intermediate member

Rank: 3Rank: 3

credits
449
Published in 2016-6-21 04:03:52 | Show all floors
Edited by Vlad at 2016-6-21 04:09
ARMgunnaservu replied at 2016-6-20 20:58
Oh wow thanks, I have entire system on internal flash, i assume that will give the same benefit in s ...

Ohhhhhhhh
I'm not sure what you mean by 2. check...., i should read the contents.... i don't understand.

First, check these two lines are present in /etc/fstab

  1. tmpfs /tmp  tmpfs nodev,nosuid,mode=1777  0 0
  2. tmpfs   /var/log    tmpfs    defaults,noatime,nosuid,mode=0755,size=500m    0 0
Copy code

Finally, copy 3 lines into bash.
  1. sudo rm -rf /tmp/*
  2. sudo rm -rf /var/log/*
  3. sudo mount -a
Copy code

it will move two folders into RAM both immediately and after each reboot.



if i am running from internal, do i need to change swap at all, or is this just for speed and space?.

System allows to utilize 3Gb of RAM+SWAP for applications. If some app need more memory, we create swap file(s). Just for working
Here is a sample of new 500Mbytes swap located at /swap file (as root). Its a shell script
  1. dd if=/dev/zero of=/swap bs=1M count=500
  2. mkswap /swap
  3. swapon /swap
Copy code



ooooo where do i find h3control? in sbin?

Im pretty shure /sbin is location of apps for root only
See description and screnshot on my thread and my first reply: http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=645&page=1&extra=#pid5844
That code in my first reply is an installer of h3control. Could you try it? All i need in a feedback is "All the fine!"



18

threads

303

posts

9893

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9893
Published in 2016-6-21 14:24:57 | Show all floors
Edited by jacer at 2016-6-21 14:28

Hi, igorpec. I installed Armbian for OPI-Lite, and I backed the image with commands below but after restore I got only read filesystem and unexpanded partition issues.
  1. dd if=/dev/sdb of=bak.img bs=1M count=3705
Copy code

Here is the UART debug info from first boot. No first boot script runs as the Armbian from official image.


  1. Starting kernel ...
  2. [sun8i_fixup]: From boot, get meminfo:
  3.         Start:  0x40000000
  4.         Size:   512MB
  5. ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1
  6. ion_reserve_select: ion chipid  [0x2004620!
  7. ion_reserve_common: ion reserve: [0x56000000, 0x60000000]!

  8. Debian GNU/Linux 8 orangepilite ttyS0

  9. orangepilite login: orangepi
  10. password:
  11. Linux orangepilite 3.4.112-sun8i #8 SMP PREEMPT Tue May 31 19:00:17 CEST 2016 armv7l
  12. mkdir: cannot create directory '/etc/armbianmonitor': Input/output error
  13. ln: failed to access '/etc/armbianmonitor/datasources/soctemp': Input/output error
  14. ln: failed to access '/etc/armbianmonitor/datasources/soctemp': Input/output error
  15. ln: failed to access '/etc/armbianmonitor/datasources/soctemp': Input/output error
  16. Traceback (most recent call last):
  17.   File "/etc/update-motd.d/40-updates", line 140, in <module>
  18.     refreshdata ()
  19.   File "/etc/update-motd.d/40-updates", line 122, in refreshdata
  20.     os.remove(myfile)
  21. OSError: [Errno 30] Read-only file system: '/var/cache/apt/archives/updates.number'
  22. run-parts: /etc/update-motd.d/40-updates exited with return code 1
  23. no folders found, login to HOME=/
Copy code

Any fix?

9

threads

634

posts

4427

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4427
Published in 2016-6-21 14:39:22 | Show all floors
Edited by igorpec at 2016-6-21 07:43

Huh. I guess you corrupt your image during backup / restore. I hope you don't need to rescue some valuable date?
Try to fix filesystem on some other Linux comp with fsck -f, create file /forcefsck to force filesystem check on next boot.

18

threads

303

posts

9893

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9893
Published in 2016-6-21 22:17:09 | Show all floors
Edited by jacer at 2016-6-21 23:04
igorpec replied at 2016-6-21 14:39
Huh. I guess you corrupt your image during backup / restore. I hope you don't need to rescue some va ...

That would be not possible. I got a failed message as below during boot.
  1. [FAILED]Failed to start update UTMP about System Runlevel Changes...
  2. See "systemctl status systemd-update-utmp-runlevel.service" for details.
Copy code
P.S. I got it solved with fsck -f. But log into Orangepi accout tells me there is no ~/orangepi directory now. How to run the first boot script which creats new account and resize filesystem?I creat a orangepi folder inside home directory and run starx with orangepi account but I got ths error below.
  1. xauth: timeout in locking authority file /home/orangepi/.Xauthority
Copy code
Root accout runs fine now.




You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list