Edit /etc/rc.conf
Change
ifconfig_em0="DHCP"
to
ifconfig_em0="inet 192.168.56.105 netmask 255.255.25.0"
and add
defaultrouter="192.168.56.1"
edit /etc/resolve.conf as per Linux and then do;
service netif restart && service routing restart
[source]
Heisenberg - Digital Alchemist, Software Architect, Automation Specialist and Mechanical Engineer.
Edit /etc/rc.conf
Change
ifconfig_em0="DHCP"
to
ifconfig_em0="inet 192.168.56.105 netmask 255.255.25.0"
and add
defaultrouter="192.168.56.1"
edit /etc/resolve.conf as per Linux and then do;
service netif restart && service routing restart
[source]
UCX PING xxx.xxx.xxx.xxx
scp
To copy a file from one local machine to a remote machine using ssh, do the following;
scp /local/path/to/file username@ip_address:/path/to/remote/destination
or if we wish to get a file from a remote machine to the local machine, we can do;
scp username@ip_address:/path/to/remote/file /local/path/to/destination
TODO
[source]
To add a static route to windows, do the following;
route add destination mask gateway metric interface
route add 23.128.16.0 255.255.240.0 23.128.16.1 IF 13
Note, in the above we are ignoring the metric.
The interface number can be found from;
netsh interface ipv4 show interfaces
In the past I was sure it was not possible in MySQL to use DISTINCT on multiple columns, such as below;
SELECT DISTINCT a,b FROM my_table;
and have in the past, instead used something similar to the below as a workaround;
SELECT DISTINCT CONCAT (a,' ', b) FROM my_table;
However, it seems I am remiss and MySQL does indeed support DISTINCT on multiple columns.
I came across an issue where Windows network shares would not open using Thunar file manager in Slackware.
With a fair bit of digging around, I eventually downgraded samba from 4.15.13 to 4.15.5 which in my case was what was installed with Slackware 15.
This can be resolved in Tools>Options>LibreOffice>Accessibility and ensuring that Options For High Contrast Appearance is Disabled, as below;
In this example, we add the plugin to check MySQL replication status [source]
We can show mysql variables with the following;
SHOW VARIABLES WHERE variable_name = 'some_variable';
SHOW VARIABLES LIKE '%some_variable%';
Example, to show the number of days binary logs are retained for;
SHOW VARIABLES WHERE variable_name = 'expire_logs_days';