summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-08-18 22:07:51 +0200
committerpolo <ordipolo@gmx.fr>2026-08-18 22:07:51 +0200
commitbfdd14f0ad318be4622c9b07fd30f686f8c523d5 (patch)
treedb19ed2e43b14643a167315d77115d661317c55a
downloadrustdesk-scripts-bfdd14f0ad318be4622c9b07fd30f686f8c523d5.tar.gz
rustdesk-scripts-bfdd14f0ad318be4622c9b07fd30f686f8c523d5.tar.bz2
rustdesk-scripts-bfdd14f0ad318be4622c9b07fd30f686f8c523d5.zip
first commit
-rw-r--r--assets/favicon.pngbin0 -> 928 bytes
-rw-r--r--assets/logo.pngbin0 -> 81428 bytes
-rw-r--r--assets/ordipolo.pngbin0 -> 57420 bytes
-rw-r--r--client/rustdesk-x64.msibin0 -> 24825856 bytes
-rw-r--r--client/rustdesk-x86.exebin0 -> 11951472 bytes
-rw-r--r--client/rustdesk.debbin0 -> 23375776 bytes
-rw-r--r--client/rustdesk.tar.zstbin0 -> 25258736 bytes
-rw-r--r--index.php2
-rw-r--r--main.css258
-rw-r--r--matomo.php25
-rw-r--r--rustdesk.txt4
-rwxr-xr-xscripts/rustdesk-arch.sh15
-rw-r--r--scripts/rustdesk-deb.sh35
-rw-r--r--scripts/rustdesk.bat101
-rw-r--r--template.php36
-rw-r--r--view.php7
16 files changed, 483 insertions, 0 deletions
diff --git a/assets/favicon.png b/assets/favicon.png
new file mode 100644
index 0000000..09300a5
--- /dev/null
+++ b/assets/favicon.png
Binary files differ
diff --git a/assets/logo.png b/assets/logo.png
new file mode 100644
index 0000000..2976a9c
--- /dev/null
+++ b/assets/logo.png
Binary files differ
diff --git a/assets/ordipolo.png b/assets/ordipolo.png
new file mode 100644
index 0000000..03cdd07
--- /dev/null
+++ b/assets/ordipolo.png
Binary files differ
diff --git a/client/rustdesk-x64.msi b/client/rustdesk-x64.msi
new file mode 100644
index 0000000..99a0870
--- /dev/null
+++ b/client/rustdesk-x64.msi
Binary files differ
diff --git a/client/rustdesk-x86.exe b/client/rustdesk-x86.exe
new file mode 100644
index 0000000..cfd5157
--- /dev/null
+++ b/client/rustdesk-x86.exe
Binary files differ
diff --git a/client/rustdesk.deb b/client/rustdesk.deb
new file mode 100644
index 0000000..7643fdb
--- /dev/null
+++ b/client/rustdesk.deb
Binary files differ
diff --git a/client/rustdesk.tar.zst b/client/rustdesk.tar.zst
new file mode 100644
index 0000000..cf7ce34
--- /dev/null
+++ b/client/rustdesk.tar.zst
Binary files differ
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..012c692
--- /dev/null
+++ b/index.php
@@ -0,0 +1,2 @@
1<?php
2require 'view.php';
diff --git a/main.css b/main.css
new file mode 100644
index 0000000..27e3f80
--- /dev/null
+++ b/main.css
@@ -0,0 +1,258 @@
1body
2{
3 font-size: 100%;
4 font-family: sans;
5 /* pour enlever la bande de la couleur du fond en haut et en bas de la page */
6 margin: 0;
7 background-color: #F0EC41;
8}
9
10#bloc_page
11{
12 max-width: 1200px;
13 /* la largeur max indiquée sert à réduire la variété des largeurs d'écran à prendre en compte */
14 margin: auto;
15 padding: 0 20px 30px 20px;
16 background-color: white;
17}
18
19h1
20{
21 font-weight: normal;
22 display: inline-block;
23 margin: 5px;
24 border: 2px #008100 solid;
25 border-radius: 12px;
26 padding: 3px;
27 background-color: #F4F02D;
28 font-size: 120%;
29}
30
31h2
32{
33 font-weight: normal;
34 font-size: 110%;
35 text-decoration: underline;
36}
37
38p
39{
40 margin: 10px;
41}
42
43a
44{
45 color: black;
46 /* les liens déjà cliqués restent noirs */
47}
48
49a:hover /* liens survolés par la souris */
50{
51 color: #004F00;
52}
53
54.lien:hover
55{
56 font-weight: bold;
57}
58
59/* En-tête. */
60header
61{
62 background-color: white;
63 display: flex;
64 flex-direction: column;
65 align-items: center;
66 margin-bottom: 20px;
67}
68
69header div, header p
70{
71 margin-top: 5px;
72}
73
74#logohaut
75{
76 width: 200px;
77
78 /* cacher petit logo */
79 display: none;
80}
81
82#logotitre
83{
84 height: 90px;
85}
86
87/* Menu de navigation. */
88nav
89{
90 position: fixed;
91 z-index: 2; /* pour être dessus des prestations */
92 text-align: center;
93}
94
95nav a
96{
97 display: inline-block; /* menu horizontal */
98 border: 2px #008100 solid;
99 border-radius: 12px;
100 padding: 3px;
101 margin: 2px;
102 background-color: #F4F02D;
103 font-size: 110%;
104 text-decoration: none;
105}
106
107/* "vous êtes ici" */
108#actuelle
109{
110 color: #004F00;
111 border: 3px #004F00 solid;
112}
113
114/* Corps de page. */
115article
116{
117 margin-left: 20px;
118}
119
120#description
121{
122 margin: 0;
123 font-size: 110%;
124}
125
126.photo
127{
128 border: 2px #008100 solid;
129 border-radius: 10px;
130}
131
132h3
133{
134 margin: 10px;
135 border: 2px #008100 solid;
136 border-radius: 12px;
137 padding: 3px;
138 text-align: center;
139 font-size: 100%;
140 background-color: white;
141}
142
143h3 a
144{
145 text-decoration: none;
146}
147
148table
149{
150 margin: 10px;
151 max-width: 470px;
152 /* fusionner les bordures */
153 border-collapse: collapse;
154}
155
156caption span
157{
158 font-size: 110%;
159 text-decoration: underline;
160}
161
162caption i
163{
164 font-size: 90%;
165}
166
167td
168{
169
170 border: 1px black solid;
171}
172
173pre
174{
175 font-family: sans-serif;
176 font-size: 90%;
177 white-space: pre-wrap;
178 margin: 0 10px 10px 10px;
179 padding: 4px;
180 background-color: #f0f0f0;
181}
182
183a img
184{
185 border: none;
186 /* retire la bordure bleue sur certains navigateurs */
187}
188
189.parties
190{
191 margin: 10px 0 15px 0;
192}
193
194textarea
195{
196 width: 500px;
197 height: 200px;
198}
199
200/* lien fixe en bas */
201footer
202{
203 display: flex;
204 flex-direction: column;
205 align-items: center;
206}
207
208footer h1
209{
210 position: fixed;
211 bottom: 0;
212 margin: 2px; /* de 5 par défaut */
213 text-align: center;
214}
215footer a
216{
217 text-decoration: none;
218}
219
220/* design responsive */
221@media screen and (max-width: 710px)
222{
223 nav a
224 {
225 font-size: 100%;
226 }
227
228 h1
229 {
230 font-size: 110%;
231 }
232
233 textarea
234 {
235 width: 400px;
236 height: 150px;
237 }
238}
239
240@media screen and (max-width: 500px)
241{
242 #logohaut
243 {
244 /* afficher petit logo */
245 display: inline;
246 }
247 #logotitre
248 {
249 /* cacher grand logo */
250 display: none;
251 }
252
253 textarea
254 {
255 width: 270px;
256 height: 100px;
257 }
258}
diff --git a/matomo.php b/matomo.php
new file mode 100644
index 0000000..238ae62
--- /dev/null
+++ b/matomo.php
@@ -0,0 +1,25 @@
1<?php
2$cookies = 'remote.ordipolo.fr';
3$domain = 'remote.ordipolo.fr';
4$server = 'matomo.ordipolo.fr';
5?>
6
7<!-- Matomo -->
8<script>
9 var _paq = window._paq = window._paq || [];
10 /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
11 _paq.push(["setCookieDomain", "*.<?= $cookies ?>"]);
12 _paq.push(["setDomains", ["*.<?= $domain ?>"]]);
13 _paq.push(["disableCookies"]);
14 _paq.push(['trackPageView']);
15 _paq.push(['enableLinkTracking']);
16 (function() {
17 var u="//<?= $server ?>/";
18 _paq.push(['setTrackerUrl', u+'matomo.php']);
19 _paq.push(['setSiteId', '1']);
20 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
21 g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
22 })();
23</script>
24<noscript><p><img referrerpolicy="no-referrer-when-downgrade" src="//<?= $server ?>/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt="" /></p></noscript>
25<!-- End Matomo Code -->
diff --git a/rustdesk.txt b/rustdesk.txt
new file mode 100644
index 0000000..06b2a1b
--- /dev/null
+++ b/rustdesk.txt
@@ -0,0 +1,4 @@
1remote.ordipolo.fr
2R7CHxukdXNeeuV0A5r9n6lDVoIFTvdc050JFtucO7UM=
3
4rustdesk.msi --config 9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye
diff --git a/scripts/rustdesk-arch.sh b/scripts/rustdesk-arch.sh
new file mode 100755
index 0000000..52f7175
--- /dev/null
+++ b/scripts/rustdesk-arch.sh
@@ -0,0 +1,15 @@
1#!/bin/bash
2# version archlinux
3
4url=https://remote.ordipolo.fr/scripts/rustdesk.tar.zst
5file=/tmp/rustdesk.tar.zst
6config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye
7
8if [ ! -f $file ]; then
9 wget -O $file $url || exit 1
10fi
11
12sudo pacman -U $file --noconfirm || exit 1
13sudo rustdesk --config $config || exit 1
14
15rustdesk &
diff --git a/scripts/rustdesk-deb.sh b/scripts/rustdesk-deb.sh
new file mode 100644
index 0000000..1dd29db
--- /dev/null
+++ b/scripts/rustdesk-deb.sh
@@ -0,0 +1,35 @@
1#!/bin/bash
2# version debian
3
4url=https://remote.ordipolo.fr/scripts/rustdesk.deb
5file=/tmp/rustdesk.deb
6config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye
7
8
9if [ ! -f $file ]; then
10 wget -O $file $url || exit 1
11fi
12
13
14new_version=$(dpkg-deb -f "$file" Version)
15installed_version=$(dpkg-query -W -f='${Version}' rustdesk 2>/dev/null || true)
16echo "Version installée : ${installed_version:-aucune}"
17echo "Version disponible : $new_version"
18
19if [ -z "$installed_version" ]; then
20 echo "RustDesk n'est pas installé. Installation..."
21 sudo apt install -y "$file"
22elif dpkg --compare-versions "$new_version" gt "$installed_version"; then
23 echo "Nouvelle version détectée. Mise à jour..."
24 sudo apt install -y "$file"
25else
26 echo "RustDesk est déjà à jour."
27fi
28
29
30sudo rustdesk --config $config
31mkdir -p ~/.config/rustdesk
32sudo cp /root/.config/rustdesk/RustDesk2.toml "$HOME/.config/rustdesk/RustDesk2.toml"
33sudo chown "$USER:$USER" "$HOME/.config/rustdesk/RustDesk2.toml"
34
35rustdesk &
diff --git a/scripts/rustdesk.bat b/scripts/rustdesk.bat
new file mode 100644
index 0000000..e6e6ae4
--- /dev/null
+++ b/scripts/rustdesk.bat
@@ -0,0 +1,101 @@
1rem version windows
2
3@echo off
4setlocal
5
6net session >nul 2>&1
7if %errorlevel% neq 0 (
8 echo les droits administrateur sont necessaires
9 powershell -Command "Start-Process '%~f0' -Verb RunAs"
10 exit /b
11)
12
13set config=9JSPNV1NPNWd0ZkSwUDMjRmdUZUSvZFRsZjb5IXNBBjV1VWZOhFZrVHeIN0NSJiOikXZrJCLiIiOikGchJCLiInZu8GbvBXakJ3buUGdv1WZyJiOikXYsVmciwiIyZmLvx2bwlGZy9mLlR3btVmciojI0N3boJye
14
15if defined PROCESSOR_ARCHITEW6432 (
16 set "ARCH=64"
17) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
18 set "ARCH=64"
19) else (
20 set "ARCH=32"
21)
22if "%ARCH%"=="64" (
23 set "URL=https://remote.ordipolo.fr/scripts/rustdesk-x64.msi"
24 set "INSTALLER=C:\Temp\rustdesk.msi"
25) else (
26 set "URL=https://remote.ordipolo.fr/scripts/rustdesk-x86.exe"
27 set "INSTALLER=C:\Temp\rustdesk.exe"
28)
29echo Architecture : %ARCH% bits
30echo URL : %URL%
31echo Installateur : %INSTALLER%
32
33if not exist "C:\Temp" mkdir "C:\Temp"
34
35if exist "C:\Program Files\RustDesk\rustdesk.exe" (
36 echo RustDesk est deja installe
37 "C:\Program Files\RustDesk\rustdesk.exe" --config "%config%"
38 timeout /t 2 /nobreak >nul
39 start "" "C:\Program Files\RustDesk\rustdesk.exe"
40 exit /b
41)
42
43
44@where curl.exe >nul 2>&1
45
46@if %errorlevel%==0 (
47 echo Telechargement de RustDesk via cURL
48 curl.exe -fL -z "%INSTALLER%" -o "%INSTALLER%" "%URL%" || exit /b 1
49
50) else (
51 if not exist "%INSTALLER%" (
52 echo Telechargement de RustDesk via PowerShell
53 powershell -NoProfile -ExecutionPolicy Bypass -Command ^
54 "$web_client = New-Object Net.WebClient; $web_client.DownloadFile('%URL%', '%INSTALLER%')" ^
55 || exit /b 1
56 ) else (
57 echo RustDesk deja telecharge
58 )
59)
60
61
62echo Installation de RustDesk
63if "%ARCH%"=="64" (
64 msiexec /i "%INSTALLER%" /qn INSTALLPRINTER=N
65 goto INSTALL_OK
66)
67
68rem évite de mettre :WAIT_INSTALL dans un bloc if, else, etc
69start "" /wait "%INSTALLER%" --silent-install
70if errorlevel 1 (
71 echo "erreur de l'installation de RustDesk"
72 exit /b 1
73)
74
75rem parce que start "" /wait peut ne pas avoir le comportement attendu
76set /a COUNT=0
77:WAIT_INSTALL
78if exist "C:\Program Files\RustDesk\rustdesk.exe" (
79 echo installation terminee
80 goto INSTALL_OK
81)
82set /a COUNT+=1
83if %COUNT% GEQ 60 (
84 echo erreur installation non reussie apres 60s
85 exit /b 1
86)
87timeout /t 1 /nobreak >nul
88goto WAIT_INSTALL
89
90:INSTALL_OK
91
92
93echo Installation du service
94"C:\Program Files\RustDesk\rustdesk.exe" --install-service
95timeout /t 3 /nobreak >nul
96
97echo Application de la configuration
98"C:\Program Files\RustDesk\rustdesk.exe" --config "%config%"
99timeout /t 2 /nobreak >nul
100
101start "" "C:\Program Files\RustDesk\rustdesk.exe"
diff --git a/template.php b/template.php
new file mode 100644
index 0000000..a59746f
--- /dev/null
+++ b/template.php
@@ -0,0 +1,36 @@
1<!DOCTYPE html>
2<html lang="fr">
3<head>
4 <meta charset="utf-8">
5 <title>ORDIPOLO rustdesk scripts</title>
6 <link rel="icon" type="image/png" href="assets/favicon.png">
7 <link rel="stylesheet" href="main.css">
8 <meta name="viewport" content="width=device-width">
9 <?php include("matomo.php"); ?>
10</head>
11<body>
12 <div id="bloc_page">
13 <header>
14 <div>
15 <img id="logohaut" src="assets/logo.png" alt="ordipolo dépannage informatique Quimper">
16 <img id="logotitre" src="assets/ordipolo.png" alt="ordipolo dépannage informatique Quimper">
17 </div>
18 </header>
19 <h1>Scripts d'installation de Rustdesk</h1>
20 <section>
21 <div>
22 <p>Télécharger le script correspondant à votre système d'exploitation à l'aide d'un des liens ci-dessous.</p>
23 <p>Ce script doit être exécuté en tant qu'administrateur.</p>
24 <p>Utilisateurs Windows: </p>
25 <p>Utilisateurs Linux, ce script doit être exécutable:</p>
26 <pre>sudo chmod +r script.sh</pre>
27
28 </div>
29 </section>
30 <h1>Liens de téléchargement</h1>
31 <section>
32 <?= $script_links ?>
33 </section>
34 </div>
35</body>
36</html>
diff --git a/view.php b/view.php
new file mode 100644
index 0000000..9134e59
--- /dev/null
+++ b/view.php
@@ -0,0 +1,7 @@
1<?php
2$systems = ['win' => 'Windows', 'deb' => 'Debian, Ubuntu, Linux Mint', 'arch' => 'Archlinux, Manjaro'];
3$script_links = '';
4foreach($systems as $key => $value){
5 $script_links .= '<p><a href="script-dl.php?os=' . $key . '">' . $value . '</a></p>';
6}
7require 'template.php';