Mirror service status 20161012

mirror.sysadminguide.net is offline. online

My test server that hosted the web site has issues and recovery is undergoing.

Status updates could be find on this post.

Update: Mirror service is up

Posted in Announcement Tagged with: ,

UBCD 3.5.6 is released

UBCD V5.3.6 is now available for download. A few apps have been updated to their latest versions. Also, the F-Prot database paths have changed and the corresponding changes have been made to the fprot.sh script.

Important: If you have downloaded the iso before Sep 30 17:00 UTC, please check your checksum. It should be: [md5sum: 34694f7981908b396149af6b535704b2] (Thank you, Eric for the notification)

Posted in Announcement Tagged with:

ProFTPD updated to version 1.3.5b

Following announcement of ProFTPD version 1.3.5b CentAlt rpm has been updated.

Posted in Linux Tagged with: , ,

How to add simple bell command to bash

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

source ~/.bashrc

Then you can use bell command to produce bell sound.
For example:

find / -name test.txt&&bell
Posted in Linux Tagged with: , , ,

Linux screen command – scroll inside screen

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.

Source: https://www.gnu.org/software/screen/manual/

Posted in Linux Tagged with: , ,

Windows 10 XAMPP cannot start httpd on port 80

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.

netstat

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.

Word Wide Web Publishing Service

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
Posted in Windows Tagged with: , ,

Windows 10 upgrade is coming

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.

Posted in Windows Tagged with:

ProFTPD updated to version 1.3.5a

Following announcement of ProFTPD version 1.3.5a CentAlt rpm has been updated.

Posted in Linux Tagged with: , ,

Postgres 9.4 failed to start in container – How to Fix

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.

Source: http://www.postgresql.org/message-id/CAOtHd0DPtxDT-cwYGYr1DtdL6nc7NCmc8RT+6xujOGf3wHwg7w@mail.gmail.com

Posted in Debian, Linux Tagged with: ,

Centos 7 how to fix -bash: ifconfig: command not found

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
Posted in Linux Tagged with: , , ,