Code Monkey home page Code Monkey logo

Comments (10)

meefik avatar meefik commented on May 18, 2024

The problems with the launch of SSH was not. Put the log file for analysis.

from linuxdeploy.

meskes avatar meskes commented on May 18, 2024

Here it is:

[11:16:48] [PRINT_LN] >>> begin: start
[11:16:48] + PATH=/data/local/linux/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
[11:16:48] + export PATH
[11:16:48] + echo [PRINT_LN] >>> begin: start
[11:16:48] + cd /data/local/linux
[11:16:48] + export APK_SHELL=1
[11:16:48] + linuxdeploy start
[11:16:48] + cd /data/local/linux
[11:16:48] + umask 0022
[11:16:48] [PRINT_LN] Mounting partitions:
[11:16:48] [PRINT] / ...
[11:16:48] + start_system
[11:16:48] + mount_system
[11:16:48] + msg [PRINT_LN] Mounting partitions:
[11:16:48] + [ -z [PRINT_LN] -o -z Mounting partitions: ]
[11:16:48] + [ -n 1 ]
[11:16:48] + echo [PRINT_LN] Mounting partitions:
[11:16:48] + return 0
[11:16:48] + msg [PRINT] / ...
[11:16:48] + [ -z [PRINT] -o -z / ... ]
[11:16:48] + [ -n 1 ]
[11:16:48] + echo [PRINT] / ...
[11:16:48] + return 0
[11:16:48] + cat /proc/mounts
[11:16:48] + grep /data/local/linux/mnt
[11:16:48] + is_mnt=
[11:16:48] + [ -z ]
[11:16:48] + [ ! -d /data/local/linux/mnt ]
[11:16:48] + [ -d /mnt/sdcard/linux.img ]
[11:16:48] + MNT_OPTS=rw,relatime
[11:16:48] + mount -o rw,relatime /mnt/sdcard/linux.img /data/local/linux/mnt
[11:16:48] + [ 0 -eq 0 ]
[11:16:48] + msg [RESULT_LN] done
[11:16:48] + [ -z [RESULT_LN] -o -z done ]
[11:16:48] + [ -n 1 ]
[11:16:48] + echo [RESULT_LN] done
[11:16:48] + return 0
[11:16:48] + msg [PRINT] /proc ...
[11:16:48] + [ -z [PRINT] -o -z /proc ... ]
[11:16:48] [RESULT_LN] done
[11:16:48] [PRINT] /proc ...
[11:16:48] + [ -n 1 ]
[11:16:48] + echo [PRINT] /proc ...
[11:16:48] + return 0
[11:16:48] + tg=/data/local/linux/mnt/proc
[11:16:48] + grep /data/local/linux/mnt/proc
[11:16:48] + cat /proc/mounts
[11:16:48] + is_mnt=
[11:16:48] + [ -z ]
[11:16:48] + [ ! -d /data/local/linux/mnt/proc ]
[11:16:48] + mount -t proc proc /data/local/linux/mnt/proc
[11:16:48] + [ 0 -eq 0 ]
[11:16:48] + msg [RESULT_LN] done
[11:16:48] + [ -z [RESULT_LN] -o -z done ]
[11:16:48] + [ -n 1 ]
[11:16:48] + echo [RESULT_LN] done
[11:16:48] + return 0
[11:16:48] + msg [PRINT] /sys ...
[11:16:48] + [ -z [PRINT] -o -z /sys ... ]
[11:16:48] + [ -n 1 ]
[11:16:48] [RESULT_LN] done
[11:16:48] [PRINT] /sys ...
[11:16:48] + echo [PRINT] /sys ...
[11:16:48] + return 0
[11:16:48] + tg=/data/local/linux/mnt/sys
[11:16:48] + grep /data/local/linux/mnt/sys
[11:16:48] + cat /proc/mounts
[11:16:48] [RESULT_LN] done
[11:16:48] [PRINT] /dev ...
[11:16:48] + is_mnt=
[11:16:48] + [ -z ]
[11:16:48] + [ ! -d /data/local/linux/mnt/sys ]
[11:16:48] + mount -t sysfs sys /data/local/linux/mnt/sys
[11:16:48] + [ 0 -eq 0 ]
[11:16:48] + msg [RESULT_LN] done
[11:16:48] + [ -z [RESULT_LN] -o -z done ]
[11:16:48] + [ -n 1 ]
[11:16:48] + echo [RESULT_LN] done
[11:16:48] + return 0
[11:16:48] + msg [PRINT] /dev ...
[11:16:48] + [ -z [PRINT] -o -z /dev ... ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT] /dev ...
[11:16:49] + return 0
[11:16:49] + tg=/data/local/linux/mnt/dev
[11:16:49] + grep /data/local/linux/mnt/dev
[11:16:49] + cat /proc/mounts
[11:16:49] + is_mnt=
[11:16:49] + [ -z ]
[11:16:49] + [ ! -d /data/local/linux/mnt/dev ]
[11:16:49] + mount -o bind /dev /data/local/linux/mnt/dev
[11:16:49] [RESULT_LN] done
[11:16:49] [PRINT] /dev/pts ...
[11:16:49] + [ 0 -eq 0 ]
[11:16:49] + msg [RESULT_LN] done
[11:16:49] + [ -z [RESULT_LN] -o -z done ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [RESULT_LN] done
[11:16:49] + return 0
[11:16:49] + msg [PRINT] /dev/pts ...
[11:16:49] + [ -z [PRINT] -o -z /dev/pts ... ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT] /dev/pts ...
[11:16:49] + return 0
[11:16:49] + tg=/data/local/linux/mnt/dev/pts
[11:16:49] + grep /data/local/linux/mnt/dev/pts
[11:16:49] + cat /proc/mounts
[11:16:49] + is_mnt=
[11:16:49] + [ -z ]
[11:16:49] + [ ! -d /data/local/linux/mnt/dev/pts ]
[11:16:49] + mount -t devpts devpts /data/local/linux/mnt/dev/pts
[11:16:49] + [ 0 -eq 0 ]
[11:16:49] + msg [RESULT_LN] done
[11:16:49] [RESULT_LN] done
[11:16:49] + [ -z [RESULT_LN] -o -z done ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [RESULT_LN] done
[11:16:49] + return 0
[11:16:49] + + echo
[11:16:49] tr ,;
[11:16:49] + DISKS=
[11:16:49] + return 0
[11:16:49] + [ 0 -ne 0 ]
[11:16:49] + update_system
[11:16:49] + msg [PRINT_LN] Updating configuration:
[11:16:49] + [ -z [PRINT_LN] -o -z Updating configuration: ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT_LN] Updating configuration:
[11:16:49] + return 0
[11:16:49] + configure_system dns mtab
[11:16:49] + [ 2 -eq 0 ]
[11:16:49] + [ 2 -gt 1 ]
[11:16:49] + configure_system dns
[11:16:49] + [ 1 -eq 0 ]
[11:16:49] + [ 1 -gt 1 ]
[11:16:49] + msg [PRINT] dns ...
[11:16:49] + [ -z [PRINT] -o -z dns ... ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT] dns ...
[11:16:49] + return 0
[11:16:49] [PRINT_LN] Updating configuration:
[11:16:49] [PRINT] dns ...
[11:16:49] + set -e
[11:16:49] + echo -n
[11:16:49] + [ -z ]
[11:16:49] + getprop net.dns1
[11:16:49] + dns1=192.168.50.254
[11:16:49] + getprop net.dns2
[11:16:49] + dns2=
[11:16:49] + DNS_LIST=192.168.50.254
[11:16:49] + [ -z 192.168.50.254 -a -z ]
[11:16:49] + echo nameserver 192.168.50.254
[11:16:49] + exit 0
[11:16:49] [RESULT_LN] done
[11:16:49] [PRINT] mtab ...
[11:16:49] + [ 0 -eq 0 ]
[11:16:49] + msg [RESULT_LN] done
[11:16:49] + [ -z [RESULT_LN] -o -z done ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [RESULT_LN] done
[11:16:49] + return 0
[11:16:49] + [ dns == gui -a y == y ]
[11:16:49] + return 0
[11:16:49] + configure_system mtab
[11:16:49] + [ 1 -eq 0 ]
[11:16:49] + [ 1 -gt 1 ]
[11:16:49] + msg [PRINT] mtab ...
[11:16:49] + [ -z [PRINT] -o -z mtab ... ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT] mtab ...
[11:16:49] + return 0
[11:16:49] + set -e
[11:16:49] + rm -f /data/local/linux/mnt/etc/mtab
[11:16:49] + grep /data/local/linux/mnt
[11:16:49] + sed s|/data/local/linux/mnt/|/|g
[11:16:49] + cat /proc/mounts
[11:16:49] + exit 0
[11:16:49] + [ 0 -eq 0 ]
[11:16:49] + msg [RESULT_LN] done
[11:16:49] + [ -z [RESULT_LN] -o -z done ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [RESULT_LN] done
[11:16:49] + return 0
[11:16:49] + [ mtab == gui -a y == y ]
[11:16:49] + return 0
[11:16:49] + return 0
[11:16:49] + [ 0 -ne 0 ]
[11:16:49] + return 0
[11:16:49] + msg [PRINT_LN] Starting services:
[11:16:49] + [ -z [PRINT_LN] -o -z Starting services: ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT_LN] Starting services:
[11:16:49] + return 0
[11:16:49] [RESULT_LN] done
[11:16:49] + msg [PRINT] SSH ...
[11:16:49] [PRINT_LN] Starting services:
[11:16:49] + [ -z [PRINT] -o -z SSH ... ]
[11:16:49] [PRINT] SSH ...
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT] SSH ...
[11:16:49] + return 0
[11:16:49] + [ y == y ]
[11:16:49] + set -e
[11:16:49] + sed -i s|^Port .
|Port 222|g /data/local/linux/mnt/etc/ssh/sshd_config
[11:16:49] + exit 0
[11:16:49] + [ 0 -eq 0 ]
[11:16:49] + msg [RESULT_LN] done
[11:16:49] + [ -z [RESULT_LN] -o -z done ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [RESULT_LN] done
[11:16:49] + return 0
[11:16:49] + msg [PRINT] VNC ...
[11:16:49] + [ -z [PRINT] -o -z VNC ... ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT] VNC ...
[11:16:49] + return 0
[11:16:49] [RESULT_LN] done
[11:16:49] + [ y == y ]
[11:16:49] [PRINT] VNC ...
[11:16:49] + set -e
[11:16:49] + [ -e /data/local/linux/mnt/tmp/.X0-lock ]
[11:16:49] + [ -e /data/local/linux/mnt/tmp/.X11-unix/X0 ]
[11:16:49] + chroot /data/local/linux/mnt su - michael -c vncserver -depth 16 -geometry 1024x546 :0
[11:16:50] New 'X' desktop is localhost:0
[11:16:50] Starting applications specified in /home/michael/.vnc/xstartup
[11:16:50] Log file is /home/michael/.vnc/localhost:0.log
[11:16:50] + exit 0
[11:16:50] [RESULT_LN] done
[11:16:50] + [ 0 -eq 0 ]
[11:16:50] + msg [RESULT_LN] done
[11:16:50] + [ -z [RESULT_LN] -o -z done ]
[11:16:50] + [ -n 1 ]
[11:16:50] + echo [RESULT_LN] done
[11:16:50] + return 0
[11:16:50] + msg [PRINT] X Window System ...
[11:16:50] + [ -z [PRINT] -o -z X Window System ... ]
[11:16:50] [PRINT] X Window System ...
[11:16:50] + [ -n 1 ]
[11:16:50] + echo [PRINT] X Window System ...
[11:16:50] + return 0
[11:16:50] + [ n == y ]
[11:16:50] + msg [RESULT_LN] skip
[11:16:50] [RESULT_LN] skip
[11:16:50] + [ -z [RESULT_LN] -o -z skip ]
[11:16:50] + [ -n 1 ]
[11:16:50] + echo [RESULT_LN] skip
[11:16:50] + return 0
[11:16:50] + echo
[11:16:50] + tr ,;
[11:16:50] [PRINT_LN] <<< end: start
[11:16:50] + SCRIPTS=
[11:16:50] + return 0
[11:16:50] + echo [PRINT_LN] <<< end: start
[11:16:50] + exit

from linuxdeploy.

meefik avatar meefik commented on May 18, 2024

Your SSH successfully started on port 222.

from linuxdeploy.

meskes avatar meskes commented on May 18, 2024

Where? I cannot see any mentioning of it in the logfile. All I can see is the config setting. Besides it doesn't run on my phone. :)

As a sidenote ma I suggest to print the current IP on startup? If you're phone is on changing IPs you always have to check the correct IP outside of linuxdeploy to access it. It would be more convenient to just see it during startup of linuxdeploy.

from linuxdeploy.

meefik avatar meefik commented on May 18, 2024
[11:16:49] [PRINT_LN] Starting services: 
[11:16:49] + [ -z [PRINT] -o -z SSH ... ]
[11:16:49] [PRINT] SSH ... 
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [PRINT] SSH ... 
[11:16:49] + return 0
[11:16:49] + [ y == y ]
[11:16:49] + set -e
[11:16:49] + sed -i s|^Port .*|Port 222|g /data/local/linux/mnt/etc/ssh/sshd_config  <<< 222
[11:16:49] + exit 0
[11:16:49] + [ 0 -eq 0 ]
[11:16:49] + msg [RESULT_LN] done
[11:16:49] + [ -z [RESULT_LN] -o -z done ]
[11:16:49] + [ -n 1 ]
[11:16:49] + echo [RESULT_LN] done

IP and ports shown in landscape orientation.

from linuxdeploy.

meskes avatar meskes commented on May 18, 2024

Re IP: Thanks for that, I haven't noticed that before.
Re SSH: that line only shows that the config is generated, but not that the service is started and indeed it is not.

from linuxdeploy.

meefik avatar meefik commented on May 18, 2024
[11:16:49] + echo [RESULT_LN] done

This line says that SSH started without errors.

from linuxdeploy.

meskes avatar meskes commented on May 18, 2024

Well, it says that the script thinks there was no error. Problem is, that sshd was not started. When connecting through VNC I can see that no sshd is running but I can also prove that sshd can be started by issuing "/etc/init.d/ssh start".

from linuxdeploy.

meskes avatar meskes commented on May 18, 2024

Found it! The problem is that the config lists "Debian" as the distribution while the linuxdeploy script checks for "debian" when starting ssh. I manually changed the config to say "debian" and voila sshd starts again.

from linuxdeploy.

meefik avatar meefik commented on May 18, 2024

Uninstall the application and install again or select Debian in Properties -> Destribution. Configuration file automatically updated after changes, maybe problem at this stage. But other users similar problem is not observed.

from linuxdeploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.