Commands
De JFCM
Compresser :
tar -czvf nom-de-l-archive.tar.gz /chemin/vers/répertoire-ou-fichier
- Créer une archive : tar cf nom_archive.tar fichier1 fichier2
- Voir le contenu d'une archive : tar tf fichier.tar
- Extraire tout le contenu d'une archive : tar xf fichier.tar
- Extraire certains fichiers d'une archive : tar xf nom_archive.tar fichier1 fichier2
Portail de ma R&D[modifier]
Linux[modifier]
Ensure OS is up-to-date
sudo apt update sudo apt upgrade
or in one line
sudo apt update && sudo apt upgrade
LAMP
sudo apt-get install apache2 mariadb-server php php-mysql libapache2-mod-php php-xml php-mbstring
- Alternative PHP Cache : php-apcu : Modern MediaWiki versions will automatically take advantage of this being installed for improved performance.
- PHP Unicode normalization : php-intl : MediaWiki will fallback to a slower PHP implementation if not available.
- ImageMagick : imagemagick : Image thumbnailing.
- Inkscape : inkscape :Alternative means of SVG thumbnailing, than ImageMagick. Sometimes it will render SVGs better if originally created in *
Inkscape.
- PHP GD library : php-gd : Alternative to ImageMagick for image thumbnailing.
- PHP command-line : php-cli : Ability to run PHP commands from the command line, which is useful for debugging and running maintenance scripts.
- PHP cURL : php-curl : Required by some extensions such as Extension:Math. See Manual:cURL
git source control version : git : If not present config script will tell you that it is not installed
- Basic Calculator php-bcmath In order to make the visualeditor work on 32bit machines, like a raspi
sudo apt-get install packagename.
If you want to install all of them:
sudo apt-get install php-apcu php-intl imagemagick inkscape php-gd php-cli php-curl php-bcmath git
If you install php-apcu you will have to reload your apache configuration in order to avoid a warning message when running configuration script:
sudo service apache2 reload
Fichiers symboliques :
ln -s /wiki/FAQ FAQ ln -s /wiki/wiki.phtml wiki.phtml ln -s /wiki/StartProfiler.sample StartProfiler.sample ln -s /wiki/composer-example.json composer-example.json ln -s /wiki/api.php5 api.php5 ln -s /wiki/load.php5 load.php5 ln -s /wiki/index.php5 index.php5 ln -s /wiki/img_auth.php5 img_auth.php5 ln -s /wiki/profileinfo.php5 profileinfo.php5 ln -s /wiki/thumb.php5 thumb.php5 ln -s /wiki/opensearch_desc.php5 opensearch_desc.php5 ln -s /wiki/thumb_handler.php5 thumb_handler.php5 ln -s /wiki/cache/ cache ln -s /wiki/docs/ docs ln -s /wiki/extensions/ extensions ln -s /wiki/includes/ includes ln -s /wiki/languages/ languages ln -s /wiki/maintenance/ maintenance ln -s /wiki/mw-config/ mw-config ln -s /wiki/resources/ resources ln -s /wiki/serialized/ serialized ln -s /wiki/skins/ skins ln -s /wiki/profileinfo.php profileinfo.php ln -s /wiki/UPGRADE UPGRADE ln -s /wiki/php php ln -s /wiki/thumb.php thumb.php ln -s /wiki/COPYING COPYING ln -s /wiki/thumb_handler.php thumb_handler.php ln -s /wiki/README README ln -s /wiki/index.php index.php ln -s /wiki/load.php load.php ln -s /wiki/ext ext ln -s /wiki/INSTALL INSTALL ln -s /wiki/opensearch_desc.php opensearch_desc.php ln -s /wiki/CREDITS CREDITS ln -s /wiki/api.php api.php ln -s /wiki/HISTORY HISTORY ln -s /wiki/img_auth.php img_auth.php mkdir images chmod 777 images mkdir dirsafe chmod 777 dirsafe ls -l
ln -s /wiki/FAQ FAQ ln -s /wiki/wiki.phtml wiki.phtml ln -s /wiki/StartProfiler.sample StartProfiler.sample ln -s /wiki/composer-example.json composer-example.json ln -s /wiki/api.php5 api.php5 ln -s /wiki/load.php5 load.php5 ln -s /wiki/index.php5 index.php5 ln -s /wiki/img_auth.php5 img_auth.php5 ln -s /wiki/profileinfo.php5 profileinfo.php5 ln -s /wiki/thumb.php5 thumb.php5 ln -s /wiki/opensearch_desc.php5 opensearch_desc.php5 ln -s /wiki/thumb_handler.php5 thumb_handler.php5 ln -s /wiki/cache/ cache ln -s /wiki/docs/ docs ln -s /wiki/extensions/ extensions ln -s /wiki/includes/ includes ln -s /wiki/languages/ languages ln -s /wiki/maintenance/ maintenance ln -s /wiki/mw-config/ mw-config ln -s /wiki/resources/ resources ln -s /wiki/serialized/ serialized ln -s /wiki/skins/ skins ln -s /wiki/profileinfo.php profileinfo.php ln -s /wiki/UPGRADE UPGRADE ln -s /wiki/php php ln -s /wiki/thumb.php thumb.php ln -s /wiki/COPYING COPYING ln -s /wiki/thumb_handler.php thumb_handler.php ln -s /wiki/README README ln -s /wiki/index.php index.php ln -s /wiki/load.php load.php ln -s /wiki/ext ext ln -s /wiki/INSTALL INSTALL ln -s /wiki/opensearch_desc.php opensearch_desc.php ln -s /wiki/CREDITS CREDITS ln -s /wiki/api.php api.php ln -s /wiki/HISTORY HISTORY ln -s /wiki/img_auth.php img_auth.php mkdir images chmod 777 images mkdir dirsafe chmod 777 dirsafe ls -l
Montpellia.fr[modifier]
ln -s /wiki/FAQ FAQ ln -s /wiki/wiki.phtml wiki.phtml ln -s /wiki/StartProfiler.sample StartProfiler.sample ln -s /wiki/composer-example.json composer-example.json ln -s /wiki/api.php5 api.php5 ln -s /wiki/load.php5 load.php5 ln -s /wiki/index.php5 index.php5 ln -s /wiki/img_auth.php5 img_auth.php5 ln -s /wiki/profileinfo.php5 profileinfo.php5 ln -s /wiki/thumb.php5 thumb.php5 ln -s /wiki/opensearch_desc.php5 opensearch_desc.php5 ln -s /wiki/thumb_handler.php5 thumb_handler.php5 ln -s /wiki/cache/ cache ln -s /wiki/docs/ docs ln -s /wiki/extensions/ extensions ln -s /wiki/includes/ includes ln -s /wiki/languages/ languages ln -s /wiki/maintenance/ maintenance ln -s /wiki/mw-config/ mw-config ln -s /wiki/resources/ resources ln -s /wiki/serialized/ serialized ln -s /wiki/skins/ skins ln -s /wiki/profileinfo.php profileinfo.php ln -s /wiki/UPGRADE UPGRADE ln -s /wiki/php php ln -s /wiki/thumb.php thumb.php ln -s /wiki/COPYING COPYING ln -s /wiki/thumb_handler.php thumb_handler.php ln -s /wiki/README README ln -s /wiki/index.php index.php ln -s /wiki/load.php load.php ln -s /wiki/ext ext ln -s /wiki/INSTALL INSTALL ln -s /wiki/opensearch_desc.php opensearch_desc.php ln -s /wiki/CREDITS CREDITS ln -s /wiki/api.php api.php ln -s /wiki/HISTORY HISTORY ln -s /wiki/img_auth.php img_auth.php mkdir images chmod 777 images mkdir dirsafe chmod 777 dirsafe ls -l
Montpellia.fr - LocalSettings.php[modifier]
<?php # This file was automatically generated by the MediaWiki 1.39.4 # installer. If you make manual changes, please keep track in case you # need to recreate them later. # # See docs/Configuration.md for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # # Further documentation for configuration settings may be found at: # https://www.mediawiki.org/wiki/Manual:Configuration_settings # Protect against web entry if ( !defined( 'MEDIAWIKI' ) ) { exit; } ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; $wgSitename = "montpellia"; $wgMetaNamespace = "Montpellia"; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs ## (like /w/index.php/Page_title to /wiki/Page_title) please see: ## https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = ""; ## The protocol and server name to use in fully-qualified URLs $wgServer = "https://www.montpellia.fr"; ## The URL path to static resources (images, scripts, etc.) $wgResourceBasePath = $wgScriptPath; ## The URL paths to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! $wgLogos = [ '1x' => "$wgResourceBasePath/resources/assets/change-your-logo.svg", 'icon' => "$wgResourceBasePath/resources/assets/change-your-logo-icon.svg", ]; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "info@montpellia.fr"; $wgPasswordSender = "info@montpellia.fr"; $wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = false; # UPO $wgEmailAuthentication = true; ## Database settings $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "nuqt0273_mw19937"; $wgDBuser = "nuqt0273_mw19937"; $wgDBpassword = "2S9pP)1.Ic"; # MySQL specific settings $wgDBprefix = "mia_"; # MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; # Shared database table # This has no effect unless $wgSharedDB is also set. $wgSharedTables[] = "actor"; ## Shared memory settings $wgMainCacheType = CACHE_NONE; $wgMemCachedServers = []; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; #$wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert"; # InstantCommons allows wiki to use images from https://commons.wikimedia.org $wgUseInstantCommons = false; # Periodically send a pingback to https://www.mediawiki.org/ with basic data # about this MediaWiki instance. The Wikimedia Foundation shares this data # with MediaWiki developers to help guide future development efforts. $wgPingback = true; # Site language code, should be one of the list in ./includes/languages/data/Names.php $wgLanguageCode = "en"; # Time zone $wgLocaltimezone = "America/New_York"; ## Set $wgCacheDirectory to a writable directory on the web server ## to make your wiki go slightly faster. The directory should not ## be publicly accessible from the web. #$wgCacheDirectory = "$IP/cache"; $wgSecretKey = "1b4d2b076ee61574a0cb6c82bc1b733eec8fad381b31c9e18b9e85944b607688"; # Changing this will log out all existing sessions. $wgAuthenticationTokenVersion = "1"; # Site upgrade key. Must be set to a string (default provided) to turn on the # web installer while LocalSettings.php is in place $wgUpgradeKey = "s5yfodam1ilhiooc"; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; # Path to the GNU diff3 utility. Used for conflict resolution. $wgDiff3 = "/usr/bin/diff3"; ## Default skin: you can change the default skin. Use the internal symbolic ## names, e.g. 'vector' or 'monobook': $wgDefaultSkin = "vector"; # Enabled skins. # The following skins were automatically enabled: wfLoadSkin( 'MinervaNeue' ); wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Timeless' ); wfLoadSkin( 'Vector' ); wfLoadExtension ( 'VisualEditor' ); # End of automatically generated settings. # Add more configuration options below. $wgTmpDirectory = "/home/nuqt0273/tmp_8vexbp";