CentOS 8 software selection

Install CentOS 8 from Net boot ISO

CentOS 8 provide 2 type of ISO. One that ends with boot.iso, this is 534 MB. This only include essential files to get you started with installation. This installation method require internet connection as files needed to be downloaded from internet. Other ISO file is full install media, that is 6.6 GB in size. To install from boot.iso, download it from

http://isoredirect.centos.org/centos/8/isos/x86_64/

This page will list morrors near to you.

CentOS download mirror

Click on any of the morror from link, on next page, you will see ISO files. Download CentOS-8-x86_64-xxxx-boot.iso

CentOS 8 download ISO

Write this ISO file into a USB drive or DVD, then boot your computer with it. You will see following screen.

CentOS 8 install

Select first or second option. 2nd option test install media for any errors. If you use USB drive, you can just select option 1 as there is less chance of media corruption compared to DVD drives.

centos 8 language

Select language, click continue.

CentOS 8 installation

On this screen, you need to make several choices.

Installation Destination

Select the hard disk where you need CentOS 8 installed.

CentOS 8 disk

If you have an empty disk, all you need to do is click “Done”.

If your disk have existing partitions, you may need to delete it before insalling CentOS 8. If you have any data on this hard disk, always take a backup before you installing new OS.

Network & Host Name

You need to configure your network. Most of the time all you need to do is click on ON/OFF toggle on right side of the network interface.

CentOS 8 Network

If you have DHCP on your network, you will see IP address assigned to your computer. If not, you need to manually configure networking. It is important as you will need internet to do CentOS 8 install using boot ISO file. Click Done to go back to previous screen.

Installation Source

On this page, you need to enter a CentOS mirror. You can use following URL

CentOS 8 installation source

It is better to use a CentOS mirror near to you. This will make file downloads faster. In my case, i used

There is option to select mirror near you on this screen. But for some reason, this option did not work for me.

Software Slection

On this screen, you need to select software to install.

CentOS 8 software selection

You can select if you need to install GUI or just minimal CentOS install. I selected minimal install as everything else can be installed later as needed.

Click “Done”, will take you to previous screen. Now you will see “Begin Installation” button enabled. Click on it to continue installation.

On next screen, you get option to set password. Set password for user root. You can also create a new user if required.

Installation take 15 to 30 minutes depending on your download speed. Once installation completed, you will be asked to reboot.

CentOS 8 use Kernel 4.18

You can use both yum and dnf for installing software.

Download RPM package from yum repository

To download RPM file from yum repo, you need to install yum-utils package.

Now you can use command

Example

This will download and store all rpm files in /var/yum folder. –resolve will resolve dependency and download them. This will be helpful if you need to install a package on a system with no direct internet connection.

See yum

Setup Tor Hidden Service on CentOS 7

Tor is provided by EPEL repository on CentOS 7. Install EPEL repo with command

Install tor

Edit tor config file

Uncomment or add following lines

Restart tor with command

Now your tor hidden service is ready to use. You need to run your web application on 127.0.0.1:80

To see URL of your tor hidden service, run

Make sure to make a backup of folder “/var/lib/tor/hidden_service/” as it comtains keys for this .onion domain. If you lost it, you will lose your domain name. So it is very important you keep the files safe.

To stop/start tor, run

See tor

CentOS add IP Address

To add IP address on a Linux server, first find name of your network interface. This can be done with command

In most case, it can be enp3s0 or eth0, if you have more than one network card, this may be differnt, in such case, you need to identify which network interface you need to configure the the IP address .

Now create file

Here i used enp3s0 as network inferface name, replace it with whatever network interface name you use.

Add following content

IP_ADDR_HERE = replace with the IP address you need to add.

enp3s0 = replace with actual network interface name.

Restart network service with command

If you need to add another IP, create file with name

for example “enp3s0:2”, you need to use same alias name in DEVICE entry (first line) in the file.

Adding IP Range in CentOS 6

Transmission web client

Install Transmission on CentOS

transmission is a torrent client. This come with a web GUI, that make it easy to installed on a remote server with no X-Windows. To install transmission on CentOS server, run

Allow Web Access

To access transmission web GUI, you need to white list your IP address. To do this, first stop tranmission

Edit file

Find

Replace with

YOUR_IP_ADDR_HERE – replace with your actual IP address.

Start transmission

You will be able to access web GUI at

Downloaded files are stored in folder

Install MongoDB 4.0 on CentOS 7

To install MongoDB 4.0 (for other versions, see release note) on CentOS 7, create file

Add content

Install MongoDB with

Enable MongoDB start on boot

Start Mongo DB with

To see mongoDB version, run

To see if mongoDB running

Or use