unix
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| unix [2021/08/01 18:36] – créée oz | unix [2026/07/30 18:23] (Version actuelle) – supprimée oz | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | =====Linux===== | ||
| - | [[https:// | ||
| - | https:// | ||
| - | https:// | ||
| - | https:// | ||
| - | https:// | ||
| - | ====Distributions==== | ||
| - | http:// | ||
| - | https:// | ||
| - | |||
| - | ====Sites internet==== | ||
| - | http:// | ||
| - | [[http:// | ||
| - | [[http:// | ||
| - | https:// | ||
| - | https:// | ||
| - | ====IP settings==== | ||
| - | ===Add temporary secondary IP address=== | ||
| - | ==Using ifconfig== | ||
| - | If you want to add a secondary IP address to a NIC already in use in Linux, and have that change only temporary. Enter this command:\\ | ||
| - | '' | ||
| - | |||
| - | An example is shown below:\\ | ||
| - | '' | ||
| - | |||
| - | You need to be root in order to execute that command.\\ | ||
| - | |||
| - | ==Using ip command== | ||
| - | If you prefer to use the ip command instead of ifconfig\\ | ||
| - | '' | ||
| - | |||
| - | Here is an example:\\ | ||
| - | '' | ||
| - | |||
| - | With this command you can add more ip address to the same dev NIC, the second is considered as secondary. | ||
| - | |||
| - | ===Add a permanent secondary IP address=== | ||
| - | ==Ubuntu== | ||
| - | For Ubuntu systems, edit the / | ||
| - | '' | ||
| - | |||
| - | Add this for one extra IP:\\ | ||
| - | '' | ||
| - | iface [NIC]:[n] inet static\\ | ||
| - | address [ip.add.rr.ss]\\ | ||
| - | gateway [gw.ip.ad.rs]\\ | ||
| - | netmask [ne.tm.as.kk]'' | ||
| - | |||
| - | Here an example:\\ | ||
| - | '' | ||
| - | iface eth0:1 inet static\\ | ||
| - | address 192.168.0.1\\ | ||
| - | gateway 192.168.0.254\\ | ||
| - | netmask 255.255.255.0'' | ||
| - | |||
| - | You can add as many blocks as you want. Just change eth0:1 for eth0:2, eth0:3 and so on.\\ | ||
| - | If you are adding additional IPs to eth1, or eth2 also modify that on the example. | ||
| - | |||
| - | Sources: https:// | ||
| - | |||
| - | ====Tips==== | ||
| - | ===Restart network interface=== | ||
| - | ''/ | ||
| - | |||
| - | ===How to use useradd to create and administer users (à tester)=== | ||
| - | useradd, creates a new user or update default new user information.\\ | ||
| - | |||
| - | Syntax:\\ | ||
| - | '' | ||
| - | |||
| - | Some of its options are: | ||
| - | * d home directory | ||
| - | * s starting program (shell) | ||
| - | * p password | ||
| - | * g (primary group assigned to the users) | ||
| - | * G (Other groups the user belongs to) | ||
| - | * m (Create the user's home directory | ||
| - | |||
| - | Example:\\ | ||
| - | '' | ||
| - | |||
| - | ===Migrate MySQL database (à tester)=== | ||
| - | If you are moving to another hosting provider, or for any other reason you need to move or migrate your MySQL database you can use these instructions.\\ | ||
| - | |||
| - | Make the backup of the database:\\ | ||
| - | '' | ||
| - | Where database_name is the database you want to move.\\ | ||
| - | |||
| - | Copy the database to the new server\\ | ||
| - | You can use rsync, scp or ftp, I will show you how to do it with scp:\\ | ||
| - | '' | ||
| - | |||
| - | Create the database in the new server:\\ | ||
| - | '' | ||
| - | \\ | ||
| - | create database [database_name]; | ||
| - | grant all privileges on [database_name].* to " | ||
| - | flush privileges; | ||
| - | exit'' | ||
| - | |||
| - | Import the backup\\ | ||
| - | '' | ||
| - | |||
| - | Source: https:// | ||
| - | |||
| - | =====Raspberry - Raspbian===== | ||
| - | Upgrade du firmware:\\ | ||
| - | '' | ||
| - | Connaître le model:\\ | ||
| - | '' | ||
| - | https:// | ||
| - | =====OpenWRT===== | ||
| - | ====Tips==== | ||
| - | ==Upgrade all package at once== | ||
| - | '' | ||
| - | |||
| - | ===Raspberry=== | ||
| - | Build spécifique pour 3 B+:\\ | ||
| - | https:// | ||
| - | https:// | ||
| - | |||
| - | ===Firewall=== | ||
| - | https:// | ||
| - | https:// | ||
| - | |||
| - | ===OpenVPN=== | ||
| - | https:// | ||
| - | https:// | ||
| - | Sécurisation: | ||
| - | |||
| - | ===Serveur web=== | ||
| - | https:// | ||
| - | |||
| - | ===reverse proxy=== | ||
| - | nginx ou lighttpd ou uhttpd à étudier\\ | ||
| - | https:// | ||
| - | https:// | ||
| - | http:// | ||
| - | https:// | ||
| - | https:// | ||
| - | |||
| - | ===Multi WAN=== | ||
| - | https:// | ||
| - | mwan3 | ||
| - | |||
| - | ===DDNS=== | ||
| - | ddns | ||
unix.1627835799.txt.gz · Dernière modification : de oz
