|
2017-08-03
, 15:39
|
Posts: 1,335 |
Thanked: 3,931 times |
Joined on Jul 2010
@ Brittany, France
|
#192
|
mount -o remount,exec /media/sdcard/XXX
The Following 2 Users Say Thank You to Kabouik For This Useful Post: | ||
|
2017-08-03
, 23:13
|
Posts: 1,335 |
Thanked: 3,931 times |
Joined on Jul 2010
@ Brittany, France
|
#193
|
[root@Sailfish nemo]# ln -s /media/sdcard/2d4ffa5e-6ead-48da-bdd6-ce1c5a775849/easychroot /opt/ [root@Sailfish nemo]# mount -o remount,exec /media/sdcard/2d4ffa5e-6ead-48da-bdd6-ce1c5a775849 [root@Sailfish nemo]# sh /media/sdcard/2d4ffa5e-6ead-48da-bdd6-ce1c5a775849/easychroot/DeskChrootOrig.sh 1268 720 startxfce4 mount: mount point /opt/easychroot/Arch/home/nemo/real_home does not exist mount: mount point /opt/easychroot/Arch/home/nemo/Downloads does not exist mount: mount point /opt/easychroot/Arch/home/nemo/android_storage does not exist mount: mount point /opt/easychroot/Arch/home/nemo/Music does not exist mount: mount point /opt/easychroot/Arch/home/nemo/Videos does not exist mount: mount point /opt/easychroot/Arch/home/nemo/Pictures does not exist mount: mount point /opt/easychroot/Arch/home/nemo/Documents does not exist rm: cannot remove '/run/user/100000/wayland-0.lock': No such file or directory declare -x DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/100000/dbus/user_bus_socket" declare -x EGL_DRIVER="egl_gallium" declare -x EGL_PLATFORM="wayland" declare -x FF_MEMLESS_SETTINGS="/usr/lib/qt5/plugins/feedback/qtfeedback-l500d.ini" declare -x G_BROKEN_FILENAMES="1" declare -x HISTCONTROL="ignoredups" declare -x HISTSIZE="1000" declare -x HOME="/root" declare -x HOSTNAME="" declare -x LOGNAME="nemo" declare -x LS_COLORS="no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:" declare -x OLDPWD declare -x PATH="/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin" declare -x PWD="/" declare -x QMLSCENE_DEVICE="customcontext" declare -x QML_FIXED_ANIMATION_STEP="no" declare -x QSG_FIXED_ANIMATION_STEP="no" declare -x QT_DF_BASE="0.5" declare -x QT_DF_BASEDEVIATION="0.025" declare -x QT_DF_RANGE="0.08" declare -x QT_DF_SCALEFORMAXDEV="0.37" declare -x QT_DF_SCALEFORNODEV="0.6" declare -x QT_GSTREAMER_CAMERABIN_FLAGS="15" declare -x QT_GSTREAMER_CAMERABIN_SRC="droidcamsrc" declare -x QT_GSTREAMER_PLAYBIN_FLAGS="0" declare -x QT_IM_MODULE="Maliit" declare -x QT_MESSAGE_PATTERN="[%{if-debug}D%{endif}%{if-info}I%{endif}%{if-warning}W%{endif}%{if-critical}C%{endif}%{if-fatal}F%{endif}] %{function}:%{line} - %{message}" declare -x QT_QPA_PLATFORM="wayland" declare -x QT_WAYLAND_DISABLE_WINDOWDECORATION="1" declare -x QT_WAYLAND_FORCE_DPI="96" declare -x QT_WAYLAND_RESIZE_AFTER_SWAP="1" declare -x SHELL="/bin/bash" declare -x SHLVL="4" declare -x SSH_CLIENT="10.0.0.8 50672 22" declare -x SSH_CONNECTION="10.0.0.8 50672 10.0.0.114 22" declare -x SSH_TTY="/dev/pts/0" declare -x TERM="xterm" declare -x USER="root" declare -x WAYLAND_DISPLAY="../../display/wayland-0" declare -x XDG_RUNTIME_DIR="/run/user/100000" /usr/share/easychroot/scripts/start_xwayland_user_shell.sh: line 15: 7141 Segmentation fault kwin_wayland --xwayland --height "$Height" --width "$Width" xhost: unable to open display ":0" declare -x DISPLAY=":0" declare -x HOME="/home/nemo" declare -x HOSTNAME="" declare -x LOGNAME="nemo" declare -x LS_COLORS="no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:" declare -x MAIL="/var/mail/nemo" declare -x OLDPWD declare -x PATH="/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin" declare -x PWD="/" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x SUDO_COMMAND="/sbin/bash /usr/share/easychroot/scripts/start_de.sh startxfce4" declare -x SUDO_GID="0" declare -x SUDO_UID="0" declare -x SUDO_USER="root" declare -x TERM="xterm" declare -x USER="nemo" declare -x USERNAME="nemo" declare -x XDG_RUNTIME_DIR="/run/user/100000" /sbin/startxfce4: X server already running on display :0 xrdb: Bad file descriptor xrdb: Can't open display ':0' /etc/X11/xinit/xinitrc.d/50-systemd-user.sh: line 3: 7201 Segmentation fault systemctl --user import-environment DISPLAY XAUTHORITY /etc/X11/xinit/xinitrc.d/50-systemd-user.sh: line 7: 7204 Segmentation fault dbus-update-activation-environment DISPLAY XAUTHORITY /etc/xdg/xfce4/xinitrc: line 121: 7206 Segmentation fault xfce4-session [root@Sailfish nemo]#
The Following 2 Users Say Thank You to Kabouik For This Useful Post: | ||
|
2017-08-04
, 06:32
|
Posts: 81 |
Thanked: 342 times |
Joined on Jul 2012
@ Finland
|
#194
|
The Following 4 Users Say Thank You to jukk For This Useful Post: | ||
|
2017-08-04
, 14:41
|
Posts: 1,335 |
Thanked: 3,931 times |
Joined on Jul 2010
@ Brittany, France
|
#195
|
The Following User Says Thank You to Kabouik For This Useful Post: | ||
|
2017-08-04
, 16:16
|
Posts: 1,335 |
Thanked: 3,931 times |
Joined on Jul 2010
@ Brittany, France
|
#196
|
[nemo@Sailfish ~]$ devel-su Password: [root@Sailfish nemo]# mount -o remount,exec /media/sdcard/2d4ffa5e-6ead-48da-bdd6-ce1c5a775849 [root@Sailfish nemo]# sh /media/sdcard/2d4ffa5e-6ead-48da-bdd6-ce1c5a775849/easychroot/DeskChroot.sh 1268 720 startxfce4 rm: cannot remove '/run/user/100000/wayland-0.lock': No such file or directory declare -x DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/100000/dbus/user_bus_socket" declare -x EGL_DRIVER="egl_gallium" declare -x EGL_PLATFORM="wayland" declare -x FF_MEMLESS_SETTINGS="/usr/lib/qt5/plugins/feedback/qtfeedback-l500d.ini" declare -x G_BROKEN_FILENAMES="1" declare -x HISTCONTROL="ignoredups" declare -x HISTSIZE="1000" declare -x HOME="/root" declare -x HOSTNAME="" declare -x LOGNAME="nemo" declare -x LS_COLORS="no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:" declare -x OLDPWD declare -x PATH="/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin" declare -x PWD="/" declare -x QMLSCENE_DEVICE="customcontext" declare -x QML_FIXED_ANIMATION_STEP="no" declare -x QSG_FIXED_ANIMATION_STEP="no" declare -x QT_DF_BASE="0.5" declare -x QT_DF_BASEDEVIATION="0.025" declare -x QT_DF_RANGE="0.08" declare -x QT_DF_SCALEFORMAXDEV="0.37" declare -x QT_DF_SCALEFORNODEV="0.6" declare -x QT_GSTREAMER_CAMERABIN_FLAGS="15" declare -x QT_GSTREAMER_CAMERABIN_SRC="droidcamsrc" declare -x QT_GSTREAMER_PLAYBIN_FLAGS="0" declare -x QT_IM_MODULE="Maliit" declare -x QT_MESSAGE_PATTERN="[%{if-debug}D%{endif}%{if-info}I%{endif}%{if-warning}W%{endif}%{if-critical}C%{endif}%{if-fatal}F%{endif}] %{function}:%{line} - %{message}" declare -x QT_QPA_PLATFORM="wayland" declare -x QT_WAYLAND_DISABLE_WINDOWDECORATION="1" declare -x QT_WAYLAND_FORCE_DPI="96" declare -x QT_WAYLAND_RESIZE_AFTER_SWAP="1" declare -x SHELL="/bin/bash" declare -x SHLVL="4" declare -x SSH_CLIENT="10.0.0.8 50734 22" declare -x SSH_CONNECTION="10.0.0.8 50734 10.0.0.114 22" declare -x SSH_TTY="/dev/pts/0" declare -x TERM="xterm" declare -x USER="root" declare -x WAYLAND_DISPLAY="../../display/wayland-0" declare -x XDG_RUNTIME_DIR="/run/user/100000" /usr/share/easychroot/scripts/start_xwayland_user_shell.sh: line 15: 7220 Segmentation fault kwin_wayland --xwayland --height "$Height" --width "$Width" xhost: unable to open display ":0" declare -x DISPLAY=":0" declare -x HOME="/home/nemo" declare -x HOSTNAME="" declare -x LOGNAME="nemo" declare -x LS_COLORS="no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:" declare -x MAIL="/var/mail/nemo" declare -x OLDPWD declare -x PATH="/sbin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/nemo/bin" declare -x PWD="/" declare -x SHELL="/bin/bash" declare -x SHLVL="1" declare -x SUDO_COMMAND="/sbin/bash /usr/share/easychroot/scripts/start_de.sh startxfce4" declare -x SUDO_GID="0" declare -x SUDO_UID="0" declare -x SUDO_USER="root" declare -x TERM="xterm" declare -x USER="nemo" declare -x USERNAME="nemo" declare -x XDG_RUNTIME_DIR="/run/user/100000" /sbin/startxfce4: X server already running on display :0 xrdb: Bad file descriptor xrdb: Can't open display ':0' /etc/X11/xinit/xinitrc.d/50-systemd-user.sh: line 3: 7351 Segmentation fault systemctl --user import-environment DISPLAY XAUTHORITY /etc/X11/xinit/xinitrc.d/50-systemd-user.sh: line 7: 7353 Segmentation fault dbus-update-activation-environment DISPLAY XAUTHORITY /etc/xdg/xfce4/xinitrc: line 121: 7355 Segmentation fault xfce4-session [root@Sailfish nemo]#
The Following User Says Thank You to Kabouik For This Useful Post: | ||
|
2017-08-04
, 22:48
|
Posts: 81 |
Thanked: 342 times |
Joined on Jul 2012
@ Finland
|
#197
|
|
2017-08-04
, 23:17
|
Posts: 1,335 |
Thanked: 3,931 times |
Joined on Jul 2010
@ Brittany, France
|
#198
|
[root@Sailfish scripts]# rm /run/user/100000/wayland-0.lock rm: cannot remove '/run/user/100000/wayland-0.lock': No such file or directory
[root@Sailfish scripts]# kwin_wayland --xwayland --height 1268 --width 720 & [1] 11469
|
2017-08-09
, 17:30
|
Posts: 1,335 |
Thanked: 3,931 times |
Joined on Jul 2010
@ Brittany, France
|
#199
|
The Following 2 Users Say Thank You to Kabouik For This Useful Post: | ||
|
2017-08-09
, 22:27
|
Posts: 29 |
Thanked: 126 times |
Joined on Feb 2013
|
#200
|
The Following 3 Users Say Thank You to one_with_linux For This Useful Post: | ||
I don't know the specific details of *that* chroot, but most of the time it requires some specific access rights (e.g.: a different owner user:group) and you need root rights to set those, otherwise tar will complain that it cannot change the rights to the untarred files .
- some will just call "chroot" to start the environment inside a new path name space (i.e.: the will see the content of the tar as "/usr/lib64" instead of "/opt/easychroot/Arch/usr/lib64")
that is simply a change as you mention.
- some chroot might entirely rely on environment variables, like "LD_LIBRARY_PATH" to indicate where to fetch the .so dynamic libraries (e.g.: "/opt/easychroot/Arch/lib64" instead of "/usr/lib64")
- but other my use Rpaths : search patch directly set inside an elf executable. (i.e.: the files in "/opt/easychroot/Arch/bin" are designed to search first in "/opt/easychroot/Arch/lib64". If the libraries are instead in "/media/sdcard/XXX/easychroot/Arch/lib64", the executable will miss them and default to the next search path which will lead to the Phone's own /usr/lib64, which won't contain what you need).
I'll have to check exactly how the archive work.
Usually debian works like the first case above. (it's basically a regular "/ust" debian tree, put into a different path that you "chroot" into).
Gentoo works using a mix of the other 2 solution (it's basically gentoo, but recompiled to work out of a sub-directory instead of /usr).
The best would be to head for your solution B :
But you could as well put a symlink :
And both work regardless of how the Arch chroot is organised.
By default, the mount script ( /usr/sbin/sd-mount ) uses noexec.