Saturday, March 20, 2021

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


Ubuntu UEFI entry point missing

Posted: 20 Mar 2021 10:18 AM PDT

I originally had Ubuntu 20.10 installed on my HDD without any booting problem. Days ago my HDD broke down and I decided to migrate to a new SSD. I installed Ubuntu 20.10 on the SSD just like before, but was unable to find any UEFI entry after reboot.

I followed this post together with this tutorial and managed to recover an entry using a Live USB (sudo efibootmgr -v displays an Ubuntu entry). However, after rebooting the PC the entry was still missing, and the Ubuntu entry seemed to have disappeared from sudo efibootmgr -v.

  • OS: Ubuntu 20.10
  • Motherboard: Asrock Z97 Extreme6
  • SSD: Western Digital SN550

Your help will be greatly appreciated!

deb version is "git tag+git commit hash" = apt downloading the wrong version from my apt repo

Posted: 20 Mar 2021 10:12 AM PDT

I made a script that compiles a program (box86), packages it into a debian package every week, and uploads it to my apt repo (hosted on github).
for the version of each package I use the git tag (0.2.1 for example) and the git commit hash (638b341 for example) and put them like this: tag+sha1 (0.2.1+638b341 for example). note that checkinstall that is used for packaging adds a -1 to the end, so in my example, the version would be 0.2.1+638b341-1.

after adding the repo to my apt sources, apt gets the wrong version. I tried several fixes including adding a "epoch", incrementing the -1, and adding a number before and incrementing it in each version (1-version). but none of them worked (or would be practical).

I'm pretty sure I have to add something to the version, but I don't know what.

any help is appreciated.

Automatic replies to certain e-mails

Posted: 20 Mar 2021 09:48 AM PDT

I would like to send automatic replies to e-mails with certain characteristics and have the impression that the dovecot pigeonhole plugin can do this, but I'm confused about what I need to get it to work. I now use fdm to fetch mail and Dovecot to make it available to Gnus. But it seems that, for some reason, in order to get sieve/pigeonhole to work, I must use lmtp, which in turn requires Postfix(?) Does that mean that I should use Postfix instead of fdm to fetch mail? How do I do that? (I have found some instructions, but they all presuppose I know all sorts of things I don't, and I suspect that they are intended for cases that are more complicated than mine, such as that of a real mail server.)

vm.max_map_count for a running process?

Posted: 20 Mar 2021 09:37 AM PDT

Is there a way to determine vm.max_map_count for a running process?

I'm using Ubuntu 18.04

Verified good `mkisofs` for CentOS 8?

Posted: 20 Mar 2021 09:27 AM PDT

I'm running through the steps to add a kickstart to a CentOS 8 ISO. I've looked at Red Hat's documentation for RHEL5 through RHEL8, and several probably outdated web pages.

  • I know the dd command to burn the new ISO works with an unmodified ISO. The USB drive is bootable in that case.
  • I know I have a good kickstart file.
  • I've made the modifications to isolinux/isolinux.cfg to add ks=cdrom:/ks.cfg.
  • I even found the documentation about adding inst.ks=cdrom:/ks.cfg to EFI/BOOT/grub.cfg.

And in every case, mkisofs still won't make a bootable USB drive. The USB drive is readable, once the regular OS is running and it's bootable if I dd the existing ISO onto it. I think I've ruled out everything except for something missing in this command. (The -V volume name is taken directly from running the blkid command on the downloaded base ISO.)

mkisofs \    -o ../CentOS-8.3.2011-x86_64-ks.iso \    -b isolinux/isolinux.bin \    -J -R -l -v \    -c isolinux/boot.cat \    -no-emul-boot \    -boot-load-size 4 \    -boot-info-table \    -eltorito-alt-boot \    -graft-points \    -V "CentOS-8-3-2011-x86_64-dvd" .  

Once I have this part figured out, I'll document the whole process. Everything I've found out there right now is at least two years old.

How to get a list of unused kernel modules of currently running system? (Static and loaded)

Posted: 20 Mar 2021 09:36 AM PDT

There are a lot of interesting kernel modules. Thanks to the linux kernel, I now know there is such a thing as a "Lego Infrared Tower".

I'm trying to slim down my linux kernel beyond the point of things I obviously dont need.

To do this, I need a programmatic way to find the unused kernel modules currently in my system.

I know about 'lsmod'. But that's very far away from what I'm looking for.

*** The reverse approach - by elimination ***

What I might need to achieve this result is a way to determine which statically compiled and loaded modules currently are in use. These are the ones selected by "*" in the menuconfig and not just "M"

I think i already might a way to "cross out" each of those modules in the .config file of the current kernel, because it is possible to map module names to config names using a grep command as described here:

Binding lsmod module name with kernel configuration menu entry

though I am not sure how consistently that will work.

So what I have already is the .config file and the kernel sources and that grep command from that link above. The bottleneck is the first list of statically-used and loadedly- used kernel modules.

This is perhaps a "best effort" question. It is as difficult to completely clean a kernel as it is to completely clean a bedroom. When my bedroom is clean, there is still some dust here and there. These are the same expectations I would expect for an answer to this question.

With any resulting list, more manual filtering will be needed, because I dont think I am constantly using things like DNS name resolutions, though I do need those intermittently.

But there has to be faster way to clean a kernel than recompiling the kernel every few hours with less and less modules each time. Or is there a more common strategy?

String RSA Encrypt with Public Key in bash?

Posted: 20 Mar 2021 08:26 AM PDT

I want to crypt a String with bash,

Example: (No longer i using this keys after sharing. D'ont worry about this.) ~/.myprogram.publickey.txt

MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDtafZU77OYTutFUHYBDjHBV7IJBdcIQ9in9lI/nGrENuVSEekcnSVhEISgkLUavxbPRjFyGtuG4zk1QgK4Y4vszVtcI13pemm1sOVM7ATF1Yh+dgJ5BTxxLe267s1BdIU+sJX+zBR4zKy2uaJb2dJgC40+VJcpETQTT/GivkcScQIDAQAB  

Here is Private key for testing:

MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAO1p9lTvs5hO60VQdgEOMcFXsgkF1whD2Kf2Uj+casQ25VIR6RydJWEQhKCQtRq/Fs9GMXIa24bjOTVCArhji+zNW1wjXel6abWw5UzsBMXViH52AnkFPHEt7bruzUF0hT6wlf7MFHjMrLa5olvZ0mALjT5UlykRNBNP8aK+RxJxAgMBAAECgYEAg/08AL5+lzeQ3yk7YZzVloq9pPyFLsghZEeyNEEurkViunzQn6LSDCOVyHqK5QLFmJiKlshNsbETtgMr5f0Z5Yt7BMqryOSDuQF6oCg3rcKUmiW9V2EosLzkbAfSYYNDUPOxk3QcnptX1goRctnf9186YWBAIvhsa+KrrB4+zsECQQD/zIbHoQF9nt+LsCxjs0mjbWf8GQ/0K1/xu5YhNRxlXmZCD78lEsxlMJyzXeVE5GIJk58ITqmevWgwCssZWUD5AkEA7Zm8d3dgvOJ2RXJFj81oFbs+wxmxlnOnHwdpMAAjKiP/kVJPUrEFhJdcVN3BLw0Gd0W7oyUHKVbJ0kzisKYzOQJAEAa2Ywd5Wm97vfq5rT1sXarbGvZPA5M8HZ8NFuOG9ermKTlnVmFJIQXcq3g0hw5v/f2btx+GjQV845Wph9sJsQJAeTLQlkgIypDiL66ImT/39g3bh/3VPp+kAgnvuBJ53YcbWG+aEt5FqErlSE0NvAhy4ehqPGAo9QdWT7X0dJNy0QJAH7lLkgdkCRJrWS3Pp0lTCCrOxjKz+b6EhKtaSpcEH+1aMNa+02LrpGfIjOlby8XixgSyK3P1xtWczTzGbxgRtw==  

String: meow

Crypt output by online tool: https://www.devglan.com/online-tools/rsa-encryption-decryption

SqxCpp34eOCqjlHy3qdztdherafLvWdJ3AAqbyH5E3YyTBh77nzi0VjVz9ZZfpNhgAvobr9i4OLd/qDQnknsbbwkJ7Funp1L5RsAMKBP/AHKXpnYh+b+5vkpLqc2rrTZ5K7FBJxGuEyraqFGpJFRo34c4tDshwZH7USoXK3OouM=  

Why does my entire home network go down when I change my server's network settings?

Posted: 20 Mar 2021 08:52 AM PDT

How do I make sure my router (not my server) controls the entire network?

I am attempting to create a bridge to bridge my two server's network cards. Every time I attempt to change anything in my network configuration on the server, my entire home network is taken down. I mean everything in the house, from cell phones to laptops to PC's, all lose connection until I either disconnect the server from the network or put the configuration back to its original state. Also, the change I make to the server also breaks the server's networking/internet connection, until I return it to its original state.

Clearly, my router is relying on my server for something, but I don't know what or how to go about finding it. And I surely didn't set that up on purpose.

On a side note, every change seems to require a server reboot which takes about 12 minutes, so experimenting is very time consuming and has made this difficult to figure out.

Here's a basic layout of my home network: Basic layout of my home network

I'm not sure if this is relevant or not, but I have given my server a static IP via my router:

ROUTER SCREENSHOT enter image description here

Some other miscellaneous points which may or may not be relevant:

  1. I installed avahi in order to be able to call my server by servername.local
  2. The server works great, as long as I don't mess with the networking (nextcloud, webmin, phpmyadmin, all work great)
  3. My home network includes MOCA devices which I did not put in the diagram

EDIT:

Some additional screenshots that could be useful:

SERVER SCREENSHOTS FROM WEBMIN enter image description here enter image description here enter image description here

How do I calculate sum of numbers from different rows?

Posted: 20 Mar 2021 08:14 AM PDT

I have a file containing numbers in many rows and 5 columns like this:

1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
...

If I want to get sums of the numbers in the 1st row and 3rd row in this way: 1+11 2+12 3+13 4+14 5+15 which means what I want to see finally is 12 14 16 18 20
What should I do?

Port is open but external IPs have no access

Posted: 20 Mar 2021 07:32 AM PDT

My MongoDB is running under a docker container. On the server, I can confirm that port 27017 is open. MongoDB IP Bind is set to 0.0.0.0 to /etc/mongod.conf

nmap -p 27017  127.0.0.1  PORT      STATE SERVICE  27017/tcp open  mongod  

IpTables also have the rule

Chain INPUT (policy ACCEPT)  ACCEPT     tcp  --  localhost.localdomain  localhost.localdomain  tcp dpt:27017  ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:27017  

Also netstat reports Listening

(No info could be read for "-p": geteuid()=1004 but you should be root.)  Active Internet connections (only servers)  Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name  tcp        0      0 0.0.0.0:6379            0.0.0.0:*               LISTEN      -  tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN      -  tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -  tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -  tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      -  tcp        0      0 0.0.0.0:27017           0.0.0.0:*               LISTEN      -  tcp6       0      0 :::6379                 :::*                    LISTEN      -  tcp6       0      0 :::22                   :::*                    LISTEN      -  tcp6       0      0 :::3001                 :::*                    LISTEN      -  tcp6       0      0 :::3002                 :::*                    LISTEN      -  tcp6       0      0 :::443                  :::*                    LISTEN      -  tcp6       0      0 :::9090                 :::*                    LISTEN      -  udp        0      0 0.0.0.0:10000           0.0.0.0:*                           -  udp        0      0 127.0.0.53:53           0.0.0.0:*                           -  

From my computer nmap reports that the port is filtered

nmap -p 27017  xxxx.xxxxx.xxxxx  PORT      STATE    SERVICE  27017/tcp filtered mongod  

How can I have access remotely to port 27017? What else to check?

EDIT : List of iptables -L -v

Chain INPUT (policy DROP 52 packets, 2544 bytes)   pkts bytes target     prot opt in     out     source               destination   2469  164K f2b-sshd   tcp  --  any    any     anywhere             anywhere             multiport dports ssh   2758  180K ACCEPT     tcp  --  any    any     localhost.localdomain  localhost.localdomain  tcp dpt:27017   4189  500K ufw-before-logging-input  all  --  any    any     anywhere             anywhere   4189  500K ufw-before-input  all  --  any    any     anywhere             anywhere   1136  119K ufw-after-input  all  --  any    any     anywhere             anywhere   1130  119K ufw-after-logging-input  all  --  any    any     anywhere             anywhere   1130  119K ufw-reject-input  all  --  any    any     anywhere             anywhere   1130  119K ufw-track-input  all  --  any    any     anywhere             anywhere      0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp dpt:27017    Chain FORWARD (policy DROP 0 packets, 0 bytes)   pkts bytes target     prot opt in     out     source               destination      0     0 DOCKER-USER  all  --  any    any     anywhere             anywhere      0     0 DOCKER-ISOLATION-STAGE-1  all  --  any    any     anywhere             anywhere      0     0 ACCEPT     all  --  any    docker0  anywhere             anywhere             ctstate RELATED,ESTABLISHED      0     0 DOCKER     all  --  any    docker0  anywhere             anywhere      0     0 ACCEPT     all  --  docker0 !docker0  anywhere             anywhere      0     0 ACCEPT     all  --  docker0 docker0  anywhere             anywhere      0     0 ufw-before-logging-forward  all  --  any    any     anywhere             anywhere      0     0 ufw-before-forward  all  --  any    any     anywhere             anywhere      0     0 ufw-after-forward  all  --  any    any     anywhere             anywhere      0     0 ufw-after-logging-forward  all  --  any    any     anywhere             anywhere      0     0 ufw-reject-forward  all  --  any    any     anywhere             anywhere      0     0 ufw-track-forward  all  --  any    any     anywhere             anywhere    Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)   pkts bytes target     prot opt in     out     source               destination   7585 1341K ufw-before-logging-output  all  --  any    any     anywhere             anywhere   7585 1341K ufw-before-output  all  --  any    any     anywhere             anywhere   1112  164K ufw-after-output  all  --  any    any     anywhere             anywhere   1112  164K ufw-after-logging-output  all  --  any    any     anywhere             anywhere   1112  164K ufw-reject-output  all  --  any    any     anywhere             anywhere   1112  164K ufw-track-output  all  --  any    any     anywhere             anywhere    Chain DOCKER (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain DOCKER-ISOLATION-STAGE-1 (1 references)   pkts bytes target     prot opt in     out     source               destination      0     0 DOCKER-ISOLATION-STAGE-2  all  --  docker0 !docker0  anywhere             anywhere      0     0 RETURN     all  --  any    any     anywhere             anywhere    Chain DOCKER-ISOLATION-STAGE-2 (1 references)   pkts bytes target     prot opt in     out     source               destination      0     0 DROP       all  --  any    docker0  anywhere             anywhere      0     0 RETURN     all  --  any    any     anywhere             anywhere    Chain DOCKER-USER (1 references)   pkts bytes target     prot opt in     out     source               destination      0     0 RETURN     all  --  any    any     anywhere             anywhere    Chain f2b-sshd (1 references)   pkts bytes target     prot opt in     out     source               destination   2469  164K RETURN     all  --  any    any     anywhere             anywhere    Chain ufw-after-forward (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-after-input (1 references)   pkts bytes target     prot opt in     out     source               destination      6   468 ufw-skip-to-policy-input  udp  --  any    any     anywhere             anywhere             udp dpt:netbios-ns      0     0 ufw-skip-to-policy-input  udp  --  any    any     anywhere             anywhere             udp dpt:netbios-dgm      0     0 ufw-skip-to-policy-input  tcp  --  any    any     anywhere             anywhere             tcp dpt:netbios-ssn      0     0 ufw-skip-to-policy-input  tcp  --  any    any     anywhere             anywhere             tcp dpt:microsoft-ds      0     0 ufw-skip-to-policy-input  udp  --  any    any     anywhere             anywhere             udp dpt:bootps      0     0 ufw-skip-to-policy-input  udp  --  any    any     anywhere             anywhere             udp dpt:bootpc      0     0 ufw-skip-to-policy-input  all  --  any    any     anywhere             anywhere             ADDRTYPE match dst-type BROADCAST    Chain ufw-after-logging-forward (1 references)   pkts bytes target     prot opt in     out     source               destination      0     0 LOG        all  --  any    any     anywhere             anywhere             limit: avg 3/min burst 10 LOG level warning prefix "[UFW BLOCK] "    Chain ufw-after-logging-input (1 references)   pkts bytes target     prot opt in     out     source               destination     90  4292 LOG        all  --  any    any     anywhere             anywhere             limit: avg 3/min burst 10 LOG level warning prefix "[UFW BLOCK] "    Chain ufw-after-logging-output (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-after-output (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-before-forward (1 references)   pkts bytes target     prot opt in     out     source               destination      0     0 ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED      0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp destination-unreachable      0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp time-exceeded      0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp parameter-problem      0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp echo-request      0     0 ufw-user-forward  all  --  any    any     anywhere             anywhere    Chain ufw-before-input (1 references)   pkts bytes target     prot opt in     out     source               destination   1206  254K ACCEPT     all  --  lo     any     anywhere             anywhere   1807  124K ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED      0     0 ufw-logging-deny  all  --  any    any     anywhere             anywhere             ctstate INVALID      0     0 DROP       all  --  any    any     anywhere             anywhere             ctstate INVALID      0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp destination-unreachable      0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp time-exceeded      0     0 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp parameter-problem     27  1684 ACCEPT     icmp --  any    any     anywhere             anywhere             icmp echo-request      0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp spt:bootps dpt:bootpc    342 17584 ufw-not-local  all  --  any    any     anywhere             anywhere      0     0 ACCEPT     udp  --  any    any     anywhere             224.0.0.251          udp dpt:mdns      0     0 ACCEPT     udp  --  any    any     anywhere             239.255.255.250      udp dpt:1900    342 17584 ufw-user-input  all  --  any    any     anywhere             anywhere    Chain ufw-before-logging-forward (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-before-logging-input (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-before-logging-output (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-before-output (1 references)   pkts bytes target     prot opt in     out     source               destination   3556  407K ACCEPT     all  --  any    lo      anywhere             anywhere   2917  769K ACCEPT     all  --  any    any     anywhere             anywhere             ctstate RELATED,ESTABLISHED     39  2762 ufw-user-output  all  --  any    any     anywhere             anywhere    Chain ufw-logging-allow (0 references)   pkts bytes target     prot opt in     out     source               destination      0     0 LOG        all  --  any    any     anywhere             anywhere             limit: avg 3/min burst 10 LOG level warning prefix "[UFW ALLOW] "    Chain ufw-logging-deny (2 references)   pkts bytes target     prot opt in     out     source               destination      0     0 RETURN     all  --  any    any     anywhere             anywhere             ctstate INVALID limit: avg 3/min burst 10      0     0 LOG        all  --  any    any     anywhere             anywhere             limit: avg 3/min burst 10 LOG level warning prefix "[UFW BLOCK] "    Chain ufw-not-local (1 references)   pkts bytes target     prot opt in     out     source               destination    312 16348 RETURN     all  --  any    any     anywhere             anywhere             ADDRTYPE match dst-type LOCAL     24   768 RETURN     all  --  any    any     anywhere             anywhere             ADDRTYPE match dst-type MULTICAST      6   468 RETURN     all  --  any    any     anywhere             anywhere             ADDRTYPE match dst-type BROADCAST      0     0 ufw-logging-deny  all  --  any    any     anywhere             anywhere             limit: avg 3/min burst 10      0     0 DROP       all  --  any    any     anywhere             anywhere    Chain ufw-reject-forward (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-reject-input (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-reject-output (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-skip-to-policy-forward (0 references)   pkts bytes target     prot opt in     out     source               destination      0     0 DROP       all  --  any    any     anywhere             anywhere    Chain ufw-skip-to-policy-input (7 references)   pkts bytes target     prot opt in     out     source               destination      6   468 DROP       all  --  any    any     anywhere             anywhere    Chain ufw-skip-to-policy-output (0 references)   pkts bytes target     prot opt in     out     source               destination      0     0 ACCEPT     all  --  any    any     anywhere             anywhere    Chain ufw-track-forward (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-track-input (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-track-output (1 references)   pkts bytes target     prot opt in     out     source               destination      1    60 ACCEPT     tcp  --  any    any     anywhere             anywhere             ctstate NEW     38  2702 ACCEPT     udp  --  any    any     anywhere             anywhere             ctstate NEW    Chain ufw-user-forward (1 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-user-input (1 references)   pkts bytes target     prot opt in     out     source               destination      3   180 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp dpt:http      0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp dpt:80     10   516 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp dpt:https      0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp dpt:443      0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp dpt:27017      0     0 ACCEPT     udp  --  any    any     anywhere             anywhere             udp dpt:27017      0     0 ACCEPT     tcp  --  any    any     anywhere             anywhere             tcp dpt:27017    Chain ufw-user-limit (0 references)   pkts bytes target     prot opt in     out     source               destination      0     0 LOG        all  --  any    any     anywhere             anywhere             limit: avg 3/min burst 5 LOG level warning prefix "[UFW LIMIT BLOCK] "      0     0 REJECT     all  --  any    any     anywhere             anywhere             reject-with icmp-port-unreachable    Chain ufw-user-limit-accept (0 references)   pkts bytes target     prot opt in     out     source               destination      0     0 ACCEPT     all  --  any    any     anywhere             anywhere    Chain ufw-user-logging-forward (0 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-user-logging-input (0 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-user-logging-output (0 references)   pkts bytes target     prot opt in     out     source               destination    Chain ufw-user-output (1 references)   pkts bytes target     prot opt in     out     source               destination  

firewall status

ufw status  Status: active    To                         Action      From  --                         ------      ----  80                         ALLOW       Anywhere  443                        ALLOW       Anywhere  27017                      ALLOW       Anywhere  27017/tcp                  ALLOW       Anywhere  80 (v6)                    ALLOW       Anywhere (v6)  443 (v6)                   ALLOW       Anywhere (v6)  27017 (v6)                 ALLOW       Anywhere (v6)  27017/tcp (v6)             ALLOW       Anywhere (v6)  

Windows Terminal no longer lists Ubuntu bash

Posted: 20 Mar 2021 09:49 AM PDT

I'm on Windows 10 Pro 10.0.21337 (windows insider program) and installed WSL and Windows Terminal which listed powershell, cmd.exe, Ubuntu bash and azure as profiles. I made the Ubuntu bash the default and this worked fine for a while.

After a restart I was warned that the chosen default guid is not valid. Also, Ubuntu is no longer listed in the menu but the other three are. Here's the relevant snippet in settings.json:

        {              "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",              "hidden": false,              "name": "Ubuntu",              "source": "Windows.Terminal.Wsl"          },  

In another computer (Win 10 Pro 10.0.19041) I still have the same settings and they work.

What does "source": "Windows.Terminal.Wsl" mean exactly? Does it point to some other config? How is it supposed to work?

Is there a way to view web images from the terminal?

Posted: 20 Mar 2021 10:01 AM PDT

I want to be able to view the images inside a repository about wallpapers. Going through every image takes to long with the browser. I wonder if exists a program which I can accomplish this, view images from http

Can ssh-copy-id be configured to save to a different authorized_keys file?

Posted: 20 Mar 2021 07:30 AM PDT

Looking at the source of ssh-copy-id at openssh-portable/ssh-copy-id at master · openssh/openssh-portable · GitHub it looks like ssh-copy-id can copy the key to user specified authorized_keys files on the server, besides the default ~/.ssh/authorized_keys.

However there doesn't seem to be a command line option for it, unless I'm looking at a differnt ssh-copy-id.

Understanding the "process substitution" concept [duplicate]

Posted: 20 Mar 2021 09:24 AM PDT

I seek a simple explanation about the term "process substitution" aimed for general audience / non professional sysadmins, which do server environment maintenance for personal projects once in a while and not daily for customers or companies, if its okay to ask for it here.

  • What problem/s this concept was invented to solve
  • What process is being substituted and with what (the name might mislead)?
  • Is it also named "preserving stdin" and if so why? If the stdin device holds standard input which can be piped to another command, what is there to "preserve" further than that?

This might help me to understand the following command:

bash <(wget -O - URL)  

Note for newcomers: -O - tells wget to write data to stdout;

How to move all the files with specific prefix of the directory? [duplicate]

Posted: 20 Mar 2021 07:28 AM PDT

I have a following directory structure (assume no two files have the same name):

  • Apple1
    • apple1.jpg
    • apple2.jpg
  • Apple2
    • apple3.jpg
    • apple4.jpg
  • Apple3
  • Tomato
  • Peach

And i would like to move one directory to the top directory all the *.jpg files inside the directories, which names start from Apple.

As a result I expect the Apple directories to be empty and the images from Apple directories to be in the top.

I have tried doing like mv "Apple*/*.jpg" ., or find . "Apple*/*.jpg" -exec mv -t . {} + as prescribed here How to integrate mv command after find command?. But this doesn't work.

When executing mv i receive a following message:

mv: cannot stat 'Apple*/*.jpg': No such file or directory  

Seems like it has not found anything matching the pattern. And other option simply outputs nothing. Maybe the reason is, that in the case of subdirectories regular expression needs to be modified?

I would be very grateful for help and suggestions.

No space but `df`shows otherwise

Posted: 20 Mar 2021 08:07 AM PDT

UPDATE

See answer. Found the problem.


I am downloading files that are quite large and place them under my /zhome/5f/4/122845/Desktop/cleaned_files. After some files, the system complains and won't allow me to download any further due to space. But looking at the below df, it seems like I have a lot left. I assume that I have to look under zhomeor what? but here it says only 16% used. I am new to linux and I am using a hpc through ssh. Type is nfs.

Filesystem                     Size  Used Avail Use% Mounted on  devtmpfs                        95G     0   95G   0% /dev  tmpfs                           95G  320K   95G   1% /dev/shm  tmpfs                           95G  155M   94G   1% /run  tmpfs                           95G     0   95G   0% /sys/fs/cgroup  /dev/sda4                       72G  5.6G   63G   9% /  /dev/sda5                       34G   11G   21G  35% /usr  /dev/sda3                     1022M  4.0K 1022M   1% /rescue  /dev/sda2                      2.0G  210M  1.6G  12% /boot  /dev/sda7                      604G  108M  574G   1% /tmp  /dev/sda1                       64M  9.9M   55M  16% /boot/efi  beegfs_nodev                    98T   82T   16T  84% /work1  beegfs_nodev                   175T  112T   63T  65% /work2  beegfs_nodev                   142T  102T   40T  72% /work3  10.66.1.16:/ifs/hpchome/zhome  865T  132T  704T  16% /zhome  tmpfs                           19G     0   19G   0% /run/user/196326  10.66.0.102:/zdata/appl/linux   20T  1.6T   18T   8% /appl  10.66.0.102:/zdata/lsf10prod    18T   25G   18T   1% /lsf  tmpfs                           19G     0   19G   0% /run/user/234837  tmpfs                           19G     0   19G   0% /run/user/194863  tmpfs                           19G     0   19G   0% /run/user/230594  tmpfs                           19G     0   19G   0% /run/user/252995  tmpfs                           19G  4.0K   19G   1% /run/user/1002  10.66.0.102:/zdata/sw           18T  220G   18T   2% /dtu/sw  10.66.0.98:/zdata/scratch       47T   18T   29T  38% /dtu/hpc.scratch  tmpfs                           19G     0   19G   0% /run/user/260498  tmpfs                           19G     0   19G   0% /run/user/222845  

Checking this:

-bash-4.2$ df -ih /zhome/  Filesystem                    Inodes IUsed IFree IUse% Mounted on  10.66.1.16:/ifs/hpchome/zhome   109G   17G   92G   16% /zhome  

Checking du after a cd command:

-bash-4.2$ du -sh *  27G Desktop  32K Downloads  1.8M    Maildir  24K public_html  318M    sratoolkit.2.11.0-ubuntu64  127M    sratoolkit.tar.gz  

If a file has a command copied in it, how can I extract that command from the file onto the active command prompt in a terminal?

Posted: 20 Mar 2021 10:11 AM PDT

If I have a rather large complex command, I often just cat it into a file. This works well in an SSH terminal where I can use the client copy and paste. But if I am directly on the terminal I don't have that luxury. Cat'ing the file just outputs it once and then kicks back to the active prompt. I'm looking for something that will kick that file content onto the active prompt so I can scroll back and make minor tweaks and run it again.

Add wireless TV like in windows

Posted: 20 Mar 2021 07:53 AM PDT

In windows you can do 'Add Wireless dock/device' and then simply cast to TV. Is there a way to do it in linux? I'm using Fedora.

Windows: enter image description here

I would then be able to see my desktop on my TV. https://windowsloop.com/how-to-connect-to-a-wireless-display-windows-10/

I've tried installing Gnome Network Display, it does find my TV but after trying to connect doesn't work.

Thanks

echo -e is not outputting correctly the result in a file when redirecting to a file in bash

Posted: 20 Mar 2021 09:43 AM PDT

Im running a script to get information of ports on a switch. I need to get the output results on a file instead of seeing the same command running. It reads from a file the ports fine. If I do not redirect to a file I get the right info; but when I redirect to a file I can see only the same command Im running on the switch. lldp-list.txt is a text file with the ports info (3 ports as an example).

What could be wrong? I tried "tee" and "`" with no success. Im missing something

On this line it outputs the results fine:

  • echo -e "show lldp neighbor-info $ports | inc Chassis-Desc"

Output:

  • Neighbor Chassis-Description : ArubaOS (MODEL: 205)
  • Neighbor Chassis-Description : ArubaOS (MODEL: 225)
  • Neighbor Chassis-Description : ArubaOS (MODEL: 325)

but when I redirect; I get the following result on the "output.txt" file

echo -e "show lldp neighbor-info $ports | inc Chassis-Desc" >> output.txt    show lldp neighbor-info 1/1/1 | inc Chassis-Desc  show lldp neighbor-info 1/1/5 | inc Chassis-Desc  show lldp neighbor-info 1/1/6 | inc Chassis-Desc  

Here is the code:

while IFS= read -r ports; do  echo -e "show lldp neighbor-info $ports | inc Chassis-Desc" >> output.txt  sleep 2  done < lldp-list.txt  

Yes; I need de quotation marks; Its a command that I am executing from the switch via a telnet session. Without the " " the script returns an error. That's why I'm using echo -e ... so it sends that command line to the switch via telnet session from the bash script.

As a workaround I use tee and the end of the telnet session line:

telnet $MRV_HOST $MRV_PORT | tee output.txt  

I had to do more parsing with the output file. But I still believe there should be a way to fix the issue Im seeing....

I want to merge the output of top with the start time from ps

Posted: 20 Mar 2021 09:00 AM PDT

I have several services running and a bash script that displays their current state using top e.g.

top -b -n1 -p `pgrep -f "proc1|proc2|proc3|proc4|proc5" |   tr '\n' ',' |               # replace the newlines in the pid list with commas  sed 's/,$//g'` |            # remove the trailing comma and submit to top  grep -vx '.*sed' |          # From the top output: remove the entry for sed  sed 1,6d |                  # and remove the first 6 lines of top  

produces

   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND      660 user1     20   0 5800588 658868  39384 S   0.0   4.3   0:47.72 proc1      718 user1     20   0 2089772  41068  25032 S   0.0   0.3   0:00.82 proc2      722 user1     20   0 1046316  34172  25000 S   0.0   0.2   0:02.85 proc3      725 user1     20   0  833716  23376  18404 S   0.0   0.2   0:00.21 proc4      729 user1     20   0 2369604 108084  34292 S   0.0   0.7   0:02.76 proc5  

Next I would like to take each pid, pass it into 'ps -p <pid> -o start' and insert the output to the corresponding line to produce:

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+   STARTED COMMAND      660 user1     20   0 5800588 658868  39384 S   0.0   4.3   0:47.72  08:56:23 proc1      718 user1     20   0 2089772  41068  25032 S   0.0   0.3   0:00.82  08:56:24 proc2      722 user1     20   0 1046316  34172  25000 S   0.0   0.2   0:02.85  10:27:41 proc3      725 user1     20   0  833716  23376  18404 S   0.0   0.2   0:00.21  08:56:27 proc4      729 user1     20   0 2369604 108084  34292 S   0.0   0.7   0:02.76  08:56:29 proc5  

I know I can extract the pid using awk but how do I merge/insert the output?

How to start a service in a WSL-based Fedora?

Posted: 20 Mar 2021 08:15 AM PDT

I have a Fedora 33 under Windows Subsystem for Linux 2.

I want to run sshd. For that I tried

$ sudo systemctl start sshd  

but I got the error message

System has not been booted with systemd as init system (PID 1). Can't operate  

Searching for this error message I have found

https://linuxhandbook.com/system-has-not-been-booted-with-systemd/

which suggested to use the service command in this case. I tried but it said

Redirecting to /bin/systemctl start sshd.service  

so I got the same error.

What can I do on my WSL2 based Fedora 33?

UPDATE: I have installed Fedora onto WSL using a cloud image and the wsl command, described here:

https://fedoramagazine.org/wsl-fedora-33/

Moving from dual-boot (Windows10 / Pop_OS) to single (just Pop); Q's about my EFI setup: 2 EFI partitions?

Posted: 20 Mar 2021 08:44 AM PDT

Last July, as a complete Linux noob, I bought a refurbished Dell e7470 with Windows 10 pro pre-installed. I followed instructions in this video (cued to disk partition steps) to install Pop_OS 20.04 to dual-boot with Windows 10: Pop!_OS 19.10 - Setting up a Dual Boot with Windows 10. It went well. Now I am thinking about removing Windows, and I am looking at my disk partitions to see what can be removed. Here is screenshot from GNOME Disks while running Pop:

GNOME Disks

I do not understand why the video had me create a new EFI partition (sda5) instead of using the ESP (sda1) that was pre-installed with Windows. I am wondering if that may cause problems, but, more importantly, whether I can use Disks to remove the Windows OS (sda3) as well as the ESP (sda1), recovery partition (sda4) and "Microsoft Reserved" (sda2). I do not want to do something wrong and end up with an un-bootable computer.

In case it is helpful, here is the output from efibootmgr:

steve@pop-os:~$ sudo efibootmgr  BootCurrent: 0003  Timeout: 2 seconds  BootOrder: 0003,0000,0001,0004  Boot0000* Windows Boot Manager  Boot0001* UEFI: SK hynix SC311 SATA 512GB, Partition 1  Boot0002* Pop!_OS 20.04 LTS  Boot0003* Pop!_OS 20.04 LTS  Boot0004* Linux Firmware Updater    

Boot0000 and Boot0001 seem to be the same -- Partition 1, as are Boot0002 and Boot0003 (partition 5).

I would like to know:

  1. Is this 2-EFI-partition setup acceptable?
  2. How would I safely (and as completely as possible) remove Windows 10?
  3. Will my system be bootable without ESP, ie, will it use Partition 5 which says it mounts at /boot/efi?

keepalived no route to host, firewall issue?

Posted: 20 Mar 2021 09:00 AM PDT

I have a simple two server config of keepalived. The master/backup selection is working fine but I can't connect to the VIP from the backup server. When I try connecting, on the master I can see ARP requests from the backup server and responses from the master; on the backup server I only see the requests (i.e., I don't see the ARP responses from the master).

Master keepalived.conf:

vrrp_script haproxy-check {      script "/usr/bin/pgrep python"      interval 5  }     vrrp_instance haproxy-vip {      state MASTER      priority 101      interface eth0      virtual_router_id 47      advert_int 3         unicast_src_ip 192.168.122.4      unicast_peer {          192.168.122.9      }         virtual_ipaddress {          192.168.122.250      }         track_script {          haproxy-check weight 20      }  }  

Backup keepalived.conf:

vrrp_script haproxy-check {      script "/usr/bin/pgrep python"      interval 5  }    vrrp_instance haproxy-vip {      state BACKUP      priority 99      interface eth0      virtual_router_id 47      advert_int 3        unicast_src_ip 192.168.122.9      unicast_peer {          192.168.122.4      }        virtual_ipaddress {          192.168.122.250      }        track_script {          haproxy-check weight 20      }  }  

ip addr on master:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1458 qdisc pfifo_fast state UP group default qlen 1000      link/ether fa:16:3e:9e:e8:18 brd ff:ff:ff:ff:ff:ff      inet 192.168.122.4/24 brd 192.168.122.255 scope global noprefixroute dynamic eth0         valid_lft 55567sec preferred_lft 55567sec      inet 192.168.122.250/32 scope global eth0         valid_lft forever preferred_lft forever      inet6 fe80::571a:df5f:930c:2b57/64 scope link noprefixroute          valid_lft forever preferred_lft forever  

And on backup:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1458 qdisc pfifo_fast state UP group default qlen 1000      link/ether fa:16:3e:2e:59:3d brd ff:ff:ff:ff:ff:ff      inet 192.168.122.9/24 brd 192.168.122.255 scope global noprefixroute dynamic eth0         valid_lft 79982sec preferred_lft 79982sec      inet6 fe80::f816:3eff:fe2e:593d/64 scope link          valid_lft forever preferred_lft forever  

tcpdump from master:

# tcpdump -nni eth0 arp  tcpdump: verbose output suppressed, use -v or -vv for full protocol decode  listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes  11:44:06.299398 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  11:44:06.299435 ARP, Reply 192.168.122.250 is-at fa:16:3e:9e:e8:18, length 28  11:44:07.298939 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  11:44:07.298985 ARP, Reply 192.168.122.250 is-at fa:16:3e:9e:e8:18, length 28  11:44:08.300920 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  11:44:08.300954 ARP, Reply 192.168.122.250 is-at fa:16:3e:9e:e8:18, length 28  11:44:09.303039 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  11:44:09.303062 ARP, Reply 192.168.122.250 is-at fa:16:3e:9e:e8:18, length 28  

And from the backup:

# tcpdump -nni eth0 arp  tcpdump: verbose output suppressed, use -v or -vv for full protocol decode  listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes  11:44:39.430367 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  11:44:40.431810 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  11:44:41.433847 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  11:44:42.435979 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  11:44:43.437814 ARP, Request who-has 192.168.122.250 tell 192.168.122.9, length 28  

I don't believe it's a firewall issue (iptables -L | grep -i arp doesn't show anything), is there a kernel setting that could be causing an issue? Any suggestions for debugging?

OS is Centos 7, keepalived is 2.1.5.

Pacemaker Virtual IP cannot be routed outside of its network

Posted: 20 Mar 2021 10:03 AM PDT

I have a server cluster consisted of following setup:

2 Virtual Servers with 2 NIC's. eth0 (private network 10.0.0.0/16) and eth1 (public network 77.1.2.0/24 with gateway as 77.1.2.1)

For HA-01 VPS i have Private IP on eth0 set as 10.0.0.1 For HA-02 VPS i have Private IP set on eth0 as 10.0.0.2

Pacemaker/Corosync Cluster has been established between private IP addresses and Virtual IP (77.1.2.4) defined as clone Resource (IPAddr2) so it can float between two nodes.

pcs resource create VirtualIP1 ocf:heartbeat:IPaddr2 ip="77.1.2.4" cidr_netmask="24" nic="eth1" clusterip_hash="sourceip-sourceport" op start interval="0s" timeout="60s" op monitor interval="1s" timeout="20s" op stop interval="0s" timeout="60s" clone interleave=true ordered=true  

Problem is, i cannot reach that IP address from world. I noticed that there is a route missing, so i add the static route

ip r add default via 77.1.2.1 dev eth1  

But i still cannot ping google.com from those servers nor world can see them on that IP. I also tried adding IP addresses from same subnet on eth1 like this:

HA-01 eth1: 77.1.2.2  HA-02 eth1: 77.1.2.3  

Servers can be seen on those IPs by world but if i add VirtualIP resource i cannot reach them on Virtual IP address. I also tried adding a source ip in routing table

ip r add default via 77.1.2.1 src 77.1.2.4  

to no avail. I don't know what am i supposed to do to get this VirtualIP working. I can reach 77.1.2.4 (Virtual IP Address) from other servers on that network, but not outside that network.

Firewall is established and high availability ports are passed via command

firewall-cmd --add-service="high availability"; firewall-cmd --add-service="high availability" --permanent  

Is there anything here that i am missing? If i add that address (77.1.2.4 - Virtual IP) alone on the interface of only one of those servers, it will work.... So is there an issue with ARP table perhaps or maybe router blocking some traffic?

can't install libcups2-dev

Posted: 20 Mar 2021 09:02 AM PDT

uname inf: Linux N551JB 4.11.0-999-lowlatency #201704042201 SMP PREEMPT

I wanted to install drivers for my hp printer, but I got problem with libcups2-dev package. That's what installing program said:

command: sh hplip-3.17.4.run

error: Package install command failed with error code 100

I tried to install it from Synaptic Package Manager, but it refused and gave an error:

Depends: libcups2 (=2.1.3-4) but 2.1.3-4ubuntu0.2 is to be installed

Do anyone know how to solve this problem?

Output from command: apt-cache policy libcups2-dev libcups2

libcups2-dev: Installed: (none) Candidate: 2.1.3-4 Version table: 2.1.3-4 500 500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages libcups2: Installed: 2.1.3-4ubuntu0.2 Candidate: 2.1.3-4ubuntu0.2 Version table: *** 2.1.3-4ubuntu0.2 100 100 /var/lib/dpkg/status 2.1.3-4 500 500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages

apt-get install libcups2    Reading package lists... Done  Building dependency tree         Reading state information... Done  libcups2 is already the newest version (2.1.3-4ubuntu0.2).  The following packages were automatically installed and are no longer required:    account-plugin-tools accountsservice-ubuntu-schemas android-tools-adb    android-tools-fastboot antlr3 apparmor-easyprof-ubuntu autopilot-qt4    autopilot-qt5 bnd click click-apparmor click-dev click-doc    click-reviewers-tools cmake-extras devscripts fbset gdb-multiarch    gir1.2-click-0.4 gir1.2-gee-0.8 gir1.2-ubuntu-app-launch-2    gsettings-ubuntu-schemas i965-va-driver:i386 java-wrappers javahelp2    junit4-doc libantlr3-runtime-java libatinject-jsr330-api-java    libatk-bridge2.0-0:i386 libatspi2.0-0:i386 libautopilot-qt    libbeansbinding-java libbindex-java libboost-dev    libboost-filesystem1.58.0:i386 libboost-python1.58.0 libboost-regex1.58.0    libboost-serialization1.58.0 libboost-system1.58.0:i386 libboost1.58-dev    libbotan-1.10-1 libbsh-java libbytelist-java libcapnp-0.5.3 libcdi-api-java    libclick-0.4-0 libcolord2:i386 libcommons-io-java libcommons-lang-java    libdbus-cpp5 libeclipselink-java libegl1-mesa:i386 libepoxy0:i386    libfelix-framework-java libfelix-main-java libfreemarker-java libgbm1:i386    libgeonames0 libgeronimo-interceptor-3.0-spec-java    libgeronimo-j2ee-connector-1.5-spec-java libgeronimo-jms-1.1-spec-java    libgeronimo-validation-1.0-spec-java libgflags2v5 libgoogle-glog0v5    libgsettings-qt1 libgtk-3-0:i386 libhtml5parser-java libhttpclient-java    libhttpcore-java libhud2 libicu-dev libicu4j-4.4-java libini4j-java    libjansson4 libjavaewah-java libjcodings-java libjcommander-java    libjemmy2-java libjgit-java libjna-java libjna-jni libjna-platform-java    libjnlp-servlet-java libjoda-time-java libjpa-2.1-spec-java libjs-sphinxdoc    libjsch-agent-proxy-java libjson-glib-1.0-0:i386 libjson-simple-java    libjsr311-api-java libjvyamlb-java libjzlib-java libkeybinder0 libleveldb1v5    liblttng-ust-ctl2 liblttng-ust0 liblucene3-java libmail-java    libmirclient9:i386 libmircommon5:i386 libmirprotobuf3:i386 libmysql-java    libnb-absolutelayout-java libnb-apisupport3-java libnb-ide14-java    libnb-java5-java libnb-javaparser-java libnb-org-openide-modules-java    libnb-org-openide-util-java libnb-org-openide-util-lookup-java    libnb-platform-devel-java libnb-platform18-java libnet-cpp2    libonline-accounts-client1 libpay2 libpostgresql-jdbc-java libprocess-cpp3    libproperties-cpp-dev libprotobuf-lite9v5:i386 libqbscore1    libqbsqtprofilesetup1 libqdjango-db0 libqgsttools-p1 libqmenumodel0    libqt5designercomponents5 libqt5multimedia5-plugins libqt5multimediaquick-p5    libqt5multimediawidgets5 libqt5organizer5 libqt5xmlpatterns5    librest-0.7-0:i386 libscope-harness3 libsequence-library-java    libservlet2.5-java libsimple-validation-java libslf4j-java libsqljet-java    libstringtemplate4-java libsvn-java libsvnclientadapter-java libsvnkit-java    libswing-layout-java libswingx-java libthumbnailer-qt1.0    libtrilead-ssh2-java libtrust-store2 libubuntu-app-launch2    libubuntu-location-service3 libubuntu-platform-hardware-api3    libubuntugestures5 libubuntuoneauth-2.0-0 libubuntutoolkit5    libunity-action-qt1 libunity-api-dev libunity-api0 libunity-scopes-dev    libunity-scopes1.0 liburcu4 liburl-dispatcher1 libusermetricsoutput1    libva-drm1:i386 libva-x11-1:i386 libva1:i386 libvdpau1 libvdpau1:i386    libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1-mesa:i386    libwayland-server0:i386 libwine-development libws-commons-util-java    libxcb-xfixes0:i386 libxerces2-java libxkbcommon0:i386    libxml-commons-external-java libxnvctrl0 libxpathselect1.4v5 libzmqpp3    lynx-common mesa-vdpau-drivers:i386 ocl-icd-libopencl1    ocl-icd-libopencl1:i386 pay-service pay-ui phablet-tools python-autopilot    python-contextlib2 python-decorator python-evdev python-extras    python-fixtures python-funcsigs python-junitxml python-keybinder    python-linecache2 python-mimeparse python-mock python-pbr python-psutil    python-pyexiv2 python-subunit python-testscenarios python-testtools    python-traceback2 python-unittest2 python3-apparmor-click python3-autopilot    python3-click-package python3-dateutil python3-decorator python3-extras    python3-fixtures python3-junitxml python3-linecache2 python3-magic    python3-mimeparse python3-pbr python3-psutil python3-scope-harness    python3-simplejson python3-subunit python3-testscenarios python3-testtools    python3-traceback2 python3-tz python3-unittest2    qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings    qml-module-qtfeedback qml-module-qtgraphicaleffects qml-module-qtmultimedia    qml-module-qtquick-xmllistmodel qml-module-qttest    qml-module-ubuntu-components qml-module-ubuntu-layouts    qml-module-ubuntu-onlineaccounts qml-module-ubuntu-onlineaccounts-client    qml-module-ubuntu-performancemetrics qml-module-ubuntu-test    qml-module-ubuntu-thumbnailer0.1 qml-module-ubuntu-web qtcreator-data    qtcreator-plugin-ubuntu-common qtdeclarative5-accounts-plugin    qtdeclarative5-controls-plugin qtdeclarative5-gsettings1.0    qtdeclarative5-online-accounts-client0.1 qtdeclarative5-qtquick2-plugin    qtdeclarative5-ubuntu-settings-components    qtdeclarative5-ubuntu-thumbnailer0.1 qtdeclarative5-ubuntu-ui-toolkit-plugin    qtdeclarative5-ubuntu-web-plugin qtdeclarative5-unity-action-plugin    qtdeclarative5-unity-notifications-plugin qttestability-autopilot schroot    schroot-common screen-resolution-extra sqlite3 suru-icon-theme testng    thumbnailer-service ubuntu-mobile-icons ubuntu-push-client    ubuntu-sdk-qmake-extras ubuntu-ui-toolkit-doc ubuntu-ui-toolkit-examples    ubuntu-ui-toolkit-theme ubuntu-ui-toolkit-tools ubuntuone-client-data    ubuntuone-credentials-common unity-asset-pool unity-plugin-scopes    unity-schemas unity-scope-tool unity-webapps-qml unity8-common    unity8-fake-env unity8-private url-dispatcher usermetricsservice    va-driver-all:i386 vdpau-driver-all:i386 vdpau-va-driver:i386    webapp-container webbrowser-app  Use 'sudo apt autoremove' to remove them.  0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.  

Autostarting .desktop application at startup not working

Posted: 20 Mar 2021 09:46 AM PDT

I have read that adding a .desktop file to /etc/xdg/autostart can start an application at startup. I did the same to execute my application. But nothing happens on startup. Following is the content of my .desktop file:

[Desktop Entry]  Type=Application  Encoding=UTF-8  Version=1.0  Name=screenshot  Exec=/home/anaswara/eclipse_agent/bin/Screenshot  X-GNOME-Autostart-enabled=true  X-KDE-autostart-after=panel  

Can anybody tell what is going wrong(Ubunu 14.04)

pulse_output failed to play: suspended

Posted: 20 Mar 2021 08:01 AM PDT

I have mpd running as a system service and as user mpd. Since mpd is a system service and pulse audio is session-based, I have to stream music from mpd to the currently active pulse session daemon. This is done using the module-native-protocol-tcp module configured with auth-anonymous=1 auth-cookie-enabled=0 listen=0.0.0.0 (loose, I know, but for testing purposes)

The output in mpd.conf looks like this:

audio_output {                                                                       type    "pulse"                                                                    name    "My (loopback) Pulse Output"                                               server  "localhost"                                                              }     

Now when I run a song in mpd it complains:

pulse_output: "My (loopback) Pulse Output" [pulse] failed to play: suspended  output: Failed to open audio output  

What is wrong here? Is this a bug?

What I tried : Running as my user (systemd) Running as my user (systemd) and set the user in mpd.conf Running as root and set the user in mpd.conf Setting the exact sink name

How to control equalizer within command line?

Posted: 20 Mar 2021 07:45 AM PDT

So Pulseaudio has a built-in equilizer loaded with

module-equalizer-sink

According to http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Equalizer, you can control it with the qpaeq GUI.

Is there a way to congfigure PA equilizer on a Xless system (running in session mode) ?

How to restrict an SSH user to only allow SSH-tunneling?

Posted: 20 Mar 2021 08:34 AM PDT

How can I restrict a user on the SSH server to allow them only the privileges for SSH TUNNELING? i.e. So they cannot run commands even if they log in via SSH.

My Linux servers are Ubuntu 11.04 and OpenWrt.

No comments:

Post a Comment