Running R on Android: correcting VNCserver startup error [🇷 for BE/BA]

posted by VStus – Poland, 2016-10-04 23:56 (2750 d 23:46 ago) – Posting: # 16699
Views: 6,866

(edited by VStus on 2016-10-05 08:16)

Dear mittyri,

❝ Dziękuję bardzo!

Всегда пожалуйста!

❝ I'm removing it manually, but is it possible to solve this problem automatically?


More digging is required to solve this issue. It occurs because vncserver and Xsession are not terminated correctly during termination of GNURoot (when clicking to close the GNURoot console window). I've removed these files manually as well.

USER=noroot vncserver -kill localhost:1
(Correct termination of vncserver. It should remove all lock files if vncserver is properly stopped before closing the GNURoot session as it correctly terminates vncserver and Xserver. Insert your display name)

rm /tmp/.X*
(removes X server lock files)

rm ~/.vnc/*.pid
(removes vncserver lock/pid files)
(I'm missing some other place where lock/pid files should be deleted)

There is a possibility to stop vncserver automatically upon exit, but it requires a correct number of screen (working in certain circumstances but not optimal solution)
File should be named ~/.bashrc (correct filename found!) and contain something like this:
trap_exit() {
    USER=noroot vncserver -kill localhost:1
}
trap trap_exit EXIT

Limitation of this solution:
- exit command should be entered into console always BEFORE closing GNURoot session;
- if display number changes - server should be stopped manually and .bashrc should be corrected.

It should be possible to avoid this bug by addition of automatic removal of messing pid files at startup of GNURoot (before new vncserver is started), but I have not found the startup script yet.

Regards, VStus

Complete thread:

UA Flag
Activity
 Admin contact
22,984 posts in 4,822 threads, 1,652 registered users;
72 visitors (0 registered, 72 guests [including 4 identified bots]).
Forum time: 23:43 CEST (Europe/Vienna)

You can’t fix by analysis
what you bungled by design.    Richard J. Light, Judith D. Singer, John B. Willett

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5