Linux mint no sound and installer freezing

Happened to me today after a month of struggling:
The installer on a live usb was freezing right after i clicked continue after checking if i had enough disk space and an active internet connection.
The culprit was my windows disk (a crucial ssd 250gb) where a hidden partition created by windows 10 was hindering the install process. I deactivated the ssd in the BIOS and proceeded to install linux mint without any problem (strangely that didn’t do it with ubuntu nor fedora). I activated it after the install, and done a

gksu update-grub

After that, I had the bad surprise to not have sound (well, I had sound, but only thanks to my lcd screen via the Display port).

inxi -Ax

Displayed my sound cards correctly:

Audio:     Card-1 Intel Device a170 driver: snd_hda_intel bus-ID: 00:1f.3
           Card-2 NVIDIA Device 0fbb driver: snd_hda_intel bus-ID: 01:00.1
           Sound: Advanced Linux Sound Architecture v: k3.19.0-32-generic

Tried numerous things, but the only one that worked was thanks to this: http://askubuntu.com/questions/672187/no-audio-output-devices-detected-in-new-computer-build-with-skylake-z170-mothe

in particular the part:

sudo apt-add-repository ppa:ubuntu-audio-dev/alsa-daily
sudo apt-get update
sudo apt-get install oem-audio-hda-daily-lts-vivid-dkms

Now i have my real soundcard detected, and it works just fine.

Fstab and drive mount

In a terminal:

List of UUID:

sudo blkid

Create the folders in the media folder:

sudo mkdir /media/XXX
sudo gedit /etc/fstab

add lines:

UUID=YYY /media/XXX ntfs−3g user,defaults 0 0

for ntfs where YYY is the UUID you got and XXX in the name of the folder you created.

Save the modification, be sure to have unmounted all the drivers and again in a terminal type:

sudo mount −a

to mount all the drives in the folders you created.

Raspberry Pi And Octoprint (also known as Octopi) hang / crashes solution

There is one thing that could prevent you from printing with this awesome combo: the loss of connection between the raspi and the board (ramps, for example).

The symptoms are easy to spot: your printer simply stops moving mid print (with some luck this will happen when doing the skirt. For me it also happened 5mn from the end of a 2 hours long print). You will also have an unresponsive octoprint  (after a little while it will tell you it lost connection).

Solution: reduce the baud rate. Reduce the baud rate, my friends, both in the firmware and in the connection dialog box of octoprint. 115200 seems to be a good choice.

——French version below ————-

Octopi est un serveur d’impression pour imprimante 3D qui tourne sur une raspberry pi. Il permets de contrôler l’imprimante via un simple navigateur web. Seulement voila, les choses qui sont supportées par un ordinateur ne le sont pas forcément par un raspberry. En particulier la vitesse de connexion élevée (250000 bauds) habituellement utilisée.

Les symptômes sont les suivants: impression ui s’arrête au milieu d’un print et imprimante qui ne réponds plus. Plantage subséquent d’octoprint. Et ce complètement aléatoirement.

Solution: réduire le baud rate de l’électronique (ramps par exemple) et de la fenêtre de connexion d’octoprint à 115200 maximum.

Produit en croix de fainéant

Cette alternative utilise la méthode d’essai / erreur, qui permet de calculer l’extrusion si par exemple il manque une information (ou qu’elle est chiante a obtenir, comme le diamètre effectif du hobbed bolt). Ca marche pour tout type d’extrudeur (ça marche aussi pour les réglages X, Y et Z).

C’est simple: regardez quelle valeur vous avez dans l’EEPROM pour le moteur que vous voulez affiner (X, Y, Z ou E pour extrudeur).

Marquez la position de départ (une marque au crayon sur l’un des axes, ou au feutre sur le filament).

Demandez un mouvement de XX mm (plus c’est grand (mais dans le raisonnable) plus la mesure, donc le calcul sera précis).

Mesurez la distance parcourue par l’axe (ou le filament extrudé) et rentrez toutes les valeurs ici:

Php displaying parts of code while executing the rest of the page correctly

So you have installed/reinstalled you web server and suddenly your page display bits and parts of php code between perfectly executed templates and scripts.

the culprit is php.ini.

edit it and set the option short_open_tag to « on » and restart your apache/lighttp client.

 

If set to off, it will disregard any php code writen between <? … ?> and only interpret what is between <?php ..?>.