You are not logged in.
HevyDevy wrote:I believe needs root rights as i have to install xserver-xorg-legacy and the modify /etc/X11/Xwrapper.config
to have..
needs_root_rights=yesNope.
Devuan beowulf can now run rootless X OOTB (as long as the startx command is used) thanks to elogind
That may be true if using elogind but elogind depends on dbus and as i dont have dbus enabled and i have it pinned i have to use xserver-xorg-legacy. Thems the disadvantage of not using dbus i suppose.
good one
What about if you have ~/.xsession with just exec dwm and then add ~/.xsessionrc to source ~/.profile?
You probably shouldn't use xdm any way because it will run X under the root user. The startx command runs X under your normal user, which is much better.
Can confirm that having ~/.xsession with just exec dwm and ~/.xsessionrc sourcing ~/.profile is the solution.
I prefer startx but even that i believe needs root rights as i have to install xserver-xorg-legacy and the modify /etc/X11/Xwrapper.config
to have..
needs_root_rights=yes
I was just interested to use xdm as it seems like the only display manager that does not need dbus as a dependency.
Anyhow thanks.
EDIT: correction looks like lxdm doesnt need dbus either.
would this guide help you?
https://wiki.debian.org/BluetoothUser
also you should install rfkill package (sudo apt install rfkill)
rfkill - tool for enabling and disabling wireless devices
what does below command give?
sudo rfkill list
yes i did source before exec dwm.
if [ -r ~/.profile ]; then
. ~/.profile;
fi
exec dwm
dwm is from suckless.org so, built from source.
There is definetly something im missing here, if i go back to startx and remove xdm .profile is sourced again.
I use ghacks user.js for Firefox, makes it a bit more private along with some addons like canvas blocker, localcdn, privacy-orientated origin policy or POOP for short, ublock origin, site-bleacher,clearurls. And searx for the search engine as it is open source and no info is given over to the goog or any search engine!
ok Hoas, on your advice i have removed .xinitrc and .xsession (not your advice on removing those files but if just using .xsessionrc they should not be needed right?)
I only have .xsessionrc and in that file is
exec dwm
.profile is still not sourced so lets add in what it says in regards to Xsession
https://wiki.debian.org/Xsession
You may dot in some other POSIX shell configuration file: if [ -r ~/.profile ]; then . ~/.profile; fi
nope .profile is still not being sourced.
Ran into something this afternoon i thought strange, it probably because im missing something or other.
On beowulf using sysvinit, dbus disabled i installed xdm , rebooted and xdm failed to source .profile.
I have .xinitrc softlinked to .xsession
Should i be using .xprofile instead? <-- tried this, did not work copying over contents of .profile to .xprofile, not having .profile sourced means it loses some of my $PATH setup there.
In the meantime i found a decent fix whereby i just add in a file to /etc/X11/Xsession.d/75local-profile
# Source a users .profile, etc
PROFILES="/etc/profile $HOME/.profile /etc/xprofile $HOME/.xprofile"
for PROFILE in $PROFILES ; do
[ -f "$PROFILE" ] && . "$PROFILE"
done
/bin/true
credit to https://lists.debian.org/debian-user/20 … 02457.html
Regards.
Thanks fanderal, ive installed xdm display manager and tried that command of fsmithred but only get xdm (i have dwm as wm), must only work for lxdm, lightdm, gdm etc, what display manager are you using?
Ive always been meaning to play around with veracrypt volumes as mentioned in below info, i wonder if one could create a method to have squashfs could utilize veracrypt in some way?
Nice, thanks Hoas. I was thinking that cat was not needed.
Works here on my beowulf. I didn't feel like installing wmctrl, so I changed that line to
printf $titles "wm:" ; basename $(cat /etc/X11/default-display-manager)
Thanks fsmithred, that would work nicely for display managers i will add that in. cheers
Thanks Marjorie, ill see if i can get rid of that dependency on wmctrl.
Thanks nixer,
yeah if you havent got $EDITOR configured in .bashrc i dont think the script will display editor.
just put this in your bashrc
export EDITOR='vim'
replace vim for whatever editor you like.
cheers
also trying to work on incorporating the devuan logo in ascii somehow and also display manager and de for those who use them.
Just thought i would share this here and ask a question or two..be mindful im only learning and hope to improve.
This is just a practice script to show system info but in a very basic way, has nothing on programs like neofetch or screenfetch etc.
So below is my effort so far and just want to know if this would work on your devuan system ok. Also id like to figure out a better method of displaying the window manager instead of using wmctrl, like something in coreutils.
Anyhow, needs bash and wmctrl as a dependency and is only work for devuan, i hope
#!/usr/bin/env bash
titles=('\e[1;34m%-6s\e[m\t') # blue titles
line=('\e[1;31m%-37s\e[m\n') # red line
printf "\n"
printf "\t" ; echo "$(whoami)@$(hostname)"
printf $line | tr ' ' -
printf $titles "os:" ; cat /etc/os-release | awk 'NR==1' | sed 's/............//;s/.//;s/.$//g'
printf $titles "kernel:" ; uname --kernel-release
printf $titles "uptime:" ; uptime -p | sed 's/^...//g'
printf $titles "pkgs:" ; dpkg -l | wc -l
printf $titles "memory:" ; free -mh | awk 'NR==2 {print $3" / "$2}'
printf $titles "wm:" ; wmctrl -m | awk 'NR==1 {print $2}'
printf $titles "shell:" ; echo $SHELL
printf $titles "editor:" ; echo $EDITOR
echo $'\e7\e[2;800H\e[16D\e[7m' $(date +"%Y/%m/%d %H:%M")$'\e8'
printf "\n"
prints out this with some colors and stuff like so.
user@hostname
-------------------------------------
os: Devuan GNU/Linux 3 (beowulf)
kernel: 4.19.0-9-amd64
uptime: 1 hour, 59 minutes
pkgs: 813
memory: 721Mi / 7.7Gi
wm: dwm
shell: /bin/bash
editor: vim
thanks yohno and aitor, will give it another spin.
nice alpine-setup there Hoas.
What if you install libelogind0?
yeah that might be the solution.
dpkg: libsystemd0:amd64: dependency problems, but removing anyway as you requested:
xserver-xorg-core depends on libsystemd0; however:
Package libsystemd0:amd64 is to be removed.
samba-libs:amd64 depends on libsystemd0.
rsyslog depends on libsystemd0.
lvm2 depends on libsystemd0 (>= 222).
libpulse0:amd64 depends on libsystemd0.
liblvm2cmd2.03:amd64 depends on libsystemd0 (>= 222).
libapt-pkg5.0:amd64 depends on libsystemd0 (>= 221).
> ~$ ls -al /usr/lib/x86_64-linux-gnu/libsystemd.so.0
lrwxrwxrwx 1 root root 15 Jan 2 01:03 /usr/lib/x86_64-linux-gnu/libsystemd.so.0 -> libelogind.so.0
sudo dpkg -l | grep systemd > is blank.
Thanks for picking this up, i suppose having no install recommends in etc/apt/preferences.d probably left out libelogind somewhere. Much needed package that one!
¯\_(' ')_/¯ .
Its a devuan3 stable installation.
If i try to remove libsystemd0 it wants to remove these dependencies, not sure what dragged it in, but its there.
The following packages will be REMOVED:
apt apt-listchanges apt-utils aptitude dmeventd libapt-inst2.0 libapt-pkg5.0 libavdevice58 liblvm2cmd2.03 libpulse0
libsdl2-2.0-0 libsmbclient libsystemd0 lvm2 mpv python3-apt python3-reportbug reportbug rsyslog samba-libs
task-english tasksel tasksel-data xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-kbd
xserver-xorg-input-libinput xserver-xorg-input-mouse xserver-xorg-video-all xserver-xorg-video-amdgpu
xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau
xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
Off topic. So is this like a dual boot method. So say sda1 is main partition and you boot hd-media from bare sda2 partition?
Or can you boot hd-media from a blank disk with only one partition?
Nevermind, i just found the needed documentation. Ive only ever installed via USB and did not know this was an option.
Just some off hand info here.
Devuan system im currently using was installed to a usb stick first using devuan installer then i proceeded to reinstall system from usb stick to ssd laptop using the usb stick via refractainstaller.
So if i just change GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
to
GRUB_DISTRIBUTOR=`lsb_release -d -s`
i get below for a grub boot menu
Devuan GNU/Linux 3 (beowulf)
An old classic, Thin Lizzy, Whiskey in The Jar.
This might be worthwhile.