The officially official Devuan Forum!

You are not logged in.

#26 2018-10-11 10:41:27

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 230  
Website

Re: Refracta no-dbus experiment

Shortly i'll start working on a new graphical interface for alsamixer. Volti depends on dbus.


If you work systematically, things will come by itself (Lev D. Landau)

Offline

#27 2019-02-08 16:45:39

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 230  
Website

Re: Refracta no-dbus experiment

fsmithred wrote:

Refracta no-dbus build (experiment)

wpasupplicant \ # get libdbus-1-3 here

I recently debianized wpasupplicant without libdbus, so that simple-netaid will run without any dependency on dbus.


If you work systematically, things will come by itself (Lev D. Landau)

Offline

#28 2019-02-08 19:51:55

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Refracta no-dbus experiment

Cool, Aitor! Thanks. I'll add it to the next nodbus build (which might be beowulf.)

Offline

#29 2019-04-17 02:18:28

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Refracta no-dbus experiment

Guess I should have re-read this thread before uploading new isos. These are beowulf.

https://get.refracta.org/files/experimental/

refracta10-nodbus_amd64-2019-04-16.iso             17-Apr-2019 01:05           703594496
refracta10-nodbus_i386-2019-04-16.iso              17-Apr-2019 01:23           687865856

No dbus (just some libs), no *kits, no libsystemd0, most of the same apps that go into the xfce builds.
You can probably get rid of most of the dbus libs if you remove abiword and transmission.
You can replace xpdf with atril. (Not sure if that'll pull in dbus libs again, but it won't pull in dbus. I left it out to keep the iso size down.)

Made with live-sdk. I'll post the blend files when I decide where to put them.

Offline

#30 2019-04-17 10:11:02

Droidus
Member
Registered: 2017-08-23
Posts: 10  

Re: Refracta no-dbus experiment

Just playing on refracta10-nobus. on evo n610c i386.
- ogg playing
- nginx
Fun!

Last edited by Droidus (2019-04-17 11:01:14)

Offline

#31 2019-04-17 14:18:41

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Refracta no-dbus experiment

Droidus wrote:

evo n610c i386.

I had to google it, and the first hit was Berkeley Archeology. At first I thought maybe it was a museum piece, but no, it's just one of the items on their equipment list. If you need to save ram, run ps_mem.py to see what you can kill.

Here's the config file showing what I installed. It's not the complete package list - lots of other things got pulled in as dependencies. (Recommends are turned off.)

#!/usr/bin/env zsh
# config for refracta-nodbus.blend (beowulf)

version=10.0test

base_packages+=(

	bash-completion
	texinfo
	acpi-support-base
	aptitude
	apt-listchanges
	console-setup
	debootstrap
	debsums
	discover
	dnsutils
	doc-debian
	docutils-common
	docutils-doc
	ftp
	gettext
	gnupg2
#	grub-efi-amd64-bin
#	grub-efi-ia32-bin
#	grub-pc-bin
	$grubversion
	haveged
	laptop-detect
	lsof
	mlocate
	mutt
	ncurses-term
	nfs-common
	procmail
#	reportbug
	telnet
	unzip
	usbutils
	w3m
	whois
	zip
)

extra_packages+=(

	sshfs
	mbr
	w3m
	hwinfo
	moc
	ffmpeg
	ntfs-3g
	dosfstools
	live-config
	live-config-sysvinit
	squashfs-tools
	xorriso
	pmount
	pv
	rsync
	syslinux
	syslinux-common
	syslinux-utils
	isolinux
	gdisk
	irssi
	scrot
	feh
	p7zip-full
	pm-utils
	sysv-rc-conf
	tree
	file
	live-boot-doc
	live-config-doc
	dkms
	eject
	xorg 
	xserver-xorg
	xinit
	xserver-xorg-video-all
	xserver-xorg-legacy
	libelogind0
	gconf-service
	gconf-gsettings-backend
	xterm
	openbox
	openbox-menu
	obconf
#	libpam-elogind
	$linuxheadersversion
	build-essential
	lxappearance
	lxappearance-obconf
	lxpanel
	lxterminal
	lxrandr
	spacefm
	xarchiver
	libnotify-bin
	links2
	mesa-utils
	gparted
#	leafpad
	geany
	gtk2-engines
	firejail
	firejail-profiles
#	wicd		# needs dbus
	xscreensaver
	xserver-xorg-video-all
	xserver-xorg-video-intel
	x11vnc
	xtightvncviewer
	yad
	refractainstaller-base
	refractainstaller-gui
	abiword
	abiword-common
	acl
	arp-scan
	asunder
#	bleachbit 	requires policykit-1
	cifs-utils
	cryptsetup
	lvm2
	mdadm
	deborphan
	dkms
	dmidecode
	eject
	ethtool
	fdupes
	firmware-linux-free
	gddrescue
	gdmap
	geeqie
	gftp
	gimp
	grsync
	hardinfo
	hddtemp
	hdparm
	hexchat
	hexedit
	hicolor-icon-theme
	htop
	hwinfo
	iftop
	lm-sensors
	locales
	meld
	mpv
	mtools
	multiarch-support
	net-tools
#	partimage		no package
	patch
	pciutils
	ppp
	pppconfig
	pppoe
	pppoeconf
	rename
	sane-utils
	smartmontools
	strace
	testdisk
	transmission-gtk
	uuid-runtime
	volumeicon-alsa
	vorbis-tools
	vrms
	wget
	winff
	wodim
	xinput
	xpdf
	xsane
)

# Replace the default purge_packages list if you want to keep dbus.
# or add any packages you want to purge.
#
 purge_packages=(
	dbus
	debian-keyring
)

custom_deb_packages+=(
	deadbeef-static_0.7.2-2_${arch}.deb
	fig29-31_1.0.deb
	firemenu-1.2.deb
	refracta-lang_1.1.deb
	refracta2usb-2.4.1.deb
	refractasnapshot-base_10.2.1_all.deb
	refractasnapshot-gui_10.2.2_all.deb
	usbpmount-1.2+blend.deb
)

Offline

#32 2019-04-21 10:17:53

Geoff 42
Member
Registered: 2016-12-15
Posts: 462  

Re: Refracta no-dbus experiment

I thought I would like to try this on my ancient, tiny Asus EeePC. I used refracta10-nodbus_i386-2019-04-16.iso, dd-ed it to a memory stick and once I had remembered that I needed the <esc> key to get the boot menu, it booted nicely and was surprisingly quick for such an old machine.

I have a small number of observations from having installed it.

As I went through the installation, I was offered an existing swap partition and I failed to realise that I had to click on it to select it, as there was only one to choose and I ending up having to start again ;-)

I changed the passwords and had to have a second go at the user pwd before I managed to duplicate it correctly. This may be to do with the tiny keyboard on the Eee PC. When it booted up I could log in and it looked sensible, however I discovered that I didn't know the root password. It took some investigation before I worked out the the root password had not been changed to the new one. This may have been finger trouble on my part, but I thought it went ok at the time.

There is no way to shutdown from within X. Providing you know the root password or are set up in sudoers then this can be worked round. I think that I can work out how to get something in lxpanel working... Is this related to not having elogind installed?

Anyway, it is all good fun, thank you.

Geoff

Last edited by Geoff 42 (2019-04-21 10:18:31)

Offline

#33 2019-04-21 11:11:42

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Refracta no-dbus experiment

Geoff, thanks for the report.

User has sudo nopasswd enabled for halt, reboot, pm-suspend and pm-hibernate.  Oh, you might have disabled that in the install. If so...

echo "user ALL= NOPASSWD: /usr/sbin/pm-suspend, /usr/sbin/pm-hibernate, /sbin/halt, /sbin/reboot" > /etc/sudoers.d/user_shutdown

To restore it.

Right-click on the desktop should give you the openbox menu, and I've added reboot and shutdown. Warning: Those two work without asking for confirmation.

You can tie the logout in lxpanel to one of the quit-dialog scripts in /usr/local/bin. I missed that and should add it to the blend.

elogind would pull in policykit-1 and dbus, and the user would be able to use the dbus shutdown commands.

Offline

#34 2019-04-21 14:10:54

Geoff 42
Member
Registered: 2016-12-15
Posts: 462  

Re: Refracta no-dbus experiment

Thank you for the info. I have checked /etc/sudoers.d/user_shutdown and it looks ok. I have now found shutdown on the openbox menu and it does seem to stop lx and ob stuff from running, although the cursor still responds. A quick press on the on/off button seems to cause an orderly shutdown!

I have installed dillo which seems to work as a nice lightweight browser. I found it when claws-mail switched to using it to render html.

Geoff

Offline

#35 2019-04-21 15:00:29

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Refracta no-dbus experiment

Maybe you need to add shutdown and poweroff to the list of user_shutdown commands. If one of those works better, edit the quit-dialog and /etc/xdg/openbox/menu.xml  (You did log out and in again after adding the file to sudoers.d, right?)

I will try dillo. I only tried a couple of browsers and gave up quickly, because they needed dbus.

Offline

#36 2019-04-22 06:03:24

Geoff 42
Member
Registered: 2016-12-15
Posts: 462  

Re: Refracta no-dbus experiment

I checked /etc/xdg/openbox/menu.xml and found a couple of lines appeared to have been corrupted, in that the lines ended prematurely in a "$" sign, viz :- </actio$ which I corrected to </action>. I have also tried using

sudo /sbin/shutdown -h now

but my first attempt needed a password, so I have reworked /etc/sudoers.d/user_shutdown so that it now looks like :-

Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown -h now, /sbin/shutdown -r now
Host_Alias LOCAL_HOST = iron, localhost
ALL    LOCAL_HOST = (root) NOPASSWD: SHUTDOWN_CMDS

this now works as expected.

Geoff

Offline

#37 2019-04-22 11:31:08

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Refracta no-dbus experiment

Oops. You found a copy/paste-from-nano error. What I don't understand is why it works for me when it's like that.

I tried dillo, and it would not let me go to youtube. I didn't expect to watch video with it, but I wanted to see what I got. It's like it didn't even try to get to the page. I was able to get there with links2, and after adding youtube-dl I could download a video and watch it with mpv.

Offline

#38 2019-04-22 13:10:21

Geoff 42
Member
Registered: 2016-12-15
Posts: 462  

Re: Refracta no-dbus experiment

I think that the problem with sudo wanting a password was because your file was giving permission to a user called "user" and during the installation I set up a user with a different name!

Geoff

Offline

Board footer