Categories
Development Linux

command invocation location is inconsistent with `which` command output

I’m installing protocolbuf on my CentOS 7 box, and after installation, I saw some inconsistency while running the protoc compiler binary: $ which protoc /usr/local/bin/protoc $ protoc bash: /bin/protoc: No such file or directory This definitely looks wrong, how do I fix this problem?

Categories
Development Linux

Locked out of remote machine when changing password

TLDR : Not able to login after resetting the password on a remote machine. The machine is on a truck that’s 1000kms away. I have a remote ubuntu machine which is connected through a service called remote.it . RemoteIT provides SSH connection string for the remote machine and it keeps changing periodically. I wanted to […]

Categories
Development Linux

How do the server side commands configured in SSH authorized_keys process the incoming data?

Some utilities like git and gitotile can restrict what commands an SSH key can run by making modifications to the authorized_key files. Gitolite for instance changes modifies the entry in the authorized_keys file thus: command=”/usr/bin/gitolite/src/gitolite-shell username”,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty As this command is running on the receiving end it has to process the stream of data coming over […]

Categories
Development Linux

Get The Ethernet Mac Address Of Computer with no Display

I’m trying to get the Ethernet mac address of a computer that has no display by using a desktop start up file that calls ip. This is what I have to work with: A laptop Mini-computer with no display: MSI Cubi -231XTW 5th gen Intel® Core i7 i7-5500U Mini PC Two solid state drives with […]

Categories
Development System & Network

Better processor for single/dual threads workload

I am searching for a desktop/workstation machine for my research work. The typical workload is some simulators, which only involves one or two threads for computation. I am wondering whether Core i7-9700 in a desktop machine or a Xeon W-3225 in a server machine is a better choice for me. i7-9700 has a max turbo […]

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

nginx – proxy_pass on user_agent

I have a SPA site, where I need to load the appropriate <meta> tags for each subpage, but it is not that easy from the subpages themselves so I made a separate address where Facebook or Twitter bots can download the appropriate OpenGraph values. It looks like this: Original URL: http://website.com/contents/1 Route with OG tags […]

Categories
Development System & Network

for a 389 Directory Server, how can I verify I have the right Directory Manager password?

In FreeIPA, which includes 389 Directory Server, I’m trying to perform operations that require the Directory Manager’s password. When first configuring the FreeIPA server instance, I may have recorded the wrong password for the Directory Manager. Now, while I’m trying to get certificate authority replication to work, I’m asked for the directory manager password. FreeIPA […]

Categories
Development System & Network

AD FS Not Authenticating SAML Requests

This morning, it was brought to our attention that Active Directory Federation Services has stopped performing SAML authentications for all SAML-based relying party trusts (about 8 of them). Office 365 logins going through the same ADFS server (server 2012 R2) are not experiencing an issue. No updates, reboots, or configuration changes were performed over the […]

Categories
Development System & Network

Wireguard VPN: http server on peer doesn’t respond

I’m trying to set up a Wireguard VPN for accessing services running on my home server (behind router and ISP NAT) and some other computers. The peers are: Wireguard bounce server (A), a VPS. Another VPS (B) that has some services running bound to the wireguard interface. Laptop (C) on my home network. Laptop (D) […]