Page 1 of 2

Howto: install xorg and xfce in nemesis base module

Posted: 09 Oct 2015, 18:22
by francois
To install xorg and xfce in nemesis base only system is easy. Install nemesis base into your favorite support: usb or hdd. CD should be possible but more complicated because of the need for persistence.

A. USB INSTALL.
Installing to usb is as usual straightforward with the porteus installer.

B. HDD INSTALL.
1.0 install the nemesis media.
For hdd install, from linux use mloop to install the boot, config and nemesis folders on the partition of your choice. Unless you prefer to boot from iso, this way install the nemesis.iso on the partition of your choice.

2.0 Bootloader modifications for a grub2 installation:
Then modify your bootloader according to the usual porteus cheatcodes. What is important is the use of the changes= cheatcode. The EXIT option does not work for now, just point to the directory of your choice (on linux filesystem). As an example with grub 2 you will have to modify the 40_custom from this other linux installation that I have on your computer (in my case manjaro):

Code: Select all

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

# path to the partition holding ISO images (using UUID)
probe -u $root --set=rootuuid
set imgdevpath="/dev/disk/by-uuid/$rootuuid"

menuentry "porteus NEMESIS 64bit_v31  XFCE" {
set root=(hd0,6)
linux /boot/syslinux/vmlinuz from=/dev/sda6/64bit_v31_nemesis changes=/64bit_v31_nemesis login=root
initrd /boot/syslinux/initrd.xz
}
menuentry "porteus NEMESIS 64bit_v31  XFCE" {
set root=(hd0,6)
linux /64bit_v31_nemesis/boot/syslinux/vmlinuz from=/dev/sda6/64bit_v31_nemesis login=root
initrd /64bit_v31_nemesis/boot/syslinux/initrd.xz
}
menuentry "Porteus NEMESIS BASE PMAN x86-64 ISO" {
insmod part_msdos
insmod ext2
set root=(hd0,1)
set isofile="/ISO/nemesis-v3.1-x86_64.iso"
search --no-floppy --file --set=root $isofile
loopback loop $isofile
linux (loop)/boot/syslinux/vmlinuz from=$isofile login=root
initrd (loop)/boot/syslinux/initrd.xz
}
You have within manjaro to update-grub:

Code: Select all

update-grub
3.0 WORKING WITH NEMESIS
Once in the command line make sure you have internet connection and load the pman package database:
3.1 Internet connection.

Code: Select all

#ping www.google.com
(ctrl-C will stop the thing)

If not see first post of thread:
http://forum.porteus.org/viewtopic.php?f=137&t=5080
Connecting to the internet thru dhcpcd:

Code: Select all

#dhcpcd eth0
3.2 Update database for pman:
setup-pman

2.0 Installing the necessary packages.
Then you will simply use pacman, the archlinux package manager directly:

Code: Select all

pman -S xorg-server         #this will download necessary packages for xorg, strip them and convert them into a module.
pman -S  xfce4 leafpad
#this will produce the xfce module with a simple text editor leafpad (works fine under root mode)

3.0 To start xfce:

Code: Select all

startxfce4
At reboot the change folder being there all you will have to do in command line is startxfce4.

If you would like autologin in xfce, see:
http://forum.porteus.org/viewtopic.php?f=137&t=5087

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 13 Oct 2015, 19:02
by francois
@brokenman:
I do not know if this is of peculiar interest but with nemesis-v1.1.0-151012-x86_64 version. This procedure of mine to build xorg and xfce does not work no more. Nemesis into vbox gives an error message about not being able to detect screens.

The use of:
Xorg :0 -configure and transfering xorg.conf.new as xorg.conf for in etc X11 will not work
xorg.vesa and xorg.conf from porteus3.1 neither.

I will try the xorg.conf from a non vbox porteus install.
Thanks.

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 14 Oct 2015, 00:30
by ncmprhnsbl
i think you need virtualbox-guest-utils to get X working, i dont think vesa works in VB any more (though i cant find a direct reference to this)
and shouldn't need any Xorg.conf ..

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 14 Oct 2015, 01:00
by francois
@ncm...:
I am not able to use the linux-headers yet as they are necessary to install linux guest with custom kernel. I will work on it, maybe there is something that I do not catch in the instructions:
viewtopic.php?f=137&t=5094

It used to work with the precedent version 151012. Presently, I am not on the same linuxbox.

With nemesis-v1.1.1-151013-x86_64.iso everything works fine on hdd with set isofile="/ISO/nemesis-v3.1-x86_64.iso":
installation with persistance works perfectly on the msi 340x.

Good job brokenman. :D

Testing now on vbox 151013.

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 24 Oct 2015, 21:19
by ncmprhnsbl
http://forum.porteus.org/viewtopic.php? ... 011#p38003
to anyone who finds they cannot use 'activate' while in X, current workaround is to exit X (logout,or ctrl+alt+backspace) then activate..

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 24 Oct 2015, 21:57
by brokenman
Or try this as root:

sed -i 's@xactivate@aufs-insert@g' /usr/local/bin/activate

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 25 Oct 2015, 11:30
by beny
francois you can do this via mc in the bottom of mc you have a cli: activate the modules you need and activate work try,you can use the shift button to change panel and f5 to move packages from mount your device/archeus/base/modules,btw you can use another tty

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 30 Oct 2015, 04:06
by francois
@brokenman:

Code: Select all

root /mnt/sda2/64bit_v31_nemesis # ls
boot  changes  config  modulestmp  nemesis  optional
root /mnt/sda2/64bit_v31_nemesis #
root /mnt/sda2/64bit_v31_nemesis # /usr/local/bin/dir2xzm changes changes.xzm

 ${2%/*} is not writable. 
@ncm...:
ctrl+alt+backspace does not work to get out of X.

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 30 Oct 2015, 10:12
by brokenman
Gotcha. Thanks Francois. I have an idea what the problem is. Will check it out.

Re: Howto: install xorg and xfce in nemesis (provisory)

Posted: 01 Nov 2015, 01:29
by francois
Updated post for nemesis version 1.1.2

Re: Howto: install xorg and xfce in nemesis base module

Posted: 11 Dec 2015, 16:45
by francois
@brokenman:

Since nemesis 3.3, I am unable to boot with xfce4 with the kernel, core and xorg modules. I have built with pman the xfce4 module.

1.0 Without lxde module:
I get the following error message when I try to get into xfce with the startxfce4 command:

...
Using system config directory /usr/share/x11/xorg.conf.d
error settin MTRR )base = 0x30000000, siz3 0x00c00000, type = 10 No such device or address (6) ...
... error while loading libwinck-.1.so.22

Adding the library from the lxde.xzm module, I will get libXss.so.1 missing and then adding libXss.so.1, I will be stuck with the same missing libXss.so.1

Adding all the libraries of lxde.xzm, it does not solve the problem.

Generating xorg.conf with Xort :0 -configure will not solve the problem either.

2.0 With the lxde module, I can boot into xfce4. To do this I remove lxdm, because eventually I would prefer to have sddm which runs every type of DE, but is preferred for kde5-plasma:

Code: Select all

systemctl isolate multi-user.target   #to get into non-graphical command line

systemctl disable lxdm                      #to disable lxdm
systemctl stop lxdm
startxfce4                                           #to start xfce4
3.0 My existential question:
What files are missing to the /porteus/base folder without lxde in order to boot any other DE without the lxdm login manager?

Re: Howto: install xorg and xfce in nemesis base module

Posted: 11 Dec 2015, 19:28
by brokenman
error while loading libwinck-.1.so.22
So you need to install the package: libwnck

If you boot into a minimal openbox environment (000,001,002) and then install the xfce base you should get a working xfce. I would try this using regular pacman first and see that it is working. After installing xfce follow the arch guide for starting xfce. Then log back out to console from openbox and run startx.

Re: Howto: install xorg and xfce in nemesis base module

Posted: 11 Dec 2015, 22:30
by francois
Curiously libwnck was already there and I was unable to build from the openbox environment.

Is there a way to reinstall .xinitrc with exec startxfce4 as deciding which of openbox or xfce will boot?

Thanks.

Re: Howto: install xorg and xfce in nemesis base module

Posted: 12 Dec 2015, 02:15
by brokenman
echo "exec startxfce4" > /etc/X11/xinit/xinitrc
startx

That's why I said to read the arch wiki about installing xfce4. :)

Re: Howto: install xorg and xfce in nemesis base module

Posted: 12 Dec 2015, 22:23
by francois
I have built from openbox only withouth the 003-lxde.xzm module:
xfce4.xzm
This was not an easy task as in the openbox environment the xterminal does not show some characters. But I did. :wink:

I have tried with /etc/X11/xinit/xinitrc:

Code: Select all

#exec openbox-session
exec startxfce4

Code: Select all

exec openbox-session
exec startxfce4
error message is that there is no starxfce4 command.

With xfce4.xzm and:

Code: Select all

exec openbox-session
I boot in a open box environment and have access to thunar but there is no xfce4 panel menu.

Thanks