Install CentOS 8 from Net boot ISO

CentOS 8 software selection

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 … Read more

CentOS 8

CentOS 8 is a short-lived Linux distribution based on Red Hat Enterprise Linux (RHEL). Due to a change in policy, CentOS 8 had an early end of life on December 31, 2021. If you are using CentOS 8, you can easily migrate to other RHEL based distributions like Alma Linux, RockyLinux or Oracle Linux. CentOS … Read more

Run Apache from command line

To start Apache from command line with out using a systemd service file or init script, run /usr/sbin/httpd -DFOREGROUND To stop Apache, press CTRL+C. You can keep it running by running it inside screen or tmux. See Apache

Download RPM package from yum repository

To download RPM file from yum repo, you need to install yum-utils package. yum install -y yum-utils Now you can use command yumdownloader –resolve –destdir=/path/ PACKAGE_NAME Example yumdownloader –resolve –destdir=/root/yum/ nginx 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 … Read more

Setup Tor Hidden Service on CentOS 7

Tor is provided by EPEL repository on CentOS 7. Install EPEL repo with command yum install epel-release Install tor yum install tor Edit tor config file vi /etc/tor/torrc Uncomment or add following lines HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80 Restart tor with command systemctl restart tor Now your tor hidden service is ready to use. You … Read more

yum-config-manager

yum-config-manager allows you to manage yum repositories. To add a repo, run yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo Disable a repository yum-config-manager –disable rpmfusion-free-updates See yum

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 ip link 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 … Read more

Install Transmission on CentOS

Transmission web client

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 yum install -y transmission-daemon transmission-cli Allow Web Access To access transmission web GUI, you need to white list your IP address. To do this, … Read more

Install MongoDB 4.0 on CentOS 7

To install MongoDB 4.0 (for other versions, see release note) on CentOS 7, create file vi /etc/yum.repos.d/mongodb-org-4.0.repo Add content [mongodb-org-4.0] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc Install MongoDB with yum install -y mongodb-org Enable MongoDB start on boot systemctl enable mongod Start Mongo DB with systemctl start mongod To see mongoDB version, run [root@ns3084948 ~]# … Read more

Install vsftpd on CentOS

To install vsftpd FTP server in CentOS, run yum install -y vsftpd Enable vsftpd to start on boot systemctl enable vsftpd Edit configuration file vi /etc/vsftpd/vsftpd.conf You need to update/add following configuration options chroot_local_user=YES allow_writeable_chroot=YES local_umask=002 file_open_mode=0755 force_dot_files=YES Restart vsftpd systemctl restart vsftpd Allow System Accounts to login local_enable=YES write_enable=YES Find anonymous_enable=YES Replace With anonymous_enable=NO … Read more