Friday, June 18, 2021

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


Linux: an easy and elegant way to find all files with acl set?

Posted: 18 Jun 2021 12:41 PM PDT

I want to find all files with acl set. I know this dirty solution: for find all files with acl set in dir. /etc

 sudo ls -lhR /etc|grep +  

Someone know a more elegant solution?

Getting Error 503 trying to connect with Grouper with user and pass via python

Posted: 18 Jun 2021 12:23 PM PDT

I have an apache proxy server setup with following in my .htaccess file

#Header always set Access-Control-Allow-Origin "*"    Header onsuccess unset Access-Control-Allow-Origin  Header always set Access-Control-Allow-Origin *  Header always set Access-Control-Max-Age "1000"  Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding, x-api-token"  Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"      RewriteEngine On      RewriteCond %{REQUEST_METHOD} OPTIONS  RewriteRule ^(.*)$ $1 [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}]]    RewriteRule "^proxy/https/(.*)$" "https://$1" [P]  RewriteRule "^proxy/http/(.*)$" "http://$1" [P]  

I am using python to connect using the below code but I get a 503 error. Any pointers appreciated

# Sample Basic Auth Url with login values as username and password  import requests  from base64 import b64encode  import json  import csv  import pythoncom  import win32com.adsi as adsi  import types  from pyad import aduser  import logging  import datetime  import os  import requests    url = "https://proxy.testserverenv.com/proxy/https/grouper.devenv.com/grouper-ws/servicesRest/v2_3_000/groups?wsLiteObjectType=WsRestFindGroupsLiteRequest&queryFilterType=FIND_BY_STEM_NAME&stemName=app:groupergroups"    user = "user"  passwd = "Pas$worD"    #debugging print statement 2/4  print("URL set")    # Make a request to the endpoint using the correct auth values  auth_values = (user, passwd)  response = requests.get(url, auth=auth_values)  

Was trying to translate to Basic Auth to Header auth using

https://github.com/Internet2/grouper/blob/master/grouper-ws/grouper-ws/doc/samples/getGroups/WsSampleGetGroupsAdminsRestLite_admins_http_json.txt

xdotool requiring matching all options

Posted: 18 Jun 2021 12:37 PM PDT

with xdotool I want to identify that dialog box that appears when you use a master password with Firefox.

I tried this command:

xdotool search --all --name "Password Required - Mozilla Firefox" --classname Firefox  

But, it gives an error:

xdotool: Unknown command: --classname Run 'xdotool help' if you want a command list

I´m not aware what could be wronge here, I have two options and both must match, thus I use --all.

What virtual machine software to use on Linux in 2021 for machine learning?

Posted: 18 Jun 2021 12:02 PM PDT

I have not worked with virtual-machines or hypervisors or whatnot before-- this is all new to me. But I am responsible for setting up a powerful server so that every user can have root access.

For security and stability, I want to silo each user into their own VM. This is important-- researchers want and need to be able to install and configure things. I don't want one user to accidentally mess up a configuration, or to install a shady docker container and hurt another user.

It is also very important that each user has access to GPU resources, so they can do deep learning.

My understanding is this is done by installing a "hypervisor" OS to manage multiple VMs, and using either GPU passthrough or GPU virtualization to share GPU resources.

If my understanding is correct, then I would love to know how to do this. What hypervisor / VM software would you recommend (preferably self-hosted) that can provide this? Are containers (LXC/LXD/docker) possible to use here and maintain security?


(Side note: This question has been asked before, in many ways, but they are all many years old. I haven't found a post here that answers what I need.

There is one relevant question here, but the answer is lacking, because I want all my users to be able to have 'root' powers in their own VM: "https://unix.stackexchange.com/questions/420475/best-way-to-share-the-resources-of-a-powerful-workstation-across-multiple-users"

There is another relevant question here, but it is 10 years old, and does not especially focus on GPU resources: "https://unix.stackexchange.com/questions/14423/choosing-virtual-machine-software-on-linux" )

Why Does Linux Mint Not Connect to the Internet Through Ethernet Cable?

Posted: 18 Jun 2021 12:21 PM PDT

For some reason my linux mint v20.1 has not been able to connect to the internet through the ethernet cable that is plugged into it. I know that the ethernet cable is not the problem because it works with other computers. This computer was also working with the ethernet cable a few days ago. The ethernet port is glowing orange, meaning that it is not an external problem because it is detecting it. This is the output of lspci (for broadcom):

02:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)  

This is the output of lsmod (for tg3):

tg3      172032  0  

And when I tell system log with this command to report that the card has been initialized there is no output:

dmesg | grep ether  

This is also has no output:

dmesg | grep -i eno1  

But this does, meaning (I think) that the cable is called eth0:

dmesg | grep eth0  

The output (I have to type this out so I am going to use some imaginary variables) x = [ 1.629770] y = 0000:02:00.0

x tg3 y eth0: Tigon3 [partno(BCM57780) rev 57780001] (PCI Express) MAC address 14:fe:b5:df:5a:0c  x tg3 y eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] TSOcap[1]  x tg3 y eth0: dma_rwctrl[76180000] dma_mask[64-bit]  x tg3 y enp2s0: renamed from eth0  

but actually, it has been renamed to enp2s0. So I tried this:

ifconfig enp2s0  

Output:

enp2s0: flags=4098<BROADCAST,MULTICAST> mtu 1500       ether 14:fe:b5:df:5a:0c txqueuelen 1000 (Ethernet)       RX packets 0 bytes 0 (0.0B)       RX error - dropped 0 overruns 0   frame 0        TX packets 0 bytes 0 (0.0B)       TX errors 0 dropped 0 overruns 0   carrier 0   collisions 0        device interrupt 16  

This is a remade version of my original post: Why Won't Linux Mint Connect With Ethernet?

I added a lot more information that will hopefully help with figuring out the issue.

Hard disk has no size and is unrecognizable by fdisk

Posted: 18 Jun 2021 11:43 AM PDT

I am using Arch Linux (x86_64), and my 120GB external hard drive isn't working. If I use c/fdisk, c/gdisk or g/parted, they don't see /dev/sdb (my hard drive). Other tools like mkfs work, but spit an error. Output of mkfs.ext4:

$ sudo mkfs.ext4 /dev/sdb  mke2fs 1.46.2 (28-Feb-2021)  mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or      partition table wasn't reread after running fdisk, due to      a modified partition being busy and in use.  You may need to reboot      to re-read your partition table.    

I have rebooted, updated using pacman, and tried using different OSes (Debian, Venom, Gobo, Windows) but none of them worked. I believe this is a drive problem.

How do I fix this?

How to crosscompile a kernel for raspbian in an arch linux host?

Posted: 18 Jun 2021 10:44 AM PDT

I have a raspberrypi 3B and want to compile and install a new kernel on it, but I only have an arch linux(x86_64) host to compile it on.

Following the official documentation I get stuck trying to crosscompile the kernel, it seems I'm missing the correct crosscompiler.

❯ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig  scripts/Kconfig.include:39: compiler 'arm-linux-gnueabihf-gcc' not found  make[1]: *** [scripts/kconfig/Makefile:88: bcm2709_defconfig] Error 1  make: *** [Makefile:603: bcm2709_defconfig] Error 2  

The problem is that I don't know what to install, the package suggested in the documentation crossbuild-essential-armhf doesn´t seem to exist in the official repositories neither in the AUR.

Does it have another name in the arch repositories? I installed arm-none-eabi-gcc but it doesn't seem to be what i need. Looking into the arch wiki I found this page and it didn't help much but it gave me the impression that I need to build and compile my own crosscompiler. Is this the case? There are no readily available arm crosscompilers in arch linux?

Also, once I do manage to cross compile it, will I have problems with the different versions of packages (e.g. glibc) in arch vs in raspbian? if so, is there an easy way to deal with this?

Any help would be greatly appreciated

bash script to lazy tar to fifo as files arrive

Posted: 18 Jun 2021 10:38 AM PDT

Here's the hypothetical scenario: I have an archival process where files are showing up and I append them to tar, and then the tar gets zipped. Something like this:

while sleep 1 ; do      new_files="$(some-command-to-scan-for files)"      tar --append --file xxx.tar $new_files      if [ condition ] ; then break; fi  done    cat xxx.tar | gzip | dd of=/another/directory/xxx-$(date).tgz  rm xxx.tar  

what I really want to happen is for tar to be created and zipped as the cycle goes, so that there is no need to temporary file. Which is not possible to do when you are appending, since you need to open existing file and seek to end. Here's the "sketch" of what I really want:

while sleep 1 ; do      new_files="$(some-command-to-scan-for files)"      tar --append --file - $new_files      if [ condition ] ; then break; fi  done | gzip | dd of=/another/directory/xxx-$(date).tgz  

Is there some way to append more files to tar when it goes to stdout?

Generating default gpg.conf with default gnupg2 utils

Posted: 18 Jun 2021 10:58 AM PDT

Is there a way to generate the default gpg.conf file? I can't find one in my fs with find / -name gpg.conf. I also tried checking gpgconf to see if it had an option for generating one, and looked for other gpg utils that come with the standard gnupg2 installation, but nothing stood out.

Which function is the last function when powering off?

Posted: 18 Jun 2021 10:17 AM PDT

I trace the code and got:

native_machine_shutdown()  

https://elixir.bootlin.com/linux/latest/source/arch/x86/kernel/reboot.c#L682

but I didn't see any code to shut down the power supply or trigger which CPU register to power down?

I got there from:

void kernel_power_off(void)  {      kernel_shutdown_prepare(SYSTEM_POWER_OFF);      if (pm_power_off_prepare)          pm_power_off_prepare();      migrate_to_reboot_cpu();      syscore_shutdown();      pr_emerg("Power down\n");      kmsg_dump(KMSG_DUMP_SHUTDOWN);      machine_power_off();  }  

https://elixir.bootlin.com/linux/latest/source/kernel/reboot.c#L287

How to configure powerbroker ;pbrun and switch user in Linux

Posted: 18 Jun 2021 09:58 AM PDT

I have a following requirement: whenever the user tries to switch "xyz" should use pbrun. something like this pbrun su - xyz and shouldn't ask password. How can I accomplish this, any help would be appreciated ?

How to change the output of ls -li by a shell script

Posted: 18 Jun 2021 10:01 AM PDT

I want to achieve something which requires me to format the output of

ls -li  

So using a shell script, which takes parameters as F: to show the filename, T: to show the time, D: to show the date or -o A or -o D for sorting the output in ascending and descending order.

Eg:

./formatls.sh -o A F D T  Filename Date   Time  File1    Jun 18 01:42  File2    Jun 18 01:      ./formatls.sh T D  Time  Date  01:42 Jun 18  01:42 Jun 18  

I don't know how to achieve this, would be really helpful if someone can suggest what commands would be required for this or some pseudo code.

Cannot get FreePBX to route with dual NICs

Posted: 18 Jun 2021 10:55 AM PDT

I have a FreePBX server that needs to have a second real-world interface added. As in, both eth0 and eth1 have routable ip addresses. Setting up the second address was relatively simple as per a quick google search:

https://www.thomas-krenn.com/en/wiki/Two_Default_Gateways_on_One_System

  1. edit /etc/iproute2/rt_tables and added an entry "200 second"

  2. added routes for the table called "second":

    ip route add ip.subnet.on.eth1/27 dev eth1 src ip.address.on.eth1 table second  ip route add default via router.ip.for.eth1 dev eth1 table second  

(where "ip.subnet.on.eth1" "ip.address.on.eth1" and "router.ip.for.eth1" are the addresses needed)

  1. added rules to send traffic through the right interface via source-routing:

    ip rule add from ip.address.on.eth1/32 table second  ip rule add to ip.address.on.eth1/32 table second  

Which gave me some partial success: I could now route to the server's second ip address, such that it would immediately respond to normal requests (ie. icmp, sshd, apache, etc).

But it is utterly failing to work with the udp services needed for Asterisk. Any client can connect fine to the "normal" ip address on eth0. But trying to connect to the eth1's ip, the client just times out.

I even tried setting the server to accept tcp for sip, which then allowed me to log in; but it was ultimately unsuccessful, as the rtp (voice) traffic is also udp.

Now, similar setups DO work, such as when the second eth1 device doesn't need to be globally routable, ie. for an internal LAN. So if the pbx has one real-world ip on eth0, and a private ip on eth1, then it's only using a single unified routing table and everything just works.

I can definitively confirm that there is NO firewall blocking traffic to/from the sip server. In fact I've even got an explicit set of entries allowing ALL tcp and udp traffic to my sip client's subnet, bypassing all the fail2ban and other shenanigans.

PS. if I haven't made myself pedantically clear, the end-goal is to have the Freepbx/asterisk functioning on BOTH interfaces eth0 & eth1, which both have fully-routeable real-world ip addresses. As it currently stands, only eth0 is functional

In triple boot how to find the swap area of kali and ubuntu individually

Posted: 18 Jun 2021 10:55 AM PDT

I have Win10,kali,ubuntu as triple boot and now I have deleted the partition of kali, but I can't identify the swap area of kali. There are two swap areas one for kali and another for ubuntu as I deleted kali I would like to delete its swap area also. But I am not able to find which is the swap area of kali(because both the swap areas are identical). SO is there any way to find which swap area belongs to which so that I can delete kali's swap.

How to get only memory peak usage with /usr/bin/time?

Posted: 18 Jun 2021 12:49 PM PDT

I am building a script with usr/bin/time program to monitor the RAM usage of a script and storing it in a variable so i can check if it is higher than a specified limit $mlimit, like this example using ls / as the command:

$mlimit=512000 #512mb limit in kilobytes    $musage=$(/usr/bin/time -f "%M" ls / | rev | cut -f 1 | rev)  echo "RAM usage: $musage"  

/usr/bin/time in this case returns first the output of the command and then the maximum resident set size (RAM usage). I thought then i could reverse the output, cut it to get the ram usage and reverse it back. But i get this output: RAM usage: bin. bin is the first directory returned by the ls / command. So my strategy to get the RAM usage is not working.

Thanks

None of the NVIDIA devices were initialized

Posted: 18 Jun 2021 11:55 AM PDT

Can anyone help me to initialize NVIDIA devices please:

UBUNTU 20.04, kernel 5.8.0-55-generic NVIDIA-SMI 465.27 Driver Version: 465.27 CUDA Version: 11.3 20gb of RAM, 2gb Nvidia mx150, Intel Core i7-8550U.

[27121.928896] NVRM: The NVIDIA probe routine failed for 1 device(s).  [ 2318.716005] NVRM: None of the NVIDIA devices were initialized.  [ 2318.716203] nvidia-nvlink: Unregistered the Nvlink Core, major device number 234  [ 2319.082988] nvidia-nvlink: Nvlink Core is being initialized, major device number 234  [ 2319.083639] NVRM: This is a 64-bit BAR mapped above 4GB by the system  [ 2319.083639] NVRM: BIOS or the Linux kernel, but the PCI bridge  [ 2319.083639] NVRM: immediately upstream of this GPU does not define  [ 2319.083639] NVRM: a matching prefetchable memory window.  [ 2319.083640] NVRM: This may be due to a known Linux kernel bug.  Please  [ 2319.083640] NVRM: see the README section on 64-bit BARs for additional  [ 2319.083640] NVRM: information.      dmesg |grep -i bridge  [    0.303414] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug  [    0.339965] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-fe])  [    0.347519] PCI host bridge to bus 0000:00  [    0.368977] pci 0000:00:1c.0: PCI bridge to [bus 01]  [    0.368980] pci 0000:00:1c.0:   bridge window [io  0x4000-0x4fff]  [    0.368984] pci 0000:00:1c.0:   bridge window [mem 0x93000000-0x93ffffff]  [    0.368989] pci 0000:00:1c.0:   bridge window [mem 0x80000000-0x91ffffff 64bit pref]  [    0.369455] pci 0000:00:1c.4: PCI bridge to [bus 02]  [    0.369458] pci 0000:00:1c.4:   bridge window [io  0x3000-0x3fff]  [    0.369461] pci 0000:00:1c.4:   bridge window [mem 0x94100000-0x941fffff]  [    0.374209] pci 0000:00:1c.5: PCI bridge to [bus 03]  [    0.374214] pci 0000:00:1c.5:   bridge window [mem 0x94000000-0x940fffff]  [    0.379452] pci 0000:00:02.0: vgaarb: bridge control possible  [    0.441100] pci 0000:01:00.0: can't claim BAR 6 [mem 0xfff80000-0xffffffff pref]: no compatible bridge window  [    0.441116] pci 0000:00:1c.0: PCI bridge to [bus 01]  [    0.441119] pci 0000:00:1c.0:   bridge window [io  0x4000-0x4fff]  [    0.441124] pci 0000:00:1c.0:   bridge window [mem 0x93000000-0x93ffffff]  [    0.441127] pci 0000:00:1c.0:   bridge window [mem 0x80000000-0x91ffffff 64bit pref]  [    0.441133] pci 0000:00:1c.4: PCI bridge to [bus 02]  [    0.441135] pci 0000:00:1c.4:   bridge window [io  0x3000-0x3fff]  [    0.441139] pci 0000:00:1c.4:   bridge window [mem 0x94100000-0x941fffff]  [    0.441146] pci 0000:00:1c.5: PCI bridge to [bus 03]  [    0.441150] pci 0000:00:1c.5:   bridge window [mem 0x94000000-0x940fffff]  [    8.398806] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.      ****************  dmesg |grep BAR  [    0.348927] pci 0000:00:02.0: BAR 2: assigned to efifb  [    0.441100] pci 0000:01:00.0: can't claim BAR 6 [mem 0xfff80000-0xffffffff pref]: no compatible bridge window  [    0.441113] pci 0000:01:00.0: BAR 6: no space for [mem size 0x00080000 pref]  [    0.441114] pci 0000:01:00.0: BAR 6: failed to assign [mem size 0x00080000 pref]      lspci -vvn  02:00.0 0200: 10ec:8168 (rev 10)      Subsystem: 17aa:3899      Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+      Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-      Latency: 0, Cache Line Size: 64 bytes      Interrupt: pin A routed to IRQ 16      Region 0: I/O ports at 3000 [size=256]      Region 2: Memory at 94104000 (64-bit, non-prefetchable) [size=4K]      Region 4: Memory at 94100000 (64-bit, non-prefetchable) [size=16K]      Capabilities: <access denied>      Kernel driver in use: r8169      Kernel modules: r8169    03:00.0 0280: 8086:3166 (rev 99)      Subsystem: 8086:4210      Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+      Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-      Latency: 0, Cache Line Size: 64 bytes      Interrupt: pin A routed to IRQ 135      Region 0: Memory at 94000000 (64-bit, non-prefetchable) [size=8K]      Capabilities: <access denied>      Kernel driver in use: iwlwifi      Kernel modules: iwlwifi      

How can I exclude all keys with a specific value inside a JSON with jq?

Posted: 18 Jun 2021 10:04 AM PDT

Let's say I have a JSON like the following:

{      "key1": {          "keyA": "1",          "keyB": "null",          "keyC": "null"      },      "key2": {          "keyA": "null",          "keyB": "3",          "keyC": "null"      }  }  

I'd like to find a way of excluding all keys with the value null on my JSON. So the result would be the following:

{      "key1": {          "keyA": "1"      },      "key2": {          "keyB": "3"      }  }  

I know I can exclude specific keys with their names using jq, e.g. cat myjson.json | jq 'del(.[]|.keyA)', this will erase all my keyA keys inside the json, but I want to exclude the keys according to their values... How can I exclude all keys with value "null" using jq?

Regain sudo access after nuking secondary groups

Posted: 18 Jun 2021 10:44 AM PDT

While setting up docker on Ubuntu 20.04 I did sudo usermod -G docker $USER. As noted in related questions here, I missed the -a flag and replaced all secondary groups. However, I didn't realize this until after I rebooted my machine. This is a single-user work station. I could fix this with root, but I don't have the password. How do I restore the proper groups without root access? The only one that causes a problem now is sudo, but I'm sure others will crop up. Can I do anything without reinstalling Ubuntu from scratch?

How to repair linux after failed to start file system

Posted: 18 Jun 2021 10:33 AM PDT

I have problem with my linux. I always had small problem with my HHD but my PC always could works correctly but yesterday its stuck and I decided to reboot it. After rebooting I get this error.

[FAILED] Failed to start File System 6-53ec-49bb-8b46-0913583825fb.   [DEPEND] Dependency failed for /sysroot.   [DEPEND] Dependency failed for Initrd Root File System.  

The screen image here

However, I can boot my Windows, which is on the same HDD as Linux.

Please help me fix my computer.

I would really appreciate your help.

Break down string into array in shell script

Posted: 18 Jun 2021 11:10 AM PDT

I am trying to convert string for example string=11111001 to array which I will be able to access by calling respective array index like

arr[0]=1, arr[1]=0  

I am new to shell scripting and from what I read, it doesn't have a separator I am stuck.

Can someone help me?

In Linux, which filesystems support reflinks?

Posted: 18 Jun 2021 12:03 PM PDT

btrfs supports reflinks, XFS supports reflinks (since 2017 I think?).

Are there any other filesystems that support it?

truncate -s 1G test.file;  cp --reflink=always test.file ref.test.file;  

termux grep fails to detect chinese character

Posted: 18 Jun 2021 12:42 PM PDT

Given the following file on an Android phone with a Termux installation:

$ cat file.txt  line1  line2  line3  美元  

grep 美元 file.txt returns nothing, while grep line file.txt works as expected. Quoting the Chinese characters doesn't seem to have an effect.

On my Arch Linux system, by comparison, these commands all work as expected.

For reference, in Termux, here are the relevant software versions:

GNU bash, version 5.0.16(1)-release (aarch64-unknown-linux-android)  grep (GNU grep) 3.4  

And on my Arch Linux laptop:

GNU bash, version 5.0.16(1)-release (x86_64-pc-linux-gnu)  grep (GNU grep) 3.4  

I looked on Android Stack Exchange for answers, but didn't find anything.

I tried busybox grep 美元 file.txt, and this worked as expected. My question is, why doesn't just grep ... work?

Edit:

The output of ldd on my phone:

~ $ ldd $(which grep)  libandroid-support.so  libpcre.so  libc.so    ~ $ ldd $(which busybox)  libm.so  libc.so  

LVM - Renaming a Volume Group and ensuring system can boot?

Posted: 18 Jun 2021 11:03 AM PDT

I have a fresh install of CentOS 7, which will act as a KVM host.

I don't like the default name given to the Volume Group and I'd like to change it.

I read somewhere that renaming volume group that contains logical volume for / can cause cause system to not boot after reboot. Why is this by the way?

I've seen some guides but I wanted to check here. What are the steps to make sure a system will survive reboot after changing volume group name?

Thanks.

Stop systemd user services as root user

Posted: 18 Jun 2021 12:51 PM PDT

I have a systemd A@.service that every user on the server can start with systemd --user start A@1.service.

As root I would like to stop that service for all users when we do maintenance.

I haven't found a way in systemd man, not even via Conflict. Is there a way to stop user services as root?

Unable to access GitHub; Couldn't connect to server

Posted: 18 Jun 2021 12:00 PM PDT

I've been trying to clone a git repository (several, actually) and I'm getting the following error:

fatal: unable to access 'https://github.com/repository-name': Couldn't connect to server  

My internet connection is working correctly and I've had no issues with it. I can ping github.com with no issues (I believe) as well. I also set up my git global configuration. I tested out other commands that require connecting to github, such as git pull/git push and I get the same error.

dh_install not finding files that clearly exist

Posted: 18 Jun 2021 12:53 PM PDT

Running debuild -us -uc to build a package I'm working on, dh_install complains about missing files. Running it on it's own, it prints the same error messages:

$ dh_install  /home/felix/work/my_app/debian/install: 1: /home/felix/work/my_app/debian/install: execute.py: not found  /home/felix/work/my_app/debian/install: 2: /home/felix/work/my_app/debian/install: module1: not found  

Though I'm in the correct directory, and the files are clearly there:

$ pwd  /home/felix/work/my_app  $ ll  total 56K  [...]  -rwxrwxr-x 1 felix felix  20K Dez  6 10:35 execute.py  [...]  drwxrwxr-x 4 felix felix 4,0K Dez  1 19:10 module1  [...]  

And here's my debian/install:

execute.py usr/lib/my-cool-app  module1 usr/lib/my-cool-app  

What am I doing wrong? This worked a day ago, and I changed nothing in this directory since then:

$ git status  On branch debian_package  nothing to commit, working directory clean  

Additional info:

$ dpkg -s debhelper | grep Version  Version: 9.20131227ubuntu1  $ cat debian/compat  9  

Cannot login into GNOME, kicking me back to login screen

Posted: 18 Jun 2021 11:56 AM PDT

I am not able to login into GNOME desktop, it happened yesterday after upgrade. In login screen, if I enter my password and press ENTER I am getting login screen again.

System details:

  • linux 4.4.5-1
  • gnome-shell 3.20.0-3
  • gnome-desktop 1:3.20.1-1
  • gnome-session 3.20.1-1
  • gdm 3.20.0-1

Logs:

Few tips for you to help me:

  1. I am able to login in GNOME Wayland session but not with default GNOME (with xorg)
  2. I created new user (from console) but same problem occurs when this new user tries to login.
  3. output of uname -a: Linux ArchLinux 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 x86_64 GNU/Linux

Please ask if you need more info.

Background color mismatch in vim and tmux

Posted: 18 Jun 2021 12:29 PM PDT

I'm having trouble getting the full range of colors to work in vim when I'm running through tmux. I belive that it's some sort of trouble with TERM variables or 256colors, but I've done everything I have been able to find online to get 256 colors working in vim, tmux, and iTerm, and nothing has fixed it. It's a small problem, but it seriously bugs me.

Here's an example code file in vim just through iTerm: iTerm

and here's the same file in vim through tmux and iTerm: enter image description here

Notice how the background colors seem slightly mismatched, only when code is written there. Why could this be?

I have set t_Co=256 in my vimrc, my iTerm terminal is set to xterm-256color, I have set -g default-terminal xterm-256color in my tmux.conf, and I have:

if [ -e /usr/share/terminfo/x/xterm-256color ]; then       export TERM='xterm-256color'  else       export TERM='xterm-color'  fi  

in my .profile. This exact issue is replicated on my Ubuntu based machine at work, and I use all of the same configuration files there. This at least isolates the issue as not being OS/iTerm related.

Boot to Windows installer from USB drive in GNU GRUB

Posted: 18 Jun 2021 10:06 AM PDT

When I installed Backtrack 5 R3, I chose to dual boot, it completely erased my BIOS and installed GNU Grub as the first thing that shows up when I boot up.

The "Press escape for startup options" output still shows, but if I press escape, it says "BIOS is missing or corrupted". I would like to boot the Windows installer from my USB stick (testing out Windows 10), remove GNU GRUB, and flash back my BIOS while still being able to dual boot Backtrack 5 R3.

How do I generate SSHFP records?

Posted: 18 Jun 2021 12:44 PM PDT

I need to setup SSHFP records in the DNS for my host. I have done some searching but I haven't found any good example.

  • What are SSHFP records?
  • What does SSHFP records look like?
  • How do I create SSHFP records?

No comments:

Post a Comment