Following announcement of ProFTPD version 1.3.5b CentAlt rpm has been updated.
Following announcement of ProFTPD version 1.3.5b CentAlt rpm has been updated.
Often when running commands in Linux terminal I had to multitask and switch to another terminal.
That is good, but how to get notification that first task is completed?
We all get bell notification from the terminal.
So why not use it?
In Linux there is a tool called beep, but it is not by default in many distributions.
For the simple notification I found not as elegant, but simple solution.
If you send ASCII BEL (\007) to terminal it will beep.
So to “create” bell command just add to .bashrc
alias bell="echo -ne '\007'"
and reload it
Then you can use bell command to produce bell sound.
find / -name test.txt&&bell
Linux screen command is great tool if you need long running command to execute even you are closing the session.
In case you want to see scrollback above your current screen standard tools on your terminal do not apply.
Instead you can use copy function of screen.
To do so:
Press “ctl+a” then “ESC” key.
After that you are able to navigate using arrow keys.
Recently I’ve completed the upgrade of my desktop from Windows 7 to Windows 10.
In general process was without major problems if we exclude extremely long wait and need to reboot the computer once more to make it work properly.
Today I’ve decided to start XAMPP to test few scripts.
Unfortunately I was greeted with following message:
8:58:37 PM [Apache] Problem detected! 8:58:37 PM [Apache] Port 80 in use by "Unable to open process" with PID 4! 8:58:37 PM [Apache] Apache WILL NOT start without the configured ports free! 8:58:37 PM [Apache] You need to uninstall/disable/reconfigure the blocking application 8:58:37 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
Quick check showed that indeed port 80 is used.
PID 4 is usually associated with services.
Looking at services and browsing down showed that Word Wide Web Publishing Service is started by default with windows 10 upgrade.
After stopping Word Wide Web Publishing Service I was able to start Apache on port 80.
9:03:36 PM [Apache] Attempting to start Apache app... 9:03:36 PM [Apache] Status change detected: running
Today I was surprised by seeing new icon in my taksbar:
With caption: Get Windows 10
After opening it I was presented with following wizard:
Unfortunately for now it is just to reserve the copy.
Microsoft via windows.com states following:
“Get a free upgrade to Windows 10 when it’s available starting July 29, 2015. Limited time offer!*”
And this is the * Text
*Windows Offer Details
Yes, free! This upgrade offer is for a full version of Windows 10, not a trial. 3GB download required; standard data rates apply. To take advantage of this free offer, you must upgrade to Windows 10 within one year of availability. Once you upgrade, you have Windows 10 for free on that device.
Our lawyers made us say this:
Windows 10 Upgrade Offer is valid for qualified Windows 7 and Windows 8.1 devices, including devices you already own. Some hardware/software requirements apply and feature availability may vary by device and market. The availability of Windows 10 upgrade for Windows Phone 8.1 devices may vary by OEM, mobile operator or carrier. Devices must be connected to the internet and have Windows Update enabled. Windows 7 SP1 and Windows 8.1 Update required. Some editions are excluded: Windows 7 Enterprise, Windows 8/8.1 Enterprise, and Windows RT/RT 8.1. Active Software Assurance customers in volume licensing have the benefit to upgrade to Windows 10 enterprise offerings outside of this offer. To check for compatibility and other important installation information, visit your device manufacturer’s website and the Windows 10 Specifications page. Additional requirements may apply over time for updates. Security and features are kept automatically up-to-date which is always enabled.
Following announcement of ProFTPD version 1.3.5a CentAlt rpm has been updated.
After upgrading Postgres to version 9.4 in VM using container service failed to start with following message:
/etc/init.d/postgresql start [....] Starting PostgreSQL 9.4 database server: main[....] The PostgreSQL server failed to start. ... FATAL: could not open shared memory segment "/PostgreSQL.1804289383": Permission denied ... failed!
Quick search pointed to lack of shared memory, but I had more than enough.
It turned that fix is to change dynamic_shared_memory_type from posix to none.
vi /etc/postgresql/9.4/main/postgresql.conf ... dynamic_shared_memory_type = none ...
and I was able to start
/etc/init.d/postgresql start [ ok ] Starting PostgreSQL 9.4 database server: main.
If you installed CentOS 7 minimal you might see following error message when you try to use ifconfig to see your ip address:
[root@localhost ~]# ifconfig -bash: ifconfig: command not found
If you search for the package it is in net-tools package
[root@localhost ~]# yum search ifconfig Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.iweb.ca * extras: mirror.csclub.uwaterloo.ca * updates: mirror.csclub.uwaterloo.ca =================================================================== Matched: ifconfig ==================================================================== net-tools.x86_64 : Basic networking tools
In case you do not want to install additional package and simply to see your ip address you can use ip addr command
[root@localhost ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 08:00:27:eb:6b:89 brd ff:ff:ff:ff:ff:ff inet 10.0.0.15/24 brd 10.0.0.255 scope global dynamic enp0s3 valid_lft 85578sec preferred_lft 85578sec inet6 fe80::a00:27ff:feeb:6b89/64 scope link valid_lft forever preferred_lft forever
To install ifconfig
[root@localhost ~]# yum install net-tools Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.iweb.ca * extras: mirror.csclub.uwaterloo.ca * updates: mirror.csclub.uwaterloo.ca Resolving Dependencies --> Running transaction check ---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================== Package Arch Version Repository Size ========================================================================================================================================================== Installing: net-tools x86_64 2.0-0.17.20131004git.el7 base 304 k Transaction Summary ========================================================================================================================================================== Install 1 Package Total download size: 304 k Installed size: 917 k Is this ok [y/d/N]: y Downloading packages: net-tools-2.0-0.17.20131004git.el7.x86_64.rpm | 304 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : net-tools-2.0-0.17.20131004git.el7.x86_64 1/1 Verifying : net-tools-2.0-0.17.20131004git.el7.x86_64 1/1 Installed: net-tools.x86_64 0:2.0-0.17.20131004git.el7 Complete!
and then you can use it
[root@localhost ~]# ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.0.15 netmask 255.255.255.0 broadcast 10.0.2.255 inet6 fe80::a00:27ff:feeb:6b89 prefixlen 64 scopeid 0x20<link> ether 08:00:27:eb:6b:89 txqueuelen 1000 (Ethernet) RX packets 11316 bytes 14098176 (13.4 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3224 bytes 264337 (258.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
phpMyAdmin is a tool written in php intended to handle administration of MySQL servers over the web interface.
When trying to import large SQL dumps you might see following message:
Maximum execution time of 300 seconds exceeded
If you are running on local host or host you manage the solution is to edit \phpmyadmin\libraries\config.default.php file and change
$cfg['ExecTimeLimit'] = 300;
$cfg['ExecTimeLimit'] = 0;
This will allow you to remove the limit.
In case you do not have access to configuration file (and your provider does not want to apply this change even if you ask nicely) only solution is to split one large file to several smaller files using text editor and add them one by one.
Note: The size of the file varies from host to host and should be determined by the method of trial and errors.
Recently I’ve upgraded ZFS on Linux to 0.6.3 on my CentOS 7 server.
After reboot my pool was not available and I was only capable to force the import.
In the logs I had:
Oct 24 10:26:33 hs kernel: SPL: using hostid 0x00000000 Oct 24 10:26:34 hs zpool: cannot import 'tank': pool may be in use from other system Oct 24 10:26:34 hs zpool: use '-f' to import anyway Oct 24 10:26:34 hs systemd: zfs-import-cache.service: main process exited, code=exited, status=1/FAILURE Oct 24 10:26:34 hs systemd: Failed to start Import ZFS pools by cache file. Oct 24 10:26:34 hs systemd: Unit zfs-import-cache.service entered failed state.
After quick search on the Internet I found that I’m not alone.
Original thread is here: https://github.com/zfsonlinux/zfs/issues/2575.
The fix for me was to create hostid:
dd if=/dev/urandom of=/etc/hostid bs=4 count=1