Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

Unix & Linux

read files directly VS getent

August 8, 2022 by Magenaut

In various shell scripts I often see two approaches for getting information from databases supported by Name Service Switch libraries like /etc/group, /etc/hosts or /etc/services. One is getent utility and other is grep or some other text processing tool. For example:

Categories Q&A, Unix & Linux Tags getent, nsswitch Leave a comment

Debian unstable chroot security issues

August 8, 2022 by Magenaut

This page describes how you can use the debootstrap utility to install a base Debian unstable/sid system on an existing Linux machine. The new install is accessible using chroot.

Categories Q&A, Unix & Linux Tags chroot, debian, install, linux, security Leave a comment

Setting up an access point

August 8, 2022 by Magenaut

I have a laptop with an Atheros card and I woud like to use it as a wireless access point.

Categories Q&A, Unix & Linux Tags linux, wifi Leave a comment

How to assign result of sed to variable

August 8, 2022 by Magenaut

Below is a complete copy of a demo I’m using to to figure out to get the sed command to get rid of the spaces in a persons name, and compress it down to not have spaces.

Categories Q&A, Unix & Linux Tags bash, bash-script, environment-variables, sed, shell-script Leave a comment

Authentication mechanism to connect to Windows AD in Linux?

August 8, 2022 by Magenaut

My company has asked me to look into connecting our CentOS 7 instance’s to our Active Directory to make it easier for user management.

Categories Q&A, Unix & Linux Tags active-directory, authentication, centos, ldap Leave a comment

/dev/tcp not present in Linux

August 8, 2022 by Magenaut

I am porting C/pro*c code from UNIX to Linux. The code is:

Categories Q&A, Unix & Linux Tags c#, linux, tcp Leave a comment

WiFi not working Kubuntu 20.04 – Intel 8265 Network Interface

August 8, 2022 by Magenaut

I have a problem with my WiFi card on Kubuntu. Sometimes the system doesn’t recognise it, but what is strange is that it doesn’t happen everytime, but just about one boot on four, and I can’t understand why. If I run lshw -C network I get:

Categories Q&A, Unix & Linux Tags kubuntu, network-interface, wifi Leave a comment

Can a command be executed over ssh with a nologin user?

August 8, 2022 by Magenaut

If a user has loginShell=/sbin/nologin is it still possible to

Categories Q&A, Unix & Linux Tags account-restrictions, login, ssh Leave a comment

Are there 2 ways to set awk vars via command line?

August 8, 2022 by Magenaut

I noticed an O’Reilly awk example (1997) which assigned an awk variable by setting it on the command line after the program-text. It does work, but I can’t find this syntax in man / info awk. Have I just missed it; is it depricated…? The only syntax I’ve seen in the manual is the -v option.

Categories Q&A, Unix & Linux Tags awk Leave a comment

Is it possible to tweak input from touchpad?

August 8, 2022 by Magenaut

I use a MS keyboard on my Debian machine. The problem is that MS does not ship configuration software for us and touchpad’s default scrolling directions are reversed (it uses natural scrolling).

Categories Q&A, Unix & Linux Tags scrolling, touchpad, x11, xinput Leave a comment
Older posts
Newer posts
← Previous Page1 … Page227 Page228 Page229 … Page371 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress