RAS Infosystems. Powered by Blogger.

Thursday, 24 September 2015

How to reset root password in centos7



   




Check above video for live example (https://youtu.be/l3gT9UWrO0U)

For Live example please visit our YouTube channel - https://youtu.be/l3gT9UWrO0U
Creating strong password for Linux is much challenging these days. Most of the strong passwords are the combination of symbols, numbers, capital letter etc. More stronger the password more tough to remember. So if you forgot/lost root password of your production server what to do, don't worry these article will help you to reset password without old one. Go through the below steps to reset the password,
Note - Below step are tested with Cent Os 7 in virtual environment.
STEP 1 - Reboot the server and press "e" at the time of kernel selection.
STEP 2 - Press down arrow and find the line with "ro" and change the "ro"               with "rw init=/sysroot/bin/sh" and press "CTRL+x"
STEP 3 - Server going to single user mode bash shell, type                                     "chroot/sysroot" press enter
STEP 4 - Now we can reset the root password, type command 
              "passwd root" and enter your new password 
             (Always create strong passwords).
STEP 5 - Next we need to update SELinux using command                                    "touch /.autorelabel"
STEP 6 - Type "exit" to quit from shell and type "reboot" to reboot the                     server.
Now you successfully reset the root password, you can login with new credentials.

Tuesday, 15 September 2015

MySQL Server Installation On Centos7






For live example please visit our youtube channel  https://youtu.be/Kneb93gSoRg
MySQL server is most popular database management system widely used with opensource applications. In this article we discuss about MySQL server installation in Linux (CentOS7).
Note - All commands are tested with Centos7 platform.
Step 1 - wget installation. You can use command wget to download from               command line.
            "yum install wget"
Step 2 - Download mysql-server repository using below command
Step 3 - Install mysql repository
             rpm -ivh mysql-community-release-el7-5.noarch.rpm 
Step 4 - Mysql-Server installation
             yum install mysql-server 
Step 5 - After successful installation start / stop / restart / status service using,
            systemctl start mysqld
            systemctl stop mysqld
            systemctl restart mysqld
            systemctl status mysqld 
Step 6 - Configure Mysql server security using 
             mysql_secure_installation
             Using above command you can set mysql root password and basic security settings.
 So you successfully install MySQL server on CentOS7.


 Any doubts feel free to post commands.

Discourse Installation In Centos 7 With Docker







For video tutorial watch the above You Tube video
https://youtu.be/OvUBAqAHd6Q

Discourse is an opensource software for discussion(forum) platform for more details visit www.discourse.org. Below step help you to install discourse in Centos 7 with Docker container, 
(Insert commands without hash)

Step 1. Before start installation update Centos
           "yum update -y"
Step 2. Install wget & git
           "yum install -y wget git"
Step 3. Enable EPEL repository so you can install some extra packages:
            "cd /tmp"
"wget http://dl.fedoraproject.org/pub/e/epel/7/x86_64/epel-release-5-7.noarch.rpm"
           "sudo rpm -Uvh epel-release-5*.rpm"
Step 4. Install Docker
            "sudo yum -y install docker-io"
Step 5. Start Docker as service
            "sudo service docker start"
Step 6. Configure Docker to start on startup
            "sudo chkconfig docker on"
Step 7. Install Discourse
            "mkdir /var/discourse"
            "git clone https://github.com/discourse/discourse_docker.git                   /var/discourse"
Step 8. Change directory
            "cd /var/docker"
            "cp samples/standalone.yml containers/app.yml"
Step 9. Edit app.yml
Add you smtp detail (use correct email details this required for activation)
Step 10. Discourse installation command
              "cd /var/discourse"
              "./launcher bootstrap app"
Step 11. Start Discourse
              "var /docker/launcher start app"
Step 12. Open browser and enter you server ip it will show discourse page
Signup for activating admin acount (Use the same email that you enter in app.yml)

After successful signup you got activation email.

Note : When ever you made a change in "app.yml" you should run
          "./launcher rebuild app"

You have successfully installed Discourse any doubts feel free to post on comment.

Sponsers