#StackBounty: #linux #command-line #voip #raspberry-pi #lan Terminal-based VoIP over LAN on Linux

Bounty: 100

I’m looking for a way to do voice chatting over my LAN without an Internet connection. The two machines both run Linux (they are Raspberry Pis, with the latest Raspbian Stretch Lite installed).

Programs like Skype won’t do the job, because they require an Internet connection and only run with a GUI. TeamSpeak would probably run without an Internet connection, but I don’t think that there is a way to start it without a desktop environment.

Do you know a program that would meet these requirements? Preferably an open source solution?


Get this bounty!!!

#StackBounty: #command-line #terminal #iterm2 iTerm2 (version 3): Individual history per tab?

Bounty: 50

I’m using iTerm2 (version 3.1.beta.5) and like it. But something that it has been doing for a while that’s really annoying is that the command history is shared between tabs. E.g., in your first tab, run command foo and command bar, then go to your second tab and run say Hello, and then go back to the first tab; I would like and expect the up arrow to suggest bar and then foo, but instead it will suggest say Hello.

Is there a way to correct this behavior?


Get this bounty!!!

#StackBounty: #5.0-lollipop #5.1-lollipop #command-line pm hide VS pm disable — the identity crisis

Bounty: 100

What’s the need of pm disable when pm hide already does its job?

I’ve compiled some information based on my search and research: click here to see the table (edited).

As you can see, pm hide can achieve what pm disable can, but without needing root access. Also, based on my tests, I’ve reached the conclusion that when pm hide is performed, unlike pm disable, no matter what, the app will not be loaded in the memory again.

I opine that hide descended from block. Block was first introduced in KitKat 4.4.0, remained till Android L Preview and was later superseded by hide in Android 5.0.0. It is not clear to me what lead to renaming of block to hide and why was it needed?

Regardless, if somebody without root access can achieve the functionality of disable, then why does disable exists at all?

Furthermore, why does hide exists? If hide was built supposedly to help users to get rid of anything they want, without un-installation and without rooting the device, then in the GUI we should be having a relevant option, but we’ve got only the disable option.

Intertwine questions:

  • What are the merits and demerits of them, excluding those noted in my question?
  • Why both of them exists and to what or whom do they serve?
  • Is it technically true that hide surpasses the functionality of disable and can truly disable any app, when executed on it?
  • New: Given findings of Andrew T. and my tests shown in the table, is component shown in hide‘s usage an error or have I failed to understand latter’s usage?

    For historical purposes: hide‘s usage as of now is shown as

    pm hide [--user USER_ID] PACKAGE_OR_COMPONENT
    

Note: The question does not, in any fashion, seeks unsubstantiated opinion but straight to-the-point answer(s). If you must write an opinion, make sure to back it up using credible and technical sources with sound reasoning to make distinction between what is technical and real and what is speculative.


Tests performed on Carbon ROM (Android 5.1.1) and COS12 (Android 5.0.2) for OnePlus One.


Get this bounty!!!

#StackBounty: #windows-7 #command-line #display #cmd.exe How can I determine the manufacturer and model of my monitor?

Bounty: 50

…from within Windows, without having to disconnect and manhandle a 27″ inch monitor looking for a label that may not exist. It seems odd that there’s no software-only solution to do this on Windows 7.

Both Device Manager and the Control Panel’s Screen Resolution (accessed by left-clicking on the desktop) display it as a “Generic Non-PnP Monitor”.

I’ve also tried the VBS script solution here, but running the script returns a whole bunch of “bad EDID” values, whatever those mean:

screenshot of VBS script results

Anyone have an idea?


Get this bounty!!!

#StackBounty: #command-line #etc #fish #chsh Change default shell when user not in /etc/passwd

Bounty: 50

Any ideas on how can I change the shell to fish?

$ sudo usermod -s /usr/bin/fish jaan
usermod: user 'jaan' does not exist in /etc/passwd
$ getent passwd $USER
jaan:x:15466:94:Jaan Altosaar:/home/jaan:/bin/zsh

Related questions: user does not exist in /etc/passwd when trying to change the default shell
Seems like it uses ldap.

$ cat /etc/nsswitch.conf
passwd:         compat ldap
group:          compat ldap
shadow:         compat ldap

# Having the NOTFOUND=return bit was breaking dns resolution on web1 and web2. But we probably
# don't want any of the mdns stuff so let's get rid of it all.
#hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
hosts:          files dns

networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       ldap
automount:      ldap

So I installed ldap relevant package.

$ chsh.ldap
LDAP password for jaan:
Enter the new value, or press ENTER for the default
  Login Shell [/bin/zsh]: /usr/bin/fish
Traceback (most recent call last):
  File "/usr/bin/chsh.ldap", line 69, in <module>
    constants.NSLCD_USERMOD_SHELL: shell,
  File "/usr/share/nslcd-utils/nslcd.py", line 128, in usermod
    assert con.get_response() == constants.NSLCD_RESULT_BEGIN
  File "/usr/share/nslcd-utils/nslcd.py", line 103, in get_response
    return self.read_int32()
  File "/usr/share/nslcd-utils/nslcd.py", line 71, in read_int32
    return _int32.unpack(self.read(_int32.size))[0]
struct.error: unpack requires a string argument of length 4
$ which fish
/usr/bin/fish
$ chsh.ldap
LDAP password for jaan:
Enter the new value, or press ENTER for the default
  Login Shell [/bin/zsh]: "/usr/bin/fish"
/usr/bin/chsh.ldap: "/usr/bin/fish" is an invalid shell
$ /usr/bin/fish
(standard_in) 1: syntax error
Welcome to fish, the friendly interactive shell


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: #command-line #bash Backspace doesn't work inside running bash script

Bounty: 50

I’m running very simple script which reads line by line and prints entered line back to terminal:

while read CMD; do
    echo $CMD
done

It works fine, but when I’m trying to edit line with backspace character it prints ^?instead of deleting character. And when I press Ctrl + backspace the output is ^H. How could this behavior be fixed so backspace removes character instead of adding these characters?
I tried stty erase '^?' command but not successfully.


Get this bounty!!!

#StackBounty: #command-line #bash Backspace doesn't work inside running bash script

Bounty: 50

I’m running very simple script which reads line by line and prints entered line back to terminal:

while read CMD; do
    echo $CMD
done

It works fine, but when I’m trying to edit line with backspace character it prints ^?instead of deleting character. And when I press Ctrl + backspace the output is ^H. How could this behavior be fixed so backspace removes character instead of adding these characters?
I tried stty erase '^?' command but not successfully.


Get this bounty!!!