Command | Description |
---|---|
multipass launch --name <name> --memory <size> |
Launch a new VM with specified RAM. Example: --memory 4G for 4 GB of RAM. |
multipass launch --name <name> --disk <size> |
Launch a new VM with specified disk space. Example: --disk 20G for 20 GB. |
multipass launch --name <name> --cpus <count> |
Launch a new VM with specified number of CPUs. Example: --cpus 2 for 2 CPUs. |
multipass transfer <file> <vm-name>:<destination> |
Copy files from the host to the specified VM. |
multipass transfer : |
Copy files from the VM to the host. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
# Paquets requis : nvidia-utils, python3, python3-pip, pip3, lm-sensors, nvme-cl, smartmontools, docker.io | |
# Libs python : | |
# pip3 install psutil textual rich | |
# 'r' pour recharger, 'q' pour quitter | |
from textual.app import App, ComposeResult | |
from textual.containers import Horizontal, Vertical | |
from textual.widgets import Static | |
from textual.reactive import reactive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Vérifie si sudo est disponible | |
if ! command -v sudo &>/dev/null; then | |
echo "❌ sudo n'est pas installé. Abandon." | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
echo "==== Configuration clavier Apple AZERTY pour Ubuntu Server 22.04 avec Xubuntu ====" | |
############################################ | |
# 1. Configuration LightDM pour session Xubuntu + clavier AZERTY Apple | |
############################################ | |
LIGHTDM_DIR="/etc/lightdm/lightdm.conf.d" | |
LIGHTDM_CONF="${LIGHTDM_DIR}/00-azerty-apple.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install de l'interface xubuntu sur Ubuntu Server 22.04 | |
# Install des drivers Nvidia + CUDA | |
# Install de tools | |
set -e | |
# === VARIABLES DE VERSION === | |
NVIDIA_DRIVER_VERSION="550" | |
CUDA_VERSION="12-4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# BM 20240830 | |
# Testé avec Ubuntu 22.04, PHP 8.3 (Ondrej Sury) & Oracle Instant Client 21.15 | |
# Vérification que le script est exécuté en tant qu'administrateur (root) | |
if [[ $EUID -ne 0 ]]; then | |
echo "Ce script doit être exécuté en tant qu'administrateur (root)." | |
exit 1 | |
fi |
layout | date | title | category | tags |
---|---|---|---|---|
post |
2024-08-22 04:40:00 -0700 |
Connexion à MS SQL Server en PHP sous Debian/Ubuntu |
dev |
mssql php ubuntu |
Remarque : la procédure suivante a été réalisée pour une version 7.2 de PHP. Il se peut que vous deviez adapter quelques points...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://fr.archive.ubuntu.com/ubuntu/ jammy main restricted | |
deb http://security.ubuntu.com/ubuntu jammy-security main restricted | |
deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates main restricted | |
deb http://fr.archive.ubuntu.com/ubuntu/ jammy universe multiverse | |
deb http://security.ubuntu.com/ubuntu jammy-security universe multiverse | |
deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates universe multiverse | |
deb http://fr.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>fabric Creating rect with a mouse</title> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<meta name="robots" content="noindex, nofollow"> | |
<meta name="googlebot" content="noindex, nofollow"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
NewerOlder