Ubuntu

Un article de CoolForest's Wiki.

Jump to: navigation, search


Ubuntu - Généralités

Pages Spéciales

Configuration Générale

apt-get install language-support-fr
sudo apt-get get rar
sudo apt-get install gnome-art
sudo apt-get install gcursor
  • Polices Microsoft
sudo aptitude install msttcorefonts
  • Fin d'installation :
sudo apt-get autoclean
sudo apt-get clean

Configuration Matérielle

VNC & Xubuntu

cf. http://smhteam.info/wiki/index.linux.php5?wiki=Vnc

Logiciels

Eclipse

CartoWeb

Baobab

sudo apt-get install baobab

DIA

Installation de base

sudo apt-get install dia
sudo apt-get install tedia2sql
sudo apt-get install dia2code

LAMP

Cf. Installation d'une Solution LAMP Ubuntu Dapper Server

Cf. Installer et configurer Apache2, Trac et Subversion sur Ubuntu

Installation

sudo apt-get install ntp-simple (horloge serveur)
sudo apt-get install apache2
sudo /etc/init.d/apache2 reload
sudo apt-get install mysql-server-5.0 
sudo /etc/init.d/mysql restart

Définir le mdp root de MySQL :

sudo mysql_secure_installation 
sudo apt-get install php5 php5-cli php5-mysql php5-dev php5-curl php5-gd php5-pspell php5-sqlite php5-mcrypt php5-xsl libapache2-mod-php5 phpmyadmin 

Pendant l'installation : se détendre

Si besoin d'activer PHP5 :

sudo a2enmod php5

Autoriser l'usage des répertoires web personnels (dans le compte home) :

sudo a2enmod userdir

Pour mysql, définir un mot de passe :

shell> mysql -u root mysql •mysql> use mysql ; 
mysql> UPDATE user SET Password=PASSWORD(’nouveau_mot_de_passe’) WHERE user=’root’ ; 
mysql> flush privileges ; 

(ou redemarrer mysql)

Rendre /var/www accessible à l'utilisateur courant

sudo chown -R yourusername /var/www


Puis sécuriser le serveur

PEAR / PECL / PDO / SYMFONY

Enlever l'ancienne version de PEAR :

sudo apt-get install php5-pear build-essential 
sudo pear install pecl/pdo

(puis configurer : [1])

Installation de Symfony : (version 1) (version 2)

SSL

sudo a2enmod ssl
sudo apache2-ssl-certificate
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
sudo ln -s /etc/apache2/sites-available/ssl /etc/apache2/sit es-enabled/ssl

(puis configurer : [2])

sudo a2enmod userdir
sudo /etc/init.d/apache2 reload

(Pour permettre l'utilisation de fichiers dans le "~/public_html" accessibles via: http://votre_ip/~votre_login/ )

Webmin (installation)

cd /tmp
wget http://switch.dl.sourceforge.net/sourceforge/webadmin/webmin-1.290.tar.gz
tar -xvf webmin*
cd webmin*
./setup.sh /usr/local/webmin

Postgresql

On installe les paquets necessaires :

sudo apt-get install postgresql postgresql-client

On modifie le fichier /etc/postgresql/pg_hba.conf :

# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
local all all trust
host all all 127.0.0.1 255.255.255.255 trust
local all all ident sameuser

PHPPgAdmin

sudo apt-get install phppgadmin

Dans /etc/apache2/apache2.conf

Include /etc/phppgadmin/apache.conf

Dans /var/www

sudo ln -s /usr/share/phppgadmin/ phppgadmin

Creation d’un utilisateur PostGreSQL

sudo su postgres createuser  ronux

Installation de PostGis

Source : http://lecoindespotes.free.fr/article.php3?id_article=22

Bashrc

alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias refresh='killall gnome-panel'

Samba

Utilisateurs :

sudo smbpasswd rgu

Edition :

emacs /etc/samba/smb.conf

Exemple :

[www]
 comment = Web sur Ronux
 path = /var/www
 guest ok = no
 writable = yes
 valid users = @webadmins rgu
 force group = www-data
 force user = www-data
 create mask = 0660
 directory mask = 0770
 available = yes
 browseable = yes
 public = yes

Relancer :

/etc/init.d/samba reload

SSH

http://doc.ubuntu-fr.org/applications/ssh

apt-get install openssh-server
sudo /etc/init.d/ssh start

Ronan, Public :

AAAAB3NzaC1yc2EAAAABJQAAAIBvVHXIr/DHL7sjjPJ2fnIzqR1UY4alrvTiVFir QKlr+pTxh4/Y6HdjyayB7TMRPWUVh2Tq4l9EszWBKp3bSXoIBQH+TM3j/3fIE2MH 3SoafRQIIHQF1QRBaV5YU4ia8IqBdDfpZO6qqzxbQqqu4GiJeMhmk0bDT/IvX5jx 3TnG0Q==

Subversion

Tree

Générer un fichier HTML d'une arborescence fichier

tree -H -R -o toto.html

.bashrc

Recharger le fichier .bashrc pour prendre en compte les modifications :

. .bashrc

Dictionnaire FR pour Thunderbird

apt-get install myspell-fr-gut

Encodage CD -> MP3

http://doc.ubuntu-fr.org/applications/lecture_et_encodage_de_fichiers_audio

plus http://forum.ubuntu-fr.org/viewtopic.php?id=4355

Speedfan-like

lm-sensors

au lancement, compléter

sudo modprobe i2c (...)

par

sudo modprobe -r i2c-viapro
sudo modprobe -r i2c-isa
sudo modprobe -r it87
sudo modprobe i2c-sis96x
sudo depmod -a
sudo update-modules
sensors

Liens

Depots

Cf. http://taltan.free.fr/index/2006/06/07/19-le-sourceslist

sudo gedit /etc/apt/sources.list
###################################################################
# Automatically generated sources.list
# http://www.ubuntulinux.nl/source-o-matic
#
# If you get errors about missing keys, lookup the key in this file
# and run these commands (replace KEY with the key number)
#
# gpg --keyserver subkeys.pgp.net --recv KEY
# gpg --export --armor KEY | sudo apt-key add -
###################################################################

## Ubuntu supported & community supported packages + backports (packages, GPG key: 437D05B5)
## Dépôts binaires officiels français
deb http://fr.archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse

## Penguin Liberation Front (packages)
## GPG Key : wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -
deb http://medibuntu.sos-sts.com/repo/ edgy free non-free

## Canonical
deb http://archive.canonical.com edgy-commercial main

## ntfs-3g : Pour monter les USB externe en écriture
deb http://givre.cabspace.com/ubuntu/ edgy main-all

## BERYL
deb http://ubuntu.beryl-project.org edgy main

## Driver nVidia 9629
deb http://albertomilone.com/drivers/edgy/nonlegacy/32bit binary/

## ONTV 
deb http://debian.vakevainen.fi/ unstable main
##Freeplayer
#deb http://www.tvfreeplayer.com/linux/ubuntu/dapper/ unstable main 
deb http://www.tvfreeplayer.com/linux/ubuntu/dapper/ unstable main
#deb http://www.tvfreeplayer.com/linux/falcon edgy mods
#deb http://www.tvfreeplayer.com/linux/falcon edgy all
#VLC media player nightly builds
deb http://nightlies.videolan.org/build/dapper-i386 /

Wifi

http://doc.ubuntu-fr.org/materiel/wifi/rt2500dapper?s=wifi


Stickers

http://www.linux-schlepptops.de/index.php?cPath=22