Page 3 of 9
Re: Nemesis Mate
Posted: 21 Dec 2016, 15:11
by Jack
ncmprhnsbl wrote:here, try this one
003-mate-3.xzm 87.5 mb
Jack wrote:What I can't understand but what happen to (Documents, Pictures. Video and the other) directory's
yeah they should get created by some xdg process, i think...... Blaze knows more about this...
personally, if i want a directory i just create it....
Well I try your 003-mate-8.xzm and right into guest and the I switch to root to logoff because you couldn't do it in guest. And that was great work.
To get it to auto start did you just edit the
xinitrc file? Or was there any thing else you did?
Re: Nemesis Mate
Posted: 21 Dec 2016, 16:53
by Blaze
ncmprhnsbl wrote:Jack wrote:What I can't understand but what happen to (Documents, Pictures. Video and the other) directory's
yeah they should get created by some xdg process, i think...... Blaze knows more about this...
personally, if i want a directory i just create it....
You can make these folders via command
For automatically creating of these folders - need to add this code to /etc/rc.d/rc.M (Script in OpenRC of Porteus Manjaro Linux must be other)
Code: Select all
# Update xdg directories if they exist
for a in `ls -1 /home` root; do
if [ `getent passwd $a` ]; then
[ -e /usr/bin/xdg-user-dirs-update ] && su -l $a -c '/usr/bin/xdg-user-dirs-update --force &'
fi
done
This code I take from Porteus (Slackware), and probably,
su need to replace on
root (Porteus Manjaro Linux)
Jack wrote:To get it to auto start did you just edit the xinitrc file? Or was there any thing else you did?
I will answer for
ncmprhnsbl
/003-mate/etc/X11/xinit/
xinitrc from my module with mate
Code: Select all
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec mate-session
# exec enlightenment_start
# exec i3
# exec xmonad
# exec startlxqt
# exec startlxde
# exec awesome
# exec bspwm
# exec gnome-session
# exec gnome-session --session=gnome-classic
# exec startkde
# exec startxfce4
# exec startfluxbox
# exec openbox-session
# exec cinnamon-session
# exec pekwm
# exec catwm
# exec dwm
# exec startede
# exec icewm-session
# exec jwm
# exec monsterwm
# exec notion
# exec startdde
# deepin-session
Code: Select all
chmod 644 /003-mate/etc/X11/xinit/xinitrc
chown root:root /003-mate/etc/X11/xinit/xinitrc
Code: Select all
root@porteus:~# ls -lh /home/guest/Загрузки/003-mate-3/etc/X11/xinit/xinitrc
-rw-r--r-- 1 root root 662 дек 20 22:12 /home/guest/Загрузки/003-mate-3/etc/X11/xinit/xinitrc
root@porteus:~#
Plus lxdm-consolekit-0.5.3-1 (Why not Slim (pacman -S slim)?)
Code: Select all
root@porteus:~# find /home/guest/Загрузки/003-mate-3/var/lib/pacman/local -name *lxdm*
/home/guest/Загрузки/003-mate-3/var/lib/pacman/local/lxdm-consolekit-0.5.3-1
root@porteus:~#
+ mate-terminal-1.16.1-2
Code: Select all
root@porteus:~# find /home/guest/Загрузки/003-mate-3/var/lib/pacman/local -name *terminal*
/home/guest/Загрузки/003-mate-3/var/lib/pacman/local/mate-terminal-1.16.1-2
root@porteus:~#
+ leafpad-0.8.18.1-5
Code: Select all
root@porteus:~# find /home/guest/Загрузки/003-mate-3/var/lib/pacman/local -name *leafpad*
/home/guest/Загрузки/003-mate-3/var/lib/pacman/local/leafpad-0.8.18.1-5
root@porteus:~#
and plus deps vte3 and pcre2, and gtk-engine-murrine to fix the theme...
ncmprhnsbl wrote:good news...
i took Blazes' mate module , added some things, in particular, lxdm-consolekit, and got autologin to guest working that way...
also added mate-terminal and leafpad for functionality, plus deps vte3 and pcre2, and gtk-engine-murrine to fix the theme..
stripped out : locales, help, gir, some backgrounds, (maybe more i forget) got the size to 91 mb..
could get slimmer by stripping out the icons somehow, need to look into that...
hang tight and i'll upload it soon..
btw , did need to update and merge the caches for mate-terminal to work(gschemas) and something else?(i forget)..
about WIFI from terminal or console do: nmtui .. its a ncurses gui for networkmanager
Re: Nemesis Mate
Posted: 21 Dec 2016, 17:16
by Jack
@
Blaze
Thanks for all that info. I will work on it today. I will get back with what changes I do my build.
@
all
Here what I did so far. Here is what I built or what I did.
Code: Select all
root ~ # ls /mnt/sdb1/porteus/base
003-mate.xzm
003-mate-xtra.xzm
009-caches.xzm
root ~ #
Code: Select all
root ~ # ls /mnt/sdb1/porteus/modules
aspell-en-2016.06.26-1-x86_64.pkg.xzm
audacious-bundle.xzm
firefox_bundle.xzm
flashplugin-24.0.0.186-1-x86_64.pkg.xzm
gftp-2.0.19-7-x86_64.pkg.xzm
gtk-engine-murrine-0.98.2-2-x86_64.pkg.xzm
libreoffice_bundle.xzm
pacman-settings.xzm
transmission-gtk-2.92-5-x86_64.pkg.xzm
zchanges.xzm
root ~ #
When I boot up I login as
root but
it won't let me login as guest. After login I just type
startx.
zchanges.xzm this has all my setting plus it has
exec mate-session so I can start
Mate.
I like to remove these
UXTerm and
XTerm in it can be done and I don't need them.
Re: Nemesis Mate
Posted: 21 Dec 2016, 18:02
by Jack
Blaze wrote:You can make these folders via command
That work great for
root but is there a
command for
guest?
For automatically creating of these folders - need to add this code to /etc/rc.d/rc.M (Script in OpenRC of Porteus Manjaro Linux must be other)
Code: Select all
# Update xdg directories if they exist
for a in `ls -1 /home` root; do
if [ `getent passwd $a` ]; then
[ -e /usr/bin/xdg-user-dirs-update ] && su -l $a -c '/usr/bin/xdg-user-dirs-update --force &'
fi
done
This code I take from Porteus (Slackware), and probably,
su need to replace on
root (Porteus Manjaro Linux)
I could not find
/etc/rc.d/rc.M or do I do this
Code: Select all
root / #
root / # cd etc
root /etc # mkdir rc.d
root /etc # cd rc.d
root /etc/rc.d # mkdir rc.M
root /etc/rc.d # cd rc.M
root /etc/rc.d/rc.M #
But what is the name of the script? So I can put the script inside of
rc.M?
Or is the script called rc.M? Will it create both
root and
guest?
Code: Select all
# Update xdg directories if they exist
for a in `ls -1 /home` root; do
if [ `getent passwd $a` ]; then
[ -e /usr/bin/xdg-user-dirs-update ] && su -l $a -c '/usr/bin/xdg-user-dirs-update --force &'
fi
done
/003-mate/etc/X11/xinit/xinitrc from my module with mate
Code: Select all
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec mate-session
# exec enlightenment_start
# exec i3
# exec xmonad
# exec startlxqt
# exec startlxde
# exec awesome
# exec bspwm
# exec gnome-session
# exec gnome-session --session=gnome-classic
# exec startkde
# exec startxfce4
# exec startfluxbox
# exec openbox-session
# exec cinnamon-session
# exec pekwm
# exec catwm
# exec dwm
# exec startede
# exec icewm-session
# exec jwm
# exec monsterwm
# exec notion
# exec startdde
# deepin-session
Code: Select all
chmod 644 /003-mate/etc/X11/xinit/xinitrc
chown root:root /003-mate/etc/X11/xinit/xinitrc
Code: Select all
root@porteus:~# ls -lh /home/guest/Загрузки/003-mate-3/etc/X11/xinit/xinitrc
-rw-r--r-- 1 root root 662 дек 20 22:12 /home/guest/Загрузки/003-mate-3/etc/X11/xinit/xinitrc
root@porteus:~#
It didn't
auto login I still had to
login and type
startx.
Re: Nemesis Mate
Posted: 21 Dec 2016, 19:22
by Blaze
Jack, at this moment I have a many work at job.
The end and the beginning of the year is intense period of time...
When I will find a free time, I will check this.
If you want you can check these directories
Code: Select all
/etc/openrc/conf.d
/etc/openrc/rc.d
Re: Nemesis Mate
Posted: 21 Dec 2016, 19:37
by Jack
Blaze wrote:Jack, at this moment I have a many work at job.
The end and the beginning of the year is intense period of time...
When I will find a free time, I will check this.
If you want you can check these directories
Code: Select all
/etc/openrc/conf.d
/etc/openrc/rc.d
Don't worry and I understand. I know most of the user or member still work at some kind of job but I don't.
If you want you can check these directories
Code: Select all
/etc/openrc/conf.d
/etc/openrc/rc.d
I don't even see these two lines in
etc.
Re: Nemesis Mate
Posted: 22 Dec 2016, 02:07
by ncmprhnsbl
just checking out porteus3.2 mate module, and i see in
/etc/xdg/autostart a
xdg-user-dirs-update.desktop :
Code: Select all
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=XDG User Directories
TryExec=xdg-user-dirs-update
Exec=xdg-user-dirs-update
Icon=folder
Terminal=false
Comment=Create XDG user directories
Type=Application
OnlyShowIn=MATE;
this should do the trick..
Re: Nemesis Mate
Posted: 22 Dec 2016, 17:27
by Jack
All I did or change to my build was this.
Code: Select all
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec mate-session
# exec enlightenment_start
# exec i3
# exec xmonad
# exec startlxqt
# exec startlxde
# exec awesome
# exec bspwm
# exec gnome-session
# exec gnome-session --session=gnome-classic
# exec startkde
# exec startxfce4
# exec startfluxbox
# exec openbox-session
# exec cinnamon-session
# exec pekwm
# exec catwm
# exec dwm
# exec startede
# exec icewm-session
# exec jwm
# exec monsterwm
# exec notion
# exec startdde
# deepin-session
But then I found this and could the problem be in here? I found this here
/usr/local/bin/xdm
Code: Select all
#!/bin/bash
# xdm
#
# Custom xdm script to start desktop in Porteus
# Author: brokenman@porteus.org
# Check for runlevel 3 cheatcode
egrep -qo " 3( |\$)" /proc/cmdline && exit
# Check for login cheatcode
xlogin=`egrep -o " login=[^ ]+" /proc/cmdline | cut -d= -f2`
[ -z $xlogin ] && xlogin=`grep "^login=" /etc/porteus.d/login 2>/dev/null | cut -d= -f2`
for dm in gdm kdm lightdm lxdm sddm; do <--start
[ "$dm" = lxdm ] && sed -i '/autologin=/ s/.*autologin=.*/autologin='$xlogin'/g' /etc/lxdm/lxdm.conf <-- here
[ "$dm" = sddm ] && sed -i '/User=/ s/.*User=.*/User='$xlogin'/g' /etc/sddm.conf <-- or here
command -pv $dm >/dev/null && { export XDG_DM=$dm; $dm; break; } <-- or here
done <--end
# If no DM was found, try to startx based on xinitrc
if [ -z $XDG_DM ]; then
if [ "$xlogin" ]; then
while [ 1 ]; do
su $xlogin - -c ". /etc/profile && ck-launch-session dbus-launch /usr/bin/startx -- vt7 > /dev/null 2>&1"
done
else
while [ 1 ]; do
su guest - -c ". /etc/profile && ck-launch-session dbus-launch /usr/bin/startx -- vt7 > /dev/null 2>&1"
done
fi
fi
Re: Nemesis Mate
Posted: 22 Dec 2016, 20:28
by ncmprhnsbl
well spotted, this explains why lxdm 'just works'
package = xorg-xdm should fix this... might add it to 002-gui.xzmwrong
/usr/local/xdm script is instead of xorg-xdm,
and quite happily auto-logson guest if there is lxdm or sddm present but only auto-logson root if not(with the login=root cheat)(this may be a bug or a feature)
and a reason why slim wouldnt work oftb, without modifying this script...
Re: Nemesis Mate
Posted: 23 Dec 2016, 05:29
by Jack
@ncmprhnsbl
I want to thank you for your info on WiFi. I ran pman -S network-manager-applet I now have wireless on my version of Nemesis Mate on my laptop.
Re: Nemesis Mate
Posted: 23 Dec 2016, 17:50
by Blaze
I'm under Nemesis (MATE - it's my 1st experience).
For
user-dirs and
x-gvfs-show I have this suggestion - in the
/etc/X11/xinit/xinitrc need to add
Code: Select all
# Update xdg directories if they exist
if [ -x /usr/bin/xdg-user-dirs-update ]; then
/usr/bin/xdg-user-dirs-update --force
fi
# Add x-gvfs-show to the /etc/fstab for display drives in the left side panel of file manager
if [ -f /etc/fstab ]; then
for a in `cat /etc/fstab |sed '/Device partitions/,/^$/!d'|grep '/dev/'|cut -d ' ' -f4|sort -u|grep -v 'x-gvfs-show'`; do
sed -i '/Device partitions/,/^$/ '"s/$a/$a,comment=x-gvfs-show/g"'' /etc/fstab;
done
else
echo "MISSING /etc/fstab"
fi
Probably, you will find a better place, where this code can be placed.
/etc/X11/xinit/xinitrc
Code: Select all
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Update xdg directories if they exist
if [ -x /usr/bin/xdg-user-dirs-update ]; then
/usr/bin/xdg-user-dirs-update --force
fi
# Add x-gvfs-show to the /etc/fstab for display drives in the left side panel of file manager
if [ -f /etc/fstab ]; then
for a in `cat /etc/fstab |sed '/Device partitions/,/^$/!d'|grep '/dev/'|cut -d ' ' -f4|sort -u|grep -v 'x-gvfs-show'`; do
sed -i '/Device partitions/,/^$/ '"s/$a/$a,comment=x-gvfs-show/g"'' /etc/fstab;
done
else
echo "MISSING /etc/fstab"
fi
exec mate-session
# exec enlightenment_start
# exec i3
# exec xmonad
# exec startlxqt
# exec startlxde
# exec awesome
# exec bspwm
# exec gnome-session
# exec gnome-session --session=gnome-classic
# exec startkde
# exec startxfce4
# exec startfluxbox
# exec openbox-session
# exec cinnamon-session
# exec pekwm
# exec catwm
# exec dwm
# exec startede
# exec icewm-session
# exec jwm
# exec monsterwm
# exec notion
# exec startdde
# deepin-session
Jack wrote:But then I found this and could the problem be in here? I found this here /usr/local/bin/xdm
and I was wrong about
Code: Select all
/etc/openrc/conf.d
/etc/openrc/rc.d
all init scripts are located here
/etc/init.d/
Code: Select all
root /home/guest # ls /etc/init.d/
NetworkManager modules
acpid modules-load
alsasound mount-ro
binfmt mtab
boot-network net-online
bootmisc net.lo
cgmanager netmount
cgproxy nscd
consolefont ntp-client
consolekit ntpd
cronie numlock
dbus openvpn
devfs osclock
device-mapper prelogin
dhcpcd preshutdown
dmesg procfs
dmeventd root
fsck runsvdir
ftpd s6-svscan
functions.sh savecache
gpm sntp
haveged sshd
hostname swap
hwclock swclock
ip6tables sysctl
iptables sysfs
keymaps syslog-ng
killprocs termencoding
kmod-static-nodes tmpfiles.dev
local tmpfiles.setup
localmount udev
loopback udev-settle
mdadm udev-trigger
mdraid urandom
root /home/guest #
Re: Nemesis Mate
Posted: 23 Dec 2016, 20:43
by ncmprhnsbl
@Blaze, theres also
/etc/local.d to put startup(or shutdown) scripts ie. myscript.start or myscript.stop...
as for xdg-dirs, slackware-porteus mate uses /etc/xdg/autostart/xdg-users-dirs-update.desktop as per this post:
http://forum.porteus.org/posting.php?mo ... 88#pr51600
(unless this doesnt work and thers something else somewhere that uses the --force option?)
Re: Nemesis Mate
Posted: 23 Dec 2016, 22:33
by Jack
Jack wrote:@ncmprhnsbl
I want to thank you for your info on WiFi. I ran pman -S network-manager-applet I now have wireless on my version of Nemesis Mate on my laptop.
I built a new USB and here is a list of files/
Code: Select all
root ~ # ls -l /mnt/sdc1
total 32
dr-xr-xr-x 3 root root 4096 Oct 17 2014 EFI
-r-xr-xr-x 1 root root 1141 Dec 12 2013 USB_INSTALLATION.txt
-rw------- 1 root root 11818 Dec 8 12:17 bookmarks-2016-12-08.json
drwxr-xr-x 4 root root 4096 Dec 13 16:56 boot
dr-xr-xr-x 2 root root 4096 Dec 27 2015 config
dr-xr-xr-x 7 root root 4096 Dec 23 16:04 porteus
root ~ # ls -l /mnt/sdc1/porteus/base
total 480764
-r-xr-xr-x 1 root root 36646912 Dec 26 2015 000-kernel.xzm < built by brokenman
-rw-r--r-- 1 root root 105369600 Dec 22 18:24 001-core-5.xzm < built by ncmprhnsbl
-rw-r--r-- 1 root root 40763392 Dec 23 00:54 002-gui-2.xzm < built by ncmprhnsbl
-rw-r--r-- 1 root root 42590208 Dec 22 18:25 002-xtra-1.xzm < built by ncmprhnsbl
-rw-r--r-- 1 root root 135626752 Dec 23 15:25 003-mate-1.xzm < built by me
-rw-r--r-- 1 root root 131231744 Dec 20 14:07 003-mate-xtra.xzm < built by me
-rw-r--r-- 1 root root 69632 Dec 23 15:50 009-caches.xzm < built by me
root ~ # ls -l /mnt/sdc1/porteus/modules
total 58632
-rwxrwxrwx 1 root root 1212416 Dec 20 21:25 aspell-en-2016.06.26-1-x86_64.pkg.xzm < built by pman
-rwxrwxrwx 1 root root 42102784 Dec 20 21:24 firefox_bundle.xzm < built by pman
-rwxrwxrwx 1 root root 8032256 Dec 20 21:27 flashplugin-24.0.0.186-1-x86_64.pkg.xzm < built by pman
-rw-r--r-- 1 root root 77824 Dec 21 07:35 gtk-engine-murrine-0.98.2-2-x86_64.pkg.xzm < built by pman
-rw-r--r-- 1 root root 1318912 Dec 23 00:04 network-manager-applet.xzm < built by pman
-rw-r--r-- 1 root root 7290880 Dec 21 14:38 pacman-settings.xzm < built by pman
root ~ #
I built a new
xinitrc from
blaze and here is the script I used. You did great work on what you added.
/etc/X11/xinit/xinitrc
Code: Select all
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Update xdg directories if they exist
if [ -x /usr/bin/xdg-user-dirs-update ]; then
/usr/bin/xdg-user-dirs-update --force
fi
# Add x-gvfs-show to the /etc/fstab for display drives in the left side panel of file manager
if [ -f /etc/fstab ]; then
for a in `cat /etc/fstab |sed '/Device partitions/,/^$/!d'|grep '/dev/'|cut -d ' ' -f4|sort -u|grep -v 'x-gvfs-show'`; do
sed -i '/Device partitions/,/^$/ '"s/$a/$a,comment=x-gvfs-show/g"'' /etc/fstab;
done
else
echo "MISSING /etc/fstab"
fi
exec mate-session
# exec enlightenment_start
# exec i3
# exec xmonad
# exec startlxqt
# exec startlxde
# exec awesome
# exec bspwm
# exec gnome-session
# exec gnome-session --session=gnome-classic
# exec startkde
# exec startxfce4
# exec startfluxbox
# exec openbox-session
# exec cinnamon-session
# exec pekwm
# exec catwm
# exec dwm
# exec startede
# exec icewm-session
# exec jwm
# exec monsterwm
# exec notion
# exec startdde
# deepin-session
I have a problem when I built the first
Nemesis Mate network-manager-applet.xzm work, but when I built the new USB with the files above the
network-manager-applet.xzm don' work. My question is what could be
wrong and how can I make
network-manager-applet work?
Re: Nemesis Mate
Posted: 24 Dec 2016, 00:45
by ncmprhnsbl
run nm-applet in a terminal and see what it says
Re: Nemesis Mate
Posted: 24 Dec 2016, 04:03
by Jack
Auto login and auto start still dosen't work but I learn to live with that. If other was to use my modules I might try again to fix it. I want thank everyone that try to help me on it.
I can't beleive how well Nemesis Mate is running. And how easy it is to add programs and when I add programs I do it in Always Fresh mode that all the dependencies is base on all the moules in the /porteus/base and not on any modules in porteus/modules that way there should be no problem later. If someone download a module and wants to add them then there should be no problem on there part.
Since 003-mate.xzm and 003-mate-xtra.xzm my first ever Desktop build. This might never happen, but I want to try 001-core.xzm 002-gui.xzm and 002-xtra.xzm that way I will have something to do but it will be next year if I'm lucky.
I fixed my WiFi again.
Thanks for all your help.
@brokenman
He help me a lot on my project too.
@Blaze
He help me a lot on my project too.
@francois
He help me a lot on my project too.
@ncmprhnsbl
He help me a lot on my project too.