Linux How To

From Mmassico

Jump to: navigation, search
(How to setup wireless (Debian))
(mrnkeZXsSaWMgzbvW)
Line 1: Line 1:
-
== Installer les drivers nVidia ==
+
Knwolegde wants to be free, just like these articles!
-
Je vous recommande d'installer les ''packages'' de développement pour le kernel avant de continuer
+
-
 
+
-
1. Téléchargez les drivers à partir du site [http://www.nvidia.com nVidia]
+
-
 
+
-
2. Faite un '''Logout''' de KDE
+
-
 
+
-
3. Au '''Logon Screen''' faite <Ctrl+Alt+F1>
+
-
 
+
-
4. Entrez votre login
+
-
 
+
-
5. Tapez les commandes suivantes:
+
-
 
+
-
su
+
-
/sbin/init 3
+
-
sh /path_to_driver/NVIDIA-Linux-x86_64-1.0-9755-pkg2.run
+
-
/sbin/init 5
+
-
startx
+
-
 
+
-
6. Si ça fonctionne, redémarrez le PC.
+
-
 
+
-
7. Une fois dans KDE, executez /usr/bin/nvidia-settings
+
-
 
+
-
En cas de problème: [[xorg.conf]]
+
-
 
+
-
Voilà!
+
-
 
+
-
== Outils d'installation ==
+
-
L'outil d'installation de package avec GUI s'installe avec la commande suivante (Yellowdog Updater Modified):
+
-
yum install yumex
+
-
 
+
-
== MSN Messenger Clone ==
+
-
1. Je vous recommande aMSN:
+
-
yum install amsn amsn-plugins
+
-
 
+
-
2. Installez le skin: [http://amsn-project.net/skins.php aMSN Vista Futurosoft]
+
-
 
+
-
3. Installez le plugin: [http://amsn-project.net/plugins.php Chameleon]. Note: pour installer le plugin ''Chameleon'' vous aurez besoin de ''Tile'':
+
-
yum install tile
+
-
 
+
-
== Installation Multimédia sur Fedora Core 6 ==
+
-
Le tutoriel complet se trouve à l'URL suivant: [http://tldp.org/HOWTO/html_single/Fedora-Multimedia-Installation-HOWTO/ Fedora Multimedia Installation]
+
-
 
+
-
1. Changez le ''repository'' avec la commande suivante:
+
-
rpm -ivh <nowiki>http://rpm.livna.org/livna-release-5.rpm</nowiki>
+
-
 
+
-
2. Support de gstreamer et de ffmpeg
+
-
yum install gstreamer-plugins-ugly ffmpeg
+
-
 
+
-
3. Support pour les fichiers .mp3
+
-
yum install xmms xmms-mp3
+
-
 
+
-
4. Xine (video et audio)
+
-
yum install xine xine-lib libdvdcss
+
-
 
+
-
5. Amarok (mp3, podcast, audio stream)
+
-
yum install amarok-extras-nonfree
+
-
 
+
-
6. Xine extras
+
-
yum install xine-lib-extras-nonfree
+
-
 
+
-
== Media Players (video player) ==
+
-
MPlayer semble jouer tous les formats! Disponible à l'URL: http://www.mplayerhq.hu.
+
-
 
+
-
Téléchargez les sources, compilez et installez:
+
-
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
+
-
./configure
+
-
make
+
-
make install
+
-
 
+
-
Aussi, basé sur Xine, Kaffeine est encore mieux:
+
-
yum install kaffeine
+
-
 
+
-
You saved me a lot of hsalse just now.
+
-
 
+
-
== Démarrer automatiquement Beryl dans KDE ==
+
-
 
+
-
Open a text editor and type in:
+
-
 
+
-
  #!/bin/bash
+
-
  beryl-manager
+
-
 
+
-
then save the file as beryl.sh (or whatever you want to call it) in the directory /home/USERNAME/.kde/Autostart/      (where USERNAME is your username). Remember that .kde is a hidden folder, so you will need to turn on viewing of hidden files/folders, or type in the location manually in the save dialogue.
+
-
 
+
-
Finally you need to make beryl.sh executable. To do this just right click on beryl.sh, then properties > Permissions tab > tick Is executable.
+
-
 
+
-
== Beryl et nVidia ==
+
-
Ajoutez la ligne suivante dans /etc/X11/xorg.conf dans la section ''Device''
+
-
 
+
-
Option "AddARGBGLXVisuals" "True"
+
-
 
+
-
Exemple:
+
-
 
+
-
Section "Device"
+
-
    Identifier    "nVidia Corporation NV40 [GeForce 6800 GT]"
+
-
    Driver        "nvidia"
+
-
    Option        "AddARGBGLXVisuals" "True"
+
-
EndSection
+
-
 
+
-
Une fois ''Beryl'' activé, si vous utilisez le '''blur''' sur la transparence, il est possible que vous voyiez des trainée en déplaçant les fenêtres. Désactivez "Use Blur Cache" (beryl-manager)
+
-
 
+
-
== Recharger les librairies ==
+
-
Souvent, après avoir installé des nouvelles librairies, elles ne sont pas immédiatement reconnues. Tapez la commande suivante pour recharger les librairies:
+
-
su -
+
-
/sbin/ldconfig
+
-
 
+
-
== Installer le Adobe Flash dans Firefox (x64) ==
+
-
*[http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash Adobe Flash Player Download Center Linux (x86)]
+
-
*[http://gwenole.beauchesne.info/en/projects/nspluginwrapper nspluginwrapper]
+
-
 
+
-
rpm -i nspluginwrapper-i386-0.9.91.3-1.x86_64.rpm
+
-
rpm -i nspluginwrapper-0.9.91.3-1.x86_64.rpm
+
-
nspluginwrapper -i ~/downloads/install_flash_player_9_linux/libflashplayer.so
+
-
nspluginwrapper -v -a -u
+
-
 
+
-
== CD/DVD burner tool ==
+
-
K3b fonctionne très bien!
+
-
yum install k3b
+
-
 
+
-
== Editeur Texte '''setedit''' ==
+
-
SET Edit est disponible à partir du site: http://setedit.sourceforge.net/
+
-
 
+
-
1. Télécharger les sources de [http://prdownloads.sourceforge.net/tvision/rhtvision_2.1.0-2.tar.gz tvision]
+
-
 
+
-
2. Télécharger les sources de [http://prdownloads.sourceforge.net/setedit/setedit_0.5.5-2.tar.gz setedit]
+
-
 
+
-
3. Décompressez
+
-
gunzip rhtvision_2.1.0-2.tar.gz
+
-
tar -xvf rhtvision_2.1.0-2.tar.gz
+
-
gunzip setedit_0.5.5-2.tar.gz
+
-
tar -xvf setedit_0.5.5-2.tar.gz
+
-
 
+
-
4. Compilez '''tvision'''
+
-
 
+
-
cd rhtvision_2.1.0-2
+
-
./configure
+
-
make
+
-
su -
+
-
make install
+
-
/sbin/ldconfig
+
-
cd ..
+
-
 
+
-
4.1 Il est possible que la compilation ne fonctionne pas, éditez le fichier et recompilez
+
-
cd rhtvision_2.1.0-2
+
-
vim ./include/tv/inputln.h (editez la ligne 206, enlevez TInputLine::)
+
-
make
+
-
su -
+
-
make install
+
-
/sbin/ldconfig
+
-
cd ..
+
-
 
+
-
5. Compilez '''setedit'''
+
-
cd setedit_0.5.5-2
+
-
./configure
+
-
make
+
-
su -
+
-
make install
+
-
 
+
-
6. Vous pouvez lancer l'éditeur avec 'e', exemple:
+
-
e mytextfile.txt
+
-
 
+
-
== Visualisateur d'images (comme ACDSee) ==
+
-
 
+
-
su -
+
-
yum install kipi-plugins
+
-
yum install showimg
+
-
 
+
-
== Résolution des noms réseaux ==
+
-
Editez le fichier /etc/nsswitch.conf et ajoutez '''wins''' à la ligne '''hosts'''
+
-
hosts:      files dns wins
+
-
 
+
-
Ne pas oublier de désactiver le firewall si ça ne fonctionne pas!!!
+
-
 
+
-
Pour tester cette modification
+
-
ping ''[Computer NetBios Name]''
+
-
 
+
-
Dans les services, activer (restart) Winbind
+
-
 
+
-
== fstab (file system table) ==
+
-
Dans Fedora, '''smbfs''' n'existe plus, il a été remplacé par '''cifs'''
+
-
 
+
-
Exemple du fichier '''/etc/fstab''':
+
-
                /proc          proc    defaults                          0 0
+
-
/dev/hdb1      /              ext3    defaults,errors=remount-ro        0 1
+
-
/dev/hdb2      none            swap    sw                                0 0
+
-
/dev/hdc        /media/cdrom0  iso9660 ro,user,noauto                    0 0
+
-
//ntserver/docs /mnt/samba      cifs    username=docsadm,password=D1Y4x9sw 0 0
+
-
 
+
-
Ensuite il est possible de faire: '''mount /etc/samba''' (as root)
+
-
 
+
-
== Démarrer une application à partir d'une autre machine Linux ==
+
-
Pour démarrer une application de Linux à Linux:
+
-
ssh -X ''[ComputerName]''
+
-
''[ComputerName]''$ xterm &
+
-
 
+
-
== XDMCP de Linux à Linux ==
+
-
Si à partir de '''LinuxA''' on veut accèder au desktop de '''LinuxB'''
+
-
 
+
-
À partir de la machine '''LinuxA''' :
+
-
 
+
-
X -once -query ''[LinuxB]'' :1
+
-
 
+
-
Pour changer du desktop '''LinuxA''' au desktop '''LinuxB''', il suffit de faire <Ctrl+Alt+F8> et pour revenir de '''LinuxB''' à '''LinuxA''', <Ctrl+Alt+F7>
+
-
 
+
-
== Xming Free X-Server ==
+
-
Xming Wiki: http://freedesktop.org/wiki/Xming
+
-
 
+
-
Xming Download: http://sourceforge.net/projects/xming
+
-
 
+
-
RunX.bat example:
+
-
<pre>
+
-
@echo off
+
-
SET DISPLAY=127.0.0.1:0.0
+
-
SET REMOTE_HOST=escher
+
-
SET LOCAL_HOST=mmassicopc
+
-
start "Xming" "c:\Program Files (x86)\Xming\Xming.exe" -query %REMOTE_HOST% -nodecoration -from %LOCAL_HOST% -notrayicon
+
-
</pre>
+
-
 
+
-
== Partitioning and formating new hard drive ==
+
-
 
+
-
This article presents the commands used to partition and format a second hard drive in Linux using the ext3 file system. For the purpose of this example, I installed a second hard drive in a Red Had Linux system where the drive is recognized as /dev/hdb. I want to make only one partition on this hard drive which will be /dev/hdb1.
+
-
fdisk
+
-
 
+
-
http://www.idevelopment.info/data/Unix/Linux/LINUX_PartitioningandFormattingSecondHardDrive_ext3.shtml
+
-
 
+
-
 
+
-
== How to setup wireless (Fedora) ==
+
-
 
+
-
References:
+
-
*[http://menzonius.wordpress.com/2006/07/12/howto-fedora-core-5-and-wireless-configuration-with-madwifi-and-wpa_supplicant/ http://menzonius.wordpress.com/2006/07/12/howto-fedora-core-5-and-wireless-configuration-with-madwifi-and-wpa_supplicant/]
+
-
*[http://forums.fedoraforum.org/showthread.php?p=579425#post579425 http://forums.fedoraforum.org/showthread.php?p=579425#post579425]
+
-
 
+
-
 
+
-
File: /etc/modprobe.conf, add:
+
-
<pre>
+
-
alias ath0 ath_pci
+
-
</pre>
+
-
 
+
-
File: /etc/sysconfig/wpa_supplicant, add:
+
-
<pre>
+
-
INTERFACES="-iath0"
+
-
DRIVERS="-Dmadwifi"
+
-
</pre>
+
-
 
+
-
File: /etc/wpa_supplicant/wpa_supplicant.conf, edit:
+
-
<pre>
+
-
ap_scan=1
+
-
ctrl_interface=/var/run/wpa_supplicant
+
-
ctrl_interface_group=wheel
+
-
 
+
-
network={
+
-
        ssid="routername"
+
-
        proto=RSN
+
-
        key_mgmt=WPA-PSK
+
-
        pairwise=CCMP TKIP
+
-
        group=CCMP TKIP
+
-
        psk="passphrase"
+
-
}
+
-
</pre>
+
-
 
+
-
File: /etc/sysconfig/network-scripts/ifcfg-ath0, edit:
+
-
<pre>
+
-
DEVICE=ath0
+
-
HWADDR=00:14:a5:cc:4e:d8
+
-
BOOTPROTO=none
+
-
IPADDR=10.20.1.200
+
-
NETMASK=255.255.255.0
+
-
GATEWAY=10.20.1.1
+
-
ONBOOT=yes
+
-
TYPE=Wireless
+
-
MODE=managed
+
-
RATE=auto
+
-
ESSID=auto
+
-
</pre>
+
-
 
+
-
Enable "wpa_supplicant" service in Settings->Services then save.
+
-
 
+
-
Change the daemon load order:
+
-
<pre>
+
-
cd /etc/rc.d/rc5.d/
+
-
ls | grep "wpa_supplicant|network"
+
-
mv S10network S12network
+
-
mv S12wpa_supplicant S10wpa_supplicant
+
-
ls | grep "wpa_supplicant|network"
+
-
</pre>
+
-
 
+
-
For unexplained reason, you must restart the network at the end of init scripts. File: /etc/rc.local, add:
+
-
<pre>
+
-
/etc/init.d/network restart
+
-
</pre>
+
-
 
+
-
Reboot
+
-
 
+
-
To think, I was cnoufsed a minute ago.
+
-
 
+
-
== Make GTK look like QT ==
+
-
 
+
-
yum install gtk-qt-engine
+
-
 
+
-
== Getting Perfect Fonts ==
+
-
 
+
-
[http://www.convexhull.com/mandrake_fonts.html http://www.convexhull.com/mandrake_fonts.html]
+
-
 
+
-
== Configure Compiz ==
+
-
 
+
-
Need to install fusion-icon
+
-
 
+
-
yum install fusion-icon
+
-
ccsm
+
-
 
+
-
== Reinstall GRUB ==
+
-
 
+
-
<pre>
+
-
[root@localhost grub]# grub --device-map=/dev/null
+
-
 
+
-
GNU GRUB  version 0.97-17mdv2007.0  (640K lower / 3072K upper memory)
+
-
[ Minimal BASH-like line editing is supported.  For
+
-
  the  first  word,  TAB  lists  possible  command
+
-
  completions.  Anywhere else TAB lists the possible
+
-
  completions of a device/filename. ]
+
-
 
+
-
grub> device (hd0,0) /dev/mapper/nvidia_eaeccaag1
+
-
device (hd0,0) /dev/mapper/nvidia_eaeccaag1
+
-
grub> device (hd0) /dev/mapper/nvidia_eaeccaag
+
-
device (hd0) /dev/mapper/nvidia_eaeccaag
+
-
grub> root (hd0,0)
+
-
root (hd0,0)
+
-
Filesystem type is ext2fs, partition type 0x83
+
-
grub> setup (hd0)
+
-
setup (hd0)
+
-
Checking if "/boot/grub/stage1" exists... yes
+
-
Checking if "/boot/grub/stage2" exists... yes
+
-
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
+
-
 
+
-
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded. succeeded
+
-
 
+
-
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"...
+
-
</pre>
+
-
 
+
-
== VLC ==
+
-
<pre>
+
-
vlc -vvv pvr:/dev/video0:norm=ntsc:size=720x480:channel=0:frequency=62000:bitrate=5000000:maxbitrate=7000000 --sout udp:10.20.1.101 --ttl 12
+
-
ivtv-tune -f68.00 -d/dev/video0
+
-
</pre>
+
-
 
+
-
== Recovery of RAID ==
+
-
 
+
-
[http://debian.co.nz/Recovery+of+RAID+and+LVM2.html http://debian.co.nz/Recovery+of+RAID+and+LVM2.html]
+
-
 
+
-
 
+
-
== Remove a package ==
+
-
 
+
-
Find out which packages you have installed
+
-
rpm -qa libraw1394*
+
-
 
+
-
Then remove them...
+
-
rpm -e --nodeps libraw1394-1.3.0-3_11.fc8
+
-
 
+
-
Then install:
+
-
 
+
-
yum clean all (just to be safe)
+
-
 
+
-
yum install libraw1394
+

Revision as of 08:39, 5 September 2011

Personal tools
Navigation