How to add a new user on Linux and some other useful tips.

Adding a new user on Linux is very easy, this can be done with the groupadd and useradd commands. I am adding a new user group to Linux and then adding the new user to it. Firstly, add the new user group. jason@jason-Lenovo-H50-55:~$ sudo groupadd -g 1001 cudauserjason@jason-Lenovo-H50-55:~$ sudo groupadd…

Read More

How to add a Red Hat Linux 7.2 subscription after installation.

To add a subscription after installing Red Hat Enterprise Linux 7.2, type this command as root. [root@localhost jason]# subscription-manager register –username USERNAME –password "PASSWORD"[root@localhost jason]# subscription-manager register –username USERNAME –password "PASSWORD" This will setup your Red Hat subscription. Then enter this command. This will refresh all of the information on…

Read More

Create a new group on Linux and add a new user to it easily.

To add a new group to a Linux system, enter this command as root. root@neo:/home/jason# groupadd deptroot@neo:/home/jason# groupadd dept Then, create our new user with this command. root@neo:/home/jason# useradd -m -g dept -d /home/user -s /bin/bash userroot@neo:/home/jason# useradd -m -g dept -d /home/user -s /bin/bash user Now our user is…

Read More

How to create a new user on Linux and add a password in one go.

The useradd command can create a new user on your Linux system. Here is how to add a password as well all in one simple operation. root@neo:/home/jason# useradd -m -s /bin/bash -g users -p $(openssl passwd -1 ff302) randycoleroot@neo:/home/jason# useradd -m -s /bin/bash -g users -p $(openssl passwd -1 ff302)…

Read More

How to add a swapfile with Linux and thoughts on the Die Hard 4.0 movie.

To create a new swapfile on your Linux machine to complement the existing /swap partition; the dd command will come in handy. This command will create the swap file as a loopback filesystem. adeptus-mechanicus ~ # dd if=/dev/zero of=swapfile bs=1024 count=524288adeptus-mechanicus ~ # dd if=/dev/zero of=swapfile bs=1024 count=524288 This command…

Read More

Adding Adsense advertisements to a Pagelines WordPress theme.

The Pagelines Framework theme is an outstanding theme for the WordPress blogging software, and adding Adsense ad units is a good way to monetise your website. If you edit the wp-content/themes/pagelines/sections/content/section.php you may add an Adsense ad unit very easily. There are plugins for WordPress that allow you to add…

Read More