Categories
Linux Mastering Development

lspci -v shows no Audio card

My Ubuntu 18.04 device shows dummy output only. Can not connect bluetooth headphones as well, only wired headphones work. cat /proc/asound/cards gives no sound cards output. Any help is appreciated.

Categories
Linux Mastering Development

rsync does not follow symlink

I want to copy one file from one Linux server to another one: Firstly, I’ve checked the following: ls -l /etc/letsencrypt/live/example.com/fullchain.pem lrwxrwxrwx 1 root root 46 mar 28 19:50 /etc/letsencrypt/live/example.com/fullchain.pem -> ../../archive/example.com/fullchain260.pem and ls -l /etc/letsencrypt/archive/example.com/fullchain260.pem -rw-r–r– 1 root root 3578 mar 28 19:50 /etc/letsencrypt/archive/example.com/fullchain260.pem then: rsync -e “ssh -i ~/.ssh/id_rsa-cert.pub” -uvvvvvL –chmod=F644 /etc/letsencrypt/live/example.com/fullchain.pem soporte.example.com:/etc/pki/tls/certs/soporte.example.com/tmp […]

Categories
Linux Mastering Development

How to get the different with the previous output by grep?

I use grep to get the output of mysqladmin as sudo mysqladmin ext -i10 | grep ‘buffer_pool_pages_flushed’ and the output is continuous (every 10 seconds) as | Innodb_buffer_pool_pages_flushed | 265708726 | | Innodb_buffer_pool_pages_flushed | 265735665 | | Innodb_buffer_pool_pages_flushed | 265751712 | | Innodb_buffer_pool_pages_flushed | 265754576 | | Innodb_buffer_pool_pages_flushed | 265774380 | How can I adjust […]

Categories
Linux Mastering Development

“who/w” command fails to list active user logged in from SSH client session

I (logged in as “user1”, has root access) was following this to experiment with kicking a client ssh session logged in as “user2” (has no root access), connected from the same network from a laptop. The results of the who -u command showed both “user1” and “user2” 15:15:59 up 2:03, 2 users, load average: 0.00, […]

Categories
Linux Mastering Development

Secondary screen not detected

I have installed Ubuntu 18.04 on Lenovo g580 and my laptop screen is not working. I am trying to connect external screen using VGA or HDMI port but my laptop is not able to detect secondary screen. Please suggest any solution for the above problem.

Categories
Linux Mastering Development

KVM switch keyboard / mouse troubleshooting

I got this KVM switch to switch between a linux based system and a windows system. I have the following other hardware: Very simple keyboard Keyboard that also has audio out / in and some additional no standard keys very simple wired mouse Logitech USB bluetooth mouse with extra buttons The Windows setup works fine […]

Categories
Linux Mastering Development

How to extract a certain string and delete rest of values from an input string?

INPUT=”TEST: www.google.com TEST2: 123444 TEST3 Id: ABCD1234 TEST.txt” My expected output is ABCD1234 I tried OUTPUT=echo $INPUT | sed ‘s/^.*TEST3 Id://’ | sed ‘s/\[space].*//’ Got this as output ABCD1234 TEST.txt

Categories
Linux Mastering Development

How to do the equivalent of a “where” clause with `find` and `grep`

I have a folder tree of text files and I would like to find instances of a substring and the names of the files they came from. If I do something like: find . | xargs cat | grep ‘abc’ then I would find instances of the substring, but not the files they originally came […]

Categories
Linux Mastering Development

Xubuntu installation on Ubuntu made me lose access to both

I’ve lost access to my Linux hard drive upon installing Xubuntu. The system will boot (no login required) but it won’t accept commands from mouse or keyboard. Is there a way for me to access the Ubuntu installation by maybe doing some commands during boot?

Categories
Linux Mastering Development

Securing OpenLDAP on Debian Buster

would this still be the way of securing an OpenLDAP server on Debian 9 (Stretch) and 10 (Buster). See Section 11.7.3.3. Securing LDAP Data Exchanges. Unfortunately the Debian manual seems to always be a few distros behind. Although its a home network, I’m still no keen on having passwords traveling in clear between hosts.