some develop info to start

Raspberry Pi related support

some develop info to start

Postby ciuffoly » 18 Sep 2017, 18:23

See my last post



I would like to make some changes on Runeaudio interface so I want to use my pc with Putty in ssh to open an X11 session to develop and debug.

I have on my pc the Xming X11 server and with a simple configuration I can use Putty to open xterm or midori from Raspberry.
Last edited by ciuffoly on 19 Sep 2017, 07:30, edited 3 times in total.
ciuffoly
 
Posts: 12
Joined: 18 Sep 2017, 18:13

Re: develop on X11 session

Postby ciuffoly » 18 Sep 2017, 18:23

The question is which is the first page to open the main interface windows ? index.php or other ?

These are in /var/www directory ?
ciuffoly
 
Posts: 12
Joined: 18 Sep 2017, 18:13

Re: develop on X11 session

Postby ciuffoly » 18 Sep 2017, 19:33

Now I can open the main screen of Runeaudio with midori on X11 but where is the document root on Raspberry ?
ciuffoly
 
Posts: 12
Joined: 18 Sep 2017, 18:13

Re: develop on X11 session

Postby ciuffoly » 18 Sep 2017, 19:44

found /var/www and main file is index.php
ciuffoly
 
Posts: 12
Joined: 18 Sep 2017, 18:13

Re: develop on X11 session

Postby ciuffoly » 18 Sep 2017, 20:24

Found this:

You have to empty the PHP OPcache after the edits to see the result.

You have 3 ways to do that:

- press the related button in the DEV section (http://runeaudio.local/dev)
- simply point your browser to http://runeaudio.local/clear
- reboot
ciuffoly
 
Posts: 12
Joined: 18 Sep 2017, 18:13

Re: develop on X11 session

Postby ciuffoly » 19 Sep 2017, 07:27

All solved on this argument:

1) to use the mouse
in /root/.xinitrc file change "-use_cursor no" to "-use_cursor yes"

2) remote access in ssh
user: root
password: rune

3) to use X11 server like Xming on ssh channel modify the file /etc/ssh/sshd_config to add these entry
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
like this guide: http://www.straightrunning.com/XmingNotes/trouble.php

4) to open a remore access to the interface select http://[ip runeaudio]/

5) the document root is on /var/www and the first file is index.php

6) the file /var/www/app/templates/header.php magege the buttons on top and bottom

7) after a modification to php files is necessary one of these operation:
- press the related button in the DEV section (http://runeaudio.local/dev)
- simply point your browser to http://runeaudio.local/clear
- reboot
ciuffoly
 
Posts: 12
Joined: 18 Sep 2017, 18:13

Re: some develop info to start

Postby westrock2000 » 20 Sep 2017, 16:17

From a command line (like putty) this will also restart the PHP caching.

[root@runeaudio ~]# systemctl restart php-fpm.service
westrock2000
 
Posts: 23
Joined: 26 Mar 2017, 01:19

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: Bing [Bot] and 11 guests