All posts by admin

DNS RFC References
:RFC standard for naming host names

2.1 Host Names and Numbers

The syntax of a legal Internet host name was specified in RFC-952
[DNS:4]. One aspect of host name syntax is hereby changed: the
restriction on the first character is relaxed to allow either a
letter or a digit. Host software MUST support this more liberal

Host software MUST handle host names of up to 63 characters and
SHOULD handle host names of up to 255 characters.

Whenever a user inputs the identity of an Internet host, it SHOULD
be possible to enter either (1) a host domain name or (2) an IP
address in dotted-decimal (“#.#.#.#”) form. The host SHOULD check
the string syntactically for a dotted-decimal number before
looking it up in the Domain Name System.

Other references



Install Cinnamon In CentOS

The instructions below assume that you installed Centos minimal without the X windows system. If you already have Gnome running , you can just install the epel repo and then yum install cinnamon.

While there are many different graphical user interfaces available for Linux, in this example we will be using Cinnamon.

First we need to configure the EPEL repository, as this is where we will be installing packages from.

[root@centos7 ~]# yum install epel-release -y && yum update 

Next I needed to install the “Server with GUI” group before proceeding. Note that this will also install GNOME, you’ll be able to change to Cinnamon later though.

[root@centos7 ~]# yum groupinstall "Gnome Desktop" -y

Installing the Cinnamon Desktop is now as simple as installing the “cinnamon” package, which then has many dependencies to install many more packages that are required for a GUI installation.

[root@centos7 ~]# yum install cinnamon -y

Remember to set the systemd graphical target
systemctl set-default

More information

How to Generate a Random Number in Python

Check out the code snippet below to see how it works to generate a number between 1 and 100.

import random
for x in range(10):
  print random.randint(1,101)

The code above will print 10 random values of numbers between 1 and 100. The second line, for x in range(10), determines how many values will be printed (when you use range(x), the number that you use in place of x will be the amount of values that you’ll have printed. if you want 20 values, use range(20). use range(5) if you only want 5 values returned, etc.). Then the third line: print random.randint(1,101) will automatically select a random integer between 1 and 100 for you. The process is fairly simple.



Fedora : Untrusted Application Launcher


The application launcher *.desktop has not been marked as trusted. If you do not know the source of this file, launching it may be unsafe.

Then there is no other options available to you. I found this to be a permission issue if you downloaded the application as root. The app group will need to be changed to a users group with executable rights.