Category Archives: Uncategorized

Centos V7 network setting

In Centos V7 you may use the “nmtui” to get access to the graphical network setting and follow the step to set the network parameter.

In the first menu by selecting Edit a connection you will have the list of the ETH port available for configuration.

then by selecting on of the port you can set all the IP, Default Gateway, DNS for that port.

after set all the value you can save and get back to the previous menu.

after setting the port setting you need make sure that the port is active and ready for use by selecting the Activate a connection.

you can check and change the port state by moving on the port. if the port is at the active state then you will see the deactivate option on the right side and if the port is deactive at the moment you will have activate option.

last setting the Host name which you can modify your host name by selecting the last option in the main menu through Set system hostname.

after save all changes to apply the new setting you will need to reload the network by below command.

systemctl restart network

Wallboard for FreePBX

I have received some request for a simple dashboard or wallboard to show some information for the agent in queue. user was using FreePBX and they don’t want to go for advance available wallboard. So I have decide to check for a customize able solution. i have found some old code which was develop for extracting the Queue statistic and show on the web which was a good start point so I have used the available code as the start point and after customization develop the wallboard with the possibility to show all available queue or selected queue statistic as below: 

 

The benefit of this application is anyone can open the link and monitor the related queue to him/her department, easy to understand, full agent status and queue statistic show in single page, and it is very simple to setup and customize based on the requirement.

If anyone interest about the application please contact me.

Enable Centos root SSH access only by key

You need to generate the public and private key first which you will have different option for the generation. Most easy way is using the Putty key generator which help you to create and save the key and protect with passphrase easily. Then you will need to follow below steps to enable the SSH key access and disable the password login for your Centos based server.

Create the  .ssh folder if not exist on the server.
mkdir -p .ssh

Create or edit the current authorized_keys file to insert the key to this server for authentication process.
vi .ssh/authorized_keys

then need to give appropriate permssion to the folder and file as below.
chmod 700 .ssh
chmod 640 .ssh/authorized_keys

next step edite the SSHD configuration file by below command.
vi /etc/ssh/sshd_config

Then uncomment and change the lines to match the ones below. Make sure these lines are un-commented, meaning they don’t have the (#) at the start.

PubkeyAuthentication yes
AuthorizedKeyFile .ssh/authorized_keys
PasswordAuthentication no
ChallengeResponseAuthentication no

to apply the changes need to reload the SSHD service using below command.

service sshd reload

after this step you should be able to login to your server with SSH key only.