Monday, November 16, 2020
Tuesday, November 19, 2019
Move or relocate /var to another partition in CentOS 6.8
A few steps to easily move or relocate /var in CentOS 6.8:
Start by sudo bash.
- Mount the future /var with a different name, like /newvar.
Tip: Setup fstab to use /newvar and use "mount -a" will also help you checking if fstab is fine.
- Copy current /var to new location with rsync:
rsync -aqxP /var/* /newvar
- fix the security contents with
restorecon -r -v /newvar
- adapt fstab to mount the new /var (if you had setup fstab to /newvar now is the time to set it to /var)
- reboot
Start by sudo bash.
- Mount the future /var with a different name, like /newvar.
Tip: Setup fstab to use /newvar and use "mount -a" will also help you checking if fstab is fine.
- Copy current /var to new location with rsync:
rsync -aqxP /var/* /newvar
- fix the security contents with
restorecon -r -v /newvar
- adapt fstab to mount the new /var (if you had setup fstab to /newvar now is the time to set it to /var)
- reboot
Tuesday, February 19, 2019
Use [by default] TLS 1.2 on PowerShell
As simple as this:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Saturday, July 14, 2018
TP-Link MR3420 and Vodafone Modem K5160
TP-Link MR3420 v2 refused to work with my new K5160.
The firmware from TP-Link didn't help so I give a try on "Of Modems and Men" firmware [ROOter].
It's quite simple to install the firmware (but be aware that rollback is not so simple).
ROOter firmware identified the modem correctly but still no connection to the internet. It seems that the hostless modem is still working as MBIM.
The trick is to ssh to the modem, rename /sbin/umbim to something else and reboot the router.
The firmware from TP-Link didn't help so I give a try on "Of Modems and Men" firmware [ROOter].
It's quite simple to install the firmware (but be aware that rollback is not so simple).
ROOter firmware identified the modem correctly but still no connection to the internet. It seems that the hostless modem is still working as MBIM.
The trick is to ssh to the modem, rename /sbin/umbim to something else and reboot the router.
Thursday, May 10, 2018
Get size of each table on MS SQL Server database
Simple query to get the size of each table on Microsoft SQL Server database.
Monday, June 26, 2017
IE11 on Windows Server 2008
Some notes:
- Download from MS is the same as windows 7;
- This can safe you same time: ie11 install error
Please notice when you cut & paste " from a website to the command line prompt sometimes it does not work. Just clear the quotes and add them again.
- Download from MS is the same as windows 7;
- This can safe you same time: ie11 install error
Please notice when you cut & paste " from a website to the command line prompt sometimes it does not work. Just clear the quotes and add them again.
Friday, February 24, 2017
Reseting a SMC 8612T Tiger switch
What if you lost the password of an old SMC 8612T Tiger ?
The manual says that you should connect via console and use Ctrl U when it starts but this procedure will lead you to a password prompt. The password that you don't know.
Instead, use Ctrl F. As simple as that. SMC, please fix your manuals.
The manual says that you should connect via console and use Ctrl U when it starts but this procedure will lead you to a password prompt. The password that you don't know.
Instead, use Ctrl F. As simple as that. SMC, please fix your manuals.
Subscribe to:
Posts (Atom)