Category Archives: centos

Problem connecting to KVM with Virt-Manager

Recently I have had some issues with connecting from my laptop running Linux OS (Fedora 30, Xubuntu 19.04) from virt-manager to server running KVM. Virt-Manager keeps asking me for root password, which was very annoying.

The solution was simple – first I had to create ssh keys which then I needed to send to my CentOS(7) server running KVM

After that I was able to use Virt-Manager without any asking for password.

How-to install cockpit on CentOS 7

Here is a quick install guide how I setup Cockpit on my CentOS 7 servers:

  1. First update CentOS 7 server
  2. Install cockpit
  3. Change firewall settings
  4. Access CentOS 7 server via Cockpit webpage

And that’s all 😉

How to install MS SQL Server 2017 on CentOS 7

There are many instructions and how-to’s regarding installing MS SQL Server 2017 on CentOS 7 but here are my notes about it:

  1. You should plan how to setup your CentOS 7 system because by default MS SQL Server hold his files in those directories:
    1. SQL Server 2017 file location after install
    2. database and others
    3. Of course this directories can be changed after install, but does anyone change directories for MySQL/PostgreSQL ?
  2. Read carefully documentation provided by Microsoft ®, especially this:
    https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-red-hat?view=sql-server-2017
    https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-performance-best-practices?view=sql-server-2017
    https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-mssql-conf?view=sql-server-2017
  3. Check if your software will work with MS SQL Server running on Linux. Some software will work but you will probably have no support if you run it that way.

Here is how I have setup my CentOS 7 to work with MS SQL Server only

  1. I have created Virtual Machine which has:
    2 x CPU’s
    8 GB of RAM
    100 GB of space
    1 x NIC
  2. Disk partitioning:
    /boot – 1024 MB
    / – 30 GB
    /var – 60 GB
    /tmp – 5 GB
    /var/log – 5 GB
    /swap – 8192 MB
  3. CentOS 7 setup
    1. Update system
    2. Enable EPEL repo (not necessery, but I like to have it)
    3. Download MS SQL Server 2017 repo
    4. Install
    5. Setup
  4. Enabling TCP port on firewall
  5. Connecting from SQL Management Studio
    1. Logon screen
    2. After logon screen

I think this is all … for now 😉 I will try to write something more after I will test it in production.

Apache UserDir in CentOS 7

Quick steps to set it up (I assume you have apache installed):

  1. login as root
  2. edit userdir.conf

  3. restart Apache
  4. setup your directory
    as normal user enter:
  5. if you use SELinux as root enter:
  6. create simple html page

    enter this:
  7. change ownership of file
  8. start your browser and enter this address:

     

    and voila! 😉

Mounting Windows share in CentOS 7

Today i have to connect to Windows share from CentOS 7. This is how I done it:

then I have created directory in /mnt

after that:

That’s all 🙂

HP Proliant ML 110 G5, CentOS 7 and Smart Array P400

Recently i had to reinstall my old (but still working) server. I have bought Smart Array P400 instead of my old Smart Array E200, added new harddrives (WD Caviar Black 1TB x 2). And there was an issue regarding that on CentOS 7.x (RHEL 7.x) there is no more drivers for that controller. This was bad for me.

I have started to google the internet and have found a solution for this:
https://www.centos.org/forums/viewtopic.php?f=49&t=47011&start=20
and
https://www.centos.org/forums/viewtopic.php?f=49&t=51302&sid=850e80707bfb3db598f2c5be00ae5e51&start=10

Solution was simple:

  1. Download drivers from here http://elrepo.org/people/akemi/testing/el7/isos/
  2. Add above driver for CentOS 7 during boot process
  3. Install CentOS 7

Continue reading

Google Chrome in CentOS 7

First we have to create entry in yum.repos.d

After that we need to enter following information into that file

Now we are ready to go 🙂

 

Adding Windows partition to grub menu after installing CentOS 7

After installing CentOS 7 on my laptop there was no entry pointing to Windows in the grub menu. Here is what i have done:

I have found entry:

So first i have created copy of old grub.cfg in /boot/grub2/grub.cfg like this:

and then i have done this:

After above operations I was able to enter my Windows OS 😉

CentOS 7 on HP Compaq 6710b and 16GB micro sd card

Yesterday i have installed CentOS 7 on my old HP Compaq 6710b laptop. I don’t wanted to remove my current OS (ubuntu) because I did’nt know if I find all software which i am using, so i decided to install it on 16GB micro sd card (!).

After install i have done this:

  1. add EPEL repo
  2. add RPMForge repo
  3. add NUX-Dextop repo (for remmina)
  4. add Google repo (for Google Chrome)
  5. add Adobe repo (for flashplayer)

After two days of working on it (Geany, GIMP, OpenVPN, Remmina) I must say that everything is working fine.

How-to upgrade ownCloud 7 to 8 on CentOS 6.x

Since php on CentOS 6.x is on version 5.3.x (that was on my machine) i have to add remi repository to my CentOS to do the upgrade of ownCloud server

After that i done this:

Now I was ready to upgrade my ownCloud server to 8.1.1.

Now I can enjoy ownCloud in the newest version. Cheers 🙂