Rechercher dans ce blog

Affichage des articles dont le libellé est installer. Afficher tous les articles
Affichage des articles dont le libellé est installer. Afficher tous les articles

lundi 12 décembre 2011

ffmpeg compile && install mac os x

Prerequisites: LAME

MP3 is the audio codec most often used with Flash video, so you will need an MP3 encoder. FFmpeg doesn't include one, but it will use LAME, which creates good quality audio files, if you install it. Header files will be needed during the compile, so it is not enough to install a prebuilt binary using a package manager. Instead follow these directions to compile it from source:

Start by creating a working directory:

mkdir ~/lame
cd ~/lame

On a good day you can get the latest source code release of LAME from Sourceforge. The file you want will be named lame-3.97.tar.gz or something similar.

After downloading and unpacking the source or checking it out from CVS, change to the main directory and then enter the three commands which are typically used to build open source projects:

cd lame-3.97
./configure
make
sudo make install

First create a working directory:

mkdir ~/ffmpeg
cd ~/ffmpeg

The up-to-date version of FFmpeg generally compiles cleanly, and that is the version you usually will want:

svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg

Next, configure and make

./configure --enable-libmp3lame --enable-shared \
  --disable-mmx --arch=x86_64
make
sudo make install

The --disable-mmx flag is not required on a PowerPC. If you leave it out on an Intel Mac, you will probably get a compile error, but it's worth trying since it will provide a speed boost.


mercredi 9 décembre 2009

installer grub

Pour installer grub à partir d'un liveCD avec grub ou bien une linux box.

Copier le dossier genre /boot/grub du liveCD vers le disque de destination

Ensuite lancer grub

#grub

>

Repérer le disque où installer grub

Alors on peut faire au prompt de grub (si les fichiers de boot sont dans /boot/grub)

>find /boot/grub/stage1

et on obtient la liste des hd possibles

(hd0,0)

(hd1,0)

par exemple

Ce que je fais quand il y a plusieurs disques, clefs usb, etc, pour ne pas m'embrouiller, c'est de mettre un fichier genre t.txt dans la racine du disque où installer grub et je fais un

>find /t.txt

et là j'obtiens le disque cible...

ensuite on root le disque et la partition

>root (hdn,m)

puis on installe attention pas de partition indiquée

>setup (hdn)

>quit

Voilà c'est bootable en principe.

Je m'assure toujours que le flag boot est mis sur la partition mais je ne suis pas sûr que ce soit indispensable.

Pour booter sur une partition windows alors que le système est booté sur une carte sd/usb il faut d'abord remapper les drives car windows ne démarre que sur le premier disque.

Donc utiliser genre

title XP

map (hd1) (hd0)

map (hd0) (hd1)

root (hd1,1)

chainloader +1  

Manuel de grub

Toutes les commandes de grub

http://www.gnu.org/software/grub/manual/grub.html#Commands

Extrait :

4.2.6 DOS/Windows

GRUB cannot boot DOS or Windows directly, so you must chain-load them (see Chain-loading). However, their boot loaders have some critical deficiencies, so it may not work to just chain-load them. To overcome the problems, GRUB provides you with two helper functions.

If you have installed DOS (or Windows) on a non-first hard disk, you have to use the disk swapping technique, because that OS cannot boot from any disks but the first one. The workaround used in GRUB is the command map (see map), like this:

   grub> map (hd0) (hd1)

   grub> map (hd1) (hd0)

This performs a virtual swap between your first and second hard drive.

Caution: This is effective only if DOS (or Windows) uses BIOS to access the swapped disks. If that OS uses a special driver for the disks, this probably won't work.

Another problem arises if you installed more than one set of DOS/Windows onto one disk, because they could be confused if there are more than one primary partitions for DOS/Windows. Certainly you should avoid doing this, but there is a solution if you do want to do so. Use the partition hiding/unhiding technique.

If GRUB hides a DOS (or Windows) partition (see hide), DOS (or Windows) will ignore the partition. If GRUB unhides a DOS (or Windows) partition (see unhide), DOS (or Windows) will detect the partition. Thus, if you have installed DOS (or Windows) on the first and the second partition of the first hard disk, and you want to boot the copy on the first partition, do the following:

   grub> unhide (hd0,0)

   grub> hide (hd0,1)

   grub> rootnoverify (hd0,0)

   grub> chainloader +1

   grub> makeactive

   grub> boot

mercredi 15 avril 2009

Gnumeric mac os X installer / désinstaller - macport

#port install gnumeric

########################################################### # A startup item has been generated that will aid in # starting dbus with launchd. It is disabled # by default. Execute the following command to start it, # and to cause it to launch at startup: # # sudo launchctl load -w /Library/LaunchDaemons/org.macports.dbus.plist ########################################################### ############################################################################## # It is absolutely necessary for dbus enabled programs to work to execute # # launchctl load /Library/LaunchAgents/org.freedesktop.dbus-session.plist # # once for every user. Don't use 'sudo', else it will work only for root! # You also have to unload it before deactivating/uninstalling this software! ############################################################################## ###################################################################### # As MacPorts does not currently have a post-deactivate hook,  # you will need to ensure that you manually remove the catalog  # entry for this port when you uninstall it. To do so, run  # "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.1.2/catalog.xml". ###################################################################### ###################################################################### # As MacPorts does not currently have a post-deactivate hook,  # you will need to ensure that you manually remove the catalog  # entry for this port when you uninstall it. To do so, run  # "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.2/catalog.xml". ###################################################################### ###################################################################### # As MacPorts does not currently have a post-deactivate hook,  # you will need to ensure that you manually remove the catalog  # entry for this port when you uninstall it. To do so, run  # "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.3/catalog.xml". ###################################################################### ###################################################################### # As MacPorts does not currently have a post-deactivate hook,  # you will need to ensure that you manually remove the catalog  # entry for this port when you uninstall it. To do so, run  # "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.4/catalog.xml". ###################################################################### ###################################################################### # As MacPorts does not currently have a post-deactivate hook,  # you will need to ensure that you manually remove the catalog  # entry for this port when you uninstall it. To do so, run  # "xmlcatmgr remove nextCatalog /opt/local/share/xml/docbook/4.5/catalog.xml". ###################################################################### ###################################################################### # As MacPorts does not currently have a post-deactivate hook,  # you will need to ensure that you manually remove the catalog  # entry for this port when you uninstall it. To do so, run  # "xmlcatmgr remove nextCatalog /opt/local/share/xsl/docbook-xsl/catalog.xml". ######################################################################

gnumeric most recent diff

version 1.9.0 View the most recent changes for the gnumeric port at: gnumeric.darwinports.com/diff Scroll down toward the bottom of the page to get installation instructions for gnumeric. The raw portfile for gnumeric 1.9.0 is located here: http://gnumeric.darwinports.com/dports/gnome/gnumeric/Portfile Find related portfiles with the unique DarwinPorts.com search feature. Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/gnumeric  PortSystem 1.0 Name: gnumeric Version: 1.9.0 Description: A spreadsheet with gnome support. Long Description: ${description} Maintainers: nomaintainer Category: gnome math Platform: darwin Homepage: http://www.gnome.org/projects/gnumeric/