Tuesday, September 28, 2021

Ubuntu : Debian : update vs upgrade vs list –upgradable

https://linuxsecurity.com/features/how-to-install-security-updates-in-ubuntu-debian


The commands we shall cover pertaining to this topic are: 

  • apt update: This command only fetches the information on latest packages that can be upgraded. Note that it does not actually upgrade any packages on the system, only refreshes the index local to the system. This package information is obtained from standard official sources and then stored locally on the system. If ever you need to check from which sources the package information gets picked, you will see it in under /etc/apt/sources.list on the system.
  • apt list –upgradable: This command will then display the packages that have updates available and therefore can be upgraded on the system. This information is based on the information fetched previously from the update command
  • apt upgrade: This is the actual command that does the upgrade of the packages in the system. Once executed, the OS will be successfully upgraded. Note that this command can install new packages if the dependencies require it, but it will never remove packages.
  • apt full-upgrade: This command does a little more than what the upgrade command does. In addition to upgrading new packages and installing new packages as required, it also removes existing installed packages if it determines that the dependencies are no longer required. Use this option with caution as it can cause unexpected system behavior if your application is dependent on a specific version of the package.
  • apt autoremove: This command is used to remove unused packages which are no longer needed by the dependent packages. This can be executed after apt upgrade

Monday, September 27, 2021

Linux: SSHD Configure SSH Timeout on Server Side

https://www.tecmint.com/increase-ssh-connection-timeout/


/etc/ssh/sshd_config  

ClientAliveInterval  1200
ClientAliveCountMax 3









The timeout value is given by the product of the above parameters i.e.

Timeout value = ClientAliveInterval * ClientAliveCountMax

For example, let’s say you have defined your parameters as shown:

ClientAliveInterval  1200
ClientAliveCountMax 3

Friday, September 24, 2021

Linux: Disk Handling Tool: Linux Disk Commands

lsblk -i
lsblk -f
df -Th 
du -sh * |sort -h

mount  /dev/sda  /data    [Manual]

mkfs.xfs /dev/sda
mkfs.ext4 /dev/sdb

edit FSTAB
/dev/sda /data ext4 defaults,nofail 0 0

mount -a

umount /dev/dsx
--------------------------------------------
DONT' UMount if its root disk
sudo parted /dev/sda
print
resizepart
resize2fs /dev/sda1
-------------------------------------------

Azure:Disk Resize Disk Size - Azure



----------------------------------------------------------------------------------------------------------------------------------

Create a Snapshot
Make a Disk out of Snapshot (Preferably Premium)
Execute These Steps after RESIZE on azure.portal 
[Stop Vm, Resize, Stop VM, Execute Below Steps]

DONT' UMount if its root disk
sudo parted /dev/sda
print
resizepart
resize2fs /dev/sda1

----------------------------------------------------------------------------------------------------------------------------------

lsblk -i
lsblk -f
df -Th 
du -sh * |sort -h

Thursday, September 23, 2021

Architecture Comparisons : HTTP vs Event vs Messgae Broker


https://github.com/sonusathyadas/EventGrid-Samples
https://docs.microsoft.com/en-us/rest/api/servicebus/peek-lock-message-non-destructive-read

AZURE -204 (24 Sept 2021) - DAY5

EVENT HUB  = KAFKA

EventHub Client -C# 
----------------------------------------------

Service Bus

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass