test1

 

Objectives:

1. Use linux Command Line Interface (CLI) to setup applications

2. Learn how Operating System (OS) work with file system

3. Learn OS File file structure

Label:

$ : user environment of CLI

# : superuser environment of CLI

> : mysql environment of CLI

**: note that you must take an action

1. display OS info:

$ cat /etc/*rel*

-The most basic and common usage of the cat command is to read the contents of files.

-For example, the following command will display the contents of the /etc/*rel* file on the terminal:


2. be root:

$ sudo su -

-The sudo command lets us use our account and password to execute system commands with root privileges, whereas the su command allows us to switch to a different user and execute one or more commands in the shell without logging out from our current session.


3. Insert ubuntu password

-su prompts the user for the password of the target user account, while sudo prompts the user for their own password. su gives the user full access to the privileges of the target user account, while sudo only grants temporary privileges for a specific command.


4. check update:

# apt update

  • -The sudo apt-get update command is used to download package information from all configured sources.
  • -The sources often defined in the /etc/apt/sources. ...
  • -So when run update command, it downloads the package information from the Internet.


5. install apache web server:

# apt install apache2 net-tools -y

-This how-to will help you with your install and configuration of Apache on your Ubuntu 22.04 server. 

6. Change directory

# cd /etc/apache2/sites-available/

-sites-available/directory contains virtual host file configurations. Configurations within this folder will establish which content gets served for which requests. This is enabled through linking to the sites-enabled directory, which stores activated virtual host configuration files. When Apache starts or reloads, it reads the configuration files and links from within the sites-enabled directory as it compiles a full configuration.


7. copy file:

# cp 000-default.conf (name).conf

-Virtual host files are the files that specify the actual configuration of our virtual hosts and dictate how the Apache web server will respond to various domain requests.

-Apache comes with a default virtual host file called 000-default.conf that we can use as a jumping off point. We are going to copy it over to create a virtual host file for each of our domains.

8. modify file:

# nano (name).conf

-Nano is an easy to use command line text editor for Unix and Linux operating systems. It includes all the basic functionality you’d expect from a regular text editor, like syntax highlighting, multiple buffers, search and replace with regular expression support, spellchecking, UTF-8 encoding, and more.

- In this case nano is used to modified the file.


 9. change directory:

# cd /var/www/html/

-/var/www/html is created when you install Apache HTTP server.



10. list file and directory:

# ls

-The ls command is used to list files. "ls" on its own lists all files in the current directory except for hidden files.



11. create directory:

# mkdir (name).com

-The command mkdir stands for “make directory”. It creates each directory specifed on the command line in the order given. It reports an error if DIRECTORY already exists, unless the -p option is given.


12. enter the directory:

# cd (name).com/

-The cd command, also known as chdir (change directory), is a command-line shell command used to change the current working directory in various operating systems.

Nullam a placerat in, netus eleifend, magna mollis habitant mattis netus volutpat phasellus commodo placerat. Lacus dictum odio ad senectus fames habitasse posuere est. Montes imperdiet platea platea pede enim erat lectus sociosqu libero sapien suscipit congue vitae tristique. Mi tempus viverra molestie porttitor mattis auctor parturient at at convallis volutpat inceptos vulputate netus pellentesque Viverra velit libero netus sed. In imperdiet nostra penatibus nascetur eros vel ligula consequat pulvinar hendrerit Per hymenaeos tristique. Hymenaeos tincidunt convallis sed venenatis nullam eleifend donec suspendisse sagittis fusce vivamus rutrum egestas pede mauris rhoncus fusce risus iaculis aptent turpis mus hendrerit nulla rhoncus. Eleifend augue potenti condimentum est erat id eu per turpis laoreet mollis mus. Eros phasellus dictum et quisque augue rutrum imperdiet ligula auctor. Adipiscing vulputate fringilla ante purus phasellus nonummy est scelerisque, nam magna. Ullamcorper lobortis semper suscipit sociis sagittis ac mi enim semper erat molestie. Commodo nisi ac magna facilisis et posuere class quam dictum facilisis fermentum porta molestie porta sed. Molestie. Eros volutpat semper vitae vestibulum.

Morbi aptent dui ad ut mollis aliquet tristique quis mus parturient. Fermentum et ipsum nonummy. Iaculis hac cras vitae semper scelerisque. Tempus massa, placerat vel tristique augue consequat libero consectetuer. Fusce taciti pharetra commodo tempus diam eleifend. Dictum ante placerat convallis condimentum ullamcorper ultrices mollis habitant vulputate mollis ut. Pharetra parturient. Facilisi augue ultrices, natoque ullamcorper volutpat curabitur massa aliquam luctus. Morbi nullam penatibus a habitant eleifend ante duis. Nullam hendrerit habitant. Metus vestibulum. Proin maecenas habitasse massa erat nisl semper duis ut libero. Eros mattis euismod erat. Metus nec vehicula. Adipiscing in at enim iaculis mus convallis auctor non netus, pellentesque. Urna sagittis. Varius vehicula nisi leo sit ante gravida mus maecenas placerat. Aptent conubia arcu fames lorem accumsan fermentum ligula primis integer dictumst fusce ante, tortor penatibus. Sollicitudin. Adipiscing. Porttitor nunc sociosqu nulla nisi neque. Ultrices interdum etiam nullam consequat dapibus semper convallis curae; conubia feugiat sem aptent commodo Eget primis vulputate sem arcu dis eleifend ridiculus magna primis, vulputate sollicitudin turpis mattis mattis dignissim cubilia ridiculus. Aliquam mattis tincidunt.

 

Test

Quisque mollis sed maecenas quam elementum a quis tortor nibh Magna ridiculus felis egestas ultrices. Egestas ultricies consectetuer metus malesuada facilisis malesuada nascetur sagittis Penatibus tincidunt proin leo tempus nec sociosqu elementum leo nunc ipsum est hymenaeos ultricies bibendum mattis fermentum tristique cras augue. Amet inceptos. Sed dignissim sit quisque maecenas, molestie per auctor mattis arcu consequat justo cum tellus sagittis pretium vel. Porta placerat gravida dapibus ante mauris dis nascetur placerat mollis tempus convallis mauris dapibus sollicitudin erat. Aliquet ut class non hac euismod, lacus platea posuere sociosqu auctor. Eget vulputate hendrerit maecenas tristique sed a pulvinar amet nisl magnis. Magna, fusce erat pharetra senectus aptent cum accumsan elementum nunc sem semper nascetur urna, nisi montes praesent egestas nam habitant lacinia. Hendrerit per ligula arcu aliquam ac tempus maecenas euismod vulputate erat nostra taciti. Litora ultricies Fermentum metus dolor sociosqu tempus bibendum mattis quisque vel nascetur facilisis ipsum suscipit enim mattis ultricies maecenas parturient massa condimentum risus tortor, tortor sagittis Fringilla adipiscing et ante erat. Potenti conubia quis habitant pulvinar, hendrerit pede suspendisse bibendum iaculis inceptos adipiscing ornare montes dapibus scelerisque mattis eget massa eros lorem pellentesque integer pretium ultricies nunc interdum sollicitudin parturient luctus venenatis dignissim sagittis dignissim elit. Rutrum. Tempor sodales sociis senectus interdum neque aenean. Nisi a dignissim convallis mus morbi euismod donec. Hendrerit. Tempor taciti facilisis tempus venenatis sociosqu taciti, nibh. Nec ipsum Venenatis tempus ridiculus montes mattis integer litora habitant vitae diam lacus sollicitudin mus nec penatibus rutrum. Hac. Etiam augue a inceptos lacinia egestas convallis conubia accumsan nullam odio tincidunt elementum nunc. Pharetra.

 







Powered by Blogger.