Categories
Development Linux

How do I make it so that when I run tmux, it always creates a session that defaults to the current directory?

I am running an Ubuntu bash shell on my Windows operating systems. When I enter the tmux command, the shell opens up a new tmux session in my root directory. How do I make it so that when I run tmux, it opens up a new session in whatever directory I am currently in?

Categories
Development Linux

How to fix path typos?

When typing quickly, I often mistype cd ~/myfiles as cd ~?myfiles, resulting in: zsh: no matches found: ~?myfiles Is there a way ZSH can autocorrect such mistakes?

Categories
Development Linux

Add lines of a list as prefixes in filenames

How can I add elements of a list as a prefix plus a “_” to filenames? filenames: aaa.gf bbr.gf cee.gf list.txt: pplo 125ss 35w2 wanted result: pplo_aaa.gf 125ss_bbr.gf 35w2_cee.gf All elements are on the same folder. All target files end in .gf. Lines of list.txt should correspond to filenames alphabetically sorted, as shown in the […]

Categories
Development System & Network

Is it possible to apply firewall on LAN to LAN packets with just PfSense and a layer 2 switch?

Is it possible to apply firewall rules on LAN to LAN packets? Imagine the following architecture: To get a valid IP, the clients must authenticate to PfSense LAN network using 802.1x against the pfSense’s radius server. After that all packets sent between Client1 and Client2 will be managed and filtered by PfSense firewall. Is this […]

Categories
Development System & Network

Simple host monitoring solution

I am looking for a host monitoring solution for an infrastructure I have to manage. Since this infrastructure is on-premise, I would like to have a client-server architecture, where a client reports status to an external server (EC2 instance) periodically. I tried Zabbix for this purpose, but it did not work very well. The connection […]

Categories
Development System & Network

How does Linux allocate bandwidth between processes?

If I don’t set up any traffic shaping, how does Linux allocate (outgoing) bandwidth between processes? My specific situation is that I am running 30 identical processes on a cloud VM, each of which is basically sending data over the network (TCP) as fast as possible. Together they seem to hit the total outgoing bandwidth […]

Categories
Development System & Network

Stop redhat changing mac address when changing host in hyper v 2012

We have a Windows Server 2012 Failover Cluster with three hosts. We have a Redhat vm in the cluster that can freely migrate between the three hosts. But every time the vm migrates to a different host and reboots for any reason, the ethernet interface in the vm changes and the vm loses connectivity. The […]

Categories
Development Linux Ubuntu

GNOME3: Remove Power Off button for all users from the GUI

I couldn’t find any solution to this. I need to remove the power off menu button (not the entire panel but just button highlighted in yellow hexagon) from the UI. How can it be done?

Categories
Development Linux Ubuntu

ubuntu 19.10 stuck on loading screen on acer aspire 5750

Does anyone know why ubuntu 19.10 occasionally gets stuck on the loading screen? Ubuntu is installed as the only operating system on the laptop and the only modifications that were made to it is that I installed the chromium web browser (snap) and gparted. Those are literally the only things that I have modified. I […]

Categories
Development

Dialogflow: Use parameters that are set in fulfillment

I am using Dialogflow with a custom server as backend server, sending JSONs once in a while for fulfilment. As an example, I want to make a very simple login in my system. For that, I have an intent, “session.login”, that has one required parameter, namely username: That intent has fulfilment enabled, and my backend […]