Linux server laptop lid behavior
Edit the /etc/systemd/logind.conf file and modify the line: Apply changes:
Linux server laptop lid behavior Read More »
Edit the /etc/systemd/logind.conf file and modify the line: Apply changes:
Linux server laptop lid behavior Read More »
List disks and its partitions Use dd to check speed
Test HDD / SSD speed Read More »
Get CPU info Get CPU (and others) temperature Get Motherboard info Get SATA info Get AHCI info Get HDD detailed information Nvidia card info AMD Card info
Linux check hardware info Read More »
Install Samba and cifs-utils Add disk to Samba configuration Add: Restart Samba Create Samba credentials (smbcredentials) Add: Set permissions for smbcredentials Set Samba password for user Get host device IP address Add disk into another devices Add: Check mount
Install Samba and mount network disk Read More »
Inspect connected disks Output might looks like this: Execute fdisk to create new partition table Create new partition (considering disk has no partitions, otherwise, we should delete all of them first) Check partitions Format partition Check partition Create mount folder in host device Mount partition Check mount Get disk UUID Mount hard disk at boot
Format and mount disk in Linux Read More »
Update nodes Sometimes, we just need to run this command to reconnect a node Remove nodes Re-Add nodes Add nodeName labels Add nodeProjects labels Add performaceNode labels Add heavyWorkerNodes labels Check pods on new nodes Re-deploy liveness probe pods Aliases
Edit the microk8s template file. Add the new IP Address, make sure to use a higher number for the IP address. It should look like this. Refresh certificate Check new IP was added Reboot the PC, just to make sure everything is OK You may need to re-join all nodes since we created a new
Add public IP to Microk8s Read More »
Checking the Current Time Zone List time zones Set time zone For example
How to Set or Change the Time Zone in Linux Read More »
First create an executable script (my-script.sh): Add the following code: Edit rc.local file: Add new line to execute the script: If the script includes a loop or it is meant to be executed indefinitely, we might need to add and ampersand at the end of the line: Finally, grant executable privileges to /etc/rc.local file and
Raspberry PI, run script / program on startup Read More »
To enable and use ethernet over USB in Linux, we need to enable it first. First of all we need to know the logical name of the USB device: Output might look like this: We need to check and look to the correct USB Ethernet interface and write down the logical name, in this case:
Enable USB Ethernet device in Linux Read More »