The trimforce utility allows you to activate TRIM on third-party devices connected to the AHCI controller; by default, TRIM commands are not sent to third-party storage devices. The trimforce utility has appeared since OS X 10.10.4.
On original devices, TRIM is used by default and no commands need to be entered.
Phabricator. How to allow users to create repositories
By default, only administrators can create repositories in Phabricator.
Continue reading “Phabricator. How to allow users to create repositories”ABillS. SNMP Port Shift
I noticed once that on Huawei switches SNMP port indices can be shifted, for example, on Huawei s2326 VLANs are considered first, for example ifIndex.1 is vlan1, ifIndex.2, ifIndex.3, ifIndex.4 are user VLANs, and then ifIndex5 is the port Ethernet1. Because of this, when binding client services to switch ports in ABillS, the ports will not be displayed correctly.
Continue reading “ABillS. SNMP Port Shift”Process monitoring through strace
I will give an example of running the strace utility, which allows you to track what a process or command is doing at a given moment.
Continue reading “Process monitoring through strace”Installing Logkeys on Linux
Logkeys – a utility that records keystrokes in a file.
Continue reading “Installing Logkeys on Linux”TrinityCore Launch Script for Linux
Here is an example of a primitive TrinityCore restart script for Linux:
Continue reading “TrinityCore Launch Script for Linux”Blocking DHCP packets on D-Link DES-38xx
Nothing complicated, just create an ACL rule, due to which on certain ports the switch will drop or pass packets that go to client port 67 from a DHCP server and thus it will not receive IP from unnecessary DHCP servers.
Continue reading “Blocking DHCP packets on D-Link DES-38xx”How to disable guest access in Ubuntu
Open the configuration file for the LightDM display manager in a text editor, which is used by default for Ubuntu and Xubuntu distributions:
Continue reading “How to disable guest access in Ubuntu”Shutting down the Linux server with the Power button
There were cases when it was urgent to turn off some Linux Ubuntu servers using the Power button, but when it was pressed, nothing happened. And to go over SSH and enter the poweroff or shutdown commands, the option is not optimal. So the solution to this inconvenience is to install ACPID (Power Management Services):
Continue reading “Shutting down the Linux server with the Power button”How to write CRON logs to a separate file
By default, cron logs are written to the /var/log/syslog file, and the result of the tasks is sent to an email to the user on whose behalf the task is executed, for example, when I executed the script, an entry was added to /var/log/syslog:
Continue reading “How to write CRON logs to a separate file”