963 shaares
118 results
tagged
tips
The biggest advantage of LVM over traditional disk partitions is its support for "dynamic partitions"; you can create and resize (grow or shrink) LVM volumes dynamically as needed. There is no notion of physical disk boundary in LVM logical volumes, so you can create a large LVM volume that spans across multiple smaller physical disks. Such flexible partitioning allows you to manage storage space more efficiently as disk usage patterns change over time.
If you want to add new disks to an existing LVM volume to expand its size, you can easily do it, and here is how.
If you want to add new disks to an existing LVM volume to expand its size, you can easily do it, and here is how.
#!/bin/bash
set -e
set -u
set -o xtrace
sudo mount -o remount,exec,suid /tmp
mkdir /tmp/source/chroot -p
cd /tmp/source
sudo mkarchroot chroot/root base-devel
git clone "https://aur.archlinux.org/goffice0.8.git"
git clone "https://aur.archlinux.org/webkitgtk.git"
git clone "https://aur.archlinux.org/gnucash.git"
cd goffice0.8/
makechrootpkg -T -r ../chroot/
sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/.
cd ../webkitgtk/
makechrootpkg -T -r ../chroot/
sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/.
cd ../gnucash/
makechrootpkg -T -r ../chroot/ -I ../goffice0.8/goffice0.8-0.8.17-4-x86_64.pkg.tar.xz -I ../webkitgtk/webkitgtk2-2.4.11-6-x86_64.pkg.tar.xz
sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/.
yes 'o' | sudo pacman -U gnucash*.pkg.tar.xz ../webkitgtk/webkitgtk2*.pkg.tar.xz ../goffice0.8/goffice0.8*.pkg.tar.xz
(21/12/2017)
Pour la MAJ en 2.6.19, cette méthode a échoué.
J'ai remplacé webkitgtk2 par webkitgtk2-enchant (installé via Yaourt) et j'ai recompilé en modifiant la dépendance webkitgtk2 en webkitgtk2-enchant : ça marche !
set -e
set -u
set -o xtrace
sudo mount -o remount,exec,suid /tmp
mkdir /tmp/source/chroot -p
cd /tmp/source
sudo mkarchroot chroot/root base-devel
git clone "https://aur.archlinux.org/goffice0.8.git"
git clone "https://aur.archlinux.org/webkitgtk.git"
git clone "https://aur.archlinux.org/gnucash.git"
cd goffice0.8/
makechrootpkg -T -r ../chroot/
sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/.
cd ../webkitgtk/
makechrootpkg -T -r ../chroot/
sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/.
cd ../gnucash/
makechrootpkg -T -r ../chroot/ -I ../goffice0.8/goffice0.8-0.8.17-4-x86_64.pkg.tar.xz -I ../webkitgtk/webkitgtk2-2.4.11-6-x86_64.pkg.tar.xz
sudo cp *.pkg.tar.xz /var/cache/pacman/pkg/.
yes 'o' | sudo pacman -U gnucash*.pkg.tar.xz ../webkitgtk/webkitgtk2*.pkg.tar.xz ../goffice0.8/goffice0.8*.pkg.tar.xz
(21/12/2017)
Pour la MAJ en 2.6.19, cette méthode a échoué.
J'ai remplacé webkitgtk2 par webkitgtk2-enchant (installé via Yaourt) et j'ai recompilé en modifiant la dépendance webkitgtk2 en webkitgtk2-enchant : ça marche !
The theming system in Asciidoctor PDF is used to control the layout and styling of the PDF file Asciidoctor PDF generates from AsciiDoc. This document describes how the theming system works, how to define a custom theme in YAML and how to activate the theme when running Asciidoctor PDF.
How to write a bash script that takes optional input arguments?
First, let’s clarify what HEAD is and what it means when it is detached. HEAD is the symbolic name for the currently checked out commit. When HEAD is not detached (the “normal”1 situation: you have a branch checked out), HEAD actually points to a branch’s “ref” and the branch points to the commit. HEAD is thus “attached” to a branch. When you make a new commit, the branch that HEAD points to is updated to point to the new commit. HEAD follows automatically since it just points to the branch.
This is what runlike does. You give it a docker container, it outputs the command line necessary to run another one just like it, along with all those pesky options (ports, links, volumes, ...). It's a real time saver for those that normally deploy their docker containers via some CM tool like Ansible/Chef and then find themselves needing to manually re-run some container.
likegeeks.com is a website which contains articles about Linux, programming, web development, iOS, Python and other tech tips.
My main concern is to publish a quality content that people love.
My main concern is to publish a quality content that people love.
How can I pipe some input using echo, into program that requires user typing something two times?
pdfnup converts files in the Adobe Portable Document Format (PDF) to "n-up" PDF files, that is, with multiple input pages per output page, for more economical printing etc. The default processing is to 2-up landscape output with no frame around pages, equivalent to using the options '--nup 2x1 --landscape true --frame false'.
You have to use the slightly longer += operator to do what you want to do:
count += 1 ( count = count + 1)
count -= 2 (count = count - 2)
count += 1 ( count = count + 1)
count -= 2 (count = count - 2)
Vous croyez connaître Git ? Peut-être bien… Et pourtant, je parierais ma chemise[^1] que pas mal de petites options sympathiques vous sont inconnues.
En effet, au fil des versions de Git, beaucoup de petites options font surface, soit pour des raisons de confort, soit pour de la puissance brute. Mais comme ce n'est pas une nouvelle commande, ou pas trop mis en avant dans les annonces de sortie, ça passe sous le radar.
Je vous ai sélectionné une trentaine d'options, répartie sur une quinzaine de commandes, qui rendent la vie plus belle quand on fait du Git. Voici une excellente manière de rentabiliser les prochaines minutes !
En effet, au fil des versions de Git, beaucoup de petites options font surface, soit pour des raisons de confort, soit pour de la puissance brute. Mais comme ce n'est pas une nouvelle commande, ou pas trop mis en avant dans les annonces de sortie, ça passe sous le radar.
Je vous ai sélectionné une trentaine d'options, répartie sur une quinzaine de commandes, qui rendent la vie plus belle quand on fait du Git. Voici une excellente manière de rentabiliser les prochaines minutes !
Un dépôt git, à l’image du projet qu’il contient, peut avoir une vie longue et tumultueuse au cours de laquelle les conventions évoluent avec nos connaissances et notre maîtrise du schmilblick. Aussi, il se peut que ce jour arrive où vous contempliez votre projet et réalisiez qu’en fait non, ce n’était pas une si bonne idée que de versionner ces librairies externes / fichiers compilés / vidéos et autres assets / <votre boulette ici>.
Getting a notification that Docker containers are down in production is one of the worst ways to spend your night. In today’s article, we’ll discuss how to use Docker’s restart policy to automatically restart containers and avoid those late-night notifications.
juste un petit guide pour bien démarrer avec git. no deep shit ;)
RStudio Server enables you to provide a browser based interface (the RStudio IDE) to a version of R running on a remote Linux server. Deploying R and RStudio on a server has a number of benefits.
Voir aussi :
http://stackoverflow.com/questions/23935141/how-to-copy-docker-images-from-one-host-to-another-without-via-repository
pour déplacer les images d'un host à un autre
http://stackoverflow.com/questions/23935141/how-to-copy-docker-images-from-one-host-to-another-without-via-repository
pour déplacer les images d'un host à un autre