CyberKeeda In Social Media
Showing posts with label How to ?. Show all posts
Showing posts with label How to ?. Show all posts

How to create WiFi Hotspot on Ubuntu 18.04

You might be looking to turn your Ubuntu 18.04 Laptop into to WiFi Hotspot to share your Broadband Connection/Internet Connection across you for your other devices ( Mobile, Ipads, etc ).

So you are just a few clicks away to achieve it, believe me it's as easy as you do within your smartphone.


Click on the top right buttons and click on the WiFi option. in the dropdown select Wifi-settings.

Click on 'Turn On Wi-Fi ' option from the button.

Click on the extra options ( 3 dots ), now Click on 'Turn On Wi-Fi Hotspot'

The Hotspot is now active!!

you can find the password and details.

Now any of your devices can discover this Hotspot and connect to it with the given password.

Video Tutorial:

Read more ...

RUBY Installation on Centos with RVM

Install Required dependency mandatory Packages
Install all required packages for ruby installation 
# yum install gcc-c++ patch readline readline-devel zlib zlib-devel
# yum install libyaml-devel libffi-devel openssl-devel make
# yum install bzip2 autoconf automake libtool bison iconv-devel sqlite-devel
Install RVM
Install latest stable version of RVM
# curl -k | gpg --import -
# curl -L | bash -s stable
Setup rvm environment.
# source /etc/profile.d/
# rvm reload
Ensure RVM Dependencies
Now use following To verify all dependencies are properly installed.
# rvm requirements run

Checking requirements for centos.
Requirements installation successful.
Install Ruby 2.5.0
RVM is ready now, lets use it to install Ruby.
# rvm install 2.5.0
[Sample Output]
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/7/x86_64/ruby-2.5.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for centos.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.5.0, this may take a while depending on your cpu(s)...
ruby-2.5.0 - #downloading ruby-2.5.0, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.7M  100 12.7M    0     0  33.5M      0 --:--:-- --:--:-- --:--:-- 33.6M
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.5.0 - #extracting ruby-2.5.0 to /usr/local/rvm/src/ruby-2.5.0....
ruby-2.5.0 - #configuring...................................................
ruby-2.5.0 - #post-configuration..
ruby-2.5.0 - #compiling.....................................................
ruby-2.5.0 - #installing............................
ruby-2.5.0 - #making binaries executable..
ruby-2.5.0 - #downloading rubygems-2.4.8
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  437k  100  437k    0     0  2367k      0 --:--:-- --:--:-- --:--:-- 2376k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.5.0 - #extracting rubygems-2.4.8....
ruby-2.5.0 - #removing old rubygems.........
ruby-2.5.0 - #installing rubygems-2.4.8......................
ruby-2.5.0 - #gemset created /usr/local/rvm/gems/ruby-2.5.0@global
ruby-2.5.0 - #importing gemset /usr/local/rvm/gemsets/global.gems...............................................
ruby-2.5.0 - #generating global wrappers........
ruby-2.5.0 - #gemset created /usr/local/rvm/gems/ruby-2.5.0
ruby-2.5.0 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.5.0 - #generating default wrappers........
ruby-2.5.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.5.0 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
Set Current Installed Ruby to Default Ruby Version
Use rvm command to setup default ruby version.
# rvm use 2.5.0 --default

Using /usr/local/rvm/gems/ruby-2.5.0
Check Current Ruby Version.
Like other programmes you can also use -v or --version to check ruby version
# ruby --version

ruby 2.5.0p230 (2015-12-16 revision 53155) [x86_64-linux]
Read more ...

How to Install Ansible on CentOS 7

Need Automation on Linux : Ansible will become your best friend for sure.

Ansible is the simplest way to automate apps and IT infrastructure. Application Deployment + Configuration Management + Continuous Delivery.

So let's not discuss more jump into installation to have hands on it.

Redhat/Centos ships ANSIBLE on its default repository, so you don’t ned to woory about packages or it’s dependencies.

Just a single command will install ansible and your Automation cockpit is ready to fly.

cybeerkeeda@Linux-Maniac:~ yum install ansible

If you too found the same issue while installing ansible from one liner yum command.
cybeerkeeda@Linux-Maniac:~ yum install ansible 
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
No package ansible available.
Error: Nothing to do

Make sure first of all you are connected to internet, then simply install the epel repo first.

cybeerkeeda@Linux-Maniac:~ yum install epel-release
Then run the same earlier command  yum install ansible.
cybeerkeeda@Linux-Maniac:~ yum install ansible
Done ! All fine 

Now lets confirm it’s installation status by checking the installed ansible version.
cybeerkeeda@Linux-Maniac:~ ansible --version

  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

Do find the video for reference purpose too.

Read more ...

How to Install OCi8 extension within PHP and Apache

Necessity is the mother of Invention ( * googling ).

I get to know this how to install oci8 from various blogs and forums, hence consolidated all the points from different blogs and forums, so that you don't have to look for it.

Oracle extension has a dependency of Oracle Client Packages.

Download the oracle client packages from Oracle Offcl website

I have downloaded the below mentioned packages


Ignore the package conflicts between old and new, hence use U with rpm

# rpm -Uvh oracle-instantclient12.1-basic-
# rpm -Uvh  oracle-instantclient12.1-basic-

Same way, install the remaining packages too.

Once done, confirm the ORACLE_HOME as it will be required for oci8 installation


If it shows the old versions path as 10.1 or 9.01 path or any other, atleast for the installation we have to set the path temporarily to new location where Oracle client package exists

Set environment variable temporarily for Oracle clinet 12 version

# export ORACLE_HOME="/usr/lib/oracle/12.1/client64/"

Verify using command


It must show  /usr/lib/oracle/12.1/client64/

-* It might be even required to set the set the LD_LIBRARY_PATH

# export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib

*** Remember it is temporary environment variable not permanent, once user exits from the terminal it will show the permanent path

You can set the permanent path in bash environment files.

Installation of oci8 package from PECL.
Now Download the oci8 packages from Pecl official website

Remember, you must download the linux package with an extension of tgz else pecl will not recognize the package provided to it for installation.

Run the last command to install and enable oci8 extension.
# pecl install  oci8-2.0.5.tgz 

If the installation completed successfully, locate your php.ini and add the following line.

#locate php.ini

In my case, i found it within /usr/local/lib/php.ini, run the below command to add the above line

# echo "" >>  php.ini

That’s it !!! Enough

But for me, it was not even enough for the installation I got some additional errors as

checking Oracle ORACLE_HOME install directory... /usr/lib/oracle/12.1/client64/lib/
checking ORACLE_HOME library validity... configure: error: Expected an ORACLE_HOME top level directory but /usr/lib/oracle/12.1/client64/lib/ appears to be an Instant Client directory. Try --with-oci8=instantclient,/usr/lib/oracle/12.1/client64/lib/
ERROR: `/var/tmp/oci8/configure --with-oci8=/usr/lib/oracle/12.1/client64/lib/' failed

Here is the fix for it, again a temporary path for PECL

# echo "instantclient,/usr/lib/oracle/12.1/client64/lib" | pecl install oci8-2.0.5.tgz

Here I just passed , what it is asking for :)

Confirm the same, using phpinfo.php page you must get a category of oci8 extension like the below mentioned screenshot.

Read more ...
Designed By Jackuna