RAS Infosystems. Powered by Blogger.

Thursday, 28 April 2016

Network Bridging CentOS 7 In DHCP Mode










For live example please visit our Youtube channel  https://youtu.be/hjk8Uy7vb3s 
Below steps will help you to bridge CentOS 7 network in DHCP mode,
Any doubts and suggestion feel free to comment,
Step 1. Check which interface you want to bridge using "ifconfig"
In this example interface name is "enp0s3" in dhcp mode
Step 2. Install bridge-utils package using cmd "yum install bridge-utils"
After installation restart network service using cmd "systemctl restart network.service"
Step 3. Create backup directory (here directory created in /) using 
"mkdir /backup"
step 3. This step is optional but i have always recommend to do that because anything goes wrong you got disconnected from network so better to take backup and edit
Step 4. Copy interface config to backup directory using cmd 
"cp /etc/sysconfig/network-scripts/ifcfg-enp0s3 /backup"
Step 5. Change directory to /backup using cmd 
"cd /backup"
Step 6. Copy ifcfg-enp0s3 to ifcfg-br0 using cmd 
"cp ifcfg-enp0s3 ifcfg-br0"
Step 7. Edit ifcfg-br0 using cmd 
"vi ifcfg-br0"
Step 8. Make changes as mention below
TYPE=Bridge
NAME=br0
DEVICE=br0
Comment (#) UUID HWADDR
Note : Different interface having different settings but by default you have to disable HWADDR and UUID.
Step 9. copy ifcfg-br0 to /etc/sysconfig/network-scripts/ using cmd 
"cp ifcfg-br0 /etc/sysconfig/network-scripts/"
Step 10. Edit ifcfg-enp0s3 inside /etc/sysconfig/network-scripts/ 
"vi /etc/sysconfig/network-scripts/ifcfg-enp0s3".
Step 11. Make changes as below BRIDGE=br0 (add this line) Comment (#) lines as per video
NOTE :- Different interface having different settings but by default you have to disable ipaddr, subnet, gateway and add line "BRIDGE=br0 (where br0 is your bridge interface)
Step 12. After saving configuration restart network service using cmd "systemctl restart network.service"
Step 11. Check ifconfig you can see bridge interface "br0" with ip address.




Tuesday, 23 February 2016

Reset windows administrator password








For live example please visit our youtube channel  https://youtu.be/rwvMsI7Dces
Step 1 - Boot the server with Windows installation CD
Step 2 - Click on "Repair my computer"
Step 3 -  Click on "Troubleshoot"
Step 4 - Command prompt will open go to "D drive"
Step 5 - change directory using "cd windowssystem32"
              Rename utilman file using command
             "ren utilman.exe utilman.exe.old"
Step 6 - Copy cmd.exe to utilman.exe using command
             "copy cmd.exe utilman.exe"
Step 7 - Close the command prompt and click continue to reboot server
             Note - boot windows from harddisk
Step 8 - Press Windowskey + u when you get login window will open cmd
Step 9 - Enter the command "net user Administrator Password@123456"              where Administrator is your username and "Password@123456"              is the new password
Step 10 - Now you can login with your new password after successful                     login revert utilman.exe file by reboot server using windows                     installation CD
Step 11 - Repeat step 1,2,3 & 4
Step 12 - Rename utilman.exe using command 
              "ren utilman.exe utilman.exe.old1"
Step 13 - Rename utilman.exe.old using command 
              "ren utilman.exe.old utilman.exe"
Step 14 - Close command prompt and reboot server using harddisk
After completing all above steps your are successfully reset windows login password.

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