How extract 7zip file on Linux

This evening I need to extract a file with .7z extension. Guess what? I don’t know how to do that. I probably don’t even have 7zip program installed on my Fedora machine. Here’s something to remind myself how to get it working. First let’s find out what package we need to install: [root@watamem ~]# dnf search 7zip Last metadata expiration check: 3:14:50 ago on Thu Oct 20 20:39:30 2016. ================ N/S Matched: 7zip ================== p7zip-plugins.x86_64 : Additional plugins for p7zip p7zip.x86_64 : Very high compression ratio file archiver p7zip-gui.x86_64 : 7zG - 7-Zip GUI version So, it seems we need to install p7zip. ...

October 20, 2016 · 2 min · 218 words · kenno

Labeling an XFS Partition

Let’s say I have a partition as /dev/sdc1 formatted using XFS file system, and I want to give a label to it as externo. Here is one way to do it: # xfs_admin -L externo /dev/sdc1 writing all SBs new label = "externo" To read the label: # xfs_admin -l /dev/sdc1 label = "externo" Reference: HowTo Rename a XFS-Filesystem (label it)

September 29, 2016 · 1 min · 61 words · kenno

FreeBSD upgrade pool zroot

Today I successfully upgraded my FreeBSD home nas server from 10.3 to 11.0. This is the final release of version 11.0, though the official announcement is expected to be made on September 28. After the system upgrade, I need to also upgrade the 2 zpools (tank and zroot) so they can have new features. Upgrading tank was easy, all I needed to do was running this command: # zpool upgrade tank This system supports ZFS pool feature flags. Enabled the following features on 'tank': sha512 skein For zroot, in addition to running the above command (by replacing the actually zpool name to zroot), I also need to update the boot code. ...

September 27, 2016 · 2 min · 288 words · kenno

Perl IO::Socket::INET6::sockaddr_in6 redefined error

Yesterday I installed spamassassin package on a server running RHEL 6.8. Then this morning, I received an email alert with the following message: Subroutine IO::Socket::INET6::sockaddr_in6 redefined at /usr/share/perl5/Exporter.pm line 67. at /usr/share/perl5/IO/Socket/INET6.pm line 21. Subroutine IO::Socket::INET6::sockaddr_in6 redefined at /usr/share/perl5/Exporter.pm line 67. at /usr/share/perl5/IO/Socket/INET6.pm line 21. Subroutine IO::Socket::INET6::sockaddr_in6 redefined at /usr/share/perl5/Exporter.pm line 67. at /usr/share/perl5/IO/Socket/INET6.pm line 21. Subroutine IO::Socket::INET6::sockaddr_in6 redefined at /usr/share/perl5/Exporter.pm line 67. at /usr/share/perl5/IO/Socket/INET6.pm line 21. This seems to be a bug exists in an old version of IO::Socket::INET6. Upgrading this package should fix the problem: ...

September 14, 2016 · 1 min · 92 words · kenno

Warning: Use of "localtime" without parentheses is ambiguous

While looking at the log produced by Request Tracker (RT) 4.2.12, I noticed there was a warning message about using “localtime” without parentheses. Here’s the actual error message: [warning]: Warning: Use of "localtime" without parentheses is ambiguous at /opt/rt4/sbin/../lib/RT/Interface/Email.pm line 526. The solution which I found from here, fixed the problem: On line 526 of file /opt/rt4/sbin/../lib/RT/Interface/Email.pm, replace: localtime with localtime(). Thanks to the chap who posted the solution.

September 14, 2016 · 1 min · 69 words · kenno