Author Topic: New AUR package "mhwd-chroot" to test !!!  (Read 11334 times)

0 Members and 1 Guest are viewing this topic.

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
New AUR package "mhwd-chroot" to test !!!
« on: 22. March 2015, 14:29:47 »
Hi all  :)

https://aur.archlinux.org/packages/mhwd-chroot/

For the moment, tested with xfce and lxqt only. To install :

Code: [Select]
yaourt -S mhwd-chroot
Screenshots :





It's more sane to quit the chroot with Ctrl-D or exit than to close the windows.


For more infos on chroot, see HERE;)
« Last Edit: 22. March 2015, 14:50:57 by Esclapion »
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #1 on: 22. March 2015, 18:56:14 »
this works beautifully.

i have tested it in virtualbox:
1. i installed manjaro net edition with lxqt packages from the AUR in virtualbox.
2. i put the latest manjaro lxqt iso image in virtualbox and booted it. then, i installed mhwd-chroot in it. i started "chroot" from the start menu and i could access 1. i could update 1. and install packages easily.

i have 2 questions:
- is there a terminal command to start mhwd-chroot from the terminal?
- is it possible to not be logged in as root? (so i can build and install packages from the AUR without being root)
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #2 on: 22. March 2015, 19:10:50 »
Thanks for your tries  :)

1) to chroot in the same terminal, you can call :

Code: [Select]
[sudo] mhwd-chroot-shell
2) from the terminal, to chroot in a new window :

Code: [Select]
[gksu|sudo] mhwd-chroot
3) from the manual :

Quote
Only a privileged process (Linux: one with the CAP_SYS_CHROOT capability) may call chroot().

So, it seems not possible as simple user.
« Last Edit: 22. March 2015, 19:19:37 by Esclapion »
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #3 on: 22. March 2015, 22:57:28 »
i did some more testing with xterm, lxterminal, qterminal, and urxvt in the latest manjaro lxqt.
the commands you mentioned worked in all of them, except urxvt:
Quote
[manjaro@manjaro ~]$ sudo mhwd-chroot
/usr/bin/mhwd-chroot: Zeile 18: rxvt: Kommando nicht gefunden.
Quote
[manjaro@manjaro ~]$ gksu mhwd-chroot

(gksu:3311): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(gksu:3311): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/bin/mhwd-chroot: Zeile 18: rxvt: Kommando nicht gefunden.
but "sudo mhwd-chroot-shell works.

i remember it worked in my last test in urxvt. this is strange.


p.s.: i translate this line:
Code: [Select]
Zeile 18: rxvt: Kommando nicht gefunden.
Code: [Select]
line 18: rxvt: command not found.
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #4 on: 22. March 2015, 23:03:50 »
another question:
is there a way to specify the root partition of the manjaro i want to chroot into?

something like
Code: [Select]
sudo mhwd-chroot sda3
or
Code: [Select]
sudo mhwd-chroot /dev/sda3
would make sense.
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #5 on: 22. March 2015, 23:35:40 »
1) I think the content of thour environment variable $COLORTERM is bad. Installation problem ? I must add a test on that.

2) no simple.  :-\  All is mounted (/boot, /home, etc...); but the chroot will always be done on the partition containing really the folder /etc.
« Last Edit: 27. March 2015, 20:48:02 by Esclapion »
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #6 on: 23. March 2015, 00:43:08 »
All is mounted (/boot, /home, etc...); but the chroot will always be done on the partition containing really the folder /etc.
ah. ok.
i am just concerned about what happens, when there are 2 or more linux installations on my computer. what will happen?
will mhwd-chroot choose the first /etc it finds (other than the system, which executes mhwd-chroot)?

it is nice, mhwd-chroot shows me the root (or rather /etc) partition.
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #7 on: 23. March 2015, 02:17:56 »
Quote
i am just concerned about what happens, when there are 2 or more linux installations on my computer. what will happen?

I have 3 Linux installations on my PC, and I'm now on the main, sda6 :



maybe I will add more details in the future, but >= 3  Linux installations is a rare case.*

(edit)
Btw, I find a bug : It's not Entrer (french) but Enter (english).  ;D

* I have also a W7, but it's ignored by the tool.
« Last Edit: 23. March 2015, 02:23:49 by Esclapion »
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #8 on: 23. March 2015, 13:53:06 »
this looks great!
i know that 3 linux installations on one systems are a rare case, but this makes mhwd-chroot feel more complete.


if you are looking for better english, just replace "list of the found systems" with
Code: [Select]
List of found systems
or
Code: [Select]
Found systems
or
Code: [Select]
Found Linux systems
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #9 on: 23. March 2015, 22:22:04 »
New version 1.1-1.



Some cosmetics changes (label added in the list, etc...), filter to avoid a bad value in $COLORTERM, better umount, comment lines of fstab filtered.
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline Loup

  • Vollwertiges Mitglied
  • ***
  • Posts: 238
  • Desktop: xfce
  • GPU Card: nvidia GeForce GT 520
  • GPU driver: non-free driver
  • Kernel: 4.4 x64
  • Skill: Novice
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #10 on: 28. March 2015, 00:00:34 »
Hi guys, trying to install mhwd-chroot on a live system to access logs of non bootable system.

I get this error when installing mhwd


Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #11 on: 28. March 2015, 02:25:23 »
It's because yaourt is not good installed : it needs base-devel or a part of this, at least.

In your case, it miss binutils, to install with pacman :

Code: [Select]
sudo pacman -S binutils
But it's strange that you don't have that.   :o
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline Loup

  • Vollwertiges Mitglied
  • ***
  • Posts: 238
  • Desktop: xfce
  • GPU Card: nvidia GeForce GT 520
  • GPU driver: non-free driver
  • Kernel: 4.4 x64
  • Skill: Novice
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #12 on: 28. March 2015, 04:21:08 »

But it's strange that you don't have that.   :o

@ escalapion Im using manjaro-xfce-0.9.0-dev-x86_64.iso from 22-03-2015 to test calamares.

I'm trying to gather info to help resolve this issue : https://forum.manjaro.org/index.php?topic=21531.15

Thank's for your help
« Last Edit: 28. March 2015, 04:26:22 by Loup »

Offline Loup

  • Vollwertiges Mitglied
  • ***
  • Posts: 238
  • Desktop: xfce
  • GPU Card: nvidia GeForce GT 520
  • GPU driver: non-free driver
  • Kernel: 4.4 x64
  • Skill: Novice
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #13 on: 28. March 2015, 19:33:04 »
Hi guys,  :-[ i'm sorry this disturb again ... another error trying to install mhwd-chroot from still same live installer.

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: New AUR package "mhwd-chroot" to test !!!
« Reply #14 on: 28. March 2015, 19:56:36 »
Always another piece of yaourt missing...  OK, we can use the simplest solution :

Code: [Select]
sudo pacman -S base-devel
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)