installing X server on CentOS 7 minimal

Install CentOS 7 minimal yum update -y yum groupinstall "X Window System" yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts unlink /etc/systemd/system/default.target ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target reboot

0 Comments

CentOS/RHEL Networking Configuration

/etc/sysconfig/network-scripts/ifcfg-eth0 BOOTPROTO=dhcp/static 'add the following when configuring static IPADDR=192.168.X.X NETMASK=255.255.255.0 GATEWAY=192.168.25.1 ONBOOT=yes ' enables networking on boot 'enable networking interface if up eth0 OR nmcli con up eth0 'restart networking…

0 Comments

Using WGET to download multiple links

wget -r -np -l 2 -A jpg,png,gif http://example.com/ Options meaning: -r, --recursive specify recursive download. -np, --no-parent don't ascend to the parent directory. -l, --level=NUMBER maximum recursion depth (inf or…

0 Comments

Forcing HTTPS using .htaccess

In order to force HTTPS to all web traffic, insert the following code into your .htaccess file in the root directory of your domain. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule…

0 Comments