/srv/irclogs.ubuntu.com/2018/11/28/#xubuntu.txt

puffI just updated xubuntu 16.04 LTS and restarted.  I make heavy use of the Workspace Switch gnome applet but recently it seems to add a new workspace every time I reboot.  I was up to 11 workspaces and it was getting unwieldly, so I used right-click/Workspace Settings to reduce the number.00:12
puffBut I clicked too many times and now it's down to only ONE workspace... and now I can't get it to INCREASE the number of workspaces.  When I brought up the Workspace Settings dialog and clicked to increase the number it looks like it increases it and then immediately decreases it.00:12
puffI did right-click remove to remove Workspace switcher entirely, and now it won't let me readd it to the gnome menu bar. That is, when I right-click, add to panel, Workspace Switcher, nothing happens.00:12
=== brainwash_ is now known as brainwash
ghost2911hi. I want to launch thunar as root, without entering the password can I pass the password in the shortcut as Command ?08:49
ghost2911gksudo thunar /  for ex. but this asks for password08:50
ghost2911I saw one like sudo -i <pwd> thunar this does not work08:50
ghost2911I mean for the Thunar icon08:54
brainwashghost2911: you could try this https://askubuntu.com/a/38866009:00
brainwashthunar comes with a policy file too09:00
ghost2911found via custom actions but this needs icon on the desktop09:00
brainwashicon? you mean launcher?09:02
diogenes_ghost2911, there is a way by making /scripts/thunar.sh with: sudo thunar, then sudo visudo -f /etc/sudoers and add: ALL    ALL = (root) NOPASSWD: /scripts/thunar.sh, save, close and make a .desktop file with this command: Exec=sudo /scripts/thunar.sh09:02
diogenes_and it will start thunar with root and without password09:02
ghost2911wow, need to try09:02
ghost2911says failed to execute child process "exec=sudo" no such file or directory09:08
ghost2911in thunar.sh the line with visudo is one line no ?09:09
diogenes_ghost2911, pastebin the /etc/sudoers, /scripts/thunar.sh09:09
diogenes_let's see what you did09:09
ghost2911sudoers https://pastebin.com/5Md3uWfB09:12
ghost2911thunar.sh https://pastebin.com/xvJh52ev09:13
diogenes_ghost2911, :)) sorry i wasn't clear09:13
diogenes_ok let's do it from the beginning09:13
diogenes_firs i'd like to ask you if you are familiar with nano?09:14
ghost2911ok09:14
diogenes_so?09:14
ghost2911why nano ? I don't get09:14
diogenes_nano is a text edito09:14
diogenes_editor09:15
ghost2911yes09:15
diogenes_ok now run: sudo visudo -f /etc/sudoers09:15
diogenes_it will open the sudoers file for editing09:15
ghost2911a ok opens nano09:15
diogenes_be maximum careful because if you insert a single wrong character then you are in trouble09:15
diogenes_now to to the end of the file09:15
diogenes_after this last line #includedir /etc/sudoers.d09:16
ghost2911yes09:16
diogenes_add this09:16
diogenes_ ALL    ALL = (root) NOPASSWD: /scriptstower/thunar.sh09:17
ghost2911ok added09:18
diogenes_now ctrl+o09:18
ghost2911yes saved09:18
diogenes_ctrl+x09:18
ghost2911ok09:18
diogenes_and pastebin /etc/sudoers once again09:18
ghost2911https://pastebin.com/Mdg6rW3L09:19
diogenes_ok looks good now run: sudo nano /scriptstower/thunar.sh09:20
ghost2911ok09:21
diogenes_ok, make it blank, remove everything and add the following:09:21
diogenes_#!/bin/sh09:21
diogenes_sudo thunar09:21
diogenes_save, close09:21
ghost2911not #!/bin/bash ?09:22
diogenes_ /bin/sh09:22
ghost2911OK09:23
diogenes_ok, now run: sudo chmod +x /scriptstower/thunar.sh09:23
ghost2911it's done09:23
diogenes_now let's see if it works, run: sudo /scriptstower/thunar.sh09:23
diogenes_and it should open it without asking the password09:23
ghost2911wow09:24
ghost2911it opens without pwd09:24
diogenes_so it works? ok now let's make the shortcut09:24
diogenes_run: touch ~/.local/share/applications/thunarroot.desktop09:24
ghost2911ok09:25
diogenes_nano ~/.local/share/applications/thunarroot.desktop09:25
ghost2911ok09:26
diogenes_ok now wait a sec09:26
diogenes_i will pastebin what you need to add there09:26
diogenes_this: https://paste.ubuntu.com/p/bJnHH6D6gp/09:27
diogenes_once done, save,close and run: chmod +x ~/.local/share/applications/thunarroot.desktop09:28
ghost2911ok09:29
diogenes_now look for it in accessories09:29
diogenes_try if works09:29
ghost2911nope09:30
ghost2911I see it in accessories09:30
ghost2911but it doesn't start09:30
diogenes_ok run: cat ~/.local/share/applications/thunarroot.desktop09:31
diogenes_pastebin09:31
ghost2911https://pastebin.ubuntu.com/p/T6yNXTsDbf/09:31
diogenes_ok run: nano ~/.local/share/applications/thunarroot.desktop09:33
diogenes_change this line: Exec=sudo /scriptstower/thunar.sh09:33
diogenes_to: Exec= sh -c "sudo /scriptstower/thunar.sh"09:34
diogenes_save, close and run: cat ~/.local/share/applications/thunarroot.desktop | curl -F 'f:1=<-' ix.io09:35
diogenes_share the link you get09:35
ghost2911this is ninja way to share code :D09:38
ghost2911http://ix.io/1uHq09:38
diogenes_ok now try again to launch it from accessories09:39
ghost2911nope09:39
diogenes_and in terminal: sudo /scriptstower/thunar.sh09:39
diogenes_does it work?09:39
ghost2911yes09:40
diogenes_hmm weird, ok navigate to /home/username/.local/share/applications and try to double click on its icon in that folder09:41
diogenes_see if it works09:41
ghost2911nothing09:43
diogenes_ok, let's try this: cp /usr/share/applications/exo-file-manager.desktop  ~/.local/share/applications/09:45
ghost2911done09:47
diogenes_now in that folder you gonna see a new item that has just appeared, right click on it and open with mousepad09:48
ghost2911double click or right09:49
diogenes_right click09:49
ghost2911a ok yes09:50
ghost2911opened09:50
diogenes_there you have to make two changes09:50
diogenes_first: Exec=exo-open --launch FileManager %u change to: Exec=sh -c "sudo /scriptstower/thunar.sh"09:51
diogenes_second: Name=File Manager change to: Name=File Manager Root09:51
diogenes_save, close, double click09:51
ghost2911nope it says untrusted app launcher09:54
ghost2911launch anyway does nothing09:55
diogenes_ok wait, let me try it on my side09:55
ghost2911this is like discreet math :D09:55
ghost2911I thought I could do just desktop launcher and run that command that works script10:00
diogenes_ghost2911, works for me just fine10:02
ghost2911so that exo-file-manager.desktop should run file manager wihtou password ?10:03
diogenes_ghost2911, i tried the first methind10:03
diogenes_method*10:03
ghost2911thank you diogenes I'll check later.10:03
diogenes_ok10:03
diogenes_but10:04
diogenes_be very careful10:04
diogenes_in this way we kinda created a vulnerability on your system10:04
diogenes_anyone who gets access to your system, he just needs to run: sudo /scriptstower/thunar.sh in your terminal10:05
diogenes_and he gets root access and can do whatever on your system10:05
diogenes_so be aware of that10:05
ghost2911of course10:59
=== sm0rux is now known as Guest48996
xubuntu65wHi There! I'm Andres from Argentina. I've got the same problem I had 3 month ago with other laptop Lenovo, like this one. I've installed Xubuntu 18.04 (64 bits) and the problem is that when I close the lid or when I suspend the system, I can not re open the sesion because de screen is black.17:31
* diogenes_ ech lenovo :(17:33
xubuntu65w3 months ago somebody told me I have to install other program (not the one that come with Xubuntu 18.04). And it worked well. Does anybody know which is that other program that manages the sessions or something?17:34
diogenes_xubuntu65w, maybe xscreensaver?17:35
rseveroHi. Since I upgraded to 18.04 I can't mount pen drives by just clicking on the pen drive on the file manager. I get a "Failed to mount... Not authorized to perform operation" error message. I bet it's some kind of problem with polkit but I can't find how to troubleshoot that. Ideias?17:45
GridCubemmm, I don't know if it would help really, but whenever i upgrade i usually remove the .Xauthority and .ICEauthority files from my /~ folder so they respawn properly17:48
GridCubethey take care of credentials if im not mistaken17:48
rseveroGridCube: Thanks for the info. Will try.17:50
rseveroGridCube: Unfortunatelly it didn't solve my problem. Any more ideas?17:57
GridCubemmhm17:58
diogenes_rsevero, try to create a new user17:59
diogenes_and see if it works there17:59
rseverodiogenes_: Will try. Just a moment.17:59
GridCubersevero: https://help.ubuntu.com/community/Mount/USB18:00
rseverodiogenes_: It worked. Ideias on how to make it work with my user again?18:08
rseveroGridCube: I couldn't identify anything that would help me on that page. Have you seen anything relevant?18:09
diogenes_rsevero, only by using trial and fail methind18:09
diogenes_first of all18:09
diogenes_backup your .config folder18:09
diogenes_and other .files (not folders)18:09
diogenes_then try to remove ~./config/Thunar, re-log see if works18:10
diogenes_if not, remove .cache re-log see if works and so on18:10
diogenes_it's a long trial and fail path18:10
rseveroApparently there is not troubleshoot procedure for polkit. Couldn't find anything in Google...18:13
=== pavlushka_ is now known as pavlushka
MannyLOn Xbuntu I have no sound on my display (a TV over HDMI) help please21:30
gnrpMannyL: When you open the mixer, does it show you the hdmi sound as an output device?21:31
MannyLgnrp, if by Mixer you mean Volume Control the only output I see is Digital Output S/PDIF21:33
MannyLgnrp, but if I do dmesg | grep HDMI it shows [    0.045289] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)21:33
gnrpMannyL: When you do `aplay -l`, does an HDMI show up?21:35
MannyLgnrp, No it does not21:36
gnrpthen this seems to be another problem to handle first.21:36
gnrpFrom your message, I assume you have a thinkpad with an nvidia and an intel card in it?21:37
gnrpor at least a thinkpad with an nvidia card? Anyway, what I want to say: Your problem seems to be more specific and not related to xubuntu as a distribution. I cannot tell you where, but you might find more help elsewhere21:38
MannyLgnrp, No this is a desktop system21:39
MannyLgnrp, and video is a AMD Radeon HD 7500 series21:40
gnrpuh, ok... I was completely misguided then by the output ;)21:40
gnrpI have no clue about AMD, but the problem seems to be that your system does not recognize the graphics card as a sound device first of all21:42
MannyLgnrp, I can understand that. I guess then the correct HW is not being detected. I am hsing a KVM switch but that shouldn't affect things21:42
gnrpindeed21:43
gnrpdon't know how recent this is: https://askubuntu.com/questions/285727/no-audio-via-hdmi-on-radeon-hd-7570-ubuntu-13-04-12-10-12-0421:44
MannyLgnrp, I will try the guidence there21:45
gnrpit is five years old, so take that with caution ;)21:48
MannyLTrying reboot now21:48
gnrpgl ;)21:49
_MannyhL_gnrp, No change. I will give up and use my other systems for sound21:53
_MannyhL_gnrp, the system has the A55M-E motherboard and I'm an idiot. I forgot I changed motherboads and that one does not have HDMI I was using a DVi to HDMI adapter and thus no sound. Thanks for the help21:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!