Linux Resources
- Home
- Linux Resources
This article will guide you on steps to install #XAMPP on Linux Mint 20. You will also learn the method of uninstalling XAMPP web server whenever you feel like it.
The #htdocs folder can be found in /opt/lampp/ . You can navigate to your root folder from the file manager (nautilus by default), by clicking on Other locations from the sidebar, then #Computer . From there you can find the opt folder that contains the lampp folder.
To install xampp in MX #Linux:
1. Click XAMPP for Linux. It's in the middle of the page.
2. Allow the download to complete.
3. Open #Terminal.
4. Change over to the "Downloads" directory.
5. Make the downloaded file executable.
6. Enter the installation #command.
7. Enter your password when prompted.
8. Follow the installation prompts.
This article will guide you on steps to #install Perl and how to create and run Perl #script using the command line on #Ubuntu 20.04. We have also discussed how to configure necessary #Perl #modules on your system.
Perl is a programming language that can be used to perform tasks that would be difficult or cumbersome on the command line. Perl is included by default with most GNU / #Linux #distributions. Usually, one invokes Perl by using a text editor to write a file and then passing it to the perl #program.
Perl has a wide range of command-line options or switches that you can use. The options are also called switches because they can turn on or turn off different behaviors. For example, the -e option lets you specify a line of code directly on the command line instead of creating a script file.
To install Perl in Linux:
1. SSH to your server.
2. Change your directory to /opt by running the below command. cd /opt.
3. Download the zipped source code available for Unix/Linux.
4. After download the zip file runs the below commands to extract and install Perl.
This article will guide you on how to easily shut down your #Ubuntu 20.04 system. Here you will learn different methods will eventually cause your Ubuntu 20.04 #system to shut down.
There's nothing different in running sudo #reboot in a instance versus on your own server. This action shouldn't cause any problems. I believe the author was worried if the disk is persistent or not. Yes you can shutdown/start/reboot the instance and your data will persist.
If your system fails to boot for whatever reason, it may be useful to boot it into recovery mode. This mode just loads some basic services and drops you into command line mode. You are then logged in as root (the superuser) and can repair your system using command line tools.
To remove all #files from a directory in #Linux:
1. Open the terminal #application.
2. To delete everything in a #directory run: rm /path/to/dir/*
3. To remove all sub-directories and files: rm -r /path/to/dir/*
This article will guide you on steps to #install and configure #Apache on #Linux server.
Apache is one of the most popular web servers that allows you to run a secure website without too much of a headache.
#HTTPD is a program that is (essentially) a program known as Apache Web server. The only difference I can think of is that on Ubuntu/Debian the binary is called apache2 instead of httpd which is generally what it is referred to as on RedHat/CentOS. Functionally they are both 100% the same thing.
Apache server root will be located in /etc/httpd. The path to the apache #program will be /usr/sbin/httpd. In the document root three directories are created: cgi-bin, html and icons.
By default, Apache web server is instructed to listen for incoming connection and bind on port 80. If you opt for the TLS configuration, the server will listen for secure connections on port 443.
To start Apache server on Debian / Ubuntu Linux Specific Commands to Start/Stop/Restart Apache:
1. Restart Apache 2 web server, enter: # /etc/init.d/apache2 restart. $ sudo /etc/init.d/apache2 restart.
2. To stop Apache 2 web server, enter: # /etc/init.d/apache2 stop.
3. To start Apache 2 web server, enter: # /etc/init.d/apache2 start.
This article will guide you on how different methods of checking the available #memory in #Ubuntu 20.04. By following any of these methods, you can check the available memory along with lots of other useful memory statistics of your Ubuntu 20.04 system.
Logical Volume Manager (#LVM) is a software-based RAID-like system that lets you create "pools" of storage and add hard drive space to those pools as needed. There are lots of reasons to use it, especially in a data center or any place where storage requirements change over time.
#Linux by default tries to use RAM in order to speed up disk operations by making use of available memory for creating buffers (file system metadata) and #cache (pages with actual contents of files or block devices), helping the system to run faster because disk information is already in memory which saves I/O #operations
To check memory #usage on Linux:
1. free command. The free command is the most simple and easy to use command to check memory usage on linux.
2. /proc/meminfo. The next way to check memory usage is to read the /proc/meminfo file.
3. vmstat. The vmstat command with the s option, lays out the memory usage statistics much like the proc command.
4. top command.
5. htop.
This article will guide you on methods to install MongoDB on #Linux #Mint 20 system. You can check #MongoDB status, and can also access its shell to pass #commands to this database.
MongoDB installs as a #systemd service, which means that you can manage it using standard systemd commands alongside all other sytem services in Ubuntu. To verify the status of the service, type: sudo systemctl status mongodb.
Companies and development teams of all sizes use MongoDB because: The document data model is a powerful way to store and retrieve data that allows developers to move fast. MongoDB's horizontal, scale-out architecture can support huge volumes of both data and traffic.
To start MongoDB in Debian:
1. Start MongoDB. Issue the following command to start mongod: sudo service mongod start.
2. Stop MongoDB. As needed, you can stop the mongod process by issuing the following command: sudo service mongod stop.
3. Restart MongoDB. Issue the following command to restart mongod: sudo service mongod restart.