Skip to content

Tag: debian

Need to get Linux Dist name from different Dists

want to code a script that is for multiple linux distributions. Also want to add commands that check, and if not exist install some packages.. So, need a solution to ckeck Dist name (like Debian or RedHat) to execute the right command for this Dist. I have tryed “lsb_release” but is this working a…

Stop timesyncd from polling hard coded Debian timeservers

The systemd-timesyncd daemon repeatedly tries to contact the following hard coded (compiled) time servers if neither an NTP server is specified manually nor one received via DHCP: Since I’m operating behind a corporate proxy, it will never be successful to reach these servers. Is there a way to prevent …

Searching and selecting strings from a file

I have a trouble in separating few exact ‘fields’ with strings and then putting them into .txt file. I need to extract ‘nologin’ users from /etc/passwd file and that is an easy step. I’m using this command: cat command gives me for example: and it is saved to file1.txt Now I have…

Pass filename from Nautilus to shell script

I am trying to execute a shell script that gets for an argument a file name. I can do it if I go to the terminal and type the full PATH. But I am trying to make this more user friendly so I what I want to do is to send the argument (complete path) from the file manager or