Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

desktop problem debian 10.2

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
rufuz
Posts: 12
Joined: 2020-01-16 11:03

desktop problem debian 10.2

#1 Post by rufuz »

Hello,

i have installed debian buster 10.2 with LXDE and when I try to open clamtk with the terminal as root i receive this message:

Gtk-WARNING **: cannot open display: at /usr/lib/x86_64-linux-gnu/perl5/5.28/Gtk2.pm line 126.

If i try to open it from the menu or with the terminal but not as root, it works fine.

Before I used stretch 9.4 with LXDE and it worked fine in either way.

I also tryied to open other programs as root with the terminal and i receive other errors.

Is it possible to solve this problem??

Thanks. Bye.

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#2 Post by rufuz »

somebody could help me?? :roll:

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1410
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 46 times
Been thanked: 70 times

Re: desktop problem debian 10.2

#3 Post by None1975 »

For what purpose do you want to open applications as root? This is a very bad practice.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#4 Post by rufuz »

Thanks for the reply
...usually i don't open programs as root but in this case (antivirus) i do it so it has the permission to scan all files on the the disk.
It works so also with bleachbit..if you want a deep cleaning you open it as root..
Thanks.Bye.

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: desktop problem debian 10.2

#5 Post by Chrisdb »

From the F.A.Q. of clamtk:

Code: Select all

ClamTk does not need to be run as root. As a matter of fact, MOST programs on Linux do not need to be run as root. If it is easier for you to update the system signatures this way, that is fine. But as much as you can, please run ClamTk as a regular user.

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#6 Post by rufuz »

Sorry! :D
I didn't know...I thought it was a right thing...besides it worked fine with the previous version! :lol:
Anyway, if I want to scan with clamav all the files in the hard disk, i mean all, allso the ones protected or restricted without exceptions, what is the right procedure using the terminal?
Thanks for your help.

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#7 Post by rufuz »

"if I want to scan with clamav all the files in the hard disk, i mean all, allso the ones protected or restricted without exceptions, what is the right procedure using the terminal?"
somebody knows how to do?? :?: :?

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: desktop problem debian 10.2

#8 Post by Chrisdb »

rufuz wrote:"if I want to scan with clamav all the files in the hard disk, i mean all, allso the ones protected or restricted without exceptions, what is the right procedure using the terminal?"
somebody knows how to do?? :?: :?
Use sudo
"sudo" is a command which allows ordinary users to perform administrative tasks.
This is not the same as running your application with root.

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#9 Post by rufuz »

Thanks Chris..sorry there is a problem if i use the command sudo i receive a message that i am not in the file sudoers.. i also followed some guide in internet to add me in the sudoers file but it doesn't work.. i receive that message

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: desktop problem debian 10.2

#10 Post by arochester »

AS ROOT
apt-get install sudo
usermod -a -G sudo <username>

Replace <username> with your username to which you want to grant sudo access.

Now logout & login to get sudo access to those users.

CwF
Global Moderator
Global Moderator
Posts: 2709
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 201 times

Re: desktop problem debian 10.2

#11 Post by CwF »

Maybe file a bug report to request a polkit action file be included in its next update. You could probably make one yourself. I don't use this, and a search for "pkexec clamtk" yielded nothing, yet...

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#12 Post by rufuz »

arochester wrote:AS ROOT
apt-get install sudo
usermod -a -G sudo <username>

Replace <username> with your username to which you want to grant sudo access.

Now logout & login to get sudo access to those users.
Thanks arochester..doing this procedure i receive this error:

-bash: errore di sintassi vicino al token non atteso "newline"

I try to translate in english:

- bash: sintax error near unexpected token "newline")
Last edited by rufuz on 2020-02-04 22:19, edited 1 time in total.

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#13 Post by rufuz »

CwF wrote:Maybe file a bug report to request a polkit action file be included in its next update. You could probably make one yourself. I don't use this, and a search for "pkexec clamtk" yielded nothing, yet...
thanks Cwf...I contacted the clamtk developers...they told me that it is not a problem of clamtk..they told me I probably drop and I don't have the
permissions as root to access my user desktop.

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#14 Post by rufuz »

rufuz wrote:
arochester wrote:AS ROOT
apt-get install sudo
usermod -a -G sudo <username>

Replace <username> with your username to which you want to grant sudo access.

Now logout & login to get sudo access to those users.
Thanks arochester..doing this procedure i receive this error:

-bash: errore di sintassi vicino al token non atteso "newline"

I try to translate in english:

- bash: sintax error near unexpected token "newline")

:?:

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#15 Post by rufuz »

arochester wrote:AS ROOT
apt-get install sudo
usermod -a -G sudo <username>

Replace <username> with your username to which you want to grant sudo access.

Now logout & login to get sudo access to those users.
following this procedure i receive this error: - bash: sintax error near unexpected token "newline"
what does it mean? how fix it?

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: desktop problem debian 10.2

#16 Post by Chrisdb »

Post complete output of your inserted command + error message

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#17 Post by rufuz »

Chrisdb wrote:Post complete output of your inserted command + error message
root@host:~# apt-get install sudo
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
sudo è già alla versione più recente (1.8.27-1+deb10u2).
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
root@host:~# usermod -a -G sudo <u>
-bash: errore di sintassi vicino al token non atteso "newline"

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: desktop problem debian 10.2

#18 Post by Chrisdb »

You should replace <u> with the username you will be using instead of root.

For example:

Code: Select all

usermod -a -G sudo rufuz

rufuz
Posts: 12
Joined: 2020-01-16 11:03

Re: desktop problem debian 10.2

#19 Post by rufuz »

u@host:~$ su -
Password:
root@host:~# apt-get install sudo
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
sudo è già alla versione più recente (1.8.27-1+deb10u2).
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
root@host:~# usermod -a -G sudo u
-bash: usermod: comando non trovato
root@host:~# usermod -a -G sudo mark
-bash: usermod: comando non trovato
root@host:~#

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: desktop problem debian 10.2

#20 Post by Head_on_a_Stick »

rufuz wrote:

Code: Select all

-bash: usermod: comando non trovato
You don't have the passwd package installed? That's not right.

Code: Select all

apt policy passwd
If it's installed then check root's PATH, you've invoked su(1) correctly so it should include /usr/sbin, which is where the usermod command is located.

Anyway, try the method listed on the Debian wiki page about sudo, which you should have checked before posting.
deadbang

Post Reply