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
desktop problem debian 10.2
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.
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.
- None1975
- 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
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
Debian Wiki | DontBreakDebian, My config files on github
Re: desktop problem debian 10.2
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.
...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.
Re: desktop problem debian 10.2
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.
Re: desktop problem debian 10.2
Sorry!
I didn't know...I thought it was a right thing...besides it worked fine with the previous version!
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.
I didn't know...I thought it was a right thing...besides it worked fine with the previous version!
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.
Re: desktop problem debian 10.2
"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??
somebody knows how to do??
Re: desktop problem debian 10.2
Use sudorufuz 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??
This is not the same as running your application with root."sudo" is a command which allows ordinary users to perform administrative tasks.
Re: desktop problem debian 10.2
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
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: desktop problem debian 10.2
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.
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.
-
- 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
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...
Re: desktop problem debian 10.2
Thanks arochester..doing this procedure i receive this error: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.
-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.
Re: desktop problem debian 10.2
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 theCwF 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...
permissions as root to access my user desktop.
Re: desktop problem debian 10.2
rufuz wrote:Thanks arochester..doing this procedure i receive this error: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.
-bash: errore di sintassi vicino al token non atteso "newline"
I try to translate in english:
- bash: sintax error near unexpected token "newline")
Re: desktop problem debian 10.2
following this procedure i receive this error: - bash: sintax error near unexpected token "newline"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.
what does it mean? how fix it?
Re: desktop problem debian 10.2
root@host:~# apt-get install sudoChrisdb wrote:Post complete output of your inserted command + error message
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"
Re: desktop problem debian 10.2
You should replace <u> with the username you will be using instead of root.
For example:
For example:
Code: Select all
usermod -a -G sudo rufuz
Re: desktop problem debian 10.2
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:~#
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:~#
- 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
You don't have the passwd package installed? That's not right.rufuz wrote:Code: Select all
-bash: usermod: comando non trovato
Code: Select all
apt policy passwd
Anyway, try the method listed on the Debian wiki page about sudo, which you should have checked before posting.
deadbang