wget all files from website

All files from root directory matching pattern *.log*:

wget --user-agent=Mozilla --no-directories --accept='*.log*' -r -l 1 http://yourpage.com/bla.html
–user-agent=Mozilla set User-Agent header
–no-directories save all files in current directory
–accept=’*.log’ accepted extensions (pattern)
-r recursive
-l 1 one level of recursion
You avoid grepping out html links (could be error prone) at a cost of few more requests to server.

installation LG G4

Installer TWRP / SuperSU / BusyBox /Xposed

Après avoir déverrouillé le bootloader et activé le débogage USB

adb reboot bootloader
fastboot boot twrp-3.0.0-0-h815.img

Une fois twrp lancé, flasher twrp.img dans le recovery

Note: la plupart des sites conseillent de le faire directement avec fastboot

fastboot flash recovery twrp-3.0.0-0-h815.img

Puis de rebooter dans le recovery

fastboot boot twrp-3.0.0-0-h815.img

En ce qui me concerne, cela provoque la disparition du support de Mirrorlink

Changer le dpi de l’écran

Trouver les informations de base
adb shell dumpsys display | grep mBaseDisplayInfo
src src2

Changer le DPI
adb shell wm density DPI

Retour aux paramètres par défault
adb shell wm density reset

un reboot est nécessaire après chaque changement
adb reboot

nfs uid error

NFS is built on top of RPC authentication. With NFS version 3, the most common authentication mechanism is AUTH_UNIX. The user id and group id of the client system are sent in each RPC call, and the permissions these IDs have on the file being accessed are checked on the server. For this to work, the UID and GIDs must be the same on the server and the clients. However, you can force all access to occur as a single user and group by combining the all_squash, anonuid, and anongid export options. *all_squash* will map all UIDs and GIDs to the anonymous user, andanonuid and anongid set the UID and GID of the anonymous user. For example, if your UID and GID on your dev server are both 1001, you could export your home directory with a line like


I’m less familiar with NFS version 4, but I think you can set up rpc.idmapd on the clients to alter the uid and gid they send to the server.

bug warthunder

(note: I previously suggested this post for approval in another thread, but it can be better to open a new one, because of different graphic cards)
I used to play with no problem at all until I updated 343.36-1 nvidia drivers. Each new version gave me the problem exposed below. I always had to revert to 343.36.1, and that always solved the problem to me.
With warthunder 1.53, it’s not possible anymore cause FPS drops with 343.36.1 nvidia drivers. 358.09-1 version solved FPS drops, but made my old problem come back again :
- random freeze (usually need to reset computer), only in game, usually in the first game, but not always.
- sound usually working (but it sometimes loop or get choopy)
- image freeze (always)
- PC don’t respond (sometimes I can kill X)
I can’t say if it’s only on some maps… but it doesn’t seem so. it happens on AB and RB. I’m only playing planes.
lsb_release -irc
Distributor ID: Arch
Release:        rolling
Codename:       n/a
name -r 
4.2.5-1-ARCH x86_64
lspci -vnn | grep compatible
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106 [GeForce GTX 660] [10de:11c0] (rev a1) (prog-if 00 [VGA controller])
glxinfo | grep OpenGL 
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 660/PCIe/SSE2
OpenGL core profile version string: 4.4.0 NVIDIA 358.09
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 358.09
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 358.09
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
grep -wi 'name\|MHz\|cores\|model\|cache' /proc/cpuinfo
model           : 60
model name      : Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
cpu MHz         : 2304.394
cache size      : 6144 KB
cpu cores       : 4
pacman -Qs nvidia
local/lib32-nvidia-libgl-beta 358.09-1
    NVIDIA driver library symlinks for 'lib32-nvidia-utils-beta'
local/lib32-nvidia-utils-beta 358.09-1
    NVIDIA driver utilities and libraries (beta version) (32-bit)
local/lib32-opencl-nvidia-beta 358.09-1
    NVIDIA's OpenCL implemention for 'lib32-nvidia-utils-beta'
local/libvdpau 1.1.1-1
    Nvidia VDPAU library
local/nvenc-api 5.0.1-1
    NVidia NVENC API
local/nvidia-beta 358.09-1
    NVIDIA driver for Arch's official 'linux' package (beta version)
local/nvidia-libgl-beta 358.09-1
    NVIDIA driver library symlinks for 'nvidia-utils-beta'
local/nvidia-utils-beta 358.09-1
    NVIDIA driver utilities and libraries (beta version)
Only 358 beta drivers are available for now on archlinux (but problem exist with stables version since 343)


MAJ nvidia

avertissement : lib32-nvidia-libgl : ignore la mise à jour du paquet (343.36-1 => 355.11-1)
avertissement : lib32-nvidia-utils : ignore la mise à jour du paquet (343.36-1 => 355.11-1)
avertissement : linux : ignore la mise à jour du paquet (3.18.2-2 => 4.2.5-1)
avertissement : linux-headers : ignore la mise à jour du paquet (4.1.6-1 => 4.2.5-1)
avertissement : nvidia : ignore la mise à jour du paquet (343.36-6 => 355.11-4)
avertissement : nvidia-libgl : ignore la mise à jour du paquet (343.36-1 => 355.11-1)
avertissement : nvidia-utils : ignore la mise à jour du paquet (343.36-1 => 355.11-1)

install serveur



Notes: If you use IpTables add the following rules
iptables -A INPUT -i lo -s localhost -d localhost -j ACCEPT
iptables -A OUTPUT -o lo -s localhost -d localhost -j ACCEPT
iptables -A OUTPUT -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT  -p tcp –dport http -j ACCEPT

divers serveur

systemd-networkd impose l’ajout « en dur » du ipforwarding


Pour configurer la dimension du papier dans libreoffice,

Append via ssh

Most LINUX users know how to copy and over­write a file from one server to another; but it can also be use­ful to directly append to a file, with­out hav­ing to login to the remote server and make the changes man­u­ally. This does not appear to be pos­si­ble with the com­monly used SCP util­ity; how­ever, there is a way to do this with SSH. Its actu­ally quite simple.

Here’s the syntax:
cat localfile | ssh remoteuser@serveraddress "cat >> remotefile"

Problème de sons sur plusieurs postes différents

1) désactiver les cartes sons inutiles :
–> dans le BIOS
–> en blacklistant le module : /etc/modprobe.d/black_module.conf
–> en empechant alsa de l’utiliser par default : /etc/modprobe.d/alsa-base.conf
affecter un index de -2

2) creer /etc/asound.conf contenant :
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0

exporter XDG_DATA_DIRS


Bug impression okular avec cups client

penser à renseigner hostname dans /etc/hosts
le hostname doit être le même que celui défini dans /etc/hostname

obtenir son IP sous linux

Use one of following commands to find public ip of your system using linux terminal. These are also useful to use in shell script.

Command 1. Using wget

# wget http://ipecho.net/plain -O - -q ; echo

Command 2: Using curl

# curl ipecho.net/plain; echo

Command 3: Using curl

# curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

Command 4: Using curl

# curl icanhazip.com

Command 5: Using curl

# curl ifconfig.me
Get Public IP in Shell Script

PUBLIC_IP=`wget http://ipecho.net/plain -O - -q ; echo`