https://wiki.archlinux.org/api.php?action=feedcontributions&user=UNIVAC&feedformat=atomArchWiki - User contributions [en]2024-03-29T07:35:09ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Graphical_GRUB&diff=76569Graphical GRUB2009-09-26T01:40:23Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Boot process (English)]]<br />
[[Category:Eye candy (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{Note|This mod has since been obsoleted by a community package, [http://wiki.archlinux.org/index.php/Grub-gfx'''grub-gfx'''].}}<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|:Graphical_GRUB}}<br />
{{i18n_entry|简体中文|:Graphical_GRUB (简体中文)}}<br />
{{i18n_links_end}}<br />
== Introduction ==<br />
<br />
This is a mod to the current grub package found on Arch base repository which adds support for a splash image (a background).<br />
<br />
While the patch is not officially supported by grub developers due to their policy of only bugfixes on their grub 0.9x series, it is used by many distributions like Fedora/Red Hat, SuSE, Gentoo, MEPIS, and others. The patch I use is based on the one included by Fedora Core 3 grub srpm and rediffed to the latest vanilla grub version.<br />
<br />
After the installation is done, you will have a grub screen with the following background.<br />
http://www.mundolink.net/users/mariov/images/arch-grub-096.png<br />
<br />
<br />
Due to demand, the old splash image is optionally available for those who like it more.<br />
http://www.mundolink.net/users/mariov/images/arch-grub.png<br />
<br />
'''New:''' In addition to the standard package, a new alternate one is available for those who follow the [[Reiser4FShowto]] steps and want a grub package with both reiserfs4 and splashimage.<br />
<br />
== Pre Install Notes ==<br />
# Make a copy of your menu.lst for backup. It is not replaced by the installation steps below, unless you remove your current grub package.<br />
# We are dealing with your boot system info, so there is a small chance that things can be screw up. But I haven't got any issue.<br />
# If want to compile the package with the old splash image, or your custom splash image instead of the current one, you need to edit the PKGBUILD and change the md5sum assigned to <code>splash.xpm.gz</code>.<br />
# The alternate package with reiser4 requires '''libaal''', '''reiser4progs''', and a '''reiser4 patched kernel'''. Those are not on Arch repos, you can get them and read about all the process involved on [[Reiser4FShowto]], or grab my updated PKGBUILDs:[http://www.mundolink.net/users/mariov/arch/packages/libaal/PKGBUILD libaal], and [http://www.mundolink.net/users/mariov/arch/packages/reiser4progs/PKGBUILD reiser4progs].<br />
# Be sure not to upgrade grub via pacman after following this guide, as the version used in this guide is older than the current version available via pacman. You can set pacman to ignore any grub upgrades by editing your pacman.conf accordingly.<br />
<br />
== Installation ==<br />
'''Note:''' Reiser package not updated since reiser patch need to be rediffed.<br />
Files changed for 0.97-1: <code>PKGBUILD</code>, <code>menu.lst</code>.<br />
<br />
'''Note:''' grub-gfx can be found in the community-repo, so you just need to edit the menu.lst and add the splash file to your /boot directory.<br />
<br />
<br />
1. Grab the following files and save them on a folder on your <code>/var/abs/local</code> path:<br />
*[http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/PKGBUILD?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=text/plain PKGBUILD].<br />
* [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/menu.lst?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=text/plain menu.lst]<br />
* [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/install-grub?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=text/plain install-grub] o copiarlo desde /var/abs/base/grub/install-grub<br />
* [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/system/grub-gfx/grub-0.97-graphics.patch?cvsroot=AUR&only_with_tag=CURRENT grub-0.97-graphics.patch]<br />
*[http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/splash.xpm.gz?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=image/x-xpixmap splash.xpm.gz]* '''Only for reiser4 support:''' grab the [http://www.mundolink.net/users/mariov/arch/packages/grub/reiser4/grub-0.96-reiser4.patch reiser4 patch]<br />
<br />
<br />
2. Build the package:<br />
# makepkg <br />
<br />
<br />
3. Install the package:<br />
# pacman -U grub-0.97-1.pkg.tar.gz <br />
<br />
<br />
4. Edit your <code>menu.lst</code> and add the following splash instruction anywhere before your OS's menu entries:<br />
splashimage /boot/grub/splash.xpm.gz<br />
For example:<br />
# general configuration:<br />
timeout 5<br />
default 0<br />
splashimage /boot/grub/splash.xpm.gz<br />
'''Important:''' Since grub 0.96-4 the splash path is <code>/boot/grub/splash.xpm.gz</code> and not <code>/grub/splash.xpm.gz</code>. Previous users need to correct the path.<br />
<br />
<p>Actually you should have: <code>splashimage /path/to/your/image.xpm{.gz} </code> relative to the grub's root<br />
partition<br/><br />
If you have separate partition for /boot:<br/><br />
<code>splashimage /grub/splash.xpm.gz</code><br/><br />
If you don't:<br/><br />
<code>splashimage /boot/grub/splash.xpm.gz</code><br/><br />
Wrong path makes grub hang with black screen and blinking cursor (without the prompt) :-(<br />
</p><br />
<br />
5. Install the new grub boot images to your <code>/boot</code> dir. Change ''x'' with your boot drive letter (ie. <code>hda</code>):<br />
# install-grub /dev/hd''x'' (or sd''x'')<br />
<br />
6. '''ONLY''' if your system dual boot '''AND''' your primary boot loader is '''NTLDR''' - remember to update your boot binary file (<code>dd if=/dev/hdx of=/linux.bin bs=512 count=1</code>) and copy the file to your NTFS boot partition. If you don't know what I'm talking, don't worry and just skip this step.<br />
<br />
== Troubleshooting ==<br />
==== Black display menu visible ====<br />
Stages probably not updated, try again <code>install-grub ''(your partition where /boot belongs, or MBR)''</code>. To check if your stage2 supports splash image, use [http://ruslug.rutgers.edu/~mcgrof/grub-images/checksplash.sh checksplash.sh] script.<br />
<br />
==== Black display, no menu, or corrupted display ====<br />
Check the splashimage instruction. If you have a separate <code>/boot</code> partition try <code>splashimage /grub/splash.xpm.gz</code>. Also check that you have a <code>splash.xpm.gz</code> in grub's dir.<br />
<br />
<br />
== FAQ ==<br />
==== 1. Can I use my custom image in grub? ====<br />
Yes, but it needs to fulfill these requisites: 640x480 resolution, 14 color xpm picture gzip compressed.<br />
<br />
==== 2. Do I need to recompile or reinstall grub when changing a splash? ====<br />
Any splash can be used at any time, and no compilation is required after this package is installed, just replace <code>splash.xpm.gz</code> with another one, or edit <code>menu.lst</code> and change the path of splashimage instruction to match the desired picture to show.<br />
<br />
==== 3. I currently use lilo, can I replace it with grub? ====<br />
Yes you can, but AFAIK the menu.lst get your drive partition info on Arch installation and not grub installation (and same applies to <code>lilo.conf</code>). So you need to edit the menu.lst after package installation and add your boot device and kernel image configuration. That kind of problem is beyond the scope of this guide. If that's your case, first get working the the standard grub package on the current repository, and then update to this package. For more info or sample grub configs check [[GRUB]] or [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 Gentoo Handbook - Configure the bootloader].<br />
<br />
==== 4. Where can I get more information about splash images on grub? ====<br />
[http://ruslug.rutgers.edu/~mcgrof/grub-images/ GNU Grub Splashimage Howto] - General Grub bootsplash info and sample images.<br><br />
[http://ruslug.rutgers.edu/~mcgrof/grub-images/checksplash.sh checksplash.sh] - script that check if your stage2 support splashimage.<br />
<br />
==== 5. I would like to test your package, but do not know how to build one? ====<br />
Simply, download the [http://www.mundolink.net/users/mariov/arch/packages/grub/grub-0.97-1.pkg.tar.gz pre-compiled package] and install it using step 3, 4 and 5 of the Installation guide. :-)<br />
<br />
<br />
== Current Issues ==<br />
None at the moment.<br />
<br />
== TODO ==<br />
I will investigate the patch used by SuSE/Novell. It is a new modified one that allows for a greater resolution (not just 640x480) and more fancy stuff like menus. But that will means a heavy modified grub install, and thus completely sure it will not be accepted on Arch repos, and please don't ask when it will be done.<br />
<br />
<br />
== Change Log ==<br />
2005-05-16 Updated to 0.97<br><br />
2005-03-02 Added alternate PKGBUILD with reiser4 support and related grub patch.<br><br />
2005-02-27 PKGBUILD 0.96-4, Fix splashimage path issue by adding a boot symlink on boot.<br><br />
2005-02-26 Fixed some document steps.<br><br />
2005-02-04 Provided old splash image for those who like it more.<br><br />
2005-02-03 PKGBUILD 0.96-3, removed dependency on gzip. Splash is taken from $startdir instead of the uncompressed one on <code>$statdir/src</code>. Pre-compiled package provided. (FAQ question #4).<br><br />
2005-02-02 Updated to grub 0.96, rediffed patch, new splash based on tpowa's KDE 3.4 wallpaper.<br><br />
2005-01-09 Added autoreconf entry to fix compilation of new files added by patch. Update to FAQ.<br><br />
2005-01-06 First public release of PKGBUILD based on grub 0.95.<br><br />
<br />
<br />
----<br />
<br />
Hope you enjoy it.<br />
<br />
[http://bbs.archlinux.org/viewtopic.php?t=9081&highlight= Original by '''darkcoder''']<br><br />
Wikified by [[User:Romashka|Romashka]].</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Graphical_GRUB&diff=76568Graphical GRUB2009-09-26T01:40:08Z<p>UNIVAC: Moved obsoletion note up front</p>
<hr />
<div>[[Category:Boot process (English)]]<br />
[[Category:Eye candy (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{Note:This mod has since been obsoleted by a community package, [http://wiki.archlinux.org/index.php/Grub-gfx'''grub-gfx'''].}}<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|:Graphical_GRUB}}<br />
{{i18n_entry|简体中文|:Graphical_GRUB (简体中文)}}<br />
{{i18n_links_end}}<br />
== Introduction ==<br />
<br />
This is a mod to the current grub package found on Arch base repository which adds support for a splash image (a background).<br />
<br />
While the patch is not officially supported by grub developers due to their policy of only bugfixes on their grub 0.9x series, it is used by many distributions like Fedora/Red Hat, SuSE, Gentoo, MEPIS, and others. The patch I use is based on the one included by Fedora Core 3 grub srpm and rediffed to the latest vanilla grub version.<br />
<br />
After the installation is done, you will have a grub screen with the following background.<br />
http://www.mundolink.net/users/mariov/images/arch-grub-096.png<br />
<br />
<br />
Due to demand, the old splash image is optionally available for those who like it more.<br />
http://www.mundolink.net/users/mariov/images/arch-grub.png<br />
<br />
'''New:''' In addition to the standard package, a new alternate one is available for those who follow the [[Reiser4FShowto]] steps and want a grub package with both reiserfs4 and splashimage.<br />
<br />
== Pre Install Notes ==<br />
# Make a copy of your menu.lst for backup. It is not replaced by the installation steps below, unless you remove your current grub package.<br />
# We are dealing with your boot system info, so there is a small chance that things can be screw up. But I haven't got any issue.<br />
# If want to compile the package with the old splash image, or your custom splash image instead of the current one, you need to edit the PKGBUILD and change the md5sum assigned to <code>splash.xpm.gz</code>.<br />
# The alternate package with reiser4 requires '''libaal''', '''reiser4progs''', and a '''reiser4 patched kernel'''. Those are not on Arch repos, you can get them and read about all the process involved on [[Reiser4FShowto]], or grab my updated PKGBUILDs:[http://www.mundolink.net/users/mariov/arch/packages/libaal/PKGBUILD libaal], and [http://www.mundolink.net/users/mariov/arch/packages/reiser4progs/PKGBUILD reiser4progs].<br />
# Be sure not to upgrade grub via pacman after following this guide, as the version used in this guide is older than the current version available via pacman. You can set pacman to ignore any grub upgrades by editing your pacman.conf accordingly.<br />
<br />
== Installation ==<br />
'''Note:''' Reiser package not updated since reiser patch need to be rediffed.<br />
Files changed for 0.97-1: <code>PKGBUILD</code>, <code>menu.lst</code>.<br />
<br />
'''Note:''' grub-gfx can be found in the community-repo, so you just need to edit the menu.lst and add the splash file to your /boot directory.<br />
<br />
<br />
1. Grab the following files and save them on a folder on your <code>/var/abs/local</code> path:<br />
*[http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/PKGBUILD?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=text/plain PKGBUILD].<br />
* [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/menu.lst?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=text/plain menu.lst]<br />
* [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/install-grub?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=text/plain install-grub] o copiarlo desde /var/abs/base/grub/install-grub<br />
* [http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/system/grub-gfx/grub-0.97-graphics.patch?cvsroot=AUR&only_with_tag=CURRENT grub-0.97-graphics.patch]<br />
*[http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/splash.xpm.gz?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=image/x-xpixmap splash.xpm.gz]* '''Only for reiser4 support:''' grab the [http://www.mundolink.net/users/mariov/arch/packages/grub/reiser4/grub-0.96-reiser4.patch reiser4 patch]<br />
<br />
<br />
2. Build the package:<br />
# makepkg <br />
<br />
<br />
3. Install the package:<br />
# pacman -U grub-0.97-1.pkg.tar.gz <br />
<br />
<br />
4. Edit your <code>menu.lst</code> and add the following splash instruction anywhere before your OS's menu entries:<br />
splashimage /boot/grub/splash.xpm.gz<br />
For example:<br />
# general configuration:<br />
timeout 5<br />
default 0<br />
splashimage /boot/grub/splash.xpm.gz<br />
'''Important:''' Since grub 0.96-4 the splash path is <code>/boot/grub/splash.xpm.gz</code> and not <code>/grub/splash.xpm.gz</code>. Previous users need to correct the path.<br />
<br />
<p>Actually you should have: <code>splashimage /path/to/your/image.xpm{.gz} </code> relative to the grub's root<br />
partition<br/><br />
If you have separate partition for /boot:<br/><br />
<code>splashimage /grub/splash.xpm.gz</code><br/><br />
If you don't:<br/><br />
<code>splashimage /boot/grub/splash.xpm.gz</code><br/><br />
Wrong path makes grub hang with black screen and blinking cursor (without the prompt) :-(<br />
</p><br />
<br />
5. Install the new grub boot images to your <code>/boot</code> dir. Change ''x'' with your boot drive letter (ie. <code>hda</code>):<br />
# install-grub /dev/hd''x'' (or sd''x'')<br />
<br />
6. '''ONLY''' if your system dual boot '''AND''' your primary boot loader is '''NTLDR''' - remember to update your boot binary file (<code>dd if=/dev/hdx of=/linux.bin bs=512 count=1</code>) and copy the file to your NTFS boot partition. If you don't know what I'm talking, don't worry and just skip this step.<br />
<br />
== Troubleshooting ==<br />
==== Black display menu visible ====<br />
Stages probably not updated, try again <code>install-grub ''(your partition where /boot belongs, or MBR)''</code>. To check if your stage2 supports splash image, use [http://ruslug.rutgers.edu/~mcgrof/grub-images/checksplash.sh checksplash.sh] script.<br />
<br />
==== Black display, no menu, or corrupted display ====<br />
Check the splashimage instruction. If you have a separate <code>/boot</code> partition try <code>splashimage /grub/splash.xpm.gz</code>. Also check that you have a <code>splash.xpm.gz</code> in grub's dir.<br />
<br />
<br />
== FAQ ==<br />
==== 1. Can I use my custom image in grub? ====<br />
Yes, but it needs to fulfill these requisites: 640x480 resolution, 14 color xpm picture gzip compressed.<br />
<br />
==== 2. Do I need to recompile or reinstall grub when changing a splash? ====<br />
Any splash can be used at any time, and no compilation is required after this package is installed, just replace <code>splash.xpm.gz</code> with another one, or edit <code>menu.lst</code> and change the path of splashimage instruction to match the desired picture to show.<br />
<br />
==== 3. I currently use lilo, can I replace it with grub? ====<br />
Yes you can, but AFAIK the menu.lst get your drive partition info on Arch installation and not grub installation (and same applies to <code>lilo.conf</code>). So you need to edit the menu.lst after package installation and add your boot device and kernel image configuration. That kind of problem is beyond the scope of this guide. If that's your case, first get working the the standard grub package on the current repository, and then update to this package. For more info or sample grub configs check [[GRUB]] or [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 Gentoo Handbook - Configure the bootloader].<br />
<br />
==== 4. Where can I get more information about splash images on grub? ====<br />
[http://ruslug.rutgers.edu/~mcgrof/grub-images/ GNU Grub Splashimage Howto] - General Grub bootsplash info and sample images.<br><br />
[http://ruslug.rutgers.edu/~mcgrof/grub-images/checksplash.sh checksplash.sh] - script that check if your stage2 support splashimage.<br />
<br />
==== 5. I would like to test your package, but do not know how to build one? ====<br />
Simply, download the [http://www.mundolink.net/users/mariov/arch/packages/grub/grub-0.97-1.pkg.tar.gz pre-compiled package] and install it using step 3, 4 and 5 of the Installation guide. :-)<br />
<br />
<br />
== Current Issues ==<br />
None at the moment.<br />
<br />
== TODO ==<br />
I will investigate the patch used by SuSE/Novell. It is a new modified one that allows for a greater resolution (not just 640x480) and more fancy stuff like menus. But that will means a heavy modified grub install, and thus completely sure it will not be accepted on Arch repos, and please don't ask when it will be done.<br />
<br />
<br />
== Change Log ==<br />
2005-05-16 Updated to 0.97<br><br />
2005-03-02 Added alternate PKGBUILD with reiser4 support and related grub patch.<br><br />
2005-02-27 PKGBUILD 0.96-4, Fix splashimage path issue by adding a boot symlink on boot.<br><br />
2005-02-26 Fixed some document steps.<br><br />
2005-02-04 Provided old splash image for those who like it more.<br><br />
2005-02-03 PKGBUILD 0.96-3, removed dependency on gzip. Splash is taken from $startdir instead of the uncompressed one on <code>$statdir/src</code>. Pre-compiled package provided. (FAQ question #4).<br><br />
2005-02-02 Updated to grub 0.96, rediffed patch, new splash based on tpowa's KDE 3.4 wallpaper.<br><br />
2005-01-09 Added autoreconf entry to fix compilation of new files added by patch. Update to FAQ.<br><br />
2005-01-06 First public release of PKGBUILD based on grub 0.95.<br><br />
<br />
<br />
----<br />
<br />
Hope you enjoy it.<br />
<br />
[http://bbs.archlinux.org/viewtopic.php?t=9081&highlight= Original by '''darkcoder''']<br><br />
Wikified by [[User:Romashka|Romashka]].</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Firefox&diff=76565Firefox2009-09-26T00:18:24Z<p>UNIVAC: /* Why Firefox doesn't remember my login information? */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|FireFox (Česky)}}<br />
{{i18n_entry|English|Firefox}}<br />
{{i18n_entry|Italiano|Firefox_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
Firefox is an open-source graphical web browser from [http://www.mozilla.com Mozilla]. The Firefox package in Arch Linux is compiled without official branding. This means that when you start Firefox it will use a blue globe for its icon and will be named after its release series' codename. This has to be done because a distribution may use the name "Firefox" and its artwork only if there are no unofficial modifications (i.e. no custom patches).<br />
<br />
<br />
= Enable Firefox Branding =<br />
If you would like to enable branding or simply change the user agent there are a few ways to do it. You can recompile, modify the browser with add-ons, or use the advanced configuration. Please note that distributing such a version would be against the law!<br />
<br />
== Recompile ==<br />
The following procedure is for the 2.x version of Firefox. A branded version of Firefox 3.x is available via AUR [http://aur.archlinux.org/packages.php?ID=18019 here]. We will use [[ABS]] to rebuild Firefox. Make sure you have '''cvsup''' and '''wget''' installed. Now run <br />
abs<br />
If this is your first time running abs it may take a while. Subsequent runs will be much faster. Before you make any custom package you should run abs. Now perform the following:<br />
mkdir -p /var/abs/local/firefox<br />
cp /var/abs/extra/firefox/* /var/abs/local/firefox<br />
cd /var/abs/local/firefox<br />
<br />
Now use your favorite editor and open the mozconfig file. Add the following line to the end of the file:<br />
ac_add_options --enable-official-branding<br />
<br />
Save and exit, then run:<br />
md5sum mozconfig<br />
<br />
Copy the string and then open the PKGBUILD file. Now look at the source and md5sums arrays. You can match up the md5sum to the file by comparing these two. Mozconfig is second on the sources list. So we would modify the second md5sum with the string we obtained earlier.<br />
<br />
Replace this line:<br />
convert ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
with the following:<br />
convert ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
Now scroll down and look for these two lines.<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/<br />
<br />
Replace them with the following<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/ <br />
<br />
Save and exit, then run<br />
makepkg<br />
<br />
This may take some time depending on your system. Once it has created the package, remove your current version of Firefox if you have it installed.<br />
pacman -Rd firefox<br />
Then install the new version with<br />
pacman -A firefox-*.pkg.tar.gz<br />
You may also try upgrading your current Firefox with.<br />
pacman -U firefox-*.pkg.tar.gz<br />
<br />
Of course, replace * with your version number.<br />
<br />
== Add-ons ==<br />
*[https://addons.mozilla.org/firefox/2553/ CCK Wizard] - Allows you to customize every aspect of Firefox. Title bar, user agent, icons, about graphic, and a lot more. <br />
*[https://addons.mozilla.org/firefox/59/ User Agent Switcher] - Adds a menu and a toolbar button to switch the user agent of the browser.<br />
<br />
== Advanced Configuration ==<br />
Enter <code>about:config</code> in your Firefox address bar to access the advanced configuration. In the filter enter <code>useragent.extra.firefox</code>. You will see your current user-agent string; you may put whatever you want in there. If you want to make it appear as the default version of Firefox to websites enter: <code>'''Firefox/2.0.0.11'''</code>. Modify accordingly if there is a newer version.<br />
<br />
== Branding without recompilation ==<br />
To brand "Gran Paradiso" without recompiling the whole browser, you need to replace the Bon Echo icons with the official Firefox icons, and change the strings "Gran Paradiso" and "GranParadiso" in a few files. The [http://bbs.archlinux.org/viewtopic.php?id=44320 firebrand] script takes care of this (see note in bold in the initial thread post). Run it (as root) after an upgrade or installation of firefox. To revert to the Gran Paradiso brand again, simply reinstall firefox. The script will by default download the icons every time it is run. To "cache" the icons locally for later firefox upgrades, set the NEWICONSDIR variable to a suitable directory, for instance<br />
NEWICONSDIR=/usr/local/share/firebrand<br />
<br />
= Recommended Add-ons =<br />
Before you try to install add-ons, make sure that your /tmp directory was created with the right permissions. If addons won't install, <code>chmod 1777 /tmp</code> should fix it.<br />
<br />
*[https://addons.mozilla.org/firefox/1865/ Adblock Plus] - Highly effective ad and popup blocker with lots of options and a simplistic UI.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/220 FlashGot] - Download all the links, movies and audio clips of a page at the maximum speed with a single click. Very powerful, lightweight and reliable external download manager.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/722 NoScript] - The best security you can get in a web browser! Allow active content to run only from sites you trust, and protect yourself against XSS and Clickjacking attacks.<br />
*[https://addons.mozilla.org/firefox/446/ MediaPlayerConnectivity] - Allow you to launch an embedded video from a website in an external application. Good for those who have problems with media plugins.<br />
<br />
= Plugins =<br />
To find out what plugins you have installed enter <code>about:plugins</code> in the Firefox address bar.<br />
====Flash====<br />
# pacman -S flashplugin<br />
In addition you may need to install ttf-ms-fonts'' (pacman -S ttf-ms-fonts) ''for flashplayer to render text properly.<br />
Don't worry about having a 64-bit installation. The package is in the repos.<br />
<br />
====MPlayer====<br />
MPlayer's multimedia plugin is one of the most mature. This will generally cover everything you need.<br />
# pacman -S mplayer-plugin<br />
<br />
==== Gecko Media Player ====<br />
A good replacement of the now aging ''mplayer-plugin'', is [http://code.google.com/p/gecko-mediaplayer/ Gecko Media Player]. More stable combined with MPlayer 1.0RC2. ''(No more crashes with Apple Trailers.)''<br />
$ sudo pacman -S gecko-mediaplayer<br />
{{Note|Be sure to remove mplayer-plugin if it is already installed.}}<br />
<br />
====Totem-plugin====<br />
If you need a gstreamer based plugin for firefox, you can use the the totem plugin.<br />
# $pacman -S totem-plugin gvfs<br />
<br />
====Java====<br />
{{Note|each java package described here contains java as well as the fitting browser-plugin for firefox.}}<br />
# pacman -S openjdk6<br />
If you really need to do so you can also install the non-free version of java:<br />
# pacman -S jre<br />
Keep in mind that the free and non-free versions can't be installed in parallel. The free version is nearly perfect at the time of writing this and there's mostly no need anymore to install the proprietary version of java.<br />
<br />
====Citrix====<br />
''See [[Citrix]] how-to.''<br />
<br />
====Adobe Reader====<br />
Licensing issues prevent Acrobat Reader from being available in any repository. You'll only find it in the AUR.<br />
<br />
32-bit AUR package - [http://aur.archlinux.org/packages.php?ID=16980 acroread]<br />
<br />
It installs the Acrobat Reader application as well as the Firefox plugin. Note however that hardware assisted rendering is unavailable under Linux (at least using a nVidia Geforce 8600GTS with 185.18.14 driveR).<br />
<br />
'''For 64-bit installs''' the above link is unusable. It will install but be unusable. Since the application is closed-source a 64-bit version depends on Adobe. You have several options:<br />
<br />
- Either you follow [http://wiki.archlinux.org/index.php/Arch64_Install_bundled_32bit_system this link] and create a chrooted 32-bit environment that you can use for any 32-bit needs which is in line with The Arch Way and more elegant;<br />
<br />
- Or, you can simply get the 32-bit binary along with some 32-bit libraries it needs to run. You need to use [http://aur.archlinux.org/packages.php?ID=7906 bin32-acroread]. You may want to read yaourt output and figure out if you'd like extra font packages. Be advised - you cannot use the Firefox plugin this way - it will not load in the 64-bit browser. You must use [http://aur.archlinux.org/packages.php?ID=6217 nspluginwrapper] available from the AUR. Finally, be sure to run<br />
$ nspluginwrapper -v -a -i<br />
as a '''normal user'''. This checks your plugin directory and links the plugins as needed. Everything should work fine now.<br />
<br />
== Plugins are installed but not working ==<br />
If you installed the plugins like above but they are not used by firefox (you can verify this with typing about:plugins in the adressbar and hitting return.) It's usually a permission problem. Just fix those with:<br />
# chmod -R 755 /usr/lib/mozilla<br />
Then restart firefox and everything should be okay.<br />
<br />
If the above suggestion does not fix anything, and about:plugins still reports that no plugins are installed, run the following command<br />
# ln -sv /usr/lib/mozilla/plugins /usr/lib/firefox-3.0/plugins<br />
Restart firefox and about:plugins should list all of the plugins you have installed.<br />
<br />
Another common problem is that the plugin path is unset. This typical occurs on a new install, when you haven't re-logged yet after installing firefox. You can test this with the command:<br />
$ echo $MOZ_PLUGIN_PATH<br />
If it's unset, then either log out/in, or source /etc/profile.d/mozilla-common.sh in a shell and start firefox from the same shell.<br />
<br />
== Can't download plugins? ==<br />
In some cases, people were not able to download (and install) any of the firefox plugins. The solution is adding the following line in /etc/hosts<br />
64.50.236.214 releases.mozilla.org<br />
<br />
= Tips =<br />
== Enable Spell Checking ==<br />
Right click in any text entry field and add the dictionary for the language you need spell checking for. Restart firefox, and click in a text entry field again to enable spell checking.<br />
<br />
== Wheel Mouse Scroll Speed ==<br />
To modify the default values (i.e. speed-up) of the wheel mouse scroll speed, type the following into Firefox's address bar<br />
about:config<br />
<br />
Now enter the following term into the 'filter' dialog: '''mousewheel.withnokey'''<br />
<br />
*Double-click the entry entitled, '''mousewheel.withnokey.sysnumlines''' and thereby setting its value to '''True'''<br />
*Double-click the entry entitled, '''mousewheel.withnokey.numlines''' and enter the desired number of lines per movement into the box (I'm using 12 for example).<br />
<br />
You may close the about:config webpage, restart Firefox for this setting to take effect.<br />
<br />
== Speed-up Firefox using tmpfs ==<br />
If your machine has memory to spare, you can use tmpfs to cache your entire profile directory which makes Firefox ''very'' responsive and generally faster. Full list of benifits include:<br />
*Reduced disk read/writes (great if you're on an SSD)<br />
*Better user experience through heightened responsive feel<br />
*Many operations within Firefox are instantaneous (quick search, history, etc.)<br />
<br />
See the [[Speed-up Firefox using tmpfs]] wiki article for this tip/tweak.<br />
<br />
== Lighten, Speed-up Firefox / Fix fonts and controls issues ==<br />
''Also font fix for Mozilla suite''<br />
<br />
Try to add:<br />
export MOZ_DISABLE_PANGO=1<br />
<br />
to /etc/profile and logout.<br />
<br />
== Why do I get this error when I click the middle mouse button? ==<br />
! The URL is not valid and cannot be loaded.<br />
You may also get unexpected behavior like looking up a random webpage.<br />
<br />
The reason stems from the use of the middle mouse buttons in <code>UNIX</code>-like operating systems. The middle mouse button is used to paste whatever text has been highlighted/added to the clipboard. Also, there is a feature in Firefox which defaults to loading the url of the corresponding text when it is depressed. This can be disabled like so:<br />
<br />
Open the browser, and type the following into the address bar:<br />
about:config<br />
search for '''middlemouse.contentLoadURL''' and set it to false.<br />
<br />
Alternatively if you prefer the traditional scroll cursor on middle-click that is default on Windows browsers:<br />
<br />
search for '''general.autoScroll''' and set it to true.<br />
<br />
== Why my backspace doesn't work as 'Back'? -- How to fix it ==<br />
As I found [http://ubuntu.wordpress.com/2006/12/21/fix-firefox-backspace-to-take-you-to-the-previous-page/ here], this feature was removed to fix a bug. But you can get it back!<br />
<br />
Open the browser, and type the following address:<br />
about:config<br />
<br />
Search for '''browser.backspace_action''' and set it to 0 (zero).<br />
<br />
== Why Firefox doesn't remember my login information? ==<br />
<br />
It maybe cause of a corrupted cookies.sqlite file in your [http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile firefox profile] folder. In order to fix it you may just rename or remove the cookie.sqlite file.<br />
<br />
Open your terminal of choice and type the following:<br />
$ cd ~/.mozilla/firefox/xxxxxxxx.default/<br />
$ rm -f cookies.sqlite<br />
{{Note|xxxxxxxx represents a random string of 8 characters.}}<br />
<br />
Restart your firefox and see if it solved the problem.<br />
<br />
== Broken websites / input fields with dark Gtk Themes ==<br />
<br />
If you use a dark Desktop Theme, you might find some Internet pages have unreadable input & text fields (p.e. Amazon - white text on white background). This can happen because the site only sets either background or text color, and firefox takes the other one from the [[gtk]] theme.<br />
<br />
You can work around that by explicitly setting standard colours for all web pages in ~/.mozilla/firefox/.../chrome/userContent.css.<br />
<br />
This sets input fields to standard black text / white background; both can be overridden by the displayed site, so you should see them as intended. <br />
input {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
textarea {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
<br />
This will force the colours (ignore Website "wishes"):<br />
input {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
<br />
textarea {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
( You might want to pick your own ones though ;) )<br />
<br />
Alternatively, you can use an add-on like stylish (https://addons.mozilla.org/en-US/firefox/addon/2108).<br />
<br />
== Fonts ==<br />
===DPI===<br />
Modifying the following value can help improve the way fonts looks in Firefox if your DPI is below 96 DPI. Firefox by default uses 96 DPI or the system's DPI if it is a higher value. To always use your system's DPI type about:config into your address bar and into the filter type '''layout.css.dpi''' and change to '''0'''.<br />
<br />
===Font Replacement===<br />
Another way to improve how fonts look is to replace them with another. Add or create a ''[[.fonts.conf]]'' with the following.<br />
<br />
<match target="pattern" name="family" ><br />
<test name="family" qual="any" ><br />
<string>'''Helvetica'''</string><br />
</test><br />
<edit mode="assign" name="family" ><br />
<string>'''Bitstream Vera Sans'''</string><br />
</edit><br />
</match><br />
<br />
<br />
The first font name is the one we would like to replace. The second is the one we will be replacing it with.<br />
<br />
=== MIME Types ===<br />
For non gnome users firefox may not associate file types (in the "open with" part of the download menu) you may have to install libgnome so that the file association works smoothly.<br />
<code><br />
pacman -S libgnome<br />
</code><br />
<br />
=== Font Configuration ===<br />
For more information on font configuration, please read [[Xorg Font Configuration]].<br />
<br />
== Tip Articles==<br />
*[[Firefox Tips and Tweaks]]<br />
*[[Adding Firefox Search Engines As User]]<br />
*[[Firefox Widgets|Beautify the form widgets in firefox, e.g. buttons]]<br />
<br />
= Firefox Derivatives =<br />
*[http://en.wikipedia.org/wiki/Iceweasel Iceweasel] - The name of '''two''' different Firefox forks. One was a GNU project; the name of this project has since changed to [http://en.wikipedia.org/wiki/GNU_IceCat Icecat]. The [http://wiki.debian.org/Iceweasel second] is being developed by Debian and is based on 2.0. At the time of writing the [[AUR]] only has Icecat.<br />
<br />
*[http://en.wikipedia.org/wiki/GNU_IceCat GNU/IceCat] - formerly known as GNU IceWeasel, is a web browser distributed by the GNU Project. IceCat, which is made entirely of free software, is a fork of Mozilla Firefox. It is compatible with the GNU/Linux operating system and almost all of Firefox's addons. GNU/IceCat really can fully replace Firefox.<br />
<br />
*[http://getswiftfox.com/ Swiftfox] - An optimized and processor-specific build of Firefox. Currently available via AUR. It should be noted that, considering Arch Linux has ABS, you could build your own optimized build of Firefox.<br />
<br />
*[http://swiftweasel.sourceforge.net/ Swiftweasel] - Mostly like Swiftfox, but the binaries aren't under proprietary license. Some PKGBUILDs are available in AUR.<br />
<br />
= Firefox Alternatives =<br />
*[[Opera]] - A very full-featured web suite. Closed source but free (as in beer).<br />
*[http://en.wikipedia.org/wiki/Epiphany_%28browser%29 Epiphany] - GNOME's default web browser. Uses the same rendering engine as Firefox. <br />
*[http://en.wikipedia.org/wiki/Konqueror Konqueror] - KDE's default web browser. Uses the KHTML rendering engine.<br />
*[http://en.wikipedia.org/wiki/Dillo Dillo] - A very lightweight web browser.<br />
*[http://en.wikipedia.org/wiki/SeaMonkey SeaMonkey] - The continuation of the original Mozilla suite. Includes web browser, email client, etc.<br />
*[http://en.wikipedia.org/wiki/Midori_(browser) Midori] - A webkit-based GTK+ browser. Lightweight and early-development but plenty of features already.<br />
*[http://en.wikipedia.org/wiki/Arora_(web_browser) Arora] - A webkit-based Qt browser in development, very capable and fast.<br />
<br />
= External Links =<br />
*[http://www.howtocreate.co.uk/browserSpeed.html Browser Speed Comparisons] - Dated but still useful.<br />
*[http://web.glandium.org/blog/?p=97 Facts about Debian and Mozilla® Firefox] - An account of the trademark issues from the Firefox package maintainer for Debian.<br />
*[http://www.gnu.org/software/gnuzilla/ Gnuzilla and IceWeasel] - Official website for the GNU Mozilla forks.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Firefox&diff=76564Firefox2009-09-26T00:16:46Z<p>UNIVAC: /* Java */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|FireFox (Česky)}}<br />
{{i18n_entry|English|Firefox}}<br />
{{i18n_entry|Italiano|Firefox_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
Firefox is an open-source graphical web browser from [http://www.mozilla.com Mozilla]. The Firefox package in Arch Linux is compiled without official branding. This means that when you start Firefox it will use a blue globe for its icon and will be named after its release series' codename. This has to be done because a distribution may use the name "Firefox" and its artwork only if there are no unofficial modifications (i.e. no custom patches).<br />
<br />
<br />
= Enable Firefox Branding =<br />
If you would like to enable branding or simply change the user agent there are a few ways to do it. You can recompile, modify the browser with add-ons, or use the advanced configuration. Please note that distributing such a version would be against the law!<br />
<br />
== Recompile ==<br />
The following procedure is for the 2.x version of Firefox. A branded version of Firefox 3.x is available via AUR [http://aur.archlinux.org/packages.php?ID=18019 here]. We will use [[ABS]] to rebuild Firefox. Make sure you have '''cvsup''' and '''wget''' installed. Now run <br />
abs<br />
If this is your first time running abs it may take a while. Subsequent runs will be much faster. Before you make any custom package you should run abs. Now perform the following:<br />
mkdir -p /var/abs/local/firefox<br />
cp /var/abs/extra/firefox/* /var/abs/local/firefox<br />
cd /var/abs/local/firefox<br />
<br />
Now use your favorite editor and open the mozconfig file. Add the following line to the end of the file:<br />
ac_add_options --enable-official-branding<br />
<br />
Save and exit, then run:<br />
md5sum mozconfig<br />
<br />
Copy the string and then open the PKGBUILD file. Now look at the source and md5sums arrays. You can match up the md5sum to the file by comparing these two. Mozconfig is second on the sources list. So we would modify the second md5sum with the string we obtained earlier.<br />
<br />
Replace this line:<br />
convert ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
with the following:<br />
convert ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
Now scroll down and look for these two lines.<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/<br />
<br />
Replace them with the following<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/ <br />
<br />
Save and exit, then run<br />
makepkg<br />
<br />
This may take some time depending on your system. Once it has created the package, remove your current version of Firefox if you have it installed.<br />
pacman -Rd firefox<br />
Then install the new version with<br />
pacman -A firefox-*.pkg.tar.gz<br />
You may also try upgrading your current Firefox with.<br />
pacman -U firefox-*.pkg.tar.gz<br />
<br />
Of course, replace * with your version number.<br />
<br />
== Add-ons ==<br />
*[https://addons.mozilla.org/firefox/2553/ CCK Wizard] - Allows you to customize every aspect of Firefox. Title bar, user agent, icons, about graphic, and a lot more. <br />
*[https://addons.mozilla.org/firefox/59/ User Agent Switcher] - Adds a menu and a toolbar button to switch the user agent of the browser.<br />
<br />
== Advanced Configuration ==<br />
Enter <code>about:config</code> in your Firefox address bar to access the advanced configuration. In the filter enter <code>useragent.extra.firefox</code>. You will see your current user-agent string; you may put whatever you want in there. If you want to make it appear as the default version of Firefox to websites enter: <code>'''Firefox/2.0.0.11'''</code>. Modify accordingly if there is a newer version.<br />
<br />
== Branding without recompilation ==<br />
To brand "Gran Paradiso" without recompiling the whole browser, you need to replace the Bon Echo icons with the official Firefox icons, and change the strings "Gran Paradiso" and "GranParadiso" in a few files. The [http://bbs.archlinux.org/viewtopic.php?id=44320 firebrand] script takes care of this (see note in bold in the initial thread post). Run it (as root) after an upgrade or installation of firefox. To revert to the Gran Paradiso brand again, simply reinstall firefox. The script will by default download the icons every time it is run. To "cache" the icons locally for later firefox upgrades, set the NEWICONSDIR variable to a suitable directory, for instance<br />
NEWICONSDIR=/usr/local/share/firebrand<br />
<br />
= Recommended Add-ons =<br />
Before you try to install add-ons, make sure that your /tmp directory was created with the right permissions. If addons won't install, <code>chmod 1777 /tmp</code> should fix it.<br />
<br />
*[https://addons.mozilla.org/firefox/1865/ Adblock Plus] - Highly effective ad and popup blocker with lots of options and a simplistic UI.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/220 FlashGot] - Download all the links, movies and audio clips of a page at the maximum speed with a single click. Very powerful, lightweight and reliable external download manager.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/722 NoScript] - The best security you can get in a web browser! Allow active content to run only from sites you trust, and protect yourself against XSS and Clickjacking attacks.<br />
*[https://addons.mozilla.org/firefox/446/ MediaPlayerConnectivity] - Allow you to launch an embedded video from a website in an external application. Good for those who have problems with media plugins.<br />
<br />
= Plugins =<br />
To find out what plugins you have installed enter <code>about:plugins</code> in the Firefox address bar.<br />
====Flash====<br />
# pacman -S flashplugin<br />
In addition you may need to install ttf-ms-fonts'' (pacman -S ttf-ms-fonts) ''for flashplayer to render text properly.<br />
Don't worry about having a 64-bit installation. The package is in the repos.<br />
<br />
====MPlayer====<br />
MPlayer's multimedia plugin is one of the most mature. This will generally cover everything you need.<br />
# pacman -S mplayer-plugin<br />
<br />
==== Gecko Media Player ====<br />
A good replacement of the now aging ''mplayer-plugin'', is [http://code.google.com/p/gecko-mediaplayer/ Gecko Media Player]. More stable combined with MPlayer 1.0RC2. ''(No more crashes with Apple Trailers.)''<br />
$ sudo pacman -S gecko-mediaplayer<br />
{{Note|Be sure to remove mplayer-plugin if it is already installed.}}<br />
<br />
====Totem-plugin====<br />
If you need a gstreamer based plugin for firefox, you can use the the totem plugin.<br />
# $pacman -S totem-plugin gvfs<br />
<br />
====Java====<br />
{{Note|each java package described here contains java as well as the fitting browser-plugin for firefox.}}<br />
# pacman -S openjdk6<br />
If you really need to do so you can also install the non-free version of java:<br />
# pacman -S jre<br />
Keep in mind that the free and non-free versions can't be installed in parallel. The free version is nearly perfect at the time of writing this and there's mostly no need anymore to install the proprietary version of java.<br />
<br />
====Citrix====<br />
''See [[Citrix]] how-to.''<br />
<br />
====Adobe Reader====<br />
Licensing issues prevent Acrobat Reader from being available in any repository. You'll only find it in the AUR.<br />
<br />
32-bit AUR package - [http://aur.archlinux.org/packages.php?ID=16980 acroread]<br />
<br />
It installs the Acrobat Reader application as well as the Firefox plugin. Note however that hardware assisted rendering is unavailable under Linux (at least using a nVidia Geforce 8600GTS with 185.18.14 driveR).<br />
<br />
'''For 64-bit installs''' the above link is unusable. It will install but be unusable. Since the application is closed-source a 64-bit version depends on Adobe. You have several options:<br />
<br />
- Either you follow [http://wiki.archlinux.org/index.php/Arch64_Install_bundled_32bit_system this link] and create a chrooted 32-bit environment that you can use for any 32-bit needs which is in line with The Arch Way and more elegant;<br />
<br />
- Or, you can simply get the 32-bit binary along with some 32-bit libraries it needs to run. You need to use [http://aur.archlinux.org/packages.php?ID=7906 bin32-acroread]. You may want to read yaourt output and figure out if you'd like extra font packages. Be advised - you cannot use the Firefox plugin this way - it will not load in the 64-bit browser. You must use [http://aur.archlinux.org/packages.php?ID=6217 nspluginwrapper] available from the AUR. Finally, be sure to run<br />
$ nspluginwrapper -v -a -i<br />
as a '''normal user'''. This checks your plugin directory and links the plugins as needed. Everything should work fine now.<br />
<br />
== Plugins are installed but not working ==<br />
If you installed the plugins like above but they are not used by firefox (you can verify this with typing about:plugins in the adressbar and hitting return.) It's usually a permission problem. Just fix those with:<br />
# chmod -R 755 /usr/lib/mozilla<br />
Then restart firefox and everything should be okay.<br />
<br />
If the above suggestion does not fix anything, and about:plugins still reports that no plugins are installed, run the following command<br />
# ln -sv /usr/lib/mozilla/plugins /usr/lib/firefox-3.0/plugins<br />
Restart firefox and about:plugins should list all of the plugins you have installed.<br />
<br />
Another common problem is that the plugin path is unset. This typical occurs on a new install, when you haven't re-logged yet after installing firefox. You can test this with the command:<br />
$ echo $MOZ_PLUGIN_PATH<br />
If it's unset, then either log out/in, or source /etc/profile.d/mozilla-common.sh in a shell and start firefox from the same shell.<br />
<br />
== Can't download plugins? ==<br />
In some cases, people were not able to download (and install) any of the firefox plugins. The solution is adding the following line in /etc/hosts<br />
64.50.236.214 releases.mozilla.org<br />
<br />
= Tips =<br />
== Enable Spell Checking ==<br />
Right click in any text entry field and add the dictionary for the language you need spell checking for. Restart firefox, and click in a text entry field again to enable spell checking.<br />
<br />
== Wheel Mouse Scroll Speed ==<br />
To modify the default values (i.e. speed-up) of the wheel mouse scroll speed, type the following into Firefox's address bar<br />
about:config<br />
<br />
Now enter the following term into the 'filter' dialog: '''mousewheel.withnokey'''<br />
<br />
*Double-click the entry entitled, '''mousewheel.withnokey.sysnumlines''' and thereby setting its value to '''True'''<br />
*Double-click the entry entitled, '''mousewheel.withnokey.numlines''' and enter the desired number of lines per movement into the box (I'm using 12 for example).<br />
<br />
You may close the about:config webpage, restart Firefox for this setting to take effect.<br />
<br />
== Speed-up Firefox using tmpfs ==<br />
If your machine has memory to spare, you can use tmpfs to cache your entire profile directory which makes Firefox ''very'' responsive and generally faster. Full list of benifits include:<br />
*Reduced disk read/writes (great if you're on an SSD)<br />
*Better user experience through heightened responsive feel<br />
*Many operations within Firefox are instantaneous (quick search, history, etc.)<br />
<br />
See the [[Speed-up Firefox using tmpfs]] wiki article for this tip/tweak.<br />
<br />
== Lighten, Speed-up Firefox / Fix fonts and controls issues ==<br />
''Also font fix for Mozilla suite''<br />
<br />
Try to add:<br />
export MOZ_DISABLE_PANGO=1<br />
<br />
to /etc/profile and logout.<br />
<br />
== Why do I get this error when I click the middle mouse button? ==<br />
! The URL is not valid and cannot be loaded.<br />
You may also get unexpected behavior like looking up a random webpage.<br />
<br />
The reason stems from the use of the middle mouse buttons in <code>UNIX</code>-like operating systems. The middle mouse button is used to paste whatever text has been highlighted/added to the clipboard. Also, there is a feature in Firefox which defaults to loading the url of the corresponding text when it is depressed. This can be disabled like so:<br />
<br />
Open the browser, and type the following into the address bar:<br />
about:config<br />
search for '''middlemouse.contentLoadURL''' and set it to false.<br />
<br />
Alternatively if you prefer the traditional scroll cursor on middle-click that is default on Windows browsers:<br />
<br />
search for '''general.autoScroll''' and set it to true.<br />
<br />
== Why my backspace doesn't work as 'Back'? -- How to fix it ==<br />
As I found [http://ubuntu.wordpress.com/2006/12/21/fix-firefox-backspace-to-take-you-to-the-previous-page/ here], this feature was removed to fix a bug. But you can get it back!<br />
<br />
Open the browser, and type the following address:<br />
about:config<br />
<br />
Search for '''browser.backspace_action''' and set it to 0 (zero).<br />
<br />
== Why Firefox doesn't remember my login information? ==<br />
<br />
It maybe cause of a corrupted cookies.sqlite file in your [http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile firefox profile] folder. In order to fix it you may just rename or remove the cookie.sqlite file.<br />
<br />
Open your terminal of choice and type the following:<br />
$ cd ~/.mozilla/firefox/xxxxxxxx.default/<br />
$ rm -f cookies.sqlite<br />
'''Note:''' xxxxxxxx represents a random string of 8 characters.<br />
<br />
Restart your firefox and see if it solved the problem.<br />
<br />
== Broken websites / input fields with dark Gtk Themes ==<br />
<br />
If you use a dark Desktop Theme, you might find some Internet pages have unreadable input & text fields (p.e. Amazon - white text on white background). This can happen because the site only sets either background or text color, and firefox takes the other one from the [[gtk]] theme.<br />
<br />
You can work around that by explicitly setting standard colours for all web pages in ~/.mozilla/firefox/.../chrome/userContent.css.<br />
<br />
This sets input fields to standard black text / white background; both can be overridden by the displayed site, so you should see them as intended. <br />
input {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
textarea {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
<br />
This will force the colours (ignore Website "wishes"):<br />
input {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
<br />
textarea {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
( You might want to pick your own ones though ;) )<br />
<br />
Alternatively, you can use an add-on like stylish (https://addons.mozilla.org/en-US/firefox/addon/2108).<br />
<br />
== Fonts ==<br />
===DPI===<br />
Modifying the following value can help improve the way fonts looks in Firefox if your DPI is below 96 DPI. Firefox by default uses 96 DPI or the system's DPI if it is a higher value. To always use your system's DPI type about:config into your address bar and into the filter type '''layout.css.dpi''' and change to '''0'''.<br />
<br />
===Font Replacement===<br />
Another way to improve how fonts look is to replace them with another. Add or create a ''[[.fonts.conf]]'' with the following.<br />
<br />
<match target="pattern" name="family" ><br />
<test name="family" qual="any" ><br />
<string>'''Helvetica'''</string><br />
</test><br />
<edit mode="assign" name="family" ><br />
<string>'''Bitstream Vera Sans'''</string><br />
</edit><br />
</match><br />
<br />
<br />
The first font name is the one we would like to replace. The second is the one we will be replacing it with.<br />
<br />
=== MIME Types ===<br />
For non gnome users firefox may not associate file types (in the "open with" part of the download menu) you may have to install libgnome so that the file association works smoothly.<br />
<code><br />
pacman -S libgnome<br />
</code><br />
<br />
=== Font Configuration ===<br />
For more information on font configuration, please read [[Xorg Font Configuration]].<br />
<br />
== Tip Articles==<br />
*[[Firefox Tips and Tweaks]]<br />
*[[Adding Firefox Search Engines As User]]<br />
*[[Firefox Widgets|Beautify the form widgets in firefox, e.g. buttons]]<br />
<br />
= Firefox Derivatives =<br />
*[http://en.wikipedia.org/wiki/Iceweasel Iceweasel] - The name of '''two''' different Firefox forks. One was a GNU project; the name of this project has since changed to [http://en.wikipedia.org/wiki/GNU_IceCat Icecat]. The [http://wiki.debian.org/Iceweasel second] is being developed by Debian and is based on 2.0. At the time of writing the [[AUR]] only has Icecat.<br />
<br />
*[http://en.wikipedia.org/wiki/GNU_IceCat GNU/IceCat] - formerly known as GNU IceWeasel, is a web browser distributed by the GNU Project. IceCat, which is made entirely of free software, is a fork of Mozilla Firefox. It is compatible with the GNU/Linux operating system and almost all of Firefox's addons. GNU/IceCat really can fully replace Firefox.<br />
<br />
*[http://getswiftfox.com/ Swiftfox] - An optimized and processor-specific build of Firefox. Currently available via AUR. It should be noted that, considering Arch Linux has ABS, you could build your own optimized build of Firefox.<br />
<br />
*[http://swiftweasel.sourceforge.net/ Swiftweasel] - Mostly like Swiftfox, but the binaries aren't under proprietary license. Some PKGBUILDs are available in AUR.<br />
<br />
= Firefox Alternatives =<br />
*[[Opera]] - A very full-featured web suite. Closed source but free (as in beer).<br />
*[http://en.wikipedia.org/wiki/Epiphany_%28browser%29 Epiphany] - GNOME's default web browser. Uses the same rendering engine as Firefox. <br />
*[http://en.wikipedia.org/wiki/Konqueror Konqueror] - KDE's default web browser. Uses the KHTML rendering engine.<br />
*[http://en.wikipedia.org/wiki/Dillo Dillo] - A very lightweight web browser.<br />
*[http://en.wikipedia.org/wiki/SeaMonkey SeaMonkey] - The continuation of the original Mozilla suite. Includes web browser, email client, etc.<br />
*[http://en.wikipedia.org/wiki/Midori_(browser) Midori] - A webkit-based GTK+ browser. Lightweight and early-development but plenty of features already.<br />
*[http://en.wikipedia.org/wiki/Arora_(web_browser) Arora] - A webkit-based Qt browser in development, very capable and fast.<br />
<br />
= External Links =<br />
*[http://www.howtocreate.co.uk/browserSpeed.html Browser Speed Comparisons] - Dated but still useful.<br />
*[http://web.glandium.org/blog/?p=97 Facts about Debian and Mozilla® Firefox] - An account of the trademark issues from the Firefox package maintainer for Debian.<br />
*[http://www.gnu.org/software/gnuzilla/ Gnuzilla and IceWeasel] - Official website for the GNU Mozilla forks.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Firefox&diff=76563Firefox2009-09-26T00:16:27Z<p>UNIVAC: /* Java */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|FireFox (Česky)}}<br />
{{i18n_entry|English|Firefox}}<br />
{{i18n_entry|Italiano|Firefox_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
Firefox is an open-source graphical web browser from [http://www.mozilla.com Mozilla]. The Firefox package in Arch Linux is compiled without official branding. This means that when you start Firefox it will use a blue globe for its icon and will be named after its release series' codename. This has to be done because a distribution may use the name "Firefox" and its artwork only if there are no unofficial modifications (i.e. no custom patches).<br />
<br />
<br />
= Enable Firefox Branding =<br />
If you would like to enable branding or simply change the user agent there are a few ways to do it. You can recompile, modify the browser with add-ons, or use the advanced configuration. Please note that distributing such a version would be against the law!<br />
<br />
== Recompile ==<br />
The following procedure is for the 2.x version of Firefox. A branded version of Firefox 3.x is available via AUR [http://aur.archlinux.org/packages.php?ID=18019 here]. We will use [[ABS]] to rebuild Firefox. Make sure you have '''cvsup''' and '''wget''' installed. Now run <br />
abs<br />
If this is your first time running abs it may take a while. Subsequent runs will be much faster. Before you make any custom package you should run abs. Now perform the following:<br />
mkdir -p /var/abs/local/firefox<br />
cp /var/abs/extra/firefox/* /var/abs/local/firefox<br />
cd /var/abs/local/firefox<br />
<br />
Now use your favorite editor and open the mozconfig file. Add the following line to the end of the file:<br />
ac_add_options --enable-official-branding<br />
<br />
Save and exit, then run:<br />
md5sum mozconfig<br />
<br />
Copy the string and then open the PKGBUILD file. Now look at the source and md5sums arrays. You can match up the md5sum to the file by comparing these two. Mozconfig is second on the sources list. So we would modify the second md5sum with the string we obtained earlier.<br />
<br />
Replace this line:<br />
convert ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
with the following:<br />
convert ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
Now scroll down and look for these two lines.<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/<br />
<br />
Replace them with the following<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/ <br />
<br />
Save and exit, then run<br />
makepkg<br />
<br />
This may take some time depending on your system. Once it has created the package, remove your current version of Firefox if you have it installed.<br />
pacman -Rd firefox<br />
Then install the new version with<br />
pacman -A firefox-*.pkg.tar.gz<br />
You may also try upgrading your current Firefox with.<br />
pacman -U firefox-*.pkg.tar.gz<br />
<br />
Of course, replace * with your version number.<br />
<br />
== Add-ons ==<br />
*[https://addons.mozilla.org/firefox/2553/ CCK Wizard] - Allows you to customize every aspect of Firefox. Title bar, user agent, icons, about graphic, and a lot more. <br />
*[https://addons.mozilla.org/firefox/59/ User Agent Switcher] - Adds a menu and a toolbar button to switch the user agent of the browser.<br />
<br />
== Advanced Configuration ==<br />
Enter <code>about:config</code> in your Firefox address bar to access the advanced configuration. In the filter enter <code>useragent.extra.firefox</code>. You will see your current user-agent string; you may put whatever you want in there. If you want to make it appear as the default version of Firefox to websites enter: <code>'''Firefox/2.0.0.11'''</code>. Modify accordingly if there is a newer version.<br />
<br />
== Branding without recompilation ==<br />
To brand "Gran Paradiso" without recompiling the whole browser, you need to replace the Bon Echo icons with the official Firefox icons, and change the strings "Gran Paradiso" and "GranParadiso" in a few files. The [http://bbs.archlinux.org/viewtopic.php?id=44320 firebrand] script takes care of this (see note in bold in the initial thread post). Run it (as root) after an upgrade or installation of firefox. To revert to the Gran Paradiso brand again, simply reinstall firefox. The script will by default download the icons every time it is run. To "cache" the icons locally for later firefox upgrades, set the NEWICONSDIR variable to a suitable directory, for instance<br />
NEWICONSDIR=/usr/local/share/firebrand<br />
<br />
= Recommended Add-ons =<br />
Before you try to install add-ons, make sure that your /tmp directory was created with the right permissions. If addons won't install, <code>chmod 1777 /tmp</code> should fix it.<br />
<br />
*[https://addons.mozilla.org/firefox/1865/ Adblock Plus] - Highly effective ad and popup blocker with lots of options and a simplistic UI.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/220 FlashGot] - Download all the links, movies and audio clips of a page at the maximum speed with a single click. Very powerful, lightweight and reliable external download manager.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/722 NoScript] - The best security you can get in a web browser! Allow active content to run only from sites you trust, and protect yourself against XSS and Clickjacking attacks.<br />
*[https://addons.mozilla.org/firefox/446/ MediaPlayerConnectivity] - Allow you to launch an embedded video from a website in an external application. Good for those who have problems with media plugins.<br />
<br />
= Plugins =<br />
To find out what plugins you have installed enter <code>about:plugins</code> in the Firefox address bar.<br />
====Flash====<br />
# pacman -S flashplugin<br />
In addition you may need to install ttf-ms-fonts'' (pacman -S ttf-ms-fonts) ''for flashplayer to render text properly.<br />
Don't worry about having a 64-bit installation. The package is in the repos.<br />
<br />
====MPlayer====<br />
MPlayer's multimedia plugin is one of the most mature. This will generally cover everything you need.<br />
# pacman -S mplayer-plugin<br />
<br />
==== Gecko Media Player ====<br />
A good replacement of the now aging ''mplayer-plugin'', is [http://code.google.com/p/gecko-mediaplayer/ Gecko Media Player]. More stable combined with MPlayer 1.0RC2. ''(No more crashes with Apple Trailers.)''<br />
$ sudo pacman -S gecko-mediaplayer<br />
{{Note|Be sure to remove mplayer-plugin if it is already installed.}}<br />
<br />
====Totem-plugin====<br />
If you need a gstreamer based plugin for firefox, you can use the the totem plugin.<br />
# $pacman -S totem-plugin gvfs<br />
<br />
====Java====<br />
{{Hint|each java package described here contains java as well as the fitting browser-plugin for firefox.}}<br />
# pacman -S openjdk6<br />
If you really need to do so you can also install the non-free version of java:<br />
# pacman -S jre<br />
Keep in mind that the free and non-free versions can't be installed in parallel. The free version is nearly perfect at the time of writing this and there's mostly no need anymore to install the proprietary version of java.<br />
<br />
====Citrix====<br />
''See [[Citrix]] how-to.''<br />
<br />
====Adobe Reader====<br />
Licensing issues prevent Acrobat Reader from being available in any repository. You'll only find it in the AUR.<br />
<br />
32-bit AUR package - [http://aur.archlinux.org/packages.php?ID=16980 acroread]<br />
<br />
It installs the Acrobat Reader application as well as the Firefox plugin. Note however that hardware assisted rendering is unavailable under Linux (at least using a nVidia Geforce 8600GTS with 185.18.14 driveR).<br />
<br />
'''For 64-bit installs''' the above link is unusable. It will install but be unusable. Since the application is closed-source a 64-bit version depends on Adobe. You have several options:<br />
<br />
- Either you follow [http://wiki.archlinux.org/index.php/Arch64_Install_bundled_32bit_system this link] and create a chrooted 32-bit environment that you can use for any 32-bit needs which is in line with The Arch Way and more elegant;<br />
<br />
- Or, you can simply get the 32-bit binary along with some 32-bit libraries it needs to run. You need to use [http://aur.archlinux.org/packages.php?ID=7906 bin32-acroread]. You may want to read yaourt output and figure out if you'd like extra font packages. Be advised - you cannot use the Firefox plugin this way - it will not load in the 64-bit browser. You must use [http://aur.archlinux.org/packages.php?ID=6217 nspluginwrapper] available from the AUR. Finally, be sure to run<br />
$ nspluginwrapper -v -a -i<br />
as a '''normal user'''. This checks your plugin directory and links the plugins as needed. Everything should work fine now.<br />
<br />
== Plugins are installed but not working ==<br />
If you installed the plugins like above but they are not used by firefox (you can verify this with typing about:plugins in the adressbar and hitting return.) It's usually a permission problem. Just fix those with:<br />
# chmod -R 755 /usr/lib/mozilla<br />
Then restart firefox and everything should be okay.<br />
<br />
If the above suggestion does not fix anything, and about:plugins still reports that no plugins are installed, run the following command<br />
# ln -sv /usr/lib/mozilla/plugins /usr/lib/firefox-3.0/plugins<br />
Restart firefox and about:plugins should list all of the plugins you have installed.<br />
<br />
Another common problem is that the plugin path is unset. This typical occurs on a new install, when you haven't re-logged yet after installing firefox. You can test this with the command:<br />
$ echo $MOZ_PLUGIN_PATH<br />
If it's unset, then either log out/in, or source /etc/profile.d/mozilla-common.sh in a shell and start firefox from the same shell.<br />
<br />
== Can't download plugins? ==<br />
In some cases, people were not able to download (and install) any of the firefox plugins. The solution is adding the following line in /etc/hosts<br />
64.50.236.214 releases.mozilla.org<br />
<br />
= Tips =<br />
== Enable Spell Checking ==<br />
Right click in any text entry field and add the dictionary for the language you need spell checking for. Restart firefox, and click in a text entry field again to enable spell checking.<br />
<br />
== Wheel Mouse Scroll Speed ==<br />
To modify the default values (i.e. speed-up) of the wheel mouse scroll speed, type the following into Firefox's address bar<br />
about:config<br />
<br />
Now enter the following term into the 'filter' dialog: '''mousewheel.withnokey'''<br />
<br />
*Double-click the entry entitled, '''mousewheel.withnokey.sysnumlines''' and thereby setting its value to '''True'''<br />
*Double-click the entry entitled, '''mousewheel.withnokey.numlines''' and enter the desired number of lines per movement into the box (I'm using 12 for example).<br />
<br />
You may close the about:config webpage, restart Firefox for this setting to take effect.<br />
<br />
== Speed-up Firefox using tmpfs ==<br />
If your machine has memory to spare, you can use tmpfs to cache your entire profile directory which makes Firefox ''very'' responsive and generally faster. Full list of benifits include:<br />
*Reduced disk read/writes (great if you're on an SSD)<br />
*Better user experience through heightened responsive feel<br />
*Many operations within Firefox are instantaneous (quick search, history, etc.)<br />
<br />
See the [[Speed-up Firefox using tmpfs]] wiki article for this tip/tweak.<br />
<br />
== Lighten, Speed-up Firefox / Fix fonts and controls issues ==<br />
''Also font fix for Mozilla suite''<br />
<br />
Try to add:<br />
export MOZ_DISABLE_PANGO=1<br />
<br />
to /etc/profile and logout.<br />
<br />
== Why do I get this error when I click the middle mouse button? ==<br />
! The URL is not valid and cannot be loaded.<br />
You may also get unexpected behavior like looking up a random webpage.<br />
<br />
The reason stems from the use of the middle mouse buttons in <code>UNIX</code>-like operating systems. The middle mouse button is used to paste whatever text has been highlighted/added to the clipboard. Also, there is a feature in Firefox which defaults to loading the url of the corresponding text when it is depressed. This can be disabled like so:<br />
<br />
Open the browser, and type the following into the address bar:<br />
about:config<br />
search for '''middlemouse.contentLoadURL''' and set it to false.<br />
<br />
Alternatively if you prefer the traditional scroll cursor on middle-click that is default on Windows browsers:<br />
<br />
search for '''general.autoScroll''' and set it to true.<br />
<br />
== Why my backspace doesn't work as 'Back'? -- How to fix it ==<br />
As I found [http://ubuntu.wordpress.com/2006/12/21/fix-firefox-backspace-to-take-you-to-the-previous-page/ here], this feature was removed to fix a bug. But you can get it back!<br />
<br />
Open the browser, and type the following address:<br />
about:config<br />
<br />
Search for '''browser.backspace_action''' and set it to 0 (zero).<br />
<br />
== Why Firefox doesn't remember my login information? ==<br />
<br />
It maybe cause of a corrupted cookies.sqlite file in your [http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile firefox profile] folder. In order to fix it you may just rename or remove the cookie.sqlite file.<br />
<br />
Open your terminal of choice and type the following:<br />
$ cd ~/.mozilla/firefox/xxxxxxxx.default/<br />
$ rm -f cookies.sqlite<br />
'''Note:''' xxxxxxxx represents a random string of 8 characters.<br />
<br />
Restart your firefox and see if it solved the problem.<br />
<br />
== Broken websites / input fields with dark Gtk Themes ==<br />
<br />
If you use a dark Desktop Theme, you might find some Internet pages have unreadable input & text fields (p.e. Amazon - white text on white background). This can happen because the site only sets either background or text color, and firefox takes the other one from the [[gtk]] theme.<br />
<br />
You can work around that by explicitly setting standard colours for all web pages in ~/.mozilla/firefox/.../chrome/userContent.css.<br />
<br />
This sets input fields to standard black text / white background; both can be overridden by the displayed site, so you should see them as intended. <br />
input {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
textarea {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
<br />
This will force the colours (ignore Website "wishes"):<br />
input {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
<br />
textarea {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
( You might want to pick your own ones though ;) )<br />
<br />
Alternatively, you can use an add-on like stylish (https://addons.mozilla.org/en-US/firefox/addon/2108).<br />
<br />
== Fonts ==<br />
===DPI===<br />
Modifying the following value can help improve the way fonts looks in Firefox if your DPI is below 96 DPI. Firefox by default uses 96 DPI or the system's DPI if it is a higher value. To always use your system's DPI type about:config into your address bar and into the filter type '''layout.css.dpi''' and change to '''0'''.<br />
<br />
===Font Replacement===<br />
Another way to improve how fonts look is to replace them with another. Add or create a ''[[.fonts.conf]]'' with the following.<br />
<br />
<match target="pattern" name="family" ><br />
<test name="family" qual="any" ><br />
<string>'''Helvetica'''</string><br />
</test><br />
<edit mode="assign" name="family" ><br />
<string>'''Bitstream Vera Sans'''</string><br />
</edit><br />
</match><br />
<br />
<br />
The first font name is the one we would like to replace. The second is the one we will be replacing it with.<br />
<br />
=== MIME Types ===<br />
For non gnome users firefox may not associate file types (in the "open with" part of the download menu) you may have to install libgnome so that the file association works smoothly.<br />
<code><br />
pacman -S libgnome<br />
</code><br />
<br />
=== Font Configuration ===<br />
For more information on font configuration, please read [[Xorg Font Configuration]].<br />
<br />
== Tip Articles==<br />
*[[Firefox Tips and Tweaks]]<br />
*[[Adding Firefox Search Engines As User]]<br />
*[[Firefox Widgets|Beautify the form widgets in firefox, e.g. buttons]]<br />
<br />
= Firefox Derivatives =<br />
*[http://en.wikipedia.org/wiki/Iceweasel Iceweasel] - The name of '''two''' different Firefox forks. One was a GNU project; the name of this project has since changed to [http://en.wikipedia.org/wiki/GNU_IceCat Icecat]. The [http://wiki.debian.org/Iceweasel second] is being developed by Debian and is based on 2.0. At the time of writing the [[AUR]] only has Icecat.<br />
<br />
*[http://en.wikipedia.org/wiki/GNU_IceCat GNU/IceCat] - formerly known as GNU IceWeasel, is a web browser distributed by the GNU Project. IceCat, which is made entirely of free software, is a fork of Mozilla Firefox. It is compatible with the GNU/Linux operating system and almost all of Firefox's addons. GNU/IceCat really can fully replace Firefox.<br />
<br />
*[http://getswiftfox.com/ Swiftfox] - An optimized and processor-specific build of Firefox. Currently available via AUR. It should be noted that, considering Arch Linux has ABS, you could build your own optimized build of Firefox.<br />
<br />
*[http://swiftweasel.sourceforge.net/ Swiftweasel] - Mostly like Swiftfox, but the binaries aren't under proprietary license. Some PKGBUILDs are available in AUR.<br />
<br />
= Firefox Alternatives =<br />
*[[Opera]] - A very full-featured web suite. Closed source but free (as in beer).<br />
*[http://en.wikipedia.org/wiki/Epiphany_%28browser%29 Epiphany] - GNOME's default web browser. Uses the same rendering engine as Firefox. <br />
*[http://en.wikipedia.org/wiki/Konqueror Konqueror] - KDE's default web browser. Uses the KHTML rendering engine.<br />
*[http://en.wikipedia.org/wiki/Dillo Dillo] - A very lightweight web browser.<br />
*[http://en.wikipedia.org/wiki/SeaMonkey SeaMonkey] - The continuation of the original Mozilla suite. Includes web browser, email client, etc.<br />
*[http://en.wikipedia.org/wiki/Midori_(browser) Midori] - A webkit-based GTK+ browser. Lightweight and early-development but plenty of features already.<br />
*[http://en.wikipedia.org/wiki/Arora_(web_browser) Arora] - A webkit-based Qt browser in development, very capable and fast.<br />
<br />
= External Links =<br />
*[http://www.howtocreate.co.uk/browserSpeed.html Browser Speed Comparisons] - Dated but still useful.<br />
*[http://web.glandium.org/blog/?p=97 Facts about Debian and Mozilla® Firefox] - An account of the trademark issues from the Firefox package maintainer for Debian.<br />
*[http://www.gnu.org/software/gnuzilla/ Gnuzilla and IceWeasel] - Official website for the GNU Mozilla forks.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Firefox&diff=76562Firefox2009-09-26T00:15:54Z<p>UNIVAC: /* Gecko Media Player */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|FireFox (Česky)}}<br />
{{i18n_entry|English|Firefox}}<br />
{{i18n_entry|Italiano|Firefox_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
Firefox is an open-source graphical web browser from [http://www.mozilla.com Mozilla]. The Firefox package in Arch Linux is compiled without official branding. This means that when you start Firefox it will use a blue globe for its icon and will be named after its release series' codename. This has to be done because a distribution may use the name "Firefox" and its artwork only if there are no unofficial modifications (i.e. no custom patches).<br />
<br />
<br />
= Enable Firefox Branding =<br />
If you would like to enable branding or simply change the user agent there are a few ways to do it. You can recompile, modify the browser with add-ons, or use the advanced configuration. Please note that distributing such a version would be against the law!<br />
<br />
== Recompile ==<br />
The following procedure is for the 2.x version of Firefox. A branded version of Firefox 3.x is available via AUR [http://aur.archlinux.org/packages.php?ID=18019 here]. We will use [[ABS]] to rebuild Firefox. Make sure you have '''cvsup''' and '''wget''' installed. Now run <br />
abs<br />
If this is your first time running abs it may take a while. Subsequent runs will be much faster. Before you make any custom package you should run abs. Now perform the following:<br />
mkdir -p /var/abs/local/firefox<br />
cp /var/abs/extra/firefox/* /var/abs/local/firefox<br />
cd /var/abs/local/firefox<br />
<br />
Now use your favorite editor and open the mozconfig file. Add the following line to the end of the file:<br />
ac_add_options --enable-official-branding<br />
<br />
Save and exit, then run:<br />
md5sum mozconfig<br />
<br />
Copy the string and then open the PKGBUILD file. Now look at the source and md5sums arrays. You can match up the md5sum to the file by comparing these two. Mozconfig is second on the sources list. So we would modify the second md5sum with the string we obtained earlier.<br />
<br />
Replace this line:<br />
convert ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
with the following:<br />
convert ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
Now scroll down and look for these two lines.<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/<br />
<br />
Replace them with the following<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/ <br />
<br />
Save and exit, then run<br />
makepkg<br />
<br />
This may take some time depending on your system. Once it has created the package, remove your current version of Firefox if you have it installed.<br />
pacman -Rd firefox<br />
Then install the new version with<br />
pacman -A firefox-*.pkg.tar.gz<br />
You may also try upgrading your current Firefox with.<br />
pacman -U firefox-*.pkg.tar.gz<br />
<br />
Of course, replace * with your version number.<br />
<br />
== Add-ons ==<br />
*[https://addons.mozilla.org/firefox/2553/ CCK Wizard] - Allows you to customize every aspect of Firefox. Title bar, user agent, icons, about graphic, and a lot more. <br />
*[https://addons.mozilla.org/firefox/59/ User Agent Switcher] - Adds a menu and a toolbar button to switch the user agent of the browser.<br />
<br />
== Advanced Configuration ==<br />
Enter <code>about:config</code> in your Firefox address bar to access the advanced configuration. In the filter enter <code>useragent.extra.firefox</code>. You will see your current user-agent string; you may put whatever you want in there. If you want to make it appear as the default version of Firefox to websites enter: <code>'''Firefox/2.0.0.11'''</code>. Modify accordingly if there is a newer version.<br />
<br />
== Branding without recompilation ==<br />
To brand "Gran Paradiso" without recompiling the whole browser, you need to replace the Bon Echo icons with the official Firefox icons, and change the strings "Gran Paradiso" and "GranParadiso" in a few files. The [http://bbs.archlinux.org/viewtopic.php?id=44320 firebrand] script takes care of this (see note in bold in the initial thread post). Run it (as root) after an upgrade or installation of firefox. To revert to the Gran Paradiso brand again, simply reinstall firefox. The script will by default download the icons every time it is run. To "cache" the icons locally for later firefox upgrades, set the NEWICONSDIR variable to a suitable directory, for instance<br />
NEWICONSDIR=/usr/local/share/firebrand<br />
<br />
= Recommended Add-ons =<br />
Before you try to install add-ons, make sure that your /tmp directory was created with the right permissions. If addons won't install, <code>chmod 1777 /tmp</code> should fix it.<br />
<br />
*[https://addons.mozilla.org/firefox/1865/ Adblock Plus] - Highly effective ad and popup blocker with lots of options and a simplistic UI.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/220 FlashGot] - Download all the links, movies and audio clips of a page at the maximum speed with a single click. Very powerful, lightweight and reliable external download manager.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/722 NoScript] - The best security you can get in a web browser! Allow active content to run only from sites you trust, and protect yourself against XSS and Clickjacking attacks.<br />
*[https://addons.mozilla.org/firefox/446/ MediaPlayerConnectivity] - Allow you to launch an embedded video from a website in an external application. Good for those who have problems with media plugins.<br />
<br />
= Plugins =<br />
To find out what plugins you have installed enter <code>about:plugins</code> in the Firefox address bar.<br />
====Flash====<br />
# pacman -S flashplugin<br />
In addition you may need to install ttf-ms-fonts'' (pacman -S ttf-ms-fonts) ''for flashplayer to render text properly.<br />
Don't worry about having a 64-bit installation. The package is in the repos.<br />
<br />
====MPlayer====<br />
MPlayer's multimedia plugin is one of the most mature. This will generally cover everything you need.<br />
# pacman -S mplayer-plugin<br />
<br />
==== Gecko Media Player ====<br />
A good replacement of the now aging ''mplayer-plugin'', is [http://code.google.com/p/gecko-mediaplayer/ Gecko Media Player]. More stable combined with MPlayer 1.0RC2. ''(No more crashes with Apple Trailers.)''<br />
$ sudo pacman -S gecko-mediaplayer<br />
{{Note|Be sure to remove mplayer-plugin if it is already installed.}}<br />
<br />
====Totem-plugin====<br />
If you need a gstreamer based plugin for firefox, you can use the the totem plugin.<br />
# $pacman -S totem-plugin gvfs<br />
<br />
====Java====<br />
''('''Hint:''' each java package described here contains java as well as the fitting browser-plugin for firefox.)''<br />
# pacman -S openjdk6<br />
If you really need to do so you can also install the non-free version of java:<br />
# pacman -S jre<br />
Keep in mind that the free and non-free versions can't be installed in parallel. The free version is nearly perfect at the time of writing this and there's mostly no need anymore to install the proprietary version of java.<br />
<br />
====Citrix====<br />
''See [[Citrix]] how-to.''<br />
<br />
====Adobe Reader====<br />
Licensing issues prevent Acrobat Reader from being available in any repository. You'll only find it in the AUR.<br />
<br />
32-bit AUR package - [http://aur.archlinux.org/packages.php?ID=16980 acroread]<br />
<br />
It installs the Acrobat Reader application as well as the Firefox plugin. Note however that hardware assisted rendering is unavailable under Linux (at least using a nVidia Geforce 8600GTS with 185.18.14 driveR).<br />
<br />
'''For 64-bit installs''' the above link is unusable. It will install but be unusable. Since the application is closed-source a 64-bit version depends on Adobe. You have several options:<br />
<br />
- Either you follow [http://wiki.archlinux.org/index.php/Arch64_Install_bundled_32bit_system this link] and create a chrooted 32-bit environment that you can use for any 32-bit needs which is in line with The Arch Way and more elegant;<br />
<br />
- Or, you can simply get the 32-bit binary along with some 32-bit libraries it needs to run. You need to use [http://aur.archlinux.org/packages.php?ID=7906 bin32-acroread]. You may want to read yaourt output and figure out if you'd like extra font packages. Be advised - you cannot use the Firefox plugin this way - it will not load in the 64-bit browser. You must use [http://aur.archlinux.org/packages.php?ID=6217 nspluginwrapper] available from the AUR. Finally, be sure to run<br />
$ nspluginwrapper -v -a -i<br />
as a '''normal user'''. This checks your plugin directory and links the plugins as needed. Everything should work fine now.<br />
<br />
== Plugins are installed but not working ==<br />
If you installed the plugins like above but they are not used by firefox (you can verify this with typing about:plugins in the adressbar and hitting return.) It's usually a permission problem. Just fix those with:<br />
# chmod -R 755 /usr/lib/mozilla<br />
Then restart firefox and everything should be okay.<br />
<br />
If the above suggestion does not fix anything, and about:plugins still reports that no plugins are installed, run the following command<br />
# ln -sv /usr/lib/mozilla/plugins /usr/lib/firefox-3.0/plugins<br />
Restart firefox and about:plugins should list all of the plugins you have installed.<br />
<br />
Another common problem is that the plugin path is unset. This typical occurs on a new install, when you haven't re-logged yet after installing firefox. You can test this with the command:<br />
$ echo $MOZ_PLUGIN_PATH<br />
If it's unset, then either log out/in, or source /etc/profile.d/mozilla-common.sh in a shell and start firefox from the same shell.<br />
<br />
== Can't download plugins? ==<br />
In some cases, people were not able to download (and install) any of the firefox plugins. The solution is adding the following line in /etc/hosts<br />
64.50.236.214 releases.mozilla.org<br />
<br />
= Tips =<br />
== Enable Spell Checking ==<br />
Right click in any text entry field and add the dictionary for the language you need spell checking for. Restart firefox, and click in a text entry field again to enable spell checking.<br />
<br />
== Wheel Mouse Scroll Speed ==<br />
To modify the default values (i.e. speed-up) of the wheel mouse scroll speed, type the following into Firefox's address bar<br />
about:config<br />
<br />
Now enter the following term into the 'filter' dialog: '''mousewheel.withnokey'''<br />
<br />
*Double-click the entry entitled, '''mousewheel.withnokey.sysnumlines''' and thereby setting its value to '''True'''<br />
*Double-click the entry entitled, '''mousewheel.withnokey.numlines''' and enter the desired number of lines per movement into the box (I'm using 12 for example).<br />
<br />
You may close the about:config webpage, restart Firefox for this setting to take effect.<br />
<br />
== Speed-up Firefox using tmpfs ==<br />
If your machine has memory to spare, you can use tmpfs to cache your entire profile directory which makes Firefox ''very'' responsive and generally faster. Full list of benifits include:<br />
*Reduced disk read/writes (great if you're on an SSD)<br />
*Better user experience through heightened responsive feel<br />
*Many operations within Firefox are instantaneous (quick search, history, etc.)<br />
<br />
See the [[Speed-up Firefox using tmpfs]] wiki article for this tip/tweak.<br />
<br />
== Lighten, Speed-up Firefox / Fix fonts and controls issues ==<br />
''Also font fix for Mozilla suite''<br />
<br />
Try to add:<br />
export MOZ_DISABLE_PANGO=1<br />
<br />
to /etc/profile and logout.<br />
<br />
== Why do I get this error when I click the middle mouse button? ==<br />
! The URL is not valid and cannot be loaded.<br />
You may also get unexpected behavior like looking up a random webpage.<br />
<br />
The reason stems from the use of the middle mouse buttons in <code>UNIX</code>-like operating systems. The middle mouse button is used to paste whatever text has been highlighted/added to the clipboard. Also, there is a feature in Firefox which defaults to loading the url of the corresponding text when it is depressed. This can be disabled like so:<br />
<br />
Open the browser, and type the following into the address bar:<br />
about:config<br />
search for '''middlemouse.contentLoadURL''' and set it to false.<br />
<br />
Alternatively if you prefer the traditional scroll cursor on middle-click that is default on Windows browsers:<br />
<br />
search for '''general.autoScroll''' and set it to true.<br />
<br />
== Why my backspace doesn't work as 'Back'? -- How to fix it ==<br />
As I found [http://ubuntu.wordpress.com/2006/12/21/fix-firefox-backspace-to-take-you-to-the-previous-page/ here], this feature was removed to fix a bug. But you can get it back!<br />
<br />
Open the browser, and type the following address:<br />
about:config<br />
<br />
Search for '''browser.backspace_action''' and set it to 0 (zero).<br />
<br />
== Why Firefox doesn't remember my login information? ==<br />
<br />
It maybe cause of a corrupted cookies.sqlite file in your [http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile firefox profile] folder. In order to fix it you may just rename or remove the cookie.sqlite file.<br />
<br />
Open your terminal of choice and type the following:<br />
$ cd ~/.mozilla/firefox/xxxxxxxx.default/<br />
$ rm -f cookies.sqlite<br />
'''Note:''' xxxxxxxx represents a random string of 8 characters.<br />
<br />
Restart your firefox and see if it solved the problem.<br />
<br />
== Broken websites / input fields with dark Gtk Themes ==<br />
<br />
If you use a dark Desktop Theme, you might find some Internet pages have unreadable input & text fields (p.e. Amazon - white text on white background). This can happen because the site only sets either background or text color, and firefox takes the other one from the [[gtk]] theme.<br />
<br />
You can work around that by explicitly setting standard colours for all web pages in ~/.mozilla/firefox/.../chrome/userContent.css.<br />
<br />
This sets input fields to standard black text / white background; both can be overridden by the displayed site, so you should see them as intended. <br />
input {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
textarea {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
<br />
This will force the colours (ignore Website "wishes"):<br />
input {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
<br />
textarea {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
( You might want to pick your own ones though ;) )<br />
<br />
Alternatively, you can use an add-on like stylish (https://addons.mozilla.org/en-US/firefox/addon/2108).<br />
<br />
== Fonts ==<br />
===DPI===<br />
Modifying the following value can help improve the way fonts looks in Firefox if your DPI is below 96 DPI. Firefox by default uses 96 DPI or the system's DPI if it is a higher value. To always use your system's DPI type about:config into your address bar and into the filter type '''layout.css.dpi''' and change to '''0'''.<br />
<br />
===Font Replacement===<br />
Another way to improve how fonts look is to replace them with another. Add or create a ''[[.fonts.conf]]'' with the following.<br />
<br />
<match target="pattern" name="family" ><br />
<test name="family" qual="any" ><br />
<string>'''Helvetica'''</string><br />
</test><br />
<edit mode="assign" name="family" ><br />
<string>'''Bitstream Vera Sans'''</string><br />
</edit><br />
</match><br />
<br />
<br />
The first font name is the one we would like to replace. The second is the one we will be replacing it with.<br />
<br />
=== MIME Types ===<br />
For non gnome users firefox may not associate file types (in the "open with" part of the download menu) you may have to install libgnome so that the file association works smoothly.<br />
<code><br />
pacman -S libgnome<br />
</code><br />
<br />
=== Font Configuration ===<br />
For more information on font configuration, please read [[Xorg Font Configuration]].<br />
<br />
== Tip Articles==<br />
*[[Firefox Tips and Tweaks]]<br />
*[[Adding Firefox Search Engines As User]]<br />
*[[Firefox Widgets|Beautify the form widgets in firefox, e.g. buttons]]<br />
<br />
= Firefox Derivatives =<br />
*[http://en.wikipedia.org/wiki/Iceweasel Iceweasel] - The name of '''two''' different Firefox forks. One was a GNU project; the name of this project has since changed to [http://en.wikipedia.org/wiki/GNU_IceCat Icecat]. The [http://wiki.debian.org/Iceweasel second] is being developed by Debian and is based on 2.0. At the time of writing the [[AUR]] only has Icecat.<br />
<br />
*[http://en.wikipedia.org/wiki/GNU_IceCat GNU/IceCat] - formerly known as GNU IceWeasel, is a web browser distributed by the GNU Project. IceCat, which is made entirely of free software, is a fork of Mozilla Firefox. It is compatible with the GNU/Linux operating system and almost all of Firefox's addons. GNU/IceCat really can fully replace Firefox.<br />
<br />
*[http://getswiftfox.com/ Swiftfox] - An optimized and processor-specific build of Firefox. Currently available via AUR. It should be noted that, considering Arch Linux has ABS, you could build your own optimized build of Firefox.<br />
<br />
*[http://swiftweasel.sourceforge.net/ Swiftweasel] - Mostly like Swiftfox, but the binaries aren't under proprietary license. Some PKGBUILDs are available in AUR.<br />
<br />
= Firefox Alternatives =<br />
*[[Opera]] - A very full-featured web suite. Closed source but free (as in beer).<br />
*[http://en.wikipedia.org/wiki/Epiphany_%28browser%29 Epiphany] - GNOME's default web browser. Uses the same rendering engine as Firefox. <br />
*[http://en.wikipedia.org/wiki/Konqueror Konqueror] - KDE's default web browser. Uses the KHTML rendering engine.<br />
*[http://en.wikipedia.org/wiki/Dillo Dillo] - A very lightweight web browser.<br />
*[http://en.wikipedia.org/wiki/SeaMonkey SeaMonkey] - The continuation of the original Mozilla suite. Includes web browser, email client, etc.<br />
*[http://en.wikipedia.org/wiki/Midori_(browser) Midori] - A webkit-based GTK+ browser. Lightweight and early-development but plenty of features already.<br />
*[http://en.wikipedia.org/wiki/Arora_(web_browser) Arora] - A webkit-based Qt browser in development, very capable and fast.<br />
<br />
= External Links =<br />
*[http://www.howtocreate.co.uk/browserSpeed.html Browser Speed Comparisons] - Dated but still useful.<br />
*[http://web.glandium.org/blog/?p=97 Facts about Debian and Mozilla® Firefox] - An account of the trademark issues from the Firefox package maintainer for Debian.<br />
*[http://www.gnu.org/software/gnuzilla/ Gnuzilla and IceWeasel] - Official website for the GNU Mozilla forks.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76561Opera2009-09-26T00:13:37Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by Opera Software. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
:[[Wikipedia:Opera_(web_browser)|Wikipedia]]<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
{{Note| This will install Qt4 shared build on i686 and x86_64}}<br />
<br />
===Static build===<br />
<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete:'' not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
==Optional tweaks==<br />
<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using '''qtconfig''' (/usr/bin/qtconfig, installed as a dependency for the non static opera package).<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
===Microsoft fonts and Opera===<br />
<br />
If ttf-ms-fonts has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera '''Warning''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's contents will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
{{Note|All fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by qtconfig take precedence over Gnome managed fonts.}}<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
1. Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
2. Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Alternatively, create a symlink to libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
3. Edit the path to java in Opera: ''Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options''.<br />
#openjdk<br />
/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
#jre<br />
/opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
<br />
You can force Opera to use an specific DPI setting (not needed since Opera 10).<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Mac&diff=76560Mac2009-09-26T00:04:32Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
Installing Arch Linux on a MacBook is quite similar to installing it on any other computer. However, due to the specific hardware configuration on a MacBook, there are a few deviations and special considerations which warrant a separate guide. For more background information, please see the [[Official Arch Linux Install Guide]], [[Beginners Guide]], [[Beginners Guide Appendix]], and [[Post Installation Tips]].<br />
<br />
{{Article summary start}}<br />
{{Article summary text | Details the installation and configuration of Arch Linux on Apple's MacBook and MacBook Pro lines of notebooks.}}<br />
{{Article summary heading | Related articles}}<br />
{{Article summary wiki | Official Arch Linux Install Guide}}<br />
{{Article summary wiki | Beginners Guide}}<br />
{{Article summary wiki | Beginners Guide Appendix}}<br />
{{Article summary wiki | Post Installation Tips}}<br />
{{Article summary end}}<br />
<br />
== Overview ==<br />
<br />
Specifically, the procedure for installing Arch Linux on a MacBook is:<br />
<br />
# '''[[#Installation of Mac OS X and Firmware Update | Install Mac OS X]]''': Regardless of the desired end-configuration, it helps to start from a clean install of OS X.<br />
# '''[[#Installation of Mac OS X and Firmware Update | Firmware Update]]''': This should help reduce errors and provide newer features for the hardware.<br />
# '''[[#Partition | Partition]]''': This step either resizes or deletes the OS X partition and creates partitions for Arch Linux.<br />
# '''[[#Installation | Install Arch Linux]]''': The actual installation procedure.<br />
# '''[[#Post-Install Configuration | Post-Install Configuration]]''': MacBook specific configuration.<br />
<br />
{{ Tip | rEFIt is a popular bootloader for EFI-firmware computers (including Macs). It can be installed at any time during the installation. For instructions, please see [[MacBook#rEFIt|rEFIt]]. }}<br />
<br />
==Installation of Mac OS X and Firmware Update==<br />
<br />
[http://www.apple.com Apple] already has excellent instructions for installing Mac OS X. Follow their instructions. Finally, once OS X is installed, go to:<br />
<br />
Apple Menu --> Software Update<br />
<br />
And update all software. Once this has run, you will need to reboot your computer. Do this, and then run '''Software Update''' again to check to make sure that all updates have been installed.<br />
<br />
{{Note | Sometimes '''Software Update''' may not pick up all the firmware updates available for your computer. However, you can try to search this upgrades directly into the Apple's Support site.}}<br />
<br />
If you are not going to have Mac OS X installed, you need to make a backup of the file:<br />
/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport<br />
<br />
You will need this file later for iSight functionality.<br />
<br />
==Partition==<br />
<br />
The next step in the installation is to re-partition the hard drive. If Mac OS X was installed using the typical procedure, then your drive should have a GPT format and the following two partitions:<br />
<br />
* '''EFI partition''': a 200 MB partition at the beginning of the disk.It is often read as '''msdos''' or '''FAT''' by some partitioning tools and usually labelled ''#1''<br />
* '''Mac OS X partition''': the ''(HFS+)'' partition that should take up all of the remaining disk space. Usually labelled ''#2''.<br />
<br />
How to partition depends on how many operating systems you want install. The following options will be proposed here:<br />
<br />
* [[#Arch Linux Only | Arch Linux Only]] for single boot.<br />
* [[#Mac OS X with Arch Linux | Mac OS X with Arch Linux]] for dual boot.<br />
<br />
If you don't know which option to pick, we recommend the dual boot so you can still return to Mac OS X whenever you want.<br />
<br />
===Arch Linux Only===<br />
<br />
This situation is the easiest to deal with. Mostly, partitioning is the same as any other hardware that Arch Linux can be installed on. The only special consideration is the MacBook firmware boot sound. To ensure that this sound is off: '''mute''' the volume in Mac OS X before continuing further. The MacBook firmware relies on the value in Mac OS X, if available.<br />
<br />
Then partition with '''parted'''. The simplest way is to change the partition table to '''msdos''' and then partition as normal. If you decide to use the GPT format, GRUB will not be able to recognize the partitioning scheme.<br />
<br />
{{Note | to partition with '''parted''', just boot the Arch Linux core install disk and run '''parted''' from the root account before using the install program.}}<br />
<br />
Once you have finished this part, please move on to [[#Installation | Installation]] section.<br />
<br />
===Mac OS X with Arch Linux===<br />
<br />
The easiest way to partition your hard drive, so that Mac OS X and Arch Linux will co-exist, is to use partitioning tools in Mac OS X and then finish with Arch Linux tools.<br />
<br />
{{Warning | It is highly recommended that this only be attempted after a clean install of Mac OS X. Using these methods on a pre-existing system may have undesired results.}}<br />
<br />
'''Procedure''':<br />
* In Mac OS X, run '''Disk Utility''' (located in /Applications/Utilities)<br />
<br />
* Select the drive to be partitioned in the left-hand column (not the partitions!). Click on the '''partition''' tab on the right.<br />
<br />
* Select the volume to be resized in the '''volume scheme.'''<br />
<br />
* Decide how much space you wish to have for your Mac OS X partition, and how much for Arch Linux. Remember that a typical installation of Mac OS X requires around 15-20 GiB, depending on the number of software applications and files.<br />
<br />
* Finally, type the new (smaller) size for the MacOS partition in the size box and click '''apply'''. This will create a new partition out of the empty space.<br />
<br />
{{Note | if you wish to have a shared partition between Mac OS X and Arch Linux, then additional steps will need to happen here. Please see [[#Shared Partition|Shared Partition]].}}<br />
<br />
* If the above completed successfully, then you can continue. If not, then you may need to fix your partitions from within Mac OS X first.<br />
<br />
* Boot the Arch install CD and run '''parted'''<br />
# parted<br />
<br />
* Delete the empty space partition and partition the space as you would for any other installation.<br />
<br />
* At this point, if you are dual booting, you should reboot your computer and have rEFIt fix the partition tables on your hard drive. (If you don't do this, you may have to reinstall GRUB later on in order to have your Mac recognize the Linux partition.) When you are into the rEFIt menu, select '''update partition table''', then press Y.<br />
# reboot<br />
<br />
* Done! Please continue to [[MacBook#Installation | installation]]<br />
<br />
==Installation==<br />
{{ Note | This section is only required if you want to have Mac OS X installed along with Arch Linux. If not, follow the steps in the official install guide, then skip to [[MacBook#Post-Install Configuration | post install]].}}<br />
<br />
* Boot from the Arch Linux install CD. Type '''arch''' at the boot prompt or '''arch vga=773''' if you prefer a higher console resolution.<br />
<br />
boot: arch vga=773<br />
<br />
{{Note | some MacBook users report strange keyboard output such as long delays and character doubling. If this is your situation, boot with follows options.}}<br />
<br />
boot: arch noapic irqpoll acpi=force<br />
<br />
* Log in as '''root'''<br />
<br />
* Run the Arch installer:<br />
<br />
/arch/setup<br />
<br />
* Proceed through the installation as described in the [[Official Arch Linux Install Guide]] '''except''' in the following areas:<br />
** In the [[Official Arch Linux Install Guide#Prepare Hard Drive | prepare hard drive]] stage do only the [[Official Arch Linux Install Guide#Set Filesystem Mountpoints | set filesystem mountpoints]] step, taking care to assign the correct partitions.<br />
** In the [[Official Arch Linux Install Guide#Install Bootloader | install boot loader]] stage, edit the menu.lst file and add '''reboot=pci''' to the end of the '''kernel''' lines, for example: <pre style="margin: .5em 0; padding: .5em 1em">kernel /vmlinuz26 root=/dev/sda5 ro reboot=pci</pre> This will allow your MacBook to reboot correctly from Arch.<br />
** Also in the [[Official Arch Linux Install Guide#Install Bootloader | install boot loader]] stage, install GRUB on whatever partition that <tt>/boot</tt> is on. {{Warning | Do not install GRUB onto ''/dev/sda'' !!! Doing so is likely to lead to an unstable post-environment.}}<br />
** In the [[Official Arch Linux Install Guide#Configure System | configure system]] stage, edit /etc/mkinitcpio.conf and add the '''usbinput''' hook to the '''HOOKS''' line somewhere after the '''autodetect''' hook. This will load the drivers for your keyboard in case you need to use it before Arch boots (e.g. entering a [[LUKS]] password or using the troubleshooting shell).<br />
<br />
* When the install process is complete, reboot your computer.<br />
# reboot<br />
<br />
* Hold down the eject key as your MacBook starts, this should eject the Arch Linux install disk.<br />
<br />
==Post-Install Configuration==<br />
<br />
{{ Tip | MacBooks require some extra software from [[AUR]]. You may wish to install this software speedly; then you should install [[Yaourt]].}}<br />
<br />
{{ Tip | this software and its configuration require Root Privileges. To speed up this procedure i hint you to install [[Sudo]].}}<br />
<br />
{{ Tip | follow one section at time.}}<br />
<br />
=== Xorg ===<br />
<br />
Install and configure Xorg by following the [[Xorg]] article.<br />
<br />
==== Video ====<br />
<br />
Different MacBook's models have different graphic cards.<br />
<br />
To see which graphic card do you have type:<br />
<br />
# lspci | grep VGA<br />
<br />
If it returns a string with '''intel''' you need '''xf86-video-intel''' driver. You can install it typing<br />
<br />
# pacman -S xf86-video-intel<br />
<br />
If it returns '''nvidia'''<br />
<br />
# pacman -S nvidia<br />
<br />
Otherwise if it returns '''ATI'''<br />
<br />
# yaourt catalyst<br />
<br />
At least, '''intel''' users don't need any other work; instead others users need a basic '''xorg.conf''' file where you can specify the right driver to use.<br />
<br />
To configure it read those pages [[ATI]] or [[NVIDIA]].<br />
<br />
==== Touchpad ====<br />
<br />
The touchpad should have basic functionality by default.<br />
<br />
To configure advanced functions, see [[Touchpad Synaptics]] and [[Xorg input hotplugging]].<br />
<br />
==== Keyboard ====<br />
<br />
MacBook keyboard works by default. Only the '''eject''' key isn't recognized properly.<br />
<br />
To enable it you can map with right application like '''xbindkeys''' or through DE preferences; but another very good way, that we recommend, is to install '''pommed''' from [[AUR]].<br />
<br />
To install and configure '''pommed''' is easily:<br />
<br />
# yaourt pommed<br />
<br />
to install it, after<br />
<br />
Edit the '''/etc/pommed.conf''' according to your hardware on MacBook, building<br />
it from '''/etc/pommed.conf.mac''' or '''/etc/pommed.conf.ppc''' example files.<br />
<br />
then<br />
<br />
Put '''pommed''' at the end in your '''DAEMONS''' array in your '''/etc/rc.conf'''<br />
<br />
finally reboot your pc.<br />
<br />
{{ Tip | if you are using Gnome or KDE you can easily configure ''3rd level functionality'', ''multimedia key'', etc. in Keyboard Preferences.}}<br />
<br />
{{ Note | see the [[Xorg input hotplugging]] page for other configuration information.}}<br />
<br />
=== Wifi ===<br />
<br />
Different MacBook models have different wireless cards.<br />
<br />
You can easily check what card do your MacBook have by:<br />
<br />
# lspci | grep Network<br />
<br />
* if you have an Atheros all should works-out-of-the-box.<br />
<br />
* instead if you have a Broadcom follow the [[Broadcom BCM4312]] page.<br />
<br />
=== Sound ===<br />
<br />
First of all follow [[ALSA]] wiki page, then if something doesn't work correctly, continue reading this part.<br />
<br />
Edit your '''/etc/modprobe.d/50-sound.conf''', appending this line:<br />
<br />
options snd_hda_intel model=intel-mac-auto<br />
<br />
This should automatically specify the codec in your MacBook.<br />
<br />
{{ Note | you can try to specify other options, agree with in your hardware. All other possible settings are listed in Kernel Documentation, avaible online:<br />
<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/ALSA-Configuration.txt ALSA-Configuration.txt]<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio.txt HD-Audio.txt]<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt HD-Audio-Models.txt].}}<br />
<br />
At least reboot.<br />
<br />
=== Bluetooth ===<br />
<br />
See the article on [[Bluetooth]] to install and configure all software needed.<br />
<br />
Then if Bluetooth doesn't work out-of-the-box, you should edit your '''/etc/conf.d/bluetooth''' to enable '''hid2hci''' by uncommenting related line as follows:<br />
<br />
HID2HCI_ENABLE="true"<br />
<br />
Then restart your bluetooth daemon or simply reboot your pc.<br />
<br />
{{ Tip | for advanced bluetooth information see [[Bluetooth]] page.}}<br />
<br />
=== iSight ===<br />
<br />
{{ Note | linux kernel from 2.6.26 includes the '''Linux UVC driver''' natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.}}<br />
<br />
iSight webcams require the Apple's proprietary firmware that can't be redistributed because proprietary. Then we must extract it from MacOS and load it Arch.<br />
<br />
Tools to extract firmware is available at [http://bersace03.free.fr/ift/ http://bersace03.free.fr/ift/] but we can found it on AUR [http://aur.archlinux.org/packages.php?ID=23525 isight-firmware-tools]. <br />
<br />
Instructions:<br />
<br />
First you need to get the firmware out of a particular file located on your OS X install. It is located in '''/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport'''.<br />
<br />
To get it, mounts the MacOSX drive with:<br />
<br />
# sudo mkdir /media/MacOSX<br />
# sudo mount -t hfsplus /dev/sda2 /media/MacOSX<br />
<br />
Then install the firmware extractor and let it do the work for you<br />
<br />
# yaourt isight-firmware-tools<br />
<br />
and click OK to accept the default path (/media/MacOSX/System...).<br />
<br />
When it's done check that the firmware has been found:<br />
<br />
# ls /lib/firmware/isight.fw<br />
<br />
Once that is done, you need to completely SHUTDOWN your Mac and start it back up again (because this clears the hardware state of the camera).<br />
<br />
{{ Tip | to save very much time in the future, you just need to place the '''isight.fw''' file you saved in '''/lib/firmware/''' and then shutdown and reboot as instructed above.}}<br />
<br />
Finally you can load the '''uvcvideo''' module or add it at the end of MODULES() array into your '''/etc/rc.conf''' if you want it to load at boot.<br />
<br />
Everything should works.<br />
<br />
To test it there are many software:<br />
<br />
* MPlayer<br />
<br />
# mplayer tv:// -tv driver=v4l2:width=1280:height=1024:device=/dev/video0 -fps 20<br />
<br />
* Cheese<br />
* Skype<br />
* Ekiga<br />
<br />
=== Temperature Sensors ===<br />
<br />
For reading temperature just install and configure '''lm_sensors'''.<br />
See [[Lm sensors]] page.<br />
<br />
=== Color Profile ===<br />
<br />
We can use color profiles from Mac OS.<br />
<br />
First install '''xcalib''' from AUR:<br />
<br />
# yaourt xcalib<br />
<br />
Second copy pre-saved color profiles placed in '''/Library/ColorSync/Profiles/Displays/''' on Mac OS partition to '''~/colorprofiles/''' for example.<br />
<br />
There are color profile files agree with in MacBook models; select the right one:<br />
<br />
* '''Color LCD-4271800.icc''' for MacBook Pro with CoreDuo CPU<br />
* '''Color LCD-4271880.icc''' for MacBook with Core2Duo<br />
* '''Color LCD-4271780.icc''' for MacBook (not Pro) based on CoreDuo or Core2Duo.<br />
<br />
<br />
{{ Tip | also Mac OS allows to save current color profile from '''Displays -> Color''' section of the '''Mac OS System Preferences''', in this case file is saved to '''/Users/<username>/Library/ColorSync/Profiles'''.}}<br />
<br />
Finally you can activate it by running<br />
<br />
# xcalib ~/colorprofile.icc<br />
<br />
{{ Warning | previous command set the color profile only for the current session; this mean that you must run it every time you login in your system. For automating it you can execute the command by '''Autostart Application''', concording with your DE.}}<br />
<br />
{{ Note | see '''xcalib''' man pages for further information.}}<br />
<br />
=== Apple Remote ===<br />
<br />
First, to correctly install and configure the '''lirc''' software that control IR see [[Lirc]] wiki.<br />
<br />
Then make LIRC use '''/dev/usb/hiddev0''' (or '''/dev/hiddev0''') by editing '''/etc/conf.d/lircd'''.<br />
<br />
Use '''irrecord''' (available when installing lirc) to create a config file matching your remote control signals.<br />
<br />
Start '''lircd''' and use '''irw''' to check if it works.<br />
<br />
Example of an '''/etc/lircd.conf''':<br />
<br />
begin remote<br />
<br />
name lircd.conf.macbook<br />
bits 8<br />
eps 30<br />
aeps 100<br />
<br />
one 0 0<br />
zero 0 0<br />
pre_data_bits 24<br />
pre_data 0x87EEFD<br />
gap 211994<br />
toggle_bit_mask 0x87EEFD01<br />
<br />
begin codes<br />
Repeat 0x01<br />
Menu 0x03<br />
Play 0x05<br />
Prev 0x09<br />
Next 0x06<br />
Up 0x0A<br />
Down 0x0C<br />
end codes<br />
<br />
end remote<br />
<br />
((Load '''appleir''' if it isn't.))<br />
<br />
===Hfs Partition Sharing===<br />
<br />
First, we have to list our partitions. Use<br />
<br />
fdisk -l /dev/sda<br />
<br />
example output:<br />
<br />
# fdisk -l /dev/sda<br />
Device Boot Start End Blocks Id Type<br />
/dev/sda1 1 26 204819 ee GPT<br />
/dev/sda2 26 13602 109051903+ af Unknown<br />
/dev/sda3 * 13602 14478 7031250 83 Linux<br />
/dev/sda4 14478 14594 932832+ 82 Linux swap / Solaris<br />
<br />
As we see, the "Unknown" partition is our OS X partition, which is located in <code>/dev/sda2</code>.<br />
<br />
Create a "mac" folder in /media:<br />
<br />
sudo mkdir /media/mac<br />
<br />
Add at the end of ''/etc/fstab'' this line:<br />
<br />
/dev/sda2 /media/mac hfsplus rw,exec,auto,users 0 0<br />
<br />
Mount it :<br />
<br />
mount /media/mac<br />
<br />
and check it:<br />
<br />
ls /media/mac<br />
<br />
===Home Sharing===<br />
<br />
'''''UID Synchronization'''''<br />
<br />
====In OS X====<br />
<br />
{{Note | it is strongly recommended that UID/GID manipulation be done immediately after a new user account is created, in OS X as well as in Arch Linux. If you installed OS X from scratch, then this operation is guaranteed to work after logging into your account for the first time.}}<br />
<br />
=====Step 1: Change UID and GID(s)=====<br />
<br />
'''''Pre-Leopard'''''<br />
<br />
# Open '''NetInfo Manager''' located in the ''/Applications/Utilities'' folder.<br />
<br />
# If not done for you already, enable access to user account transactions by clicking on the closed lock at the bottom of the window, and entering your account password, or root password if you have created a root account.<br />
<br />
# Navigate to ''/users/<new user name>'' where <new user name> is the name of the account that will have read/write access to the folder that will be shared with the primary user in Arch.<br />
<br />
# Change the '''UID''' value to 1000 (the value used by default for first user created in Arch).<br />
<br />
# Also change the '''GID''' value to 1000 (the value used by default for user account creation in Arch).<br />
<br />
# Navigate to ''/groups/<new user name>'', automatically saving the changes you have made so far.<br />
<br />
{{Note | if you get an error message that the transaction is not allowed, log out and log back in.}}<br />
<br />
'''''Leopard'''''<br />
<br />
In Leopard, the '''NetInfo Manager''' application is not present. A different set of steps is required for UID synchronization:<br />
<br />
# Open '''System Preferences'''.<br />
<br />
# Click on '''Accounts'''.<br />
<br />
# Unlock the pane if not already done so.<br />
<br />
# Right-click on the desired user and select '''Advanced Options'''.<br />
<br />
# Write down the value of the '''User ID''' field, you'll need it later on. Change both the UID and GID to match the UID and GID of the account wished to be shared with in Arch (1000 by default for the first user created in Arch).<br />
<br />
=====Step 2: Change "Home" Permissions=====<br />
<br />
# Open up '''Terminal''' in the ''/Applications/Utilities'' folder.<br />
<br />
# Enter the following command to reclaim the permission settings of your home folder, replacing <your user name>, <your user group> and <your old UID> with the user name whose UID and GID values you just changed, the group name whose GID value you just changed and the old UID number, respectively.<br />
<br />
find /User/<your user name> -user <your old UID> -exec chown <your user name>:<your user group><br />
<br />
====In Arch====<br />
<br />
To synchronize your UID in Arch Linux, you are advised to perform this operation ''while creating a new user account''.<br />
It is therefore recommended that you do this as soon as you install Arch Linux.<br />
<br />
Now you must substitute Arch's home with Mac OS's home, by modify entries of the famous ''/etc/fstab'' file.<br />
<br />
==rEFIt==<br />
<br />
Now install rEFIt if you have not done so already.<br />
<br />
{{Note | this is not a requirement. It only gives you a menu to choose between OS X and Arch Linux upon every boot.}}<br />
<br />
In OS X, download the ".dmg" from -> [http://refit.sourceforge.net/ Refit Homepage] and install it.<br />
<br />
{{Note | if you have already partitioned your hard disk in preparation for the Arch installation, rEFIt may not be enabled by default. You will have to run the "enable.sh" script installed in /efi/refit/.}}<br />
<br />
Open up '''Terminal''' and enter:<br />
<br />
cd /efi/refit; ./enable.sh</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Mac&diff=76559Mac2009-09-26T00:02:09Z<p>UNIVAC: rearanged overview, small introduction below main title</p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
Installing Arch Linux on a MacBook is quite similar to installing it on any other computer. However, due to the specific hardware configuration on a MacBook, there are a few deviations and special considerations which warrant a separate guide. For more background information, please see the [[Official Arch Linux Install Guide]], [[Beginners Guide]], [[Beginners Guide Appendix]], and [[Post Installation Tips]].<br />
<br />
{{Article summary start}}<br />
{{Article summary text | Details the installation and configuration of Arch Linux on Apple's MacBook and MacBook Pro lines of notebooks.}}<br />
{{Article summary heading | Related articles}}<br />
{{Article summary wiki | Official Arch Linux Install Guide}}<br />
{{Article summary wiki | Beginners Guide}}<br />
{{Article summary wiki | Beginners Guide Appendix}}<br />
{{Article summary wiki | Post Installation Tips}}<br />
{{Article summary end}}<br />
<br />
== Overview ==<br />
<br />
Specifically, the procedure for installing Arch Linux on a MacBook is:<br />
<br />
# '''[[#Installation of Mac OS X and Firmware Update | Install Mac OS X]]''': Regardless of the desired end-configuration, it helps to start from a clean install of OS X.<br />
# '''[[#Installation of Mac OS X and Firmware Update | Firmware Update]]''': This should help reduce errors and provide newer features for the hardware.<br />
# '''[[#Partition | Partition]]''': This step either resizes or deletes the OS X partition and creates partitions for Arch Linux.<br />
# '''[[#Installation | Install Arch Linux]]''': The actual installation procedure.<br />
# '''[[#Post-Install Configuration | Post-Install Configuration]]''': MacBook specific configuration.<br />
<br />
{{ Tip | rEFIt is a popular bootloader for EFI-firmware computers (including Macs). It can be installed at any time during the installation. For instructions, please see [[MacBook#rEFIt|rEFIt]]. }}<br />
<br />
==Installation of Mac OS X and Firmware Update==<br />
<br />
[http://www.apple.com Apple] already has excellent instructions for installing Mac OS X. Follow their instructions. Finally, once OS X is installed, go to:<br />
<br />
Apple Menu --> Software Update<br />
<br />
And update all software. Once this has run, you will need to reboot your computer. Do this, and then run '''Software Update''' again to check to make sure that all updates have been installed.<br />
<br />
{{Note | Sometimes '''Software Update''' may not pick up all the firmware updates available for your computer. However, you can try to search this upgrades directly into the Apple's Support site.}}<br />
<br />
If you are not going to have Mac OS X installed, you need to make a backup of the file:<br />
/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport<br />
<br />
You will need this file later for iSight functionality.<br />
<br />
==Partition==<br />
<br />
The next step in the installation is to re-partition the hard drive. If Mac OS X was installed using the typical procedure, then your drive should have a GPT format and the following two partitions:<br />
<br />
* '''EFI partition''': a 200 MB partition at the beginning of the disk.It is often read as '''msdos''' or '''FAT''' by some partitioning tools and usually labelled ''#1''<br />
* '''Mac OS X partition''': the ''(HFS+)'' partition that should take up all of the remaining disk space. Usually labelled ''#2''.<br />
<br />
How to partition depends on how many operating systems you want install. The following options will be proposed here:<br />
<br />
* [[#Arch Linux Only | Arch Linux Only]] for single boot.<br />
* [[#Mac OS X with Arch Linux | Mac OS X with Arch Linux]] for dual boot.<br />
<br />
If you don't know which option to pick, we recommend the dual boot so you can still return to Mac OS X whenever you want.<br />
<br />
===Arch Linux Only===<br />
<br />
This situation is the easiest to deal with. Mostly, partitioning is the same as any other hardware that Arch Linux can be installed on. The only special consideration is the MacBook firmware boot sound. To ensure that this sound is off: '''mute''' the volume in Mac OS X before continuing further. The MacBook firmware relies on the value in Mac OS X, if available.<br />
<br />
Then partition with '''parted'''. The simplest way is to change the partition table to '''msdos''' and then partition as normal. If you decide to use the GPT format, GRUB will not be able to recognize the partitioning scheme.<br />
<br />
{{Note | to partition with '''parted''', just boot the Arch Linux core install disk and run '''parted''' from the root account before using the install program.}}<br />
<br />
Once you have finished this part, please move on to [[#Installation | Installation]] section.<br />
<br />
===Mac OS X with Arch Linux===<br />
<br />
The easiest way to partition your hard drive, so that Mac OS X and Arch Linux will co-exist, is to use partitioning tools in Mac OS X and then finish with Arch Linux tools.<br />
<br />
{{Warning | It is highly recommended that this only be attempted after a clean install of Mac OS X. Using these methods on a pre-existing system may have undesired results.}}<br />
<br />
'''Procedure''':<br />
* In Mac OS X, run '''Disk Utility''' (located in /Applications/Utilities)<br />
<br />
* Select the drive to be partitioned in the left-hand column (not the partitions!). Click on the '''partition''' tab on the right.<br />
<br />
* Select the volume to be resized in the '''volume scheme.'''<br />
<br />
* Decide how much space you wish to have for your Mac OS X partition, and how much for Arch Linux. Remember that a typical installation of Mac OS X requires around 15-20 GiB, depending on the number of software applications and files.<br />
<br />
* Finally, type the new (smaller) size for the MacOS partition in the size box and click '''apply'''. This will create a new partition out of the empty space.<br />
<br />
{{Note | if you wish to have a shared partition between Mac OS X and Arch Linux, then additional steps will need to happen here. Please see [[#Shared Partition|Shared Partition]].}}<br />
<br />
* If the above completed successfully, then you can continue. If not, then you may need to fix your partitions from within Mac OS X first.<br />
<br />
* Boot the Arch install CD and run '''parted'''<br />
# parted<br />
<br />
* Delete the empty space partition and partition the space as you would for any other installation.<br />
<br />
* At this point, if you are dual booting, you should reboot your computer and have rEFIt fix the partition tables on your hard drive. (If you don't do this, you may have to reinstall GRUB later on in order to have your Mac recognize the Linux partition.) When you are into the rEFIt menu, select '''update partition table''', then press Y.<br />
# reboot<br />
<br />
* Done! Please continue to [[MacBook#Installation | installation]]<br />
<br />
==Installation==<br />
{{ Note | This section is only required if you want to have Mac OS X installed along with Arch Linux. If not, follow the steps in the official install guide, then skip to [[MacBook#Post-Install Configuration | post install]].}}<br />
<br />
* Boot from the Arch Linux install CD. Type '''arch''' at the boot prompt or '''arch vga=773''' if you prefer a higher console resolution.<br />
<br />
boot: arch vga=773<br />
<br />
{{Note | some MacBook users report strange keyboard output such as long delays and character doubling. If this is your situation, boot with follows options.}}<br />
<br />
boot: arch noapic irqpoll acpi=force<br />
<br />
* Log in as '''root'''<br />
<br />
* Run the Arch installer:<br />
<br />
/arch/setup<br />
<br />
* Proceed through the installation as described in the [[Official Arch Linux Install Guide]] '''except''' in the following areas:<br />
** In the [[Official Arch Linux Install Guide#Prepare Hard Drive | prepare hard drive]] stage do only the [[Official Arch Linux Install Guide#Set Filesystem Mountpoints | set filesystem mountpoints]] step, taking care to assign the correct partitions.<br />
** In the [[Official Arch Linux Install Guide#Install Bootloader | install boot loader]] stage, edit the menu.lst file and add '''reboot=pci''' to the end of the '''kernel''' lines, for example: <pre style="margin: .5em 0; padding: .5em 1em">kernel /vmlinuz26 root=/dev/sda5 ro reboot=pci</pre> This will allow your MacBook to reboot correctly from Arch.<br />
** Also in the [[Official Arch Linux Install Guide#Install Bootloader | install boot loader]] stage, install GRUB on whatever partition that <tt>/boot</tt> is on. {{Warning | Do not install GRUB onto ''/dev/sda'' !!! Doing so is likely to lead to an unstable post-environment.}}<br />
** In the [[Official Arch Linux Install Guide#Configure System | configure system]] stage, edit /etc/mkinitcpio.conf and add the '''usbinput''' hook to the '''HOOKS''' line somewhere after the '''autodetect''' hook. This will load the drivers for your keyboard in case you need to use it before Arch boots (e.g. entering a [[LUKS]] password or using the troubleshooting shell).<br />
<br />
* When the install process is complete, reboot your computer.<br />
# reboot<br />
<br />
* Hold down the eject key as your MacBook starts, this should eject the Arch Linux install disk.<br />
<br />
==Post-Install Configuration==<br />
<br />
{{ Tip | MacBooks require some extra software from [[AUR]]. You may wish to install this software speedly; then you should install [[Yaourt]].}}<br />
<br />
{{ Tip | this software and its configuration require Root Privileges. To speed up this procedure i hint you to install [[Sudo]].}}<br />
<br />
{{ Tip | follow one section at time.}}<br />
<br />
=== Xorg ===<br />
<br />
Install and configure Xorg by following the [[Xorg]] article.<br />
<br />
==== Video ====<br />
<br />
Different MacBook's models have different graphic cards.<br />
<br />
To see which graphic card do you have type:<br />
<br />
# lspci | grep VGA<br />
<br />
If it returns a string with '''intel''' you need '''xf86-video-intel''' driver. You can install it typing<br />
<br />
# pacman -S xf86-video-intel<br />
<br />
If it returns '''nvidia'''<br />
<br />
# pacman -S nvidia<br />
<br />
Otherwise if it returns '''ATI'''<br />
<br />
# yaourt catalyst<br />
<br />
At least, '''intel''' users don't need any other work; instead others users need a basic '''xorg.conf''' file where you can specify the right driver to use.<br />
<br />
To configure it read those pages [[ATI]] or [[NVIDIA]].<br />
<br />
==== Touchpad ====<br />
<br />
The touchpad should have basic functionality by default.<br />
<br />
To configure advanced functions, see [[Touchpad Synaptics]] and [[Xorg input hotplugging]].<br />
<br />
==== Keyboard ====<br />
<br />
MacBook keyboard works by default. Only the '''eject''' key isn't recognized properly.<br />
<br />
To enable it you can map with right application like '''xbindkeys''' or through DE preferences; but another very good way, that we recommend, is to install '''pommed''' from [[AUR]].<br />
<br />
To install and configure '''pommed''' is easily:<br />
<br />
# yaourt pommed<br />
<br />
to install it, after<br />
<br />
Edit the '''/etc/pommed.conf''' according to your hardware on MacBook, building<br />
it from '''/etc/pommed.conf.mac''' or '''/etc/pommed.conf.ppc''' example files.<br />
<br />
then<br />
<br />
Put '''pommed''' at the end in your '''DAEMONS''' array in your '''/etc/rc.conf'''<br />
<br />
finally reboot your pc.<br />
<br />
{{ Tip | if you are using Gnome or KDE you can easily configure ''3rd level functionality'', ''multimedia key'', etc. in Keyboard Preferences.}}<br />
<br />
{{ Note | see the [[Xorg input hotplugging]] page for other configuration information.}}<br />
<br />
=== Wifi ===<br />
<br />
Different MacBook models have different wireless cards.<br />
<br />
You can easily check what card do your MacBook have by:<br />
<br />
# lspci | grep Network<br />
<br />
* if you have an Atheros all should works-out-of-the-box.<br />
<br />
* instead if you have a Broadcom follow the [[Broadcom BCM4312]] page.<br />
<br />
=== Sound ===<br />
<br />
First of all follow [[ALSA]] wiki page, then if something doesn't work correctly, continue reading this part.<br />
<br />
Edit your '''/etc/modprobe.d/50-sound.conf''', appending this line:<br />
<br />
options snd_hda_intel model=intel-mac-auto<br />
<br />
This should automatically specify the codec in your MacBook.<br />
<br />
{{ Note | you can try to specify other options, agree with in your hardware. All other possible settings are listed in Kernel Documentation, avaible online:<br />
<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/ALSA-Configuration.txt ALSA-Configuration.txt]<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio.txt HD-Audio.txt]<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt HD-Audio-Models.txt].}}<br />
<br />
At least reboot.<br />
<br />
=== Bluetooth ===<br />
<br />
See the article on [[Bluetooth]] to install and configure all software needed.<br />
<br />
Then if Bluetooth doesn't work out-of-the-box, you should edit your '''/etc/conf.d/bluetooth''' to enable '''hid2hci''' by uncommenting related line as follows:<br />
<br />
HID2HCI_ENABLE="true"<br />
<br />
Then restart your bluetooth daemon or simply reboot your pc.<br />
<br />
{{ Tip | for advanced bluetooth information see [[Bluetooth]] page.}}<br />
<br />
=== iSight ===<br />
<br />
{{ Note | linux kernel from 2.6.26 includes the '''Linux UVC driver''' natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.}}<br />
<br />
iSight webcams require the Apple's proprietary firmware that can't be redistributed because proprietary. Then we must extract it from MacOS and load it Arch.<br />
<br />
Tools to extract firmware is available at [http://bersace03.free.fr/ift/ http://bersace03.free.fr/ift/] but we can found it on AUR [http://aur.archlinux.org/packages.php?ID=23525 isight-firmware-tools]. <br />
<br />
Instructions:<br />
<br />
First you need to get the firmware out of a particular file located on your OS X install. It is located in '''/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport'''.<br />
<br />
To get it, mounts the MacOSX drive with:<br />
<br />
# sudo mkdir /media/MacOSX<br />
# sudo mount -t hfsplus /dev/sda2 /media/MacOSX<br />
<br />
Then install the firmware extractor and let it do the work for you<br />
<br />
# yaourt isight-firmware-tools<br />
<br />
and click OK to accept the default path (/media/MacOSX/System...).<br />
<br />
When it's done check that the firmware has been found:<br />
<br />
# ls /lib/firmware/isight.fw<br />
<br />
Once that is done, you need to completely SHUTDOWN your Mac and start it back up again (because this clears the hardware state of the camera).<br />
<br />
{{ Tip | to save very much time in the future, you just need to place the '''isight.fw''' file you saved in '''/lib/firmware/''' and then shutdown and reboot as instructed above.}}<br />
<br />
Finally you can load the '''uvcvideo''' module or add it at the end of MODULES() array into your '''/etc/rc.conf''' if you want it to load at boot.<br />
<br />
Everything should works.<br />
<br />
To test it there are many software:<br />
<br />
* MPlayer<br />
<br />
# mplayer tv:// -tv driver=v4l2:width=1280:height=1024:device=/dev/video0 -fps 20<br />
<br />
* Cheese<br />
* Skype<br />
* Ekiga<br />
<br />
=== Temperature Sensors ===<br />
<br />
For reading temperature just install and configure '''lm_sensors'''.<br />
See [[Lm sensors]] page.<br />
<br />
=== Color Profile ===<br />
<br />
We can use color profiles from Mac OS.<br />
<br />
First install '''xcalib''' from AUR:<br />
<br />
# yaourt xcalib<br />
<br />
Second copy pre-saved color profiles placed in '''/Library/ColorSync/Profiles/Displays/''' on Mac OS partition to '''~/colorprofiles/''' for example.<br />
<br />
There are color profile files agree with in MacBook models; select the right one:<br />
<br />
* '''Color LCD-4271800.icc''' for MacBook Pro with CoreDuo CPU<br />
* '''Color LCD-4271880.icc''' for MacBook with Core2Duo<br />
* '''Color LCD-4271780.icc''' for MacBook (not Pro) based on CoreDuo or Core2Duo.<br />
<br />
<br />
{{ Tip | also Mac OS allows to save current color profile from '''Displays -> Color''' section of the '''Mac OS System Preferences''', in this case file is saved to '''/Users/<username>/Library/ColorSync/Profiles'''.}}<br />
<br />
Finally you can activate it by running<br />
<br />
# xcalib ~/colorprofile.icc<br />
<br />
{{ Warning | previous command set the color profile only for the current session; this mean that you must run it every time you login in your system. For automating it you can execute the command by '''Autostart Application''', concording with your DE.}}<br />
<br />
{{ Note | see '''xcalib''' man pages for further information.}}<br />
<br />
=== Apple Remote ===<br />
<br />
First, to correctly install and configure the '''lirc''' software that control IR see [[Lirc]] wiki.<br />
<br />
Then make LIRC use '''/dev/usb/hiddev0''' (or '''/dev/hiddev0''') by editing '''/etc/conf.d/lircd'''.<br />
<br />
Use '''irrecord''' (available when installing lirc) to create a config file matching your remote control signals.<br />
<br />
Start '''lircd''' and use '''irw''' to check if it works.<br />
<br />
Example of an '''/etc/lircd.conf''':<br />
<br />
begin remote<br />
<br />
name lircd.conf.macbook<br />
bits 8<br />
eps 30<br />
aeps 100<br />
<br />
one 0 0<br />
zero 0 0<br />
pre_data_bits 24<br />
pre_data 0x87EEFD<br />
gap 211994<br />
toggle_bit_mask 0x87EEFD01<br />
<br />
begin codes<br />
Repeat 0x01<br />
Menu 0x03<br />
Play 0x05<br />
Prev 0x09<br />
Next 0x06<br />
Up 0x0A<br />
Down 0x0C<br />
end codes<br />
<br />
end remote<br />
<br />
((Load '''appleir''' if it isn't.))<br />
<br />
===Hfs Partition Sharing===<br />
<br />
First, we have to list our partitions. Use<br />
<br />
fdisk -l /dev/sda<br />
<br />
example output:<br />
<br />
# fdisk -l /dev/sda<br />
Device Boot Start End Blocks Id Type<br />
/dev/sda1 1 26 204819 ee GPT<br />
/dev/sda2 26 13602 109051903+ af Unknown<br />
/dev/sda3 * 13602 14478 7031250 83 Linux<br />
/dev/sda4 14478 14594 932832+ 82 Linux swap / Solaris<br />
<br />
As we see, the "Unknown" partition is our OS X partition, which is located in <code>/dev/sda2</code>.<br />
<br />
Create a "mac" folder in /media:<br />
<br />
sudo mkdir /media/mac<br />
<br />
Add at the end of ''/etc/fstab'' this line:<br />
<br />
/dev/sda2 /media/mac hfsplus rw,exec,auto,users 0 0<br />
<br />
Mount it :<br />
<br />
mount /media/mac<br />
<br />
and check it:<br />
<br />
ls /media/mac<br />
<br />
===Home Sharing===<br />
<br />
'''''UID Synchronization'''''<br />
<br />
====In OS X====<br />
<br />
{{Note | it is strongly recommended that UID/GID manipulation be done immediately after a new user account is created, in OS X as well as in Arch Linux. If you installed OS X from scratch, then this operation is guaranteed to work after logging into your account for the first time.}}<br />
<br />
=====Step 1: Change UID and GID(s)=====<br />
<br />
'''''Pre-Leopard'''''<br />
<br />
# Open '''NetInfo Manager''' located in the ''/Applications/Utilities'' folder.<br />
<br />
# If not done for you already, enable access to user account transactions by clicking on the closed lock at the bottom of the window, and entering your account password, or root password if you have created a root account.<br />
<br />
# Navigate to ''/users/<new user name>'' where <new user name> is the name of the account that will have read/write access to the folder that will be shared with the primary user in Arch.<br />
<br />
# Change the '''UID''' value to 1000 (the value used by default for first user created in Arch).<br />
<br />
# Also change the '''GID''' value to 1000 (the value used by default for user account creation in Arch).<br />
<br />
# Navigate to ''/groups/<new user name>'', automatically saving the changes you have made so far.<br />
<br />
{{Note | if you get an error message that the transaction is not allowed, log out and log back in.}}<br />
<br />
'''''Leopard'''''<br />
<br />
In Leopard, the '''NetInfo Manager''' application is not present. A different set of steps is required for UID synchronization:<br />
<br />
# Open '''System Preferences'''.<br />
<br />
# Click on '''Accounts'''.<br />
<br />
# Unlock the pane if not already done so.<br />
<br />
# Right-click on the desired user and select '''Advanced Options'''.<br />
<br />
# Write down the value of the '''User ID''' field, you'll need it later on. Change both the UID and GID to match the UID and GID of the account wished to be shared with in Arch (1000 by default for the first user created in Arch).<br />
<br />
=====Step 2: Change "Home" Permissions=====<br />
<br />
# Open up '''Terminal''' in the ''/Applications/Utilities'' folder.<br />
<br />
# Enter the following command to reclaim the permission settings of your home folder, replacing <your user name>, <your user group> and <your old UID> with the user name whose UID and GID values you just changed, the group name whose GID value you just changed and the old UID number, respectively.<br />
<br />
find /User/<your user name> -user <your old UID> -exec chown <your user name>:<your user group><br />
<br />
====In Arch====<br />
<br />
To synchronize your UID in Arch Linux, you are advised to perform this operation ''while creating a new user account''.<br />
It is therefore recommended that you do this as soon as you install Arch Linux.<br />
<br />
Now you must substitute Arch's home with Mac OS's home, by modify entries of the famous ''/etc/fstab'' file.<br />
<br />
==rEFIt==<br />
<br />
Now install rEFIt if you have not done so already.<br />
<br />
{{Note | this is not a requirement. It only gives you a menu to choose between OS X and Arch Linux upon every boot.}}<br />
<br />
In OS X, download the ".dmg" from -> [http://refit.sourceforge.net/ Refit Homepage] and install it.<br />
<br />
{{Note | if you have already partitioned your hard disk in preparation for the Arch installation, rEFIt may not be enabled by default. You will have to run the "enable.sh" script installed in /efi/refit/.}}<br />
<br />
Open up '''Terminal''' and enter:<br />
<br />
cd /efi/refit; ./enable.sh</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Mac&diff=76558Mac2009-09-25T23:57:13Z<p>UNIVAC: Undo revision 76557 by UNIVAC (Talk)</p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{Article summary start}}<br />
{{Article summary text | Details the installation and configuration of Arch Linux on Apple's MacBook and MacBook Pro lines of notebooks.}}<br />
{{Article summary heading | Related articles}}<br />
{{Article summary wiki | Official Arch Linux Install Guide}}<br />
{{Article summary wiki | Beginners Guide}}<br />
{{Article summary wiki | Beginners Guide Appendix}}<br />
{{Article summary wiki | Post Installation Tips}}<br />
{{Article summary end}}<br />
<br />
== Overview ==<br />
<br />
Installing Arch Linux on a MacBook is quite similar to installing it on any other computer. However, due to the specific hardware configuration on a MacBook, there are a few deviations and special considerations which warrant a separate guide. For more background information, please see the [[Official Arch Linux Install Guide]], [[Beginners Guide]], [[Beginners Guide Appendix]], and [[Post Installation Tips]].<br />
<br />
Specifically, the procedure for installing Arch Linux on a MacBook is:<br />
<br />
* '''[[#Installation of Mac OS X and Firmware Update | Install Mac OS X]]''': Regardless of the desired end-configuration, it helps to start from a clean install of OS X.<br />
* '''[[#Installation of Mac OS X and Firmware Update | Firmware Update]]''': This should help reduce errors and provide newer features for the hardware.<br />
* '''[[#Partition | Partition]]''': This step either resizes or deletes the OS X partition and creates partitions for Arch Linux.<br />
* '''[[#Installation | Install Arch Linux]]''': The actual installation procedure.<br />
* '''[[#Post-Install Configuration | Post-Install Configuration]]''': MacBook specific configuration.<br />
<br />
{{ Tip | rEFIt is a popular bootloader for EFI-firmware computers (including Macs). It can be installed at any time during the installation. For instructions, please see [[MacBook#rEFIt|rEFIt]]. }}<br />
<br />
==Installation of Mac OS X and Firmware Update==<br />
<br />
[http://www.apple.com Apple] already has excellent instructions for installing Mac OS X. Follow their instructions. Finally, once OS X is installed, go to:<br />
<br />
Apple Menu --> Software Update<br />
<br />
And update all software. Once this has run, you will need to reboot your computer. Do this, and then run '''Software Update''' again to check to make sure that all updates have been installed.<br />
<br />
{{Note | Sometimes '''Software Update''' may not pick up all the firmware updates available for your computer. However, you can try to search this upgrades directly into the Apple's Support site.}}<br />
<br />
If you are not going to have Mac OS X installed, you need to make a backup of the file:<br />
/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport<br />
<br />
You will need this file later for iSight functionality.<br />
<br />
==Partition==<br />
<br />
The next step in the installation is to re-partition the hard drive. If Mac OS X was installed using the typical procedure, then your drive should have a GPT format and the following two partitions:<br />
<br />
* '''EFI partition''': a 200 MB partition at the beginning of the disk.It is often read as '''msdos''' or '''FAT''' by some partitioning tools and usually labelled ''#1''<br />
* '''Mac OS X partition''': the ''(HFS+)'' partition that should take up all of the remaining disk space. Usually labelled ''#2''.<br />
<br />
How to partition depends on how many operating systems you want install. The following options will be proposed here:<br />
<br />
* [[#Arch Linux Only | Arch Linux Only]] for single boot.<br />
* [[#Mac OS X with Arch Linux | Mac OS X with Arch Linux]] for dual boot.<br />
<br />
If you don't know which option to pick, we recommend the dual boot so you can still return to Mac OS X whenever you want.<br />
<br />
===Arch Linux Only===<br />
<br />
This situation is the easiest to deal with. Mostly, partitioning is the same as any other hardware that Arch Linux can be installed on. The only special consideration is the MacBook firmware boot sound. To ensure that this sound is off: '''mute''' the volume in Mac OS X before continuing further. The MacBook firmware relies on the value in Mac OS X, if available.<br />
<br />
Then partition with '''parted'''. The simplest way is to change the partition table to '''msdos''' and then partition as normal. If you decide to use the GPT format, GRUB will not be able to recognize the partitioning scheme.<br />
<br />
{{Note | to partition with '''parted''', just boot the Arch Linux core install disk and run '''parted''' from the root account before using the install program.}}<br />
<br />
Once you have finished this part, please move on to [[#Installation | Installation]] section.<br />
<br />
===Mac OS X with Arch Linux===<br />
<br />
The easiest way to partition your hard drive, so that Mac OS X and Arch Linux will co-exist, is to use partitioning tools in Mac OS X and then finish with Arch Linux tools.<br />
<br />
{{Warning | It is highly recommended that this only be attempted after a clean install of Mac OS X. Using these methods on a pre-existing system may have undesired results.}}<br />
<br />
'''Procedure''':<br />
* In Mac OS X, run '''Disk Utility''' (located in /Applications/Utilities)<br />
<br />
* Select the drive to be partitioned in the left-hand column (not the partitions!). Click on the '''partition''' tab on the right.<br />
<br />
* Select the volume to be resized in the '''volume scheme.'''<br />
<br />
* Decide how much space you wish to have for your Mac OS X partition, and how much for Arch Linux. Remember that a typical installation of Mac OS X requires around 15-20 GiB, depending on the number of software applications and files.<br />
<br />
* Finally, type the new (smaller) size for the MacOS partition in the size box and click '''apply'''. This will create a new partition out of the empty space.<br />
<br />
{{Note | if you wish to have a shared partition between Mac OS X and Arch Linux, then additional steps will need to happen here. Please see [[#Shared Partition|Shared Partition]].}}<br />
<br />
* If the above completed successfully, then you can continue. If not, then you may need to fix your partitions from within Mac OS X first.<br />
<br />
* Boot the Arch install CD and run '''parted'''<br />
# parted<br />
<br />
* Delete the empty space partition and partition the space as you would for any other installation.<br />
<br />
* At this point, if you are dual booting, you should reboot your computer and have rEFIt fix the partition tables on your hard drive. (If you don't do this, you may have to reinstall GRUB later on in order to have your Mac recognize the Linux partition.) When you are into the rEFIt menu, select '''update partition table''', then press Y.<br />
# reboot<br />
<br />
* Done! Please continue to [[MacBook#Installation | installation]]<br />
<br />
==Installation==<br />
{{ Note | This section is only required if you want to have Mac OS X installed along with Arch Linux. If not, follow the steps in the official install guide, then skip to [[MacBook#Post-Install Configuration | post install]].}}<br />
<br />
* Boot from the Arch Linux install CD. Type '''arch''' at the boot prompt or '''arch vga=773''' if you prefer a higher console resolution.<br />
<br />
boot: arch vga=773<br />
<br />
{{Note | some MacBook users report strange keyboard output such as long delays and character doubling. If this is your situation, boot with follows options.}}<br />
<br />
boot: arch noapic irqpoll acpi=force<br />
<br />
* Log in as '''root'''<br />
<br />
* Run the Arch installer:<br />
<br />
/arch/setup<br />
<br />
* Proceed through the installation as described in the [[Official Arch Linux Install Guide]] '''except''' in the following areas:<br />
** In the [[Official Arch Linux Install Guide#Prepare Hard Drive | prepare hard drive]] stage do only the [[Official Arch Linux Install Guide#Set Filesystem Mountpoints | set filesystem mountpoints]] step, taking care to assign the correct partitions.<br />
** In the [[Official Arch Linux Install Guide#Install Bootloader | install boot loader]] stage, edit the menu.lst file and add '''reboot=pci''' to the end of the '''kernel''' lines, for example: <pre style="margin: .5em 0; padding: .5em 1em">kernel /vmlinuz26 root=/dev/sda5 ro reboot=pci</pre> This will allow your MacBook to reboot correctly from Arch.<br />
** Also in the [[Official Arch Linux Install Guide#Install Bootloader | install boot loader]] stage, install GRUB on whatever partition that <tt>/boot</tt> is on. {{Warning | Do not install GRUB onto ''/dev/sda'' !!! Doing so is likely to lead to an unstable post-environment.}}<br />
** In the [[Official Arch Linux Install Guide#Configure System | configure system]] stage, edit /etc/mkinitcpio.conf and add the '''usbinput''' hook to the '''HOOKS''' line somewhere after the '''autodetect''' hook. This will load the drivers for your keyboard in case you need to use it before Arch boots (e.g. entering a [[LUKS]] password or using the troubleshooting shell).<br />
<br />
* When the install process is complete, reboot your computer.<br />
# reboot<br />
<br />
* Hold down the eject key as your MacBook starts, this should eject the Arch Linux install disk.<br />
<br />
==Post-Install Configuration==<br />
<br />
{{ Tip | MacBooks require some extra software from [[AUR]]. You may wish to install this software speedly; then you should install [[Yaourt]].}}<br />
<br />
{{ Tip | this software and its configuration require Root Privileges. To speed up this procedure i hint you to install [[Sudo]].}}<br />
<br />
{{ Tip | follow one section at time.}}<br />
<br />
=== Xorg ===<br />
<br />
Install and configure Xorg by following the [[Xorg]] article.<br />
<br />
==== Video ====<br />
<br />
Different MacBook's models have different graphic cards.<br />
<br />
To see which graphic card do you have type:<br />
<br />
# lspci | grep VGA<br />
<br />
If it returns a string with '''intel''' you need '''xf86-video-intel''' driver. You can install it typing<br />
<br />
# pacman -S xf86-video-intel<br />
<br />
If it returns '''nvidia'''<br />
<br />
# pacman -S nvidia<br />
<br />
Otherwise if it returns '''ATI'''<br />
<br />
# yaourt catalyst<br />
<br />
At least, '''intel''' users don't need any other work; instead others users need a basic '''xorg.conf''' file where you can specify the right driver to use.<br />
<br />
To configure it read those pages [[ATI]] or [[NVIDIA]].<br />
<br />
==== Touchpad ====<br />
<br />
The touchpad should have basic functionality by default.<br />
<br />
To configure advanced functions, see [[Touchpad Synaptics]] and [[Xorg input hotplugging]].<br />
<br />
==== Keyboard ====<br />
<br />
MacBook keyboard works by default. Only the '''eject''' key isn't recognized properly.<br />
<br />
To enable it you can map with right application like '''xbindkeys''' or through DE preferences; but another very good way, that we recommend, is to install '''pommed''' from [[AUR]].<br />
<br />
To install and configure '''pommed''' is easily:<br />
<br />
# yaourt pommed<br />
<br />
to install it, after<br />
<br />
Edit the '''/etc/pommed.conf''' according to your hardware on MacBook, building<br />
it from '''/etc/pommed.conf.mac''' or '''/etc/pommed.conf.ppc''' example files.<br />
<br />
then<br />
<br />
Put '''pommed''' at the end in your '''DAEMONS''' array in your '''/etc/rc.conf'''<br />
<br />
finally reboot your pc.<br />
<br />
{{ Tip | if you are using Gnome or KDE you can easily configure ''3rd level functionality'', ''multimedia key'', etc. in Keyboard Preferences.}}<br />
<br />
{{ Note | see the [[Xorg input hotplugging]] page for other configuration information.}}<br />
<br />
=== Wifi ===<br />
<br />
Different MacBook models have different wireless cards.<br />
<br />
You can easily check what card do your MacBook have by:<br />
<br />
# lspci | grep Network<br />
<br />
* if you have an Atheros all should works-out-of-the-box.<br />
<br />
* instead if you have a Broadcom follow the [[Broadcom BCM4312]] page.<br />
<br />
=== Sound ===<br />
<br />
First of all follow [[ALSA]] wiki page, then if something doesn't work correctly, continue reading this part.<br />
<br />
Edit your '''/etc/modprobe.d/50-sound.conf''', appending this line:<br />
<br />
options snd_hda_intel model=intel-mac-auto<br />
<br />
This should automatically specify the codec in your MacBook.<br />
<br />
{{ Note | you can try to specify other options, agree with in your hardware. All other possible settings are listed in Kernel Documentation, avaible online:<br />
<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/ALSA-Configuration.txt ALSA-Configuration.txt]<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio.txt HD-Audio.txt]<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt HD-Audio-Models.txt].}}<br />
<br />
At least reboot.<br />
<br />
=== Bluetooth ===<br />
<br />
See the article on [[Bluetooth]] to install and configure all software needed.<br />
<br />
Then if Bluetooth doesn't work out-of-the-box, you should edit your '''/etc/conf.d/bluetooth''' to enable '''hid2hci''' by uncommenting related line as follows:<br />
<br />
HID2HCI_ENABLE="true"<br />
<br />
Then restart your bluetooth daemon or simply reboot your pc.<br />
<br />
{{ Tip | for advanced bluetooth information see [[Bluetooth]] page.}}<br />
<br />
=== iSight ===<br />
<br />
{{ Note | linux kernel from 2.6.26 includes the '''Linux UVC driver''' natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.}}<br />
<br />
iSight webcams require the Apple's proprietary firmware that can't be redistributed because proprietary. Then we must extract it from MacOS and load it Arch.<br />
<br />
Tools to extract firmware is available at [http://bersace03.free.fr/ift/ http://bersace03.free.fr/ift/] but we can found it on AUR [http://aur.archlinux.org/packages.php?ID=23525 isight-firmware-tools]. <br />
<br />
Instructions:<br />
<br />
First you need to get the firmware out of a particular file located on your OS X install. It is located in '''/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport'''.<br />
<br />
To get it, mounts the MacOSX drive with:<br />
<br />
# sudo mkdir /media/MacOSX<br />
# sudo mount -t hfsplus /dev/sda2 /media/MacOSX<br />
<br />
Then install the firmware extractor and let it do the work for you<br />
<br />
# yaourt isight-firmware-tools<br />
<br />
and click OK to accept the default path (/media/MacOSX/System...).<br />
<br />
When it's done check that the firmware has been found:<br />
<br />
# ls /lib/firmware/isight.fw<br />
<br />
Once that is done, you need to completely SHUTDOWN your Mac and start it back up again (because this clears the hardware state of the camera).<br />
<br />
{{ Tip | to save very much time in the future, you just need to place the '''isight.fw''' file you saved in '''/lib/firmware/''' and then shutdown and reboot as instructed above.}}<br />
<br />
Finally you can load the '''uvcvideo''' module or add it at the end of MODULES() array into your '''/etc/rc.conf''' if you want it to load at boot.<br />
<br />
Everything should works.<br />
<br />
To test it there are many software:<br />
<br />
* MPlayer<br />
<br />
# mplayer tv:// -tv driver=v4l2:width=1280:height=1024:device=/dev/video0 -fps 20<br />
<br />
* Cheese<br />
* Skype<br />
* Ekiga<br />
<br />
=== Temperature Sensors ===<br />
<br />
For reading temperature just install and configure '''lm_sensors'''.<br />
See [[Lm sensors]] page.<br />
<br />
=== Color Profile ===<br />
<br />
We can use color profiles from Mac OS.<br />
<br />
First install '''xcalib''' from AUR:<br />
<br />
# yaourt xcalib<br />
<br />
Second copy pre-saved color profiles placed in '''/Library/ColorSync/Profiles/Displays/''' on Mac OS partition to '''~/colorprofiles/''' for example.<br />
<br />
There are color profile files agree with in MacBook models; select the right one:<br />
<br />
* '''Color LCD-4271800.icc''' for MacBook Pro with CoreDuo CPU<br />
* '''Color LCD-4271880.icc''' for MacBook with Core2Duo<br />
* '''Color LCD-4271780.icc''' for MacBook (not Pro) based on CoreDuo or Core2Duo.<br />
<br />
<br />
{{ Tip | also Mac OS allows to save current color profile from '''Displays -> Color''' section of the '''Mac OS System Preferences''', in this case file is saved to '''/Users/<username>/Library/ColorSync/Profiles'''.}}<br />
<br />
Finally you can activate it by running<br />
<br />
# xcalib ~/colorprofile.icc<br />
<br />
{{ Warning | previous command set the color profile only for the current session; this mean that you must run it every time you login in your system. For automating it you can execute the command by '''Autostart Application''', concording with your DE.}}<br />
<br />
{{ Note | see '''xcalib''' man pages for further information.}}<br />
<br />
=== Apple Remote ===<br />
<br />
First, to correctly install and configure the '''lirc''' software that control IR see [[Lirc]] wiki.<br />
<br />
Then make LIRC use '''/dev/usb/hiddev0''' (or '''/dev/hiddev0''') by editing '''/etc/conf.d/lircd'''.<br />
<br />
Use '''irrecord''' (available when installing lirc) to create a config file matching your remote control signals.<br />
<br />
Start '''lircd''' and use '''irw''' to check if it works.<br />
<br />
Example of an '''/etc/lircd.conf''':<br />
<br />
begin remote<br />
<br />
name lircd.conf.macbook<br />
bits 8<br />
eps 30<br />
aeps 100<br />
<br />
one 0 0<br />
zero 0 0<br />
pre_data_bits 24<br />
pre_data 0x87EEFD<br />
gap 211994<br />
toggle_bit_mask 0x87EEFD01<br />
<br />
begin codes<br />
Repeat 0x01<br />
Menu 0x03<br />
Play 0x05<br />
Prev 0x09<br />
Next 0x06<br />
Up 0x0A<br />
Down 0x0C<br />
end codes<br />
<br />
end remote<br />
<br />
((Load '''appleir''' if it isn't.))<br />
<br />
===Hfs Partition Sharing===<br />
<br />
First, we have to list our partitions. Use<br />
<br />
fdisk -l /dev/sda<br />
<br />
example output:<br />
<br />
# fdisk -l /dev/sda<br />
Device Boot Start End Blocks Id Type<br />
/dev/sda1 1 26 204819 ee GPT<br />
/dev/sda2 26 13602 109051903+ af Unknown<br />
/dev/sda3 * 13602 14478 7031250 83 Linux<br />
/dev/sda4 14478 14594 932832+ 82 Linux swap / Solaris<br />
<br />
As we see, the "Unknown" partition is our OS X partition, which is located in <code>/dev/sda2</code>.<br />
<br />
Create a "mac" folder in /media:<br />
<br />
sudo mkdir /media/mac<br />
<br />
Add at the end of ''/etc/fstab'' this line:<br />
<br />
/dev/sda2 /media/mac hfsplus rw,exec,auto,users 0 0<br />
<br />
Mount it :<br />
<br />
mount /media/mac<br />
<br />
and check it:<br />
<br />
ls /media/mac<br />
<br />
===Home Sharing===<br />
<br />
'''''UID Synchronization'''''<br />
<br />
====In OS X====<br />
<br />
{{Note | it is strongly recommended that UID/GID manipulation be done immediately after a new user account is created, in OS X as well as in Arch Linux. If you installed OS X from scratch, then this operation is guaranteed to work after logging into your account for the first time.}}<br />
<br />
=====Step 1: Change UID and GID(s)=====<br />
<br />
'''''Pre-Leopard'''''<br />
<br />
# Open '''NetInfo Manager''' located in the ''/Applications/Utilities'' folder.<br />
<br />
# If not done for you already, enable access to user account transactions by clicking on the closed lock at the bottom of the window, and entering your account password, or root password if you have created a root account.<br />
<br />
# Navigate to ''/users/<new user name>'' where <new user name> is the name of the account that will have read/write access to the folder that will be shared with the primary user in Arch.<br />
<br />
# Change the '''UID''' value to 1000 (the value used by default for first user created in Arch).<br />
<br />
# Also change the '''GID''' value to 1000 (the value used by default for user account creation in Arch).<br />
<br />
# Navigate to ''/groups/<new user name>'', automatically saving the changes you have made so far.<br />
<br />
{{Note | if you get an error message that the transaction is not allowed, log out and log back in.}}<br />
<br />
'''''Leopard'''''<br />
<br />
In Leopard, the '''NetInfo Manager''' application is not present. A different set of steps is required for UID synchronization:<br />
<br />
# Open '''System Preferences'''.<br />
<br />
# Click on '''Accounts'''.<br />
<br />
# Unlock the pane if not already done so.<br />
<br />
# Right-click on the desired user and select '''Advanced Options'''.<br />
<br />
# Write down the value of the '''User ID''' field, you'll need it later on. Change both the UID and GID to match the UID and GID of the account wished to be shared with in Arch (1000 by default for the first user created in Arch).<br />
<br />
=====Step 2: Change "Home" Permissions=====<br />
<br />
# Open up '''Terminal''' in the ''/Applications/Utilities'' folder.<br />
<br />
# Enter the following command to reclaim the permission settings of your home folder, replacing <your user name>, <your user group> and <your old UID> with the user name whose UID and GID values you just changed, the group name whose GID value you just changed and the old UID number, respectively.<br />
<br />
find /User/<your user name> -user <your old UID> -exec chown <your user name>:<your user group><br />
<br />
====In Arch====<br />
<br />
To synchronize your UID in Arch Linux, you are advised to perform this operation ''while creating a new user account''.<br />
It is therefore recommended that you do this as soon as you install Arch Linux.<br />
<br />
Now you must substitute Arch's home with Mac OS's home, by modify entries of the famous ''/etc/fstab'' file.<br />
<br />
==rEFIt==<br />
<br />
Now install rEFIt if you have not done so already.<br />
<br />
{{Note | this is not a requirement. It only gives you a menu to choose between OS X and Arch Linux upon every boot.}}<br />
<br />
In OS X, download the ".dmg" from -> [http://refit.sourceforge.net/ Refit Homepage] and install it.<br />
<br />
{{Note | if you have already partitioned your hard disk in preparation for the Arch installation, rEFIt may not be enabled by default. You will have to run the "enable.sh" script installed in /efi/refit/.}}<br />
<br />
Open up '''Terminal''' and enter:<br />
<br />
cd /efi/refit; ./enable.sh</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Mac&diff=76557Mac2009-09-25T23:55:06Z<p>UNIVAC: format</p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{Article summary start}}<br />
{{Article summary text | Details the installation and configuration of Arch Linux on Apple's MacBook and MacBook Pro lines of notebooks.}}<br />
{{Article summary heading | Related articles}}<br />
{{Article summary wiki | Official Arch Linux Install Guide}}<br />
{{Article summary wiki | Beginners Guide}}<br />
{{Article summary wiki | Beginners Guide Appendix}}<br />
{{Article summary wiki | Post Installation Tips}}<br />
{{Article summary end}}<br />
== Overview ==<br />
Installing Arch Linux on a MacBook is quite similar to installing it on any other computer. However, due to the specific hardware configuration on a MacBook, there are a few deviations and special considerations which warrant a separate guide. For more background information, please see the [[Official Arch Linux Install Guide]], [[Beginners Guide]], [[Beginners Guide Appendix]], and [[Post Installation Tips]].<br />
<br />
Specifically, the procedure for installing Arch Linux on a MacBook is:<br />
<br />
* '''[[#Installation of Mac OS X and Firmware Update | Install Mac OS X]]''': Regardless of the desired end-configuration, it helps to start from a clean install of OS X.<br />
* '''[[#Installation of Mac OS X and Firmware Update | Firmware Update]]''': This should help reduce errors and provide newer features for the hardware.<br />
* '''[[#Partition | Partition]]''': This step either resizes or deletes the OS X partition and creates partitions for Arch Linux.<br />
* '''[[#Installation | Install Arch Linux]]''': The actual installation procedure.<br />
* '''[[#Post-Install Configuration | Post-Install Configuration]]''': MacBook specific configuration.<br />
<br />
{{ Tip | rEFIt is a popular bootloader for EFI-firmware computers (including Macs). It can be installed at any time during the installation. For instructions, please see [[MacBook#rEFIt|rEFIt]]. }}<br />
<br />
==Installation of Mac OS X and Firmware Update==<br />
[http://www.apple.com Apple] already has excellent instructions for installing Mac OS X. Follow their instructions. Finally, once OS X is installed, go to:<br />
<br />
Apple Menu --> Software Update<br />
<br />
And update all software. Once this has run, you will need to reboot your computer. Do this, and then run '''Software Update''' again to check to make sure that all updates have been installed.<br />
<br />
{{Note | Sometimes '''Software Update''' may not pick up all the firmware updates available for your computer. However, you can try to search this upgrades directly into the Apple's Support site.}}<br />
<br />
If you are not going to have Mac OS X installed, you need to make a backup of the file:<br />
/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport<br />
<br />
You will need this file later for iSight functionality.<br />
<br />
==Partition==<br />
The next step in the installation is to re-partition the hard drive. If Mac OS X was installed using the typical procedure, then your drive should have a GPT format and the following two partitions:<br />
<br />
* '''EFI partition''': a 200 MB partition at the beginning of the disk.It is often read as '''msdos''' or '''FAT''' by some partitioning tools and usually labelled ''#1''<br />
* '''Mac OS X partition''': the ''(HFS+)'' partition that should take up all of the remaining disk space. Usually labelled ''#2''.<br />
<br />
How to partition depends on how many operating systems you want install. The following options will be proposed here:<br />
<br />
* [[#Arch Linux Only | Arch Linux Only]] for single boot.<br />
* [[#Mac OS X with Arch Linux | Mac OS X with Arch Linux]] for dual boot.<br />
<br />
If you don't know which option to pick, we recommend the dual boot so you can still return to Mac OS X whenever you want.<br />
<br />
===Arch Linux Only===<br />
This situation is the easiest to deal with. Mostly, partitioning is the same as any other hardware that Arch Linux can be installed on. The only special consideration is the MacBook firmware boot sound. To ensure that this sound is off: '''mute''' the volume in Mac OS X before continuing further. The MacBook firmware relies on the value in Mac OS X, if available.<br />
<br />
Then partition with '''parted'''. The simplest way is to change the partition table to '''msdos''' and then partition as normal. If you decide to use the GPT format, GRUB will not be able to recognize the partitioning scheme.<br />
<br />
{{Note | to partition with '''parted''', just boot the Arch Linux core install disk and run '''parted''' from the root account before using the install program.}}<br />
<br />
Once you have finished this part, please move on to [[#Installation | Installation]] section.<br />
<br />
===Mac OS X with Arch Linux===<br />
The easiest way to partition your hard drive, so that Mac OS X and Arch Linux will co-exist, is to use partitioning tools in Mac OS X and then finish with Arch Linux tools.<br />
<br />
{{Warning | It is highly recommended that this only be attempted after a clean install of Mac OS X. Using these methods on a pre-existing system may have undesired results.}}<br />
<br />
'''Procedure''':<br />
* In Mac OS X, run '''Disk Utility''' (located in /Applications/Utilities)<br />
<br />
* Select the drive to be partitioned in the left-hand column (not the partitions!). Click on the '''partition''' tab on the right.<br />
<br />
* Select the volume to be resized in the '''volume scheme.'''<br />
<br />
* Decide how much space you wish to have for your Mac OS X partition, and how much for Arch Linux. Remember that a typical installation of Mac OS X requires around 15-20 GiB, depending on the number of software applications and files.<br />
<br />
* Finally, type the new (smaller) size for the MacOS partition in the size box and click '''apply'''. This will create a new partition out of the empty space.<br />
<br />
{{Note | if you wish to have a shared partition between Mac OS X and Arch Linux, then additional steps will need to happen here. Please see [[#Shared Partition|Shared Partition]].}}<br />
<br />
* If the above completed successfully, then you can continue. If not, then you may need to fix your partitions from within Mac OS X first.<br />
<br />
* Boot the Arch install CD and run '''parted'''<br />
# parted<br />
<br />
* Delete the empty space partition and partition the space as you would for any other installation.<br />
<br />
* At this point, if you are dual booting, you should reboot your computer and have rEFIt fix the partition tables on your hard drive. (If you don't do this, you may have to reinstall GRUB later on in order to have your Mac recognize the Linux partition.) When you are into the rEFIt menu, select '''update partition table''', then press Y.<br />
# reboot<br />
<br />
* Done! Please continue to [[MacBook#Installation | installation]]<br />
<br />
==Installation==<br />
{{ Note | This section is only required if you want to have Mac OS X installed along with Arch Linux. If not, follow the steps in the official install guide, then skip to [[MacBook#Post-Install Configuration | post install]].}}<br />
<br />
* Boot from the Arch Linux install CD. Type '''arch''' at the boot prompt or '''arch vga=773''' if you prefer a higher console resolution.<br />
<br />
boot: arch vga=773<br />
<br />
{{Note | some MacBook users report strange keyboard output such as long delays and character doubling. If this is your situation, boot with follows options.}}<br />
<br />
boot: arch noapic irqpoll acpi=force<br />
<br />
* Log in as '''root'''<br />
<br />
* Run the Arch installer:<br />
<br />
/arch/setup<br />
<br />
* Proceed through the installation as described in the [[Official Arch Linux Install Guide]] '''except''' in the following areas:<br />
** In the [[Official Arch Linux Install Guide#Prepare Hard Drive | prepare hard drive]] stage do only the [[Official Arch Linux Install Guide#Set Filesystem Mountpoints | set filesystem mountpoints]] step, taking care to assign the correct partitions.<br />
** In the [[Official Arch Linux Install Guide#Install Bootloader | install boot loader]] stage, edit the menu.lst file and add '''reboot=pci''' to the end of the '''kernel''' lines, for example: <pre style="margin: .5em 0; padding: .5em 1em">kernel /vmlinuz26 root=/dev/sda5 ro reboot=pci</pre> This will allow your MacBook to reboot correctly from Arch.<br />
** Also in the [[Official Arch Linux Install Guide#Install Bootloader | install boot loader]] stage, install GRUB on whatever partition that <tt>/boot</tt> is on. {{Warning | Do not install GRUB onto ''/dev/sda'' !!! Doing so is likely to lead to an unstable post-environment.}}<br />
** In the [[Official Arch Linux Install Guide#Configure System | configure system]] stage, edit /etc/mkinitcpio.conf and add the '''usbinput''' hook to the '''HOOKS''' line somewhere after the '''autodetect''' hook. This will load the drivers for your keyboard in case you need to use it before Arch boots (e.g. entering a [[LUKS]] password or using the troubleshooting shell).<br />
<br />
* When the install process is complete, reboot your computer.<br />
# reboot<br />
<br />
* Hold down the eject key as your MacBook starts, this should eject the Arch Linux install disk.<br />
<br />
==Post-Install Configuration==<br />
{{ Tip | MacBooks require some extra software from [[AUR]]. You may wish to install this software speedly; then you should install [[Yaourt]].}}<br />
<br />
{{ Tip | this software and its configuration require Root Privileges. To speed up this procedure i hint you to install [[Sudo]].}}<br />
<br />
{{ Tip | follow one section at time.}}<br />
<br />
===Xorg===<br />
Install and configure Xorg by following the [[Xorg]] article.<br />
<br />
====Video====<br />
Different MacBook's models have different graphic cards.<br />
<br />
To see which graphic card do you have type:<br />
<br />
# lspci | grep VGA<br />
<br />
If it returns a string with '''intel''' you need '''xf86-video-intel''' driver. You can install it typing<br />
<br />
# pacman -S xf86-video-intel<br />
<br />
If it returns '''nvidia'''<br />
<br />
# pacman -S nvidia<br />
<br />
Otherwise if it returns '''ATI'''<br />
<br />
# yaourt catalyst<br />
<br />
At least, '''intel''' users don't need any other work; instead others users need a basic '''xorg.conf''' file where you can specify the right driver to use.<br />
<br />
To configure it read those pages [[ATI]] or [[NVIDIA]].<br />
<br />
====Touchpad====<br />
The touchpad should have basic functionality by default.<br />
<br />
To configure advanced functions, see [[Touchpad Synaptics]] and [[Xorg input hotplugging]].<br />
<br />
====Keyboard====<br />
MacBook keyboard works by default. Only the '''eject''' key isn't recognized properly.<br />
<br />
To enable it you can map with right application like '''xbindkeys''' or through DE preferences; but another very good way, that we recommend, is to install '''pommed''' from [[AUR]].<br />
<br />
To install and configure '''pommed''' is easily:<br />
<br />
# yaourt pommed<br />
<br />
to install it, after<br />
<br />
Edit the '''/etc/pommed.conf''' according to your hardware on MacBook, building<br />
it from '''/etc/pommed.conf.mac''' or '''/etc/pommed.conf.ppc''' example files.<br />
<br />
then<br />
<br />
Put '''pommed''' at the end in your '''DAEMONS''' array in your '''/etc/rc.conf'''<br />
<br />
finally reboot your pc.<br />
<br />
{{ Tip | if you are using Gnome or KDE you can easily configure ''3rd level functionality'', ''multimedia key'', etc. in Keyboard Preferences.}}<br />
<br />
{{ Note | see the [[Xorg input hotplugging]] page for other configuration information.}}<br />
<br />
===Wifi===<br />
Different MacBook models have different wireless cards.<br />
<br />
You can easily check what card do your MacBook have by:<br />
<br />
# lspci | grep Network<br />
<br />
* if you have an Atheros all should works-out-of-the-box.<br />
<br />
* instead if you have a Broadcom follow the [[Broadcom BCM4312]] page.<br />
<br />
===Sound===<br />
First of all follow [[ALSA]] wiki page, then if something doesn't work correctly, continue reading this part.<br />
<br />
Edit your '''/etc/modprobe.d/50-sound.conf''', appending this line:<br />
<br />
options snd_hda_intel model=intel-mac-auto<br />
<br />
This should automatically specify the codec in your MacBook.<br />
<br />
{{ Note | you can try to specify other options, agree with in your hardware. All other possible settings are listed in Kernel Documentation, avaible online:<br />
<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/ALSA-Configuration.txt ALSA-Configuration.txt]<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio.txt HD-Audio.txt]<br />
* [http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt HD-Audio-Models.txt].}}<br />
<br />
At least reboot.<br />
<br />
===Bluetooth===<br />
See the article on [[Bluetooth]] to install and configure all software needed.<br />
<br />
Then if Bluetooth doesn't work out-of-the-box, you should edit your '''/etc/conf.d/bluetooth''' to enable '''hid2hci''' by uncommenting related line as follows:<br />
<br />
HID2HCI_ENABLE="true"<br />
<br />
Then restart your bluetooth daemon or simply reboot your pc.<br />
<br />
{{ Tip | for advanced bluetooth information see [[Bluetooth]] page.}}<br />
<br />
===iSight===<br />
{{ Note | linux kernel from 2.6.26 includes the '''Linux UVC driver''' natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.}}<br />
<br />
iSight webcams require the Apple's proprietary firmware that can't be redistributed because proprietary. Then we must extract it from MacOS and load it Arch.<br />
<br />
Tools to extract firmware is available at [http://bersace03.free.fr/ift/ http://bersace03.free.fr/ift/] but we can found it on AUR [http://aur.archlinux.org/packages.php?ID=23525 isight-firmware-tools]. <br />
<br />
Instructions:<br />
<br />
First you need to get the firmware out of a particular file located on your OS X install. It is located in '''/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport'''.<br />
<br />
To get it, mounts the MacOSX drive with:<br />
<br />
# sudo mkdir /media/MacOSX<br />
# sudo mount -t hfsplus /dev/sda2 /media/MacOSX<br />
<br />
Then install the firmware extractor and let it do the work for you<br />
<br />
# yaourt isight-firmware-tools<br />
<br />
and click OK to accept the default path (/media/MacOSX/System...).<br />
<br />
When it's done check that the firmware has been found:<br />
<br />
# ls /lib/firmware/isight.fw<br />
<br />
Once that is done, you need to completely SHUTDOWN your Mac and start it back up again (because this clears the hardware state of the camera).<br />
<br />
{{ Tip | to save very much time in the future, you just need to place the '''isight.fw''' file you saved in '''/lib/firmware/''' and then shutdown and reboot as instructed above.}}<br />
<br />
Finally you can load the '''uvcvideo''' module or add it at the end of MODULES() array into your '''/etc/rc.conf''' if you want it to load at boot.<br />
<br />
Everything should works.<br />
<br />
To test it there are many software:<br />
<br />
* MPlayer<br />
<br />
# mplayer tv:// -tv driver=v4l2:width=1280:height=1024:device=/dev/video0 -fps 20<br />
<br />
* Cheese<br />
* Skype<br />
* Ekiga<br />
<br />
===Temperature Sensors===<br />
For reading temperature just install and configure '''lm_sensors'''.<br />
See [[Lm sensors]] page.<br />
<br />
===Color Profile===<br />
We can use color profiles from Mac OS.<br />
<br />
First install '''xcalib''' from AUR:<br />
<br />
# yaourt xcalib<br />
<br />
Second copy pre-saved color profiles placed in '''/Library/ColorSync/Profiles/Displays/''' on Mac OS partition to '''~/colorprofiles/''' for example.<br />
<br />
There are color profile files agree with in MacBook models; select the right one:<br />
<br />
* '''Color LCD-4271800.icc''' for MacBook Pro with CoreDuo CPU<br />
* '''Color LCD-4271880.icc''' for MacBook with Core2Duo<br />
* '''Color LCD-4271780.icc''' for MacBook (not Pro) based on CoreDuo or Core2Duo.<br />
<br />
<br />
{{ Tip | also Mac OS allows to save current color profile from '''Displays -> Color''' section of the '''Mac OS System Preferences''', in this case file is saved to '''/Users/<username>/Library/ColorSync/Profiles'''.}}<br />
<br />
Finally you can activate it by running<br />
<br />
# xcalib ~/colorprofile.icc<br />
<br />
{{ Warning | previous command set the color profile only for the current session; this mean that you must run it every time you login in your system. For automating it you can execute the command by '''Autostart Application''', concording with your DE.}}<br />
<br />
{{ Note | see '''xcalib''' man pages for further information.}}<br />
<br />
===Apple Remote===<br />
First, to correctly install and configure the '''lirc''' software that control IR see [[Lirc]] wiki.<br />
<br />
Then make LIRC use '''/dev/usb/hiddev0''' (or '''/dev/hiddev0''') by editing '''/etc/conf.d/lircd'''.<br />
<br />
Use '''irrecord''' (available when installing lirc) to create a config file matching your remote control signals.<br />
<br />
Start '''lircd''' and use '''irw''' to check if it works.<br />
<br />
Example of an '''/etc/lircd.conf''':<br />
<br />
begin remote<br />
<br />
name lircd.conf.macbook<br />
bits 8<br />
eps 30<br />
aeps 100<br />
<br />
one 0 0<br />
zero 0 0<br />
pre_data_bits 24<br />
pre_data 0x87EEFD<br />
gap 211994<br />
toggle_bit_mask 0x87EEFD01<br />
<br />
begin codes<br />
Repeat 0x01<br />
Menu 0x03<br />
Play 0x05<br />
Prev 0x09<br />
Next 0x06<br />
Up 0x0A<br />
Down 0x0C<br />
end codes<br />
<br />
end remote<br />
<br />
((Load '''appleir''' if it isn't.))<br />
<br />
===Hfs Partition Sharing===<br />
First, we have to list our partitions. Use<br />
<br />
fdisk -l /dev/sda<br />
<br />
example output:<br />
<br />
# fdisk -l /dev/sda<br />
Device Boot Start End Blocks Id Type<br />
/dev/sda1 1 26 204819 ee GPT<br />
/dev/sda2 26 13602 109051903+ af Unknown<br />
/dev/sda3 * 13602 14478 7031250 83 Linux<br />
/dev/sda4 14478 14594 932832+ 82 Linux swap / Solaris<br />
<br />
As we see, the "Unknown" partition is our OS X partition, which is located in <code>/dev/sda2</code>.<br />
<br />
Create a "mac" folder in /media:<br />
<br />
sudo mkdir /media/mac<br />
<br />
Add at the end of ''/etc/fstab'' this line:<br />
<br />
/dev/sda2 /media/mac hfsplus rw,exec,auto,users 0 0<br />
<br />
Mount it :<br />
<br />
mount /media/mac<br />
<br />
and check it:<br />
<br />
ls /media/mac<br />
<br />
===Home Sharing===<br />
'''''UID Synchronization'''''<br />
<br />
====In OS X====<br />
{{Note | it is strongly recommended that UID/GID manipulation be done immediately after a new user account is created, in OS X as well as in Arch Linux. If you installed OS X from scratch, then this operation is guaranteed to work after logging into your account for the first time.}}<br />
<br />
=====Step 1: Change UID and GID(s)=====<br />
'''''Pre-Leopard'''''<br />
<br />
# Open '''NetInfo Manager''' located in the ''/Applications/Utilities'' folder.<br />
<br />
# If not done for you already, enable access to user account transactions by clicking on the closed lock at the bottom of the window, and entering your account password, or root password if you have created a root account.<br />
<br />
# Navigate to ''/users/<new user name>'' where <new user name> is the name of the account that will have read/write access to the folder that will be shared with the primary user in Arch.<br />
<br />
# Change the '''UID''' value to 1000 (the value used by default for first user created in Arch).<br />
<br />
# Also change the '''GID''' value to 1000 (the value used by default for user account creation in Arch).<br />
<br />
# Navigate to ''/groups/<new user name>'', automatically saving the changes you have made so far.<br />
<br />
{{Note | if you get an error message that the transaction is not allowed, log out and log back in.}}<br />
<br />
'''''Leopard'''''<br />
<br />
In Leopard, the '''NetInfo Manager''' application is not present. A different set of steps is required for UID synchronization:<br />
<br />
# Open '''System Preferences'''.<br />
<br />
# Click on '''Accounts'''.<br />
<br />
# Unlock the pane if not already done so.<br />
<br />
# Right-click on the desired user and select '''Advanced Options'''.<br />
<br />
# Write down the value of the '''User ID''' field, you'll need it later on. Change both the UID and GID to match the UID and GID of the account wished to be shared with in Arch (1000 by default for the first user created in Arch).<br />
<br />
=====Step 2: Change "Home" Permissions=====<br />
# Open up '''Terminal''' in the ''/Applications/Utilities'' folder.<br />
<br />
# Enter the following command to reclaim the permission settings of your home folder, replacing <your user name>, <your user group> and <your old UID> with the user name whose UID and GID values you just changed, the group name whose GID value you just changed and the old UID number, respectively.<br />
<br />
find /User/<your user name> -user <your old UID> -exec chown <your user name>:<your user group><br />
<br />
====In Arch====<br />
To synchronize your UID in Arch Linux, you are advised to perform this operation ''while creating a new user account''.<br />
It is therefore recommended that you do this as soon as you install Arch Linux.<br />
<br />
Now you must substitute Arch's home with Mac OS's home, by modify entries of the famous ''/etc/fstab'' file.<br />
<br />
==rEFIt==<br />
Now install rEFIt if you have not done so already.<br />
<br />
{{Note | this is not a requirement. It only gives you a menu to choose between OS X and Arch Linux upon every boot.}}<br />
<br />
In OS X, download the ".dmg" from -> [http://refit.sourceforge.net/ Refit Homepage] and install it.<br />
<br />
{{Note | if you have already partitioned your hard disk in preparation for the Arch installation, rEFIt may not be enabled by default. You will have to run the "enable.sh" script installed in /efi/refit/.}}<br />
<br />
Open up '''Terminal''' and enter:<br />
<br />
cd /efi/refit; ./enable.sh</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Bash&diff=76556Bash2009-09-25T23:33:27Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Command shells (English)]]<br />
[[Category:General (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Bash}}<br />
{{i18n_entry|Italiano|Bash (Italiano)}}<br />
{{i18n_entry|简体中文|Bash (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
Bash is Arch Linux's default shell. <br />
<br />
=Tips & Tricks=<br />
<br />
===History Search===<br />
Usually, pressing the <up> key will cause the last command to be shown, no matter what you typed so far. However, many users find it more practical to only past commands that begin with the current input.<br />
<br />
Consider this list of commands:<br />
* {{Codeline|ls /usr/src/linux-2.6.15-ARCH/kernel/power/Kconfig}}<br />
* {{Codeline|who}}<br />
* {{Codeline|mount}}<br />
* {{Codeline|man mount}}<br />
<br />
Usually, when typing 'ls' and pressing <up>, your current input will be replaced with 'man mount'. If you are using history seach, only past commands beginning with 'ls' (the current input) will be shown, in this case 'ls /usr/src/linux-2.6.15-ARCH/kernel/power/Kconfig'.<br />
<br />
You can enable this mode by adding to {{Filename|/etc/inputrc}} or your {{Filename|~/.inputrc}}<br />
"\e[A":history-search-backward<br />
"\e[B":history-search-forward<br />
<br />
Alternatively, you can use Ctrl-r (reverse-search-history), which does not search based on your previous input but instead jumps backwards in the history buffer as you type in a search term (this is called an "incremental search" in bash). <br />
<br />
Pressing Ctrl+r again during this mode will take you to the previous line in the buffer that matches the current search term, while pressing Ctrl+g (abort) will cancel the search and take you back to the current input line. So in order to search through all your previous mount commands, press Ctrl+r, type 'mount' and keep pressing Ctrl+r until you find the line you were looking for. <br />
<br />
The forward equivalent to this mode is called forward-search-history and is bound to Ctrl-s by default. Beware though that most terminals override Ctrl+s to suspend execution until you press Ctrl-q. (This is called XON/XOFF flow control). If you want to use forward-search-history you can either disable flow control by issuing<br />
<br />
$ stty -xion<br />
<br />
or you can use a different key in your {{Filename|inputrc}}, for example Alt+s, which is not bound by default:<br />
<br />
"\es":forward-search-history<br />
<br />
===Readline Macros===<br />
<br />
Readline also supports binding keys to keyboard macros. For simple example, run this command in bash:<br />
<br />
bind '"\ew":"\C-e # macro"'<br />
<br />
or add the part within single quotes to your inputrc:<br />
<br />
"\ew":"\C-e # macro"<br />
<br />
Now type a line and press Alt+w. Readline will act as though you had presses Ctrl-e (end-of-line) typed ' # macro'.<br />
<br />
You can use any of the existing keybindings within a readline macro, which can be quite useful to automate frequently used idioms.<br />
<br />
For example, this one makes Ctrl+Alt+l append "| less" to the line and run it (Ctrl+m is equivalent to <Enter>:<br />
<br />
"\e\C-l":"\C-e | less\C-m"<br />
<br />
The next one prefixes the line with 'yes |' when pressing Ctrl+Alt+y, confirming any yes/no question the command might ask:<br />
<br />
"\e\C-y":"\C-ayes | \C-m"<br />
<br />
This example wraps the line in su -c &#39;&#39; if you press Alt+s<br />
<br />
"\es":"\C-a su -c '\C-e'\C-m"<br />
<br />
As a last example. quickly send a command in the background with Ctrl+Alt+b, discarding all it's output:<br />
<br />
"\e\C-b":"\C-e > /dev/null 2>&1 &\C-m"<br />
<br />
As you can see, using readline macros can save you a lot of typing.<br />
<br />
===Enabling Advanced Bash Completion===<br />
Bash provides some simple tab-completion facilities out of the box, e.g. completing command and variable names. The bash-completion package extends this functionality by adding completion to a wide range of commands and their options. Enabling advanced bash completion is quite simple. Here's how.<br />
# pacman -Sy bash-completion<br />
<br />
If you want advanced bash completion enabled automatically, you will need to source it from ~/.bashrc.<br />
# Use bash-completion, if available<br />
if [ -f /etc/bash_completion ]; then<br />
. /etc/bash_completion<br />
fi<br />
<br />
If you would like to enable it in your current terminal, just type:<br />
$ . /etc/bash_completion<br />
<br />
Note that if you have several terminals open, you will have to run the command in each of them.<br />
<br />
=Resources=<br />
* [http://tldp.org/LDP/abs/html/ Advanced Bash Scripting Guide] - Very good resource regarding shell scripting using bash<br />
* [http://www.gnu.org/software/bash/manual/bashref.html Bash Reference Manual] - Official reference (654K!)<br />
* [http://www.gnu.org/software/bash/manual/bash.html man page]<br />
* [http://wooledge.org/mywiki/BashFaq FAQ/Wiki]<br />
* [http://tiswww.case.edu/php/chet/readline/rluserman.html Readline Guide]<br />
* [http://www.grymoire.com/Unix/Quote.html Quote Tutorial]<br />
* [http://www.caliban.org/bash Completion Guide]</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Bash&diff=76555Bash2009-09-25T23:31:38Z<p>UNIVAC: removed random manpage excerpts, moved resources to last section (most articles follow this format)</p>
<hr />
<div>[[Category:Command shells (English)]]<br />
[[Category:General (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Bash}}<br />
{{i18n_entry|Italiano|Bash (Italiano)}}<br />
{{i18n_entry|简体中文|Bash (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
Bash is Arch Linux's default shell. <br />
<br />
= Tips & Tricks =<br />
<br />
== History Search ==<br />
Usually, pressing the <up> key will cause the last command to be shown, no matter what you typed so far. However, many users find it more practical to only past commands that begin with the current input.<br />
<br />
Consider this list of commands:<br />
* {{Codeline|ls /usr/src/linux-2.6.15-ARCH/kernel/power/Kconfig}}<br />
* {{Codeline|who}}<br />
* {{Codeline|mount}}<br />
* {{Codeline|man mount}}<br />
<br />
Usually, when typing 'ls' and pressing <up>, your current input will be replaced with 'man mount'. If you are using history seach, only past commands beginning with 'ls' (the current input) will be shown, in this case 'ls /usr/src/linux-2.6.15-ARCH/kernel/power/Kconfig'.<br />
<br />
You can enable this mode by adding to {{Filename|/etc/inputrc}} or your {{Filename|~/.inputrc}}<br />
"\e[A":history-search-backward<br />
"\e[B":history-search-forward<br />
<br />
Alternatively, you can use Ctrl-r (reverse-search-history), which does not search based on your previous input but instead jumps backwards in the history buffer as you type in a search term (this is called an "incremental search" in bash). <br />
<br />
Pressing Ctrl+r again during this mode will take you to the previous line in the buffer that matches the current search term, while pressing Ctrl+g (abort) will cancel the search and take you back to the current input line. So in order to search through all your previous mount commands, press Ctrl+r, type 'mount' and keep pressing Ctrl+r until you find the line you were looking for. <br />
<br />
The forward equivalent to this mode is called forward-search-history and is bound to Ctrl-s by default. Beware though that most terminals override Ctrl+s to suspend execution until you press Ctrl-q. (This is called XON/XOFF flow control). If you want to use forward-search-history you can either disable flow control by issuing<br />
<br />
$ stty -xion<br />
<br />
or you can use a different key in your {{Filename|inputrc}}, for example Alt+s, which is not bound by default:<br />
<br />
"\es":forward-search-history<br />
<br />
== Readline Macros ==<br />
<br />
Readline also supports binding keys to keyboard macros. For simple example, run this command in bash:<br />
<br />
bind '"\ew":"\C-e # macro"'<br />
<br />
or add the part within single quotes to your inputrc:<br />
<br />
"\ew":"\C-e # macro"<br />
<br />
Now type a line and press Alt+w. Readline will act as though you had presses Ctrl-e (end-of-line) typed ' # macro'.<br />
<br />
You can use any of the existing keybindings within a readline macro, which can be quite useful to automate frequently used idioms.<br />
<br />
For example, this one makes Ctrl+Alt+l append "| less" to the line and run it (Ctrl+m is equivalent to <Enter>:<br />
<br />
"\e\C-l":"\C-e | less\C-m"<br />
<br />
The next one prefixes the line with 'yes |' when pressing Ctrl+Alt+y, confirming any yes/no question the command might ask:<br />
<br />
"\e\C-y":"\C-ayes | \C-m"<br />
<br />
This example wraps the line in su -c &#39;&#39; if you press Alt+s<br />
<br />
"\es":"\C-a su -c '\C-e'\C-m"<br />
<br />
As a last example. quickly send a command in the background with Ctrl+Alt+b, discarding all it's output:<br />
<br />
"\e\C-b":"\C-e > /dev/null 2>&1 &\C-m"<br />
<br />
As you can see, using readline macros can save you a lot of typing.<br />
<br />
== Enabling Advanced Bash Completion ==<br />
Bash provides some simple tab-completion facilities out of the box, e.g. completing command and variable names. The bash-completion package extends this functionality by adding completion to a wide range of commands and their options. Enabling advanced bash completion is quite simple. Here's how.<br />
# pacman -Sy bash-completion<br />
<br />
If you want advanced bash completion enabled automatically, you will need to source it from ~/.bashrc.<br />
# Use bash-completion, if available<br />
if [ -f /etc/bash_completion ]; then<br />
. /etc/bash_completion<br />
fi<br />
<br />
If you would like to enable it in your current terminal, just type:<br />
$ . /etc/bash_completion<br />
<br />
Note that if you have several terminals open, you will have to run the command in each of them.<br />
<br />
= Resources =<br />
* [http://tldp.org/LDP/abs/html/ Advanced Bash Scripting Guide] - Very good resource regarding shell scripting using bash<br />
* [http://www.gnu.org/software/bash/manual/bashref.html Bash Reference Manual] - Official reference (654K!)<br />
* [http://www.gnu.org/software/bash/manual/bash.html man page]<br />
* [http://wooledge.org/mywiki/BashFaq FAQ/Wiki]<br />
* [http://tiswww.case.edu/php/chet/readline/rluserman.html Readline Guide]<br />
* [http://www.grymoire.com/Unix/Quote.html Quote Tutorial]<br />
* [http://www.caliban.org/bash Completion Guide]</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Talk:Bash&diff=76554Talk:Bash2009-09-25T23:28:41Z<p>UNIVAC: </p>
<hr />
<div>Why the inclusion of those two excerpts from the manual? If it's because of recent bash updates, both files (bash.bashrc/profile.bash) aren't acting as intended. If anything, we should point it out here until the changes get committed. Pertinent bug report: [http://bugs.archlinux.org/task/16346?project=1&order=dateopened&sort=desc FS#16346] [[User:UNIVAC|UNIVAC]] 19:28, 25 September 2009 (EDT)</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Talk:Bash&diff=76553Talk:Bash2009-09-25T23:28:17Z<p>UNIVAC: </p>
<hr />
<div>Why the inclusion of those two excerpts from the manual? If it's because of recent bash updates, both files (bash.bashrc/profile.bash) aren't acting as intended. If anything, we should point it out here until the changes get committed. Pertinent bug report: [http://bugs.archlinux.org/task/16346?project=1&order=dateopened&sort=desc FS#16346]. [[User:UNIVAC|UNIVAC]] 19:28, 25 September 2009 (EDT)</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76550Opera2009-09-25T19:18:19Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by Opera Software. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
:[[Wikipedia:Opera_(web_browser)|Wikipedia]]<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note:'' This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete:'' not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
==Optional tweaks==<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using '''qtconfig''' (/usr/bin/qtconfig, installed as a dependency for the non static opera package).<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
===Microsoft fonts and Opera===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's contents will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by qtconfig take precedence over Gnome managed fonts.<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
1. Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
2. Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Alternatively, create a symlink to libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
3. Edit the path to java in Opera: ''Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options''.<br />
#openjdk<br />
/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
#jre<br />
/opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
You can force Opera to use an specific DPI setting (not needed since Opera 10).<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76549Opera2009-09-25T19:13:38Z<p>UNIVAC: /* Optional tweaks */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by Opera Software. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
:[[Wikipedia:Opera_(web_browser)|Source]]<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note:'' This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete:'' not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
==Optional tweaks==<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using '''qtconfig''' (/usr/bin/qtconfig, installed as a dependency for the non static opera package).<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
===Microsoft fonts and Opera===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's contents will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by qtconfig take precedence over Gnome managed fonts.<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
1. Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
2. Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Alternatively, create a symlink to libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
3. Edit the path to java in Opera: ''Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options''.<br />
#openjdk<br />
/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
#jre<br />
/opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
You can force Opera to use an specific DPI setting (not needed since Opera 10).<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76548Opera2009-09-25T19:11:56Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by Opera Software. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
:[[Wikipedia:Opera_(web_browser)|Source]]<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note:'' This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete:'' not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
==Optional tweaks==<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using '''qtconfig''' ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
===Microsoft fonts and Opera===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's contents will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by qtconfig take precedence over Gnome managed fonts.<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
1. Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
2. Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Alternatively, create a symlink to libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
3. Edit the path to java in Opera: ''Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options''.<br />
#openjdk<br />
/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
#jre<br />
/opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
You can force Opera to use an specific DPI setting (not needed since Opera 10).<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76545Opera2009-09-25T19:02:47Z<p>UNIVAC: /* Microsoft fonts and Opera */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by Opera Software. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
:[[Wikipedia:Opera_(web_browser)|Source]]<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note:'' This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete:'' not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's contents will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
If fonts seem too big on some pages, you can force Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76544Opera2009-09-25T19:02:02Z<p>UNIVAC: /* Installation */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by Opera Software. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
:[[Wikipedia:Opera_(web_browser)|Source]]<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note:'' This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete:'' not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
If fonts seem too big on some pages, you can force Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76543Opera2009-09-25T19:00:50Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by Opera Software. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
:[[Wikipedia:Opera_(web_browser)|Source]]<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
If fonts seem too big on some pages, you can force Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76542Opera2009-09-25T18:59:59Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by Opera Software. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
:(from [[Wikipedia:Opera_(web_browser)|Wikipedia]])<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
If fonts seem too big on some pages, you can force Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76538Opera2009-09-25T18:55:05Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
<br />
{{i18n_entry|Česky|Opera (Česky)}}<br />
{{i18n_entry|English|Opera}}<br />
{{i18n_entry|简体中文|Opera(简体中文)}}<br />
{{i18n_entry|Español|Opera (Español)}}<br />
{{i18n_entry|Italian|Opera_(Italiano)}}<br />
<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by the Opera Software company. <br />
The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
(from Wikipedia)<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
If fonts seem too big on some pages, you can force Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76537Opera2009-09-25T18:51:49Z<p>UNIVAC: </p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
Opera is a web browser and internet suite developed by the Opera Software company. <br />
The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for. <br />
(from Wikipedia)<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
If fonts seem too big on some pages, you can force Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76530Opera2009-09-25T18:40:33Z<p>UNIVAC: removed more <10 stuff</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
=== Java on Arch64 ===<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Fonts seem too big ===<br />
If fonts seem too big on some pages, you can force Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI. Set your desired DPI in the "Force DPI" field and click on "Save" to store your settings.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76529Opera2009-09-25T18:29:21Z<p>UNIVAC: /* Java on Arch64 */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
For the open source version, or:<br />
# pacman -S jre<br />
For Sun's proprietary version.<br />
<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera_(Espa%C3%B1ol)&diff=76528Opera (Español)2009-09-25T18:24:54Z<p>UNIVAC: /* Fuentes de Microsoft y Opera */</p>
<hr />
<div>[[Category:Internet y correo electrónico (Español)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
[http://www.opera.com Opera] es una suite web muy completa desarrollado por Opera Software ASA, una compañía IT noruega. Es software de código cerrado.<br />
<br />
==¿Porque debería usar Opera?==<br />
<br />
* Es rápido y liviano.<br />
* Cumple con los estándares.<br />
* Es muy personalizable.<br />
* Fuera de la caja provee navegación web con gestos del mouse y ad-blocking, cliente de mail, cliente bittorrent y cliente IRC ¡todo en uno! Entre otras cosas...<br />
* Tiene un toque profesional: '''no software inflado, no escapes de memoria, no congelamientos, no desplomes'''.<br />
<br />
==¿Porque no debería usar Opera?==<br />
<br />
* No es [http://www.gnu.org/philosophy/free-sw.html Libre]. Es [http://en.wikipedia.org/wiki/Proprietary_software software propietario].<br />
* Si usted es usuario de GNOME o de algun window manager basado en GTK+, requiere cargar bibliotecas adicionales, ya que Opera es una aplicación [http://en.wikipedia.org/wiki/Qt_(toolkit) Qt].<br />
* Algunas paginas web no se mostrarán de forma correcta porque esas paginas no siguen los estándares de la web (Opera se apega a los estándares).<br />
<br />
==¿Como instalo Opera?==<br />
Debido a problemas de licencias, Opera se ha movido a el [[Repositorio_de_Usuarios_Arch_Linux_(AUR)_(Español)|AUR]]. Puedes instalarlo usando [[Yaourt_(Español)|yaourt]]:<br />
$ yaourt -S opera<br />
<br />
===Fuentes de Microsoft y Opera===<br />
Habiendo instalado el paquete ttf-ms-fonts antes de usar Opera, el navegador usara por defecto las fuentes de Microsoft, posiblemente contrastando con las opciones especificadas por su configuracion de fuentes (ya sea Gnome, KDE u otro).<br />
Para hacer que Opera use las fuentes predilectas de su sistema:<br />
# Cierre Opera<br />
# Elimine el paquete ttf-ms-fonts.<br />
# Elimine ~/.opera y todos sus contenidos ('''Advertencia:''' esto borrara sus "bookmarks" y preferencias, por lo cual esta seccion esta escrita entorno a una nueva instalacion de Opera).<br />
# Una vez que haya iniciado Opera (de nuevo) es posible instalar ttf-ms-fonts sin problemas.<br />
<br />
Tambien tome en cuenta que todas las fuentes son configurables atraves de ''Herramientas -> Preferencias -> Avanzado -> Fuentes'', y que fuentes especificadas for '''qtconfig''' toman precedencia sobre opciones en Gnome.<br />
<br />
===Opciones Adicionales===<br />
* Para remover el icono de la barra de tareas, ejecute Opera con la opción ''-notrayicon''.<br />
* Para que los menus luzcan de mejor manera, instale su tema preferido de Qt y seleccionelo usando qtconfig.<br />
* Para mejorar el rendimiento del plugin (flash) en opera, escriba este comando antes de iniciar Opera o agréguelo a ~/.bashrc (alternativamente a /etc/profile, para que el cambio afecte todos los logins):<br />
# export OPERAPLUGINWRAPPER_PRIORITY=0</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera_(Espa%C3%B1ol)&diff=76527Opera (Español)2009-09-25T18:22:15Z<p>UNIVAC: quite viejisima informacion. falta mas para ponerlo a la par del english version</p>
<hr />
<div>[[Category:Internet y correo electrónico (Español)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
[http://www.opera.com Opera] es una suite web muy completa desarrollado por Opera Software ASA, una compañía IT noruega. Es software de código cerrado.<br />
<br />
==¿Porque debería usar Opera?==<br />
<br />
* Es rápido y liviano.<br />
* Cumple con los estándares.<br />
* Es muy personalizable.<br />
* Fuera de la caja provee navegación web con gestos del mouse y ad-blocking, cliente de mail, cliente bittorrent y cliente IRC ¡todo en uno! Entre otras cosas...<br />
* Tiene un toque profesional: '''no software inflado, no escapes de memoria, no congelamientos, no desplomes'''.<br />
<br />
==¿Porque no debería usar Opera?==<br />
<br />
* No es [http://www.gnu.org/philosophy/free-sw.html Libre]. Es [http://en.wikipedia.org/wiki/Proprietary_software software propietario].<br />
* Si usted es usuario de GNOME o de algun window manager basado en GTK+, requiere cargar bibliotecas adicionales, ya que Opera es una aplicación [http://en.wikipedia.org/wiki/Qt_(toolkit) Qt].<br />
* Algunas paginas web no se mostrarán de forma correcta porque esas paginas no siguen los estándares de la web (Opera se apega a los estándares).<br />
<br />
==¿Como instalo Opera?==<br />
Debido a problemas de licencias, Opera se ha movido a el [[Repositorio_de_Usuarios_Arch_Linux_(AUR)_(Español)|AUR]]. Puedes instalarlo usando [[Yaourt_(Español)|yaourt]]:<br />
$ yaourt -S opera<br />
<br />
===Fuentes de Microsoft y Opera===<br />
Habiendo instalado el paquete ttf-ms-fonts antes de usar Opera, el navegador usara por defecto las fuentes de Microsoft, posiblemente contrastando con las opciones especificadas por su configuracion de fuentes (ya sea Gnome, KDE u otro).<br />
Para hacer que Opera use las fuentes predilectas de su sistema:<br />
# Cierre Opera<br />
# Elimine el paquete ttf-ms-fonts.<br />
# Elimine ~/.opera y todos sus contenidos ('''Advertencia:''' esto borrara sus "bookmarks" y preferencias, por lo cual esta seccion esta escrita entorno a una nueva instalacion de Opera).<br />
<br />
Tambien tome en cuenta que todas las fuentes son configurables atraves de ''Herramientas -> Preferencias -> Avanzado -> Fuentes'', y que fuentes especificadas for '''qtconfig''' toman precedencia sobre opciones en Gnome.<br />
<br />
===Opciones Adicionales===<br />
* Para remover el icono de la barra de tareas, ejecute Opera con la opción ''-notrayicon''.<br />
* Para que los menus luzcan de mejor manera, instale su tema preferido de Qt y seleccionelo usando qtconfig.<br />
* Para mejorar el rendimiento del plugin (flash) en opera, escriba este comando antes de iniciar Opera o agréguelo a ~/.bashrc (alternativamente a /etc/profile, para que el cambio afecte todos los logins):<br />
# export OPERAPLUGINWRAPPER_PRIORITY=0</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Talk:Laptop&diff=76452Talk:Laptop2009-09-25T03:16:48Z<p>UNIVAC: </p>
<hr />
<div>== 2.8 Suggestions for saving power ==<br />
All of these are applied/can be applied by laptopmode. I added a little note about it, but it's not enough. Some of the values are different from those applied by the default laptopmode config.<br />
Redundant/could create issues. [[User:UNIVAC|UNIVAC]] 23:00, 24 September 2009 (EDT)</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Talk:Laptop&diff=76451Talk:Laptop2009-09-25T03:15:56Z<p>UNIVAC: /* Suggestions for saving power */</p>
<hr />
<div>== Suggestions for saving power ==<br />
All of these are applied/can be applied by laptopmode. I added a little note about it, but it's not enough. Some of the values are different from those applied by the default laptopmode config.<br />
Redundant/could create issues. [[User:UNIVAC|UNIVAC]] 23:00, 24 September 2009 (EDT)</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Laptop&diff=76450Laptop2009-09-25T03:14:30Z<p>UNIVAC: /* Disk-related tweaks */ mention about noatime troubles</p>
<hr />
<div>[[Category:HOWTOs (English)]]<br />
[[Category:Laptops (English)]]<br />
<br />
= Setting Up For Laptops =<br />
This page should contain links to pages needed for configuring a laptop for the best experience. Setting up a laptop is in many ways the same as setting up a desktop. However, there are a few key differences. When setting up a laptop with Arch Linux, the following points should be taken into consideration:<br />
<br />
* Power consumption (how do I make the battery last the longest per charge?). Which leads to power management:<br />
* Hard drive spindown. After how many minutes of inactivity should the hard drive be spun down?<br />
* Screen shut off. After how many minutes of inactivity should the screen be shut off? (Not just blanked with a screensaver but completely shut off).<br />
* CPU frequency scaling. How should the CPU's frequency change depending on load to minimize power usage?<br />
* Suspend and hibernate. How do I get suspend and hibernate to work with my laptop?<br />
* Screen brightness. How do I manage screen brightness?<br />
<br />
* Network and wireless. How do I get my wireless working?<br />
* Media buttons. How do I configure the function of those buttons on my laptop?<br />
* Touchpad. How do I configure the sensativity, acceleration, button function and scroll borders for my Synaptics or Alps touchpad?<br />
<br />
All of these points are important to take into consideration when getting a laptop set up the way you like. Fortunately, Arch Linux provides all the tools and programs necessary to take complete control of your laptop. These programs and utilities are highlighted below, with appropriate tips tutorials.<br />
<br />
<br />
Note: the following links may be useful:<br />
<br />
* [http://www.linux-on-laptops.com/ http://www.linux-on-laptops.com/]<br />
* [http://www.linlap.com/ http://www.linlap.com/]<br />
<br />
= Power Management =<br />
Power management is very important for anyone who wishes to make good use of their battery capacity. The following tools and programs help to increase battery life and keep your laptop cool and quiet.<br />
<br />
== Battery State Monitoring Utilities ==<br />
<br />
Battery state can of course be read with acpi from the terminal. Acpi can be installed with<br />
<br />
$ pacman -S acpi<br />
<br />
A simple battery monitor that sits in the system tray is [http://aur.archlinux.org/packages.php?ID=24694 batterymon] which can be found in the [[AUR]].<br />
<br />
== Cpufrequtils ==<br />
<br />
[[Cpufrequtils]] provides CPU Frequency Scaling, a technology used primarily by notebooks which enables the OS to scale the CPU speed up or down, depending on the current system load and/or power scheme. For quick and easy installation and setup, please view the [[CPU Frequency Scaling]] article.<br />
<br />
== Pm-utils ==<br />
[[Pm-utils]] provides a suspend and powerstate setting framework. Pm-utils should be used with cpufrequtils to provide a complete power management solution.<br />
<br />
== Lapsus ==<br />
[[Asus_G1#The_Lapsus_daemon_.26_KDE_applet|Lapsus]] is a set of programs providing easy access to many features of various laptops. It currently supports most features provided by asus-laptop kernel module from ACPI4Asus project, such as additional LEDs, hotkeys, backlight control etc. It also has support for some IBM laptops features provided by IBM ThinkPad ACPI Extras Driver and NVRAM device.<br />
<br />
== Install powertop ==<br />
This handy util from Intel will tell you what hardware/processes are using the most power on your system, and provides instructions on how to stop/remove power-wasting services. Works great for mobile Intel CPUs; provides the current CPU state and suggestions for power saving. Also works on AMD systems, but does not provide as much information about the CPU state. Install with:<br />
<br />
# pacman -S powertop<br />
<br />
== Laptop mode tools ==<br />
Install laptop-mode-tools with:<br />
<br />
# pacman -S laptop-mode-tools<br />
<br />
* The configuration file can be found in /etc/laptop-mode/laptop-mode.conf.<br />
* Be sure to add ''laptop-mode'' to the DAEMONS line in /etc/rc.conf<br />
<br />
See [http://bbs.archlinux.org/viewtopic.php?id=39258 this thread] for more information.<br />
<br />
== Powernowd ==<br />
[[Powernowd]] is a program for powering down CPUs dynamicly, which can be run either on an AMD-based system or an Intel-based system.<br />
<br />
Install it with:<br />
# yaourt -S powernowd<br />
<br />
To configure it, just edit your /etc/conf.d/powernowd:<br />
OPTIONS="-q -u 15 -l 5"<br />
<br />
== Suggestions for saving power ==<br />
''Note:'' Not only are these not needed if using laptop-mode-tools, but using laptopmode also gives you the benefit of applying them only when desired (ie, while the AC cable is unplugged).<br />
=== Disk-related tweaks ===<br />
Disable file access time: every time you access (read) a file the filesystem writes an access time to the file metadata. You can disable this on individual files by using the chattr command, or you can enable it on an entire disk by setting the ''noatime'' option in your fstab, as follows:<br />
<br />
/dev/sda1 / ext3 defaults,noatime 1 2<br />
<br />
[http://www.faqs.org/docs/securing/chap6sec73.html Source]<br />
<br />
:''Note'': disabling atime causes troubles with [[Mutt|mutt]] and other applications that make use of file timestamps. Consider compromising between performance and compatibility by using mount option relatime instead, or look into [http://wiki.mutt.org/?MaildirFormat mutt work-around for noatime].<br />
<br />
To allow the CD/DVD rom to spin down after a while, run the following: <br />
<br />
/usr/bin/hal-disable-polling --device /dev/scd0<br />
<br />
=== Other tweaks ===<br />
These are some generic suggestions that will work with most laptops.<br />
<br />
Add the following to ''/etc/modprobe.d/modprobe.conf'':<br />
<br />
options usbcore autosuspend=1<br />
<br />
<br />
Add the following to ''/etc/sysctl.conf''<br />
<br />
vm.dirty_writeback_centisecs=1500<br />
vm.laptop_mode=5<br />
<br />
<br />
Add the following to ''/etc/rc.local'' (and make sure it gets executed at boot time)<br />
<br />
/usr/sbin/iwpriv your_wireless_interface set_power 5<br />
<br />
Source: [http://www.nervous.it/2007/11/linux-dell-xps-m1330/ here]<br />
<br />
=== Hard drive spin down problem ===<br />
Documented [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 here]<br />
<br />
To prevent your laptop hard drive from spinning down too often (result of too aggressive APM defaults) do the following:<br />
<br />
Add the following to ''/etc/rc.local''<br />
<br />
hdparm -B 255 /dev/sdX ''where X is your hard drive device''<br />
<br />
<br />
<br />
Add the following to ''/etc/pm/sleep.d/50-hdparm_pm''<br />
<br />
#!/bin/sh<br />
<br />
if [ -n "$1" ] && ([ "$1" = "resume" ] || [ "$1" = "thaw" ]); then<br />
hdparm -B 255 /dev/your-hard-drive > /dev/null<br />
fi<br />
<br />
and run "chmod +x /etc/pm/sleep.d/50-hdparm_pm" to make sure it resets after suspend.<br />
<br />
Now APM should be turned off for your hard drive.<br />
<br />
For some laptops, the option -S to hdparm can also be relevant (sets the spindown time for the drive). Note that all these options can also be configured using the [[Laptop_Mode_Tools | laptop-mode tools]].<br />
<br />
=== Tweaking the scheduler ===<br />
For multicore and hyperthreading-enabled processors you may use sched_mc_power_savings and sched_smt_power_savings options respectively to make the scheduler keep idle as many cores as possible. To enable these options you can do<br />
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings<br />
or<br />
echo 1 > /sys/devices/system/cpu/sched_smt_power_savings<br />
Echoing 0 will disable them. Also laptop-mode can be used to control shed_mc_power_savings (see the appropriate config file in /etc/laptop-mode/conf.d).<br />
--[[User:Kasbah|Kasbah]] 16:14, 14 August 2009 (EDT)<br />
<br />
= Touchpad =<br />
To get your touchpad working properly, see the [[Touchpad Synaptics]] page. Note that your laptop may have an ALPS touchpad (such as the DELL Inspiron 6000), and not a Synaptics touchpad. In either case, see the link above.<br />
<br />
= Special Buttons =<br />
To configure any special keys or buttons on your laptop, please refer to the following article: [http://www.linux.com/feature/118179 Customize your laptop keyboard with X and KDE]. Note that KDE is not required.<br />
<br />
= Hard disk shock protection =<br />
There are several laptops from different vendors featuring shock protection capabilities. As manufacturers have refused to support open source development of the required software components so far, Linux support for shock protection varies considerably between different hardware implementations.<br />
<br />
Currently, only one project, named HDAPS, support this kind of protection, which is prepared for IBM/Lenovo Thinkpads. <br />
<br />
Just Check [[HDAPS|Hard Disk Active Protection System]].</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Talk:Laptop&diff=76449Talk:Laptop2009-09-25T03:01:26Z<p>UNIVAC: /* Suggestions for saving power */</p>
<hr />
<div>== Suggestions for saving power ==<br />
All of these are applied by laptopmode. I added a little note about it, but it's not enough. Some of the values are different from those applied by the default laptopmode config. Redundant/could create issues. [[User:UNIVAC|UNIVAC]] 23:00, 24 September 2009 (EDT)</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Talk:Laptop&diff=76448Talk:Laptop2009-09-25T03:00:35Z<p>UNIVAC: Created page with '== Suggestions for saving power == All of these are applied by laptopmode. I added a little note about it, but it's not enough. Some of the values are different from those applie…'</p>
<hr />
<div>== Suggestions for saving power ==<br />
All of these are applied by laptopmode. I added a little note about it, but it's not enough. Some of the values are different from those applied by the default laptopmode config and that could create issues. [[User:UNIVAC|UNIVAC]] 23:00, 24 September 2009 (EDT)</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Laptop&diff=76447Laptop2009-09-25T02:57:33Z<p>UNIVAC: /* Suggestions for saving power */</p>
<hr />
<div>[[Category:HOWTOs (English)]]<br />
[[Category:Laptops (English)]]<br />
<br />
= Setting Up For Laptops =<br />
This page should contain links to pages needed for configuring a laptop for the best experience. Setting up a laptop is in many ways the same as setting up a desktop. However, there are a few key differences. When setting up a laptop with Arch Linux, the following points should be taken into consideration:<br />
<br />
* Power consumption (how do I make the battery last the longest per charge?). Which leads to power management:<br />
* Hard drive spindown. After how many minutes of inactivity should the hard drive be spun down?<br />
* Screen shut off. After how many minutes of inactivity should the screen be shut off? (Not just blanked with a screensaver but completely shut off).<br />
* CPU frequency scaling. How should the CPU's frequency change depending on load to minimize power usage?<br />
* Suspend and hibernate. How do I get suspend and hibernate to work with my laptop?<br />
* Screen brightness. How do I manage screen brightness?<br />
<br />
* Network and wireless. How do I get my wireless working?<br />
* Media buttons. How do I configure the function of those buttons on my laptop?<br />
* Touchpad. How do I configure the sensativity, acceleration, button function and scroll borders for my Synaptics or Alps touchpad?<br />
<br />
All of these points are important to take into consideration when getting a laptop set up the way you like. Fortunately, Arch Linux provides all the tools and programs necessary to take complete control of your laptop. These programs and utilities are highlighted below, with appropriate tips tutorials.<br />
<br />
<br />
Note: the following links may be useful:<br />
<br />
* [http://www.linux-on-laptops.com/ http://www.linux-on-laptops.com/]<br />
* [http://www.linlap.com/ http://www.linlap.com/]<br />
<br />
= Power Management =<br />
Power management is very important for anyone who wishes to make good use of their battery capacity. The following tools and programs help to increase battery life and keep your laptop cool and quiet.<br />
<br />
== Battery State Monitoring Utilities ==<br />
<br />
Battery state can of course be read with acpi from the terminal. Acpi can be installed with<br />
<br />
$ pacman -S acpi<br />
<br />
A simple battery monitor that sits in the system tray is [http://aur.archlinux.org/packages.php?ID=24694 batterymon] which can be found in the [[AUR]].<br />
<br />
== Cpufrequtils ==<br />
<br />
[[Cpufrequtils]] provides CPU Frequency Scaling, a technology used primarily by notebooks which enables the OS to scale the CPU speed up or down, depending on the current system load and/or power scheme. For quick and easy installation and setup, please view the [[CPU Frequency Scaling]] article.<br />
<br />
== Pm-utils ==<br />
[[Pm-utils]] provides a suspend and powerstate setting framework. Pm-utils should be used with cpufrequtils to provide a complete power management solution.<br />
<br />
== Lapsus ==<br />
[[Asus_G1#The_Lapsus_daemon_.26_KDE_applet|Lapsus]] is a set of programs providing easy access to many features of various laptops. It currently supports most features provided by asus-laptop kernel module from ACPI4Asus project, such as additional LEDs, hotkeys, backlight control etc. It also has support for some IBM laptops features provided by IBM ThinkPad ACPI Extras Driver and NVRAM device.<br />
<br />
== Install powertop ==<br />
This handy util from Intel will tell you what hardware/processes are using the most power on your system, and provides instructions on how to stop/remove power-wasting services. Works great for mobile Intel CPUs; provides the current CPU state and suggestions for power saving. Also works on AMD systems, but does not provide as much information about the CPU state. Install with:<br />
<br />
# pacman -S powertop<br />
<br />
== Laptop mode tools ==<br />
Install laptop-mode-tools with:<br />
<br />
# pacman -S laptop-mode-tools<br />
<br />
* The configuration file can be found in /etc/laptop-mode/laptop-mode.conf.<br />
* Be sure to add ''laptop-mode'' to the DAEMONS line in /etc/rc.conf<br />
<br />
See [http://bbs.archlinux.org/viewtopic.php?id=39258 this thread] for more information.<br />
<br />
== Powernowd ==<br />
[[Powernowd]] is a program for powering down CPUs dynamicly, which can be run either on an AMD-based system or an Intel-based system.<br />
<br />
Install it with:<br />
# yaourt -S powernowd<br />
<br />
To configure it, just edit your /etc/conf.d/powernowd:<br />
OPTIONS="-q -u 15 -l 5"<br />
<br />
== Suggestions for saving power ==<br />
''Note:'' Not only are these not needed if using laptop-mode-tools, but using laptopmode also gives you the benefit of applying them only when desired (ie, while the AC cable is unplugged).<br />
=== Disk-related tweaks ===<br />
Disable file access time: every time you access (read) a file the filesystem writes an access time to the file metadata. You can disable this on individual files by using the chattr command, or you can enable it on an entire disk by setting the ''noatime'' option in your fstab, as follows:<br />
<br />
/dev/sda1 / ext3 defaults,noatime 1 2<br />
<br />
[http://www.faqs.org/docs/securing/chap6sec73.html Source]<br />
<br />
<br />
To allow the CD/DVD rom to spin down after a while, run the following: <br />
<br />
/usr/bin/hal-disable-polling --device /dev/scd0<br />
<br />
=== Other tweaks ===<br />
These are some generic suggestions that will work with most laptops.<br />
<br />
Add the following to ''/etc/modprobe.d/modprobe.conf'':<br />
<br />
options usbcore autosuspend=1<br />
<br />
<br />
Add the following to ''/etc/sysctl.conf''<br />
<br />
vm.dirty_writeback_centisecs=1500<br />
vm.laptop_mode=5<br />
<br />
<br />
Add the following to ''/etc/rc.local'' (and make sure it gets executed at boot time)<br />
<br />
/usr/sbin/iwpriv your_wireless_interface set_power 5<br />
<br />
Source: [http://www.nervous.it/2007/11/linux-dell-xps-m1330/ here]<br />
<br />
=== Hard drive spin down problem ===<br />
Documented [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 here]<br />
<br />
To prevent your laptop hard drive from spinning down too often (result of too aggressive APM defaults) do the following:<br />
<br />
Add the following to ''/etc/rc.local''<br />
<br />
hdparm -B 255 /dev/sdX ''where X is your hard drive device''<br />
<br />
<br />
<br />
Add the following to ''/etc/pm/sleep.d/50-hdparm_pm''<br />
<br />
#!/bin/sh<br />
<br />
if [ -n "$1" ] && ([ "$1" = "resume" ] || [ "$1" = "thaw" ]); then<br />
hdparm -B 255 /dev/your-hard-drive > /dev/null<br />
fi<br />
<br />
and run "chmod +x /etc/pm/sleep.d/50-hdparm_pm" to make sure it resets after suspend.<br />
<br />
Now APM should be turned off for your hard drive.<br />
<br />
For some laptops, the option -S to hdparm can also be relevant (sets the spindown time for the drive). Note that all these options can also be configured using the [[Laptop_Mode_Tools | laptop-mode tools]].<br />
<br />
=== Tweaking the scheduler ===<br />
For multicore and hyperthreading-enabled processors you may use sched_mc_power_savings and sched_smt_power_savings options respectively to make the scheduler keep idle as many cores as possible. To enable these options you can do<br />
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings<br />
or<br />
echo 1 > /sys/devices/system/cpu/sched_smt_power_savings<br />
Echoing 0 will disable them. Also laptop-mode can be used to control shed_mc_power_savings (see the appropriate config file in /etc/laptop-mode/conf.d).<br />
--[[User:Kasbah|Kasbah]] 16:14, 14 August 2009 (EDT)<br />
<br />
= Touchpad =<br />
To get your touchpad working properly, see the [[Touchpad Synaptics]] page. Note that your laptop may have an ALPS touchpad (such as the DELL Inspiron 6000), and not a Synaptics touchpad. In either case, see the link above.<br />
<br />
= Special Buttons =<br />
To configure any special keys or buttons on your laptop, please refer to the following article: [http://www.linux.com/feature/118179 Customize your laptop keyboard with X and KDE]. Note that KDE is not required.<br />
<br />
= Hard disk shock protection =<br />
There are several laptops from different vendors featuring shock protection capabilities. As manufacturers have refused to support open source development of the required software components so far, Linux support for shock protection varies considerably between different hardware implementations.<br />
<br />
Currently, only one project, named HDAPS, support this kind of protection, which is prepared for IBM/Lenovo Thinkpads. <br />
<br />
Just Check [[HDAPS|Hard Disk Active Protection System]].</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Laptop&diff=76446Laptop2009-09-25T02:56:59Z<p>UNIVAC: /* Suggestions for saving power */ added note about laptopmode</p>
<hr />
<div>[[Category:HOWTOs (English)]]<br />
[[Category:Laptops (English)]]<br />
<br />
= Setting Up For Laptops =<br />
This page should contain links to pages needed for configuring a laptop for the best experience. Setting up a laptop is in many ways the same as setting up a desktop. However, there are a few key differences. When setting up a laptop with Arch Linux, the following points should be taken into consideration:<br />
<br />
* Power consumption (how do I make the battery last the longest per charge?). Which leads to power management:<br />
* Hard drive spindown. After how many minutes of inactivity should the hard drive be spun down?<br />
* Screen shut off. After how many minutes of inactivity should the screen be shut off? (Not just blanked with a screensaver but completely shut off).<br />
* CPU frequency scaling. How should the CPU's frequency change depending on load to minimize power usage?<br />
* Suspend and hibernate. How do I get suspend and hibernate to work with my laptop?<br />
* Screen brightness. How do I manage screen brightness?<br />
<br />
* Network and wireless. How do I get my wireless working?<br />
* Media buttons. How do I configure the function of those buttons on my laptop?<br />
* Touchpad. How do I configure the sensativity, acceleration, button function and scroll borders for my Synaptics or Alps touchpad?<br />
<br />
All of these points are important to take into consideration when getting a laptop set up the way you like. Fortunately, Arch Linux provides all the tools and programs necessary to take complete control of your laptop. These programs and utilities are highlighted below, with appropriate tips tutorials.<br />
<br />
<br />
Note: the following links may be useful:<br />
<br />
* [http://www.linux-on-laptops.com/ http://www.linux-on-laptops.com/]<br />
* [http://www.linlap.com/ http://www.linlap.com/]<br />
<br />
= Power Management =<br />
Power management is very important for anyone who wishes to make good use of their battery capacity. The following tools and programs help to increase battery life and keep your laptop cool and quiet.<br />
<br />
== Battery State Monitoring Utilities ==<br />
<br />
Battery state can of course be read with acpi from the terminal. Acpi can be installed with<br />
<br />
$ pacman -S acpi<br />
<br />
A simple battery monitor that sits in the system tray is [http://aur.archlinux.org/packages.php?ID=24694 batterymon] which can be found in the [[AUR]].<br />
<br />
== Cpufrequtils ==<br />
<br />
[[Cpufrequtils]] provides CPU Frequency Scaling, a technology used primarily by notebooks which enables the OS to scale the CPU speed up or down, depending on the current system load and/or power scheme. For quick and easy installation and setup, please view the [[CPU Frequency Scaling]] article.<br />
<br />
== Pm-utils ==<br />
[[Pm-utils]] provides a suspend and powerstate setting framework. Pm-utils should be used with cpufrequtils to provide a complete power management solution.<br />
<br />
== Lapsus ==<br />
[[Asus_G1#The_Lapsus_daemon_.26_KDE_applet|Lapsus]] is a set of programs providing easy access to many features of various laptops. It currently supports most features provided by asus-laptop kernel module from ACPI4Asus project, such as additional LEDs, hotkeys, backlight control etc. It also has support for some IBM laptops features provided by IBM ThinkPad ACPI Extras Driver and NVRAM device.<br />
<br />
== Install powertop ==<br />
This handy util from Intel will tell you what hardware/processes are using the most power on your system, and provides instructions on how to stop/remove power-wasting services. Works great for mobile Intel CPUs; provides the current CPU state and suggestions for power saving. Also works on AMD systems, but does not provide as much information about the CPU state. Install with:<br />
<br />
# pacman -S powertop<br />
<br />
== Laptop mode tools ==<br />
Install laptop-mode-tools with:<br />
<br />
# pacman -S laptop-mode-tools<br />
<br />
* The configuration file can be found in /etc/laptop-mode/laptop-mode.conf.<br />
* Be sure to add ''laptop-mode'' to the DAEMONS line in /etc/rc.conf<br />
<br />
See [http://bbs.archlinux.org/viewtopic.php?id=39258 this thread] for more information.<br />
<br />
== Powernowd ==<br />
[[Powernowd]] is a program for powering down CPUs dynamicly, which can be run either on an AMD-based system or an Intel-based system.<br />
<br />
Install it with:<br />
# yaourt -S powernowd<br />
<br />
To configure it, just edit your /etc/conf.d/powernowd:<br />
OPTIONS="-q -u 15 -l 5"<br />
<br />
== Suggestions for saving power ==<br />
Not only are these not needed if using laptop-mode-tools, but using laptopmode also gives you the benefit of applying them only when desired (ie, while the AC cable is unplugged).<br />
=== Disk-related tweaks ===<br />
Disable file access time: every time you access (read) a file the filesystem writes an access time to the file metadata. You can disable this on individual files by using the chattr command, or you can enable it on an entire disk by setting the ''noatime'' option in your fstab, as follows:<br />
<br />
/dev/sda1 / ext3 defaults,noatime 1 2<br />
<br />
[http://www.faqs.org/docs/securing/chap6sec73.html Source]<br />
<br />
<br />
To allow the CD/DVD rom to spin down after a while, run the following: <br />
<br />
/usr/bin/hal-disable-polling --device /dev/scd0<br />
<br />
=== Other tweaks ===<br />
These are some generic suggestions that will work with most laptops.<br />
<br />
Add the following to ''/etc/modprobe.d/modprobe.conf'':<br />
<br />
options usbcore autosuspend=1<br />
<br />
<br />
Add the following to ''/etc/sysctl.conf''<br />
<br />
vm.dirty_writeback_centisecs=1500<br />
vm.laptop_mode=5<br />
<br />
<br />
Add the following to ''/etc/rc.local'' (and make sure it gets executed at boot time)<br />
<br />
/usr/sbin/iwpriv your_wireless_interface set_power 5<br />
<br />
Source: [http://www.nervous.it/2007/11/linux-dell-xps-m1330/ here]<br />
<br />
=== Hard drive spin down problem ===<br />
Documented [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 here]<br />
<br />
To prevent your laptop hard drive from spinning down too often (result of too aggressive APM defaults) do the following:<br />
<br />
Add the following to ''/etc/rc.local''<br />
<br />
hdparm -B 255 /dev/sdX ''where X is your hard drive device''<br />
<br />
<br />
<br />
Add the following to ''/etc/pm/sleep.d/50-hdparm_pm''<br />
<br />
#!/bin/sh<br />
<br />
if [ -n "$1" ] && ([ "$1" = "resume" ] || [ "$1" = "thaw" ]); then<br />
hdparm -B 255 /dev/your-hard-drive > /dev/null<br />
fi<br />
<br />
and run "chmod +x /etc/pm/sleep.d/50-hdparm_pm" to make sure it resets after suspend.<br />
<br />
Now APM should be turned off for your hard drive.<br />
<br />
For some laptops, the option -S to hdparm can also be relevant (sets the spindown time for the drive). Note that all these options can also be configured using the [[Laptop_Mode_Tools | laptop-mode tools]].<br />
<br />
=== Tweaking the scheduler ===<br />
For multicore and hyperthreading-enabled processors you may use sched_mc_power_savings and sched_smt_power_savings options respectively to make the scheduler keep idle as many cores as possible. To enable these options you can do<br />
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings<br />
or<br />
echo 1 > /sys/devices/system/cpu/sched_smt_power_savings<br />
Echoing 0 will disable them. Also laptop-mode can be used to control shed_mc_power_savings (see the appropriate config file in /etc/laptop-mode/conf.d).<br />
--[[User:Kasbah|Kasbah]] 16:14, 14 August 2009 (EDT)<br />
<br />
= Touchpad =<br />
To get your touchpad working properly, see the [[Touchpad Synaptics]] page. Note that your laptop may have an ALPS touchpad (such as the DELL Inspiron 6000), and not a Synaptics touchpad. In either case, see the link above.<br />
<br />
= Special Buttons =<br />
To configure any special keys or buttons on your laptop, please refer to the following article: [http://www.linux.com/feature/118179 Customize your laptop keyboard with X and KDE]. Note that KDE is not required.<br />
<br />
= Hard disk shock protection =<br />
There are several laptops from different vendors featuring shock protection capabilities. As manufacturers have refused to support open source development of the required software components so far, Linux support for shock protection varies considerably between different hardware implementations.<br />
<br />
Currently, only one project, named HDAPS, support this kind of protection, which is prepared for IBM/Lenovo Thinkpads. <br />
<br />
Just Check [[HDAPS|Hard Disk Active Protection System]].</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76443Opera2009-09-25T01:29:16Z<p>UNIVAC: /* Optional tweaks */ added native icons tweak</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To make Opera use KDE/qtconfig icons, download a native skin such as [http://my.opera.com/community/customize/skins/info/?id=8908 fixed_window_skin].<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
To install the open source version, or:<br />
# pacman -S jre<br />
To install Sun's proprietary version.<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=User_talk:UNIVAC&diff=76442User talk:UNIVAC2009-09-25T01:23:24Z<p>UNIVAC: Created page with 'PLACEHOLDER'</p>
<hr />
<div>PLACEHOLDER</div>UNIVAChttps://wiki.archlinux.org/index.php?title=User:UNIVAC&diff=76441User:UNIVAC2009-09-25T01:23:08Z<p>UNIVAC: Created page with 'PLACEHOLDER'</p>
<hr />
<div>PLACEHOLDER</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Firefox&diff=76440Firefox2009-09-25T01:17:44Z<p>UNIVAC: /* Plugins */ redundant subsection</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|FireFox (Česky)}}<br />
{{i18n_entry|English|Firefox}}<br />
{{i18n_entry|Italiano|Firefox_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
Firefox is an open-source graphical web browser from [http://www.mozilla.com Mozilla]. The Firefox package in Arch Linux is compiled without official branding. This means that when you start Firefox it will use a blue globe for its icon and will be named after its release series' codename. This has to be done because a distribution may use the name "Firefox" and its artwork only if there are no unofficial modifications (i.e. no custom patches).<br />
<br />
<br />
= Enable Firefox Branding =<br />
If you would like to enable branding or simply change the user agent there are a few ways to do it. You can recompile, modify the browser with add-ons, or use the advanced configuration. Please note that distributing such a version would be against the law!<br />
<br />
== Recompile ==<br />
The following procedure is for the 2.x version of Firefox. A branded version of Firefox 3.x is available via AUR [http://aur.archlinux.org/packages.php?ID=18019 here]. We will use [[ABS]] to rebuild Firefox. Make sure you have '''cvsup''' and '''wget''' installed. Now run <br />
abs<br />
If this is your first time running abs it may take a while. Subsequent runs will be much faster. Before you make any custom package you should run abs. Now perform the following:<br />
mkdir -p /var/abs/local/firefox<br />
cp /var/abs/extra/firefox/* /var/abs/local/firefox<br />
cd /var/abs/local/firefox<br />
<br />
Now use your favorite editor and open the mozconfig file. Add the following line to the end of the file:<br />
ac_add_options --enable-official-branding<br />
<br />
Save and exit, then run:<br />
md5sum mozconfig<br />
<br />
Copy the string and then open the PKGBUILD file. Now look at the source and md5sums arrays. You can match up the md5sum to the file by comparing these two. Mozconfig is second on the sources list. So we would modify the second md5sum with the string we obtained earlier.<br />
<br />
Replace this line:<br />
convert ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
with the following:<br />
convert ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
Now scroll down and look for these two lines.<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/<br />
<br />
Replace them with the following<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/ <br />
<br />
Save and exit, then run<br />
makepkg<br />
<br />
This may take some time depending on your system. Once it has created the package, remove your current version of Firefox if you have it installed.<br />
pacman -Rd firefox<br />
Then install the new version with<br />
pacman -A firefox-*.pkg.tar.gz<br />
You may also try upgrading your current Firefox with.<br />
pacman -U firefox-*.pkg.tar.gz<br />
<br />
Of course, replace * with your version number.<br />
<br />
== Add-ons ==<br />
*[https://addons.mozilla.org/firefox/2553/ CCK Wizard] - Allows you to customize every aspect of Firefox. Title bar, user agent, icons, about graphic, and a lot more. <br />
*[https://addons.mozilla.org/firefox/59/ User Agent Switcher] - Adds a menu and a toolbar button to switch the user agent of the browser.<br />
<br />
== Advanced Configuration ==<br />
Enter <code>about:config</code> in your Firefox address bar to access the advanced configuration. In the filter enter <code>useragent.extra.firefox</code>. You will see your current user-agent string; you may put whatever you want in there. If you want to make it appear as the default version of Firefox to websites enter: <code>'''Firefox/2.0.0.11'''</code>. Modify accordingly if there is a newer version.<br />
<br />
== Branding without recompilation ==<br />
To brand "Gran Paradiso" without recompiling the whole browser, you need to replace the Bon Echo icons with the official Firefox icons, and change the strings "Gran Paradiso" and "GranParadiso" in a few files. The [http://bbs.archlinux.org/viewtopic.php?id=44320 firebrand] script takes care of this (see note in bold in the initial thread post). Run it (as root) after an upgrade or installation of firefox. To revert to the Gran Paradiso brand again, simply reinstall firefox. The script will by default download the icons every time it is run. To "cache" the icons locally for later firefox upgrades, set the NEWICONSDIR variable to a suitable directory, for instance<br />
NEWICONSDIR=/usr/local/share/firebrand<br />
<br />
= Recommended Add-ons =<br />
Before you try to install add-ons, make sure that your /tmp directory was created with the right permissions. If addons won't install, <code>chmod 1777 /tmp</code> should fix it.<br />
<br />
*[https://addons.mozilla.org/firefox/1865/ Adblock Plus] - Highly effective ad and popup blocker with lots of options and a simplistic UI.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/220 FlashGot] - Download all the links, movies and audio clips of a page at the maximum speed with a single click. Very powerful, lightweight and reliable external download manager.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/722 NoScript] - The best security you can get in a web browser! Allow active content to run only from sites you trust, and protect yourself against XSS and Clickjacking attacks.<br />
*[https://addons.mozilla.org/firefox/446/ MediaPlayerConnectivity] - Allow you to launch an embedded video from a website in an external application. Good for those who have problems with media plugins.<br />
<br />
= Plugins =<br />
To find out what plugins you have installed enter <code>about:plugins</code> in the Firefox address bar.<br />
====Flash====<br />
# pacman -S flashplugin<br />
In addition you may need to install ttf-ms-fonts'' (pacman -S ttf-ms-fonts) ''for flashplayer to render text properly.<br />
Don't worry about having a 64-bit installation. The package is in the repos.<br />
<br />
====MPlayer====<br />
MPlayer's multimedia plugin is one of the most mature. This will generally cover everything you need.<br />
# pacman -S mplayer-plugin<br />
<br />
==== Gecko Media Player ====<br />
A good replacement of the now aging ''mplayer-plugin'', is [http://code.google.com/p/gecko-mediaplayer/ Gecko Media Player]. More stable combined with MPlayer 1.0RC2. ''(No more crashes with Apple Trailers.)''<br />
$ sudo pacman -S gecko-mediaplayer<br />
''('''Note!''' Be sure to remove mplayer-plugin if it is already installed.)''<br />
<br />
====Totem-plugin====<br />
If you need a gstreamer based plugin for firefox, you can use the the totem plugin.<br />
# $pacman -S totem-plugin gvfs<br />
<br />
====Java====<br />
''('''Hint:''' each java package described here contains java as well as the fitting browser-plugin for firefox.)''<br />
# pacman -S openjdk6<br />
If you really need to do so you can also install the non-free version of java:<br />
# pacman -S jre<br />
Keep in mind that the free and non-free versions can't be installed in parallel. The free version is nearly perfect at the time of writing this and there's mostly no need anymore to install the proprietary version of java.<br />
<br />
====Citrix====<br />
''See [[Citrix]] how-to.''<br />
<br />
====Adobe Reader====<br />
Licensing issues prevent Acrobat Reader from being available in any repository. You'll only find it in the AUR.<br />
<br />
32-bit AUR package - [http://aur.archlinux.org/packages.php?ID=16980 acroread]<br />
<br />
It installs the Acrobat Reader application as well as the Firefox plugin. Note however that hardware assisted rendering is unavailable under Linux (at least using a nVidia Geforce 8600GTS with 185.18.14 driveR).<br />
<br />
'''For 64-bit installs''' the above link is unusable. It will install but be unusable. Since the application is closed-source a 64-bit version depends on Adobe. You have several options:<br />
<br />
- Either you follow [http://wiki.archlinux.org/index.php/Arch64_Install_bundled_32bit_system this link] and create a chrooted 32-bit environment that you can use for any 32-bit needs which is in line with The Arch Way and more elegant;<br />
<br />
- Or, you can simply get the 32-bit binary along with some 32-bit libraries it needs to run. You need to use [http://aur.archlinux.org/packages.php?ID=7906 bin32-acroread]. You may want to read yaourt output and figure out if you'd like extra font packages. Be advised - you cannot use the Firefox plugin this way - it will not load in the 64-bit browser. You must use [http://aur.archlinux.org/packages.php?ID=6217 nspluginwrapper] available from the AUR. Finally, be sure to run<br />
$ nspluginwrapper -v -a -i<br />
as a '''normal user'''. This checks your plugin directory and links the plugins as needed. Everything should work fine now.<br />
<br />
== Plugins are installed but not working ==<br />
If you installed the plugins like above but they are not used by firefox (you can verify this with typing about:plugins in the adressbar and hitting return.) It's usually a permission problem. Just fix those with:<br />
# chmod -R 755 /usr/lib/mozilla<br />
Then restart firefox and everything should be okay.<br />
<br />
If the above suggestion does not fix anything, and about:plugins still reports that no plugins are installed, run the following command<br />
# ln -sv /usr/lib/mozilla/plugins /usr/lib/firefox-3.0/plugins<br />
Restart firefox and about:plugins should list all of the plugins you have installed.<br />
<br />
Another common problem is that the plugin path is unset. This typical occurs on a new install, when you haven't re-logged yet after installing firefox. You can test this with the command:<br />
$ echo $MOZ_PLUGIN_PATH<br />
If it's unset, then either log out/in, or source /etc/profile.d/mozilla-common.sh in a shell and start firefox from the same shell.<br />
<br />
== Can't download plugins? ==<br />
In some cases, people were not able to download (and install) any of the firefox plugins. The solution is adding the following line in /etc/hosts<br />
64.50.236.214 releases.mozilla.org<br />
<br />
= Tips =<br />
== Enable Spell Checking ==<br />
Right click in any text entry field and add the dictionary for the language you need spell checking for. Restart firefox, and click in a text entry field again to enable spell checking.<br />
<br />
== Wheel Mouse Scroll Speed ==<br />
To modify the default values (i.e. speed-up) of the wheel mouse scroll speed, type the following into Firefox's address bar<br />
about:config<br />
<br />
Now enter the following term into the 'filter' dialog: '''mousewheel.withnokey'''<br />
<br />
*Double-click the entry entitled, '''mousewheel.withnokey.sysnumlines''' and thereby setting its value to '''True'''<br />
*Double-click the entry entitled, '''mousewheel.withnokey.numlines''' and enter the desired number of lines per movement into the box (I'm using 12 for example).<br />
<br />
You may close the about:config webpage, restart Firefox for this setting to take effect.<br />
<br />
== Speed-up Firefox using tmpfs ==<br />
If your machine has memory to spare, you can use tmpfs to cache your entire profile directory which makes Firefox ''very'' responsive and generally faster. Full list of benifits include:<br />
*Reduced disk read/writes (great if you're on an SSD)<br />
*Better user experience through heightened responsive feel<br />
*Many operations within Firefox are instantaneous (quick search, history, etc.)<br />
<br />
See the [[Speed-up Firefox using tmpfs]] wiki article for this tip/tweak.<br />
<br />
== Lighten, Speed-up Firefox / Fix fonts and controls issues ==<br />
''Also font fix for Mozilla suite''<br />
<br />
Try to add:<br />
export MOZ_DISABLE_PANGO=1<br />
<br />
to /etc/profile and logout.<br />
<br />
== Why do I get this error when I click the middle mouse button? ==<br />
! The URL is not valid and cannot be loaded.<br />
You may also get unexpected behavior like looking up a random webpage.<br />
<br />
The reason stems from the use of the middle mouse buttons in <code>UNIX</code>-like operating systems. The middle mouse button is used to paste whatever text has been highlighted/added to the clipboard. Also, there is a feature in Firefox which defaults to loading the url of the corresponding text when it is depressed. This can be disabled like so:<br />
<br />
Open the browser, and type the following into the address bar:<br />
about:config<br />
search for '''middlemouse.contentLoadURL''' and set it to false.<br />
<br />
Alternatively if you prefer the traditional scroll cursor on middle-click that is default on Windows browsers:<br />
<br />
search for '''general.autoScroll''' and set it to true.<br />
<br />
== Why my backspace doesn't work as 'Back'? -- How to fix it ==<br />
As I found [http://ubuntu.wordpress.com/2006/12/21/fix-firefox-backspace-to-take-you-to-the-previous-page/ here], this feature was removed to fix a bug. But you can get it back!<br />
<br />
Open the browser, and type the following address:<br />
about:config<br />
<br />
Search for '''browser.backspace_action''' and set it to 0 (zero).<br />
<br />
== Why Firefox doesn't remember my login information? ==<br />
<br />
It maybe cause of a corrupted cookies.sqlite file in your [http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile firefox profile] folder. In order to fix it you may just rename or remove the cookie.sqlite file.<br />
<br />
Open your terminal of choice and type the following:<br />
$ cd ~/.mozilla/firefox/xxxxxxxx.default/<br />
$ rm -f cookies.sqlite<br />
'''Note:''' xxxxxxxx represents a random string of 8 characters.<br />
<br />
Restart your firefox and see if it solved the problem.<br />
<br />
== Broken websites / input fields with dark Gtk Themes ==<br />
<br />
If you use a dark Desktop Theme, you might find some Internet pages have unreadable input & text fields (p.e. Amazon - white text on white background). This can happen because the site only sets either background or text color, and firefox takes the other one from the [[gtk]] theme.<br />
<br />
You can work around that by explicitly setting standard colours for all web pages in ~/.mozilla/firefox/.../chrome/userContent.css.<br />
<br />
This sets input fields to standard black text / white background; both can be overridden by the displayed site, so you should see them as intended. <br />
input {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
textarea {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
<br />
This will force the colours (ignore Website "wishes"):<br />
input {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
<br />
textarea {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
( You might want to pick your own ones though ;) )<br />
<br />
Alternatively, you can use an add-on like stylish (https://addons.mozilla.org/en-US/firefox/addon/2108).<br />
<br />
== Fonts ==<br />
===DPI===<br />
Modifying the following value can help improve the way fonts looks in Firefox if your DPI is below 96 DPI. Firefox by default uses 96 DPI or the system's DPI if it is a higher value. To always use your system's DPI type about:config into your address bar and into the filter type '''layout.css.dpi''' and change to '''0'''.<br />
<br />
===Font Replacement===<br />
Another way to improve how fonts look is to replace them with another. Add or create a ''[[.fonts.conf]]'' with the following.<br />
<br />
<match target="pattern" name="family" ><br />
<test name="family" qual="any" ><br />
<string>'''Helvetica'''</string><br />
</test><br />
<edit mode="assign" name="family" ><br />
<string>'''Bitstream Vera Sans'''</string><br />
</edit><br />
</match><br />
<br />
<br />
The first font name is the one we would like to replace. The second is the one we will be replacing it with.<br />
<br />
=== MIME Types ===<br />
For non gnome users firefox may not associate file types (in the "open with" part of the download menu) you may have to install libgnome so that the file association works smoothly.<br />
<code><br />
pacman -S libgnome<br />
</code><br />
<br />
=== Font Configuration ===<br />
For more information on font configuration, please read [[Xorg Font Configuration]].<br />
<br />
== Tip Articles==<br />
*[[Firefox Tips and Tweaks]]<br />
*[[Adding Firefox Search Engines As User]]<br />
*[[Firefox Widgets|Beautify the form widgets in firefox, e.g. buttons]]<br />
<br />
= Firefox Derivatives =<br />
*[http://en.wikipedia.org/wiki/Iceweasel Iceweasel] - The name of '''two''' different Firefox forks. One was a GNU project; the name of this project has since changed to [http://en.wikipedia.org/wiki/GNU_IceCat Icecat]. The [http://wiki.debian.org/Iceweasel second] is being developed by Debian and is based on 2.0. At the time of writing the [[AUR]] only has Icecat.<br />
<br />
*[http://en.wikipedia.org/wiki/GNU_IceCat GNU/IceCat] - formerly known as GNU IceWeasel, is a web browser distributed by the GNU Project. IceCat, which is made entirely of free software, is a fork of Mozilla Firefox. It is compatible with the GNU/Linux operating system and almost all of Firefox's addons. GNU/IceCat really can fully replace Firefox.<br />
<br />
*[http://getswiftfox.com/ Swiftfox] - An optimized and processor-specific build of Firefox. Currently available via AUR. It should be noted that, considering Arch Linux has ABS, you could build your own optimized build of Firefox.<br />
<br />
*[http://swiftweasel.sourceforge.net/ Swiftweasel] - Mostly like Swiftfox, but the binaries aren't under proprietary license. Some PKGBUILDs are available in AUR.<br />
<br />
= Firefox Alternatives =<br />
*[[Opera]] - A very full-featured web suite. Closed source but free (as in beer).<br />
*[http://en.wikipedia.org/wiki/Epiphany_%28browser%29 Epiphany] - GNOME's default web browser. Uses the same rendering engine as Firefox. <br />
*[http://en.wikipedia.org/wiki/Konqueror Konqueror] - KDE's default web browser. Uses the KHTML rendering engine.<br />
*[http://en.wikipedia.org/wiki/Dillo Dillo] - A very lightweight web browser.<br />
*[http://en.wikipedia.org/wiki/SeaMonkey SeaMonkey] - The continuation of the original Mozilla suite. Includes web browser, email client, etc.<br />
*[http://en.wikipedia.org/wiki/Midori_(browser) Midori] - A webkit-based GTK+ browser. Lightweight and early-development but plenty of features already.<br />
*[http://en.wikipedia.org/wiki/Arora_(web_browser) Arora] - A webkit-based Qt browser in development, very capable and fast.<br />
<br />
= External Links =<br />
*[http://www.howtocreate.co.uk/browserSpeed.html Browser Speed Comparisons] - Dated but still useful.<br />
*[http://web.glandium.org/blog/?p=97 Facts about Debian and Mozilla® Firefox] - An account of the trademark issues from the Firefox package maintainer for Debian.<br />
*[http://www.gnu.org/software/gnuzilla/ Gnuzilla and IceWeasel] - Official website for the GNU Mozilla forks.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Firefox&diff=76439Firefox2009-09-25T01:16:11Z<p>UNIVAC: /* Recommended Add-ons */ not enough suggestions to merit subsections, noise</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|FireFox (Česky)}}<br />
{{i18n_entry|English|Firefox}}<br />
{{i18n_entry|Italiano|Firefox_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
Firefox is an open-source graphical web browser from [http://www.mozilla.com Mozilla]. The Firefox package in Arch Linux is compiled without official branding. This means that when you start Firefox it will use a blue globe for its icon and will be named after its release series' codename. This has to be done because a distribution may use the name "Firefox" and its artwork only if there are no unofficial modifications (i.e. no custom patches).<br />
<br />
<br />
= Enable Firefox Branding =<br />
If you would like to enable branding or simply change the user agent there are a few ways to do it. You can recompile, modify the browser with add-ons, or use the advanced configuration. Please note that distributing such a version would be against the law!<br />
<br />
== Recompile ==<br />
The following procedure is for the 2.x version of Firefox. A branded version of Firefox 3.x is available via AUR [http://aur.archlinux.org/packages.php?ID=18019 here]. We will use [[ABS]] to rebuild Firefox. Make sure you have '''cvsup''' and '''wget''' installed. Now run <br />
abs<br />
If this is your first time running abs it may take a while. Subsequent runs will be much faster. Before you make any custom package you should run abs. Now perform the following:<br />
mkdir -p /var/abs/local/firefox<br />
cp /var/abs/extra/firefox/* /var/abs/local/firefox<br />
cd /var/abs/local/firefox<br />
<br />
Now use your favorite editor and open the mozconfig file. Add the following line to the end of the file:<br />
ac_add_options --enable-official-branding<br />
<br />
Save and exit, then run:<br />
md5sum mozconfig<br />
<br />
Copy the string and then open the PKGBUILD file. Now look at the source and md5sums arrays. You can match up the md5sum to the file by comparing these two. Mozconfig is second on the sources list. So we would modify the second md5sum with the string we obtained earlier.<br />
<br />
Replace this line:<br />
convert ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
with the following:<br />
convert ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
Now scroll down and look for these two lines.<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/<br />
<br />
Replace them with the following<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/ <br />
<br />
Save and exit, then run<br />
makepkg<br />
<br />
This may take some time depending on your system. Once it has created the package, remove your current version of Firefox if you have it installed.<br />
pacman -Rd firefox<br />
Then install the new version with<br />
pacman -A firefox-*.pkg.tar.gz<br />
You may also try upgrading your current Firefox with.<br />
pacman -U firefox-*.pkg.tar.gz<br />
<br />
Of course, replace * with your version number.<br />
<br />
== Add-ons ==<br />
*[https://addons.mozilla.org/firefox/2553/ CCK Wizard] - Allows you to customize every aspect of Firefox. Title bar, user agent, icons, about graphic, and a lot more. <br />
*[https://addons.mozilla.org/firefox/59/ User Agent Switcher] - Adds a menu and a toolbar button to switch the user agent of the browser.<br />
<br />
== Advanced Configuration ==<br />
Enter <code>about:config</code> in your Firefox address bar to access the advanced configuration. In the filter enter <code>useragent.extra.firefox</code>. You will see your current user-agent string; you may put whatever you want in there. If you want to make it appear as the default version of Firefox to websites enter: <code>'''Firefox/2.0.0.11'''</code>. Modify accordingly if there is a newer version.<br />
<br />
== Branding without recompilation ==<br />
To brand "Gran Paradiso" without recompiling the whole browser, you need to replace the Bon Echo icons with the official Firefox icons, and change the strings "Gran Paradiso" and "GranParadiso" in a few files. The [http://bbs.archlinux.org/viewtopic.php?id=44320 firebrand] script takes care of this (see note in bold in the initial thread post). Run it (as root) after an upgrade or installation of firefox. To revert to the Gran Paradiso brand again, simply reinstall firefox. The script will by default download the icons every time it is run. To "cache" the icons locally for later firefox upgrades, set the NEWICONSDIR variable to a suitable directory, for instance<br />
NEWICONSDIR=/usr/local/share/firebrand<br />
<br />
= Recommended Add-ons =<br />
Before you try to install add-ons, make sure that your /tmp directory was created with the right permissions. If addons won't install, <code>chmod 1777 /tmp</code> should fix it.<br />
<br />
*[https://addons.mozilla.org/firefox/1865/ Adblock Plus] - Highly effective ad and popup blocker with lots of options and a simplistic UI.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/220 FlashGot] - Download all the links, movies and audio clips of a page at the maximum speed with a single click. Very powerful, lightweight and reliable external download manager.<br />
*[https://addons.mozilla.org/en-US/firefox/addon/722 NoScript] - The best security you can get in a web browser! Allow active content to run only from sites you trust, and protect yourself against XSS and Clickjacking attacks.<br />
*[https://addons.mozilla.org/firefox/446/ MediaPlayerConnectivity] - Allow you to launch an embedded video from a website in an external application. Good for those who have problems with media plugins.<br />
<br />
= Plugins =<br />
== Useful plugins ==<br />
To find out what plugins you have installed enter <code>about:plugins</code> in the Firefox address bar.<br />
====Flash====<br />
# pacman -S flashplugin<br />
In addition you may need to install ttf-ms-fonts'' (pacman -S ttf-ms-fonts) ''for flashplayer to render text properly.<br />
Don't worry about having a 64-bit installation. The package is in the repos.<br />
<br />
====MPlayer====<br />
MPlayer's multimedia plugin is one of the most mature. This will generally cover everything you need.<br />
# pacman -S mplayer-plugin<br />
<br />
==== Gecko Media Player ====<br />
A good replacement of the now aging ''mplayer-plugin'', is [http://code.google.com/p/gecko-mediaplayer/ Gecko Media Player]. More stable combined with MPlayer 1.0RC2. ''(No more crashes with Apple Trailers.)''<br />
$ sudo pacman -S gecko-mediaplayer<br />
''('''Note!''' Be sure to remove mplayer-plugin if it is already installed.)''<br />
<br />
====Totem-plugin====<br />
If you need a gstreamer based plugin for firefox, you can use the the totem plugin.<br />
# $pacman -S totem-plugin gvfs<br />
<br />
====Java====<br />
''('''Hint:''' each java package described here contains java as well as the fitting browser-plugin for firefox.)''<br />
# pacman -S openjdk6<br />
If you really need to do so you can also install the non-free version of java:<br />
# pacman -S jre<br />
Keep in mind that the free and non-free versions can't be installed in parallel. The free version is nearly perfect at the time of writing this and there's mostly no need anymore to install the proprietary version of java.<br />
<br />
====Citrix====<br />
''See [[Citrix]] how-to.''<br />
<br />
====Adobe Reader====<br />
Licensing issues prevent Acrobat Reader from being available in any repository. You'll only find it in the AUR.<br />
<br />
32-bit AUR package - [http://aur.archlinux.org/packages.php?ID=16980 acroread]<br />
<br />
It installs the Acrobat Reader application as well as the Firefox plugin. Note however that hardware assisted rendering is unavailable under Linux (at least using a nVidia Geforce 8600GTS with 185.18.14 driveR).<br />
<br />
'''For 64-bit installs''' the above link is unusable. It will install but be unusable. Since the application is closed-source a 64-bit version depends on Adobe. You have several options:<br />
<br />
- Either you follow [http://wiki.archlinux.org/index.php/Arch64_Install_bundled_32bit_system this link] and create a chrooted 32-bit environment that you can use for any 32-bit needs which is in line with The Arch Way and more elegant;<br />
<br />
- Or, you can simply get the 32-bit binary along with some 32-bit libraries it needs to run. You need to use [http://aur.archlinux.org/packages.php?ID=7906 bin32-acroread]. You may want to read yaourt output and figure out if you'd like extra font packages. Be advised - you cannot use the Firefox plugin this way - it will not load in the 64-bit browser. You must use [http://aur.archlinux.org/packages.php?ID=6217 nspluginwrapper] available from the AUR. Finally, be sure to run<br />
$ nspluginwrapper -v -a -i<br />
as a '''normal user'''. This checks your plugin directory and links the plugins as needed. Everything should work fine now.<br />
<br />
== Plugins are installed but not working ==<br />
If you installed the plugins like above but they are not used by firefox (you can verify this with typing about:plugins in the adressbar and hitting return.) It's usually a permission problem. Just fix those with:<br />
# chmod -R 755 /usr/lib/mozilla<br />
Then restart firefox and everything should be okay.<br />
<br />
If the above suggestion does not fix anything, and about:plugins still reports that no plugins are installed, run the following command<br />
# ln -sv /usr/lib/mozilla/plugins /usr/lib/firefox-3.0/plugins<br />
Restart firefox and about:plugins should list all of the plugins you have installed.<br />
<br />
Another common problem is that the plugin path is unset. This typical occurs on a new install, when you haven't re-logged yet after installing firefox. You can test this with the command:<br />
$ echo $MOZ_PLUGIN_PATH<br />
If it's unset, then either log out/in, or source /etc/profile.d/mozilla-common.sh in a shell and start firefox from the same shell.<br />
<br />
== Can't download plugins? ==<br />
In some cases, people were not able to download (and install) any of the firefox plugins. The solution is adding the following line in /etc/hosts<br />
64.50.236.214 releases.mozilla.org<br />
<br />
= Tips =<br />
== Enable Spell Checking ==<br />
Right click in any text entry field and add the dictionary for the language you need spell checking for. Restart firefox, and click in a text entry field again to enable spell checking.<br />
<br />
== Wheel Mouse Scroll Speed ==<br />
To modify the default values (i.e. speed-up) of the wheel mouse scroll speed, type the following into Firefox's address bar<br />
about:config<br />
<br />
Now enter the following term into the 'filter' dialog: '''mousewheel.withnokey'''<br />
<br />
*Double-click the entry entitled, '''mousewheel.withnokey.sysnumlines''' and thereby setting its value to '''True'''<br />
*Double-click the entry entitled, '''mousewheel.withnokey.numlines''' and enter the desired number of lines per movement into the box (I'm using 12 for example).<br />
<br />
You may close the about:config webpage, restart Firefox for this setting to take effect.<br />
<br />
== Speed-up Firefox using tmpfs ==<br />
If your machine has memory to spare, you can use tmpfs to cache your entire profile directory which makes Firefox ''very'' responsive and generally faster. Full list of benifits include:<br />
*Reduced disk read/writes (great if you're on an SSD)<br />
*Better user experience through heightened responsive feel<br />
*Many operations within Firefox are instantaneous (quick search, history, etc.)<br />
<br />
See the [[Speed-up Firefox using tmpfs]] wiki article for this tip/tweak.<br />
<br />
== Lighten, Speed-up Firefox / Fix fonts and controls issues ==<br />
''Also font fix for Mozilla suite''<br />
<br />
Try to add:<br />
export MOZ_DISABLE_PANGO=1<br />
<br />
to /etc/profile and logout.<br />
<br />
== Why do I get this error when I click the middle mouse button? ==<br />
! The URL is not valid and cannot be loaded.<br />
You may also get unexpected behavior like looking up a random webpage.<br />
<br />
The reason stems from the use of the middle mouse buttons in <code>UNIX</code>-like operating systems. The middle mouse button is used to paste whatever text has been highlighted/added to the clipboard. Also, there is a feature in Firefox which defaults to loading the url of the corresponding text when it is depressed. This can be disabled like so:<br />
<br />
Open the browser, and type the following into the address bar:<br />
about:config<br />
search for '''middlemouse.contentLoadURL''' and set it to false.<br />
<br />
Alternatively if you prefer the traditional scroll cursor on middle-click that is default on Windows browsers:<br />
<br />
search for '''general.autoScroll''' and set it to true.<br />
<br />
== Why my backspace doesn't work as 'Back'? -- How to fix it ==<br />
As I found [http://ubuntu.wordpress.com/2006/12/21/fix-firefox-backspace-to-take-you-to-the-previous-page/ here], this feature was removed to fix a bug. But you can get it back!<br />
<br />
Open the browser, and type the following address:<br />
about:config<br />
<br />
Search for '''browser.backspace_action''' and set it to 0 (zero).<br />
<br />
== Why Firefox doesn't remember my login information? ==<br />
<br />
It maybe cause of a corrupted cookies.sqlite file in your [http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile firefox profile] folder. In order to fix it you may just rename or remove the cookie.sqlite file.<br />
<br />
Open your terminal of choice and type the following:<br />
$ cd ~/.mozilla/firefox/xxxxxxxx.default/<br />
$ rm -f cookies.sqlite<br />
'''Note:''' xxxxxxxx represents a random string of 8 characters.<br />
<br />
Restart your firefox and see if it solved the problem.<br />
<br />
== Broken websites / input fields with dark Gtk Themes ==<br />
<br />
If you use a dark Desktop Theme, you might find some Internet pages have unreadable input & text fields (p.e. Amazon - white text on white background). This can happen because the site only sets either background or text color, and firefox takes the other one from the [[gtk]] theme.<br />
<br />
You can work around that by explicitly setting standard colours for all web pages in ~/.mozilla/firefox/.../chrome/userContent.css.<br />
<br />
This sets input fields to standard black text / white background; both can be overridden by the displayed site, so you should see them as intended. <br />
input {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
textarea {<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
<br />
This will force the colours (ignore Website "wishes"):<br />
input {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
<br />
textarea {<br />
background-color: pink !important;<br />
color: green !important;<br />
}<br />
( You might want to pick your own ones though ;) )<br />
<br />
Alternatively, you can use an add-on like stylish (https://addons.mozilla.org/en-US/firefox/addon/2108).<br />
<br />
== Fonts ==<br />
===DPI===<br />
Modifying the following value can help improve the way fonts looks in Firefox if your DPI is below 96 DPI. Firefox by default uses 96 DPI or the system's DPI if it is a higher value. To always use your system's DPI type about:config into your address bar and into the filter type '''layout.css.dpi''' and change to '''0'''.<br />
<br />
===Font Replacement===<br />
Another way to improve how fonts look is to replace them with another. Add or create a ''[[.fonts.conf]]'' with the following.<br />
<br />
<match target="pattern" name="family" ><br />
<test name="family" qual="any" ><br />
<string>'''Helvetica'''</string><br />
</test><br />
<edit mode="assign" name="family" ><br />
<string>'''Bitstream Vera Sans'''</string><br />
</edit><br />
</match><br />
<br />
<br />
The first font name is the one we would like to replace. The second is the one we will be replacing it with.<br />
<br />
=== MIME Types ===<br />
For non gnome users firefox may not associate file types (in the "open with" part of the download menu) you may have to install libgnome so that the file association works smoothly.<br />
<code><br />
pacman -S libgnome<br />
</code><br />
<br />
=== Font Configuration ===<br />
For more information on font configuration, please read [[Xorg Font Configuration]].<br />
<br />
== Tip Articles==<br />
*[[Firefox Tips and Tweaks]]<br />
*[[Adding Firefox Search Engines As User]]<br />
*[[Firefox Widgets|Beautify the form widgets in firefox, e.g. buttons]]<br />
<br />
= Firefox Derivatives =<br />
*[http://en.wikipedia.org/wiki/Iceweasel Iceweasel] - The name of '''two''' different Firefox forks. One was a GNU project; the name of this project has since changed to [http://en.wikipedia.org/wiki/GNU_IceCat Icecat]. The [http://wiki.debian.org/Iceweasel second] is being developed by Debian and is based on 2.0. At the time of writing the [[AUR]] only has Icecat.<br />
<br />
*[http://en.wikipedia.org/wiki/GNU_IceCat GNU/IceCat] - formerly known as GNU IceWeasel, is a web browser distributed by the GNU Project. IceCat, which is made entirely of free software, is a fork of Mozilla Firefox. It is compatible with the GNU/Linux operating system and almost all of Firefox's addons. GNU/IceCat really can fully replace Firefox.<br />
<br />
*[http://getswiftfox.com/ Swiftfox] - An optimized and processor-specific build of Firefox. Currently available via AUR. It should be noted that, considering Arch Linux has ABS, you could build your own optimized build of Firefox.<br />
<br />
*[http://swiftweasel.sourceforge.net/ Swiftweasel] - Mostly like Swiftfox, but the binaries aren't under proprietary license. Some PKGBUILDs are available in AUR.<br />
<br />
= Firefox Alternatives =<br />
*[[Opera]] - A very full-featured web suite. Closed source but free (as in beer).<br />
*[http://en.wikipedia.org/wiki/Epiphany_%28browser%29 Epiphany] - GNOME's default web browser. Uses the same rendering engine as Firefox. <br />
*[http://en.wikipedia.org/wiki/Konqueror Konqueror] - KDE's default web browser. Uses the KHTML rendering engine.<br />
*[http://en.wikipedia.org/wiki/Dillo Dillo] - A very lightweight web browser.<br />
*[http://en.wikipedia.org/wiki/SeaMonkey SeaMonkey] - The continuation of the original Mozilla suite. Includes web browser, email client, etc.<br />
*[http://en.wikipedia.org/wiki/Midori_(browser) Midori] - A webkit-based GTK+ browser. Lightweight and early-development but plenty of features already.<br />
*[http://en.wikipedia.org/wiki/Arora_(web_browser) Arora] - A webkit-based Qt browser in development, very capable and fast.<br />
<br />
= External Links =<br />
*[http://www.howtocreate.co.uk/browserSpeed.html Browser Speed Comparisons] - Dated but still useful.<br />
*[http://web.glandium.org/blog/?p=97 Facts about Debian and Mozilla® Firefox] - An account of the trademark issues from the Firefox package maintainer for Debian.<br />
*[http://www.gnu.org/software/gnuzilla/ Gnuzilla and IceWeasel] - Official website for the GNU Mozilla forks.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76438Opera2009-09-25T01:11:29Z<p>UNIVAC: /* Java on Arch64 */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
To install the open source version, or:<br />
# pacman -S jre<br />
To install Sun's proprietary version.<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# openjdk<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
# jre<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# openjdk<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# jre<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76437Opera2009-09-25T01:09:20Z<p>UNIVAC: /* Java on Arch64 */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S openjdk<br />
To install the open source version, or:<br />
# pacman -S jre<br />
To install Sun's proprietary version.<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
openjdk:<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
jre:<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
openjdk:<br />
# cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
# ln -s server/libjvm.so .<br />
jre:<br />
# cd /opt/java/jre/lib/amd64<br />
# ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
JRE: /opt/java/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76436Opera2009-09-25T01:04:26Z<p>UNIVAC: /* Java on Arch64 */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S jre<br />
or<br />
# pacman -S openjdk<br />
<br />
Add to ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# For jre package:<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
# For openjdk package:<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# For jre package:<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# For openjdk package:<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
JRE: /opt/java/jre/lib/amd64/<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76435Opera2009-09-25T01:03:19Z<p>UNIVAC: /* Optional tweaks */ bash_profile</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to ~/.bash_profile (or /etc/profile to make the change system-wide):<br />
export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S jre<br />
or<br />
# pacman -S openjdk<br />
<br />
Add to the bottom of ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# For jre package:<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
# For openjdk package:<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# For jre package:<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# For openjdk package:<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
JRE: /opt/java/jre/lib/amd64/<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76434Opera2009-09-25T01:01:02Z<p>UNIVAC: /* Optional tweaks */</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using qtconfig ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to your /etc/profile:<br />
# export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S jre<br />
or<br />
# pacman -S openjdk<br />
<br />
Add to the bottom of ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# For jre package:<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
# For openjdk package:<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# For jre package:<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# For openjdk package:<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
JRE: /opt/java/jre/lib/amd64/<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76433Opera2009-09-25T01:00:10Z<p>UNIVAC: /* Static build */ misc</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using '''qtconfig''' ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to your /etc/profile:<br />
# export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S jre<br />
or<br />
# pacman -S openjdk<br />
<br />
Add to the bottom of ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# For jre package:<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
# For openjdk package:<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# For jre package:<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# For openjdk package:<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
JRE: /opt/java/jre/lib/amd64/<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76432Opera2009-09-25T00:59:14Z<p>UNIVAC: /* Microsoft fonts, and Opera */ removed ,</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': Not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using '''qtconfig''' ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to your /etc/profile:<br />
# export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S jre<br />
or<br />
# pacman -S openjdk<br />
<br />
Add to the bottom of ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# For jre package:<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
# For openjdk package:<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# For jre package:<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# For openjdk package:<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
JRE: /opt/java/jre/lib/amd64/<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Talk:Opera&diff=76431Talk:Opera2009-09-25T00:54:14Z<p>UNIVAC: added comment</p>
<hr />
<div>Well, this is my first article here, hope it won't get considered for deletion! :)<br />
----<br />
Did someone get java (openJDK6 or sun-jre) to work with opera? I have failed repeatedly, and would appreciate very much if anyone could write down how to do it.<br />
~whoppix<br />
----<br />
I had problems with java on Opera with Arch64, fixed it and added a part under troubleshooting. If same fix works for Arch i686, edit and remove 'on Arch64'. --[[User:Duologic|Duologic]] May 24, 2009<br />
----<br />
Took out a lot of cruft from Opera <10. I haven't revised the arch64 section because I can't verify wether it's obsolete or not. [[User:UNIVAC|UNIVAC]] 20:54, 24 September 2009 (EDT)</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76430Opera2009-09-25T00:50:48Z<p>UNIVAC: /* Slow scrolling on NVidia cards */ asd</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': Not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts, and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using '''qtconfig''' ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to your /etc/profile:<br />
# export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S jre<br />
or<br />
# pacman -S openjdk<br />
<br />
Add to the bottom of ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# For jre package:<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
# For openjdk package:<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# For jre package:<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# For openjdk package:<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
JRE: /opt/java/jre/lib/amd64/<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on nVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAChttps://wiki.archlinux.org/index.php?title=Opera&diff=76429Opera2009-09-25T00:49:40Z<p>UNIVAC: /* Microsoft fonts, and Opera */ numbered</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|:Opera (Česky)}}<br />
{{i18n_entry|English|:Opera}}<br />
{{i18n_entry|简体中文|:Opera(简体中文)}}<br />
{{i18n_entry|Español|:Opera (Español)}}<br />
{{i18n_entry|Italian|:Opera_(Italiano)}}<br />
{{i18n_links_end}}<br />
<br />
==Introduction==<br />
:[http://www.opera.com Opera] is a web browser and internet suite developed by the Opera Software company. <br />
:The browser handles common Internet-related tasks such as displaying websites, sending and receiving e-mail messages, managing contacts, IRC online chatting, downloading files via BitTorrent, and reading web feeds. Opera is offered free of charge for personal computers and mobile phones, but for other devices it must be paid for.<br />
:''(from Wikipedia)''<br />
<br />
==Installation==<br />
<br />
Opera has been moved to the [[AUR]] due to licensing issues. You can find it [http://aur.archlinux.org/packages.php?ID=10333 here].<br />
<br />
To install the latest stable Opera with [[yaourt]]:<br />
$ yaourt -S opera<br />
''Note: This will install Qt4 shared build on i686 and x86_64.<br />
<br />
===Static build===<br />
Opera is also available statically linked against the Qt libraries, removing them as dependencies.<br/><br />
It is available for i686 as [http://aur.archlinux.org/packages.php?ID=26034 opera-static] (''Obsolete'': Not updated to Opera 10 as of Thu Sep 24 19:50:49 VET 2009) in the AUR.<br />
<br />
== Other options ==<br />
=== Microsoft fonts, and Opera ===<br />
If the ttf-ms-fonts package has been installed before running Opera for the first time, Opera will use those fonts by default, regardless of what's specified by local GTK options, Gnome or KDE font management, etc.<br />
<br />
To make Opera use options set by your font manager:<br />
# Close Opera<br />
# Remove ttf-ms-fonts<br />
# rm -rf ~/.opera ('''WARNING''': this is inteded for ''new'' installations of Opera, since removing this dir and all of it's content will reset Opera's settings, erase cache, bookmarks, etc.)<br />
# Finally, run Opera again. You can reinstall ttf-ms-fonts after doing this.<br />
<br />
''Note'': all fonts are configurable at ''Tools -> Preferences -> Advanced -> Fonts'', and that fonts specified by '''qtconfig''' take precedence over Gnome managed fonts.<br />
<br />
===Optional tweaks===<br />
* To remove the tray icon, launch Opera with the ''-notrayicon'' option.<br />
* To make the menus look nice, install your preferred Qt4 theme and apply it by using '''qtconfig''' ('/usr/bin/qtconfig') which is installed as a dependency for the non static opera package.<br />
* To improve (flash) plugin performance in opera, just issue this command before starting opera or add it to your /etc/profile:<br />
# export OPERAPLUGINWRAPPER_PRIORITY=0<br />
<br />
==Troubleshooting==<br />
<br />
=== Java on Arch64 ===<br />
<br />
Install a java environment:<br />
<br />
# pacman -S jre<br />
or<br />
# pacman -S openjdk<br />
<br />
Add to the bottom of ~/.bash_profile (or /etc/profile to make this setting affect all logins):<br />
# For jre package:<br />
export LD_LIBRARY_PATH=/opt/java/jre/lib/amd64/server/<br />
# For openjdk package:<br />
export LD_LIBRARY_PATH=/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/server/<br />
<br />
Or alternatively create a symlink to the file libjvm.so:<br />
# For jre package:<br />
cd /opt/java/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
# For openjdk package:<br />
cd /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64<br />
ln -s server/libjvm.so .<br />
<br />
Edit the path to java in Opera: Menu -> Tools -> Preferences -> Advanced -> Content -> Java Options.<br />
<br />
Choose the correct location:<br />
JRE: /opt/java/jre/lib/amd64/<br />
OpenJDK: /usr/lib/jvm/java-1.6.0-openjdk/jre/lib/amd64/<br />
<br />
=== Missing shared object file ===<br />
* If you get the following error:<br />
<br />
/usr/lib/opera/9.27-20080331.6/opera: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory<br />
<br />
Create a symlink (as root):<br />
# ln -s /opt/qt/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3<br />
That should fix the problem.<br />
* If you sometimes have rendering problems, like duplicated pixel rows, turn of "smooth scrolling" (''Tools -> Preferences -> Advanced -> Browsing -> Smooth scrolling'')<br />
<br />
=== Fonts seem too big ===<br />
Sometimes the font may seem too big on some webpages, compared to other webpages, or just the rest of the webpage, this can be fixed by forcing Opera to use a specific DPI.<br />
<br />
Simply type:<br />
opera:config<br />
In the address bar and search for DPI, and then set your desired DPI in the "Forced DPI" field.<br />
<br />
=== Slow scrolling on NVidia cards ===<br />
Try running the following command:<br />
<br />
nvidia-settings -a InitialPixmapPlacement=2<br />
<br />
For testing you can use http://helion.pl, which, on some computers, works extremely slow without this hack.</div>UNIVAC