Midnight Commander is a console file manager for Linux. Installing mc - midnight commander install Installing midnight commander


After that, you can connect on port 22 via putty to the server. You must specify root as the username, and the password from your administrator account. We go in and see the usual black console:

Although I know all the popular UNIX commands, I still prefer to use Midnight Commander or just mc. In synology, by default, it is not there and it just won’t work to put it. I first decided to download the sources, compile and install, as is usually done. But before that, I decided to google the question, maybe there is a simpler way.

And he really is. To quickly and easily install MC on Synology, you just need to connect an alternative repository through the control panel and install Midnight Commander in a few mouse clicks. For this we go to Package Center, press Settings, open tab Package sources and add a new one:

Name - SynoCommunity

Location - http://packages.synocommunity.com

Click OK. Everything. Now you can select the section in the list of packages Community and there select Midnight Commander, or something else you need:

Now we go to the Synology console, write 2 simple characters there mc and we work in our favorite and familiar midnight commander.

By the way, inside everything is very curiously arranged. Looks like a heavily modified RHEL or CentOS. httpd is used as a web server, but both nginx and php-fpm are installed and running in the system. The system is installed on raid1, built on mdadm, which includes a partition from each disk in the system. User volumes on lvm. Maybe somehow there will be time and desire, I will dig, I will tell you in more detail about the insides.

Online Linux Security Course

If you have a desire to understand in more detail the processes of setting up and ensuring the security of a local and network infrastructure built on the basis of the Linux OS, I recommend that you get acquainted with online course "Linux Security" in OTUS. The training lasts 3 months, after which successful graduates of the course will be able to be interviewed by partners. The course program is designed as a series of practical workshops and is aimed at prepared students who already have knowledge and experience in Linux administration. What will you learn:
  • Apply the best world practices and information security standards (Debian, RedHat, MitRE);
  • Use tools to detect and exploit vulnerabilities in Linux OS;
  • Install and configure network systems for detecting and preventing attacks;
  • Work with monitoring and containerization systems based on Docker;
Test yourself on the entrance test and see the detailed program on.

To save yourself the pain of using the command line, and also not lose your mind about the VI text editor, you need to install a file manager. Which will allow not only to freely "travel" on the disk of your server, but also to create and edit folders (directories, directories) and files.

How to Install Midnight Commander on CentOS

For CentOS, there is a file manager Peter Norton's Norton Commander known from DOS times, both in appearance and color scheme, and in functionality, the file manager Midnight Commander.
Installing it comes down to one command:

Yum install mc

To launch Midnight Commander file manager use:

After that, communication with CentOS takes on the familiar look of DOS times.

YUM package manager

This is not the first time in this article that I refer to the YUM command for installing software. Time to get to know her better.

What is yum

YUM (Yellow dog Updater, Modified) is a package manager that can query information about packages, get packages from repositories, install and remove them using automatic dependency resolution, and update the entire system to the latest versions of packages.

Basic yum commands

Checking for updates:

Yum check-update

Whole system update:

Yum update

Updating only a specific package:

Yum update<имя пакета>

Install package:

Yum install<имя пакета>

Remove package:

Yum remove<имя пакета>

Show all packages available in the repository:

Yum list

Check if the package is available in the repository (you can use wildcards ? and * in the package name):

Yum list<имя пакета>

Find a package whose name or description contains the specified value:

Yum search<строка поиска>

Clear system cache:

Yum clean all

How to roll back an update:

Yum downgrade<имя пакета>

What is the difference between YUM UPDATE and YUM UPGRADE commands

I kept silent about one more team - YUM UPGRADE. The action of which is similar to YUM UPDATE. The difference is that when updating packages, UPDATE preserves outdated versions of packages, that is, when installing a new version of a package, the old one also remains in the system.
UPGRADE does not retain previous versions. That is, there is a complete replacement.

Midnight Commander- a file manager for linux (as well as freebsd, unix), in appearance it is very similar to Norton Commander, or Far (Perhaps not many people remember the good old grandfather of Norton ...). Of course, for full-fledged administration, knowledge of *nix commands is indispensable, but directory navigation, operations with directories, files, groups of files, as well as viewing and editing files become much more convenient.

Midnight Commander is usually not installed by default, but it does not take long to check - we type in the command line
mc
if the answer is boring “command not found” or something similar, everything is correct. We will install.

Installing Midnight Commander on FreeBSD

1. Go to the ports
cd /usr/ports/misc/mc

2. Run the configuration
makeconfig

In the window that appears, it is desirable to select UTF-8 support (for the correct display of pseudographics)

3. Directly install MC
make install clean

4. If there are no errors, after the command
rehash
file manager midnight commander can be run with the command mc.

When installing from ports, all necessary programs will be downloaded automatically.

Installing Midnight Commander on Linux

If you are connected to the Internet, just type in the command line:
yum install mc

Installing Midnight Commander on Ubuntu or Debian

To install midnight commander on Ubuntu, first add the sources (if they are not already there) to the /etc/apt/sources.list file:

deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe

and directly installing MC

sudo apt-get update
sudo apt-get install mc

If the sudo command is not found, you should log in as root (su) and install MC: (without updating, the installation may fail)

apt-get update
apt-get install mc

Know other ways Midnight Commander installations? Found an error? Unsubscribe.

Usually, the installation of MS SQL Server is not considered, since it is considered that it is quite simple - you clicked the Next button several times and the database is installed. Nevertheless, there are several nuances that can poison the life of even an experienced administrator, provided that he has not previously installed MS SQL Server for 1C.

Creating virtual servers

The first step is to create one or two virtual servers. Earlier we already wrote about choosing the optimal virtual server configuration for 1C. With a heavy load, you will need two virtual servers - one will be used for 1C, and the second for the DBMS. In this article, we will assume that the load is moderate, therefore, both 1C and the DBMS will be installed on the same server. The virtual server configuration is shown in the table.

Virtual server configuration under moderate load

Installing MS SQL Server for 1C

Download the latest version of MS SQL Server. We will not consider the installation process in detail - it is really simple. But we will focus only on the necessary settings.

By default, MS SQL Server is loaded to the system drive C:. By choosing a custom installation type (Figure 1), you can change the destination drive and directory (Figure 2).

Rice. 1. MS SQL Server Loader

Rice. 2. Select download directory

Next, you need to wait until the installer downloads the necessary files (Fig. 3), after which you will see the SQL Server Installation Center window (Fig. 4). The Installation Center allows you not only to install SQL Server, but also to perform various database server maintenance operations. In our case, we are currently interested in the installation, so go to the Installation section and select New installation of a stand-alone instance of SQL Server or add features to an existing installation.

Rice. 4. SQL Server Installation Center

Rice. 5. Installation section

The installer will start, the first few steps do not need comments. But the choice of components needs to be discussed separately. Absolutely all components are not needed for 1C to work, two are enough - Database Engine Services and Connection with client funds. Previously, you could select a component Controls, in the latest release of SQL Server (2017), management tools are installed separately - from the section Installation. So, select the two main components, set the installation directories (previously we chose the download directory) and click the button Further.

Rice. 6. Selecting server components

Click the Next button until you reach the Server Configuration section (Figure 7). On the Collation Options tab, make sure Cyrillic_General_CI_AS encoding is selected. If you have selected Russian (Fig. 2), then this encoding will be selected by default, but if you prefer English on the server, then you will have to change the encoding.

In chapter Setting up the DBMS kernel tab Server configuration set mixed authentication mode (Figure 8), and also set a password for the database server system administrator account ( sa ). You also need to assign server administrators. If you are running under CloudAdmin or another user with administrative rights, just click the button Add current user.

Next tab − Data directories- very important. User databases and tempdb should be stored on the fastest drive. Ideally add an SSD drive for database storage. Although the location of the database can be specified when creating it, setting the correct default settings saves you from unnecessary work, as well as from the situation when the database is created using 1C tools and ends up in the default directory, i.e. on the system drive. You can also immediately specify the directory for storing backups.

Rice. 9. Data directories (default paths)

The rest of the parameters can be left as default. Click the button Further and then the button Install and wait while SQL Server installs.

Return to the Installation Center window, install SQL Server Management Tools (Figure 10). A browser will open with a page where you can download the controls. Download the installer file and install. It is not necessary to install the management tools on the server, they can be installed on the administrator's computer, but since we have a virtual server, we will not complicate its setup and install the SQL Server management tools on the same computer.

Setting up MS SQL Server to work with 1C:Enterprise

We have just completed the installation of SQL Server and Management Tools. It remains to configure the server to work with 1C. Using the management tools, connect to the SQL Server. Right-click on the server in the list on the left and select command Properties(Fig. 11). Make sure the encoding is Cyrillic_General_CI_AS. Otherwise, the server will have to be reinstalled.

Rice. 11. Server Properties

If everything is OK with the encoding, go to the section Memory. Specify the amount of RAM available to SQL Server, otherwise SQL Server will try to use all available memory. If 1C is installed on the same server, then this behavior of SQL Server cannot be called optimal - for 1C, you also need to leave available resources.

Close the properties window. Go to section Security, Logins. Right click on section Logins and select command Create a new login. Create a new user account on behalf of which 1C will connect - to use the administrator account (sa), giving 1C maximum rights, to put it mildly, is wrong.

Enter a username, set authentication through SQL Server (Fig. 13). Next, go to the section Server Roles and select dbcreator, processadmin and public (Figure 14).

Rice. 13. Creating a new user account for 1C

That's all. We installed SQL Server and management tools, performed basic server setup and created an account for 1C. In most cases, the default SQL server settings are more than adequate for the performance of the 1C:Enterprise server.







2022 gtavrl.ru.