×


Blog


Setup Teampass Passwords Manager on Ubuntu 20.04 - Do it Now ?

This article covers perform the installation of TeamPass using the LAMP stack on Ubuntu. Now you can easily manage your credentials within your Organization to save credentials and manage access to every individual. 

TeamPass is a Collaborative Passwords Manager used for managing passwords and sharing them among team members.


To Download Teampass on Ubuntu:

1. Start by cloning the Teampass repository to your web server root directory as shown below;

$ git clone https://github.com/nilsteampassnet/TeamPass.git /var/www/html/teampass

2. Set the ownership of the teampass web directory to web server user (www-data)

$ chown -R www-data.www-data /var/www/html/teampass/

3. Next, edit the /etc/php/7.2/apache2/php.ini configuration file and increase the script execution time from 30 to 60 secs.

vim /etc/php/7.2/apache2/php.ini
...
;max_execution_time = 30
max_execution_time = 60
...

4. Restart Apache web server

$ systemctl restart apache2


To Finalize TeamPass installation on Ubuntu:

Final installation of Teampass can be done from the browser. 

Hence, navigate to the browser and enter the Teampass server URL, 

http://Server_IP/teampass

This will redirect you to Teampass welcome page


Install and Configure Apache Kafka on Ubuntu 20.04 - Step by Step process to implement this task ?

This article covers how to install and configure Apache Kafka on your Ubuntu 20.04 LTS machine. Apache Kafka is a distributed events streaming platform which has the ability to handle the high-performance data pipelines. It was originally developed by Linkedin then to be public as an open-source platform and used by many IT companies in the world.


Terms related to Apache Kafka Infrastructure:

1. Topic: A topic is a common name used to store and publish a particular stream of data. For example if you would wish to store all the data about a page being clicked, you can give the Topic a name such as "Added Customer".


2. Partition: Every topic is split up into partitions ("baskets"). When a topic is created, the number of partitions need to be specified but can be increased later as need arises. Each message gets stored into partitions with an incremental id known as its Offset value.


3. Kafka Broker: Every server with Kafka installed in it is known as a broker. It is a container holding several topics having their partitions.


4. Zookeeper: Zookeeper manages Kafka's cluster state and configurations.


Main advantages of using Apache Kafka:

1. Message Broking: In comparison to most messaging systems Kafka has better throughput, built-in partitioning, replication, and fault-tolerance which makes it a good solution for large scale message processing applications


2. Website Activity Tracking


3. Log Aggregation: Kafka abstracts away the details of files and gives a cleaner abstraction of log or event data as a stream of messages.


4. Stream Processing: capturing data in real-time from event sources; storing these event streams durably for later retrieval; and routing the event streams to different destination technologies as needed


5. Event Sourcing: This is a style of application design where state changes are logged as a time-ordered sequence of records.


6. Commit Log: Kafka can serve as a kind of external commit-log for a distributed system. The log helps replicate data between nodes and acts as a re-syncing mechanism for failed nodes to restore their data.


7. Metrics: This involves aggregating statistics from distributed applications to produce centralized feeds of operational data.


To install Apache Kafka on Ubuntu:

1. Update your fresh Ubuntu 20.04 server and get Java installed as illustrated below.

$ sudo apt update && sudo apt upgrade
$ sudo apt install default-jre wget git unzip -y
$ sudo apt install default-jdk -y

2. Fetch Kafka on Ubuntu 20.04.

$ cd ~
$ wget https://downloads.apache.org/kafka/2.6.0/kafka_2.13-2.6.0.tgz
$ sudo mkdir /usr/local/kafka-server && cd /usr/local/kafka-server
$ sudo tar -xvzf ~/kafka_2.13-2.6.0.tgz --strip 1

3. Create Kafka and Zookeeper Systemd Unit Files

i. Let us begin with Zookeeper service.

$ sudo vim /etc/systemd/system/zookeeper.service
[Unit]
Description=Apache Zookeeper Server
Requires=network.target remote-fs.target
After=network.target remote-fs.target
[Service]
Type=simple
ExecStart=/usr/local/kafka-server/bin/zookeeper-server-start.sh /usr/local/kafka-server/config/zookeeper.properties
ExecStop=/usr/local/kafka-server/bin/zookeeper-server-stop.sh
Restart=on-abnormal
[Install]
WantedBy=multi-user.target


ii. Then for Kafka service. Make sure your JAVA_HOME configs are well inputted or Kafka will not start.

$ sudo vim /etc/systemd/system/kafka.service
[Unit]
Description=Apache Kafka Server
Documentation=http://kafka.apache.org/documentation.html
Requires=zookeeper.service
After=zookeeper.service
[Service]
Type=simple
Environment="JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64"
ExecStart=/usr/local/kafka-server/bin/kafka-server-start.sh /usr/local/kafka-server/config/server.properties
ExecStop=/usr/local/kafka-server/bin/kafka-server-stop.sh
Restart=on-abnormal
[Install]
WantedBy=multi-user.target


iii. Reload the systemd daemon to apply changes and then start the services. 

$ sudo systemctl daemon-reload
$ sudo systemctl enable --now zookeeper
$ sudo systemctl enable --now kafka
$ sudo systemctl status kafka zookeeper


4. Install Cluster Manager for Apache Kafka (CMAK) | Kafka Manager.

$ cd ~
$ git clone https://github.com/yahoo/CMAK.git


5. Configure CMAK on Ubuntu.


Add and Remove Users on Ubuntu 20.04 - How to perform this task ?

This article covers how you can add and remove users on Ubuntu and assign them administrator privileges. Based on your convenience, you can either choose to add and remove users either through the command line or GUI. 

Ubuntu, like any other Linux distribution, is a multi-user operating system. Each user can have different permission levels and specific settings for various command-line and GUI applications.

Knowing how to add and remove users is one of the basic skills a Linux user should know.


To add a user in Ubuntu via GUI:

1. Open the Activities overview and start typing Users.

2. Click on Users to open the panel.

3. Press Unlock in the top right corner and type in your password when prompted.

4. Press the + button, below the list of accounts on the left, to add a new user account.


To remove a user from Ubuntu:

1. Open the terminal app.

2. Login to server using the ssh user@server-ip-here command.

3. Run sudo deluser --remove-home userNameHere command to delete a user account on Ubuntu.

4. Verify it by running id command.


To Remove a Linux user:

1. Log in to your server via SSH.

2. Switch to the root user: sudo su -

3. Use the userdel command to remove the old user: userdel user's username.

Optional: You can also delete that user's home directory and mail spool by using the -r flag with the command: userdel -r user's username.


To Add a User to Linux:

1. Log in as root.

2. Use the command useradd "name of the user" (for example, useradd linuxapt)

3. Use su plus the name of the user you just added to log on.

4. "Exit" will log you out.


Linux operations commands:

1. adduser : add a user to the system.

2. userdel : delete a user account and related files.

3. addgroup : add a group to the system.

4. delgroup : remove a group from the system.

5. usermod : modify a user account.

6. chage : change user password expiry information.


How do I assign a user to a group in Linux?

1. To create a new group, enter the following: sudo groupadd new_group.

2. Use the adduser command to add a user to a group: sudo adduser user_name new_group.

3. To delete a group, use the command: sudo groupdel new_group.

4. Linux comes with several different groups by default.


Install TeamViewer on CentOS 8 - Step by Step process to get it done ?

This article covers how to install TeamViewer on the CentOS system. Additionally, you will learn how to install, launch, and update TeamViewer on CentOS.

We have also covered how to uninstall TeamViewer in case you no longer need it on your system. 

For some more help regarding TeamViewer, run teamviewer help in Terminal.

TeamViewer is a Robust cross-platform solution that provides secure remote access, remote control, and remote support solution across devices. 

The data traffic between devices are encrypted which makes the TeamViewer very secure. 

This software is available for “Linux, Windows, Mac, Chrome OS” and even for mobile devices like "iOS, Android, and so on".


To Install TeamViewer on CentOS 8:

1. Enable EPEL Repo on CentOS 8

You can install EPEL repo using the below command. This command will enable the repo if it is not already installed:

$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y

2. Now you can proceed further to install TeamViewer on CentOS 8:

$ sudo yum install teamviewer.x86_64.rpm -y

3. Once the package is installed you can start using team viewer:

$ teamviewer


Install Arduino IDE on Debian 10 - Step by Step Process to implement it ?

This article covers different methods to install the Arduino IDE on Debian system. To get the latest version of Arduino IDE, simply go for installation via tarball and snap. If you prefer an older release of Arduino, go for installation via apt.

Arduino boards are able to read inputs – light on a sensor, a finger on a button, or a Twitter message – and turn it into an output – activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. 

To do so you use the Arduino programming language (based on Wiring), and the Arduino Software (IDE), based on Processing.”


To Install Arduino IDE on Ubuntu:

1. Execute the command:

$ sudo apt install Arduino

2. You will be provided with Y/N option, press y to continue.

3. Now wait for a while until the installation of Arduino IDE is completed.


To Launch Arduino IDE:

To launch Arduino IDE application on your system, hit the super key and in the search bar that appears, type Arduino. When the Arduino IDE icon appears, click on it to launch.

You will see the default view of Arduino IDE.


Install Skype on CentOS 8 - Step by Step process to implement it ?

This article covers how to install skype on the CentOS 8 system. One is using the RPM skype repository and another one is through the snap tool. 

Running Skype on CentOS/Fedora allows you to make Skype calls, group video calls, instant messaging, phone number calls, and screen sharing.


To Install Skype on CentOS:

1. Execute the command;

$ sudo yum localinstall skypeforlinux-64.rpm

2. Press y when prompted to confirm installation.


To Launch Skype on CentOS:

After successful installation, search Skype on your Desktop Environment search bar.