- Welcome to the Midnight Commander Development Center
- Latest release
- Current work
- Introduction
- Download
- Source code
- Binary builds
- Issue tracking
- Documentation
- Developers mailing lists
- mc-devel (at) gnome (dot) org
- mc-commits (at) googlegroups (dot) com
- mc-bugs (at) googlegroups (dot) com
- Mailing list for the users
- mc (at) gnome (dot) org
- Other resources
- mc-dev (at) conference.jabber.org
- Contribute
- Hack Midnight Commander
- For translators
- Midnight Commander Binaries
- Debian and Ubuntu
- Redhat-based distros
- Midnight Commander: установка и настройка в Linux
- Особенности и преимущества Midnight Commander
- Установка Midnight Commander в Ubuntu Linux
- Настройка Midnight Commander
- 1. Изменение внешнего вида
- 2. Включаем встроенный редактор MCEDIT
- 3. Настройка автосохранения текущей папки в файловом менеджере
- Горячие клавиши Midnight Commander
- Как обновить Midnight Commander?
Welcome to the Midnight Commander Development Center
Latest release
Current version is: 4.8.27; what’s new.
Current work
Introduction
GNU Midnight Commander is a visual file manager, licensed under GNU General Public License and therefore qualifies as Free Software. It’s a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included.
Midnight Commander is based on versatile text interfaces, such as Ncurses or S-Lang, which allows it to work on a regular console, inside an X Window terminal, over SSH connections and all kinds of remote shells.
This site hosts the new home of the Midnight Commander. The main project repository has been moved from Savannah to a new Git repository hosted on GitHub.
Download
Source code
A list of the latest releases is available here. If you are interested in helping with the development please also have a look at our Git repository. In order to check out the repository tree use the following commands:
- git clone git://github.com/MidnightCommander/mc.git
- git clone https://github.com/MidnightCommander/mc.git (for those who are behind a firewall)
We also have an autosyncing Git mirror at repo.or.cz. It uses gitweb as the web-interface to Git and can therefore provide some information normally unavailable via Trac Git browser plug-in:
- git clone git://repo.or.cz/midnight-commander.git
- git clone http://repo.or.cz/r/midnight-commander.git (for those who are behind a firewall)
Binary builds
See Binaries page for details.
Issue tracking
If you have any issues, suggestions or patches, you can file a new ticket (you should be registered on this site). Please take the time to search for an already existing ticket.
Documentation
At the moment, unfortunately, Midnight Commander lacks a comprehensive set of documentation covering its common features and various best practices. A project is under way to create such a documentation. Currently we are gathering various bits of information which would be later converted to a more suitable format (DocBook, . ) in the wiki. Any help would be gladly appreciated.
Developers mailing lists
Note: mailing lists on GoogleGroups are set up to read Trac messages only and not an appropriate place to discuss MC bugs and solutions. Please use mailing list at gnome.org for any MC-related discussions.
mc-devel (at) gnome (dot) org
Mailing list for the development-related discussions:
mc-commits (at) googlegroups (dot) com
Mailing list reserved for the applied commits into master branch only (suitable for use as RSS):
mc-bugs (at) googlegroups (dot) com
Mailing list reserved for the ticket and comment notifications only (suitable for use as RSS):
Mailing list for the users
mc (at) gnome (dot) org
Other resources
mc-dev (at) conference.jabber.org
This is our English-speaking jabber room.
Contribute
You are interested in mc and would like to improve it? Cool! Feel free to report bugs (please, use search before), attach your patches to the tickets and review the patches that are already in there. If you are going to do this on a regular basis, we’ll ask you if you’d like to join us. However, please search before reporting your issues to reduce the amount of work needed to close duplicate reports. Please also have a look at our WorkingGuideLines before you actually start messing with the ticket system.
If you are not familiar with git, you might find our GitGuideLines enlightening. It’s a short overview of the practical side of our workflow with Git.
Hack Midnight Commander
For translators
We have an account on the Transifex project. If you want help us with translations — just sign in (or log in) on the Transifex and do it :).
Some translation statistics:
Top translations: mc » mcpot | |
Powered by |
- Getting started with Transifex from command line;
- Learn more about working with Transifex.
Now we don’t have TranslatorsWorkflow? (sorry), therefore all translators feel free to update translations as often as needed. In future we will create TranslatorsWorkflow? in any case.
Источник
Midnight Commander Binaries
While normally binaries are provided by distributions who choose to ship mc along with their packages, we do provide binaries for several most popular distributions, mostly for reference and testing purposes. However, please be warned, that we do not offer any support for these. If you encounter any problems, you are generally going to be asked to rebuild the sources from current git master and check whether the problem is already fixed or not. Another rule of thumb is to always use search before opening new tickets.
Debian and Ubuntu
Binary and source packages for:
- Debian Stretch (i386, amd64, armel, armhf, arm64)
- Debian Buster (i386, amd64, armel, armhf, arm64)
- Debian Bullseye (i386, amd64, armel, armhf, arm64)
- Debian Sid (i386, amd64, armel, armhf, arm64)
- Ubuntu Trusty (i386, amd64, armhf, arm64)
- Ubuntu Xenial (i386, amd64, armhf, arm64)
- Ubuntu Bionic (i386, amd64, armhf, arm64)
- Ubuntu Focal (amd64, armhf, arm64)
- Ubuntu Hirsute (amd64, armhf, arm64)
Release
Nightly
Repository is signed with PGP key 0x776F2A248D76B064, fingerprint: F6DE 7A3E D638 7B13 0F55 E6FF 776F 2A24 8D76 B064.
To install repository signing key execute:
or install tataranovich-keyring package from here.
You can track the package development here.
Redhat-based distros
There are some unofficial stable RPMS for Fedora, CentOS and Scientific Linux.
Источник
Midnight Commander: установка и настройка в Linux
Midnight Commander (MC, в переводе — «полуночный командир») — консольный двухпанельный файловый менеджер для Unix-подобных операционных систем с псевдографическим веб-интерфейсом типа ортодоксального «Norton Сommander». Создан мексиканским программистом Мигелем де Икасой в 1994 году. Первоначальное название — «Mouseless commander».
«Midnight Commander» является частью проекта GNU (свободное ПО) и распространяется по лицензии GPLv3, локализирован на 51 языке, неофициально поддерживает также Windows и MacOS платформы. Официальный репозиторий>>
Особенности и преимущества Midnight Commander
- Работа с RPM-пакетами;
- Работа в режимах ASCII и HEX;
- Работа с различными архивами и образами файловых систем;
- Работа с сетевыми файловыми системами Samba, Fish, FTP, SFTP;
- Выполнение операций копирования и перемещения файлов в фоновом режиме;
- Встроенный текстовый редактор mcedit с подсветкой синтаксиса;
- Текстовый режим, основанный на библиотеках ncurses и S-Lang. Это позволяет программе работать как в консоли, так и в различных эмуляторах терминала и через удалённые соединения, например, по протоколу SSH;
- MC поставляется с поддержкой мыши. Мышь подключается, если вы запускаете MC с xterm терминала (эта функция также работает при подключении через telnet или rlogin c xterm) или с Linux консоли при наличии gpm mouse сервера;
- Поддержка многоязыкового интерфейса;
- Поддержка кодировки UTF-8 (начиная с 2009 года);
Установка Midnight Commander в Ubuntu Linux
sudo apt install mc
* Примечание: в некоторых версиях Ubuntu в репозитории по умолчанию может не быть Midnight Commander, поэтому перед установкой нужно его сначала добавить:
sudo add-apt-repository universe
sudo apt update
Запуск файлового менеджера осуществляется простой командой:
Проверить версию Midnight Commander’а можно с помощью команды:
UPD: Не так давно (2020-01-19) вышел новый релиз Midnight Commander — 4.8.24. Но его еще, к сожалению, нет в официальных репозиториях. При желании можно скачать и установить вручную:
tar -xvjf mc-4.8.24.tar.bz2
Если будет ошибка «S-Lang Library version 2.0 or newer not found» — установите: sudo apt-get install libslang2-dev
Настройка Midnight Commander
1. Изменение внешнего вида
Нажимаем F9 и открываем меню Options -> Layout:
Здесь можно изменить такие опции:
- Вид панели (Panel split) — Вертикальный/Горизонтальный;
- Отображение Меню (Menubar) — включить/выключить вверху;
- Отображение Командной строки (Command prompt) — внизу;
- Отображение Быстрых клавиш (Keybar visible);
- Отображение Подсказок (Hintbar visible);
- Отображение Заголовка окна терминала (XTerm window title);
- Отображение свободного дискового пространства (Show free space)
Знак X означает, что опция включена.
С помощью меню Options -> Appearance можно изменить скин файлового менеджера:
Цветовых схем в Midnight Commnader множество, можно выбрать наиболее приятную для своих глаз. Мой любимый скин — nicedark.
В меню Right есть возможность указать, что показывать в правой панели:
Я указал Quick view — быстрый просмотр файлов. Это значит, что при наведении на текстовый файл — в правой панели покажется его содержимое. Очень удобно. Также тут можно указать вывод любой другой информации — например информация о файле, дерево каталогов, листинг и многое другое на свой вкус.
Еще несколько интересных опций находятся в меню Options -> Panel options.
На вкладке Navigation включаем «Lynx like motion» — быстрая навигация по папкам с помощью стрелок влево/вправо на клавиатуре.
На вкладке Main options обязательно включаем «Show backup files», «Show hidden files» и «Auto save panels setups» — автосохранение всех изменений в панели.
На вкладке File highlight — включаем «Permissions» (подсветка прав на файлы и папки).
2. Включаем встроенный редактор MCEDIT
По умолчанию, для редактирования файлов в Midnight Commander используется стандартный редактор Linux — nano (или vim). Но у многих новичков могут возникнуть трудности в их освоении, поэтому лучшим вариантом, на мой взгляд, будет использовать простой и понятный встроенный редактор — mcedit.
Для этого переходим в меню Options -> Configuration и ставим X в опции «Use internal edit», после чего нажимаем ОК:
Теперь немного подстроим редактор под себя. Первым делом включаем отображение нумерации строк (ALT + N) и отключаем отображение пробелов в файле конфигурации Midnight Commander —
Важно: Чтобы все изменения, связанные с меню Options после перезапуска MC сохранились — выполните Options -> Save setup (в некоторых версия Autosave Setup включен по умолчанию), но я рекомендую перестраховаться.
3. Настройка автосохранения текущей папки в файловом менеджере
Странно, почему в MC до сих пор нет этой важной опции в настройках.
Скопируйте скрипт mc-wrapper.sh в папку /etc/profile.d командой:
cp /usr/lib/mc/mc-wrapper.sh /etc/profile.d
И добавьте в конец файла /etc/bash.bashrc строку:
alias mc=’. /etc/profile.d/mc-wrapper.sh’
Перезалогиньтесь — путь к директории теперь будет запоминаться.
Но, этот «фокус» работает только для пользователей, для «рута», к сожалению, не нашел способов. Насколько знаю, тикет по этому багу был открыт.
Горячие клавиши Midnight Commander
- F1 — справка;
- F2 — сохранить изменения в файле;
- F3 — просмотреть файл без возможности редактирования;
- F4 — открыть редактирование файла;
- F5 — копировать выделенное из одной панели в другую;
- F6 — переместить выделенное из одной панели в другую;
- F7 — создать папку;
- F8 — удалить файл/папку;
- F9 — вызов меню;
- F10 — выход из редактирования;
- TAB — переключение между панелями, переход от панели к консоли;
- SHIFT + * — выделить все файлы и папки;
- SHIFT + F4 — создать новый файл;
- SHIFT + INS — вставка фрагмента из буфера обмена;
- ALT + N — отображение нумерации строк в mcedit;
- ALT + L — перейти к строке по заданному номеру;
- CTRL + R — перечитать содержимое каталога;
- CTRL + O — скрыть/показать терминал, переход в консоль по умолчанию;
- CTRL + S — быстрый поиск по совпадению;
- CTRL + Y — удалить строку;
- СTRL + U — отменить последнее действие;
- Esc — выход, закрыть диалоговое окно;
Как обновить Midnight Commander?
sudo apt update && sudo apt upgrade -y
sudo add-apt-repository ppa:eugenesan/ppa
sudo apt install mc
С помощью данных команд я обновил свой MC 4.8.19 до 4.8.22.
Источник