https://wiki.archlinux.org/api.php?action=feedcontributions&user=Robertolos&feedformat=atomArchWiki - User contributions [en]2024-03-29T06:36:16ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Raspberry_Pi&diff=444886Raspberry Pi2016-08-06T14:07:03Z<p>Robertolos: proc folder was not mounted after chroot</p>
<hr />
<div>[[Category:ARM architecture]]<br />
[[cs:Raspberry Pi]]<br />
[[ja:Raspberry Pi]]<br />
[[ru:Raspberry Pi]]<br />
[[uk:Raspberry Pi]]<br />
[[zh-CN:Raspberry Pi]]<br />
From [[Wikipedia:Raspberry_Pi|Wikipedia]]:<br />
<br />
:The Raspberry Pi is a series of credit card-sized single-board computers developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools.<br />
<br />
The original models, released in 2012, are based on the Broadcom SoC BCM2835 ([[Wikipedia:ARM11|ARM11 architecture]]). The Raspberry Pi 2, released in 2015, is shipped with a BCM2836 SoC (quad-core [[Wikipedia:ARM Cortex-A7|ARM Cortex-A7 architecture]]). In February 2016, the Pi 3 was launched which contains a BCM2837 SoC (quad-core [[Wikipedia:ARM Cortex-A53|ARM Cortex-A53 architecture]]) and built in WiFi and Bluetooth.<br />
<br />
== Article preface ==<br />
This article is not meant to be an exhaustive setup guide and assumes that the reader has setup an Arch system before. Arch newbies are encouraged to read the [[Beginners' guide]] if unsure how to perform standard tasks such as creating users, managing the system, etc.<br />
<br />
{{Note|Support for the ARM architecture is provided on http://archlinuxarm.org not through posts to the official Arch Linux Forum. Any posts related to ARM specific issues will be promptly closed per the [[Code of conduct#Arch Linux distribution support *only*]] policy.}}<br />
<br />
== System architecture ==<br />
<br />
The Raspberry Pi is an ARM-based device and therefore needs binaries compiled for this architecture. These binaries are provided by the [http://archlinuxarm.org/about Arch Linux ARM project] which ports Arch Linux to ARM-based devices. They also have a separate community and forum on their website, while original forum does ''not'' support ARM specific issues.<br />
With the introduction of the Raspberry Pi 2 the packages needed now depend on which architecture the devices has:<br />
* ARMv6 (BCM2835): Raspberry Pi Model A, A+, B, B+, Zero<br />
* ARMv7 (BCM2836): Raspberry Pi 2 (based on Model B+)<br />
* ARMv8 (BCM2837): Raspberry Pi 3<br />
<br />
== SD card performance ==<br />
<br />
System responsiveness, particularly during operations involving disk I/O such as updating the system, can be adversely affected by poor quality/slow SD media. This is characterized by [http://archlinuxarm.org/forum/viewtopic.php?f=64&t=9467 frequent, often extended pauses] as pacman writes out files to the file system. The pauses are not due to saturation of the RPi or RPi2 bus, but are likely the bottle-neck due to a slow SD (or micro SD) card. See the [[Benchmarking#Flash media]] for more.<br />
<br />
Performance and system responsiveness can be generally improved by making adjustments to the system configuration. See especially [[Maximizing performance]] and [[SSD#Tips for minimizing disk reads/writes]].<br />
<br />
=== Enable fsck on boot ===<br />
<br />
Follow [[fsck#Boot time checking]]. Remember that kernel parameters are specified in {{ic|/boot/cmdline.txt}}.<br />
<br />
== Installing Arch Linux ARM ==<br />
<br />
See the [http://archlinuxarm.org/platforms/armv6/raspberry-pi Arch Linux ARM Pi documentation] or [http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2 Arch Linux ARM Pi2 documentation] or [https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3 Arch Linux ARM Pi3 documentation].<br />
<br />
== Network ==<br />
<br />
The fresh install comes preconfigured to use the onboard NIC in dhcp mode via [[systemd-networkd]] which should allow access to an official installation through [[Secure Shell]]. The root user's password is "root" and it is highly recommended to change the password and optionally set up [[SSH keys]].<br />
<br />
=== Configure WLAN without ethernet ===<br />
<br />
Users needing to establish a wireless internet connection will need to use a wireless daemon such as [[WPA supplicant]]. Consult the [[Beginners'_guide#Wireless|wireless section]] of the Beginner's Guide for additional instruction.<br />
<br />
== Audio ==<br />
{{Pkg|alsa-utils}} should supply the needed programs to use onboard sound. Default volume can be adjusted using {{ic|alsamixer}}. <br />
<br />
A key change with Linux kernel version 4.4.x for ARM related to ALSA and to the needed sound module: in order to use tools such as {{ic|alsamixer}} with the current kernel, users ''must'' modify {{ic|/boot/config.txt}} to contain the following line: <br />
<br />
dtparam=audio=on<br />
<br />
{{Tip|Ensure that the sole source "PCM" is not muted (denoted by {{ic|MM}} if muted, press {{ic|M}} to unmute).}}<br />
<br />
Select an audio source for output:<br />
$ amixer cset numid=3 ''x''<br />
<br />
Where {{ic|''x''}} corresponds to:<br />
*0 for Auto<br />
*1 for Analog out<br />
*2 for HDMI<br />
<br />
=== Caveats for HDMI audio ===<br />
Some applications require a setting in {{ic|/boot/config.txt}} to force audio over HDMI:<br />
hdmi_drive=2<br />
<br />
== Video ==<br />
<br />
=== HDMI / analog TV-Out ===<br />
With the default configuration, the Raspberry Pi uses HDMI video if a [[wikipedia:HDMI|HDMI]] monitor is connected. Otherwise, it uses analog TV-Out (also known as composite output or RCA)<br />
<br />
To turn the HDMI or analog TV-Out on or off, have a look at<br />
<br />
/opt/vc/bin/tvservice<br />
<br />
Use the ''-s'' parameter to check the status; the ''-o'' parameter to turn the display off and ''-p'' parameter to power on HDMI with preferred settings.<br />
<br />
Adjustments are likely required to correct proper overscan/underscan and are easily achieved in {{ic|boot/config.txt}} in which many tweaks are set. To fix, simply uncomment the corresponding lines and setup per the commented instructions:<br />
<br />
# uncomment the following to adjust overscan. Use positive numbers if console<br />
# goes off screen, and negative if there is too much border<br />
#overscan_left=16<br />
overscan_right=8<br />
overscan_top=-16<br />
overscan_bottom=-16<br />
<br />
Or simply disable overscan if the TV/monitor has a "fit to screen" option.<br />
<br />
disable_overscan=1<br />
<br />
Users wishing to use the analog video out should consult [https://raw.github.com/Evilpaul/RPi-config/master/config.txt this] config file which contains options for non-NTSC outputs.<br />
<br />
A reboot is needed for new settings to take effect.<br />
<br />
=== Caveats for analog TV-Out ===<br />
<br />
Since Raspberry Pi 1 Model B+ and Raspberry Pi 2 Model B, the composite video socket was removed, with the replacement of composite signal through the 3.5mm video/audio jack. Some RCA cables do not follow the same standard as Raspberry Pi, in which case connect the red or white audio plug for video.[http://www.raspberrypi-spy.co.uk/2014/07/raspberry-pi-model-b-3-5mm-audiovideo-jack/]<br />
<br />
=== X.org driver ===<br />
<br />
The X.org driver for Raspberry Pi can be [[installed]] with the ''xf86-video-fbdev'' or ''xf86-video-fbturbo-git'' package.<br />
<br />
== Onboard hardware sensors ==<br />
=== Temperature ===<br />
Temperatures sensors can be queried with utils in the ''raspberrypi-firmware-tools'' package. The RPi offers a sensor on the BCM2835 SoC (CPU/GPU):<br />
<br />
{{hc|$ /opt/vc/bin/vcgencmd measure_temp|2=<br />
temp=49.8'C<br />
}}<br />
<br />
Alternatively, simply read from the file system:<br />
{{hc|$ cat /sys/class/thermal/thermal_zone0/temp|2=<br />
49768<br />
}}<br />
<br />
For human readable output:<br />
{{hc|$ awk '{printf "%3.1f°C\n", $1/1000}' /sys/class/thermal/thermal_zone0/temp|2=<br />
54.1°C<br />
}}<br />
<br />
=== Voltage ===<br />
Four different voltages can be monitored via {{ic|/opt/vc/bin/vcgencmd}} as well:<br />
<br />
$ /opt/vc/bin/vcgencmd measure_volts ''<id>''<br />
<br />
Where {{ic|''<id>''}} is:<br />
*core for core voltage<br />
*sdram_c for sdram Core voltage<br />
*sdram_i for sdram I/O voltage<br />
*sdram_p for sdram PHY voltage<br />
<br />
=== Lightweight monitoring suite ===<br />
{{AUR|monitorix}} has specific support for the RPi since v3.2.0. Screenshots available [http://www.monitorix.org/screenshots.html here].<br />
<br />
== Overclocking/underclocking ==<br />
<br />
The RPi can be overclocked by editing {{ic|/boot/config.txt}}, for example:<br />
<br />
arm_freq=800<br />
arm_freq_min=100<br />
core_freq=300<br />
core_freq_min=75<br />
sdram_freq=400<br />
over_voltage=0<br />
<br />
The optional {{ic|*_min}} lines define the minimum frequency to be used for the given component. When the system is not under load, the frequencies will drop down to the minimum value. Consult the [http://elinux.org/RPiconfig#Overclocking Overclocking] article on elinux for additional options and examples.<br />
<br />
A reboot is needed for new settings to take effect.<br />
<br />
The overclocked setting for CPU clock applies only when the governor throttles up the CPU, i.e. under load. To query the current frequency of the CPU:<br />
<br />
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq<br />
<br />
See [[CPU frequency scaling]] for details on scaling governors.<br />
<br />
{{Tip|The following script will show all frequencies set on the RPi:<br />
{{bc|<nowiki><br />
#/bin/bash<br />
for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do<br />
echo -e "$src:\t$(/opt/vc/bin/vcgencmd measure_clock $src)"<br />
done<br />
</nowiki>}}<br />
}}<br />
<br />
== Serial console ==<br />
Edit the default {{ic|/boot/cmdline.txt}}, change {{ic|loglevel}} to {{ic|5}} to see boot messages:<br />
loglevel=5<br />
<br />
{{Note|The Pi3 requires {{ic|1=enable_uart=1}} be added to {{ic|/boot/cmdline.txt}} in order to display boot messages.}}<br />
<br />
If the default speed of 115200 does not work properly, try changing it to 38400:<br />
console=ttyAMA0,38400 kgdboc=ttyAMA0,38400<br />
<br />
[[Start]] and [[enable]] the {{ic|getty@ttyAMA0}} systemd service on the Pi.<br />
<br />
Creating the proper service link:<br />
# ln -s /usr/lib/systemd/system/serial-getty@.service /etc/systemd/system/getty.target.wants/serial-getty@ttyAMA0.service<br />
<br />
From a PC, connect:<br />
# screen /dev/ttyUSB0 38400<br />
<br />
== Raspberry Pi camera module ==<br />
The commands for the camera module are included as part of the ''raspberrypi-firmware-tools'' package - which is installed by default.<br />
$ /opt/vc/bin/raspistill<br />
$ /opt/vc/bin/raspivid<br />
<br />
Append to {{ic|/boot/config.txt}}:<br />
gpu_mem=128<br />
start_file=start_x.elf<br />
fixup_file=fixup_x.dat<br />
<br />
Optionally<br />
disable_camera_led=1<br />
<br />
The following is a common error:<br />
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC<br />
mmal: camera component couldn't be enabled<br />
mmal: main: Failed to create camera component<br />
mmal: Failed to run camera app. Please check for firmware updates<br />
<br />
which can be corrected by setting these values in {{ic|/boot/config.txt}}:<br />
cma_lwm=<br />
cma_hwm=<br />
cma_offline_start=<br />
<br />
Another common error:<br />
<br />
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)<br />
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)<br />
mmal: Failed to create camera component<br />
mmal: main: Failed to create camera component<br />
mmal: Only 64M of gpu_mem is configured. Try running "sudo raspi-config" and ensure that "memory_split" has a value of 128 or greater<br />
<br />
can be corrected by adding the following line:<br />
{{hc|/etc/modprobe.d/blacklist.conf|blacklist i2c_bcm2708}}<br />
<br />
In order to use standard applications (those that look for {{ic|/dev/video0}}) the V4L2 driver must be loaded. This can be done automatically at boot by creating an autoload file such as the following.<br />
{{hc|/etc/modules-load.d/rpi-camera.conf|bcm2835-v4l2}}<br />
<br />
== Hardware random number generator ==<br />
Arch Linux ARM for the Raspberry Pi has the {{ic|bcm2708-rng}} module set to load at boot (see [http://archlinuxarm.org/forum/viewtopic.php?f=31&t=4993#p27708 this]), but install the ''rng-tools'' and tell the Hardware RNG Entropy Gatherer Daemon (''rngd'') where to find the hardware random number generator.<br />
<br />
This can be done by editing {{ic|/etc/conf.d/rngd}}:<br />
<br />
RNGD_OPTS="-o /dev/random -r /dev/hwrng"<br />
<br />
and enabling and [[start]]ing the ''rngd'' service.<br />
<br />
If [[haveged]] is running, it should be stopped and disabled, as it might compete with ''rngd'' and is only preferred when there is no hardware random number generator available.<br />
<br />
Once completed, this change ensures that data from the hardware random number generator is fed into the kernel's entropy pool at {{ic|/dev/random}}. To check the available entropy, run:<br />
<br />
# cat /proc/sys/kernel/random/entropy_avail<br />
<br />
The number it reports should be around 3000, whereas before setting up ''rngd'' it would have been closer to 1000.<br />
<br />
== GPIO ==<br />
=== SPI ===<br />
To enable the {{ic|/dev/spidev*}} devices, uncomment the following line:<br />
{{hc|head=/boot/config.txt|output=<br />
device_tree_param=spi=on<br />
}}<br />
<br />
=== Python ===<br />
To be able to use the GPIO pins from Python, use the [https://pypi.python.org/pypi/RPi.GPIO RPi.GPIO] library. Install either {{AUR|python-raspberry-gpio}} or {{AUR|python2-raspberry-gpio}}{{Broken package link|{{aur-mirror|python2-raspberry-gpio}}}} from the [[AUR]].<br />
<br />
== I2C ==<br />
<br />
Install ''i2c-tools'' and ''lm_sensors'' packages.<br />
<br />
Configure the bootloader to enable the i2c hardware by appending {{ic|/boot/config.txt}}:<br />
dtparam=i2c_arm=on<br />
<br />
Configure the {{ic|i2c-dev}} and {{ic|i2c-bcm2708}} (if not blacklisted for the camera) modules to be loaded at boot:<br />
<br />
{{hc|/etc/modules-load.d/raspberrypi.conf|i2c-dev<br />
i2c-bcm2708}}<br />
<br />
Reboot the Raspberry Pi and issue the following command to get the hardware address:<br />
i2cdetect -y 0<br />
<br />
{{Note|When using the I2C1 port instead of I2C0, one will need to run {{ic|i2cdetect -y 1}} instead and replace {{ic|i2c-0}} with {{ic|i2c-1}} in the following steps.}}<br />
<br />
Now we need to tell Linux to instantiate the device. Change the hardware address to the address found in the previous step with '0x' as prefix (e.g. 0x48) and choose a device name:<br />
echo <devicename> <hardware address> >/sys/class/i2c-adapter/i2c-0/new_device<br />
<br />
Check the dmesg command for a new entry:<br />
i2c-0: new_device: Instantiated device ds1621 at 0x48<br />
Finally, read the sensor output:<br />
sensors<br />
<br />
== Compiling on the RPi ==<br />
<br />
Compiling can be very slow on a RPi. [[Distcc]] can greatly improve compilation times if other nodes are on the network. For users with x86_64 or i686 boxes, [[Distcc#Arch_ARM]] describes the proper setup for distcc to use these resources.<br />
<br />
== QEMU chroot ==<br />
<br />
Sometimes it is easier to work directly on a disk image instead of the real Raspberry Pi. This can be achieved by mounting an SD card containing the RPi root partition and chrooting into it. From the chroot it should be possible to run ''pacman'' and install more packages, compile large libraries etc. Since the executables are for the ARM architecture, the translation to x86 needs to be performed by [[QEMU]].<br />
<br />
{{Note|As of January 2016, {{pkg|make}} won't run in QEMU for ARM so it is not possible to build packages this way. Follow the [https://archlinuxarm.org/wiki/Distcc_Cross-Compiling guide on the Arch Linux ARM website] to build a cross-compiler if building ARM packages is needed.}}<br />
<br />
Install {{AUR|binfmt-support}} and {{AUR|qemu-user-static}} from the [[AUR]].<br />
<br />
Make sure that the ARM to x86 translation is active:<br />
<br />
# update-binfmts --importdir /var/lib/binfmts/ --import<br />
# update-binfmts --display qemu-arm<br />
<br />
If ARM to x86 translation is not active, enable it using update-binfmts:<br />
<br />
# update-binfmts --enable qemu-arm<br />
<br />
Mount the SD card to {{ic|mnt/arch}} (the device name may be different).<br />
<br />
# mkdir -p /mnt/arch<br />
# mount /dev/mmcblk0p2 mnt/arch<br />
# mount -t proc proc /mnt/arch/proc <br />
<br />
Copy the QEMU executable, which will handle the translation from ARM, to the SD card root:<br />
<br />
# cp /usr/bin/qemu-arm-static mnt/usr/bin<br />
<br />
Finally chroot into the SD card root as described in [[Change root#Using chroot]], keeping in mind that {{ic|qemu-arm-static}} needs to be called in the {{ic|chroot}} command i.e.:<br />
<br />
# chroot /mnt/arch /usr/bin/qemu-arm-static /bin/bash<br />
<br />
== See also ==<br />
* [https://www.raspberrypi.org Raspberry Pi] - Official website<br />
* [http://elinux.org/RPiconfig RPi Config] - Excellent source of info relating to under-the-hood tweaks.<br />
* [http://elinux.org/RPI_vcgencmd_usage RPi vcgencmd usage] - Overview of firmware command vcgencmd.<br />
* [http://archpi.dabase.com/ Arch Linux ARM on Raspberry PI] - A FAQ style site with hints and tips for running Arch Linux on the RPi<br />
* [https://github.com/phortx/Raspberry-Pi-Setup-Guide] - A really opinionated guide how to setup a RPi with Arch Linux</div>Robertoloshttps://wiki.archlinux.org/index.php?title=Firefox&diff=403762Firefox2015-10-08T08:58:18Z<p>Robertolos: </p>
<hr />
<div>[[Category:Web browser]]<br />
[[ar:Firefox]]<br />
[[cs:Firefox]]<br />
[[de:Firefox]]<br />
[[es:Firefox]]<br />
[[fr:Firefox]]<br />
[[it:Firefox]]<br />
[[ja:Firefox]]<br />
[[ko:Firefox]]<br />
[[ru:Firefox]]<br />
[[tr:Firefox]]<br />
[[zh-CN:Firefox]]<br />
{{Related articles start}}<br />
{{Related|Browser plugins}}<br />
{{Related|Firefox tweaks}}<br />
{{Related|Chromium}}<br />
{{Related|Opera}}<br />
{{Related articles end}}<br />
[http://www.firefox.com Firefox] is a popular open-source graphical web browser from [http://www.mozilla.com Mozilla].<br />
<br />
== Installing ==<br />
<br />
Firefox can be [[installed]] with the {{Pkg|firefox}} package.<br />
<br />
Other alternatives include:<br />
<br />
*{{App|Firefox Extended Support Release|long-term supported version|https://www.mozilla.org/en-US/firefox/organizations/|{{AUR|firefox-esr-bin}}}}<br />
*{{App|Firefox Beta|cutting-edge version|https://www.mozilla.org/en-US/firefox/channel|{{AUR|firefox-beta-bin}}}}<br />
*{{App|Firefox Developer Edition|for developers|http://www.mozilla.org/en-US/firefox/developer|{{AUR|firefox-developer}}}}<br />
*{{App|Firefox Aurora|superseded by developer edition|http://www.mozilla.org/en-US/firefox/aurora/|{{AUR|firefox-aurora}}}}<br />
*{{App|Firefox Nightly|nightly builds for testing|https://nightly.mozilla.org/|{{AUR|firefox-nightly}}}}<br />
* {{App|Firefox KDE|Version of Firefox that incorporates an OpenSUSE patch for better KDE integration than is possible through simple Firefox plugins.|https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox|{{AUR|firefox-kde-opensuse}}}}<br />
* On top of the different Mozilla build channels, a number of forks exist with more or less special features; see [[List of applications#Gecko-based]].<br />
<br />
Here you can find an overview of Mozilla's [https://wiki.mozilla.org/Releases releases].<br />
<br />
There are a number of language packs available for Firefox, other than the standard English. Language packs are usually named as {{ic|firefox-i18n-languagecode}} (where {{ic|languagecode}} can be any language code, such as '''de''', '''ja''', '''fr''', etc.). For a list of available language packs see [https://www.archlinux.org/packages/?sort=&q=firefox-i18n&maintainer=&last_update=&flagged=&limit=100 this].<br />
<br />
== Add-ons ==<br />
<br />
Firefox is well known for its large library of add-ons which can be used to add new features or modify the behavior of existing features of Firefox. You can find new add-ons or manage installed add-ons with Firefox's "Add-ons Manager."<br />
<br />
For a list of popular add-ons, see [https://addons.mozilla.org/en-US/firefox/extensions/?sort=popular Mozilla's add-on list sorted by popularity]. See also [[Wikipedia:List of Firefox extensions|List of Firefox extensions]] on Wikipedia.<br />
<br />
== Configuration ==<br />
<br />
Firefox exposes a number of configuration options. To examine them, enter:<br />
about:config<br />
in the Firefox address bar.<br />
<br />
Once set, these affect the user's current profile, and may be synchronized across all devices via [https://www.mozilla.org/en-US/firefox/sync/ Firefox Sync]. Please note that only a subset of the {{ic|about:config}} entries are synchronized by this method, and the exact subset may be found by searching for {{ic|services.sync.prefs}} in {{ic|about:config}}.<br />
<br />
Firefox also allows configuration for a profile via a {{ic|user.js}} file: [http://kb.mozillazine.org/User.js_file user.js] kept in the profile folder, usually {{ic|~/.mozilla/firefox/''some name''.default/}}. For a useful starting point, see e.g [https://github.com/pyllyukko/user.js custom user.js] which is targeted at privacy/security conscious users.<br />
<br />
One drawback of the above approach is that it is not applied system-wide. Furthermore, this is not useful as a "pre-configuration", since the profile directory is created after first launch of the browser. You can, however, let ''firefox'' create a new profile and, after closing it again, [https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles#w_restoring-a-profile-backup copy the contents] of an already created profile folder into it. <br />
<br />
Sometimes it may be desired to lock certain settings, a feature useful in widespread deployments of customized Firefox. In order to create a system-wide configuration, follow the steps outlined in [http://kb.mozillazine.org/Locking_preferences Locking preferences]:<br />
<br />
1. Create {{ic|/usr/lib/firefox/defaults/pref/local-settings.js}}:<br />
pref("general.config.obscure_value", 0);<br />
pref("general.config.filename", "mozilla.cfg");<br />
2. Create {{ic|/usr/lib/firefox/mozilla.cfg}} (this stores the actual configuration):<br />
//<br />
//...your settings...<br />
// e.g to disable Pocket, uncomment the following line<br />
// lockPref("browser.pocket.enabled", false);<br />
<br />
Please note that the first line must contain exactly {{ic|//}}. The syntax of the file is similar to that of {{ic|user.js}}.<br />
<br />
== Plugins ==<br />
<br />
See the main article: [[Browser plugins]]<br />
<br />
To find out what plugins are installed/enabled, enter:<br />
about:plugins<br />
in the Firefox address bar or go to the ''Add-ons'' entry in the Firefox Menu and select the ''Plugins'' tab.<br />
<br />
=== GNOME Keyring integration ===<br />
<br />
Install {{AUR|firefox-gnome-keyring}}{{Broken package link|{{aur-mirror|firefox-gnome-keyring}}}} or {{AUR|mozilla-extension-gnome-keyring-git}} (all-JavaScript implementation) to integrate Firefox with [[GNOME Keyring]]. To make firefox-gnome-keyring use your login keychain, set extensions.gnome-keyring.keyringName to "login" (without the double quotes) in about:config. Note the lowercase 'l' despite the the keychain name having an uppercase 'L' in Seahorse.<br />
<br />
=== KDE integration ===<br />
<br />
* To bring the KDE look to GTK apps (including Firefox), install {{Pkg|oxygen-gtk2}} and {{Pkg|kde-gtk-config}}. After that, go to System Settings -> Application Style -> GTK. Be sure to choose 'oxygen-gtk' in 'Select a GTK2 Theme' and check 'Show icons in GTK buttons' and 'Show icons in GTK menus'.<br />
<br />
* To use KDE's KPart technology with Firefox, by embedding different KDE file viewers into the browser, you can install {{Pkg|kpartsplugin}}.<br />
<br />
* For integration with KDE’s mime type system and file dialogs, one can use {{AUR|firefox-kde-opensuse}} variant from AUR with OpenSUSE’s patches applied.<br />
<br />
* Add-ons may provide some integration, such as [https://addons.mozilla.org/en-US/firefox/addon/kde-wallet-password-integratio/ KWallet integration] and [https://addons.mozilla.org/en-US/firefox/addon/plasmanotify/ Plasma notifications].<br />
<br />
=== Dictionaries for spell checking ===<br />
<br />
To enable spell checking for a specific language right click on any text field and check the ''Check Spelling'' box. To select a language for spell checking to you have right click again and select your language from the ''Languages'' sub-menu.<br />
<br />
To get more languages just click ''Add Dictionaries...'' and select the dictionary you want to install from the list.<br />
<br />
Alternatively, you can install the {{Pkg|hunspell}} package. You also need to install dictionaries for your language, such as {{Pkg|hunspell-fr}} (for the French language) or {{Pkg|hunspell-he}} (for Hebrew).<br />
<br />
By default, Firefox will try to symlink all your hunspell dictionaries in {{ic|/usr/lib/firefox/dictionaries}}. If you want to have less dictionaries offered to you in Firefox, you can remove some of those links. Be aware that it may not stand an upgrade of Firefox.<br />
<br />
When your default language choice does not stick, see [[#Firefox does not remember default spell check language]].<br />
<br />
=== Adding search engines ===<br />
<br />
Search engines can be added to Firefox through normal add-ons, see [https://addons.mozilla.org/en-US/firefox/search-tools/ this page] for a list of available search engines.<br />
<br />
A very extensive list of search engines can be found [http://mycroft.mozdev.org/ here].<br />
<br />
Also, you can use the [https://firefox.maltekraus.de/extensions/add-to-search-bar add-to-searchbar] extension to add a search to your search bar from any web site, by simply right clicking on the site's search field and selecting ''Add to Search Bar...''<br />
<br />
If you want a manual solution, take a look at {{ic|~/.mozilla/firefox/''xxxxxxxx''.default/searchplugins/}} (where ''xxxxxxxx'' is your profile ID).<br />
<br />
==== arch-firefox-search ====<br />
<br />
Install the {{Pkg|arch-firefox-search}} package to add Arch-specific searches (AUR, wiki, forum, etc, as specified by user) to the Firefox search toolbar.<br />
<br />
=== Multimedia playback ===<br />
<br />
If {{ic|media.gstreamer.enabled}} is {{ic|true}} in {{ic|about:config}}, Firefox will try to use [[GStreamer]] for playing multimedia inside HTML5 {{ic|<audio>}} and {{ic|<video>}} elements. For this to work, the optional dependencies of the {{Pkg|firefox}} package need to be installed (see [[Browser plugins#Multimedia playback]] for details).<br />
<br />
Restart Firefox, and go to [https://www.youtube.com/html5 YouTube's HTML5 page] or [http://www.quirksmode.org/html5/tests/video.html this page] to verify that it is correctly installed and is in use.<br />
<br />
Alternatively, to force Firefox to rely on the Adobe Flash Player to play HTML5 audio, set {{ic|media.gstreamer.enabled}} to {{ic|false}} in your {{ic|about:config}}.<br />
<br />
== Troubleshooting ==<br />
<br />
=== Firefox startup takes very long === <br />
<br />
If Firefox takes much longer to start up than other browsers, it may be due to lacking configuration of the localhost in {{ic|/etc/hosts}}. See [[Network configuration#Local network hostname resolution]] on how to set it up. <br />
<br />
=== Font troubleshooting ===<br />
<br />
See [[Font configuration]].<br />
<br />
=== Setting an email client ===<br />
<br />
Inside the browser, {{ic|mailto}} links by default are opened by a web application such as Gmail or Yahoo Mail. To set an external email program, go to ''Preferences > Applications'' and modify the ''action'' corresponding to the {{ic|mailto}} content type; the file path will need to be designated (e.g. {{ic|/usr/bin/kmail}} for Kmail).<br />
<br />
Outside the browser, {{ic|mailto}} links are handled by the {{ic|x-scheme-handler/mailto}} mime type, which can be easily configured with [[xdg-mime]]. See [[Default applications]] for details and alternatives.<br />
<br />
=== File association ===<br />
<br />
See [[Default applications]].<br />
<br />
==== File association problems ====<br />
<br />
{{Expansion|Mention {{ic|xdg-open}} trick in {{ic|Preferences > Applications}}, and possible mistakes with {{ic|octet/binary-stream}} [https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/918019/comments/12]}}<br />
<br />
{{Accuracy|1={{Pkg|firefox}} does not seem to use {{Pkg|libgnome}} at all, though [https://bugzilla.mozilla.org/show_bug.cgi?id=694570 this bug] is still open.}}<br />
<br />
For non-[[GNOME]] users, Firefox may not associate file types properly or at all (in the "Open With" part of the download dialog). Installing {{Pkg|libgnome}} amends the problem.<br />
<br />
See also [http://alien.slackbook.org/blog/make-firefox-understand-downloaded-files/].<br />
<br />
=== Firefox keeps creating ~/Desktop even when this is not desired ===<br />
<br />
Firefox uses {{ic|~/Desktop}} as the default place for download and upload files. To set it to another folder, create {{ic|~/.config/user-dirs.dirs}} and add:<br />
<br />
XDG_DESKTOP_DIR="$HOME/.local/share/Desktop"<br />
<br />
Optionally customize the rest:<br />
<br />
XDG_DOWNLOAD_DIR="$HOME/Downloads"<br />
XDG_TEMPLATES_DIR="$HOME/.local/share/Templates"<br />
XDG_PUBLICSHARE_DIR="$HOME/Public"<br />
XDG_DOCUMENTS_DIR="$HOME/Documents"<br />
XDG_MUSIC_DIR="$HOME/Music"<br />
XDG_PICTURES_DIR="$HOME/Pictures"<br />
XDG_VIDEOS_DIR="$HOME/Videos"<br />
<br />
(Note that paths ''must'' start with either {{ic|/}} or {{ic|$HOME/}} in this file.)<br />
<br />
=== Make plugins respect blocked pop-ups ===<br />
<br />
Some plugins can misbehave and bypass the default settings, such as the Flash plugin. You can prevent this by doing the following:<br />
<br />
# Type {{ic|about:config}} into the address bar.<br />
# Right-click on the page and select {{ic|New}} and then {{ic|Integer}}.<br />
# Name it {{ic|privacy.popups.disable_from_plugins}}.<br />
# Set the value to 2.<br />
<br />
The possible values are:<br />
* '''0''': Allow all popups from plugins.<br />
* '''1''': Allow popups, but limit them to dom.popup_maximum.<br />
* '''2''': Block popups from plugins.<br />
* '''3''': Block popups from plugins, even on whitelisted sites.<br />
<br />
=== Middle-click errors ===<br />
<br />
A common error message you can get while using the middle mouse button in Firefox is:<br />
The URL is not valid and cannot be loaded.<br />
<br />
Another symptom is that middle-clicking results in unexpected behavior, like accessing a random web page.<br />
<br />
The reason stems from the use of the middle mouse buttons in UNIX-like operating systems. The middle mouse button is used to paste whatever text has been highlighted/added to the clipboard. Then there is the possibly conflicting feature in Firefox, which defaults to loading the URL of the corresponding text when the button is depressed. This can be easily disabled by going to {{ic|about:config}} and setting the {{ic|middlemouse.contentLoadURL}} option to '''false'''.<br />
<br />
Alternatively, having the traditional scroll cursor on middle-click (default behavior on Windows browsers) can be achieved by searching for {{ic|general.autoScroll}} and setting it to '''true'''.<br />
<br />
=== Backspace does not work as the 'Back' button ===<br />
<br />
As per [http://ubuntu.wordpress.com/2006/12/21/fix-firefox-backspace-to-take-you-to-the-previous-page/ this article], the feature has been removed in order to fix a bug. To re-introduce the original behavior go to {{ic|about:config}} and set the {{ic|browser.backspace_action}} option to '''0''' (zero).<br />
<br />
=== Firefox does not remember login information ===<br />
<br />
It may be due to a corrupted {{ic|cookies.sqlite}} file in [http://support.mozilla.com/en-US/kb/Profiles#How_to_find_your_profile Firefox's profile] folder. In order to fix this, just rename or remove {{ic|cookie.sqlite}} while Firefox is not running.<br />
<br />
Open a 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 Firefox and see if it solved the problem.<br />
<br />
=== Unreadable input fields with dark GTK+ themes ===<br />
<br />
{{Merge|Firefox tweaks#Appearance|Anything on that page might be in troubleshooting section as well, so let's keep the info in one place.}}<br />
<br />
When using a dark [[GTK+]] theme, one might encounter Internet pages with unreadable input and text fields (e.g. Amazon can have 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 theme.<br />
<br />
A work around is to explicitly setting standard colors for all web pages in {{ic|~/.mozilla/firefox/xxxxxxxx.default/chrome/userContent.css}} or using [https://addons.mozilla.org/en-US/firefox/addon/stylish/ stylish add-on].<br />
<br />
The following sets input fields to standard black text / white background; both can be overridden by the displayed site, so that colors are seen as intended:<br />
<br />
{{Note|If you want {{ic|urlbar}} and {{ic|searchbar}} to be {{ic|white}} remove both {{ic|:not}} css selectors.}}<br />
{{bc|<br />
input:not(.urlbar-input):not(.textbox-input) {<br />
-moz-appearance: none !important;<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
#downloads-indicator-counter {<br />
color: white;<br />
}<br />
<br />
textarea {<br />
-moz-appearance: none !important;<br />
background-color: white;<br />
color: black;<br />
}<br />
<br />
select {<br />
-moz-appearance: none !important;<br />
background-color: white;<br />
color: black;<br />
}<br />
}}<br />
<br />
=== "Do you want Firefox to save your tabs for the next time it starts?" dialog does not appear ===<br />
<br />
From the [http://support.mozilla.com/en-US/questions/767751 Mozilla support] site:<br />
<br />
# Type {{ic|about:config}} in the address bar.<br />
# Set {{ic|browser.warnOnQuit}} to '''true'''.<br />
# Set {{ic|browser.showQuitWarning}} to '''true'''.<br />
<br />
=== The menu cannot pop-up after updating to Firefox 13 ===<br />
<br />
This problem is most probably related to this [https://bugzilla.mozilla.org/show_bug.cgi?id=787943 bug] and it may affect any user that sets<br />
GTK_IM_MODULE=xim<br />
<br />
while configuring their input method.<br />
<br />
It appears to happen especially to those who are using [[Fcitx]] 4.0.x (at that time Fcitx only supported XIM). With newer version of Fcitx, XIM is discouraged and you should set:<br />
GTK_IM_MODULE=fcitx<br />
<br />
For more information see the [[Fcitx]] page.<br />
<br />
=== Silently fails when installing desktop apps from marketplace ===<br />
<br />
Installation of apps from firefox os marketplace will silently fail if there's no {{ic|~/.local/share/applications}} folder.<br />
<br />
=== Firefox detects the wrong version of my plugin ===<br />
<br />
When you close Firefox, the latter saves the current timestamp and version of your plugins inside {{ic|pluginreg.dat}} located in your profile folder, typically in {{ic|~/.mozilla/firefox/''some name''.default/}}.<br />
<br />
If you upgraded your plugin when Firefox was still running, you will thus have the wrong information inside that file. The next time you will restart Firefox you will get that message {{ic|Firefox has prevented the outdated plugin "XXXX" from running on ...}} when you will be trying to open content dedicated to that plugin on the web. This problem often appears with the official [[Browser plugins#Flash Player|Adobe Flash Player plugin]] which has been upgraded while Firefox was still running.<br />
<br />
The solution is to remove the file {{ic|pluginreg.dat}} from your profile and that is it. Firefox will not complain about the missing file as it will be recreated the next time Firefox will be closed.<br />
[https://bugzilla.mozilla.org/show_bug.cgi?id=1109795#c16]<br />
<br />
=== Javascript context menu doesn't appear on some sites ===<br />
<br />
In {{ic|about:config}}, unset the {{ic|dom.w3c_touch_events.enabled}} setting.<br />
<br />
=== Firefox does not remember default spell check language ===<br />
<br />
The default spell checking language can be set as follows:<br />
<br />
# Type {{ic|about:config}} in the address bar.<br />
# Set {{ic|spellchecker.dictionary}} to your language of choice, for instance {{ic|en_GB}}.<br />
# Notice that the for dictionaries installed as a Firefox plugin the notation is {{ic|en-GB}}, and for {{Pkg|hunspell}} dictionaries the notation is {{ic|en_GB}}.<br />
<br />
When you only have system wide dictionaries installed with {{Pkg|hunspell}}, Firefox might not remember your default dictionary language settings. This can be fixed by having at least one [https://addons.mozilla.org/en-US/firefox/language-tools/ dictionary] installed as a Firefox plugin. Notice that now you will also have a tab '''Dictionaries''' in '''add-ons'''.<br />
<br />
Related questions on the '''StackExchange''' platform: [http://stackoverflow.com/questions/26936792/change-firefox-spell-check-default-language/29446115], [http://stackoverflow.com/questions/21542515/change-default-language-on-firefox/29446353], [http://askubuntu.com/questions/184300/how-can-i-change-firefoxs-default-dictionary/576877]<br />
<br />
Related bug reports: [https://bugzilla.mozilla.org/show_bug.cgi?id=776028 Bugzilla 776028], [https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1026869 Ubuntu bug 1026869]<br />
<br />
=== Some MathML symbols are missing ===<br />
<br />
You need some Math fonts, namely Latin Modern Math and STIX (see this MDN page: [https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/Fonts#Linux]), to display MathML correctly.<br />
<br />
In Arch Linux, these fonts are provided by {{Pkg|texlive-core}} '''and''' {{Pkg|texlive-fontsextra}}, but they are not available to fontconfig by default. See [[TeX Live#Fonts]] for details.<br />
<br />
== See also ==<br />
<br />
* [http://www.mozilla.org/firefox/ Official website]<br />
* [http://www.mozilla.org/ Mozilla Foundation]<br />
* [https://wiki.mozilla.org/Firefox Firefox wiki]<br />
* [https://addons.mozilla.org/ Firefox Add-ons]<br />
* [https://addons.mozilla.org/en-US/firefox/themes/ Firefox themes]</div>Robertoloshttps://wiki.archlinux.org/index.php?title=PhpPgAdmin&diff=254888PhpPgAdmin2013-04-22T11:02:44Z<p>Robertolos: </p>
<hr />
<div>[[Category:Web Server]]<br />
==Installation==<br />
To install [http://phppgadmin.sourceforge.net/doku.php?id=start phpPgAdmin], install the {{Pkg|phppgadmin}} packages with<br />
<pre><br />
pacman -S phppgadmin<br />
</pre><br />
<br />
==Configuration==<br />
Ensure you do not have an older copy of phppgadmin.<br />
<pre><br />
rm -r /srv/http/phppgAdmin<br />
</pre><br />
<br />
Copy the example configuration file to your httpd configuration directory.<br />
<pre><br />
cp /etc/webapps/phppgadmin/apache.example.conf /etc/httpd/conf/extra/httpd-phppgadmin.conf<br />
</pre><br />
<br />
Add the following lines to {{ic|/etc/httpd/conf/httpd.conf}}:<br />
<pre><br />
# phpPgAdmin configuration<br />
Include conf/extra/httpd-phppgadmin.conf<br />
</pre><br />
<br />
You can type this into the terminal to produce the same effect:<br />
<pre><br />
echo -e "\nInclude conf/extra/httpd-phppgadmin.conf" >> /etc/httpd/conf/httpd.conf<br />
</pre><br />
<br />
Add the following lines to {{ic|/etc/httpd/conf/httpd.conf}}:<br />
<pre><br />
# Use for PHP 5.x:<br />
LoadModule php5_module modules/libphp5.so<br />
AddHandler php5-script php<br />
</pre><br />
<br />
Add index.php after "DirectoryIndex index.html"<br />
<pre><br />
# DirectoryIndex: sets the file that Apache will serve if a directory<br />
# is requested.<br />
#<br />
<IfModule dir_module><br />
DirectoryIndex index.html index.php<br />
</IfModule><br />
</pre><br />
<br />
In {{ic|/usr/share/webapps/phppgadmin/.htaccess}}, comment out ''deny from all''. The line should look like this:<br />
<pre><br />
#deny from all<br />
</pre><br />
<br />
Otherwise you'll get an error similar to "Error 403 - Access forbidden!" when you attempt to access your phppgadmin installation.<br />
<br />
Your {{ic|/etc/httpd/conf/extra/httpd-phppgadmin.conf}} should have the following information:<br />
<pre><br />
Alias /phppgadmin "/usr/share/webapps/phppgadmin"<br />
<Directory "/usr/share/webapps/phppgadmin"><br />
AllowOverride All<br />
Options FollowSymlinks<br />
Order allow,deny<br />
Allow from all<br />
</Directory><br />
</pre><br />
<br />
Open your {{ic|/etc/php/php.ini}} and go to the line containing ''open_basedir'' and add the path(s) to your phppgAdmin installation so it has the following:<br />
<pre><br />
:/usr/share/webapps/phppgadmin:/etc/webapps/<br />
</pre><br />
<br />
For example, mine contains the following:<br />
<pre><br />
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/phppgadmin:/etc/webapps<br />
</pre><br />
<br />
You need the pgsql module, so uncomment in {{ic|/etc/php/php.ini}}:<br />
;extension=pgsql.so<br />
:to<br />
extension=pgsql.so<br />
<br />
==Accessing your phpPgAdmin installation==<br />
<br />
Finally your phppgadmin installation is complete. Before start using it you need to restart your apache server by following command:<br />
<br />
<pre><br />
# systemctl restart httpd.service<br />
</pre><br />
<br />
You can access your phppgadmin installation using the following url:<br />
<br />
<pre><br />
http://localhost/phppgadmin/<br />
or<br />
http://localhost/phppgadmin/index.php<br />
</pre><br />
<br />
Note: 'localhost' is the hostname in your /etc/rc.conf file.<br />
<br />
If you want to access it using:<br />
<br />
<pre><br />
http://localhost/phppgadmin<br />
</pre><br />
<br />
in '/etc/httpd/conf/extra/httpd-phppgadmin.conf' change:<br />
<br />
<pre><br />
Alias /phppgadmin/ "/usr/share/webapps/phppgadmin/"<br />
</pre><br />
<br />
to<br />
<br />
<pre><br />
Alias /phppgadmin "/usr/share/webapps/phppgadmin"<br />
</pre><br />
<br />
==Lighttpd Configuration==<br />
<br />
The php setup for lighttpd is exactly the same as for apache.<br />
Make an alias for phppgadmin in your lighttpd config.<br />
alias.url = ( "/phppgadmin" => "/usr/share/webapps/phppgadmin/")<br />
Then enable mod_alias, mod_fastcgi and mod_cgi in your config ( server.modules section )<br />
<br />
Update open_basedir in /etc/php/php.ini and add "/usr/share/webapps/".<br />
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/<br />
<br />
Make sure lighttpd is setup to serve php files, [[Lighttpd#FastCGI]]<br />
<br />
Restart lighttpd and browse to http://localhost/phppgadmin/index.php<br />
<br />
==NGINX Configuration==<br />
<br />
Also similar to apache configuration (and Lighttpd, for that matter).<br />
<br />
Create a symbolic link to the /usr/share/webapps/phppgadmin directory from whichever directory your vhost is serving files from, e.g. /srv/http/<domain>/public_html/<br />
<br />
sudo ln -s /usr/share/webapps/phppgadmin /srv/http/<domain>/public_html/phppgadmin<br />
<br />
You can also setup a sub domain with a server block like so (if using php-fpm):<br />
<br />
server {<br />
server_name phppgadmin.<domain.tld>;<br />
access_log /srv/http/<domain>/logs/phppgadmin.access.log;<br />
error_log /srv/http/<domain.tld>/logs/phppgadmin.error.log;<br />
<br />
location / {<br />
root /srv/http/<domain.tld>/public_html/phppgadmin;<br />
index index.html index.htm index.php;<br />
}<br />
<br />
location ~ \.php$ {<br />
root /srv/http/<domain.tld>/public_html/phppgadmin;<br />
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;<br />
fastcgi_index index.php;<br />
fastcgi_param SCRIPT_FILENAME /srv/http/<domain.tld>/public_html/phppgadmin/$fastcgi_script_name;<br />
include fastcgi_params;<br />
}<br />
}<br />
<br />
<br />
== Troubleshooting Access Denied (403) ==<br />
<br />
You will need to edit the {{ic|.htaccess}} file located at<br />
<br />
/etc/webapps/phppgsql/.htaccess<br />
<br />
to<br />
<br />
Allow from <ip><br />
<br />
where <ip> is your current ip (or use 127.0.0.1 if you are on the same box) and then<br />
<br />
rc.d restart httpd<br />
<br />
in order to access phppgadmin.</div>Robertoloshttps://wiki.archlinux.org/index.php?title=ClamAV_(Italiano)&diff=115528ClamAV (Italiano)2010-08-26T17:16:12Z<p>Robertolos: </p>
<hr />
<div>[[Category: Security (Italiano)]]<br />
{{i18n|ClamAV}}<br />
<br />
[http://www.clamav.net Clam AntiVirus] è un anti-virus open source (GPL) oer UNIX. Fornisce una serie di utility che includono un demone multi-thread flessibile e scalabile, un'interfaccia da linea di comando ed uno strumento avanzato per l'aggiornamento automatico del database con le definizioni dei virus. Poiché ClamAV viene principalmente usato su file/mail servers Windows esso riconosce sopratutto virus e malware per Windows.<br />
<br />
==Installazione==<br />
Installalo con pacman digitando:<br />
# pacman -S clamav<br />
<br />
==Configurazione==<br />
Se hai intenzione di usare ClamAV come demone o come semplice analizzatore di file bisogna commentare la linea che contiene la parola ''Example'', di solito si trova all'inizio nel file {{Filename|/etc/clamav/freshclam.conf}}. (probabilmente bisogna fare lo stesso nel file {{Filename|clamd.conf}} che si trova nella stessa directory) ed aggiornare il database dei virus e dei malware.<br />
<br />
==Aggiornamento Database==<br />
Per aggiornare il database bisogna che il demone sia avviato:<br />
# /etc/rc.d/clamav start<br />
<br />
Dopo aggiorna la definizione dei virus con:<br />
# freshclam<br />
<br />
I file del database sono salvati in:<br />
/var/lib/clamav/daily.cvd<br />
/var/lib/clamav/main.cvd<br />
<br />
==Installazione Server==<br />
Per eseguirlo come un server modifica {{Filename|/etc/clamav/clamd.conf}} e {{Filename|/etc/clamav/freshclam.conf}} e commenta il flag ''Example''. In {{Filename|/etc/conf.d/clamav}} cambia l'opzione start da "no" a "yes".<br />
<br />
# change these to "yes" to start<br />
START_FRESHCLAM="yes"<br />
START_CLAMD="yes"<br />
<br />
* Per avviare clamav al boot del sistema modifica {{Filename|/etc/rc.conf}} e aggiungi clamav alla linea DAEMONS=(...).<br />
==Scansione dei Virus==<br />
{{Codeline|clamscan}} può essere usato per eseguire la scansione di alcuni file, della directory home, o di un intero sistema:<br />
<br />
$ clamscan myfile<br />
$ clamscan -r -i /home<br />
$ clamscan -r -i --exclude-dir=^/sys\|^/proc\|^/dev /<br />
<br />
Se desideri che {{Codeline|clamscan}} rimuova i file infetti usa nel comando l'opzione {{Codeline|--remove}}.<br />
<br />
==Risoluzione dei problemi==<br />
Se dopo aver eseguito {Codeline|freshclam}} ottieni i seguenti messaggi:<br />
WARNING: Clamd was NOT notified: Can't connect to clamd through <br />
/var/lib/clamav/clamd.sock connect(): No such file or directory<br />
<br />
Aggiungi un sock file per clamav:<br />
# touch /var/lib/clamav/clamd.sock<br />
# chown clamav:clamav /var/lib/clamav/clamd.sock<br />
Dopo, modifica /etc/clamav/clamd.conf<br />
commenta questa linea: #LocalSocket /var/lib/clamav/clamd.sock<br />
Salva il file e riavvia il demone (/etc/rc.d/clamav stop; /etc/rc.d/clamav start)<br />
<br />
Se quando avvii il demone ottieni il seguente errore:<br />
LibClamAV Error: cli_loaddb(): No supported database files found<br />
in /var/lib/clamav ERROR: Not supported data format<br />
<br />
Esegui freshclam come root:<br />
# freshclam -v</div>Robertoloshttps://wiki.archlinux.org/index.php?title=ClamAV_(Italiano)&diff=115527ClamAV (Italiano)2010-08-26T17:09:03Z<p>Robertolos: </p>
<hr />
<div>[[Category: Security (Italiano)]]<br />
{{i18n|ClamAV}}<br />
<br />
[http://www.clamav.net Clam AntiVirus] è un anti-virus open source (GPL) oer UNIX. Fornisce una serie di utility che includono un demone multi-thread flessibile e scalabile, un'interfaccia da linea di comando ed uno strumento avanzato per l'aggiornamento automatico del database con le definizioni dei virus. Poiché ClamAV viene principalmente usato su file/mail servers Windows esso riconosce sopratutto virus e malware per Windows.<br />
<br />
==Installazione==<br />
Installalo con pacman digitando:<br />
# pacman -S clamav<br />
<br />
==Configurazione==<br />
Se hai intenzione di usare ClamAV come demone o come semplice analizzatore di file bisogna commentare la linea che contiene la parola ''Example'', di solito si trova all'inizio nel file {{Filename|/etc/clamav/freshclam.conf}}. (probabilmente bisogna fare lo stesso nel file {{Filename|clamd.conf}} che si trova nella stessa directory) ed aggiornare il database dei virus e dei malware.<br />
<br />
==Aggiornamento Database==<br />
Per aggiornare il database bisogna che il demone sia avviato:<br />
# /etc/rc.d/clamav start<br />
<br />
Dopo aggiorna la definizione dei virus con:<br />
# freshclam<br />
<br />
I file del database sono salvati in:<br />
/var/lib/clamav/daily.cvd<br />
/var/lib/clamav/main.cvd<br />
<br />
==Installazione Server==<br />
Per eseguirlo come un server modifica {{Filename|/etc/clamav/clamd.conf}} e {{Filename|/etc/clamav/freshclam.conf}} e commenta il flag ''Example''. In {{Filename|/etc/conf.d/clamav}} cambia l'opzione start da "no" a "yes".<br />
<br />
# change these to "yes" to start<br />
START_FRESHCLAM="yes"<br />
START_CLAMD="yes"<br />
<br />
* Per avviare clamav al boot del sistema modifica {{Filename|/etc/rc.conf}} e aggiungi clamav.<br />
==Scansione dei Virus==<br />
{{Codeline|clamscan}} può essere usato per eseguire la scansione di alcuni file, della directory home, o di un intero sistema:<br />
<br />
$ clamscan myfile<br />
$ clamscan -r -i /home<br />
$ clamscan -r -i --exclude-dir=^/sys\|^/proc\|^/dev /<br />
<br />
Se desideri che {{Codeline|clamscan}} rimuova i file infetti usa nel comando l'opzione {{Codeline|--remove}}.<br />
<br />
==Risoluzione dei problemi==<br />
Se dopo aver eseguito {Codeline|freshclam}} ottieni i seguenti messaggi:<br />
WARNING: Clamd was NOT notified: Can't connect to clamd through <br />
/var/lib/clamav/clamd.sock connect(): No such file or directory<br />
<br />
Aggiungi un sock file per clamav:<br />
# touch /var/lib/clamav/clamd.sock<br />
# chown clamav:clamav /var/lib/clamav/clamd.sock<br />
Dopo, modifica /etc/clamav/clamd.conf<br />
commenta questa linea: #LocalSocket /var/lib/clamav/clamd.sock<br />
Salva il file e riavvia il demone (/etc/rc.d/clamav stop; /etc/rc.d/clamav start)<br />
<br />
Se quando avvii il demone ottieni il seguente errore:<br />
LibClamAV Error: cli_loaddb(): No supported database files found<br />
in /var/lib/clamav ERROR: Not supported data format<br />
<br />
Esegui freshclam come root:<br />
# freshclam -v</div>Robertoloshttps://wiki.archlinux.org/index.php?title=ClamAV_(Italiano)&diff=115526ClamAV (Italiano)2010-08-26T17:06:48Z<p>Robertolos: </p>
<hr />
<div>[[Category: Security (Italiano)]]<br />
{{i18n|ClamAV}}<br />
<br />
[http://www.clamav.net Clam AntiVirus] è un anti-virus open source (GPL) oer UNIX. Fornisce una serie di utility che includono un demone multi-thread flessibile e scalabile, un'interfaccia da linea di comando ed uno strumento avanzato per l'aggiornamento automatico del database con le definizioni dei virus. Poiché ClamAV viene principalmente usato su file/mail servers Windows esso riconosce sopratutto virus e malware per Windows.<br />
<br />
==Installazione==<br />
Installalo con pacman digitando:<br />
# pacman -S clamav<br />
<br />
==Configurazione==<br />
Se hai intenzione di usare ClamAV come demone o come semplice analizzatore di file bisogna de-commentare la linea che contiene la parola ''Example'', di solito si trova all'inizio nel file {{Filename|/etc/clamav/freshclam.conf}}. (probabilmente bisogna fare lo stesso nel file {{Filename|clamd.conf}} che si trova nella stessa directory) ed aggiornare il database dei virus e dei malware.<br />
<br />
==Aggiornamento Database==<br />
Per aggiornare il database bisogna che il demone sia avviato:<br />
# /etc/rc.d/clamav start<br />
<br />
Dopo aggiorna la definizione dei virus con:<br />
# freshclam<br />
<br />
I file del database sono salvati in:<br />
/var/lib/clamav/daily.cvd<br />
/var/lib/clamav/main.cvd<br />
<br />
==Installazione Server==<br />
Per eseguirlo come un server modifica {{Filename|/etc/clamav/clamd.conf}} e {{Filename|/etc/clamav/freshclam.conf}} e de-commenta il flag ''Example''. In {{Filename|/etc/conf.d/clamav}} cambia l'opzione start da "no" a "yes".<br />
<br />
# change these to "yes" to start<br />
START_FRESHCLAM="yes"<br />
START_CLAMD="yes"<br />
<br />
* Per avviare clamav al boot del sistema modifica {{Filename|/etc/rc.conf}} e aggiungi clamav.<br />
==Scansione dei Virus==<br />
{{Codeline|clamscan}} può essere usato per eseguire la scansione di alcuni file, della directory home, o di un intero sistema:<br />
<br />
$ clamscan myfile<br />
$ clamscan -r -i /home<br />
$ clamscan -r -i --exclude-dir=^/sys\|^/proc\|^/dev /<br />
<br />
Se desideri che {{Codeline|clamscan}} rimuova i file infetti usa nel comando l'opzione {{Codeline|--remove}}.<br />
<br />
==Risoluzione dei problemi==<br />
Se dopo aver eseguito {Codeline|freshclam}} ottieni i seguenti messaggi:<br />
WARNING: Clamd was NOT notified: Can't connect to clamd through <br />
/var/lib/clamav/clamd.sock connect(): No such file or directory<br />
<br />
Aggiungi un sock file per clamav:<br />
# touch /var/lib/clamav/clamd.sock<br />
# chown clamav:clamav /var/lib/clamav/clamd.sock<br />
Dopo, modifica /etc/clamav/clamd.conf<br />
De-commenta questa linea: #LocalSocket /var/lib/clamav/clamd.sock<br />
Salva il file e riavvia il demone (/etc/rc.d/clamav stop; /etc/rc.d/clamav start)<br />
<br />
Se quando avvii il demone ottieni il seguente errore:<br />
LibClamAV Error: cli_loaddb(): No supported database files found<br />
in /var/lib/clamav ERROR: Not supported data format<br />
<br />
Esegui freshclam come root:<br />
# freshclam -v</div>Robertoloshttps://wiki.archlinux.org/index.php?title=ClamAV_(Italiano)&diff=115525ClamAV (Italiano)2010-08-26T17:06:22Z<p>Robertolos: Created page with "Category: Security (Italiano) {{i18n|ClamAV}} [http://www.clamav.net Clam AntiVirus] è un anti-virus open source (GPL) oer UNIX. Fornisce una serie di utility incluso un d..."</p>
<hr />
<div>[[Category: Security (Italiano)]]<br />
{{i18n|ClamAV}}<br />
<br />
[http://www.clamav.net Clam AntiVirus] è un anti-virus open source (GPL) oer UNIX. Fornisce una serie di utility incluso un demone multi-thread flessibile e scalabile, un'interfaccia da linea di comando ed uno strumento avanzato per l'aggiornamento automatico del database con le definizioni dei virus. Poiché ClamAV viene principalmente usato su file/mail servers Windows esso riconosce sopratutto virus e malware per Windows.<br />
<br />
==Installazione==<br />
Installalo con pacman digitando:<br />
# pacman -S clamav<br />
<br />
==Configurazione==<br />
Se hai intenzione di usare ClamAV come demone o come semplice analizzatore di file bisogna de-commentare la linea che contiene la parola ''Example'', di solito si trova all'inizio nel file {{Filename|/etc/clamav/freshclam.conf}}. (probabilmente bisogna fare lo stesso nel file {{Filename|clamd.conf}} che si trova nella stessa directory) ed aggiornare il database dei virus e dei malware.<br />
<br />
==Aggiornamento Database==<br />
Per aggiornare il database bisogna che il demone sia avviato:<br />
# /etc/rc.d/clamav start<br />
<br />
Dopo aggiorna la definizione dei virus con:<br />
# freshclam<br />
<br />
I file del database sono salvati in:<br />
/var/lib/clamav/daily.cvd<br />
/var/lib/clamav/main.cvd<br />
<br />
==Installazione Server==<br />
Per eseguirlo come un server modifica {{Filename|/etc/clamav/clamd.conf}} e {{Filename|/etc/clamav/freshclam.conf}} e de-commenta il flag ''Example''. In {{Filename|/etc/conf.d/clamav}} cambia l'opzione start da "no" a "yes".<br />
<br />
# change these to "yes" to start<br />
START_FRESHCLAM="yes"<br />
START_CLAMD="yes"<br />
<br />
* Per avviare clamav al boot del sistema modifica {{Filename|/etc/rc.conf}} e aggiungi clamav.<br />
==Scansione dei Virus==<br />
{{Codeline|clamscan}} può essere usato per eseguire la scansione di alcuni file, della directory home, o di un intero sistema:<br />
<br />
$ clamscan myfile<br />
$ clamscan -r -i /home<br />
$ clamscan -r -i --exclude-dir=^/sys\|^/proc\|^/dev /<br />
<br />
Se desideri che {{Codeline|clamscan}} rimuova i file infetti usa nel comando l'opzione {{Codeline|--remove}}.<br />
<br />
==Risoluzione dei problemi==<br />
Se dopo aver eseguito {Codeline|freshclam}} ottieni i seguenti messaggi:<br />
WARNING: Clamd was NOT notified: Can't connect to clamd through <br />
/var/lib/clamav/clamd.sock connect(): No such file or directory<br />
<br />
Aggiungi un sock file per clamav:<br />
# touch /var/lib/clamav/clamd.sock<br />
# chown clamav:clamav /var/lib/clamav/clamd.sock<br />
Dopo, modifica /etc/clamav/clamd.conf<br />
De-commenta questa linea: #LocalSocket /var/lib/clamav/clamd.sock<br />
Salva il file e riavvia il demone (/etc/rc.d/clamav stop; /etc/rc.d/clamav start)<br />
<br />
Se quando avvii il demone ottieni il seguente errore:<br />
LibClamAV Error: cli_loaddb(): No supported database files found<br />
in /var/lib/clamav ERROR: Not supported data format<br />
<br />
Esegui freshclam come root:<br />
# freshclam -v</div>Robertolos