×


Blog


Steps to Install Samba on Ubuntu 20.04 and share files on Linux and Windows

This article will guide you on steps to #install #Samba in #Ubuntu 20.04 Linux system. We have executed all #commands and set of procedures on Ubuntu 20.04 LTS system and Windows 10. Also, We have implemented how to share folders via a local #network using Samba shares. Enjoy the benefits of Samba on your #system.

To Set up the Samba File Server on Ubuntu / #Linux:

1. Open the terminal.

2. Install samba with the following command: sudo apt-get install samba smbfs.

3. Configure samba typing: vi /etc/samba/smb.conf.

4. Set your workgroup (if necesary).

5. Set your #share folders.

6. Restart samba.

7. Create the share #folder: sudo mkdir /your-share-folder.


How to use SSH to connect to a remote server in Ubuntu 20.04 LTS ?

This article will guide you on how to #SSH remote Linux servers using #OpenSSH utility. We have also discussed some basic configurations that you may find useful when connecting via SSH. Now you can easily manage remote #Linux servers for administration and troubleshooting.

To Enable #root login over SSH:

1. As root, edit the sshd_config file in /etc/ssh/sshd_config : 

nano /etc/ssh/sshd_config.

2. Add a line in the Authentication section of the file that says PermitRootLogin yes.

3. Save the updated /etc/ssh/sshd_config file.

4. Restart the SSH server: service sshd restart.


How to create and run a Perl script in Debian 10 ?

This article will guide you on steps to create your first #Perl #script and execute it in Debian 10. Here you will learn the basic method of creating and running a simple Perl script. Once you manage to learn this, you can use Perl scripting for lots of other programmatically complex problems.

To run a Perl script:

1. Write and Run Your First Script. All you need to write Perl #programs is a text editor.

2. Write Your Script. Create a new text file and type the following exactly as shown: #!usr/bin/perl.

3. Run Your Script. Back at the command prompt, change to the directory where you saved the Perl script.


How to block or unblock ping requests on Ubuntu Server 20.04 LTS ?

This article will guide you on steps to block or unblock #ping requests on #Ubuntu Server 20.04 LTS. Also you will learn how to unblock the ping requests in case you need to use ping for system administration and troubleshooting.

To block #ping requests in #Linux:

You can implement blocking ICMP messages in your Linux system by adding the below #kernel variable that will drop all ping packets. In order to make the above rule permanent, append following line to /etc/sysctl. conf file and, subsequently, apply the rule with sysctl command.


Steps to Create and run a Perl script in CentOS 8 ?

This article will guide you on steps to perform Perl installation on #CentOS 8. You will also learn how to create and execute the #Perl #script on your CentOS system by using the terminal #commands.

Perl is a programming language that can be used to perform tasks that would be difficult or cumbersome on the command line.

To run a Perl script in Linux:

1. Run the "perl" command with the Perl script included in the command line.

2. Run the "perl" command with the Perl script supplied from the standard input stream.

3. Run the "perl" command with the Perl script supplied in a file.

4. Run Perl script files as commands.


Select, update, delete, create, alter, and drop a table in MongoDB in Linux Mint 20

This article will guide you on the basic operations that you can perform on #MongoDB #tables or #collections. By following the very same syntax and operations, you can even write other complex #queries that can easily serve the purpose of your particular task.

MongoDB is almost 100 times faster than traditional database system like RDBMS, which is slower in comparison with the #NoSQL databases. MongoDB supports deep query-ability i.e we can perform dynamic queries on documents using the document-based query language that's nearly as powerful as #SQL.

To open a collection in MongoDB:

1. Finding the current database you're in. db.

2. Listing databases. show databases. 

3. Go to a particular #database. use <your_db_name>.

4. Creating a Database.

5. Creating a Collection. 

6. Inserting #Data.

7. Querying Data. 

8. Updating documents.