mirror of
https://github.com/webmin/webmin.git
synced 2026-06-28 15:00:25 +01:00
Merge branch 'master' of github.com:webmin/webmin
This commit is contained in:
38
README.md
38
README.md
@@ -1,18 +1,31 @@
|
||||
## Contents
|
||||
|
||||
<p align="center"><img src="https://user-images.githubusercontent.com/4426533/218263860-f7baf9d6-cb19-4ddc-86dc-ac1b7a3c3a8a.png" alt="Webmin" width="310px"></p>
|
||||
|
||||
<p align="center"> <a href="https://webmin.com/docs/" target="_blank">Documentation</a> | <a href="https://webmin.com/faq/" target="_blank">FAQ</a> | <a href="https://webmin.com/security/" target="_blank">Security</a> | <a href="https://webmin.com/screenshots/" target="_blank">Screenshots</a> | <a href="https://forum.virtualmin.com/c/webmin/12" target="_blank">Forum</a> <br><br> <a href="https://webmin.com/"><img src="https://img.shields.io/badge/downloads-25M+-brightgreen.svg" alt="Downloads"></a> <a href="https://github.com/webmin/webmin/releases/"><img src="https://img.shields.io/github/release/webmin/webmin" alt="Latest release"></a> <a href="https://github.com/webmin/webmin/stargazers"><img src="https://img.shields.io/github/stars/webmin/webmin" alt="Stars"></a> <a href="https://github.com/webmin/webmin/network/members"><img src="https://img.shields.io/github/forks/webmin/webmin" alt="Members"></a> <a href="https://github.com/webmin/webmin/contributors/"><img src="https://img.shields.io/github/contributors/webmin/webmin" alt="Contributors"></a> <a href="https://github.com/webmin/webmin/issues/"><img src="https://img.shields.io/github/issues-raw/webmin/webmin" alt="Issues"></a> <a href="https://github.com/webmin/webmin/blob/master/LICENCE"><img src="https://img.shields.io/github/license/webmin/webmin" alt="License"></a> </p>
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
* [Changelog](https://github.com/webmin/webmin/blob/master/CHANGELOG.md)
|
||||
* [About](#about)
|
||||
* [Installation](#installation)[<img src="https://github.com/webmin-devel/webmin/blob/master/media/download-23x14-stable.png?raw=true" title="Stable Versions">](https://webmin.com/download.html)[<img src="https://github.com/webmin-devel/webmin/blob/master/media/download-23x14-devel.png?raw=true" title="Development Versions">](https://webmin.com/devel.html)
|
||||
* [Documentation](#documentation)
|
||||
* [Installation](#installation)
|
||||
* [Development](#development)
|
||||
* [License](#license)
|
||||
|
||||
* [中文版](https://github.com/webmin/webmin/blob/master/README-zh.md)
|
||||
|
||||
## About
|
||||
|
||||
**Webmin** is a web-based system administration tool for Unix-like servers, and services with over _1,000,000_ installations worldwide. Using it, it is possible to configure operating system internals, such as users, disk quotas, services or configuration files, as well as modify, and control open-source apps, such as BIND DNS Server, Apache HTTP Server, PHP, MySQL, and [many more](https://doxfer.webmin.com/Webmin/Introduction).
|
||||
**Webmin** is a web-based system administration tool for Unix-like servers, and services with about _1,000,000_ yearly installations worldwide. Using it, it is possible to configure operating system internals, such as users, disk quotas, services or configuration files, as well as modify, and control open-source apps, such as BIND DNS Server, Apache HTTP Server, PHP, MySQL, and many more.
|
||||
|
||||
[](https://www.youtube.com/watch?v=daYG6O4AsEw)
|
||||
<p align="center">
|
||||
<a href="https://webmin.com/screenshots/#gh-light-mode-only" target="_blank">
|
||||
<img width="1440" alt="Dashboard screenshot" src="https://user-images.githubusercontent.com/4426533/218264253-c08fb45a-8d75-44bf-93b3-37a2ecae3d20.png">
|
||||
</a>
|
||||
<a href="https://webmin.com/screenshots/#gh-dark-mode-only" target="_blank">
|
||||
<img width="1440" alt="Dashboard screenshot" src="https://user-images.githubusercontent.com/4426533/218265232-31140aa6-ada1-4019-bd75-04240aeabc83.png">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
Usability can be expanded by installing modules, which can be custom made. Aside from this, there are two other major projects that extend its functionality:
|
||||
|
||||
@@ -26,16 +39,7 @@ Webmin includes _116_ [standard modules](https://doxfer.webmin.com/Webmin/Webmin
|
||||
Perl 5.10 or higher.
|
||||
|
||||
## Installation
|
||||
Webmin can be installed in two different ways:
|
||||
|
||||
1. By downloading a pre-built package, available for different distributions (CentOS, Fedora, SuSE, Mandriva, Debian, Ubuntu, Solaris and [other](https://www.webmin.com/support.html)) under [latest release assets](https://github.com/webmin/webmin/releases/latest) or from our [download page](https://webmin.com/download.html);
|
||||
<kbd>Note: It is highly recommended to [add repository](https://doxfer.webmin.com/Webmin/Installation) to your system for having automatic updates.</kbd>
|
||||
|
||||
2. By downloading, extracting [source file](https://prdownloads.sourceforge.net/webadmin/webmin-2.013.tar.gz), and running [_setup.sh_](https://www.webmin.com/tgz.html) script, with no arguments, which will setup to run it directly from this directory, or with a command-line argument, such as targeted directory.
|
||||
<kbd>Note: If you are installing Webmin [on Windows](https://www.webmin.com/windows.html) system, you must run the command `perl setup.pl` instead. The Windows version depends on several programs, and modules that may not be part of the standard distribution. You will need _process.exe_ command, _sc.exe_ command, and _Win32::Daemon_ Perl module.</kbd>
|
||||
|
||||
## Documentation
|
||||
Complete set of documentation for Webmin and all of its modules can be found at out [Wiki page](https://doxfer.webmin.com/Webmin/Main_Page).
|
||||
For detailed installation instructions check our guide on [webmin.com/download](https://webmin.com/download) page.
|
||||
|
||||
## Development
|
||||
|
||||
|
||||
@@ -50,16 +50,19 @@ if [ -z "$osid" ]; then
|
||||
echo "${RED}Error:${NORMAL} Failed to detect OS!"
|
||||
exit 1
|
||||
fi
|
||||
osid=$(echo "$osid" | sed 's/\s.*$//')
|
||||
|
||||
# Derivatives precise test
|
||||
osid_debian_like=$(echo "$osid" | grep debian)
|
||||
osid_rhel_like=$(echo "$osid" | grep rhel)
|
||||
|
||||
# Setup OS dependent
|
||||
if [ "$osid" = "debian" ]; then
|
||||
if [ -n "$osid_debian_like" ]; then
|
||||
package_type=deb
|
||||
install_cmd="apt-get install"
|
||||
install="$install_cmd --quiet --assume-yes"
|
||||
clean="apt-get clean"
|
||||
update="apt-get update"
|
||||
elif [ "$osid" = "rhel" ]; then
|
||||
elif [ -n "$osid_rhel_like" ]; then
|
||||
package_type=rpm
|
||||
if command -pv dnf 1>/dev/null 2>&1; then
|
||||
install_cmd="dnf install"
|
||||
@@ -70,6 +73,9 @@ elif [ "$osid" = "rhel" ]; then
|
||||
install="$install_cmd -y"
|
||||
clean="yum clean all"
|
||||
fi
|
||||
else
|
||||
echo "${RED}Error:${NORMAL} Unknown OS : $osid"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Ask first
|
||||
@@ -100,7 +106,7 @@ fi
|
||||
|
||||
|
||||
# Check if GPG command is installed
|
||||
if [ "$osid" = "debian" ]; then
|
||||
if [ -n "$osid_debian_like" ]; then
|
||||
if [ ! -x /usr/bin/gpg ]; then
|
||||
$update 1>/dev/null 2>&1
|
||||
$install gnupg 1>/dev/null 2>&1
|
||||
@@ -169,12 +175,8 @@ deb)
|
||||
esac
|
||||
|
||||
# Could not setup
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "${RED}Error:${NORMAL} Could not setup repositories!"
|
||||
else
|
||||
if [ ! -x "/usr/bin/webmin" ]; then
|
||||
echo "Webmin package can now be installed using ${GREEN}${BOLD}${ITALIC}$install_cmd webmin${NORMAL} command."
|
||||
fi
|
||||
if [ ! -x "/usr/bin/webmin" ]; then
|
||||
echo "Webmin package can now be installed using ${GREEN}${BOLD}${ITALIC}$install_cmd webmin${NORMAL} command."
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -12914,7 +12914,9 @@ eval {
|
||||
if (!$@ && $locale_system) {
|
||||
$locale_system =~ s/\..*//;
|
||||
$locale_system =~ s/_/-/;
|
||||
return $locale_system;
|
||||
my $locales = &list_locales();
|
||||
return $locale_system
|
||||
if ($locales->{$locale_system});
|
||||
}
|
||||
return $locale_def;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user