Linux Rotate Log Files
January 20th, 2024 7:28 PM Mr. Q Categories: Linux
Rotating log files is a common task, and Linux systems often use log rotation tools such as logrotate for this purpose. Here’s a simple example: 1) Create a Configuration File for Logrotate: Create a configuration file, for example, /etc/logrotate.d/myapp Replace /path/to/your/log/file.log with the path to your log file. 2) Run […] Read more »
Raspberry Pi desktop – Set time format
January 20th, 2024 7:01 PM Mr. Q Categories: Rasberry PI
To set the time format on the Raspberry Pi desktop, you can use the raspi-config tool or manually configure the time settings. Here are instructions for both methods: Using raspi-config: 1) Open a terminal on your Raspberry Pi. 2) Run the following command to open the raspi-config tool: 3) Navigate […] Read more »
Raspberry Pi 5 – Boot from NVMe M.2 SSD
January 19th, 2024 11:34 AM Mr. Q Categories: Rasberry PI
Set time format Update PI Update Pi packages If failure Update Pi firmware Verify M.2 is visible Seup Geekworm X1001 Avoid: Phison controller config.txt Update boot config Testing Read more »
Docker container IP address
May 13th, 2023 2:15 PM Mr. Q Categories: Docker
To be able to view the container informaion, you must be root. To see the IP addresses of all Docker containers running on your Linux system, you can use the following command: The output of the command will be a list of IP addresses, one per line, corresponding to each […] Read more »
Set Synogoly default interface
April 24th, 2023 1:09 PM Mr. Q Categories: Synology
It is possible to change the default Ethernet interface on a Synology DSM (DiskStation Manager) system. Here are the steps to change the default Ethernet interface: Note that changing the default Ethernet interface may affect the network settings and connectivity of your Synology NAS, so be sure to review your […] Read more »
Restart Linux from the command line.
April 24th, 2023 8:35 AM Mr. Q Categories: Linux
You can restart Linux from the command line using the “reboot” command. Here’s how to do it: This will initiate a system restart. Note that this will immediately restart your Linux system without any confirmation prompts, so make sure to save any unsaved work before running the “reboot” command. You […] Read more »
Check what is using a port on linux
April 24th, 2023 8:24 AM Mr. Q Categories: Linux
Assume we are looking for port 443. Use the “netstat” command on Linux to see which processes are using port 443. Here’s how to do it: This will show a list of all active network connections and the corresponding processes that are using them. Replace “<PID>” with the actual PID […] Read more »