Sudo Ubuntu

How to activate SUDO in Ubuntu for a user

The sudo command allows users to run programs with the security privileges of another user, by default, the root user. First if all, the user should be created in the system if it doesn鈥檛 exists yet. On Ubuntu systems, by default members of the group sudo are granted to sudo command access. Once the user is created, from root user, or a user with sudo access, you have to execute this command to add the user to sudo group....

April 18, 2020 路 1 min 路 Yvoictra
Basic vnStat

How to monitor network traffic on Ubuntu using vnStat

Monitoring network traffic or bandwitdh usage is a must in a SysAdmin tasks. There are many differents tools to manage this monitoring, but one of my favorites is vnStat. The main advantage of this tool is the simplicity of its usage. Installation With Ubuntu, the way to install this tool is with apt. sudo apt install vnstat First steps Once installed, it is important to know which interfaces are going to be monitoried....

April 3, 2020 路 2 min 路 Yvoictra

How to set up WIFI on Ubuntu running on the Raspberry Pi 4

First step is to check the status of the interfaces. For this, we will use the net-tools package. sudo apt install net-tools Then, we can see the interfaces status ifconfig -a In my case, I have this status of my interface wlan0: ubuntu@ubuntu:~$ ifconfig -a wlan0 wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500 ether dc:a6:32:6c:xx:xx txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0....

April 2, 2020 路 2 min 路 Yvoictra

Create a new user in Ubuntu from terminal

In order to create a new user in a Linux Ubuntu distribution from terminal, you have to use this command. sudo adduser username After this, the system will ask you some parameters included the password. [23:43:24] ubuntu|zoar:~$ sudo adduser yvoictra Adding user `yvoictra' ... Adding new group`yvoictra' (1001) 鈥 Adding new user `yvoictra' (1001) with group`yvoictra' 鈥 Creating home directory `/home/yvoictra' ... Copying files from`/etc/skel' 鈥 New password: Retype new password: passwd: password updated successfully Changing the user information for yvoictra Enter the new value, or press ENTER for the default Full Name []: Yvoictra Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct?...

April 1, 2020 路 1 min 路 Yvoictra

Customize Bash Prompt with colours in Linux

There are lot of people that simply like to customize the appearence of the terminal, is my case. When you use a terminal during a lot of time, it usually helps to have a prompt more visible than the default one. Backup First of all, you should make a backup of the configuration file in order to fall back in case it is necessary. The file is at the user $HOME, so first step is to go the directory....

April 1, 2020 路 2 min 路 Yvoictra

How to change your language and local configuration in Ubuntu

Connect with SSH to your machine and execute next command sudo dpkg-reconfigure locales After this, you will see a list of languages and countries. You have to select with space bar the language and country you need. In my case, as I live in Spain, I have selected es_ES.UTF-8. It is recommended to choose UTF-8 version. Finally, Ubuntu will ask you to select the default language to use in the operating system....

April 1, 2020 路 1 min 路 Yvoictra

Raspberry Pi Guide

This blog have several items related to Raspberry. I decided to created this page to have all Raspberry Pi related posts, ordered. Info How to know which Raspberry do you have Operationg System Ubuntu How to install Ubuntu in your Raspberry Pi 4 without Keyboard nor screen How to change the hostname How to change language and timezone Users How to create a new user in Ubuntu from terminal How to activate SUDO for a user Networking How to set up WIFI on Ubuntu Running on the Raspberry Pi 4 How to resolve LAN hostnames How to monitor network traffic with vnStat Customization Customize the terminal with screenFetch Customize bash prompt with colours How to add alias to your Linux

March 31, 2020 路 1 min 路 Yvoictra

How to install Ubuntu in your Raspberry Pi 4 without Keyboard nor screen

To install Ubuntu in your Raspberry Pi 4 what you need is: Raspberry Pi 4 USB-C cable Mini SD Card (recommended 16 Gb or more) PC Mini SD Card reader in your PC RJ45 Ethernet cable Switch or Router of your network The first step is to install Ubuntu software in your SD Card. For this, you shoud go to the Raspberry Pi Downloads page, and download the Raspberry Pi Imager....

March 31, 2020 路 2 min 路 Yvoictra