#Build an image from a dockerfile in pwd:
docker build --rm=true -t tagname .
#--rm=true -> Remove intermediate containers after a successful build
#-t, --tag= -> Name and optionally a tag in the 'name:tag' format
#-f, --file -> Name of the Dockerfile (Default is 'PATH/Dockerfile')
#Start a container with:
docker-compose up -d
#up -> Create and start containers
#-d -> Detached mode: Run containers in the background,
print new container names.
Incompatible with --abort-on-container-exit.
resize2fs /dev/xvdaX #(where X is a number)
resize2fs 1.42.5 (29-Jul-2012)
Filesystem at /dev/xvdaX is mounted on /var; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/xvdaX to 1835008 (4k) blocks.
The filesystem on /dev/xvdaX is now 1835008 blocks long.
These commands allow you to convert certificates and keys to different formats to make them compatible with specific types of servers or software. For example, you can convert a normal PEM file that would work with Apache to a PFX (PKCS#12) file and use it with Tomcat or IIS.
Convert a DER file (.crt .cer .der) to PEM
openssl x509 -inform der -in certificate.cer -out certificate.pem
Convert a PEM file to DER
openssl x509 -outform der -in certificate.pem -out certificate.der
Convert a PKCS#12 file (.pfx .p12) containing a private key and certificates to PEM
You can easily guess whether a certificate is in a binary form by looking at it with for instance the cat command, If it looks garbled it’s binary
In these cases you should first convert it from binary tand then you can convert it to pem with the previous example. This is how you convert it if binary:
doesn’t work on your installation of Ubuntu 14.04 is that you are probably using Ubiquity.
I spent several hours trying to figure this out and at the end I managed to understand (thanks to http://askubuntu.com/questions/104135/preseed-late-command-not-running) that instead I (and you while you are here) should use this command:
The ones out there who decided to drop Windows 8 in favor of Ubuntu after buying an Asus X202E will probably face the issue of a too sensitive touchpad which makes the laptop barely usable, with a lot of random unwanted clicks especially during the “two finger scrolling”. The two finger scrolling is a feature I really don’t want to give up as well as the touch to click one, as i find them really convenient as long as I have to use the laptop as laptop, which means without an external pointing device such as a mouse.
First step to get to the desired settings is to check which hardware are we using.