Comments (10)
The problems with the launch of SSH was not. Put the log file for analysis.
from linuxdeploy.
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.
Your SSH successfully started on port 222.
from linuxdeploy.
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.
[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.
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.
[11:16:49] + echo [RESULT_LN] done
This line says that SSH started without errors.
from linuxdeploy.
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.
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.
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)
- Arch Linux installation failed with`Installation type` set to `Directory` HOT 3
- ip inaccurate when vpn is enabled
- Solution for no internet as user! HOT 3
- How to change the mount point on an already installed Linux system?
- Static ip debian
- Cannot install pihole image to SD card
- How do I change ubuntu kernel to another version on Linux Deploy? HOT 1
- "sudo Account validation failure, is your account locked", can't login linux system error
- When the device screen is off, it can only use LAN, ping anything else will fail HOT 3
- Execute /system/bin commands from container HOT 1
- I Can't Use 2 Profiles
- Installed Debian12 in a Redmi8 phone - try to install Home Assitant Supervised but have errors HOT 1
- Any chance of getting newer versions of ubuntu? HOT 2
- sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied
- How to use framebuffer video option on modern android?
- The virtual machine cannot be powered on
- Fake Battery Percentage? HOT 3
- Linuxdeploy can access the network normally under the root user, but after switching to a regular user, it cannot access the network.
- Я HOT 2
- Please, bro explain where is the fucking mounted container!? I already have spent two days searching for that mounted locations. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linuxdeploy.