#StackBounty: #debian #pam gksu texteditor changes rights from user to root after save

Bounty: 100

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.1 (stretch)
Release:    9.1
Codename:   stretch

whenever I use mousepad or another editor calling with gksu form terminal and save the changed file it breaks the permission to /run/user/1000/dconf/user
and the ProzeƟ mate-settings-daemon
slows the system of course . systemd --version
systemd 232
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN

libpam-systemd-version LANG=C apt-cache policy libpam-systemd
libpam-systemd:
Installed: 232-25+deb9u1
Candidate: 232-25+deb9u1
Version table:
*** 232-25+deb9u1 500
500 http://http.us.debian.org/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status

In journal during cmd.

Aug 17 10:01:42 Taomon su[6755]: pam_unix(su:session): session opened for user root by alex(uid=1000)
Aug 17 10:01:42 Taomon su[6755]: pam_systemd(su:session): Cannot create session: Already running in a session
pam_unix(su:session): session closed for user root

I always use gksu for graphical programms, but gksu acts like I would only call su.

`
No sudo in use. Editor like nano are working fine.

Any hints, where to look?

Same effekt wenn I stroke ALT+F2 and run gksu every program from there. Something wrong with gksu.

LANG=C update-alternatives --display libgksu-gconf-defaults 
libgksu-gconf-defaults - auto mode
  link best version is /usr/share/libgksu/debian/gconf-defaults.libgksu-su
  link currently points to /usr/share/libgksu/debian/gconf-defaults.libgksu-su
  link libgksu-gconf-defaults is /usr/share/gconf/defaults/10_libgksu
/usr/share/libgksu/debian/gconf-defaults.libgksu-su - priority 20
/usr/share/libgksu/debian/gconf-defaults.libgksu-sudo - priority 10


Get this bounty!!!

#StackBounty: #linux #open-source #note-taking #knowledge-organization #debian Which free notetaking software allows me to highlight sp…

Bounty: 50

I’m looking for free and open source notetaking software that allows me to highlight specified words (or preferably whole lines after a specified word) and helps me organize and categorize ideas and similar textual content?

It would be great if that same software could also help me organize weblinks and associated content. But maybe that’s more or less a separate question / software.

Under Windows Notepad++ allowed me to create a custom language to highlight words.

I’m running Debian 9.1 with KDE.


Get this bounty!!!

#StackBounty: #debian #kde #url #dolphin How to properly move weblinks from my browser to a folder via drag and drop in Debian with KDE…

Bounty: 50

Besides having my desktop span over multiple monitors I’d also like to be able to move weblinks to it (or to folders on it).

I’m running Debian 9.1 with KDE and am using the standard Dolphin file-manager. My desktop is set to folder-view. When moving links onto it or into folders on it I get a menu showing the options “Move here”, “Copy here”, “Link here” and “Cancel”. When I choose “Link here” I get a clickable weblink. However its name is not the page title but only the url as can be seen in the screenshot below:

enter image description here

I need them to be named after the page-title. Additionally, if possible I’d like to have it create a link automatically without me having to choose “Link here”. Furthermore it would be nice if the link was moved into a folder on the desktop if dropped onto one (not just if it’s openend with the file-manager). I’d like to keep Dolphin and KDE because otherwise they were great choices. Is this possible somehow?


Get this bounty!!!

#StackBounty: #debian #iptables #firewall Configure iptables for Docker manually and allow Internet access for containers

Bounty: 50

I was really unhappy with Docker’s behavior regarding modifying my firewall rules because it just opens all ports on my server.
So I have installed iptables-persistent and set up some firewall rules that block all incoming traffic except for port 22, 80 and 443 and I ensured that Docker stops messing with these rules by creating /etc/systemd/system/docker.service.d/noiptables.conf with the following content:

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --iptables=false -H "fd://"

and then rebooted the server.

Now my problem is that my Docker containers can’t access the Internet (interface: ens3) anymore.

These are my rules:

*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o ens3 -j MASQUERADE
COMMIT

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]

# Allow localhost
-A INPUT -i lo -j ACCEPT
-A OUTPUT -o lo -j ACCEPT

# ICMP
-A INPUT -p icmp -j ACCEPT

# Docker
-A FORWARD -i docker0 -o ens3 -j ACCEPT
-A FORWARD -i ens3 -o docker0 -j ACCEPT


# Incoming
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -j DROP

# Outgoing
-A OUTPUT -j ACCEPT

# Routing
-A FORWARD -j DROP


COMMIT

I stored them in /etc/iptables/rules.v4 and /etc/iptables/rules.v6 and made sure they are loaded by running sudo netfilter-persistent reload.

According to this guide: https://blog.daknob.net/debian-firewall-docker/
The *nat section would do the job, but it doesn’t.

My system:

$ sudo iptables --version
iptables v1.6.1

$ uname -r
4.11.0-1-amd64

$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux testing (buster)
Release:        testing
Codename:       buster


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!

#StackBounty: #tables #forms #debian How to have Form options in Table cells?

Bounty: 100

I want to have four form questions in one row of table.
I have the following four questions in the table row in Fig. 1:

  1. Key: Yes/No i.e. tick for Yes
  2. Choose one from V2V0
  3. Choose one from P2P0
  4. Critical: Yes/No i.e. tick for Yes

Code and its output in Fig. 1 where I cannot integrate Form options in the table cells

documentclass{beamer}
usepackage[english]{babel}
usetheme{Berkeley}
usepackage{microtype}% more flexibility for narrow columns
usepackage{tabularx}
usepackage{booktabs}
usepackage{siunitx}
usepackage{adjustbox}

begin{document}
begin{frame}
begin{adjustbox}{max width=1.1textwidth,center}
begin{table}[!ht]
centering
    % TODO have Form options in the table cells
    begin{tabular}{|l|l|l|l|l|l|l|l|l|}
    hline
    textbf{Key} & 
        textbf{V2} & textbf{V1} & textbf{V0} 
        & textbf{SCORE} 
        & textbf{P1} & textbf{P2} & textbf{P3} 
        & textbf{Critical} \ hline
        &  &  &  & 1. Skills &  &  &  & \ hline
    end{tabular}
end{table}
end{adjustbox}
end{frame}

begin{frame}
% Show reproduction of the answers in the next sheet. 

end{frame}
end{document}

I can do the form options in enumerate:

    % I can do form in enumerate but not in table
    begin{Form}
    begin{enumerate}
    item ChoiceMenu[name=football,radio,default=-0]{Do you play football?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
    item ChoiceMenu[name=ice-hockey,radio,default=-0]{Do you play ice-hockey?}{Much (2)=2,Little (1)=1,Not at all (0)=0}
    end{enumerate}
    end{Form}

Fig. 1 Output where table structure

enter image description here

Expected output: four questions in one row of table, and reproduce those answers in the last slide

Testing eforms

I do know the thread answer Creating fillable PDFs, but I cannot get the package work in my TeXLive:

! LaTeX Error: File 'eforms.sty' not found.

Possible structure

begin{tabular}{lp{4in}}
   Key                & infoInput{Key}\[6pt]
   V2                 & infoInput{V2}\[6pt]
   V1                 & infoInput{V1}\[6pt]
   V0                 & infoInput{V0}\[6pt]
   P1                 & infoInput{P1}\[6pt]
   P2                 & infoInput{P2}\[6pt]
   P3                 & infoInput{P3}\[6pt]
   Critical           & infoInput{Critical}\[6pt]
end{tabular}

OS: Debian 9
TeXLive: 2017


Get this bounty!!!

#StackBounty: #debian #command-line #apt #ppa Problem adding ppa's in Deepin OS 15.4

Bounty: 50

I am running Deepin OS 15.4, which is based on Debian unstable.

When I type:

sudo add-apt-repository ppa:nilarimogard/webupd8

I get:

gpg: keybox '/tmp/tmpeel0gwwr/pubring.gpg' created
gpg: /tmp/tmpeel0gwwr/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

Extension:

After installing gnupg2 and running the other command, I get:

gpg: keybox '/tmp/tmpiyqhvqsc/pubring.gpg' created
gpg: /tmp/tmpiyqhvqsc/trustdb.gpg: trustdb created
gpg: key 531EE72F4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
    func(**kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
    return apsk.add_ppa_signing_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
    cleanup(tmp_keyring_dir)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
    shutil.rmtree(tmp_keyring_dir)
  File "/usr/lib/python3.5/shutil.py", line 474, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'  

Extension:

Now after running the two mentioned commands it gives me the first error again.


Get this bounty!!!