Ubuntu dapper fr
From
Guide de démarrage non-officiel d'Ubuntu 6.06 (Dapper Drake)
Ce guide http://ubuntuguide.org/ a été commencé par Chua Wen Kiat (Kuala Lumpur, Malaisie). Il est désormais maintenu par le Centre Linux de l'Université de Lettonie, et par quiconque souhaitant aider
Contributeurs: Orvils, Quash, Manicka, Jiyuu0, Cargo, Byte, krampo, Simos, Stubby, eljaco, shai, ThunderM, Macsim...
Ce guide peut être discuté sur le Forum UbuntuGuide.org officiel à l'adresse ubuntuforums.org (en anglais). Joignez vous à la discution.
Malheureusement, à cause du wiki-vandalisme (en anglais), seul les utilisateurs enregistrés peuvent éditer ce wiki, et seul un utilisateur enregistré peut vous créer un compte. Si vous voulez nous rejoindre pour aider, envoyez un mail à [ orvils _at_ gmail _dot_ com ] (en anglais). N'oubliez pas de donner le nom d'utilisateur que vous souhaitez.
Anciennes versions: Ubuntu 5.10 (Breezy Badger)
| Traductions: | Português • Português do Brasil • Bulgarian • বাংলা (Bengali) • 䏿 • Äesky • English • Filipino • Français • German • Italiano • Nederlands • Norsk • Suomi • Polski• LietuviÅ¡kai• Español • RomânÄ • Indonesian • Türkçe • Ð ÑÑÑкий • Persian • æ¥æ¬èª (翻訳ä¸) | edit |
Notes Générales
- Ceci est un guide de démarrage non-officiel pour Ubuntu 6.06 (Dapper Drake). Il n'est pas associé avec Ubuntu et Canonical Ltd.
- Ce guide peut être discuté sur le Forum UbuntuGuide.org officiel à l'adresse ubuntuforums.org (anglais). Joignez vous à la discution.
- Ce guide a été testé avec une installation complète du CD d'installation d'Ubuntu 6.06 x86 (Dapper Drake)
- Les textes encadrés en pointillés doivent être exécutés en mode terminal (Applications -> Outils système -> Terminal) ou utilisés comme mentionné dans les instructions.
- Afin de réduire les erreur de frappe, copiez et collez les commandes dans le terminal (Click-droit sur la commande -> "copier" ou "coller". Vous pouvez aussi utiliser Ctrl+C pour copier et Shift+Insert pour coller)
- la commande "sudo" veut dire "le super-utilisateur fait" (en anglais : superuserdo). "sudo" vous demandera un mot de passe (Password). Indiquez le mot de passe de l'utilisateur qui lance la commande.
- Si vous voulez plus d'informations à propos d'une commande, regardez simplement à la page de manuel qui correspond en utilisant la commande "man". Par exemple "man sudo" affichera la page de manuel pour la commande "sudo". Pour quitter la page de manuel utilisez Shift+Q
- Si vous êtes fatigué de taper "apt-get" tout le temps, lisez #Comment utiliser apt-get facilement (Synaptic)
- "apt-get" et "wget" nécessitent une connection internet pour installer/mettre à jour/télécharger des programmes.
- Pour télécharger un fichier, click-droit sur le lien -> Sélectionnez "Enregistrez la cible du lien sous ..." -> vérifiez que le nom et l'extension du fichier soient corrects
- Si vous souhaitez aider à traduire Ubuntu dans votre langue maternelle ou aider Ubuntu d'une autre façon visitez https://launchpad.net/ (en anglais)
- Que l'esprit de "l'humanité aux autres" soit toujours avec vous ...
- Si vous utilisez Kubuntu vous n'avez plus besoin d'installer Gedit, parce qu'il y a maintenant un lien symbolique de "gedit" vers "kate", donc vous pouvez utiliser toutes les commandes ci-dessous sans problème.
Cependant, si vous voulez utiliser gedit comme éditeur faites :
sudo apt-get install gedit
- Si la commande "gedit" (lien symbolique) ne marche pas, vous pouvez la créer :
sudo ln -s /usr/bin/kate /usr/bin/gedit
- Si vous utilisez une version 64-bit remplacez tous les "i386" par "amd64"
Les premiers pas...
Qu'est ce que Ubuntu
Qu'y a-t'il de nouveau avec Ubuntu 6.06 Dapper Drake
Où voir des captures d'écran d'Ubuntu
- http://shots.osdir.com/slideshows/slideshow.php?release=659&slide=4&title=ubuntu+6.06+screenshots
- http://www.phoronix.com/scan.php?page=article&item=481&num=1
- Vidéos
- http://osvids.com/files/page3-1034-pop.html
- http://osvids.com/files/page3-1035-pop.html
- http://osvids.com/files/page3-1036-pop.html
Où voir des captures d'écran de Kubuntu
- http://shots.osdir.com/slideshows/slideshow.php?release=662&slide=4&title=kubuntu+6.06+screenshots
- http://www.phoronix.com/scan.php?page=article&item=320&num=1
- Vidéos
Où trouver la liste de tous les programmes/librairies installés avec Ubuntu
- Resultat de dpkg -l: Ici
- http://packages.ubuntu.com/dapper
- http://distrowatch.com/table.php?distribution=ubuntu
Où télécharger Ubuntu
Où commander des CDs d'Ubuntu gratuitement
Le délai de livraison peut être de quatre à six semaines. Vous êtes encouragés à copier, modifier et redistribuer les CDs autant que possible.
Où trouver de l'aide pour Ubuntu
- Voir: Système -> Aide -> Documentation du système
sites anglais :
- Official Documentation website
- Official User Documentation (wiki)
- Ubuntu Document Storage Facility
- Mailing Lists
- Web Forums
- IRC Channel
sites français :
Où chercher de nouveaux programmes
Où chercher pour personnaliser votre bureau
Dépots
Comment ajouter des dépots supplémentaires
- Lisez #Notes Générales
- Vous pouvez aussi ajouter des dépots supplémentaires avec le gestionnaire de paquets Synaptic. Les nouveaux utilsateurs peuvent trouver plus facile d'ajouter des dépots par le gestionnaire de paquets. Si vous suivez le lien ci-dessus, vous n'avez pas à suivre le reste de cette astuce.
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup gksudo gedit /etc/apt/sources.list
- Remplacez tout par :
## Ajoutez des commentaires (##) devant chaque ligne que vous ne souhaitez pas utiliser. ## Utilisez le fichier sources.list suivant à vos propres risques. deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse ## CORRECTIONS DES BUGS produced after the final release deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse ## MISES À JOUR DE SÉCURITÉ deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse ## BACKPORTS DÉPOT (Non-officiel. Peut contenir des paquets illégaux. Utilisez-les à vos propres risques.) deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse ## PLF DÉPOT (Non-officiel. Peut contenir des paquets illégaux. Utilisez-les à vos propres risques.) deb http://packages.freecontrib.org/ubuntu/plf dapper free non-free deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free ## DÉPOT CANONICAL COMMERCIAL (Hébergé sur les serveurs Canonical, pas sur ceux d'Ubuntu. ## RealPlayer10, Opera et plus à venir.) deb http://archive.canonical.com/ubuntu dapper-commercial main
- Sauvez le fichier édité
sudo apt-get update
- Vous pouvez aussi générer votre propre fichier sources.list et trouver d'autres dépots à : http://www.ubuntulinux.nl/source-o-matic
- Vous pouvez aussi remplacer votre fichier sources.list avec cette liste très complète : sources.list (remplacez le "it" de "it.archive.ubuntu.com" par le code de votre pays (fr pour la france). Utilisez-le à vos propres risques.)
- Modifiez le fichier sources.list par défaut d'Ubuntu seulement si vous comprenez ce que vous faites. Mélanger les dépots peut casser votre système.
Mises à jour d'Ubuntu
Comment mettre à jour Ubuntu manuellement
sudo apt-get update sudo apt-get upgrade
OU
Utilisez le gestionnaire de mises à jour: Système -> Administration -> gestionnaire de mises à jour
Applications supplémentaires
Comment utiliser Easy Ubuntu
- Lisez #Notes Générales
- Easy Ubuntu est un petit utilitaire simple qui permet aux utilisateurs débutants d'installer facilement une large variété de choses pour Ubuntu comme des codecs, des polices, Macromedia Flash et Sun Java.
wget http://robotgeek.org/eu/easyubuntu-3.0.tar.gz tar -zxf easyubuntu-3.0.tar.gz cd easyubuntu sudo python easyubuntu.py
- Dans la fenêtre d'Easy Ubuntu, cochez les cases appropriées pour télécharger et installer ce que vous souhaitez.
Comment installer le daemon presse-papier pour GNOME
(inutile avec la dernière version de gnome)
- Lisez #Notes Générales
wget -c http://easylinux.info/uploads/gnome-clipboard-daemon-1.0.bin.tar.bz2 sudo tar jxvf gnome-clipboard-daemon-1.0.bin.tar.bz2 -C /usr/bin/ sudo chown root:root /usr/bin/gnome-clipboard-daemon sudo chmod 755 /usr/bin/gnome-clipboard-daemon sudo gnome-clipboard-daemon & export EDITOR=gedit && crontab -e
- Ajoutez la ligne suivante à la fin du fichier
@reboot gnome-clipboard-daemon
- Sauvez le fichier modifié
Comment installer J2SE Runtime Environment (JRE) avec le plug-in pour Mozilla Firefox
sudo apt-get install sun-java5-jre sun-java5-plugin
- Quand cela est demandé, acceptez les termes de la licences.
- Pour configurer J2SE comme JVM par défaut (nécessaire pour des programmes comme Frostwire, RSSOwl et pour l'utiliser comme plug-in de Mozilla Firefox):
sudo update-alternatives --config java
Puis choisissez l'option qui correspond à J2SE.
Comment installer le plug-in Flash Player (Macromedia Flash) pour Mozilla firefox
sudo apt-get install flashplugin-nonfree sudo update-flashplugin
- Redémarrez Mozilla Firefox
Comment installer PDF Reader (Adobe Reader) avec le plug-in pour Mozilla Firefox
sudo apt-get install acroread sudo apt-get install mozilla-acroread sudo apt-get install acroread-plugins
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Office -> Adobe Reader
- Redémarrez Mozilla Firefox
Comment installer un gestionnaire de téléchargement (Downloader for X)
sudo apt-get install d4x
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Internet -> Downloader for X
Comment installer un client FTP (gFTP)
sudo apt-get install gftp
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Internet -> gFTP
Comment installer un utilitaire de partage de fichiers (DC++)
- Lisez #Notes Générales
wget -c http://easylinux.info/uploads/linuxdcpp.tar.gz sudo tar zxvf linuxdcpp.tar.gz -C /opt gksudo gedit /usr/share/applications/dcpp.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Encoding=UTF-8 Name=DC++ Exec=/opt/linuxdcpp/ldcpp Terminal=false Type=Application StartupNotify=true Icon=/opt/linuxdcpp/pixmaps/linuxdcpp.svg Categories=Application;Network;
- Sauvez le fichier modifié
- Applications -> Internet -> DC++
Comment installer un client BitTorrent (Azureus)
- Lisez #Notes Générales
sudo apt-get install azureus
- Applications -> Internet -> Azureus
Comment installer un client eMule (aMule)
sudo apt-get install amule
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Internet -> aMule
Comment installer un client Gnutella (FrostWire)
- Lisez #Notes Générales
- Lisez #Comment installer J2SE Runtime Environment (JRE) avec le plug-in pour Mozilla Firefox
wget -c http://www.users.on.net/~stubby/FrostWire-4.10.9-2.i586.deb sudo dpkg -i FrostWire-4.10.9-2.i586.deb
- Applications -> Internet -> FrostWire
Comment installer un client de messagerie (Skype)
- Lisez #Notes Générales
gksudo gedit /etc/apt/sources.list
- Ajoutez les lignes suivantes à la fin du fichier
## Dépot pour Skype deb http://download.skype.com/linux/repos/debian/ stable non-free
- Sauvez le fichier modifié
sudo apt-get update sudo apt-get install skype
- Applications -> Internet -> Skype
Comment installer WinPopup (LinPopUp)
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Read #How to install Samba Server for files/folders sharing service
sudo apt-get install linpopup gksudo gedit /usr/share/applications/linpopup.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=LinPopUp Comment=LinPopUp Exec=linpopup Icon=/usr/share/pixmaps/linpopup.xpm Terminal=false Type=Application Categories=Application;Utility;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Accessoires -> LinPopUp
Comment installer les codecs multimédia
Stubby Tous les codecs connus marchent sauf pour le wmv
sudo apt-get install gstreamer0.10-ffmpeg sudo apt-get install gstreamer0.10-gl sudo apt-get install gstreamer0.10-plugins-base sudo apt-get install gstreamer0.10-plugins-good sudo apt-get install gstreamer0.10-plugins-bad sudo apt-get install gstreamer0.10-plugins-bad-multiverse sudo apt-get install gstreamer0.10-plugins-ugly sudo apt-get install gstreamer0.10-plugins-ugly-multiverse
Comment installer la lecture de DVD
ironss: gstreamer dvd plugin is available as part of plugins-bad (or ugly?) and does not work reliably. However, Totem works with the xine backend to play back DVDs. This will keep you going until gstreamer gets dvd playback. Note that you do not have to install xine-ui or mplayer as suggested in
sudo apt-get install libdvdread3 sudo /usr/share/doc/libdvdread3/examples/install-css.sh sudo apt-get install totem-xine
Stubby: gstreamer dvd plugin not ported to dapper yet. following instructions will not work properly
sudo apt-get install libdvdcss2
Comment installer un lecteur multimédia (xine-ui)
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Lisez #Comment installer les codecs multimédia
- Lisez #Comment installer la lecture de DVD
sudo apt-get install xine-ui libxine-extracodecs
- Lire les fichiers multimédia avec xine-ui
gconftool-2 --type string --set /desktop/gnome/volume_manager/autoplay_dvd_command "xine dvd://" sudo rm -f /usr/share/applnk/Multimedia/xine.desktop sudo ln -fs /usr/share/xine/desktop/xine.desktop /usr/share/applications/ sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo sed -e 's/totem.desktop/xine.desktop/g' /usr/share/applications/defaults.list_backup > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list
- Lisez #Comment rafraichir le GNOME panel
- Lisez #Comment rafraichir le bureau GNOME
- Applications -> Son et Vidéo -> xine
Comment installer un lecteur multimédia (VLC) avec plug-in pour Mozilla Firefox
sudo apt-get install mozilla-plugin-vlc vlc-plugin-*
- Applications -> Sound and Video -> VLC Media Player
Comment installer un lecteur multimédia (Mplayer) avec plug-in pour Mozilla Firefox
sudo apt-get install mozilla-mplayer
- Applications -> Son et Vidéo -> MPlayer Movie Player
Comment installer un lecteur multimédia (Totem) avec plug-in pour Mozilla Firefox
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Lisez #Comment installer les codecs multimédia
- Lisez #Comment installer la lecture de DVD
sudo apt-get install totem-gstreamer-firefox-plugin
- Redémarrez Mozilla Firefox
Comment installer un lecteur multimédia (XMMS)
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Lisez #Comment installer les codecs multimédia
sudo apt-get install xmms sudo apt-get install xmms-skins wget -c http://easylinux.info/uploads/xmms-wma_1.0.4-2_i386.deb sudo dpkg -i xmms-wma_1.0.4-2_i386.deb
- Lire les fichiers MP3/M3U/WAV avec XMMS
sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo cp /usr/share/applications/defaults.list /tmp/defaults.list_tmp sudo sed -e 's/audio\/mpeg=.*/audio\/mpeg=XMMS.desktop/g' /tmp/defaults.list_tmp > /tmp/defaults.mp3 sudo sed -e 's/audio\/x-mpegurl=.*/audio\/x-mpegurl=XMMS.desktop/g' /tmp/defaults.mp3 > /tmp/defaults.m3u sudo sed -e 's/audio\/x-wav=.*/audio\/x-wav=XMMS.desktop/g' /tmp/defaults.m3u > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list sudo rm -f /tmp/defaults.*
- Lisez #Comment rafraichir le GNOME panel
- Lisez #Comment rafraichir le bureau GNOME
- Applications -> Son et Vidéo -> XMMS
Comment installer un lecteur multimédia (amaroK)
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Lisez #Comment installer les codecs multimédia
sudo apt-get install amarok
- Applications -> Son et Vidéo -> amaroK
Comment installer un lecteur multimédia (RealPlayer 10)
sudo apt-get install realplay
- Note: 'realplay' installe RealPlayer 10 depuis les dépots PLF ou canonical que vous devez avoir activés si vous avez suivi ce guide. (pour choisir entre PLF et canonical : clic-droit sur le fichier -> Propriétés ->versions). 'realplayer' installe RealPlayer 8 depuis les dépots multiverse.
- Applications -> Son & Vidéo -> RealPlayer 10
- Tous les plug-in nécessaires pour voir des vidéos dans firefox seront aussi installés
- Pour éviter que l'écran clignote ou devienne blanc quand vous changez d'écran, allez à
- RealPlayer 10 -> Tools -> Preferences -> Hardware -> Uncheck XVideo
Comment installer un lecteur de flux (streamtuner)
sudo apt-get install streamtuner sudo apt-get install streamripper
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Son et Vidéo -> streamtuner
Comment installer un organiseur de musique (Cowbell)
sudo apt-get install cowbell
- Applications -> Son et Vidéo -> Cowbell Music Organizer
Comment installer un éditeur de tag ID3 (EasyTAG)
sudo apt-get install easytag
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Son et Vidéo -> EasyTAG
Comment installer un éditeur vidéo (Kino)
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Lisez #Comment installer les codecs multimédia
sudo apt-get install kino sudo apt-get install kinoplus sudo apt-get install kino-timfx sudo apt-get install kino-dvtitler
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Son et Vidéo -> Kino Video Editor
Comment installer un éditeur audio (Audacity)
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Lisez #Comment installer les codecs multimédia
sudo apt-get install audacity
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Son et Vidéo -> Audacity
Comment installer un rippeur de DVD (dvd::rip)
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Lisez #Comment installer les codecs multimédia
- Lisez #Comment installer la lecture de DVD
- Lisez #Comment installer un lecteur multimédia (Totem) avec le plug-in pour Mozilla Firefox
- Lisez #Comment installer un archiveur de fichiers rar (rar)
sudo apt-get install dvdrip sudo apt-get install vcdimager sudo apt-get install cdrdao sudo apt-get install subtitleripper sudo ln -fs /usr/bin/rar /usr/bin/rar-2.80 gksudo gedit /usr/share/applications/dvdrip.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=dvd::rip Comment=dvd::rip Exec=dvdrip Icon=/usr/share/perl5/Video/DVDRip/icon.xpm Terminal=false Type=Application Categories=Application;AudioVideo;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Son et Vidéo -> dvd::rip
Comment installer un rippeur de CD (Goobox)
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Lisez #Comment installer les codecs multimédia
sudo apt-get install goobox sudo rm -f /usr/share/applications/goobox.desktop gksudo gedit /usr/share/applications/goobox.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=CD Player & Ripper Comment=Play and extract CDs Exec=goobox Icon=goobox.png Terminal=false Type=Application Categories=Application;AudioVideo;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Son et Vidéo -> CD Player & Ripper
Comment installer un visualiseur d'images (digiKam)
sudo apt-get install digikam digikamimageplugins kipi-plugins
- Applications -> Images -> digikam
Comment installer l'organiseur d'images Picasa
- Lisez #Notes Générales
gksudo gedit /etc/apt/sources.list
- Ajoutez les lignes suivantes à la fin du fichier
# Google Picasa for Linux repository deb http://dl.google.com/linux/deb/ stable non-free
- Sauvez le fichier modifié
sudo apt-get update sudo apt-get install picasa
- Applications -> Images -> Picasa
Comment installer un navigateur web (Opera)
Opéra se trouve dans le dépot Canonical que vous devez avoir installé si vous avez suivi ce guide
sudo apt-get install opera
- Applications -> Internet -> Opera
- Pour faire fonctionner java, allez à Tools->Preferences->Advanced->Content-> Check "Enable Java". Cliquez sur le bouton "Enable Java..." entrez "/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386" (pour sun java) dans la boite de dialogue et cliquez sur le bouton "Validate Java Path"
Comment installer un Client mail (Mozilla Thunderbird)
sudo apt-get install mozilla-thunderbird
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Internet -> Thunderbird Mail
Comment installer un lecteur de news (Pan)
- Lisez #Notes Générales
wget -c http://www.users.on.net/~stubby/pan_0.100_i386.deb sudo apt-get install libgmime2.1 sudo dpkg -i pan_0.100_i386.deb
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Internet -> Pan Newsreader
Comment installer un lecteur de news RSS/RDF/Atom (RSSOwl)
- Lisez #Notes Générales
- Lisez #Comment installer J2SE Runtime Environment (JRE) avec le plug-in pour Mozilla Firefox
wget -c http://easylinux.info/uploads/rssowl_linux_1_1_3_bin.tar.gz sudo tar zxvf rssowl_linux_1_1_3_bin.tar.gz -C /opt/ sudo chown -R root:root /opt/rssowl_linux_1_1_3_bin/ gksudo gedit /usr/bin/runRSSOwl.sh
- Insérez les lignes suivantes dans le nouveau fichier
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MOZILLA_FIVE_HOME}:${LD_LIBRARY_PATH}
cd /opt/rssowl_linux_1_1_3_bin/
./run.sh
- Sauvez le fichier modifié
sudo chmod +x /usr/bin/runRSSOwl.sh gksudo gedit /usr/share/applications/RSSOwl.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=RSSOwl Comment=RSSOwl Exec=runRSSOwl.sh Icon=/opt/rssowl_linux_1_1_3_bin/rssowl.xpm Terminal=false Type=Application Categories=Application;Network;
- Sauvez le fichier modifié
- Applications -> Internet -> RSSOwl
Comment installer un Système de Développement Web (Nvu)
sudo apt-get install nvu sudo rm -f /usr/share/applications/nvu.desktop gksudo gedit /usr/share/applications/nvu.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=Nvu Comment=Web Development Editor Exec=nvu Icon=nvu.xpm Terminal=false Type=Application Categories=Application;Network;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Internet -> Nvu
Comment installer un environnement de développement web (quanta plus)
sudo apt-get install quanta
- Applications -> Développement -> Quanta Plus
Comment installer l'Application Gestionnaire de Projets (Planner)
sudo apt-get install planner
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Bureautique -> Gestionnaire de Projets
Comment installer un logiciel de comptabilité (GnuCash)
sudo apt-get install gnucash sudo rm -fr /usr/share/gnome/apps/Applications/ gksudo gedit /usr/share/applications/GnuCash.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=GnuCash Comment=GnuCash Personal Finance Exec=gnucash Icon=/usr/share/pixmaps/gnucash/gnucash-icon.png Terminal=false Type=Application Categories=Application;Office;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Office -> GnuCash
Comment installer un logiciel de publication (Scribus)
sudo apt-get install scribus
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Office -> Scribus
Comment installer un éditeur de diagramme (Dia)
sudo apt-get install dia-gnome
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Images -> Dia
Comment installer un visualiseur de fichiers d'aide compilés (xCHM)
sudo apt-get install xchm
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Images -> xCHM
Comment installer un logiciel de gravure de CD/DVD (GnomeBaker)
sudo apt-get install gnomebaker
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Accessoires -> GnomeBaker CD/DVD Creator
Comment installer un logiciel de gravure de CD/DVD (K3b)
sudo apt-get install k3b k3b-mp3
- Applications -> Son et Vidéo -> K3b
Comment installer Dialup PPP Client (GNOME PPP)
sudo apt-get install gnome-ppp
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Internet -> GNOME PPP
Comment installer Broadband ADSL/PPPoE Client (RP-PPPoE)
wget -c http://easylinux.info/uploads/rp-pppoe-3.6.tar.gz sudo tar zxvf rp-pppoe-3.6.tar.gz -C /opt/ sudo chown -R root:root /opt/rp-pppoe-3.6/ gksudo gedit /usr/share/applications/RP-PPPoE.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=RP-PPPoE Comment=RP-PPPoE Exec=gksudo /opt/rp-pppoe-3.6/go-gui Icon= Terminal=false Type=Application Categories=Application;Network;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Internet -> RP-PPPoE
Comment installer Boot-Up Manager (BUM)
sudo apt-get install bum
- Lisez #Comment rafraichir le GNOME panel
- System -> Administration -> Boot-Up Manager
Comment installer un éditeur de partition (GParted)
sudo apt-get install gparted
- Lisez #Comment rafraichir le GNOME panel
- Système -> Administration -> Éditeur de partitions de Gnome
Comment installer un firewall (Firestarter)
sudo apt-get install firestarter
- Lisez #Comment rafraichir le GNOME panel
- Système -> Administration -> Firestarter
Comment installer un analyseur de trafic de réseau (Ethereal)
sudo apt-get install ethereal
- Applications -> Internet -> Ethereal
Comment installer un assesseur de sécurité (Nessus)
sudo apt-get install nessus sudo apt-get install nessusd sudo nessus-adduser sudo ln -fs /etc/init.d/nessusd /etc/rc2.d/S20nessusd sudo /etc/init.d/nessusd start gksudo gedit /usr/share/applications/Nessus.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=Nessus Comment=Nessus Exec=nessus Icon=/usr/share/pixmaps/nessus.xpm Terminal=false Type=Application Categories=Application;System;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Outils système -> Nessus
Comment installer un archiveur de fichiers rar (rar)
sudo apt-get install rar sudo ln -fs /usr/bin/rar /usr/bin/unrar
- Applications -> Accessoires -> Archive Manager
Comment installer des polices supplémentaires
sudo apt-get install xfonts-intl-arabic sudo apt-get install xfonts-intl-asian sudo apt-get install xfonts-intl-chinese sudo apt-get install xfonts-intl-chinese-big sudo apt-get install xfonts-intl-european sudo apt-get install xfonts-intl-japanese sudo apt-get install xfonts-intl-japanese-big sudo apt-get install xfonts-intl-phonetic sudo apt-get install gsfonts-x11 sudo apt-get install msttcorefonts sudo fc-cache -f -v
- Note: Ubuntu Dapper est installé avec la police DejaVu (dérivée de la police Bitstream Vera) et fourni le support adéquat pour les langues basées sur le latin, grec et Cyrillien.
Comment installer Chinese Input Method (SCIM)
The following advices are outdated and it could be hard to revert to normal afterwards. Please follow instead the official Ubuntu 6.06 Dapper Drake guide at https://wiki.ubuntu.com/InputMethods/SCIM/CJK_Chinese_Japanese_Korean_Input_Method_configuration_using_SCIM_in_Ubuntu_6%2e06_Dapper_Drake
Please note that scim is now installed by default in Dapper, and installing Chinese, Japanese or Korean Support is done using System>Administration>Language Support. The wiki details the method more thoroughly
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Read #How to install Extra Fonts
sudo apt-get install scim sudo apt-get install scim-chinese sudo apt-get install scim-config-socket sudo apt-get install scim-gtk2-immodule sudo apt-get install scim-tables-zh wget -c http://easylinux.info/uploads/fireflysung-1.3.0.tar.gz sudo tar zxvf fireflysung-1.3.0.tar.gz -C /usr/share/fonts/truetype/ sudo chown -R root:root /usr/share/fonts/truetype/fireflysung-1.3.0/ sudo fc-cache -f -v
- System -> Preferences -> SCIM Input Method Setup
- To activate SCIM
Press 'Ctrl + Space'
Comment installer des Applets de bureau (gDesklets)
sudo apt-get install gdesklets sudo apt-get install gdesklets-data
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Accessoires -> gDesklets
- Pour plus d'informations: http://gdesklets.gnomedesktop.org/ (anglais)
Comment installer les compileurs de base (build-essential)
sudo apt-get install build-essential
Comment installer un environement de développement intégré (Anjuta)
sudo apt-get install anjuta
- Applications -> Développement -> Anjuta IDE
Comment installer MonoDevelop (C# IDE)
sudo apt-get install mono mono-gmcs mono-gac mono-utils monodevelop
Comment installer un outil de modélisation 3D (Blender 3d)
sudo apt-get install blender
- Applications -> Images -> Blender 3D modeller
Comment installer le jeu Tuxracer
sudo apt-get install planetpenguin-racer planetpenguin-racer-data planetpenguin-racer-extras
- Applications -> Jeux -> planetpenguin-racer
Comment installer le jeu Frozen-Bubble
sudo apt-get install frozen-bubble
- Applications -> Jeux -> Frozen-Bubble
Comment installer le jeu Scorched3D
sudo apt-get install scorched3d gksudo gedit /usr/share/applications/scorched3d.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=Scorched 3D Comment=A 3D Remake Of Scorched Earth Exec=scorched3d Icon= Terminal=false Type=Application Categories=Application;Game;ArcadeGame;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Jeux -> Scorched 3D
Comment installer un planétarium virtuel (Stellarium)
sudo apt-get install stellarium gksudo gedit /usr/share/applications/stellarium.desktop
- Insérez les lignes suivantes dans le nouveau fichier
[Desktop Entry] Name=Stellarium Comment=Virtual planetarium Exec=stellarium Terminal=false Type=Application Categories=Application;Education;
- Sauvez le fichier modifié
- Lisez #Comment rafraichir le GNOME panel
- Applications -> Éducation -> Stellarium
Comment installer Google Earth
- Lisez #Notes Générales
wget -c http://dl.google.com/earth/GE4/GoogleEarthLinux.bin sudo sh GoogleEarthLinux.bin
- Laissez /usr/local/google-earth Comme chemin d'intallation
- Après l'installation cliquez sur Exit. Si vous choisissez de lancer l'application à la place, lisez la note ci-dessous.
sudo cp /usr/local/google-earth/googleearth.desktop /usr/share/applications/
- Applications -> Internet -> Google Earth
- Note: Si vous exécutez Google Earth pour la première fois à partir de l'installeur, vous aurez besoin des privilèges root au prochain lancement. Pour corriger cela :
sudo chmod 777 -R ~/.googleearth
Comment installer les applications éducatives de KDE
sudo apt-get install kdeedu
- Applications -> Éducation -> ...
Comment installer un émulateur windows (Wine)
- Wine permet de lancer certaines applications windows avec ubuntu
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
gksudo gedit /etc/apt/sources.list
- Ajoutez les lignes suivantes à la fin du fichier
# Dépot pour wine deb http://wine.budgetdedicated.com/apt dapper main deb-src http://wine.budgetdedicated.com/apt dapper main
- Sauvez le fichier modifié
sudo apt-get update sudo apt-get install wine
- Pour plus d'informations http://www.winehq.com/ (anglais)
Autres environnements de bureau
Comment installer KDE
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Vous pouvez aussi regarder certaines Captures d'écran de KDE (anglais)
sudo apt-get install kubuntu-desktop
- Note: Cette installation nécessite environ 400Mo d'espace dique
- Système -> Quitter -> Se déconnecter
- Pour se logguer avec KDE cliquez sur Sessions et choisissez KDE
Comment installer XFCE
- Lisez #Notes Générales
- Lisez [[#Comment ajouter des dépots supplémentaires]
- Vous pouvez aussi regarder certaines Captures d'écran de XFCE (anglais)
sudo apt-get install xubuntu-desktop
- Système -> Quitter -> Se déconnecter
- Pour se logguer avec XFCE cliquez sur Sessions et choisissez XFCE
How to install XFCE 4.4 preview versions (4.3.90.1)
- to install Xfce 4.4 beta 1 (4.3.90.1) on a fresh install of Dapper:
- download the Xfce 4.4 preview versions installer (see http://www.xfce.org)
sudo apt-get install build-essential gcc pkg-config libglib2.0-0 \
libglib2.0-dev libgtk2.0-0 libgtk2.0-dev libxml++2.6c2a libxml++2.6-dev \
libvte-dev libvte4 a2ps libxpm-dev libxpm4 alsa-source alsa alsa-base \
alsa-oss alsa-utils libxml-parser-perl libpng12-0 libpng12-dev libdbh1.0-dev
chmod +x xfce4-4.3.90.1-installer.bin sudo ./xfce4-4.3.90.1-installer.bin
- on installer, use default setting, except:
- Extensive Optimizations, can be truned on for 386
- Use ALSA for the Xfce Mixer, can be turned off
- (see http://forums.debian.net/viewtopic.php?t=4697&)
- finally to enable Xfce, you may need to enable it on the desktop manager (mark allow Xfce manage desktop)
Eye Candy
Comment installer Xgl/Compiz (Nvidia)
- Pour une information complète sur comment configurer XGL sur des cartes différentes et d'autres réglages voyez: http://ubuntuforums.org/showthread.php?t=148351
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf
- Trouvez la section
Section "Module" Load "i2c" Load "bitmap" ... Load "type1" Load "vbe" EndSection
- Commentez dri et GLcore (si ils sont présent)
# Load "dri" # Load "GLcore"
- Assuez vous que le module glx est chargé
Load "glx"
- Touvez la section (les valeurs peuvent varier)
Section "Device" Identifier "NVIDIA Corporation NV34M [GeForce FX Go5200]" Driver "nv" BusID "PCI:1:0:0" EndSection
- Remplacez avec les lignes suivantes, laissez l'Identifier et BusID comme il est
Section "Device" ... Driver "nvidia" ... Option "RenderAccel" "true" Option "AllowGLXWithComposite" "true" EndSection
- Trouvez cette section
Section "Screen" Identifier "Default Screen" Device "NVIDIA Corporation NV34M [GeForce FX Go5200]" Monitor "Generic Monitor" DefaultDepth 16
- Assuez vous que DefaultDepth est configuré sur 24, si il ne l'est pas déjà
DefaultDepth 24
- Sauvez le fichier édité
- Installez Xgl/Compiz
sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome sudo cp /etc/gdm/gdm.conf-custom /etc/gdm/gdm.conf-custom-backup gksudo gedit /etc/gdm/gdm.conf-custom
- Remplacez tout avec les lignes suivante
# GDM Configuration Customization file. # # This file is the appropriate place for specifying your customizations to the # GDM configuration. If you run gdmsetup, it will automatically edit this # file for you and will cause the daemon and any running GDM GUI programs to # automatically update with the new configuration. Not all configuration # options are supported by gdmsetup, so to modify some values it may be # necessary to modify this file directly by hand. # # To hand-edit this file, simply add or modify the key=value combination in # the appropriate section in the template below. Refer to the comments in the # gdm.conf file for information about each option. Also refer to the reference # documentation. # # If you hand edit a GDM configuration file, you should run the following # command to get the GDM daemon to notice the change. Any running GDM GUI # programs will also be notified to update with the new configuration. # # gdmflexiserver --command="UPDATE_CONFIG <configuration key>" # # For example, the "Enable" key in the "[debug]" section would be specified by # "debug/Enable". # # You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and # re-read the new configuration settings. You can also restart GDM by sending # a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes # any user session started by GDM to exit immediately while USR1 behaves like # gdm-safe-restart and will wait until all users log out before restarting GDM. # # For full reference documentation see the gnome help browser under # GNOME|System category. You can also find the docs in HTML form on # http://www.gnome.org/projects/gdm/ # # NOTE: Lines that begin with "#" are considered comments. # # Have fun! [daemon] [security] [xdmcp] [gui] [greeter] [chooser] [debug] [servers]# Override display 1 to use Xgl 0=Xgl [server-Xgl] name=Xgl server command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo flexible=true
- Créer un script qui lance Xgl/Compiz au démarrage
gksudo gedit /usr/bin/thefuture
- Insérer les lignes suivantes dans le nouveau fichier. Remplacez .us avec la valeur de clavier approprié selon votre localisation. Ex .gb pour Grande-Bretagne. Pour avoir la list des configurations clavier, tapez ls /usr/share/xmodmap dans un terminal. Si vous n'êtes pas sure, laissez .us (United States)
#!/bin/bash gnome-window-decorator & compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher & xmodmap /usr/share/xmodmap/xmodmap.us
- Sauvez le fichier
sudo chmod 755 /usr/bin/thefuture
- Lancez compiz pour cette session
thefuture
- Pour avoir compiz lancé au démarrage
- Système -> Preférences -> Sessions
- Programmes au démarrage -> Ajouter
/usr/bin/thefuture
- Cliquez sur OK, et Fermer
- Lisez #How to restart GNOME without rebooting computer
- Problèmes
- Si Xgl/Compiz ne semble pas fonctionner, ou vous avez des erreurs, redémarrer simplement votre machine après avoir ajouté "thefuture" au programme de démarrage
- Si le mouvement des fenêtres ralenti le système, lancez gconf-editor depuis un terminal. Trouvez apps/compiz/general/screen0/options. Désactivez detect_refresh_rate et réflez refresh rate à 60. Tous devrait fonctionner correctement maintenant...
- Si vous utilisez un modèle de clavier différent (autre language), vous devrirez le changer à Système/Préférences/Clavier.
- Vous pouvez aussi y activer la Super-key dans les boutons des fenêtres.
- Astuces
- Basculer entre les fenêtres = Alt + Tab
- Arranger et Voir Toutes les Fenêtres = F12 active/désactive; cliquer sur une fenêtre l'avancera au premier plan
- Basculer entre les bureaux dans cube = Ctrl + Alt + Flèche Gauche/Droite
- Basculer entre les bureaux dans cube - avec la fenêtre active qui suit = Ctrl + Shift + Alt + Flèche Gauche/Droite
- Faire des rotations au cube manuellement = Ctrl + Alt + click-gauche
- Rendre les fenêtre translucide/opaque = Actuellement possible uniquement avec l'utilitaire "transset"
- Zoom-avant une seule fois = Super-key click-droit
- Zoom-avant manuel = Super-key + Roulette de la souris vers le haut
- Zoom-arrière manuel = Super-key + Roulette de la souris vers le bas
- Bouger une fenêtre = Alt + click-gauche
- Coller une fenêtre en mouvement (Elle se collera aux bordures) = Ctrl + Alt + click-gauche
- Redimentionner une fenêtre = Alt + click-droit
Comment installer un écran de boot alternatif
- Lisez #General Notes
- Ceci installe un écran de boot qui apparait quand l'ordinateur démarre et s'arrete. Il est dépouvu de message textuel.
wget -c http://www.users.on.net/~stubby/usplash-minimalistic_0.1.deb sudo dpkg -i usplash-minimalistic_0.1.deb sudo update-alternatives --config usplash-artwork.so
- Sélectionner l'image alternative (/usr/local/lib/usplash/minimalastic.so) en entrant le numero correspondant. Si vous voulez revenir à l'écran de boot original, sélectionnez (/usr/lib/usplash/usplash-default.so)
- Redemarrez l'ordinateur pour voir les effets
Applications Commerciales
Comment installer 9X/ME/2000/XP (Win4Lin)
Comment installer des applications Windows (CrossOver Office)
Comment installer des jeux Windows (Cedega)
User Administration
Comment définir/changer/activer le mot de passe de l'utilisateur root
- Lisez #Notes Générales
sudo passwd root
Comment désactiver le compte de l'utilisateur root
- Lisez #Notes Générales
sudo passwd -l root
Comment autoriser l'utilisateur root à se logger avec GNOME
- Lisez #Notes Générales
- Lisez #Comment définir/changer/activer le mot de passe de l'utilisateur root
- Système -> Administration -> Fenêtre de connexion
Onglet Sécurité -> Sécurité -> Autoriser la connection locale de l'administrateur système (cochée)
Comment basculer vers l'utilisateur root en mode console
- Lisez #Notes Générales
sudo -s -H Password: <specify user password>
Comment ajouter/éditer/effacer des utilisateurs système
- Lisez #Notes Générales
- Système -> Administration -> Utilisateurs et groupes
Onglet utilisateurs -> Ajouter un utilisateur.../Propriétés/Supprimer
- ou
sudo useradd jim sudo userdel jim
- Pour plus d'infos lire :
man usermod
Comment ajouter/éditer/supprimer un groupe
- Lisez #Notes Générales
- Système -> Administration -> Utilisateurs et groupes
Onglet Groupe -> Ajouter un groupe.../Propriétés/Supprimer
Comment se connecter automatiquement à GNOME (non sécurisé)
- Lisez #Notes Générales
- Système -> Administration ->Fenêtre de connexion
Onglet Sécurité -> Activer les connexions automatiques (Coché) Choisissez un utilisateur dans le menu déroulant.
Comment autoriser plus de sudoers
- Lisez #General Notes
export EDITOR=gedit && sudo visudo
- Ajoutez la ligne suivante à la fin du fichier
system_username ALL=(ALL) ALL
- Sauvez le fichier
Comment utiliser "sudo" sans demander le mot de passe (non sécurisé)
- Lisez #Notes Générales
export EDITOR=gedit && sudo visudo
- Trouvez cette ligne
... system_username ALL=(ALL) ALL ...
- Remplacez la par la ligne suivante
system_username ALL=(ALL) NOPASSWD: ALL
- Sauvez le fichier modifié
Comment fermer explicitement la session "sudo"
- Lisez #Notes Générales
sudo -K
Comment changer les permissions d'un fichier/répertoire
- Lisez #Notes Générales
Clic-droit sur le fichier/répertoire -> Propriétés
Onglet Permissions -> Lecture/Écriture/Exécution (Cochez les permissions pour Propriétaire/groupe/autres)
Comment changer le propriétaire d'un fichier/répertoire
- Lisez #Notes Générales
sudo chown nom_d_utilisateur /chemin_du_fichier_ou_répertoire
Comment changer le groupe proporiétaire d'un fichier/dossier
- Lisez #Notes Générales
sudo chgrp nom_du_groupe /emplacement_des_fichiers_ou_dossiers
Matériel
Comment installer les pilotes vidéo (NVIDIA)
sudo apt-get install nvidia-glx nvidia-kernel-common sudo nvidia-glx-config enable
Comment désactiver l'affichage du logo NVIDIA au démarrage de GNOME
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf
- Trouvez cette section
... Section "Device" Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]" Driver "nvidia" BusID "PCI:1:0:0" ...
- Ajoutez la ligne suivante en dessous
Option "NoLogo"
- Sauvez le fichier modifié
- Read #Comment redémarrer GNOME sans redémarrer l'ordinateur
Comment installer les pilotes vidéo (ATI)
Comment identifier le chipset du modem
- Lisez #Notes Générales
- Pour installer l'identifieur de chipset du modem
- Lisez #How to install Basic Compilers (build-essential)
wget -c http://easylinux.info/uploads/scanModem.gz gunzip -c scanModem.gz > scanModem chmod +x scanModem sudo cp scanModem /usr/bin/
- Pour identifier le chipset du modem
sudo scanModem gedit Modem/ModemData.txt
Comment installer les pilotes du modem (SmartLink)
uname -r (must be 2.6.10-5-386) wget -c http://easylinux.info/uploads/sl-modem-modules-2.6.10-5-386_2.9.9a-1ubuntu2+2.6.10-34_i386.deb sudo dpkg -i sl-modem-modules-*.deb sudo apt-get install sl-modem-daemon
Comment configurer un périphérique PalmOS
- Lisez #Notes Générales
gksudo gedit /etc/udev/rules.d/10-custom.rules
- Insérez les lignes suivantes dans le nouveau fichier
BUS="usb", SYSFS{product}="Palm Handheld*", KERNEL="ttyUSB*", NAME{ignore_remove}="pilot", MODE="666"
- Sauvez le fichier modifié
- Ajoutez l'applet pilot-applet à la bare de tâches en faisant un clic droit sur un endroit vide de la barre
- Suivez les instructions à l'écran
Comment lister les partitions
- Lisez #Notes Générales
sudo fdisk -l
- Vous pouvez aussi utiliser Système -> Administration -> Disques
Comment lister la place occupée sur les disques
- Lisez #General Notes
df -T -h
- Vous pouvez aussi utiliser Système->Administration -> Disques
Comment lister les périphériques montés
- Lisez #Notes Générales
mount
Comment lister les périphériques PCI
- Lisez #Notes Générales
lspci
Comment lister les périphériques USB
- Lisez #Notes Générales
lsusb
Comment accélérer le lecteur CD/DVD-ROM
- Lisez #Notes Générales
- En supposant que /dev/cdrom est l'emplacement du lecteur CD/DVD-ROM
sudo hdparm -d1 /dev/cdrom sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup gksudo gedit /etc/hdparm.conf
- Ajoutez les lignes suivantes à la fin du fichier
/dev/cdrom {
dma = on
}
- Sauvez le fichier modifié
Comment monter/démonter un CD/DVD-ROM manuellement et afficher tous les fichiers/dossiers cachés et associés
- Lisez #Notes Générales
- Ex. En supposant que /media/cdrom0/ soit l'emplacement du CD/DVD-ROM
- Pour monter le CD/DVD-ROM
sudo mount /media/cdrom0/ -o unhide
- Pour démonter le CD/DVD-ROM
sudo umount /media/cdrom0/
Comment forcer le démontage d'un CD/DVD-ROM manuellement
- Lisez #Notes Générales
- En supposant que /media/cdrom0/ est l'emplacement du CD/DVD-ROM
sudo umount /media/cdrom0/ -l
Comment remonter les périphériques dans /etc/fstab sans rebooter
- Lisez #Notes Générales
sudo mount -a
How to install a Wacom tablet
For a detailed guide with screenshots about how to configure the "Extended input devices" in your graphic applications, please follow the official Dapper guide at https://wiki.ubuntu.com//Wacom
With the version of the Linux Wacom driver (0.7.2) in Ubuntu 6.06 Dapper Drake, if you unplug you tablet, it won't function when you plug it back in and you will have to restart X. For this reason, it is best to leave the tablet plugged in. This limitation will be removed when the 0.7.4 version of the driver is included in Ubuntu.
- Read #General Notes
- 1. Using Synaptic package manager1, check if the packages xserver-xorg-input-wacom and wacom-tools are already installed - if not, install them. If you prefer using the command line, you can also execute :
sudo apt-get install xserver-xorg-input-wacom wacom-tools
- 2. Save a copy of your /etc/X11/xorg.conf :
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
- then edit it with the command line :
gksudo gedit /etc/X11/xorg.conf
- and change all /dev/wacom occurences into /dev/input/wacom (created by wacom-tools udev scripts), then save the file.
- You should be ready to go after you have restarted X. Remember to configure the "Extended input devices" in your graphic applications (Gimp, Inkscape), however you can already check if it's working by moving your stylus on the tablet : the mouse cursor should go through the whole screen.
Gravure CD/DVD
Comment effacer un CD-RW/DVD-RW
- Lisez #Notes Générales
- En supposant que /dev/cdrom est l'emplacement du lecteur CD/DVD-ROM
sudo umount /dev/cdrom cdrecord dev=/dev/cdrom blank=fast
Comment graver des fichiers/répertoires sur un CD/DVD
- Lisez #Notes Générales
nautilus burn:///
- Navigateur de fichiers: CD/DVD Creator
- Glissez les fichiers/répertoires dans la fenêtre
Menu Fichier -> Graver un disque... -> Graver
Comment graver un fichier image (ISO) sur un CD/DVD
- Lisez #Notes Générales
Clic-droit sur le fichier image -> Graver un disque... -> Graver
Comment dupliquer un CD/DVD
- Lisez #Notes Générales
- Lisez #Comment créer une image (ISO) à partir d'un CD/DVD
- Lisez #Comment graver un fichier image (ISO) sur un CD/DVD
Comment créer un fichier image (ISO) à partir d'un CD/DVD
- Lisez #Notes Générales
- En supposant que /dev/cdrom est l'emplacement du lecteur CD/DVD-ROM
sudo umount /dev/cdrom dd if=/dev/cdrom of=fichier.iso bs=1024
Comment créer un fichier image (ISO) à partir d'un répertoire
- Lisez #Notes Générales
mkisofs -o fichier.iso /chemin_du_répertoire/
Comment générer un checksum MD5
- Lisez #Notes Générales
md5sum fichier.iso > fichier.iso.md5
Comment vérifier le checksum MD5 d'un fichier
- Lisez #Notes Générales
- En supposant que fichier.iso et fichier.iso.md5 soient dans le même répertoire
md5sum -c fichier.iso.md5
Comment monter/démonter une image (ISO) sans la graver
- Lisez #Notes Générales
- Pour monter un fichier image (ISO)
sudo mkdir /media/iso sudo modprobe loop sudo mount file.iso /media/iso/ -t iso9660 -o loop
- Pour démonter un fichier image (ISO)
sudo umount /media/iso/
Comment définir/changer la vitesse de gravure dans Créateur de CD/DVD
- Lisez #Notes Générales
- Applications -> Outils système -> Éditeur de configuration
/ -> apps -> nautilus-cd-burner -> default_speed (Définir/changer la valeur)
Comment activer le burnproof pour Créateur de CD/DVD
- Lisez #Notes Générales
- Applications -> Outils système -> Éditeur de configuration
/ -> apps -> nautilus-cd-burner -> burnproof (Coché)
Comment activer l'overburning pour Créateur de CD/DVD
- Lisez #Notes Générales
- Applications -> Outils système -> Éditeur de configuration
/ -> apps -> nautilus-cd-burner -> overburn (Coché)
Réseaux
Comment configurer Google Talk
- Voir une solution ici Google Talk Help Center
Comment activer/désactiver les connexions réseaux
- Lisez #Notes Générales
- Système -> Administration -> Réseau
Onglet Connections -> Selectionnez "Connexion ethernet " -> Activer/Désactiver
Comment configurer les connexions réseaux
- Lisez #Notes Générales
- Système -> Administration -> Réseau
Onglet Connections -> Sélectionnez "Connexion ethernet " -> Propriétés Connection -> Activer cette connexion (Coché) Paramètres de la connexion -> Configuration: Selectionnez "DHCP/Adresse IP statique"
Onglet DNS -> Serveurs DNS -> Ajouter/Supprimer
How to configure dialup connections
- Read #General Notes
- To configure dialup
sudo pppconfig
- To connect dialup
sudo pon provider_name
- To disconnect dialup
sudo poff
Comment configurer les connections large bande
- Lisez #Notes Générales
sudo pppoeconf
Comment changer le nom de l'ordinateur
- Lisez #Notes Générales
- Système -> Administration -> Réseau
Onglet Général -> Paramètres de l'hôte -> Hôte : Spécifiez le nom de l'ordinateur
- Sauvez et fermez toutes les applications ouvertes, redémarrez l'ordinateur.
Comment changer la description de l'ordinateur
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Trouvez cette ligne
... server string = %h server (Samba, Ubuntu) ...
- Remplacez la par la ligne suivante
server string = new_computer_descriptions
- Sauvez le fichier modifié
sudo testparm sudo /etc/init.d/samba restart
Comment changer le domaine/groupe de travail de l'ordinateur
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Trouvez cette ligne
... workgroup = MSHOME ...
- Remplacez par la ligne suivante
workgroup = new_domain_or_workgroup
- Sauvez le fichier modifié
sudo testparm sudo /etc/init.d/samba restart
Comment assigner un nom de domaine à une machine locale avec une IP dynamique en utilisant le service gratuit DynDNS
- Lisez #Notes Générales
- Lisez #Comment ajouter des dépots supplémentaires
- Enregistrez vous gratuitement à http://www.dyndns.com/services/dns/dyndns
sudo apt-get install ipcheck gksudo gedit /etc/ppp/ip-up.d/dyndns_update.sh
- Insérez les lignes suivantes dans le nouveau fichier
#!/bin/sh USERNAME=myusername PASSWORD=mypassword HOSTNAME=myhostname.dyndns.org cd /root/ if [ -f /root/ipcheck.dat ]; then ipcheck -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME else ipcheck --makedat -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME fi
- Sauvez le fichier modifié
sudo chmod 700 /etc/ppp/ip-up.d/dyndns_update.sh sudo sh /etc/ppp/ip-up.d/dyndns_update.sh
Comment partager un répertoire facilement
Click-droit sur le répertoire -> Dossier partagé
Répertoire partagé -> Partager avec : Sélectionner "SMB" Propriétés du partage -> Nom : Spécifiez le nom du partage
Comment naviguer sur les ordinateurs d'un réseau
- Lisez #Notes Générales
- La connection réseau doit être correctement configurée
- Si les ordinateurs ou les répertoires réseaux ne sont pas trouvés, essayez d'y accéder directement
- Lisez #Comment accéder à un répertoire sur le réseau sans le monter
- Raccourcis -> Serveurs réseaux
Comment accéder à un répertoire sur le réseau sans le monter
- Lisez #Notes Générales
- La connection réseau doit être correctement configurée
- Adresse IP de l'ordinateur réseau : 192.168.0.1
- Nom du répertoire partagé : linux
- Pressez 'Alt+F2' (Lancer une application...) et entrez:
smb://192.168.0.1/linux
Comment monter/démonter des répertoires réseau manuellement et autoriser tous les utilisateurs à les lire.
- La connection réseau doit être correctement configurée
- Adresse IP de l'ordinateur distant : 192.168.0.1
- Nom d'utilisateur de l'ordinateur distant : myusername
- Mot de passe de l'ordinateur distant : mypassword
- Nom du répertoire partagé : linux
- Répertoire de montage local: /media/sharename
- Pour monter le répertoire réseau
sudo mkdir /media/sharename sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword
- Pour démonter le répertoire réseau
sudo umount /media/sharename/
Comment monter/démonter des répertoires réseau manuellement et autoriser tous les utilisateurs à lire/écrire dessus.
- La connection réseau doit être correctement configurée
- Adresse IP de l'ordinateur distant : 192.168.0.1
- Nom d'utilisateur de l'ordinateur distant : myusername
- Mot de passe de l'ordinateur distant : mypassword
- Nom du répertoire partagé : linux
- Répertoire de montage local: /media/sharename
- Pour monter le répertoire réseau
sudo mkdir /media/sharename sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777
- Pour démonter le répertoire réseau
sudo umount /media/sharename/
Comment monter des répertoires réseau au démarrage et autoriser tous les utilisateurs à les lire.
- La connection réseau doit être correctement configurée
- Adresse IP de l'ordinateur distant : 192.168.0.1
- Nom d'utilisateur de l'ordinateur distant : myusername
- Mot de passe de l'ordinateur distant : mypassword
- Nom du répertoire partagé : linux
- Répertoire de montage local: /media/sharename
sudo mkdir /media/sharename gksudo gedit /root/.smbcredentials
- Insérez les lignes suivantes dans le nouveau fichier
username=myusername password=mypassword
- Sauvez le fichier modifié
sudo chmod 700 /root/.smbcredentials sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
- Ajoutez les lignes suivantes à la fin du fichier
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials 0 0
- Sauvez le fichier modifié
- Lisez # Comment remonter les périphériques dans /etc/fstab sans rebooter
Comment monter des répertoires réseau au démarrage et autoriser tous les utilisateurs à lire/écrire dessus
- La connection réseau doit être correctement configurée
- Adresse IP de l'ordinateur distant : 192.168.0.1
- Nom d'utilisateur de l'ordinateur distant : myusername
- Mot de passe de l'ordinateur distant : mypassword
- Nom du répertoire partagé : linux
- Répertoire de montage local: /media/sharename
sudo mkdir /media/sharename gksudo gedit /root/.smbcredentials
- Insérez les lignes suivantes dans le nouveau fichier
username=myusername password=mypassword
- Sauvez le fichier modifié
sudo chmod 700 /root/.smbcredentials sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
- Ajoutez les lignes suivantes à la fin du fichier
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
- Sauvez le fichier modifié
- Lisez # Comment remonter les périphériques dans /etc/fstab sans rebooter
How to get ipw2200 and wpa to work
Comment Configurer et démarrer des tunnels PPTP (VPN)
- Read #General Notes
- Utilisez ces instructions pour une installation automatique d'un client PPTP
- OU
- Installation Manuelle
wget -c http://linux.edu.lv/uploads/content/pptp.tar.gz tar zxvf pptp.tar.gz sudo sh ./pptp/install
- Configurer un client PPTP
gksudo gedit /usr/share/applications/pptpconfig.desktop
- Remplacer le contenu de ce fichier par les lignes suivantes
[Desktop Entry] Name=PPTP Client Comment=Configure and start PPTP tunnels (VPN) Categories=Application;Network Encoding=UTF-8 Exec=gksudo pptpconfig Icon=gnome-remote-desktop.png StartupNotify=true Terminal=false Type=Application
- Les lignes ci-dessus change le fichier par défaut de trois façons: l'application est placée dans la catégorie Application/Internet, gksudo faira lancer l'application en tant que superutilisateur et nous ajoutons un icon sympatique au menu.
- Démarrez le client avec Applications->Internet->PPTP Client
How to configure Network-manager with WPA 1 and 2 support
Remote Desktop
How to configure remote desktop (not secure)
- Read #General Notes
- Warning! Remote Desktop will only work if there's a GNOME login session
- Leaving computer with an unattended GNOME login session is not secure
- Use (System -> Lock Screen) and switch off the monitor when computer is left unattended
- System -> Preferences -> Remote Desktop
- Remote Desktop Preferences
Sharing -> Allow other users to view your desktop (Checked) Allow other users to control your desktop (Checked)
Security -> Ask you for confirmation (Un-Checked) Require the user to enter this password: (Checked) Password: Specify the password
How to connect into remote Ubuntu desktop
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have configured Remote Desktop
- Read #How to configure remote desktop (not secure)
- Remote Ubuntu machine: 192.168.0.1
vncviewer -fullscreen 192.168.0.1:0
- To quit vncviewer
Press 'F8' -> Quit viewer
How to connect into remote Ubuntu desktop via Windows machine
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have configured Remote Desktop
- Read #How to configure remote desktop (not secure)
- Remote Ubuntu machine: 192.168.0.1
- If you have a router remember to open the appropiate port the default one is 5900
- This process is called port forwarding port forwarding
- Download DotNetVNC: Here
- this is a free DotNet version that require the DotNet framework available from microsoft here
- Remember tha this is only one VNC client i've found searching in internet, search the one is more suitable for your interest
- Open the VNC cliend you have chosen, and insert the connection string formatted like this <LINUX BOX IP><:DESKTOP NUMBER>|<::PORT>
- In example use: 192.168.1.2:0 or 192.168.1.2::5900 to connect to desktop 0, to connect to desktop 1 use 192.168.1.2:1 or 192.168.1.2::5901 and so on
Windows
How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only
- Read #General Notes
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
- Local mount folder: /media/windows
- To mount Windows partition
sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
- To unmount Windows partition
sudo umount /media/windows/
How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write
- Read #General Notes
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)
- Local mount folder: /media/windows
- To mount Windows partition
sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000
- To unmount Windows partition
sudo umount /media/windows/
How to mount Windows partitions (NTFS) on boot-up, and allow all users to read only
- Read #General Notes
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
- Local mount folder: /media/windows
sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
- Append the following line at the end of file
/dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0
- Save the edited file
- Read #How to remount /etc/fstab without rebooting
How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write
- Read #General Notes
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)
- Local mount folder: /media/windows
sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab
- Append the following line at the end of file
/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0
- Save the edited file
- Read #How to remount /etc/fstab without rebooting
Security
What are the basic things I need to know about securing my Ubuntu
- Read #General Notes
- Ensure hard drive is first in BIOS boot-up sequence
- To prevent trespassers from using Linux Installation CD which allows them to gain root user access
- To prevent trespassers from using Linux Live CD (e.g. UBUNTU/KNOPPIX/MEPIS) which allows them to destroy/browse/share the entire hard drive
- To prevent trespassers from installing another Operating System
- Ensure a password is set for BIOS
- To prevent trespassers from changing the BIOS boot-up sequence
- Ensure computer is located at a secured place
- To prevent trespassers from removing computer's hard drive which allows them to destroy/browse/share the entire hard drive from a different computer
- To prevent trespassers from removing computer's on-board battery which resets the BIOS password
- Ensure passwords used on the system cannot be easily guessed
- To prevent trespassers from cracking password file using brute force attacks (e.g. John the Ripper)
- Create password with minimum length of 8 characters
- Create password with mixture of characters/numbers, and upper/lower case
- Ensure interactive editing control for GRUB menu is disabled
- To prevent trespassers from modifying kernel boot-up arguments which allows them to have root user access
- Read #How to disable all interactive editing control for GRUB menu
- Ensure history listing is disabled in Console mode
- To prevent trespassers from seeing previously issued commands
- Read #How to disable history listing in Console mode
- Ensure Ctrl+Alt+Del is disabled in Console mode
- To prevent trespassers from restarting the system without permission in Console mode
- Read #How to disable Ctrl+Alt+Del from restarting computer in Console mode
- Ensure interactive option is set for remove, copy and move of files/folders in Console mode
- To prevent accidental removal/overwritten of files/folders
- Read #How to enable prompt before removal/overwritten of files/folders in Console mode
- For day to day usage, login as a normal user
- To prevent accidental deletion/modification of system files/folders
- Read #How to add/edit/delete system users
- Disable root user account, use "sudo" instead
- To reduce the amount of time spent with root privileges, and thus the risk of inadvertently executing a command as root
- "sudo" provides a more useful audit trail (/var/log/auth.log)
- Read #How to disable root user account
- Install a Firewall
- A firewall does not guarantee security but it is in most environments the first line of defense against network based attacks
- Read #How to install Firewall (Firestarter)
- Perform vulnerability test
- Nessus is a great tool designed to automate the testing and discovery of known security problems
- Read #How to install Vulnerability Scanner (Nessus)
Comment désactiver toutes les éditions de control interactive pour le menu GRUB
- Lisez #General Notes
grub
grub> md5crypt Password: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (mot de passe crypté) grub> quit
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
- Trouvez la section
... ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret ...
- Ajoutez la ligne suivante après
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (même mot de passe crypté que précédemment)
- Trouvez la section
... title Ubuntu, kernel 2.6.10-5-386 (recovery mode) root (hd0,1) kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single initrd /boot/initrd.img-2.6.10-5-386 savedefault boot ...
- Remplacez par les lignes suivantes
#title Ubuntu, kernel 2.6.10-5-386 (recovery mode) #root (hd0,1) #kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single #initrd /boot/initrd.img-2.6.10-5-386 #savedefault #boot
- Sauvez le fichier
Comment désactiver l'historique des commandes en mode console
- Lisez #Notes Générales
rm -f $HOME/.bash_history touch $HOME/.bash_history chmod 000 $HOME/.bash_history
Comment empêcher Ctrl+Alt+Del de redémarrer l'ordinateur en mode console
- Lisez #Notes Générales
sudo cp /etc/inittab /etc/inittab_backup gksudo gedit /etc/inittab
- Trouvez cette ligne
... ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ...
- Remplacez-la par la ligne suivante
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
- Sauvegardez le fichier ainsi modifié
sudo telinit q
Comment activer la demande de confirmation avant l'effacement/l'écrasement de fichiers/dossiers en mode console
- Lisez les #Notes Générales
sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup gksudo gedit /etc/bash.bashrc
- Ajoutez les lignes suivantes à la fin du fichier
alias rm='rm -i' alias cp='cp -i' alias mv='mv -i'
- Sauvegardez le fichier ainsi modifié
Rescue Mode
Comment obtenir l'accès au compte root sans se logger
- Lisez #General Notes
- La méthode la plus simple (Ne marchera pas avec si un mot de passe activé au menu de GRUB)
- Démarrez l'ordinateur
- Si le menu de GRUB est caché, pressez 'Esc' pour y accèder
- Sélectionnez
Ubuntu, kernel 2.6.10-5-386 (recovery mode)
- Appuyez sur 'Entrée' pour démarrer
- Autre méthode
How to modify kernel boot-up arguments, to gain root user access
- Read #General Notes
- Boot-up computer
- If GRUB menu is hidden, press 'Esc' to enter the GRUB menu
- If GRUB password is set, press 'p' to unlock the GRUB menu
- Select
Ubuntu, kernel 2.6.10-5-386
- Press 'e' to edit the commands before booting
- Select
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash
- Press 'e' to edit the selected command in the boot sequence
- Add "rw init=/bin/bash" to the end of the arguments
grub edit> kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash
- Press 'b' to boot
How to use Ubuntu Installation CD, to gain root user access
- Read #General Notes
- Boot-up computer into Ubuntu Installation CD
- At "boot:" prompt, add "rescue" to the argument
boot: rescue
- Follow the instructions on screen
How to change root user/main user password if forgotten
- Read #General Notes
- Read #How to gain root user access without login
- To change root user password
# passwd root
- To change main user password
# passwd system_main_username
How to change GRUB menu password if forgotten
- Read #General Notes
grub
grub> md5crypt Password: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
- Find this line
... password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ ...
- Replace with the following line
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
- Save the edited file
How to restore GRUB menu after Windows installation
- e.g. Assumed that /dev/hda is the location of /boot partition
# grub-install /dev/hda
How to add Windows entry into GRUB menu
- Read #General Notes
- Read #How to list partition tables
- e.g. Assumed that /dev/hda1 is the location of Windows partition
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
- Append the following lines at the end of file
title Microsoft Windows root (hd0,0) savedefault makeactive chainloader +1
- Save the edited file
How to read Linux partitions (ext2, ext3) in Windows machine
- Read #General Notes
- Download Explore2fs: Here
- OR
Trucs et Astuces
Comment relancer GNOME sans redémarrer l'ordinateur
- Lisez #Notes Générales
- Sauvez et fermez toutes les applications ouvertes
Appuyez sur 'Ctrl + Alt + Backspace'
- ou
sudo /etc/init.d/gdm restart
Comment activer le verrouillage numérique au démarrage de GNOME
sudo apt-get install numlockx sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup gksudo gedit /etc/X11/gdm/Init/Default
- Trouvez cette ligne
... exit 0
- Ajoutez les lignes suivantes au dessus
if [ -x /usr/bin/numlockx ]; then /usr/bin/numlockx on fi
- Sauvez le fichier modifié
- Lisez #Comment relancer GNOME sans redémarrer l'ordinateur
Comment lancer des programmes au démarrage de GNOME
- Lisez #Notes Générales
- Système -> Préférences -> Sessions
- Sessions
Onglet Programmes au démarrage -> Ajouter/Editer/Supprimer
Comment accélérer votre Ubuntu
- Lisez le post suivant: http://ubuntuforums.org/showthread.php?t=189192
Comment basculer en mode console sous GNOME
- Lisez #Notes Générales
- Pour basculer en mode console
Appuyez sur 'Ctrl + Alt + F1' (F2 - F6)
- Pour changer de console en mode console
Appuyez sur 'Alt + F1' (F2 - F6)
- Pour revenir à GNOME
Appuyez sur 'Alt + F7'
Comment désactiver le Ctrl+Alt+Backspace qui redémarre X sous gnome
- Lisez #General Notes
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf
- Ajoutez les lignes suiventes à la fin du fichier
Section "ServerFlags" Option "DontZap" "yes" EndSection
- Sauvez le fichier
- Lisez #Comment redémarrer GNOME sans redémarrer l'ordinateur
Comment activer Ctrl+Alt+Suppr pour ouvrir le Moniteur Système sous GNOME
- Lisez #Notes Générales
gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete" gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor"
How to refresh GNOME desktop
- Read #General Notes
killall nautilus
Comment rafraichir le GNOME panel
- Lisez #Notes Générales
killall gnome-panel
Comment désactiver la sauvegarde automatique dans Gedit et désactiver la création des fichier avec un ~ devant
- Lisez #Notes Générales
- Applications -> Outils Système -> Editeur de configuration
- Editeur de configuration
/ -> apps -> gedit-2 -> preferences -> editor -> save -> create_backup_copy (décoché) / -> apps -> gedit-2 -> preferences -> editor -> save -> auto_save (Coché)
Comment afficher tous les fichiers/dossiers cachés dans Nautilus
- Lisez #Notes Générales
- Raccourcis -> Dossier Personnel
- Pour afficher temporairement tous les fichiers/dossiers caché dans Nautilus
Pressez 'Ctrl + H'
- Pour afficher de manière permanante tous les fichiers/dossiers caché dans Nautilus
Édition -> Préférences
Onglet Vues -> Vue par défaut -> Afficher les fichiers cachés et de sauvegarde (Coché)
How to browse files/folders as root user in Nautilus
- Read #General Notes
- To install File Browser (Root)
gksudo gedit /usr/share/applications/Nautilus-root.desktop
- Insert the following lines into the new file
[Desktop Entry] Name=File Browser (Root) Comment=Browse the filesystem with the file manager Exec=gksudo "nautilus --browser %U" Icon=file-manager Terminal=false Type=Application Categories=Application;System;
- Save the edited file
- Read #How to refresh GNOME panel
- To browse files/folders as root user in Nautilus
- Applications -> System Tools -> File Browser (Root)
How to change default file type "Open with" program
- Read #General Notes
Right click on file -> Properties
Open With Tab -> Add Select "Open with" program
Select "Open with" program (Checked)
How to change preferred email client to Mozilla Thunderbird
- Read #General Notes
- Read #How to install Email Client (Mozilla Thunderbird)
- System -> Preferences -> Preferred Applications
- Preferred Applications
Mail Reader Tab -> Default Mail Reader -> Command: mozilla-thunderbird %s
How to open files as root user via right click
- Read #General Notes
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root
- Insert the following lines into the new file
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do gksudo "gnome-open $uri" & done
- Save the edited file
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root
Right click on file -> Scripts -> Open as root
How to disable beep sound in Terminal mode
Not for Dapper---- firingstone
- Read #General Notes
- Applications -> Accessories -> Terminal
- Terminal
Edit Menu -> Current Profile...
General Tab -> General -> Terminal bell (Un-Checked)
How to handle mss protocol in Mozilla Firefox
- Open your firefox.
- Type as url: about:config
Now just right click somewhere into the main window. A little box with options to choose will appear. Choose "new", then "string". Then copy the following line into the appearing text field:
network.protocol-handler.app.mms
Into the next text field copy this:
/usr/bin/X11/vlc
Now you do the same thing again, but this time you do not choose "string" but "boolean", and the line to copy is:
network.protocol-handler.external.mms
Then set
true
How to handle rtsp (realmedia) protocol in Mozilla Firefox
- Open your firefox.
- Type as url: about:config
Now just right click somewhere into the main window. A little box with options to choose will appear. Choose "new", then "string". Then copy the following line into the appearing text field:
network.protocol-handler.app.rtsp
Into the next text field copy this:
/usr/bin/X11/realplay
Now you do the same thing again, but this time you do not choose "string" but "boolean", and the line to copy is:
network.protocol-handler.external.rtsp
Then set
true
How to load Web site faster in Mozilla Firefox
- Read #General Notes
- Applications -> Internet -> Firefox Web Browser
- Mozilla Firefox
Address Bar -> about:config
Filter: -> network.dns.disableIPv6 -> true network.http.pipelining -> true network.http.pipelining.maxrequests -> 8 network.http.proxy.pipelining -> true
- Restart Mozilla Firefox
How to disable beep sound for link find function in Mozilla Firefox
- Read #General Notes
- Applications -> Internet -> Firefox Web Browser
- Mozilla Firefox
Address Bar -> about:config
Filter: -> accessibility.typeaheadfind.enablesound -> false
- Restart Mozilla Firefox
Comment utiliser apt-get facilement (Synaptic)
- Lisez #General Notes
- Système -> Administration -> Gestionnaire de paquets Synaptic
- Pour activer les dépôts additionnels "universe" et "multiverse"
- Configuration -> Dépôts
- Dans l'onglet "Médium d'installation", cliquez sur "Ajouter". Il y a trois dépôts différents : "Ubuntu 6.06 LTS", "Mises à jours de sécurité" et "Mises à jours". Sélectionner chaque dépôts et cochez "Supportés officiellement", "Copyright restreint", "Maintenu par la communuté (Universe)", "Non-libre (Universe)". Assurez-vous d'avoir cliqué sur Ajouter entre chaque dépôt pour enregistrer vos changements.
- Vous devez maintenant voir ces trois dépôts. Assurez-vous que "Supportés officiellement", "Copyright restreint", "Maintenu par la communauté (Multiverse)" et "Non-libre (Universe)" apparaissent sous chaque dépots.
- Pour rajouter les dépots "backports" et "PLF" (nouvelles version de plusieurs applications. Non supportés. Peut contenir des paquets illégaux. A n'utiliser qu'a vos propres risques.)
- Configuration -> Dépôts
- Cliquez sur "Ajouter" puis "Personnaliser"
- Copiez les quatres lignes suivantes, l'une après l'autre, dans la boîte de dialogue et cliquez sur "Ajouter un canal logiciel"
deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb http://packages.freecontrib.org/ubuntu/plf dapper free non-free deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free
deb http://archive.canonical.com/ubuntu dapper-commercial main
- Pour rafraîchir la liste des paquets connus (équivalent à apt-get update)
Edition -> Actualiser la liste des paquets (CTRL+R)
- Pour installer toutes les mises à jour possibles (équivalent à apt-get upgrade)
Edition -> Sélectionner la totalité des mises à jours -> Mise à jour par défaut Edition -> Appliquer les modifications sélectionnées
- Pour rechercher un paquet (équivalent à apt-cache search nom_du_paquet)
Edition -> Rechercher
- Pour installer le paquet sélectionné (équivalent à apt-get install nom_du_paquet)
Sélectionner "nom_du_paquet" Paquet -> Sélectionner pour installation Edition -> Appliquer les modifications sélectionnées
- Pour enlever un paquet installé (équivalent à apt-get remove nom_du_paquet)
Sélectionner "nom_du_paquet" Paquet -> Sélectionner pour suppression Edition -> Appliquer les modifications sélectionnées
What packages do the extra repositories provide
- The PLF repository provides
- DVD playback support (libdvdcss2)
- Skype
- Sun Java SDK (Software Development Kit) and JRE (Java Runtime Environment)
- Opera Web browser
- RealPlayer 10
- Win32 binary multimedia codecs
Comment Installer/Désinstaller des fichiers .deb
- Lisez #General Notes
- Pour installer un fichier .deb
sudo dpkg -i package_file.deb
- Pour désinstaller un fichier .deb
sudo dpkg -r package_name
Comment convertir des fichiers .rpm en des fichiers .deb
- Lisez #General Notes
sudo alien package_file.rpm
How to rename all files in directory at once
- Read #General Notes
- To install "mvb" file name renamer
wget -c http://easylinux.info/uploads/mvb_1.6.tgz sudo tar zxvf mvb_1.6.tgz -C /usr/share/ sudo chown -R root:root /usr/share/mvb_1.6/ sudo ln -fs /usr/share/mvb_1.6/mvb /usr/bin/mvb
- To rename all files in directory at once
mvb NEW_NAME
How to manipulate all image files in directory at once
- Read #General Notes
- To install bash batch image processing script
sudo apt-get install imagemagick wget -c http://easylinux.info/uploads/bbips.0.3.2.sh sudo cp bbips.0.3.2.sh /usr/bin/bbips sudo chmod 755 /usr/bin/bbips
- To manipulate all image files in directory at once
bbips
How to set System-wide Environment Variables
- Read #General Notes
sudo cp -p /etc/profile /etc/profile_backup gksudo gedit /etc/profile
- Append the System-wide Environment Variables at the end of file
- Save the edited file
How to save "man" outputs into files
- Read #General Notes
man command | col -b > file.txt
How to hide GRUB menu on boot-up
- Read #General Notes
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
- Find this line
... #hiddenmenu ...
- Replace with the following line
hiddenmenu
- Save the edited file
How to change the timeout seconds for GRUB menu on boot-up
- Read #General Notes
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
- Find this line
... timeout 3 ...
- Replace with the following line
timeout X_seconds
- Save the edited file
How to change default Operating System boot-up for GRUB menu
- Read #General Notes
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
- Find this line
... default 0 ...
- Replace with the following line
default X_sequence
- Save the edited file
How to display Splash Image for GRUB menu on boot-up
- Read #General Notes
- e.g. Assumed that hd0,1 is the location of Ubuntu boot partition
wget -c http://easylinux.info/uploads/ubuntu.xpm.gz chmod 644 ubuntu.xpm.gz sudo mkdir /boot/grub/images sudo cp ubuntu.xpm.gz /boot/grub/images/ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst
- Find this section
# menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/. ...
- Add the following line below it
splashimage (hd0,1)/boot/grub/images/ubuntu.xpm.gz
- Save the edited file
How to convert Wallpaper to Splash Image for GRUB menu
- Read #General Notes
- e.g. Assumed that wallpaper.png is the Wallpaper to be converted to Splash Image
- splashimage.xpm.gz is the Splash Image for GRUB menu
convert -resize 640x480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm
- Read #How to display Splash Image for GRUB menu on boot-up (use splashimage.xpm.gz instead of ubuntu.xpm.gz)
How to temporary skip boot-up services
- Read #General Notes
Press 'Ctrl + C'
How to permanently disable/enable boot-up services
How to clean /tmp/ folder contents on shutdown
- Read #General Notes
sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup gksudo gedit /etc/init.d/sysklogd
- Find this section
... stop) log_begin_msg "Stopping system log daemon..." start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile log_end_msg $? ...
- Add the following line below it
rm -fr /tmp/* /tmp/.??*
- Save the edited file
How to scroll up and down to view previous outputs in Console mode
- Read #General Notes
- To scroll up to view previously outputs
Press 'Shift + Page Up'
- To scroll down to view previously outputs
Press 'Shift + Page Down'
How to find out which version of Ubuntu I am using
cat /etc/issue
How to set up automatic background change (GNOME)
- Read #General Notes
mkdir ~/.backgrounds cd ~/.backgrounds wget -c http://easylinux.info/uploads/change_background.py chmod +x change_background.py
- To change desktop background every time you reboot your computer
export EDITOR=gedit && crontab -e
- Add the following line at the end of file
@reboot ~/.backgrounds/change_background.py
- For more information about periodic processes see
man 5 crontab
- ~/.backgrounds is hidden directory, see #How to show all hidden files/folders in Nautilus
- Copy images you wish to see on your background to ~/.backgrounds directory
How to set up automatic background change (KDE)
- Read #General Notes
- Go to K-menu -> System Settings -> Desktop -> Background
- Choose Slide Show
- Press Setup...
- Press Add... to add pictures you wish to see as desktop background
- Set 'Change picture after' to desired picture rotation interval.
- Press 'OK'
How to add keyboard layouts for other languages
- Read #General Notes
- Go to System -> Preferences -> Keyboard
- Choose Layouts
- Press Add... to add the secondary keyboard layout. It is simpler to have two layouts; the maximum is currently four for Xorg.
- Choose Layout Options
- Expand option Group Shift/Lock behaviour
- Choose the key combination that enables you to switch between keyboard layouts. The default is by pressing both Alt keys at the same time. A common alternative is to use Alt+Shift.
- Press Close.
See #How to add the Keyboard (Layout) Indicator applet to add the Keyboard Indicator applet.
How to add keyboard layouts toggle for other languages (Xfce)
- use *.lst files on /etc/X11/xkb/rules to select 2nd_laguage_code
setxkbmap -option grp:switch,grp:alt_shift,grp_led:scroll us,2nd_laguage_code
- you can add it to a startup file, which will be set to be executed on startup, with the following lines (remember to 'chmod +x' the file):
#!/bin/tcsh setxkbmap -option grp:switch,grp:alt_shift,grp_led:scroll us,il
How to add the Keyboard (Layout) Indicator applet
- Right-click on empty space on the top panel so that you see the pop-up menu.
- Click Add to Panel...
- Choose Keyboard Indicator (it is under the Utilities section, at the end)
The Keyboard Indicator applet appears on the panel. The default language should be USA for U.S. English. You can either right-click on this applet for more options or see above on how to configure.
How to type extended characters
- Read #General Notes
- Read #How to add keyboard layouts for other languages
- Read #How to add the Keyboard (Layout) Indicator applet
- Add the keyboard layout US English International (with dead keys)
- Make US English International (with dead keys) the default keyboard layout.
The key marked ['"] is now a dead key. When you press it, nothing happens. However if you press a consonant immediately afterwards, the consonant appears with an accent.
- ' + a = á
- ' + e = é
- and so on for i-í, o-ó, y-ý, c-ć, z-ź, n-ń, l-ĺ, u-ú, r-ŕ
- " + a = ä
- " + e = ë
- and so on for y-ÿ, u-ü, i-ï, o-ö
Similarly, ` and a consonant generates à, è, ù, ì, ò. Similarly, ~ and a consonant generates ã, ũ, ĩ, õ, ñ.
To type ' and ", press RightAlt+' and RightAlt+" respectively. To type ' and ", you may also press '+<space> and "+<space> respectively.
There are more characters available by keeping RightAlt pressed and typing a character. Therefore,
- RightAlt+q = ä
- RightAlt+w = å
- RightAlt+e = é
- RightAlt+r = ®
- RightAlt+t = þ
- RightAlt+y = ü
- RightAlt+u = ú
- RightAlt+i = í
- RightAlt+o = ó
- RightAlt+p = ö
- RightAlt+[ and ] for « and » respectively.
- RightAlt+a = á
- RightAlt+s = ß
- RightAlt+d = ð
- RightAlt+l = ø
- RightAlt+; = ¶
- RightAlt+: = °
- RightAlt+z = æ
- RightAlt+c = ©
- RightAlt+n = ñ
- RightAlt+m = µ
- RightAlt+, = ç
- RightAlt+/ = ¿
- RightAlt+1 = ¡
- RightAlt+2 = ²
- RightAlt+3 = ³
- RightAlt+4 = ¤
- RightAlt+5 = €
- RightAlt+6 = ¼
- RightAlt+7 = ½
- RightAlt+8 = ¾
- RightAlt+9 = ‘
- RightAlt+0 = ’
- RightAlt+- = ¥
- RightAlt+= = ×
- RightAlt+! = ¹
- RightAlt+@, then o = ő (and Ő).
- RightAlt+#, then a = ā (and Ā). Similarly for ēĒ, ūŪ, īĪ, ōŌ.
- RightAlt+$ = £
- RightAlt+% =
- RightAlt+^ =
- RightAlt+& =
- RightAlt+*, then a = ą (and Ą). Similarly for ęĘ, įĮ.
- RightAlt+(, then a = ă (and Ă)
- RightAlt+(, then g = ğ (and Ğ)
- RightAlt+), then a = å (and Å)
- RightAlt+_ =
- RightAlt++ = ÷
How to set the Compose key to type special characters
- Read #General Notes
- Read #How to add keyboard layouts for other languages
- Read #How to add the Keyboard (Layout) Indicator applet
- Click System, Preferences, Keyboard.
- Under Layout Options, expand on Compose key position.
- Choose Right-Win key is compose, click Close.
Now you can type extended characters using the RightWin key (next to AltGr), according to this keyboard settings file. Specifically, the lines that start with GDK_Multi_key are those that we can use here. The Compose key is actually GDK_Multi_key.
Some examples,
- RightWin + C + = produces €
- RightWin + = + C produces €
- RightWin + C + O produces ©
- RightWin + O + C produces ©
- RightWin + a + ' produces á
- RightWin + a + " produces ä
- RightWin + a + ` produces à
- RightWin + a + ~ produces ã
- RightWin + a + * produces å
- RightWin + a + ^ produces â
- RightWin + a + > produces â
- RightWin + a + , produces ą
- RightWin + e + - produces ē
- RightWin + S + 1 produces ¹
- RightWin + S + 2 produces ²
- RightWin + S + 3 produces ³
Servers
AntiVirus Server
How to install ClamAV AntiVirus Server
- Read #General Notes
- Read #How to add extra repositories
sudo apt-get install clamav
How to manually update virus databases
sudo freshclam
How to manually scan files/folders for viruses
sudo clamscan -r /location_of_files_or_folders
How to automatically scan files/folders for viruses
- e.g. Automatically scan files/folders for viruses at midnight everyday
- * * * * * means minute hour date month year
export EDITOR=gedit && sudo crontab -e
- Append the following line at the end of file
00 00 * * * sudo clamscan -r /location_of_files_or_folders
- Save the edited file
Print Server (cupsd)
- Read #General Notes
- Read #How to add extra repositories
How to install cupsd
- Cupsd should be automatically installed during standard instaltion. Checkout if there is a file "/etc/init.d/cupsys". If you want to manually install it, do
sudo apt-get install cupsys*
How to add a printer
- In gnome click on "System/Administration/Printing. And choose "Add printer". A "add printer wizard" should start and tell you what to do.
How to print on remote Ubuntu machine from another Ubuntu machine
- Make sure your local printer is well configured.
- Server ip address: 192.168.0.1
- Client ip address: 192.168.0.23
- Server configuration
sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.backup gksudo gedit /etc/cups/cupsd.conf
- find the block
<Location /> ... Allow localhost ... </Location>
- and add the following line into it.
Allow 192.168.0.23
- Restart cups.
sudo /etc/init.d/cupsys restart
- Client configuration
sudo cp /etc/cups/client.conf /etc/cups/client.conf.backup gksudo gedit /etc/cups/client.conf
- And add the following line into it.
ServerName 192.168.0.1
- Restart cups.
sudo /etc/init.d/cupsys restart
- Now try "lpq" and you should see something like
vitek@lightfox:~$ lpq HPLJ6P is ready no entries
How to print on remote Ubuntu machine from a Windows machine
- Read #How to install Samba Server for files/folders sharing service
- Read #How to print on remote Ubuntu machine via samba
Samba Server
How to install Samba Server for files/folders sharing service
- Read #General Notes
- Read #How to add extra repositories
sudo apt-get install samba sudo apt-get install smbfs
How to add/edit/delete network users
- Read #General Notes
- Read #How to install Samba Server for files/folders sharing service
- To add network user
sudo smbpasswd -a system_username gksudo gedit /etc/samba/smbusers
- Insert the following line into the new file
system_username = "network username"
- Save the edited file
- To edit network user
sudo smbpasswd -a system_username
- To delete network user
sudo smbpasswd -x system_username
How to share home folders with read only permission (Authentication=Yes)
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Find this line
... ; security = user ...
- Replace with the following lines
security = user username map = /etc/samba/smbusers
- Save the edited file
- Read #How to add/edit/delete network users
sudo testparm sudo /etc/init.d/samba restart
How to share home folders with read/write permissions (Authentication=Yes)
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Find this line
... ; security = user ...
- Replace with the following lines
security = user username map = /etc/samba/smbusers
- Find this section
... # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = no ...
- Replace with the following lines
# By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = yes
- Save the edited file
- Read #How to add/edit/delete network users
sudo testparm sudo /etc/init.d/samba restart
How to share group folders with read only permission (Authentication=Yes)
sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Find this line
... ; security = user ...
- Replace with the following lines
security = user username map = /etc/samba/smbusers
- Append the following lines at the end of file
[Group] comment = Group Folder path = /home/group public = yes writable = no valid users = system_username1 system_username2 create mask = 0700 directory mask = 0700 force user = nobody force group = nogroup
- Save the edited file
- Read #How to add/edit/delete network users
sudo testparm sudo /etc/init.d/samba restart
How to share group folders with read/write permissions (Authentication=Yes)
sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Find this line
... ; security = user ...
- Replace with the following lines
security = user username map = /etc/samba/smbusers
- Append the following lines at the end of file
[Group] comment = Group Folder path = /home/group public = yes writable = yes valid users = system_username1 system_username2 create mask = 0700 directory mask = 0700 force user = nobody force group = nogroup
- Save the edited file
- Read #How to add/edit/delete network users
sudo testparm sudo /etc/init.d/samba restart
How to share public folders with read only permission (Authentication=Yes)
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Find this line
... ; security = user ...
- Replace with the following lines
security = user username map = /etc/samba/smbusers
- Append the following lines at the end of file
[public] comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- Save the edited file
- Read #How to add/edit/delete network users
sudo testparm sudo /etc/init.d/samba restart
How to share public folders with read/write permissions (Authentication=Yes)
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Find this line
... ; security = user ...
- Replace with the following lines
security = user username map = /etc/samba/smbusers
- Append the following lines at the end of file
[public] comment = Public Folder path = /home/public public = yes writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- Save the edited file
- Read #How to add/edit/delete network users
sudo testparm sudo /etc/init.d/samba restart
How to share public folders with read only permission (Authentication=No)
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Find this line
... ; security = user ...
- Replace with the following line
security = share
- Append the following lines at the end of file
[public] comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- Save the edited file
sudo testparm sudo /etc/init.d/samba restart
How to share public folders with read/write permissions (Authentication=No)
sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf
- Find this line
... ; security = user ...
- Replace with the following line
security = share
- Append the following lines at the end of file
[public] comment = Public Folder path = /home/public public = yes writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup
- Save the edited file
sudo testparm sudo /etc/init.d/samba restart
How to print on remote Ubuntu machine via samba
- Read #Print Server (cupsd)
- Make sure your Ubuntu printers are configured properly.
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup gedit /etc/samba/smb.conf
- Find the following lines
... # printing = cups # printcap name = cups ...
- and uncomment them.
printing = cups printcap name = cups
- Restart cups server
sudo /etc/init.d/cupsys restart
- Now printers working on your Ubuntu machine should be acessible via samba.
SSH Server
How to install SSH Server for remote administration service
- Read #General Notes
- Read #How to add extra repositories
sudo apt-get install ssh
How to SSH into remote Ubuntu machine
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have installed SSH Server service
- Read #How to install SSH Server for remote administration service
- Remote Ubuntu machine: 192.168.0.1
ssh username@192.168.0.1
How to copy files/folders from remote Ubuntu machine into local machine (scp)
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have installed SSH Server service
- Read #How to install SSH Server for remote administration service
- Remote Ubuntu machine: 192.168.0.1
- Remote files/folders location: /home/username/remotefile.txt
- Local machine save location: . (current directory)
scp -r username@192.168.0.1:/home/username/remotefile.txt .
How to copy files/folders from local machine into remote Ubuntu machine (scp)
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have installed SSH Server service
- Read #How to install SSH Server for remote administration service
- Local files/folders location: localfile.txt
- Remote Ubuntu machine: 192.168.0.1
- Remote Ubuntu machine save location: /home/username/
scp -r localfile.txt username@192.168.0.1:/home/username/
How to copy files/folders from remote Ubuntu machine into local machine (rsync)
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have installed SSH Server service
- Read #How to install SSH Server for remote administration service
- Remote Ubuntu machine: 192.168.0.1
- Remote files/folders location: /home/username/remotefile.txt
- Local machine save location: . (current directory)
rsync -v -u -a --delete --rsh=ssh --stats username@192.168.0.1:/home/username/remotefile.txt .
How to copy files/folders from local machine into remote Ubuntu machine (rsync)
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have installed SSH Server service
- Read #How to install SSH Server for remote administration service
- Local files/folders location: localfile.txt
- Remote Ubuntu machine: 192.168.0.1
- Remote Ubuntu machine save location: /home/username/
rsync -v -u -a --delete --rsh=ssh --stats localfile.txt username@192.168.0.1:/home/username/
How to mount remote folders into local Ubuntu machine (sshfs)
- Read #General Notes
- e.g. Assumed that remote machine has installed SSH Server service
- Read #How to install SSH Server for remote administration service
- Remote machine: 192.168.0.1
- Remote machine folder location: /media/music
- Install sshfs
sudo apt-get install sshfs
- Load kernel driver for sshfs
sudo modprobe fuse
- For permanent use add 'fuse' at the end of /etc/modules
gksudo gedit /etc/modules
- Join the 'fuse' user group
sudo adduser your_user_name fuse
- Create local mountpoint in your home directory
mkdir ~/remote_music
- Mount the remote folder into ~/remote_music
sshfs 192.168.0.1:/meida/music ~/remote_music
How to SSH into remote Ubuntu machine via Windows machine
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have installed SSH Server service
- Read #How to install SSH Server for remote administration service
- Download PuTTY: Here
How to copy files/folders from/into remote Ubuntu machine via Windows machine
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have installed SSH Server service
- Read #How to install SSH Server for remote administration service
- Download FileZilla: Here
How to limit the user accounts that can connect through ssh remotely
- Read #General Notes
- e.g. If you enable the SSH server, then any user with a valid account can connect remotely
- This can lead to security risks, as there exist remote password cracking tools that
- try common username/password pairs.
- Keep a backup of the ssh server configuration file with
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ORIGINAL
- Edit the configuration file
gksudo gedit /etc/ssh/sshd_config
- Change the parameter PermitRootLogin from yes to no. The superuser must not be able to connect directly from remote.
- Add the parameter AllowUsers and specify the usernames (space separated) that can connect remotely.
- You can also use DenyUsers for fine-grained selection of users.
- If you enable the openssh server and you have no intention for now to enable remote connections, you may add AllowUsers nosuchuserhere to disable anyone connecting.
DHCP Server
How to install DHCP Server for automatic IP addresses assignment
- Read #General Notes
- Read #How to add extra repositories
- e.g. Assumed that "eth0" is the interface for network card
- IP Address Range: 192.168.0.100 to 192.168.0.200
- Subnet Mask: 255.255.255.0
- DNS Servers: 202.188.0.133, 202.188.1.5
- Domains: tm.net.my
- Gateway Address: 192.168.0.1
sudo apt-get install dhcp3-server sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup gksudo gedit /etc/default/dhcp3-server
- Find this line
... INTERFACES=""
- Replace with the following line
INTERFACES="eth0"
- Save the edited file
sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup gksudo gedit /etc/dhcp3/dhcpd.conf
- Find this section
... # option definitions common to all supported networks... option domain-name "example.org"; option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600; max-lease-time 7200; ...
- Replace with the following lines
# option definitions common to all supported networks... #option domain-name "example.org"; #option domain-name-servers ns1.example.org, ns2.example.org;
#default-lease-time 600; #max-lease-time 7200;
- Find this section
...
# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
...
- Replace with the following lines
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option domain-name-servers 202.188.0.133, 202.188.1.5;
option domain-name "tm.net.my";
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
default-lease-time 600;
max-lease-time 7200;
}
- Save the edited file
sudo /etc/init.d/dhcp3-server restart
Database Server
How to install MYSQL Database Server
- Read #General Notes
- Read #How to add extra repositories
sudo apt-get install mysql-server
- MySQL initially only allows connections from the localhost (127.0.0.1). We'll need to remove that restriction if you wish to make it accessible to everyone on the internet. Open the file /etc/mysql/my.cnf
gksudo gedit /etc/mysql/my.cnf
- Find the line bind-address = 127.0.0.1 and comment it out
... #bind-address = 127.0.0.1 ...
- MySQL comes with no root password as default. This is a huge security risk. You'll need to set one. So that the local computer gets root access as well, you'll need to set a password for that too. The local-machine-name is the name of the computer you're working on. For more information see here
mysqladmin -u root password your-new-password mysqladmin -h root@local-machine-name -u root password your-new-password sudo /etc/init.d/mysql restart
How to install MYSQL Administrator
sudo apt-get install mysql-admin
- Read #How to refresh GNOME panel
- Applications -> System Tools -> MySQL Administrator
Apache HTTP Server
How to install Apache HTTP Server for HTTP (Web) Server service
- Read #General Notes
- Read #How to add extra repositories
sudo apt-get install apache2
How to install PHP for Apache HTTP Server
How to install PHP4
- Read #General Notes
- Read #How to add extra repositories
- Read #How to install Apache HTTP Server for HTTP (Web) Server service
sudo apt-get install php4 sudo /etc/init.d/apache2 restart
- To test if php4 installed correctly
gksudo gedit /var/www/testphp.php
- Insert the following line into the new file
<?php phpinfo(); ?>
- Save the edited file
- http://localhost/testphp.php
- Be sure to remove the file afterwards, as it may pose a security risk
How to install PHP5
- Read #General Notes
- Read #How to add extra repositories
- Read #How to install Apache HTTP Server for HTTP (Web) Server service
sudo apt-get install php5 sudo /etc/init.d/apache2 restart
- To test if php5 installed correctly
gksudo gedit /var/www/testphp.php
- Insert the following line into the new file
<?php phpinfo(); ?>
- Save the edited file
- http://localhost/testphp.php
- Be sure to remove the file afterwards, as it may pose a security risk
How to install MYSQL for Apache HTTP Server
- Read #General Notes
- Read #How to add extra repositories
- Read #How to install Apache HTTP Server for HTTP (Web) Server service
- Read #How to install PHP for Apache HTTP Server
- Read #How to install MYSQL Database Server
sudo apt-get install libapache2-mod-auth-mysql
- Select either php4-mysql or php5-mysql depending on which version of PHP you installed
sudo apt-get install php<version-number>-mysql sudo apt-get install phpmyadmin
- To get PHP to work with MySQL, open the file (where <version> is either 4 or 5 depending on which PHP you installed)
gksudo gedit /etc/php<version>/apache2/php.ini
- You'll need to uncomment the ";extension=mysql.so" line so that it looks like this
... extension=mysql.so ...
- Save the file then exit
sudo /etc/init.d/apache2 restart
How to map URLs to folders outside /var/www/
gksudo gedit /etc/apache2/conf.d/alias
- Insert the following lines into the new file
Alias /URL-path /location_of_folder/
<Directory /location_of_folder/> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory>
- Save the edited file
sudo /etc/init.d/apache2 restart
How to change the default port number for Apache HTTP Server
- e.g. Assumed that new port number is 78
sudo cp /etc/apache2/ports.conf /etc/apache2/ports.conf_backup gksudo gedit /etc/apache2/ports.conf
- Find this line
Listen 80
- Replace with the following line
Listen 78
- Save the edited file
sudo /etc/init.d/apache2 restart
How to parse RSS into PHP for Apache HTTP Server
- Read #General Notes
- Read #How to install Apache HTTP Server for HTTP (Web) Server service
- Read #How to install PHP for Apache HTTP Server
- e.g. Assumed that RSS is DistroWatch.com - News
wget -c http://easylinux.info/uploads/magpierss-0.71.1.tar.gz sudo mkdir /var/www/feeds sudo tar zxvf magpierss-0.71.1.tar.gz -C /var/www/feeds/ sudo mv /var/www/feeds/magpierss-0.71.1/* /var/www/feeds/ sudo rm -fr /var/www/feeds/magpierss-0.71.1/ sudo chown -R www-data:root /var/www/feeds/ gksudo gedit /var/www/feeds/index.php
- Insert the following lines into the new file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>DistroWatch.com - News</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css">
/*<![CDATA[*/
/*
DEFAULT TAG STYLES
*/
body {
background: #ffffff;
margin-left: 20px;
font-family: bitstream vera sans,sans-serif;
font-size: 9pt;
}
h1 {
font-family: luxi sans,sans-serif;
font-size: 15pt;
}
/*]]>*/
</style>
</head>
<body>
<?php
require_once 'rss_fetch.inc';
error_reporting(E_ERROR);
$url = 'http://distrowatch.com/news/dw.xml';
$rss = fetch_rss($url);
if ($rss) {
echo "<h1>";
echo "<a href=$url>", $rss->channel[title], "</a><br/>";
echo "</h1>";
foreach ($rss->items as $item ) {
$url = $item[link];
$title = $item[title];
$description = $item[description];
echo "<li>";
echo "<b>Topic:</b> <a href=$url><b><u>$title</u></b></a><br/><br/>";
echo "$description<br/><br/>";
echo "</li>";
}
}
else {
echo "<a href=$url>", $url, "</a> - Server Down!<br/>";
}
?>
</body>
</html>
- Save the edited file
- http://localhost/feeds/index.php
FTP Server
How to install FTP Server for File Transfer service
- Read #General Notes
- Read #How to add extra repositories
sudo apt-get install proftpd
How to configure FTP user to be "jailed" (chrooted) into their home directory
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf
- Find this section
... DenyFilter \*.*/ ...
- Add the following line below it
DefaultRoot ~
- Save the edited file
sudo /etc/init.d/proftpd restart
How to configure FTP Server to allow anonymous FTP user to read only
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf
- Append the following lines at the end of file
<Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous>
- Save the edited file
sudo /etc/init.d/proftpd restart
How to configure FTP Server to allow anonymous FTP user to read/write
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf
- Append the following lines at the end of file
<Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message </Anonymous>
- Save the edited file
sudo /etc/init.d/proftpd restart
How to map anonymous FTP user to folders outside /home/ftp/
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf
- Ajoutez les lignes suivantes à la fin du fichier
<Anonymous /location_of_folder/> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous>
- Sauvez le fichier modifié
sudo /etc/init.d/proftpd restart
How to change the default port number for FTP Server
- e.g. Assumed that new port number is 77
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf
- Find this line
Port 21
- Replace with the following line
Port 77
- Save the edited file
sudo /etc/init.d/proftpd restart
How to ftp into remote Ubuntu machine via Windows machine
- Read #General Notes
- e.g. Assumed that remote Ubuntu machine have installed FTP Server service
- Read #How to install FTP Server for File Transfer service
- Download FileZilla: Here
Streaming Media Server
How to install GNUMP3d for Streaming Media Server service
- Read #General Notes
- Read #How to add extra repositories
- Read #How to install Apache HTTP Server for HTTP (Web) Server service
- e.g. /var/music/ is the directory containing multimedia files
sudo apt-get install gnump3d
How to change the default directory containing multimedia files for GNUMP3d
- e.g. Assumed that new directory containing multimedia files is /home/music/
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup gksudo gedit /etc/gnump3d/gnump3d.conf
- Find this line
root = /var/music
- Replace with the following line
root = /home/music
- Find this line
user = gnump3d
- Replace with the following line
user = root
- Save the edited file
sudo /etc/init.d/gnump3d restart
How to change the default port number for GNUMP3d
- e.g. Assumed that new port number is 7878
sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup gksudo gedit /etc/gnump3d/gnump3d.conf
- Find this line
port = 8888
- Replace with the following line
port = 7878
- Save the edited file
sudo /etc/init.d/gnump3d restart
Image Gallery Server
- For a comparison between Gallery1 and Gallery2 see here
Gallery1
How to install Gallery1 for Image Gallery Server service
- Read #General Notes
- Read #How to add extra repositories
- Read #How to install Apache HTTP Server for HTTP (Web) Server service
- Read #How to install PHP for Apache HTTP Server
sudo apt-get install gallery (when prompted to restart Apache, choose No or Cancel) sudo apt-get install imagemagick sudo apt-get install jhead sudo apt-get install libjpeg-progs sudo /etc/init.d/apache2 restart sudo sh /usr/share/gallery/configure.sh
- http://localhost/gallery/setup/index.php
- Gallery Configuration
Gallery Configuration Wizard: Step 1 Next Step ->
Gallery Configuration Wizard: Step 2 General settings Tab -> Admin password: Specify the password Locations and URLs Tab -> Album directory: /var/www/albums/ Temporary directory: /tmp/ Gallery URL: http://localhost/gallery Albums URL: http://localhost/albums Next Step -->
Gallery Configuration Wizard: Step 3 Next Step -->
Gallery Configuration Wizard: Step 4 Save Config ->
How to configure Gallery1 to be accessible via Internet (Hostname or fix IP) or LAN (fix IP)
- e.g. Assumed that network and internet connections have been configured properly
- Internet (Hostname or fix IP) or LAN (fix IP): http://www.url.com
sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup gksudo gedit /etc/gallery/config.php
- Find this section
... $gallery->app->photoAlbumURL = "http://localhost/gallery"; $gallery->app->albumDirURL = "http://localhost/albums"; ...
- Replace with the following lines
$gallery->app->photoAlbumURL = "http://www.url.com/gallery"; $gallery->app->albumDirURL = "http://www.url.com/albums";
- Save the edited file
- http://www.url.com/gallery/albums.php
How to configure Gallery1 to be accessible via LAN (dynamic IP)
- e.g. Assumed that network connections have been configured properly
- LAN (dynamic IP): 192.168.0.1
sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup gksudo gedit /etc/gallery/config.php
- Find this section
... $gallery->app->photoAlbumURL = "http://localhost/gallery"; $gallery->app->albumDirURL = "http://localhost/albums"; ...
- Replace with the following lines
$gallery->app->photoAlbumURL = "/gallery"; $gallery->app->albumDirURL = "/albums";
- Save the edited file
- http://192.168.0.1/gallery/albums.php
How to backup/restore Gallery1 data
- Read #General Notes
- To backup Gallery data
sudo tar zcvf gallery.tgz /var/www/albums/ /etc/gallery/
- To restore Gallery data
sudo tar zxvf gallery.tgz -C /
Gallery2
Comment installer Gallery2
Comment configurer Gallery2
Troubleshooting
Configuring network interfaces... (taking too long to load)
Synchronizing clock to ntp.ubuntulinux.org... (taking too long to load)
- Read #General Notes
- Read #How to temporary skip boot-up services
- Read #How to permanently disable/enable boot-up services
service_name = ntpdate
Comment empêcher les heures/date d'être réinitialisées à UTC (GMT)
- Lisez #Notes Générales
sudo cp /etc/default/rcS /etc/default/rcS_backup gksudo gedit /etc/default/rcS
- Trouvez cette ligne
... UTC=yes ...
- Remplacez par la ligne suivante
UTC=no
- Sauvegardez le fichier modifié
- Système -> Administration -> Heure and Date
Saisissez les correctes heures/date
sudo /etc/init.d/hwclock.sh restart
Comment configurer le son afin qu'il fonctionne correctement sous GNOME
sudo killall esd sudo cp /etc/esound/esd.conf /etc/esound/esd.conf_backup gksudo gedit /etc/esound/esd.conf
- Trouvez cette section
... auto_spawn=0 spawn_options=-terminate -nobeeps -as 5 ...
- Remplacer par les lignes suivantes
auto_spawn=1 spawn_options=-terminate -nobeeps -as 2 -d default
- Sauvez le fichier modifié
sudo apt-get install libesd-alsa0 gksudo gedit /etc/asound.conf
- Insérez les lignes suivantes dans le nouveau fichier
pcm.card0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
- Sauvez le fichier modifié
sudo ln -fs /usr/lib/libesd.so.0 /usr/lib/libesd.so.1
Système -> Préférences -> Son Préférences du son
Jouer les sons système (Décoché)
- Sauvez et fermez toutes les applications ouvertes, redémarrez l'ordinateur.
Comment vider de force la Corbeille Gnome
- Lisez #Notes Générales
sudo rm -fr $HOME/.Trash/
Comment supprimer les menus/éléments du menu en double dans GNOME
- Lisez #Notes Générales
rm -f $HOME/.config/menus/applications.menu
Comment rafraîchir le menu Places dans GNOME (si les disques listés dans /media/ dans le /etc/fstab n'apparaissent pas)
- Lisez #Notes Générales
sudo /etc/init.d/dbus-1 restart
How to consume static (not dhcp) wireless LAN (WLAN) connection (KDE)
- I assume you have successfully consumed WLAN connection in Windows
- To enable the network device please follow the following steps
- Go to K-menu -> System Settings -> Network Settings
- Enable Administrator mode
- Select Network Interfaces tab and the wireless interface (usually ath0) to configure
- Click Configure Interface...
- Choose Manual or Automatic. Choose Manual
- Fill the preferred IP address to identify your computer and the netmask. Choose to activate when computer starts
- Click Advanced Settings to for more properties
- Select Routes tab and fill the gateway IP address
- Make sure you choose the correct device in the right dropdown (e.g. ath0)
- Click apply to commit all changes
- To choose wireless connection please follow the following steps
- Go to K-menu -> Internet -> Wireless Assistant
- Right click on preferred connection ssid
- Choose and complete fields for Manual connection
- Click Ok
- Create connection configuration
gksudo gedit /etc/wpa_supplicant.conf
- Insert the following lines into the new file
network={
ssid="YOUR_PREFERRED_CONNECTION_SSID"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
psk="STRING_TO_GENERATE_PASSWORD"
#psk=123456789 #you have option to use connection key instead of connection password
}
- Save the edited file
- Create script to easily activate connection
gksudo gedit /etc/init.d/wifi_wpa.sh
- Insert the following lines into the new file
#! /bin/sh # wifi: wpa_supplicant init echo " * [Wifi]: Enabling WPA supplicant..." if [ -x /sbin/wpa_supplicant ]; then /sbin/wpa_supplicant -B -i ath0 -c /etc/wpa_supplicant.conf -D madwifi -w fi exit 0
- Save the edited file
- Make sure both file readable and executable
sudo chmod +r /etc/wpa_supplicant.conf sudo chmod +x /etc/init.d/wifi_wpa.sh
- make wireless connection automaticaly starts when computer starts
sudo ln -s /etc/init.d/wifi_wpa.sh /etc/rcS.d/S40netwifiwpa
- Close all opened applications, Reboot computer
Mettre à jour Ubuntu
Comment mettre à jour de Hoary Hedgehog -> Breezy Badger -> Dapper Drake
- Premièrement, assuez-vous que votre système est bien à jour:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
- Bien, maintenant, éditons le fichier sources.list,
- Si vous ne disposez pas du CD, assurez-vous d'avoir commenté/supprimé la ligne correspondant au CD-Rom.
gksudo gedit /etc/apt/sources.list
/etc/apt/sources.list
pour une mise à jour vers breezy, votre sources.list devrait ressembler à ceci:
## Uncomment the following two lines to fetch updated software from the network
deb http://us.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted
## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu breezy universe
deb-src http://us.archive.ubuntu.com/ubuntu breezy universe
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
deb http://security.ubuntu.com/ubuntu breezy-security universe
- Pour mettre à jour de breezy vers dapper, remplacez (ctrl+h) toutes les occurences de 'breezy' par 'dapper' dans le document.
- Maintenant:
- Sauvegardez le fichier.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade- Fermez votre session, redémarrez, profitez.
NOTES:
- Je suggère de ne pas mettre à jour directement de hoary vers dapper.
(Je n'ai pas fait l'expérience, j'ai seulement mis à jour de hoary->breezy->dapper)
- Je tenterai une mise à jour vers Edgy Eft prochainement, je ferai une section à ce propos.
- Je prépare également un guide pour l'utilisation du CD pour mettre à jour votre distribution.
Comment mettre à jour de Dapper Drake à Edgy Eft (expérimental)
- à venir...
Sujets supprimés
- Les sujets ayant été supprimé de ce guide peuvent être retrouvés ici
BlogMarks
del.icio.us
digg
Fark
Furl
Newsvine
reddit
Segnalo
Simpy
Slashdot
smarking
Spurl
Wists
