LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-15-2023, 03:53 PM   #1
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 270

Rep: Reputation: 26
Question Slackware(64) 14.2 - Pendrives not automount & i can't shutdown from Menu


Hi there, i am under Slackware(64) 14.2 still XD. before upgrade to 15.0 i am using some days testing things.

After all i had update & upgrade the packages to the latest version the system detect with slackpkg & slpkg.

Well i notice packages like udisks udisks2 and udiskie had upgraded, but now when i connect a usb pendrive, in thunar does not appear the partitions automatically, i should mount manually the 3 partitions of my pendrive.

The another thing is when i need restart or shutdown, the unique option i can use is «Close Session»
Screenshot -> https://i.postimg.cc/PxzXhbBz/xfce412-power.png

Last edited by inukaze; 01-15-2023 at 07:38 PM.
 
Old 01-15-2023, 04:11 PM   #2
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
I prefer Dolphin over Thunar but I depend heavily on File Managers. I've never liked hard disk automounts simply because I sometimes need to have a consistent mount point so for at least the ones I most commonly work with, I hard spec them in /etc/fstab, then I know exactly where to look. If there is any downside, it has never bothered me.

There is a specific permissions setting in some WM/DEs that grants permission for common Users to initiate shutdown or reboot. In most cases simply logging out, especially to runlevel 3 in Slackware, will sidestep that requirement.
 
1 members found this post helpful.
Old 01-15-2023, 04:57 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
You have tagged this thread with xfce, so I assume you are using XFCE.
Do you have DBUS running? (Check whether /etc/rc.d/rc.messagebus is executable. You can also use 'pkgtool'. Select 'Setup' -> 'services' -> 'rc.messagebus').
 
Old 01-15-2023, 08:34 PM   #4
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 270

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by enorbet View Post
I prefer Dolphin over Thunar but I depend heavily on File Managers. I've never liked hard disk automounts simply because I sometimes need to have a consistent mount point so for at least the ones I most commonly work with, I hard spec them in /etc/fstab, then I know exactly where to look. If there is any downside, it has never bothered me.

There is a specific permissions setting in some WM/DEs that grants permission for common Users to initiate shutdown or reboot. In most cases simply logging out, especially to runlevel 3 in Slackware, will sidestep that requirement.
i prefer not specify too much things under fstab, just the hard disk partitions i know i ever use, but searching on internet yesterday i found a blog article says «fstab is not just for boot» well i don't see too much sense put UUID of Pendrive inside fstab.

you know how i can determinate why xfce is not allow me to use «power» or «reboot» from the menu ?
 
Old 01-15-2023, 08:35 PM   #5
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 270

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by allend View Post
You have tagged this thread with xfce, so I assume you are using XFCE.
Do you have DBUS running? (Check whether /etc/rc.d/rc.messagebus is executable. You can also use 'pkgtool'. Select 'Setup' -> 'services' -> 'rc.messagebus').
Yes i am using Xfce 4.12 under Slackware64 14.2 :
Code:
ls -la /etc/rc.d/rc.messagebus
 -rwxrwxrwx 1 inukaze users 1864 mar  3  2022 /etc/rc.d/rc.messagebus

ps -A | grep dbus
 1132 ?        00:00:00 dbus-daemon
 2138 ?        00:00:00 dbus-launch
 2139 ?        00:00:00 dbus-daemon
 2159 ?        00:00:00 dbus-daemon
 2189 ?        00:00:00 dbus-launch
 2190 ?        00:00:00 dbus-daemon

/etc/rc.d/rc.messagebus status
System dbus-daemon is running.
content of /etc/rc.d/rc.messagebus
Code:
#!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon

# This is a modified version of the rc.messagebus script distributed with the
# dbus sources.  Thanks to Don Tanner of the GWare <http://gware.org> Project
# for most of the work involved      --Robby Workman <rworkman@slackware.com>


PIDFILE=/var/run/dbus/dbus.pid

start() {
  mkdir -p $(dirname $PIDFILE)
  if ! ps -u messagebus -c | grep -wq dbus-daemon; then
    rm -f $(dirname $PIDFILE)/*
    if [ -x /usr/bin/dbus-uuidgen -a -x /usr/bin/dbus-daemon ] ; then
      echo "Starting system message bus:  /usr/bin/dbus-uuidgen --ensure ; /usr/bin/dbus-daemon --system"
      /usr/bin/dbus-uuidgen --ensure
      /usr/bin/dbus-daemon --system 1> /dev/null
    fi
  fi
}

stop() {
  if [ -e "$PIDFILE" ]; then
    echo "Stopping system message bus..."
    pid=$(cat $PIDFILE)
    kill $pid 1> /dev/null 2> /dev/null
    # Just in case:
    killall dbus-daemon 1> /dev/null 2> /dev/null
    rm -f $PIDFILE
  fi
}

reload() {
  echo "Reloading system message bus configuration..."
  if [ -e "$PIDFILE" ]; then
    pid=$(cat $PIDFILE)
    kill -HUP $pid
  else
    killall -HUP dbus-daemon
  fi
}

status() {
  if ps -u messagebus -c | grep -wq dbus-daemon; then
    echo "System dbus-daemon is running."
  else
    echo "System dbus-daemon is stopped."
  fi
}

# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  restart)
    stop
    start
    echo "You may need to restart your Window Manager to reconnect to the system dbus."
    ;;
  reload)
    reload
    ;;
  status)
    status
    ;;
  *)
    echo $"Usage: $0 {start|stop|restart|reload|status}"
    ;;
esac

Last edited by inukaze; 01-15-2023 at 08:39 PM.
 
Old 01-15-2023, 11:25 PM   #6
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 270

Original Poster
Rep: Reputation: 26
Well i don't know why some files on my system are corrupted.

i had installed udiskie, i try to launch and i get the follow output :
Code:
Deprecation warning: Running on python 2.7. The next major version of udiskie will require at least python 3.5!
Failed to connect UDisks2 dbus service..
Falling back to UDisks1.
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/udiskie/cli.py", line 306, in _start_async_tasks
    self.udisks = yield get_backend(self.options['udisks_version'])
Error: g-dbus-error-quark: Error calling StartServiceByName for org.freedesktop.UDisks: GDBus.Error:org.freedesktop.DBus.Error.Spawn.PermissionsInvalid: The permission of the setuid helper is not correct (32)
i notice try to use udiskie1 instead udiskie2, and says the setuid helper is not correct searching i found this post -> https://github.com/flatpak/flatpak/issues/4934

i use the command :
Code:
chmod u+s /usr/libexec/dbus-daemon-launch-helper
but just for curiosity i want to see the content of file i use nano and watch the follow inside the file :
Code:
^?ELF^B^A^A^@^@^@^@^@^@^@^@^@^B^@>^@^A^@^@^@P?@^@^@^@^@^@@^@^@^@^@^@^@^@`�^@^@^@^@^@^@^@^@^@^@@^@8^@    ^$
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^Z^@^@^@r^@^@^@^@^@^@^@m^@^@^@^?^@^@^@R^@^@^@^@^@^@^@�^@^@^@�^@^@^@^@^@^@^@$
^@^@^@^^^@^@^@b^@^@^@N^@^@^@^@^@^@^@�^@^@^@^@^@^@^@�^@^@^@'^@^@^@t^@^@^@�^@^@^@y^@^@^@^@^@^@^@:^@^@^@6^@^$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@J^C^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@P^B^@^@^R^@^@^$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^W^A^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^S  ^@^@^R^@^$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@,   ^@^@^R^@^N^@^X�@^@^@^@^@^@^@^@^@^@^@^@^@^@|
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^F^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@    ^E^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@)^B^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^F^@^@^R^@^@^$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^C^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@)^F^@^@^Q^@^@^$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^G^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^D^@^@^R^@^@^$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^F^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^@^@^@^R^@^@^$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@P^@^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^C^@^@^R^@^@^$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@m^D^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^A^@^@ ^@^@^@$
^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�^F^@^@^R^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@�
i need a sanaty-check tool to found which file are corrupted like /usr/libexec/dbus-daemon-launch-helper or "$HOME/.config/QtProject.conf" like i had explain before in the post -> https://www.linuxquestions.org/quest...gs-4175705598/

Just for that corrupted version of file with
Code:
%00L%00%20%06%00%00%2C%06%00%00%E9%BF%D1%DD%22%00%00%00%2C%06%00%00%0B%00v%008%06%00%00%3B%06%00%00%92%FEƒ
ƒÂ‚‚‚ÃÂÂÃ
the qt5 apps have a several slow down on open/save dialogs take too much time for show that dialogs if that file are corrupted, when i remove i open vlc and open any videofile just take some seconds instead minutes (5 minutes when i select the file, and 23 minutes waiting the vlc start the playback of the video i had choose to play)

Well i going to delete this file and search which package content it.
Code:
rm -rf /usr/libexec/dbus-daemon-launch-helper
slackpkg reinstall dbus ; slackpkg install dolphin pulseaudio ; ldconfig 

#i had install PulseAudio because Firefox does have any audio output when just exist ALSA, or well i don't know if cause by another corrupted file or files like the two before examples from above this same message.

Warning /usr/lib64/libpulse.so.0 is not symbolic link 
Warning /usr/lib64/libpulse-mainloop-glib.so.0  is not symbolic link 
Warning /usr/lib64/libpulse-simple.so.0 is not symbolic link 

cd /usr/lib64
rm -rf /usr/lib64/libpulse.so.0 /usr/lib64/libpulse-mainloop-glib.so.0 /usr/lib64/libpulse-simple.so.0
ln -sf libpulse.so.0.20.0 libpulse.so.0
ln -sf libpulse-simple.so.0.1.0 libpulse-simple.so.0
ln -sf libpulse-mainloop-glib.so.0.0.5 libpulse-mainloop-glib.so.0
well i decide to test dolphin like «enorbet» comment mention that file manager, and look, Thunar does not show the USB Partitions, but dolphin yes (with udiskie running).
Screenshot -> https://i.postimg.cc/tRkN6bp9/dolphin-vs-thunar.png

Code:
dolphin

dolphin(3142) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "testparm: /usr/lib/libp11-kit.so.0: no version information available (required by /usr/lib/libgnutls.so.30)
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
WARNING: lock directory /var/cache/samba should have permissions 0755 for browsing to work

WARNING: state directory /var/lib/samba should have permissions 0755 for browsing to work

WARNING: cache directory /var/cache/samba should have permissions 0755 for browsing to work

chmod 0755 /var/cache/samba 
chmod 0755 /var/lib/samba
i had forgot when i run more two times a KDE Plasma 4 application, for unknow reasons for me still, the window manager just disappear from that kind of windows like kpat or dolphin.

my workaround
Code:
mv /usr/bin/dolphin /usr/bin/dolphin.real
nano /usr/bin/dolphin
The content of my custom file /usr/bin/dolphin for this workaround (i use a custom size of window because i ever the change on the conky in the right side of the screen) :

Code:
#!/usr/bin/env bash

echo '
Autor ----------------> Inukaze ( Venezuela )
Sitio ----------------> https://goo.gl/ij6WqW
Correo-E -------------> bloginukaze@gmail.com
Licencia -------------> GPL 2

******* Inicio : Acerca de este Guion ********

 Este Mini-Guion es para poder iniciar Dolphin
 mientras se usa Compiz & Conky ya que suele
 Iniciar correctamente la primera vez, pero
 Apartir de la segunda vez inicia en el modo
 Pantalla Completa y sin bordes de ventana

 Por lo cual hay que modificar una linea del
 Archivo de configuracion de Dolphin relativa a
 vez en modo ventana y con los bordes de la
 ventana visible.

******** Fin : Acerca de este Guion **********'

unset EncontrarEjecutable
unset Corregir
unset Ejecutar

function EncontrarEjecutable()
{
rutadolphin=$(whereis -B "/usr/sbin" "/usr/local/sbin" "/sbin" "/usr/bin" "/usr/local/bin" "/bin" -b dolphin.real | grep -i "dolphin.real" | cut -d " " -f02 | sed 's/[/]dolphin.real//')

	if [ -x "$rutadolphin/dolphin.real" ]; then
		dolphin="$rutadolphin/dolphin.real"
	else
		echo -e "dolphin no esta instalado\nPor favor, Instala dolphin antes de usar este guion"
		exit 1
	fi
}

function Corregir()
{
	Archivo="dolphinrc"
	Directorio="$HOME/.kde"

	if test -d "$Directorio"
		then
			Directorio="$HOME/.kde/share"	
		else
			echo "el directorio $Directorio no existe"
		exit 1
	fi

	if test -d "$Directorio"
		then
			Directorio="$HOME/.kde/share/config"	
		else
			echo "el directorio $Directorio no existe"
		exit 1
	fi

	if test -d "$Directorio"
		then
		if test -f "$Directorio/$Archivo"
		then	
			echo "Archivo de configuracion encontrado"

#Notas necesito encontrar :
#
# 1 : Como eliminar la linea «Height 1024=» justo debajo de «[MainWindow] para poder utilizar «sed '/[MainWindow]/{n;s/.*/Height 1024=885/}' "$Directorio/$Archivo"»
#
# 2 : Como eliminar la linea «Width 1280=» justo debajo de «[MainWindow] para poder utilizar «sed '/[MainWindow]/{n;s/.*/Width 1280=1058/}' "$Directorio/$Archivo"»
#
# 3 : Como eliminar la linea «Height 1024=» justo debajo de «[SettingsDialog] para poder utilizar «sed '/[MainWindow]/{n;s/.*/Height 1024=391/}' "$Directorio/$Archivo"»
#
# 4 : # 3 : Como eliminar la linea «Width 1280=» justo debajo de «[SettingsDialog] para poder utilizar «sed '/[MainWindow]/{n;s/.*/Width 1280=690/}' "$Directorio/$Archivo"»

#Mientras no encuentre como borrar las lineas de «Height 1024» y «Width» justo despues de «[MainWindow» y «SettingsDialog», utilizar la via menos inteligente "tee" : 

echo '[CompactMode]
FontWeight=50
PreviewSize=32

[DetailsMode]
FontWeight=50
IconSize=48
PreviewSize=96

[General]
BrowseThroughArchives=true
EditableUrl=true
FilterBar=true
ShowFullPath=true

[IconsMode]
FontWeight=50
IconSize=64
PreviewSize=128

[MainWindow]
Height 1024=885
MenuBar=true
ToolBarsMovable=Disabled
Width 1280=1058

[PreviewSettings]
Plugins=directorythumbnail,imagethumbnail,jpegthumbnail

[SettingsDialog]
Height 1024=391
Width 1280=690
' | tee "$Directorio/$Archivo"
sed -i 's/.*MenuBar=.*/MenuBar=true/' "$Directorio/$Archivo"
		else
			echo "No existe el archivo de configuracion $Archivo en el directorio $Directorio"

#Notas necesito encontrar :
#
# 1 : Como eliminar la linea «Height 1024=» justo debajo de «[MainWindow] para poder utilizar «sed '/[MainWindow]/{n;s/.*/Height 1024=885/}' "$Directorio/$Archivo"»
#
# 2 : Como eliminar la linea «Width 1280=» justo debajo de «[MainWindow] para poder utilizar «sed '/[MainWindow]/{n;s/.*/Width 1280=1058/}' "$Directorio/$Archivo"»
#
# 3 : Como eliminar la linea «Height 1024=» justo debajo de «[SettingsDialog] para poder utilizar «sed '/[MainWindow]/{n;s/.*/Height 1024=391/}' "$Directorio/$Archivo"»
#
# 4 : # 3 : Como eliminar la linea «Width 1280=» justo debajo de «[SettingsDialog] para poder utilizar «sed '/[MainWindow]/{n;s/.*/Width 1280=690/}' "$Directorio/$Archivo"»

#Mientras no encuentre como borrar las lineas de «Height 1024» y «Width» justo despues de «[MainWindow» y «SettingsDialog», utilizar la via menos inteligente "tee" : 

echo '[CompactMode]
FontWeight=50
PreviewSize=32

[DetailsMode]
FontWeight=50
IconSize=48
PreviewSize=96

[General]
BrowseThroughArchives=true
EditableUrl=true
FilterBar=true
ShowFullPath=true

[IconsMode]
FontWeight=50
IconSize=64
PreviewSize=128

[MainWindow]
Height 1024=885
MenuBar=true
ToolBarsMovable=Disabled
Width 1280=1058

[PreviewSettings]
Plugins=directorythumbnail,imagethumbnail,jpegthumbnail

[SettingsDialog]
Height 1024=391
Width 1280=690
' | tee "$Directorio/$Archivo"
sed -i 's/.*MenuBar=.*/MenuBar=true/' "$Directorio/$Archivo"

		fi
	fi
}

function Ejecutar()
{
	echo ''
	"$dolphin" "$@" &
#
#IDEA	:	Esperar que la ventana de Dolphin exista para que xdotool presione «Control+M»
#				Ya que Dolphin cada vez que inicia cambia la linea «MenuBar=true» por «MenuBar=Disabled»
#				Justo antes de mostrar la ventana. Por ende resulta imposible en esta version tener activa
#				La barra de menues por defecto, ya que el propio Dolphin la deshabilita antes de mostrarse.
#
#NO FUNCIONA#	until pids=$(pidof "$dolphin")
#NO FUNCIONA#	do
#NO FUNCIONA#		wait "$pids"
#NO FUNCIONA#		echo "Esperando que inicie Dolphin"
			sleep 5
#NO FUNCIONA#	done
#NO FUNCIONA#	
#NO FUNCIONA#	for pid in $pids
#NO FUNCIONA#	do
#NO FUNCIONA#		
#NO FUNCIONA#		DOLPHIN=$(wmctrl -l | grep -w "Dolphin" | head -n 1)    
#NO FUNCIONA#		if [ -z "$DOLPHIN" ]
#NO FUNCIONA#		then
#NO FUNCIONA#		echo "Dolphin aun no ha sido iniciado"
#NO FUNCIONA#		else
#NO FUNCIONA#		echo "Dolphin esta en ejecucion"
			idv=$(xdotool search --onlyvisible --pid $(pidof dolphin.real)) ; \
			xdotool windowactivate "$idv" ; \
			xdotool key ctrl+m
#NO FUNCIONA#		fi
#NO FUNCIONA#	done
	echo -ne "\n" | exit 0
}

# Usar las funciones
	EncontrarEjecutable
	Corregir
	Ejecutar
Code:
chmod a+x /usr/bin/dolphin ; chmod a+x /usr/bin/dolphin.real

looks like i still are bug magnet for any kind of computing programs :v

Well i am going to search if are udiskie1 mounting the usb partitions inside the /mnt/exports instead of /media i need change that.

Last edited by inukaze; 01-16-2023 at 02:05 AM.
 
Old 01-16-2023, 01:30 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
This still looks like a problem with your DBUS setup to me.
KDE Plasma uses an internal DBUS system, which would explain why dolphin is working for you,

I see
Code:
bash-5.1$ ls -l /usr/libexec/dbus-daemon-launch-helper
-rwsr-x--- 1 root messagebus 60864 Feb 13  2021 /usr/libexec/dbus-daemon-launch-helper*
Perhaps try reinstalling the dbus package after checking that you have an entry
Code:
messagebus:x:81:
in your /etc/group. (IIRC there have been additions to that file between 14.2 and 15.0)
 
1 members found this post helpful.
Old 01-16-2023, 02:38 AM   #8
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 270

Original Poster
Rep: Reputation: 26
Well looks like this is the solution for my issue with usb automount partitions :
i found this article -> https://docs.slackware.com/howtos:ge...mount_via_udev

Code:
Content of "/etc/udev/rules.d/99-persistent-personal.rules"
Code:
ACTION=="add",KERNEL=="sd[a-z][1-9]", PROGRAM="automount"
ACTION=="remove",KERNEL=="sd[a-z][1-9]", PROGRAM="automount"
Code:
Content of "/lib/udev/automount"
Code:
#!/bin/bash
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
#echo "$(date) " >> /tmp/env.txt
#/usr/bin/env >> /tmp/env.txt
#id >> /tmp/env.txt
DEV=$(basename $DEVNAME)
LABEL=$(ls -l /dev/disk/by-label/ |grep $DEV |awk '{print $(NF-2)}')
[ "$LABEL" = "" ] && LABEL=$ID_FS_LABEL
[ "$LABEL" = "" ] && exit
[ "$ID_PART_ENTRY_TYPE" = "0x82" ] && exit

echo "$DEV $LABEL $ACTION" >> /tmp/env.txt

case $ACTION in
add) mkdir -p /media/$LABEL
     logger "automount: add $LABEL"
     exportfs -u *:/media/$LABEL
     mount LABEL=$LABEL /media/$LABEL
     [ $(grep -c "^/media/$LABEL" /etc/exports) -eq 0 ] && \
       echo "/media/$LABEL *(rw,no_root_squash,no_subtree_check,nohide)" >> /etc/exports
     exportfs -r -a 
  ;;
remove) 
     logger "automount: remove $LABEL"
     exportfs -u *:/media/$LABEL
     mount -o remount,ro /media/$LABEL
     umount /media/$LABEL
     rmdir /media/$LABEL
;;
esac
well i change "/mnt/exports/$LABEL" by "/media/$LABEL" well i need a solution for allow the common users umount the pendrives, well because i don't have idea in which file of configuration i must set the "eject" option should be usable by common users and that make the automount script can use umount without says need a root privilegies. the most ease solution i think should be this

Code:
nano /etc/sudoers
and i add the lines at the end of file

Code:
#Mount & Umount
%adm ALL=(ALL) NOPASSWD: /bin/mount
%adm ALL=(ALL) NOPASSWD: /bin/umount
restart the system, and now is solved, well i not know why i should make this manually when months before the system without my intervention make things like automount usb and allow eject like a normal user.

nobody know a tool to check & repair the most common default slackware configurations for things like that works fine or the qt open/save dialog does not take too much time ?

Code:
su

usermod -a -G audio,cdrom,floppy,plugdev,video,power,adm,cdrom,plugdev,sambashare,dialout inukaze
and for unknow reasons, the xfce4 shutdown helper, now is working. after i do the things i had explain here.

Curious i almost try things like editing the /etc/sudoers file but adding :
Code:
user localhost=NOPASSWD:/usr/lib/xfce4/xfsm-shutdown-helper
or search the xinitrc of xfce4 to force
Code:
exec ck-launch-session startxfce4
or put inside "~/.profile" or "~/.bashrc"
Code:
# Monturas :
alias mount="sudo mount"
export mount
alias umount="sudo umount"
export umount
but i dont need make that last thing i mention i almost try.

Last edited by inukaze; 01-16-2023 at 03:31 AM.
 
Old 01-16-2023, 03:39 AM   #9
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 270

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by allend View Post
This still looks like a problem with your DBUS setup to me.
KDE Plasma uses an internal DBUS system, which would explain why dolphin is working for you,

I see
Code:
bash-5.1$ ls -l /usr/libexec/dbus-daemon-launch-helper
-rwsr-x--- 1 root messagebus 60864 Feb 13  2021 /usr/libexec/dbus-daemon-launch-helper*
Perhaps try reinstalling the dbus package after checking that you have an entry
Code:
messagebus:x:81:
in your /etc/group. (IIRC there have been additions to that file between 14.2 and 15.0)
Well after the thing i explain after this answer i am quoting, right now after reboot, when i connect the usb, i had double partitions with same names. i am doing the follow :

Code:
rm -rf "/etc/udev/rules.d/99-persistent-personal.rules"
rm -rf "/lib/udev/automount"
nano /etc/sudoers
Removing the things i had do, becuase right now i think the issues i had, are caused by corrupted files.

Code:
cat /etc/group | grep messagebus
messagebus:x:81:
 
  


Reply

Tags
power, slackware64 14.2, usb automount, xfce



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Pendrives, USB Sticks, Flash Drives ... They are not created equal DLXPM7 Linux - Hardware 4 11-29-2013 03:53 PM
free bootable linux os which can remove viruses from pendrives and can run a scan ranadeepak12 Linux - Newbie 1 04-05-2009 11:13 AM
Ph&#7909;c h&#7891;i d&#7919; li&#7879;u b&#7883; m&#7845;t???, c&#7913; pollsite General 1 06-27-2005 12:39 PM
Gotta love those &#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration