Wow pas cool ce bug vieux de 7 ans....
Justement j'étais en train de monter en compétence sur Polkit ...
A suivre donc...
Il est désormais possible d'intégrer une interface vocale à n'importe quelle solution ou application informatique, grâce à la plateforme LinTO,
tutorials | how-to guides | app highlights
debug postmarketos issue in kernel
This list of Linux Networking commands and scripts, will receive ongoing updates, similar to the other lists on this blog…
arpwatch – Ethernet Activity Monitor.
bmon – bandwidth monitor and rate estimator.
bwm-ng – live network bandwidth monitor.
curl – transferring data with URLs. (or try httpie)
darkstat – captures network traffic, usage statistics.
dhclient – Dynamic Host Configuration Protocol Client
dig – query DNS servers for information.
dstat – replacement for vmstat, iostat, mpstat, netstat and ifstat.
ethtool – utility for controlling network drivers and hardware.
gated – gateway routing daemon.
host – DNS lookup utility.
hping – TCP/IP packet assembler/analyzer.
ibmonitor – shows bandwidth and total data transferred.
ifstat – report network interfaces bandwidth.
iftop – display bandwidth usage.
ip (PDF file) – a command with more features that ifconfig (net-tools).
iperf3 – network bandwidth measurement tool. (above screenshot Stacklinux VPS)
iproute2 – collection of utilities for controlling TCP/IP.
iptables – take control of network traffic.
IPTraf – An IP Network Monitor.
iputils – set of small useful utilities for Linux networking.
iw – a new nl80211 based CLI configuration utility for wireless devices.
jwhois (whois) – client for the whois service.
“lsof -i” – reveal information about your network sockets.
mtr – network diagnostic tool.
net-tools – utilities include: arp, hostname, ifconfig, netstat, rarp, route, plipconfig, slattach, mii-tool, iptunnel and ipmaddr.
ncat – improved re-implementation of the venerable netcat.
netcat – networking utility for reading/writing network connections.
nethogs – a small ‘net top’ tool.
Netperf – Network bandwidth Testing.
netsniff-ng – Swiss army knife for daily Linux network plumbing.
netstat – Print network connections, routing tables, statistics, etc.
netwatch – monitoring Network Connections.
ngrep – grep applied to the network layer.
nload – display network usage.
nmap – network discovery and security auditing.
nmcli – a command-line tool for controlling NetworkManager and reporting network status.
nmtui – provides a text interface to configure networking by controlling NetworkManager.
nslookup – query Internet name servers interactively.
ping – send icmp echo_request to network hosts.
route – show / manipulate the IP routing table.
slurm – network load monitor.
snort – Network Intrusion Detection and Prevention System.
smokeping – keeps track of your network latency.
socat – establishes two bidirectional byte streams and transfers data between them.
speedometer – Measure and display the rate of data across a network.
speedtest-cli – test internet bandwidth using speedtest.net
ss – utility to investigate sockets.
ssh – secure system administration and file transfers over insecure networks.
tcpdump – command-line packet analyzer.
tcptrack – Displays information about tcp connections on a network interface.
telnet – user interface to the TELNET protocol.
tracepath – very similar function to traceroute.
traceroute – print the route packets trace to network host.
vnStat – network traffic monitor.
websocat – Connection forwarder from/to web sockets to/from usual sockets, in style of socat.
wget – retrieving files using HTTP, HTTPS, FTP and FTPS.
Wireless Tools for Linux – includes iwconfig, iwlist, iwspy, iwpriv and ifrename.
Wireshark – network protocol analyzer.
Anbox is a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu. In other words: Anbox will let you run Android on your Linux system without the slowness of virtualization.
un magazine numerique gratuit !
via linuxfr : https://linuxfr.org/users/gepolabo/journaux/les-editions-diamond-passent-au-numerique-gafam
J'ai acheté dernièrement un nouveau PC portable (laptop). Après quelques recherches mon choix s'est porté sur un Dell Inspiron 15-7580 :- processeur i7- 16 Go RAM DDR4- SSD Nvme...
Javier Aguirre -
Just before the weekend appears, we have the brand new Proton 3.16-8 beta available for Valve's Steam Play. This release includes some mighty fine fixes and updates.
The weekend is about to crash into our lives once again, you're sat staring at your screen wondering what to play and we're here to help.
A lire plus tard... Dans le RER...
debug steam play game
Changement de disque uefi
Creating a bootable Windows 10 USB in Linux is no rocket science. Here's how to do that easily.
un site de snippets cli, merci Seb :)
Avec crontab-ui, vous n'avez plus besoin de modifier vos tâches avec crontab. Toutes les manipulations peuvent être faites directement depuis un navigateur Web en quelques clics. L'interface de crontab-ui vous permet de créer, modifier, suspendre, supprimer, sauvegarder des tâches cron. L'outil permet même d'importer, d'exporter et de déployer des tâches sur d'autres machines. Les logs d'erreurs, le mailing et le support des hooks sont également possibles. crontab-ui est gratuit, open source et écrit en utilisant NodeJS.
Soyez sûr d'être dans le repertoire des sources du noyau.
cd /usr/src/linux/
Cette étape peut s'appliquer dans le cas où vous avez déjà des sources compilées dans le dossier /usr/src/linux/. Elle s'utilise principalement lorsque vous avez modifier plusieurs fois votre configuration et que vous avez passé certains modules dans le kernel.
En effet, il peut être parfois utile de supprimer les fichiers compilés de l'arborescence des sources avant de commencer la procédure de compilation.
Il existe plusieurs commande pour effectuer cette étape de “nettoyage” :
make clean
et
make mrproper
make clean supprime tous les fichiers compilés.
make mrproper supprime tous les fichiers compilés ainsi que
le fichier de configuration .config qui contient les options de configuration du kernel.
Notez que la compilation durera plus longtemps, tous les fichiers devant être recompilés à nouveau. En effet, par défaut, seules les options modifiées sont recompilées.
Récupération de la configuration
Cette étape optionnelle permet de récuperer les paramètres déjà définis dans le noyau courant, ce qui est intéressant si vous avez déjà personnalisé votre noyau courant et que vous désirez l'utiliser comme base pour le nouveau noyau. Pour effectuer ceci, récutez les commandes suivantes :
zcat /proc/config.gz > .config
make oldconfig.
La configuration du noyau courant est contenu dans le fichier /proc/config.gz. La commande make oldconfig utilise le fichier /usr/src/linux/.config (issu de la commande précédente) comme modèle pour la configuration du nouveau kernel. Si le fichier .config n'existe pas, la configuration par défaut incluse dans les sources du noyau sera utilisée.
zcat /proc/config.gz si activé dans la conf du kernel.
ou dans /boot/
Avec nmap c'est tout simple :
-sP pour ne faire "que" un ping.
nmap -sP 192.168.0.0/24
Starting Nmap 7.40 ( https://nmap.org ) at 2018-04-19 14:09 CEST
Nmap scan report for 192.168.0.20
Host is up (0.00015s latency).
Nmap scan report for 192.168.0.40
Host is up (0.00079s latency).
Nmap scan report for 192.168.0.41
Host is up (0.00077s latency).
Nmap scan report for 192.168.0.47
Host is up (0.00071s latency).
Nmap scan report for 192.168.0.50
Host is up (0.00075s latency).
Nmap scan report for 192.168.0.254
Host is up (0.0013s latency).
Nmap done: 256 IP addresses (6 hosts up) scanned in 8.61 seconds
Bonjour,
J'ai installé mon serveur en débian9, celui-ci utilise domoticz et un rflink pour gérer ma domotique...
depuis l'installation j'avais des pertes d'informations...
j'ai d'abord pensé aux piles de mes sondes.... mais non...
c'était le serveur
et oui après un certains temps le port USB est mis en "basse consommation" par linux et donc moins de puissances pour la réception / envoi d'information.
donc j'ai ajouté une rêgle dans UDEV:
SUBSYSTEM=="usb", ATTR{idProduct}=="7523", ATTR{idVendor}=="1a86", SYMLINK+="rflink", TEST=="power/control" ATTR{power/control}="on"
The user interface for dynamic PM
The user interface for controlling dynamic PM is located in the power/ subdirectory of each USB device’s sysfs directory, that is, in /sys/bus/usb/devices/.../power/ where ”...” is the device’s ID. The relevant attribute files are: wakeup, control, and autosuspend_delay_ms. (There may also be a file named level; this file was deprecated as of the 2.6.35 kernel and replaced by the control file. In 2.6.38 the autosuspend file will be deprecated and replaced by the autosuspend_delay_ms file. The only difference is that the newer file expresses the delay in milliseconds whereas the older file uses seconds. Confusingly, both files are present in 2.6.37 but only autosuspend works.)
power/wakeup
This file is empty if the device does not support remote wakeup. Otherwise the file contains either the word enabled or the word disabled, and you can write those words to the file. The setting determines whether or not remote wakeup will be enabled when the device is next suspended. (If the setting is changed while the device is suspended, the change won’t take effect until the following suspend.)
power/control
This file contains one of two words: on or auto. You can write those words to the file to change the device’s setting.
on means that the device should be resumed and autosuspend is not allowed. (Of course, system suspends are still allowed.)
auto is the normal state in which the kernel is allowed to autosuspend and autoresume the device.
(In kernels up to 2.6.32, you could also specify suspend, meaning that the device should remain suspended and autoresume was not allowed. This setting is no longer supported.)
power/autosuspend_delay_ms
This file contains an integer value, which is the number of milliseconds the device should remain idle before the kernel will autosuspend it (the idle-delay time). The default is 2000. 0 means to autosuspend as soon as the device becomes idle, and negative values mean never to autosuspend. You can write a number to the file to change the autosuspend idle-delay time.
To resolve this. First remove the ch341 module and replace it with one build locally from source provided by the manufacturer.
sudo rmmod ch341
sudo mv /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ch341.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ch341.ko~
Then download the driver source from here.
Unzip it and compile the kernel module locally and install it.
cd ~/CH341SER_LINUX
sudo make
sudo mv ch34x.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial
sudo depmod -a
En 2011, des étudiant·e·s du MIT ont eu l’idée de passer par le biais du jeu vidéo pour apprendre à utiliser la ligne de commande GNU/Linux aux non‐initié(e)s. Trois ans plus tard sortait le jeu Terminus jouable (accès au code source).
Terminus, un jeu avec des gamins, des trolls, et des manuscrits
En 2016, deux Bretons francophones inspirés, après de nombreuses recherches d’un outil amusant et ludique pour faire connaître leur système d’exploitation préféré aux non‐initiés, décidèrent de traduire et reprendre la conception du jeu.
Comment utiliser LXC la virtualisation fournit directement par le noyau linux.
Hello,
j'ai fait une petite modification d'un github pour avoir mon image de 2Mo d'alpine avec serveur ssh (pratique pour des images docker toutes petites)
le README:
Copy the id_rsa.pub from your workstation to your dockerhost.
On the dockerhost create a volume to keep your authorized_keys.
tar cv --files-from /dev/null | docker import - scratch
docker create -v /root/.ssh --name ssh-container scratch /bin/true
docker cp id_rsa.pub ssh-container:/root/.ssh/authorized_keys
For ssh key forwarding use ssh-agent on your workstation.
ssh-agent
ssh-add id_rsa
Then the start sshd service on the dockerhost (check the tags for alpine versions)
docker run -p 4848:22 --name alpinearmhf-sshd --hostname alpinearmhf-sshd --volumes-from ssh-container -d alpinearmhf-sshd
docker run -p 4848:22 --name alpinearmhf-sshd --hostname alpinearmhf-sshd -d alpinearmhf-sshd
docker exec -ti docker-sshd passwd
ssh to your new docker environment, with an agent -i option is not needed
ssh -p 4848 -i id_rsa root@<dockerhost>
Comment compiler pkgsrc pour linux ?
un bon package avec du X86 Atom et tout le necessaire
peut faire tourner linux et/ou windows
Raccourcis de base
<Ctrl> + <b> suivi de <c> : Créer un nouveau terminal dans la session tmux active
<Ctrl> + <b> suivi de <n> : Switcher entre les différents terminaux de la session
<Ctrl> + <b> suivi de <X> : Choisir un terminal spécifique (ou X est le numéro du terminal)
<Ctrl> + <b> suivi de <d> : Se détacher de la session tmux (lancer 'tmux a' pour s'y rattacher)
<Ctrl> + <b> suivi de <,> : Permet de renommer un terminal
<Ctrl> + <b> suivi de <w> : Affiche la liste des terminaux disponibles
<Ctrl> + <b> suivi de <t> : Afficher l’heure dans un terminal
<Ctrl> + <b> suivi de <[> : Permet de scroller ligne/ligne (avec les fleches du clavier ou la souris) ou même page/page avec PgnUP et PgnDOWN, tapez "q" pour quiter ce mode
Commandes dans un Split
<Ctrl> + <b> suivi de <"> : Split vertical du terminal courant en deux + ouverture d’un terminal dans le nouveau panel
<Ctrl> + <b> suivi de <%> : Split horizontal du terminal courant en deux + ouverture d’un terminal dans le nouveau panel
<Ctrl> + <b> suivi de <o> : Switcher entre les terminaux splittés
<Ctrl> + <b> suivi de <espace> : Changer l’organisation visuelle des terminaux splittés
<Ctrl> + <b> suivi de <Alt> + (flèches directionnelles) : Reduire, agrandir fenêtre du split
<Ctrl> + <b> suivi de <!> : Convertir un split en terminal seul
<Ctrl> + <b> suivi de <q> : Afficher les numéros des terminaux splittés
<Ctrl> + <b> puis saisissez :join : permet de joindre un terminal seul dans un split
join -v -s 3.0 -p 50
Où :
-h ou -v : pour horizontalement ou verticalement
-s 3.0 : terminal 3 et volet 0 (volet si écran splitté)
-p 50 : occupation à 50% de la fenêtre
Ici donc vous ajouterez verticalement, un terminal numéroté 3 et qui prendra 50% de l’espace total.
Hier, j'ai voulu modifier un peu le programme écrit en c "reboot-rtorrent" et je me suis heurté à quelque chose d'étrange.
Il n'est pas possible de se rattacher à une session screen si auparavant on s'est connecté via ssh et su à notre utilisateur.
Par exemple, je me connecte avec l'utilisateur alexandre via ssh, et j'ai envie de voir une session screen de l'utilisateur pierre.
Pour cela je fais : (ex : je veux regarder le rtorrent de pierre)
alexandre@machine-de-guerre:~$ su pierre
pierre@machine-de-guerre:~$ screen -ls
There are screens on:
9732.test (19/03/2015 23:13:19)(Detached)
9025.pierre-rtorrent (03/09/2081 32:11:18)(Detached)
2 Sockets in /var/run/screen/S-pierre.
pierre@machine-de-guerre:~$ screen -r pierre-rtorrent
Cannot open your terminal '/dev/pts/0' - please check.
Là, impossible de rattacher la session screen.
La petite astuce est d'exécuter la commande ci-dessous avant de vouloir rattacher une session screen
script /dev/null
Et le miracle opère.
alexandre@machine-de-guerre:~$ su pierre
pierre@machine-de-guerre:~$ script /dev/null
pierre@machine-de-guerre:~$ screen -r pierre-rtorrent
pierre@machine-de-guerre:~$ magic !
note : Pour quitter une session screen sans la tuer vous faîtes [Ctrl + a] + [d]
Pour tuer une session screen... il faut aller lire la doc big_smile
Voilà, c'est fini.
Installer Docker sur une VPS Cloud ?
mon but :
-cloisonner mes services
maintenant faut voir si j'arrive à faire cela...
Oui effectivement ça marche, ça permet de "remonter" le temps dans un fichier de log, on commence par la fin du fichier et on remonte sur le début.
c'est aussi utile pour gérer une "pile" dans un fichier.
et pour plus de détail:
https://en.wikipedia.org/wiki/Tac_%28Unix%29
tmux est plus sympa que screen oui, mais si on n'a pas besoin de récupérer la main sur la commande (genre un tar, ou un find ou etc...) je rappelle qu'un simple nohup suivi d'un & à la fin de la commande ne demande aucune installation suplémentaire.
donc:
nohup "la commande qui va bien" 2>fichier_erreur.log 1>fichier_sortie.log &
nohup, va ignorer la mort du shell et donc rattacher le processus au père:
https://en.wikipedia.org/wiki/Nohup
le canal 2 est le canal d'erreur.
le cana 1 est le canal de sortie standard
& permet de rentre la main au shell en créant un fork.
Voila.
Sinon pour tmux:
via http://macahute.net/shaarli/?URV-MQ
As screen is not maintained anymore you should look for modern alternatives like tmux.
tmux is superior for many reasons, here are just some examples:
Windows can be moved between session and even linked to multiple sessions
Windows can be split horizontally and vertically into panes
Support for UTF-8 and 256 colour terminals
Sessions can be controlled from the shell without the need to enter a session
Basic Functionality
To get the same functionality as explained in the post with the most votes you would need to do the following:
ssh into the remote machine
start tmux by typing tmux into the shell
start the process you want inside the started tmux session
leave/detach the tmux session by typing Ctrl+B and then D
You can now safely logoff from the remote machine, your process will keep running inside tmux. When you come back again and want to check the status of your process you can use tmux attach to attach to your tmux session.
If you want to have multiple session running side-by-side you should name each session using Ctrl-B and $. You can get a list of the currently running sessions using tmux list-sessions.
tmux can do much more advanced things then handle a single window in a single session. For more information have a look in man tmux or http://tmux.sourceforge.net/. A FAQ about the main differences between screen and tmux is available here: http://tmux.git.sourceforge.net/git/gitweb.cgi?p=tmux/tmux;a=blob;f=FAQ
Installation de sensu, un monitoring un peu comme nagios, mais qui est écrit en ruby
et pour récupérer les derniers fichiers de configuration d'exemple:
sudo wget -O /etc/sensu/config.json http://sensuapp.org/docs/latest/files/config.json
sudo wget -O /etc/sensu/conf.d/check_memory.json http://sensuapp.org/docs/latest/files/check_memory.json
sudo wget -O /etc/sensu/conf.d/default_handler.json http://sensuapp.org/docs/latest/files/default_handler.json
sudo wget -O /etc/sensu/conf.d/client.json http://sensuapp.org/docs/latest/files/client.json
sudo wget -O /etc/sensu/plugins/check-mem.sh http://sensuapp.org/docs/latest/files/check-mem.sh
Un jeu dans le même style que vega strike
a tester
la page github: https://github.com/pioneerspacesim/pioneer
Vega Strike un jeu libre d'économie et exploration spatiale qui a l'air vraiment sympa d'après wikipédia :
http://fr.wikipedia.org/wiki/Vega_Strike
Vega Strike is an Open Source 3D Action-Space-Sim that lets you trade, fight, and explore in a vast universe.
Vega Strike is built on top of OpenGL and runs on Win/Lin/Mac platforms. Vega Strike (the game) is currently in a playable state, but both game engine and dataset are under continued development
via : http://linuxfr.org/users/chimrod/journaux/oolite-un-pare-feu-dans-l-espace#comment-1606213
Réinstaller grub efi aprés une install débian foireuse...
0) récupérer refind et booter dessus (utiliser drivedroid si vous avez un android rooté :x )
http://www.rodsbooks.com/refind/getting.html
1)
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
should return "EFI boot on HDD".
2) en ligne de commande et en root (donc sudo -i)
(si sda1 est votre partition EFI)
mount /dev/sda1 /boot/efi
apt-get install --reinstall grub-efi
grub-install /dev/sda
update-grub
You should check afterwards that:
/boot/efi/EFI/debian/grubx64.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
A TESTER D'URGENCE