Howto: install xorg and xfce in nemesis base module

Arch based Porteus community project
User avatar
francois
Contributor
Contributor
Posts: 4935
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Howto: install xorg and xfce in nemesis base module

Post#1 by francois » 09 Oct 2015, 18:22

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:
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:
viewtopic.php?f=137&t=5087
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4935
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#2 by francois » 13 Oct 2015, 19:02

@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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 842
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

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

Post#3 by ncmprhnsbl » 14 Oct 2015, 00:30

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 ..
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 4935
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#4 by francois » 14 Oct 2015, 01:00

@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:
https://forum.porteus.org/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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 842
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

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

Post#5 by ncmprhnsbl » 24 Oct 2015, 21:19

viewtopic.php?f=137&t=5072&p=38011#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..
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#6 by brokenman » 24 Oct 2015, 21:57

Or try this as root:

sed -i 's@xactivate@aufs-insert@g' /usr/local/bin/activate
How do i become super user?
Wear your underpants on the outside and put on a cape.

beny
Full of knowledge
Full of knowledge
Posts: 723
Joined: 02 Jan 2011, 11:33
Location: italy

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

Post#7 by beny » 25 Oct 2015, 11:30

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

User avatar
francois
Contributor
Contributor
Posts: 4935
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#8 by francois » 30 Oct 2015, 04:06

@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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#9 by brokenman » 30 Oct 2015, 10:12

Gotcha. Thanks Francois. I have an idea what the problem is. Will check it out.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4935
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#10 by francois » 01 Nov 2015, 01:29

Updated post for nemesis version 1.1.2
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 4935
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#11 by francois » 11 Dec 2015, 16:45

@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?
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#12 by brokenman » 11 Dec 2015, 19:28

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4935
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#13 by francois » 11 Dec 2015, 22:30

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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5455
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#14 by brokenman » 12 Dec 2015, 02:15

echo "exec startxfce4" > /etc/X11/xinit/xinitrc
startx

That's why I said to read the arch wiki about installing xfce4. :)
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
francois
Contributor
Contributor
Posts: 4935
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#15 by francois » 12 Dec 2015, 22:23

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
Voltaire: Le mieux est l'ennemi du bien.

Post Reply