Tech Junkie Blog

Latest Posts

Monday, October 8, 2018

In our previous post we type in the yum command yum update to update the entire CentOS server.  But the most common operation that you will perform with yum that you will perform is to install, update, and remove an individual package.

In this post we will install, update and remove the php package.

Here are the steps to install, update, and remove php

1. Open a terminal session
2. Type yum install php, type y when asked for a confirmation





















3.  Now we want to update the php package that we just installed with the command yum update php






















Obviously we have nothing to update because we just install the package, but its the same process if there is an update.  You type y for any confirmation

4.  Now we want to remove the php package with the command yum remove php, type y on the confiromation

Monday, October 1, 2018

One of the more useful things are about yum is that it comes with a group install feature.  This basically lets you install groups of packages with one command.  These includes, administration tools, storage, databases, virtualization, and etc.

To get the list installed and available groups type in the command yum grouplist


Tuesday, September 25, 2018

If you have been following along with the ASP.NET MVC tutorials you would have noticed that the URLs have a port next to them.  In this post we are going to get rid of that annoying port have a just the URL as localhost/{mycustomroute}






















Monday, September 24, 2018

Yum is a update manager used by CentOS and other RPM-based Linux distributions.  It not only updates and install software from the defined repositories, it also takes cares of the dependencies.

One of the most common task that you will do is to keep your server up to date.  With yum it is quite easy because CentOS comes with many official repositories that enabled by default.  That means for the most part running software updates will not break your existing server.

Here are the steps to update your CentOS server.

1. To update your server, log into your CentOS instance and start a terminal session
2. Switch to super user privilege with the command sudo su









Monday, September 17, 2018

In the previous post we created a Admin Area, however we had to type in localhost/Admin/Home/Index to get to the Admin index page.  In this post we are going to make the Index page more user friendly.

To do that first let's assign the namespace to a local variable so that we can use it in multiple routes.

Open the "AdminAreaRegistration.cs" file in the /Areas/Admin folder and change the RegisterArea method to the following:


        public override void RegisterArea(AreaRegistrationContext context) 
        {
            var namespaces = new string[] { typeof(NorthwindCafe.Areas.Admin.Controllers.HomeController).Namespace };

            context.MapRoute(
                "Admin_default",
                "Admin/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional },
                namespaces 
            );
        }


Monday, August 27, 2018

Love it or hate it the Eclipse IDE is a comprehensive development tool that rivals or surpasses Microsoft's Visual Studio.  If you are working outside of the .NET stack Eclipse will probably have plug-in for your development platform. I myself find the UI a little bit overwhelming.  But for the price it's a pretty good value, which is free!

Here are the steps to install the Eclipse IDE on your Fedora instance:

1.  Log into your Fedora instance, and open a terminal session
2.  Type sudo su to switch to super user priviledges
3.  Now type sudo dnf install eclipse to install Eclipse