Thursday, August 19, 2021

Recent Questions - Unix & Linux Stack Exchange

Recent Questions - Unix & Linux Stack Exchange


How do I get nmap to list all devices connected to my ATT wifi?

Posted: 19 Aug 2021 10:01 AM PDT

Using Ubuntu, I attempted to list all devices connected to my wifi with

$ sudo nmap -sn 192.168.1.83/24       Starting Nmap 7.80 ( https://nmap.org ) at 2021-08-19 10:35 CDT  Nmap scan report for amazon-6f0692a99.attlocal.net (192.168.1.66)  Host is up (0.069s latency).  MAC Address: 4C:17:44:23:23:B0 (Amazon Technologies)  Nmap scan report for 09AA01AC44161BRB.attlocal.net (192.168.1.99)  Host is up (0.31s latency).  MAC Address: 18:B4:30:87:D6:4E (Nest Labs)  Nmap scan report for dsldevice.attlocal.net (192.168.1.254)  Host is up (0.0031s latency).  MAC Address: 08:9B:B9:39:41:F2 (Unknown)  Nmap scan report for w-main-System-Product-Name.attlocal.net (192.168.1.83)  Host is up.  Nmap done: 256 IP addresses (4 hosts up) scanned in 23.16 seconds  

Per the output above, there appears to be 5 devices with internal IP addresses currently connected. However, the browser-based GUI for the router correctly shows 8 additional devices connected that do not appear on the nmap output such as

enter image description here

Pinging 192.168.1.83 produced no results either even though there is definitely an active device connected with that IP.

Why is there a difference between nmap's output and the browser view of the router as well as pinging it?

midnight commander view mode: how to select all text

Posted: 19 Aug 2021 09:58 AM PDT

I am using midnight commander. To view the content of a .txt file I press F3. Then I can select text holding Shift + selecting with mouse:

enter image description here

But I would like to select the whole content of the file and it is not possible to scroll while I am selecting with the mouse.

Is there a "select all" option in that View mode?

Calling Ansible tags in a specific order

Posted: 19 Aug 2021 09:45 AM PDT

I have an Ansible job where I am calling multiple Shell scripts...and each shell script has its own tag. So, I have 5 scripts in total with 5 tags. My Tag 1 & tag 2 are the first that has to go and then only the running the next 3 tags would make sense. If someone runs tag 3 directly, I want the pipeline to fail. How can I add a dependency for the tags 3,4 & 5 that tags 1 & 2 has to run 1st.

Please advice.

My current .yml file is like this.

   - name: Task 1        shell: "/tmp/1.sh -a {{ IN.1}} -b {{ IN.2 }}"        register: Task1.sh        tags: task1      - name: Task 2        shell: "/tmp/2.sh -a {{ IN.2}} -b {{ IN.2 }}"        register: Task2.sh        tags: task2  .  .  .  .  - name: Task 5        shell: "/tmp/5.sh -a {{ IN.1}} -b {{ IN.2 }}"        register: Task5.sh        tags: task5```  

Confused On Colors Xterm Vs Zsh - How to set Xterm without breaking Zsh colors?

Posted: 19 Aug 2021 08:52 AM PDT

I am confused by the color settings for xterm (or uxvt in my case but uses the same) verus the zsh PROMPT colors.

If I change the xterm colors then it changes the zsh prompt colors and I think it makes the zsh prompt colors inaccurate.

How do I handle this situation? How do I set the xterm colors where they do break the zsh prompt colors?

Example .Xdefaults

!colors  !black  URxvt-ml*color0:                #676767  URxvt-ml*color8:                #757575  !red  URxvt-ml*color1:                #EA6868  URxvt-ml*color9:                #FF7272  !green  URxvt-ml*color2:                #ABCB8D  URxvt-ml*color10:               #AFD78A  !yellow  URxvt-ml*color3:                #E8AE5B  URxvt-ml*color11:               #FFA75D  !blue  URxvt-ml*color4:                #71C5F4  URxvt-ml*color12:               #67CDE9  !magenta  URxvt-ml*color5:                #E2BAF1  URxvt-ml*color13:               #ECAEE9  !cyan  URxvt-ml*color6:                #21F1EA  URxvt-ml*color14:               #36FFFC  !white  URxvt-ml*color7:                #F1F1F1  URxvt-ml*color15:               #FFFFFF    

Example PROMPT from zsh (not using oh my zsh):

PROMPT='%B%F{046}%n%B%F{123}@%B%F{046}%m %F{051}%b%F{015}%(4~|...|)%3~%B%F{239}$(__git_ps1)%f%k  %F{123}%#%f%b '  

Ip address of wireless adapter is not showing on ifconfig

Posted: 19 Aug 2021 08:50 AM PDT

enter image description here Even when my wireless adapter is in managed mode it is not showing the ip address of it on ifconfig.

Kubuntu Plasma Login screen is frozen when switching users

Posted: 19 Aug 2021 08:35 AM PDT

I have two users sessions running. I can switch between users without error most of the time. But after a while, after I try to switch users, on the login screen for the user I am swtiching to, the login screen is frozen solid.

The cursor works on the frozen login screen, but nothing else works. I can not login even if I try to do with without the UI reflecting my typing.

If I hit ctrl+alt+F1, I can switch back and login in to the other user, but if I try to switch to the frozen user, nothing happens.

I am using a Radeon rx580 video card...

Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.11.0-27-generic

what permissions should have /boot directory?

Posted: 19 Aug 2021 08:57 AM PDT

I have been reading a linux security paper that says we should only give root access to /boot directory. What does mean, in terms of permissions, 'only root access to /boot directory'? If I set up my /boot to 700, a lot of files inside that dir which give permissions to root group and others wont be able to be accessed anymore? (in my case, 294 files has at least read permmission set to others). Should not /boot directory be set up at least to 755? but in this case, it's a world access not only a root access? Actually the question should be: are there some processes other than root which need access to /boot directory? how can I check that? /var/log/boot.log does not give any answer to that So far I understood that a computer starts that way: mother bios/efi checks the hardware and looks for an mbr/boot media.Then it loads the boot loader and gives boot control to it. the boot loader then loads the kernel and gives boot control to it. The kernel starts services (among other things). Does all this performed by only root or by another user or another root group member as well?

The same idea goes for /boot/grub2 directory. This directory has got, by default, permissions set to 700:

ls -ld /boot/grub2     drwx------. 4 root root 99 Aug 18 19:37 /boot/grub2  

and there are numerous files in this dir:

find /boot/grub2 -type f | wc -l     282  

but only 2 of them are not accessible to others

find /boot/grub2 -type f ! -perm /007 -printf '%y %u %g %m %p\n'    f root root 600 /boot/grub2/grubenv    f root root 600 /boot/grub2/user.cfg  

so why set /boot/grub2 up to 700 which is incoherent in view of permissions that have been set up inside that directory ?

Tell me what I have missed there please.

Thanx folks!

How to change a symlink (viewed as a text file) to the content of that text file (i.e. "remove symlink bit")?

Posted: 19 Aug 2021 08:59 AM PDT

In ubuntu Linux, I have a bunch of abominably broken symlinks like:

$ ls -l setup.conf  lrwxrwxrwx 1 ont ont 27 Aug 19 15:26 setup.conf -> '# Source it'$'\r''. ../setup.conf'  

They are the result of an attempt to replace all symlinks in a project with a comment and a source call (". ../setup.conf") of the target file. They are all really text files (the example containing: "# Source it\n. .../setup.conf") with the symlink bit. This was done using git and windows.

One theoretical fix would be to just remove the "symlink bit" and keep the resulting textfile as is, but I see no way of doing that (chmod and other tools sees it as a "dangling symlink" and refuses to operate on the text-file itself).

Another fix would be to manually create a new file, with contents as the above as taken from the ls command. I'd rather not resort to that, as it is tedious and error prone, and the files are not identical).

nmcli - command line means to delete all wifi / wlan0 connections

Posted: 19 Aug 2021 09:53 AM PDT

I'd like to delete all active or inactive wifi connections on interface wlan0, with the intention of having a known-empty clean slate to set things up. Is this possible? I was hoping for something like 'nmcli connection delete device wlan0' or 'nmcli dev show wlan0 delete..' but no such luck.

Or is there a means to do this with 'iw' ? I found a means to delete the interface, but not connections.

Thank you for your time.

What are the software tools to view the video on Android from the Linux server?

Posted: 19 Aug 2021 07:46 AM PDT

I have a Debian 10 remote server on the local network. On this server there is a directory ~/MyVideos. This directory containing video files that I want to play (to watch) on Android tablet.

What are the programs for this purpose for both sides: client (Android) and server (Linux)? Preferably open source.

P.S. I can install the server in Docker Container (in my Debian 10 local network server) if necessary.

How to install Linux from a UEFI bootable, overwriting an existing Windows installation

Posted: 19 Aug 2021 09:54 AM PDT

I am on an older netbook that cannot handle Windows 10 (nor Windows 11) anymore since the 64 GB fixed flash memory cannot handle the data. It is a Medion Akoya netbook, model number: MD 61900, model: E2228T. Obviously, this question is not bound to just this special choice of hardware.

There are 50 similar questions on Stack Exchange, but just because of that, I could not find a clear help of how to over-install Linux on a Windows installation using UEFI and a Linux bootable.

Thus: how to really just do it?

Make a link to external file behave as the file itself (i.e. delete the link target, not the link)

Posted: 19 Aug 2021 07:49 AM PDT

I have Arch installed on an SD card (F2FS) that is rather sparce in terms of disk space. There is also an original laptop's NTFS Windows SSD drive that has much more free space and is much faster.

I would like to move large files of Linux packages installed with pacman or yay (AUR) to the mentioned NTFS drive, so that they would seamlessly be accessible by the Linux system and applications as the target files themselves. I could simply move the files and put soft links instead, but this would make the system maintained in manual-only mode (i.e. once the package files are rewritten upon package upgrade via a package manager, the links get replaced with the actual files of the updated package; once the file is deleted, it is only the link that gets deleted, with the target file still wasting space on the NTFS drive etc). Hard links do not meet these feature set requirements: they do not work with different filesystems, and they make the file exist unless the last hard link is present, that is opposed to what I actually need.

I could do this in Windows 10 with junction links (I guess?), but is there any proper Linux equivalent to this functionality?

sed replace with exception list

Posted: 19 Aug 2021 10:20 AM PDT

I need to replace strings in many large textfiles but I have a list of exception strings (200+ items). For example:

# I want to replace every "dank". Except when it comes in the following form:     dankine  dankzwd  nudankip  dankphys  danko.mod  ... (The list is 200+ items long)  

My current regex looks like this:

sed -e "s/dank/monk/g" /path/to/file  

The content of the file looks like this:

xdankine redankus  dankzwd   danke dankbe  testdank  

this is the content of the file after execution:

xmonkine remonkus  monkzwd   monke monkbe  testmonk  

But I want the content to look like this:

xdankine remonkus  dankzwd   monke monkbe  testmonk  

since dankine and dankzwd are in my exclusion list

How can I accomplish this?

Thanks and kind regards, Jan

How to print a '@' in a linux shell?

Posted: 19 Aug 2021 09:25 AM PDT

I have a problem with a remote server having a keyboard layout in console different from my physical keyboard

I need to copy a '@' letter to be able to paste in a browser forum

The server is in a VPN without external access, so a simple googling for 'at symbol' doesn't works.

Is there some trick to have a @ printed in the console so I can copy and paste it?

Is there a well-known file to simple do a cat and show a @ inside it? A readme, or similar. ..

Merging every nth files in a folder and delete used one

Posted: 19 Aug 2021 08:55 AM PDT

I have folder with 30000 txt files, each file is 50-60kb. I need to merge them into 2.5mb txt files.And remove the one that was merging. My code would need to be something like: for f in *,50; do cat file1,file2...file49 > somefile.txt;done Of course this is pseudocode. I would need to merge files in package of 50 files, then remove the used one. Can someone please help me?

Syntax to select a group of files based on extension?

Posted: 19 Aug 2021 10:29 AM PDT

I have several files in the following form,

Group - 1

file1.n001  file2.n002  file3.n003  file4.n004  :  :  :  filex.nx  

Group - 2

file1.ntemp  file2.nreal  :  :etc  

In order to remove only files, with extension .n001 to .nx (i.e files in the first group) using rm command, is there a way to specify all numbered extensions in a short from (something like rm *.n001-x). Instead of rm *.n001 *.n002 *.n003 ..... *.nx.

How to catch and break on a Fortran 90 runtime error in GDB?

Posted: 19 Aug 2021 08:47 AM PDT

Is it possible to have Fortran 90 break at a runtime error in GDB? I show here a MWE for a simple routine test.f90 which throws an out of bounds error:

program main    implicit none    integer              :: i    integer, parameter   :: npt = 10    real, dimension(npt) :: A    real                 :: B    !    do i = 1,npt       A(i) = i    enddo    B = A(npt+1)    !  end program main  

I compile as follows:

gfortran test.f90 -O0  -fbacktrace  -fbounds-check -g -Wall -w -o test.x   

Which, mostly as expected, gives the backtrace here:

Error termination. Backtrace:  #0  0x7ffff7a0f2ed in ???  #1  0x7ffff7a0fed5 in ???  #2  0x7ffff7a102a7 in ???  #3  0x55555555480e in MAIN__      at ~/test.f90:11  #4  0x555555554844 in main      at ~/test.f90:13  

When I run in GDB I set catch catch and catch throw catchpoints, but upon running GDB still lets the program terminate and I don't have frames to look at.

(gdb) catch catch  Catchpoint 1 (catch)  (gdb) catch throw  Catchpoint 2 (throw)  (gdb) r test.x  `~/test.x' has changed; re-reading symbols.  Starting program: ~/test.x test.x  warning: Probes-based dynamic linker interface failed.  Reverting to original interface.  [Inferior 1 (process 3769) exited normally]  (gdb) where  No stack.  (gdb) bt  No stack.  (gdb)   

How can I get GDB to catch errors like this and start debugging from the culprit line? Obviously it's easy to identify useful break points in smaller scripts but in a larger legacy Fortran code it can save a ton of time and effort.

Interpretation of Open Group Base Specification's description of exit()

Posted: 19 Aug 2021 08:45 AM PDT

In the exit() function description of the Open Group Base Specifications (various issues), we read:

The exit() function shall first call all functions registered by atexit(), in the reverse order of their registration, except that a function is called after any previously registered functions that had already been called at the time it was registered.

It is my fault for sure, but I cannot understand (and recognize the syntax structure!) of the statement in boldface. May I ask for somebody to rephrase and explain what is the meaning of this statement? Possibly with an example.

WSL Run Service at Start

Posted: 19 Aug 2021 08:51 AM PDT

I'm honestly not sure if this is an issue with WSL or I'm just doing something wrong for Ubuntu in general, but I cannot get the cron service to run at start on my WSL system.

It starts just fine with:

sudo service cron start  

But it doesn't start at boot even after:

sudo update-rc.d cron defaults  sudo update-rc.d cron enable  

Version:

$ uname -a  Linux PC-01 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux  $ lsb_release -a  No LSB modules are available.  Distributor ID: Ubuntu  Description:    Ubuntu 18.04.4 LTS  Release:        18.04  Codename:       bionic  

Timed out waiting for device dev-disk-by\x2duuid-C829\x2dC4C1.device

Posted: 19 Aug 2021 08:46 AM PDT

I had formatted efi partition and installed windows again. I have dual boot Windows and Linux, then I installed the grub bootloader again from a live usb using these commands:

 mount /dev/sda* /mnt   mount --bind /dev /mnt/dev   mount --bind /proc /mnt/proc   mount --bind /sys /mnt/sys   mount /dev/sda* /mnt/boot/efi   mount /mnt/hostrun   mount --bind /run /mnt/hostrun   chroot /mnt   grub-install /dev/sda   update-grub   exit  

Then I unmounted all of this again. When I tried to boot, I got this messages:

 [ TIME ] Timed out waiting for device dev-disk-by\x2duuid-C829\x2dC4C1.device.   [DEPEND] Dependency failed for file system check on /dev/disk/by-uuid/C829-C4C1.   [DEPEND] Dependency failed for /boot/efi.   [DEPEND] Dependency failed for Local File System.  

and it turns me into emergency mode. How can I solve this problem?

awk search and replace string in a specific column of CSV file

Posted: 19 Aug 2021 09:07 AM PDT

I have a csv file with 17 columns and million rows. I want to search for a specific string in the 16th column and replace all the instances of that string with another string. Since my rest of the program uses bash script, I thought using awk instead of Python search & replace. My current OS is Rhel6.

The following is the sample output of my data:

SUBSCRIBER_ID|ACCOUNT_CATEGORY|ACCOUNT_ACTIVATION_DATE|PACKAGE_NAME|PACKAGE_TYPE|DURATION|ACTIVE_DATE|INACTIVE_DATE|STB_NO|PRIMARY_SECONDARY|MODEL_TYPE|VC_NO|MULTIROOM|STB_TYPE|IPKG|SERVICE_STATE|CURRENT_STATUS  1001098068|ResidentialRegular|01/20/2007|Annual package 199 May17 pack|Basic Package|Annual|08/28/2017||027445053518|Primary|Pace - 31|000223871682|Yes|AMP|Package 199 pack|Market1|Active  1001098068|ResidentialRegular|01/20/2007|Annual Pack|Premium Package|Annual|08/28/2017||027445053518|Primary|Pace - 31|000223871682|Yes|AMP|English Movies pack|Market1|Active  1001098068|ResidentialRegular|01/20/2007|Annual SingleUnit Jun17 Pack|Secondary Pack|Annual|08/28/2017||032089364015|Secondary|Kaon|000017213968|Yes|AMP|SingleUnit|Market2|Active  

In this the 16th column is Market, wherein I want to change the Market1 to MarketPrime. The name of the file is marketinfo_2018-06-26.csv

I tried the following code:

awk -F '| +' '{gsub("Market1","MarketPrime",$16); print}' OFS="|" marketinfo_2018-06-26.csv > marketinfo_2018-06-26.csv  

This runs without any output, but the string Market1 still remains.

Add custom menu action to Caja file manager

Posted: 19 Aug 2021 10:11 AM PDT

There should be a tool to create such actions in Caja (default file manager in Mate desktop environment), installed with

sudo apt install caja-actions  

But it doesn't seem to work, as indicated here.

In my case, this tool is in the start menu, but it doesn't launch (Mint Mate 18.3, based on Ubuntu 16.04).

How to create such actions manually?


This is posted in order to provide an answer.

Why does my laptop screen dim after a few seconds on battery power?

Posted: 19 Aug 2021 10:02 AM PDT

It isn't actually locking or going to sleep. After a few seconds, the screen just clicks to a slightly darker setting. I have looked through dconf editor and the settings menu, and can't find any. Someone on here asked a similar question about Fedora, but it was a system update that fixed it. I'm running Debian 9, so that won't work for me. Below I will include a screenshot of my dconf power menu: dconf photo To be clear, this issue doesn't plague me when the laptop is plugged in. But when it's unplugged, the computer gets noticeably darker after just a few seconds of idling.

Also, the screen brightens back up as soon as I touch the mouse or the keyboard.

Solved, kind of: While dealing with some other issues, I rebooted my computer a few times (something I hadn't done since messing with dconf) and the issues seems to have gone away. So perhaps it was just necessary to reboot after editing?

Debian 9 XFCE fresh install, nothing but wallpaper after login

Posted: 19 Aug 2021 08:08 AM PDT

I successfully installed debian 9 as a dual boot with windows 10. I chose automatic partitioning of a free space of 37 gb next to the windows partition.

A swap and ext4 partition were created, efi recognized, everything was ok. I know it is a small partition, but I checked on debian sites, and it should be more than enough to start customizing the system, and installing/setting basic applications I think.

The only thing that surprised me was the swap created was quite big; almost half the space, but I should trust that the installer knows better

Everything went fine, grub was installed correctly. The computer is an ASUS laptop, one year old, intel i7, 16gb ram, 500gb ssd. The PC boots as expected, I get to the login where I can login with the user account as well as the root account.

The problem is that after logging in, there is nothing but the wallpaper and the cursor..

Absolutely nothing else.. No default shortcut/hotkey works, all I could notice is that ctrl + alt + f2 makes the cursor disappear. Nothing else seems to happen whatever I try; I have to press the shutdown key to get out..

In recovery mode, at the end of what looks like a slow booting process, I am prompted for a root password for maintenance, and, given the alternative of pressing ctrl + shift + D to "continue".

At that point, entering root password logs me in a full screen terminal as root, and, only pressing 'enter' gets me to a full screen terminal like login. There everything looks fine, all the folders I am used to see are there, I can run commands, update apt repository..

But, once in a while (I cannot reproduce every time), Ctrl + Shift + D brings me to the graphical usual login page, and logging from there starts a normal xfce session. Within this session, everything works as expected, I can even log out and back into the session, but a restart brings me back to the options described above.

For information, windows boot is offered by Grub, and works perfectly.

Things I have tried:

  • I tried of course going through the install process again, I did it 4 times for the same results exactly every time. I used two different ISO images (1 downloaded today from the official site), on a cd, and, a usb once created with rufus, another time with windisk imager. The only thing I did not try yet is using a different repo source during installation..

  • I tried a solution I saw on various xfce threads to remove ~/.config/xfce4 , and/or, ~/.cache to no effect. I also tried installing LDM package as it was suggested on an ubuntu forum, but no luck. I ran

apt install --reinstall xfce4    apt install --reinstall xfce4-goodies  

I tried with boot secure enabled, disabled, with fast boot enabled, disabled as well.

Unable to restart lsyncd after killing it

Posted: 19 Aug 2021 09:02 AM PDT

I noticed that I was not getting new backups on our DR, so I took a look and saw that lsyncd was stuck on the server that sends to the DR via lsyncd. Our backup logs showed endless errors of "Waiting for child process to terminate." I eventually killed the lsyncd tasks since they were stuck and have since been unable to restart lsyncd. The backup to DR is configured through /etc/lsyncd.conf.

When I run status on lsyncd after I run

systemctl start lsyncd.service  

I get the following error:

[root@backupsteve bin]# systemctl status lsyncd.service  ● lsyncd.service - Live Syncing (Mirror) Daemon  Loaded: loaded (/usr/lib/systemd/system/lsyncd.service; disabled; vendor preset: disabled)  Active: inactive (dead)    Apr  3 17:22:19 backupsteve systemd: Started Live Syncing (Mirror)   Daemon.  Apr  3 17:22:19 backupsteve systemd: Starting Live Syncing (Mirror) Daemon...  Apr  3 17:22:19 backupsteve sh: Error: failure getting absolute path of [/usr/local/cherbles/archive/plause/backups/dr551-prod/sftpdrop2/latestbackup/]  Apr  3 17:22:19 backupsteve sh: Error: Cannot access source directory: /usr/local/cherbles/archive/plause/backups/dr551-prod/sftpdrop2/latestbackup/  

I am able to browse to the ../dr551-prod/sftpdrop2/latestbackup just fine. and see the backups. It is just a link to the latest backup folder. This particular backup (dr551-prod) entry in the .conf file is towards the middle, but it errors on this one immediately for some reason. There are probably 20 servers in front of this. I do not have any instances of lsyncd running and I have stop/started it a good bit of times.

Why does urxvt appear different when run through x-terminal-emulator?

Posted: 19 Aug 2021 08:44 AM PDT

When urxvt is launched directly a nice looking font is used:

plain

But when it is launched by x-terminal-emulator an ugly cramped font is used:

through x-terminal-emulator

But x-terminal-emulator is just a symlink which eventually resolves to /usr/bin/urxvt:

ls /usr/bin/x-terminal-emulator -l           lrwxrwxrwx 1 root root 37 Jun 19  2016 /usr/bin/x-terminal-emulator -> /etc/alternatives/x-terminal-emulator    ls /etc/alternatives/x-terminal-emulator -l  lrwxrwxrwx 1 root root 14 Mar 16 08:14 /etc/alternatives/x-terminal-emulator -> /usr/bin/urxvt  

and

which urxvt  /usr/bin/urxvt  

If it matters I'm running Ubuntu 16.04, with urxvt version 9.21.

Systemd service creation of Prometheus and Node Exporter

Posted: 19 Aug 2021 08:43 AM PDT

I am trying to create services for both Prometheus and Node Exporter.

Both .service files have nearly identical content.

    #!/bin/sh -      # /etc/systemd/system/node_exporter.service      [Unit]      Description=Node Exporter        [Service]      User=prometheus      RemainAfterExit=true      ExecStart=/usr/bin/node_exporter  

My issue is I cannot start the service. I get the following error

    ● node_exporter.service - Node Exporter  Loaded: loaded (/etc/systemd/system/node_exporter.service; enabled; vendor preset: enabled)  Active: active (exited) (Result: exit-code) since Mon 2017-01-30 16:00:31 MST; 7min ago  Process: 18693 ExecStart=/usr/bin/node_exporter (code=exited, status=203/EXEC)  Main PID: 18693 (code=exited, status=203/EXEC)  

I have tried changing the user, verifying the path is correct, among many many other iterations. I for the life of me cannot get this to work after hours of tweaking, google, and backtracking. There are guides for Upstart, but I need this to work on 16.04 without Upstart as a dependency.

What's the difference between gzip and compress?

Posted: 19 Aug 2021 08:24 AM PDT

What is the difference between gzip and compress? What are the advantages of using compress function. I could see a size difference in the compressed file, but apart from this what are the main adavantages?

how to nsupdate remotely?

Posted: 19 Aug 2021 09:53 AM PDT

I have BIND as a DNS server, what I want is to let this server to allow me to add or remove records to a zone without manually editing the zone file and I want to do this remotely.

Is this updating need a key or something like that or can I do it using ssh connection like this:

ssh user@remote "nsupdate ..... " ;  

No comments:

Post a Comment