Categories
Linux Mastering Development

dhclient.conf modifications do not change resolv.conf

When I modify my /etc/dhcp/dhclient.conf with prepended nameservers, after a network manager restart, the generated resolv.conf file does not contains these servers. I’m working on Kali Linux. Here is my dhclient.conf option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; send host-name = gethostname(); request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, domain-search, host-name, dhcp6.name-servers, […]

Categories
Linux Mastering Development

Mounting a separate drive (sdb) on a folder (in system OS in sda) and what happens to the written files if the system OS drive is dead

Is there any way I can preserve the files written to the mounted folder after the system OS is dead? I want to use the files written to the second disk.

Categories
Linux Mastering Development

“ps -fC tmux” command does not show tmux process

I am running a tmux server. When I checked the process, I can see the tmux process: # ps -ef | grep tmux | grep -v grep root 4129 1424 0 17:47 pts/0 00:00:00 tmux root 4131 1 0 17:47 ? 00:00:34 tmux However, when I wanted to check the command that run tmux, I […]

Categories
Linux Mastering Development

How to check if any firewall is already installed

I have a Debian 10 VPS (virtual private server). How to check if any firewall is already installed? I dont have a list of all existing firewalls, so I hope there is a more general way.

Categories
Linux Mastering Development

Metasploit error on Alpine

When I trying to run ./msfconsole I got this error: Traceback (most recent call last): 9: from ./msfconsole:48:in `<main>’ 8: from ./msfconsole:48:in `require’ 7: from /opt/metasploit-framework/lib/msf/core/payload_generator.rb:2:in `<top (required)>’ 6: from /opt/metasploit-framework/lib/msf/core/payload_generator.rb:2:in `require’ 5: from /opt/metasploit-framework/lib/msf/core/payload/apk.rb:3:in `<top (required)>’ 4: from /opt/metasploit-framework/lib/msf/core/payload/apk.rb:3:in `require’ 3: from /opt/metasploit-framework/lib/msf/core.rb:44:in `<top (required)>’ 2: from /opt/metasploit-framework/lib/msf/core.rb:44:in `require’ 1: from /opt/metasploit-framework/lib/msf/core/db_manager.rb:24:in `<top (required)>’ […]

Categories
Linux Mastering Development

`xev` doesn’t register my `Fn+F4` keypress? How to bind this combination?

My question is simple. xev isn’t registering Fn+F4 keypress on my Asus FX505DT running Kubuntu 19.10. So, how shall I proceed with solving this issue?

Categories
Linux Mastering Development

Thinkpad X220 will not boot Kernel 5.3.*

My Thinkpad X220 runs Mint Linux 19.3 Tricia. it’s not dual boot. When I tried to upgrade recently the new kernel was 5.3.0-42 but it won’t boot that so currently using 5.0.0-32. I get error messages USB not accepting address error -110. Eventually it just hangs or I get bored and power off! Same happens […]

Categories
Linux Mastering Development

How to find out all the sizes of GB of directories under the home directory?

On the Bash on a Mac, It is possible to do something like cd # go to home directory ls -d */ to get the name of the folders in the home directory. And we can use du -sh Documents to get the size in human readable form the size of the folder. I tried […]

Categories
Linux Mastering Development

Entire graphical session over ssh on Ubuntu 18.04

I sucessully connect on my ubuntu 18.04 (guest), on my host Ubuntu 18.04 (host). And I have used -X param on ssh connection to open graphical applications. But now I want to open an entire session over “ssh -X“; can you help me with this? I need to open everything, gnome with nautilus and superior […]

Categories
Linux Mastering Development

Linux containers [closed]

Linux containers 1- are containers really safe ? (I know that there was some vulnerabilities around like the one found in runc … but are they really safe in general, since they use syscalls and an eventual kernel exploit may lead to a container escape) 2- what is the most reliable software to use for […]