Logiciel libre

De dieudo.fr
Aller à la navigation Aller à la recherche

Quelques logiciels libres et infos utiles

Configurations diverses

FOSS directory

Chromium

Version portable pour OS X :

Firefox

Mediawiki

MySQL

Importer une base de donnée sous Ubuntu : ~$ cd '/home/dieudo/Bureau' ~$ sudo mysql -h localhost -u login -pmotdepasse nomdelabasecible < baseaimporter.sql

Exporter : ~$ cd '/home/dieudo/Bureau' ~$ sudo mysqldump -u username -ppassword database_name > dump.sql

Outils réseaux

Ubuntu

Applis Favorites

  • Synaptic
  • System Load Indicator (indicator-multiload)

LAMP et phpMyAdmin

sudo tasksel install lamp-server

ou

sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql

Puis installer phpMyAdmin. Installer phpMyAdmin en premier cause des pb de configuration.

Envoi de courriels par le site internet via SSMTP

Indications simples et détaillées.

Simple

http://voidandany.free.fr/index.php/utiliser-le-serveur-smtp-de-free-avec-ssmtp/

Extrait

Dernier article sur les serveurs SMTP utilisable avec sSMTP, celui de Free.

Ici c’est très simple :

/etc/ssmtp/ssmtp.conf

mailhub=smtp.free.fr 
FromLineOverride=YES

/etc/ssmtp/revaliases

utilisateur_linux:adresse_free:smtp.free.fr

Comme on peut le constater il n’y a même pas de user/login à fournir, mais je pense que Free fait une authentification en vérifiant que l’ordinateur envoyant le mail est connecté à Internet via une connexion Free.

A vérifier, mais si c’est la cas, seuls les personne ayant Free comme FAI peuvent utiliser le serveur SMTP de Free (ce qui est logique).

Détaillé

https://doc.ubuntu-fr.org/ssmtp

Configurer les droits d'un dossier dans le répertoire www

sudo chown -R username:www-data '/var/www/repertoirename'
sudo chmod -R 0775 '/var/www/repertoirename'

Downloads

Nautilus en root

http://ubunteros.tuxfamily.org/spip.php?article50

Créer un alias avec la ligne de commande :
gksudo nautilus

Lancer Deja Dup en root

Deja Dup ("Sauvegardes" en français) est le logiciel de sauvegarde par défaut d'Ubuntu.

Nouvelle méthode

http://askubuntu.com/questions/130674/how-do-i-open-deja-dup-as-root

Configure Deja Dup for your root backup:

gksu deja-dup-preferences

Run backup then with:

gksu "deja-dup --backup"

At least this worked for me. (You have to configure Deja Dup for root, too, at first - next to your configuration for the "normal" user.)

As mythsmith says: "You can do that just for system folders, and still keep your home folder configured in your user account."

Ancienne méthode

sudo deja-dup-preferences

Ça permet de sauvegarder les dossiers /etc et /var en plus de /home pour garder les infos utiles aux sites web : le dossier www et les bases de donnée mysql.

Ubuntu Touch

https://wiki.ubuntu.com/Touch/Install

Installation sur galaxy tab 10.1

https://wiki.ubuntu.com/Touch/Devices/p4wifi

Redémarrage auto après une coupure de courant

sudo dmidecode -s system-product-name
... for an Intel Mac Mini (2,1)
setpci -s 0:1f.0 0xa4.b=0
... for an NVidia Mac Mini (3,1)
setpci -s 00:03.0 0x7b.b=0x19
... for a Unibody Mac Mini (6,1)
setpci -s 0:3.0 -0x7b=20

ou directement depuis OS X, puisque persistant : )

You can put this command in a bash script and run it on startup. See here for details on start-up scripts.
https://help.ubuntu.com/community/UbuntuBootupHowto
Résumé
  1. dans le dossier /etc/initi.d/ créer un fichier nommé auto-reboot (par exemple)
  2. y copier-coller la ligne adaptée au hardware, commençant par "setpci…"
  3. activer le script avec cette ligne de commande :
update-rc.d auto-reboot defaults
  1. désactiver le script avec cette ligne de commande :
sudo update-rc.d -f auto-reboot remove

Écrire sur une partition OS X à partir d'Ubuntu

Il suffit que la journalisation de la partition HFS+ soit désactivée.

Si elle l'est il suffit de la désactiver depuis OS X avec cette ligne de commande :

sudo /usr/sbin/diskutil disableJournal /Volumes/NomDuVolume

exemple de réponse :

Journaling has been disabled on /Volumes/160gig

Testing shows that this information may no longer be valid in Mountain Lion, so I thought I'd post a working solution. I'm afraid it involves the Terminal and Disk Utility together, and requires Administrator privileges.

1) Launch Disk Utility, select the partition in the sidebar from which you wish to remove Journaling.
2) Get Info… on this partition (File > Get Info or Command-i)
3) Note the Disk Identifier value, of the type diskXsY, where X and Y are numbers
4) Now, unmount this partition by clicking the Unmount button in the toolbar
5) Launch Terminal, and type the following:
sudo diskutil disableJournal force diskXsY
Replace diskXsY with the value you obtained in (3), then hit Enter.
6) Authenticate with the login password of the Admin user you're using - NB: nothing will appear as you type the password: this is normal.
7) You may receive the following error message:
"An error occurred journaling the file system: The underlying task reported failure on exit (-69860)" - ignore it.
8) Safely eject the whole disk containing the partition you just disabled journaling on, and then re-attach it and mount the partition you just modified.

Journaling should now be permanently disabled on the partition in question. You can verify this by typing mount in the Terminal and hitting Enter, or by Getting Info in Disk Utility (as in (2) above).

Dual boot Ubuntu Trusty Tahr (14.04) OS X Yosemite (OS 10.10)

  • Avec une adaptation : création d'une partition supplémentaire HFS+ /dev/disk0s4 sur laquelle installer rEFInd avec cette ligne de commande :
/Users/dieudo/Downloads/refind-bin-0.8.3/install.sh --ownhfs /dev/disk0s4
qui peut servir aussi de partition d'échange entre Ubuntu et OSX,
puis comme sur la page http://www.rodsbooks.com/refind/yosemite.html, dans le fichier refind.conf modifier la ligne
#dont_scan_volumes "Recovery HD"
en
dont_scan_volumes foo,bar

Créer une clef USB démarrable

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx

WinCDEmu

WinCDEmu
Emulateur de lecteur de CD : permet par exemple d'installer Ubuntu dans windows à partir d'une image iso.

VirtualBox

Cf. VirtualBox

Android

Cf. Android

HomeBank

w:HomeBank : Logiciel libre de gestion de compte, fonctionnant sous Linux, FreeBSD, Microsoft Windows et AmigaOS.

Installation sous OS X, via w:VirtualBox et les trois lignes de code indiquée pour Ubuntu ici :

Alternative via MacPorts

Canon - Magic Lantern

Liens externes