https://wiki.archlinux.org/api.php?action=feedcontributions&user=Surlyjake&feedformat=atomArchWiki - User contributions [en]2024-03-29T00:46:41ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:QEMU&diff=268165Talk:QEMU2013-07-27T03:42:47Z<p>Surlyjake: /* Preparing an (Arch) Linux guest */ new section</p>
<hr />
<div>== Linear RAID ==<br />
<br />
When I was updating the article yesterday, I had tried to fit the section about linear raid (boot a VM from a partition by prepending a MBR to it) into the article better. But I'm not sure the technique described is the right one at all. It looks like it works, but wouldn't it be easier to install a bootloader directly to the partition (e.g. syslinux)? Then the VM could be booted directly from the partition simply by using it as its virtual disk.<br />
--[[User:Synchronicity|Synchronicity]] ([[User talk:Synchronicity|talk]]) 19:23, 9 May 2012 (UTC)<br />
<br />
== <s>needed Tap networking with QEMU scripts a rewrite?</s> ==<br />
<br />
Scripts from Tap networking with QEMU section uses tunctl provided by the package uml_utilities but doesn't exist on the repositories.<br />
:I've changed all the scripts to work with ip tuntap instead of tunctl. Sadly tuntap is lacking one option which was used, a solution was [https://bbs.archlinux.org/viewtopic.php?pid=1285079#p1285079 found in the forums] and I based one of the changes on it. [[User:Yochai|Yochai]] ([[User talk:Yochai|talk]]) 18:08, 14 June 2013 (UTC)<br />
<br />
== Removing sections for EOL versions of Windows ==<br />
<br />
I think we should remove the instructions/sections for versions of Windows that are not supported by Microsoft anymore/are considered end-of-life. [[QEMU#Windows-specific_notes]] still has sections for Windows 95 through Windows 2000. Microsoft stopped supporting Windows 2000 in 2010. I think we should keep anything that is generally applicable to Windows XP (and recent) from those sections and get rid of the rest of it.<br />
<br />
Does anyone object?<br><br />
-- [[User:Jstjohn|Jstjohn]] ([[User talk:Jstjohn|talk]]) 08:29, 13 June 2013 (UTC)<br />
: I think it's fine to remove everything before XP, after all this is not Windows chronicle... So +1 from me. <br />
:-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 15:35, 13 June 2013 (UTC)<br />
::Go for it, I'd also be curious to know how much information in the article is duplicating http://wiki.qemu.org/ which would be bad according to [[Help:Style#Hypertext metaphor]]. <br />
::-- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 11:31, 15 June 2013 (UTC)<br />
:::I've just removed that old information. I agree that it would be good for someone to go through QEMU's wiki and eliminate any duplicated information.<br />
:::-- [[User:Jstjohn|Jstjohn]] ([[User talk:Jstjohn|talk]]) 01:03, 18 June 2013 (UTC)<br />
::::http://wiki.qemu.org/ isn't very verbose, [http://wiki.qemu.org/Documentation/Networking/NAT many instructions] are not for Arch and it may contain outdated information (last edit on most pages 1-2 years back), so I think deduplication is not necessary.<br />
::::http://en.wikibooks.org/wiki/QEMU is much more verbose, but the same as above applies, so I think deduplication is not necessary in this case either.<br />
::::-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 07:57, 22 July 2013 (UTC)<br />
<br />
== qemu-* vs qemu-system-*? ==<br />
<br />
What's the difference between qemu-* and qemu-system-*? So far, I haven't seen too much of a difference, except for a quite noticeable difference in filesize:<br />
<br />
{{bc|<br />
# ls -l $(which qemu{-system,}-x86_64);<br />
-rwxr-xr-x 1 root root 4793008 Jun 8 02:14 /usr/bin/qemu-system-x86_64<br />
-rwxr-xr-x 1 root root 2406208 Jun 8 02:14 /usr/bin/qemu-x86_64<br />
}}<br />
<br />
: Next time please add a signature after your post by typing four tildes ({{ic|<nowiki>~~~~</nowiki>}}). Thanks.<br />
: There have been some changes recently and the wiki page isn't yet fully updated. I guess that the old {{ic|qemu}} binary has been replaced by {{ic|qemu-system-*}} depending on architecture and {{ic|qemu-*}} binary is used internally. See qemu(1) for more details.<br />
: -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 09:47, 16 July 2013 (UTC)<br />
<br />
::I've done some more research on this: {{ic|qemu-system-*}} binaries emulate full virtual machine (that's currently described in [[QEMU]], some time ago {{ic|qemu}} was used for this purpose), whereas {{ic|qemu-*}} binaries allow executing statically linked binaries for different architecture than the host system. You can even [http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=5 chroot] into different-architecture system emulating even dynamically linked binaries. Perhaps some mention of this could be added to [[QEMU]]. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 20:54, 22 July 2013 (UTC)<br />
<br />
== Creating bridge manually ==<br />
<br />
I really don't know what to do with this section. I'd say it has been superseded by [[QEMU#Creating bridge using qemu-bridge-helper]] (available since qemu-1.1, we now have qemu-1.5) - or is someone still using this method? Perhaps link to https://en.wikibooks.org/wiki/QEMU/Networking#TAP_interfaces or http://wiki.qemu.org/Documentation/Networking/NAT is sufficient. What do you think? -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 20:42, 22 July 2013 (UTC)<br />
<br />
== Preparing an (Arch) Linux guest ==<br />
<br />
adding the virtio modules to use virtual devices doesn't appear to be necessary as of the VM I built this week(Jul 26, 2013). Kernel 3.9.9-1<br />
[[User:Surlyjake|Surlyjake]] ([[User talk:Surlyjake|talk]]) 03:42, 27 July 2013 (UTC)</div>Surlyjakehttps://wiki.archlinux.org/index.php?title=Spotify&diff=174278Spotify2011-12-14T23:24:16Z<p>Surlyjake: </p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
[[Category:Wine (English)]]<br />
[http://www.spotify.com/ Spotify] is a digital music service that gives you access to millions of songs.<br />
<br />
This Internet music service allows you to select any song in it's database and stream for free. The service was recently introduced to the United States after previously being exclusive to Europe. The Linux client is only officially packaged for Debian and Fedora distributions, but is also available in the AUR: {{Package AUR|spotify}}. Officially, they recommend that Linux users run the windows client under Wine. The only catch to using this application as a free user is the inability to go mobile without a premium subscription. Their are also the occasional voice ads in between songs for users who do not wish to subscribe.<br />
<br />
Spotify also offers free users the ability to create playlist which can be shuffled, and set to repeat tracks. Content provided by Spotify comes in explicit versions as well as censored.<br />
<br />
<br />
== Installing The Client ==<br />
Choose which client you would prefer. The Linux client is receiving good reviews. However, if you are comfortable with wine and it's configuration, you might want to choose the windows client. Please note that you do NOT need to install both. <br />
<br />
=== Installation of Linux Client ===<br />
Follow the instructions for installing packages from the AUR: https://wiki.archlinux.org/index.php/AUR#Installing_packages and install the AUR package here: {{Package AUR|spotify}}. The pkgbuild will automatically download the software. It would be a good use of time to go to the spotify website and create your user account while it's building.<br />
<br />
=== Installation of Windows Client using Wine===<br />
<br />
==== Install Wine ====<br />
First, you must ensure that you have [[Wine]] installed on your system. In addition to installing Wine you will need to take a moment to configure it for the user who will be running the application.<br />
<br />
Depending on your choice of architecture it may be necessary for you to enable the [[Official_Repositories#.5Bmultilib.5D|multilib]] repositories. This is necessary to install Wine on x86_64 systems, if not enabled [[pacman]] will inform you that the package was not found.<br />
<br />
# pacman -Syy<br />
# pacman -S wine wine_gecko<br />
<br />
==== Configure Wine ====<br />
<br />
When wine is installed you will need to change some configuration settings using the winecfg application on your every day user account (not root).<br />
<br />
$ winecfg<br />
<br />
After launching the winecfg application you will be presented with multiple tabs that can assist you in tweaking the performance of the emulator. However for this purpose your main focus will be the Audio tab.<br />
<br />
While under the audio tab, you will enable either the ALSA or OSS driver by clicking the check box next to them, depending on what software you prefer to use. Also note that the hardware acceleration will need to be changed from Full to Emulation. When done you may exit the winecfg application.<br />
<br />
Failure to perform the above task will result in the inability to hear playback.<br />
<br />
==== Run Installer ====<br />
<br />
Obtaining Spotify can be done by registering for an account on their Website, the application does not offer in-app registration.<br />
<br />
However you can obtain the application prior to registering by using the following URL. [http://download.spotify.com/Spotify%20Installer.exe]<br />
<br />
After you have registered and downloaded your copy of the installer you will need to run the application through Wine, depending on your setup you may be able to run the application by right clicking the file. If not terminal will work just fine, as long as you run the below command in the directory of your download.<br />
<br />
$ wine Spotify\ Installer.exe<br />
<br />
Once the application is successfully installed you may run Spotify by using one of the following commands in terminal, or in the ALT+F2 launcher:<br />
<br />
If you use a x86_64 copy of ArchLinux, you'll have to run it like this:<br />
<br />
$ wine "/home/username/.wine/drive_c/Program Files (x86)/Spotify/spotify.exe"<br />
<br />
If you use a x86 copy of ArchLinux, you can use this command just fine:<br />
<br />
$ wine ~/.wine/drive_c/Program\ Files/Spotify/spotify.exe<br />
<br />
If you have any additional problems, I recommend setting the winecfg to Windows XP or Windows 7 emulation.<br />
<br />
==See also==<br />
*http://www.spotify.com/int/help/faq/wine/<br />
*http://www.spotify.com/int/download/previews/</div>Surlyjakehttps://wiki.archlinux.org/index.php?title=CUPS&diff=171000CUPS2011-11-24T02:53:45Z<p>Surlyjake: /* Troubleshooting */ added troubleshooting tip for "the printer is not responding"</p>
<hr />
<div>[[Category:Printers (English)]]<br />
{{i18n|CUPS}}<br />
{{Article summary start|Summary}}<br />
{{Article summary text|Installing and configuring CUPS}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|CUPS printer sharing}}<br />
{{Article summary wiki|CUPS printer-specific problems}}<br />
{{Article summary wiki|Samba}}<br />
{{Article summary end}}<br />
<br />
From [http://www.cups.org/index.php CUPS' site]:<br />
:"''[[Wikipedia:CUPS|CUPS]] is the standards-based, open source printing system developed by Apple Inc. for Mac OS® X and other UNIX®-like operating systems''".<br />
<br />
Although there are other printing packages such as LPRNG, the Common Unix Printing System is the most popular choice because of its relative ease of use.<br />
<br />
==Installing==<br />
These packages are needed:<br />
# pacman -S cups ghostscript gsfonts<br />
If regular cups does not work you may try installing {{AUR|cups-usblp}} from the [[AUR]].(Recomended for Samsung USB printers)<br />
<br />
* '''cups''' - The actual CUPS software<br />
* '''ghostscript''' - Interpreter for the Postscript language<br />
* '''gsfonts''' - GhostScript standard Type1 fonts<br />
* '''hpoj''' - If you are using an HP Officejet, you should also install this package and follow the instructions to avoid problems. Read this [http://answers.launchpad.net/hplip/+question/133425 thread at launchpad/hplip] for more information.<br />
<br />
If the system is connected to a networked printer using the [[Samba]] protocol or if the system is to be a print server for Windows clients, also install Samba:<br />
# pacman -S samba<br />
<br />
===Printer driver===<br />
Here are some of the driver packages. Choosing the right driver depends on the printer:<br />
<br />
* '''gutenprint''' - A collection of high quality drivers for Canon, Epson, Lexmark, Sony, Olympus, and PCL printers for use with GhostSscript, CUPS, Foomatic, and the [[GIMP]]<br />
* '''foomatic-db, foomatic-db-engine, foomatic-db-nonfree, and foomatic-filters''' - Foomatic is a database-driven system for integrating free software printer drivers with common spoolers under Unix. Installing foomatic-filters should solve problems if the cups error_log is reporting "stopped with status 22!".<br />
* '''hplip''' - HP GNU/Linux driver. Provides support for DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet printer models, as well as a number of Brother printers.<br />
* '''splix''' - Samsung drivers for SPL (Samsung Printer Language) printers (for USB printers use with {{AUR|cups-usblp}} from the [[AUR]])<br />
* '''ufr2''' - Canon UFR2 driver with support for LBP, iR and MF series printers. Package is available in the [[AUR]].<br />
* '''cups-pdf''' - A package that allows one to setup a virtual PDF Printer that generates a PDF out of jobs sent to it<br />
<br />
If unsure of what driver package to install or if the current driver is not working, it may be easiest to just install all of drivers, since some of the packages are misleading because printers of other makes may rely on them. For instance, the Brother HL-2140 needs the hplip driver installed.<br />
# pacman -S gutenprint foomatic-db foomatic-db-engine \<br />
foomatic-db-nonfree foomatic-filters \<br />
hplip splix cups-pdf<br />
<br />
====Download printer PPD====<br />
Depending on the printer, this step is optional and may not be needed, as the standard CUPS installation already comes with quite a few PPD (Postscript Printer Description) files. Moreover, the ''foomatic-filters'', ''gimp-print'' and ''hplip'' packages already include quite a few PPD files which will automatically be detected by CUPS.<br />
<br />
Here is an explanation of what a PPD file is from the Linux Printing website:<br />
:"''For every PostScript printer the manufacturers provide a PPD file which contains all printer-specific information about the particular printer model: Basic printer capabilities as whether the printer is a color printer, fonts, PostScript level, etc., and especially the user-adjustable options, as paper size, resolution, etc.''"<br />
<br />
If the PPD for the printer is ''not'' already in CUPS, then:<br />
*check [[AUR]] to see if there are packages for the printer/manufacturer<br />
*visit the [http://www.linuxprinting.org/printer_list.cgi OpenPrinting database] and select the manufacturer and model of the printer<br />
*visit the manufacturer's site and search for GNU/Linux drivers<br />
<br />
{{Note|PPD files go in {{ic|/usr/share/cups/model/}}}}<br />
<br />
==Configuring==<br />
Now that CUPS is installed, there are a variety of options on how to setup printing solutions. As always, the tried and true command line method is at your disposal. Likewise, various desktop environments such as GNOME and KDE have useful programs that can help manage printers. However, in order to make this process easy for the largest amount of users, this article will focus on the web interface provided by CUPS.<br />
<br />
If you are planning on connecting to a network printer, rather than one that is directly connected to the computer, you might want to read the [[CUPS printer sharing]] page first. Printer sharing between GNU/Linux systems is quite easy and involves very little configuration, whereas sharing between a Windows and GNU/Linux host requires a little bit more effort.<br />
<br />
===Kernel modules===<br />
Before using the CUPS web interface, the appropriate kernel modules need to be installed. The following steps are from the Gentoo Printing Guide.<br />
<br />
This section may not be necessary, however, depending on which kernel is being used. The kernel module may load automatically after plugging in the printer. Use the {{ic|tail}} command (described below) to see if the printer has already been detected. The {{ic|lsmod}} utility can also be used to see what modules have been loaded.<br />
<br />
====USB printers====<br />
USB printer users may need to blacklist the {{ic|usblp}} module. Keep in mind that there seems to be a lot of [http://bbs.archlinux.org/viewtopic.php?pid=660601 uncertainty] regarding blacklisting {{ic|usblp}}, as some USB printers, including some Canon and Epson printer series, are not recognized without it. Several user reported issues with Samsung printers when using {{ic|cups}} with blacklisted {{ic|usblp}} module, the solution was to re-enable {{ic|usblp}} and install {{ic|cups-usblp}} from aur instead of regular {{ic|cups}} package (https://bbs.archlinux.org/viewtopic.php?pid=778104)<br />
<br />
To blacklist the module:<br />
<br />
{{hc|/etc/modprobe.d/blacklist.conf|blacklist usblp}}<br />
<br />
Custom kernel users may need to manually load the {{ic|usbcore}} module before proceeding:<br />
# modprobe usbcore<br />
<br />
Once the modules are installed, plug in the printer and check if the kernel detected it by running the following:<br />
# tail /var/log/messages.log<br />
or<br />
# dmesg<br />
<br />
If you're using {{ic|usblp}}, the output should indicate that the printer has been detected like so:<br />
Feb 19 20:17:11 kernel: printer.c: usblp0: USB Bidirectional<br />
printer dev 2 if 0 alt 0 proto 2 vid 0x04E8 pid 0x300E<br />
Feb 19 20:17:11 kernel: usb.c: usblp driver claimed interface cfef3920<br />
Feb 19 20:17:11 kernel: printer.c: v0.13: USB Printer Device Class driver<br />
<br />
If you blacklisted {{ic|usblp}}, you will see something like:<br />
usb 3-2: new full speed USB device using uhci_hcd and address 3<br />
usb 3-2: configuration #1 chosen from 1 choice<br />
<br />
====Parallel port printers====<br />
To use a parallel port printer the configuration is pretty much the same, except for the modules:<br />
# modprobe lp<br />
# modprobe parport<br />
# modprobe parport_pc<br />
<br />
Once again, check the setup by running:<br />
# tail /var/log/messages.log<br />
It should display something like this:<br />
lp0: using parport0 (polling).<br />
<br />
If you are using a USB to parallel port adapter, CUPS will not be able to detect the printer. As a workaround, add the printer using a different connection type and then change DeviceID in /etc/cups/printers.conf:<br />
DeviceID = parallel:/dev/usb/lp0<br />
<br />
====Auto-loading====<br />
It is convenient to have the system automatically load the kernel module every time the it starts up. To do so, use a text editor to open up {{ic|/etc/[[rc.conf]]}} and add the appropriate module to the {{ic|1=MODULES=()}} line. Here is an example:<br />
MODULES=(!usbserial scsi_mod sd_mod snd-ymfpci snd-pcm-oss '''lp parport parport_pc''' ide-scsi)<br />
<br />
===CUPS daemon===<br />
With the kernel modules installed, the you can now start the [[Daemon#Performing daemon actions manually|start the cupsd daemon]]. Add cupsd to your [[daemons#Starting on Boot|DAEMONS array]] so it starts automatically on boot.<br />
<br />
=== Web interface and tool-kit ===<br />
<br />
Once the daemon is running, open a browser and go to: http://localhost:631 (''The '''localhost''' string may need to be replaced with the hostname found in'' {{ic|/etc/hosts}}).<br />
<br />
From here, follow the various wizards to add the printer. A usual procedure is to start by clicking on ''Adding Printers and Classes'' and then ''Add Printer''. When prompted for a user-name and password, log in as root. The name assigned to the printer does not matter, the same applies for 'location' and 'description'. Next, a list of devices to select from will be presented. The actual name of the printer shows up next to the label ( e.g., next to ''USB Printer #1'' for USB printers). Finally, choose the appropriate drivers and the configuration is complete.<br />
<br />
Now test the configuration by pressing the ''Maintenance'' drop-down menu then ''Print Test Page''. If it does not print and there is certainty regarding the correctness of applied settings, then the problem is most likely due to missing a proper printer driver.<br />
<br />
{{Tip|See: [[#Alternative CUPS interfaces]] for other other frontends.}}<br />
{{Note|When setting up a USB printer, you should see your printer listed on ''Add Printer'' page. If you can only see a "SCSI printer" option, it probably means that CUPS has failed to recognize your printer.}}<br />
<br />
==== CUPS administration ====<br />
<br />
A user-name and password will be required when administering the printer in the web interface, such as: adding or removing printers, stopping print tasks, etc. The default user-name is the one assigned in the ''sys'' group, or root (change this by editing {{ic|/etc/cups/cupsd.conf}} in the line of ''SystemGroup''). <br />
<br />
If the root account has been locked, it is not possible to log in the CUPS administration interface with the default user-name and password. In this case, it may be needed to change the default SystemGroup in cupsd.conf and read [http://bbs.archlinux.org/viewtopic.php?id=35567 this post].<br />
<br />
====Remote access to web interface====<br />
By default, the CUPS web interface can only be accessed by the ''localhost''; i.e. the computer that it is installed on. To remotely access the interface, make the following changes to the {{ic|/etc/cups/cupsd.conf}} file. Replace the line:<br />
Listen localhost:631<br />
with<br />
port 631<br />
so that CUPS listens to incoming requests.<br />
<br />
Three levels of access can be granted:<br />
<Location /> #access to the server<br />
<Location /admin> #access to the admin pages<br />
<Location /admin/conf> #access to configuration files<br />
<br />
To give remote hosts access to one of these levels, add an {{ic|Allow}} statement to that level's section. An {{ic|Allow}} statement can take one or more of the forms listed below:<br />
Allow all<br />
Allow host.domain.com<br />
Allow *.domain.com<br />
Allow ip-address<br />
Allow ip-address/netmask<br />
<br />
Deny statements can also be used. For example, if wanting to give all hosts on the 192.168.1.0/255.255.255.0 subnet full access, file {{ic|/etc/cups/cupsd.conf}} would include this:<br />
# Restrict access to the server...<br />
# By default only localhost connections are possible<br />
<Location /><br />
Order allow,deny<br />
Allow From localhost<br />
'''Allow From 192.168.1.0/255.255.255.0'''<br />
</Location><br />
<br />
# Restrict access to the admin pages...<br />
<Location /admin><br />
# Encryption disabled by default<br />
#Encryption Required<br />
Order allow,deny<br />
Allow From localhost<br />
'''Allow From 192.168.1.0/255.255.255.0'''<br />
</Location><br />
<br />
# Restrict access to configuration files...<br />
<Location /admin/conf><br />
AuthType Basic<br />
Require user @SYSTEM<br />
Order allow,deny<br />
Allow From localhost<br />
'''Allow From 192.168.1.0/255.255.255.0'''<br />
</Location><br />
<br />
You might also need to add:<br />
<br />
DefaultEncryption Never<br />
<br />
This should avoid the error: 426 - Upgrade Required when using the CUPS web interface from a remote machine.<br />
<br />
==Troubleshooting==<br />
The best way to get printing working is to set 'LogLevel' in {{ic|/etc/cups/cupsd.conf}} to:<br />
LogLevel debug<br />
<br />
And then viewing the output from {{ic|/var/log/cups/error_log}} like this:<br />
# tail -n 100 -f /var/log/cups/error_log<br />
<br />
The characters at the left of the output stand for:<br />
*D=Debug<br />
*E=Error<br />
*I=Information<br />
*And so on<br />
<br />
These files may also prove useful:<br />
*{{ic|/var/log/cups/page_log}} - Echoes a new entry each time a print is successful<br />
*{{ic|/var/log/cups/access_log}} - Lists all cupsd http1.1 server activity<br />
<br />
Of course, it is important to know how CUPS works if wanting to solve related issues:<br />
# An application sends a .ps file (PostScript, a script language that details how the page will look) to CUPS when 'print' has been selected (this is the case with most programs).<br />
# CUPS then looks at the printer's PPD file (printer description file) and figures out what filters it needs to use to convert the .ps file to a language that the printer understands (like PJL, PCL), usually GhostScript.<br />
# GhostScript takes the input and figures out which filters it should use, then applies them and converts the .ps file to a format understood by the printer.<br />
# Then it is sent to the back-end. For example, if the printer is connected to a USB port, it uses the USB back-end.<br />
<br />
Print a document and watch {{ic|error_log}} to get a more detailed and correct image of the printing process.<br />
<br />
===Problems resulting from upgrades===<br />
''Issues that appeared after CUPS and related program packages underwent a version increment''<br />
<br />
====CUPS stops working====<br />
The chances are that a new configuration file is needed for the new version to work properly. Messages such as "404 - page not found" my result from trying to manage CUPS via localhost:631, for example.<br />
<br />
To use the new configuration, copy /etc/cups/cupsd.conf.default to /etc/cups/cupsd.conf (backup the old the configuration if needed):<br />
# cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf<br />
and restart CUPS to employ the new settings.<br />
<br />
====Error with gnutls====<br />
If receiving errors such as:<br />
/usr/sbin/cupsd: error while loading shared libraries: libgnutls.so.13: cannot open shared object file: No such file or directory<br />
gnutls may be in need of updating:<br />
# pacman -S gnutls<br />
<br />
After updating, there may be a file named {{ic|cupsd.conf.pacnew}} in {{ic|/etc/cups}}. This is the unmodified original configuration file that has been placed as part of the update. Compare it with the currently installed version and adjust to preference.<br />
<br />
====All jobs are "stopped"====<br />
If all jobs sent to the printer become "stopped", delete the printer and add it again.<br />
Using the [http://localhost:631 CUPS web interface], go to Printers > Delete Printer.<br />
<br />
To check the printer's settings go to ''Printers'', then ''Modify Printer''. Copy down the information displayed, click 'Modify Printer' to proceed to the next page(s), and so on.<br />
<br />
====All jobs are "The printer is not responding"====<br />
On networked printers, you should check that the name that CUPS uses as it's connection URI resolves to the printer's IP via DNS. E.g.<br />
If your printer's connection looks like this:<br />
lpd://BRN_020554/BINARY_P1<br />
<br />
then the hostname 'BRN_020554' needs to resolve to the printer's IP from the server running CUPS<br />
<br />
====The PPD version is not compatible with gutenprint====<br />
Run:<br />
# /usr/sbin/cups-genppdupdate<br />
<br />
And restart CUPS (as pointed out in gutenprint's post-install message)<br />
<br />
===USB printers under CUPS 1.4.x===<br />
New CUPS 1.4.x introduces many changes:<br />
<br />
====Configuration file====<br />
The syntax of the configuration file cupsd.conf changed. Start with a new cupsd.conf file based on /etc/cups/cupsd.conf.default.<br />
<br />
====Blacklisting usblp====<br />
CUPS now uses libusb and printer USB devices (under /dev/bus/usb/) instead of the usblp generated /dev/usb/lpX ones. In order to get USB printers working, the usblp module needs disabling. Some users have also reported that they needed to reinstall their printer.<br />
<br />
{{hc|/etc/modprobe.d/modprobe.conf|blacklist usblp}}<br />
<br />
====Device node permissions====<br />
In addition to usblp not being loaded, CUPS also needs the ownership of the USB device file of the printer to be root:lp, and permissions to be 660. E.g.<br />
$ ls -l /dev/bus/usb/003/002<br />
crw-rw---- 1 root lp 189, 257 20. Okt 10:32 /dev/bus/usb/003/002<br />
<br />
This is supposed to be achieved by two udev rules in /lib/udev/rules.d/50-udev-default.rules:<br />
# hplip and cups 1.4+ use raw USB devices, so permissions should be similar to<br />
# the ones from the old usblp kernel module<br />
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p"<br />
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}==":0701*:", GROUP="lp", MODE="660"<br />
<br />
However, for some devices, in particular combined printer/scanner devices, these rules either do not trigger, or are overwritten by rules of the 'sane' package. In these cases a custom udev rule needs to be added. See below.<br />
<br />
=====Device node permission troubleshooting=====<br />
Get the printer's device file and its permissions with: <br />
$ lsusb<br />
...<br />
Bus 003 Device 002: ID 04b8:0841 Seiko Epson Corp.<br />
$ ls -l /dev/bus/usb/003/002<br />
crw-rw---- 1 root lp 189, 257 20. Okt 10:32 /dev/bus/usb/003/002<br />
<br />
If the permissions are not already root:lp 660, enforce it by creating a custom udev rule, e.g<br />
cat /etc/udev/rules.d/10-usbprinter.rules<br />
ATTR{idVendor}=="04b8", ATTR{idProduct}=="0841", MODE:="0660", GROUP:="lp"<br />
<br />
Note that idVendor and idProduct are from the lsusb listing above.<br><br />
Note - some printers will need permissions to be 666<br />
<br />
=====Loading firmware=====<br />
<br />
Some printers and drivers need to load firmware to the printer (such as HP LaserJet 10xx printers using foo2zjs) and do this by writing directly to the lp device, a functionality provided by usblp. A work around until this issue is resolved is to install the usblp module until the firmware is loaded, then remove the module to allow CUPS to work. This can be accomplished by manually running "$ modprobe usblp", waiting for the firmware to load, then "$ rmmod usblp". You can also not blacklist usblp, then put "rmmod usblp" to /etc/rc.local, allowing the firmware to be loaded on boot before rc.local is run, then removing usblp.<br />
<br />
In case the printer is plugged in or powered on while system is already running, /etc/rc.local does not get executed and usblp module stays loaded. A workaround is to modify the /etc/udev/rules.d/11-hpj10xx.rules provided by foo2zjs so that after the add event we wait e.g. 15 seconds for the firmware to load and then automatically remove usblp. The following example is for HP LaserJet 1018. For other models the value of ATTRS{idProduct} should be changed to match the printer model.<br />
<br />
Locate the line matching your printer in /etc/udev/rules.d/11-hpj10xx.rules:<br />
ACTION=="add", KERNEL=="lp*", SUBSYSTEM=="usb", ATTRS{idVendor}=="03f0", \<br />
ATTRS{idProduct}=="4117", RUN+="/sbin/foo2zjs-loadfw 1018 $tempnode"<br />
Add the following lines below it, make sure match the product and vendor IDs:<br />
ACTION=="add", KERNEL=="lp*", SUBSYSTEM=="usb", ATTRS{idVendor}=="03f0", \<br />
ATTRS{idProduct}=="4117", RUN+="/usr/bin/sleep 15"<br />
ACTION=="add", KERNEL=="lp*", SUBSYSTEM=="usb", ATTRS{idVendor}=="03f0", \<br />
ATTRS{idProduct}=="4117", RUN+="/sbin/rmmod usblp"<br />
<br />
===Other===<br />
<br />
=====CUPS permission errors=====<br />
*Some users fixed 'NT_STATUS_ACCESS_DENIED' (Windows clients) errors by using a slightly different syntax:<br />
smb://workgroup/username:password@hostname/printer_name<br />
<br />
*Sometimes, the block device has wrong permissions:<br />
# ls /dev/usb/<br />
lp0<br />
# chgrp lp /dev/usb/lp0<br />
<br />
====HPLIP printer sends "/usr/lib/cups/backend/hp failed" error====<br />
Make sure dbus is installed and running, e.g. check DAEMONS in {{ic|/etc/rc.conf}} or run {{ic|ls /var/run/daemons}}.<br />
<br />
The avahi-daemon might be required if this error persists and the dbus is already running.<br />
<br />
====hp-toolbox sends an error, "Unable to communicate with device"====<br />
If running hp-toolbox as a regular user results in:<br />
# hp-toolbox<br />
# error: Unable to communicate with device (code=12): hp:/usb/<printer id><br />
or, "{{ic|Unable to communicate with device"}}", then it may be needed to add the user to the lp group by running the following command:<br />
# gpasswd -a <username> lp<br />
<br />
====CUPS returns '"foomatic-rip" not available/stopped with status 3' with a HP printer====<br />
If receiving any of the following error messages in {{ic|/var/log/cups/error_log}} while using a HP printer, with jobs appearing to be processed while they all end up not being completed with their status set to 'stopped':<br />
Filter "foomatic-rip" for printer "<printer_name>" not available: No such file or director<br />
or:<br />
PID 5771 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!<br />
make sure '''hplip''' has been installed, in addition to [[#Packages|the packages mentioned above]], '''net-snmp''' is also needed. See [http://bbs.archlinux.org/viewtopic.php?id=65615 this forum post].<br />
# pacman -S hplip<br />
<br />
====Printing fails with unauthorised error====<br />
If the user has been added to the lp group, and allowed to print (set in {{ic|cupsd.conf}}), then the problem lies in {{ic|/etc/cups/printers.conf}}. This line could be the culprit:<br />
AuthInfoRequired negotiate<br />
<br />
Comment it out and restart CUPS.<br />
<br />
====Print button greyed-out in GNOME print dialogs====<br />
:''<small>Source: [http://bbs.archlinux.org/viewtopic.php?id=70418 I can't print from gnome applications. - Arch Forums]</small>''<br />
<br />
Be sure the package: '''libgnomeprint''' is installed<br />
<br />
Edit {{ic|/etc/cups/cupsd.conf}} and add<br />
# HostNameLookups Double<br />
<br />
Restart CUPS:<br />
# /etc/rc.d/cupsd restart<br />
<br />
====Unknown supported format: application/postscript====<br />
Comment the lines:<br />
application/octet-stream application/vnd.cups-raw 0 -<br />
from {{ic|/etc/cups/mime.convs}}, and:<br />
application/octet-stream<br />
in {{ic|/etc/cups/mime.types}}.<br />
<br />
====Finding URIs for Windows Print Servers====<br />
<br />
Sometimes Windows is a little less than forthcoming about exact device URIs (device locations). If having trouble specifying the correct device location in CUPS, run the following command to list all shares available to a certain windows username:<br />
$ smbtree -U ''windowsusername''<br />
This will list every share available to a certain Windows username on the local area network subnet, as long as Samba is set up and running properly. It should return something like this:<br />
{{bc| WORKGROUP<br />
\\REGULATOR-PC <br />
\\REGULATOR-PC\Z <br />
\\REGULATOR-PC\Public <br />
\\REGULATOR-PC\print$ Printer Drivers<br />
\\REGULATOR-PC\G <br />
\\REGULATOR-PC\EPSON Stylus CX8400 Series EPSON Stylus CX8400 Series}}<br />
What is needed here is first part of the last line, the resource matching the printer description. So to print to the EPSON Stylus printer, one would enter:<br />
smb://username.password@REGULATOR-PC/EPSON Stylus CX8400 Series<br />
as the URI into CUPS. Notice that whitespaces are allowed in URIs, whereas backslashes get replaced with forward slashes.<br />
<br />
====Print-Job client-error-document-format-not-supported====<br />
Try installing the foomatic packages and use a foomatic driver.<br />
<br />
==Appendix==<br />
<br />
===Alternative CUPS interfaces===<br />
If using [[GNOME]], a possibility is to manage and configure the printer by using system-config-printer-gnome. This package is available through pacman: <br />
# pacman -S system-config-printer-gnome<br />
<br />
For system-config-printer to work as it should, running as root may be required, or alternatively set up a "normal" user to administer CUPS (if so '''follow steps 1-3''')<br />
<br />
* 1. Create group, and add a user to it<br />
# groupadd lpadmin<br />
# usermod -aG lpadmin <username><br />
<br />
* 2. Add "lpadmin" (without the quotes) to this line in {{ic|/etc/cups/cupsd.conf}}<br />
SystemGroup sys root <insert here><br />
<br />
* 3. Restart cups, log out and in again (or restart computer)<br />
{{bc|# rc.d restart cupsd}}<br />
<br />
[[KDE]] users can modify their printers from the Control Center. Both should refer to those desktop environments' documentation for more information on how to use the interfaces.<br />
<br />
There is also [https://aur.archlinux.org/packages.php?ID=43505 gtklp] in the [[AUR]]<br />
<br />
===PDF virtual printer===<br />
CUPS-PDF is a nice package that allows one to setup a virtual printer that will generate a PDF from anything sent to it. Obviously this package is not necessary, but it can be quite useful.<br />
<br />
Find generated PDF documents in a sub-directory located at {{ic|/var/spool/cups-pdf}}. Normally, the subdirectory is named after the user who performed the job. A little tweak helps you to find your printed PDF documents more easily. Edit /etc/cups/cups-pdf.conf by changing the line<br />
#Out /var/spool/cups-pdf/${USER}<br />
<br />
to<br />
<br />
Out /home/${USER}<br />
<br />
This package can be installed by the following command:<br />
# pacman -S cups-pdf<br />
<br />
After installing the package, set it up as if it were for any other printer by using the web interface. For the Device, select '''CUPS-PDF (Virtual PDF Printer)'''; Make/Manufacturer, choose '''Generic'''; Model/Driver, select '''Generic postscript color printer''' or '''Generic Cups-PDF Printer'''. Alternatively, provide the PPD file from [http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/cups-pdf-CURRENT/extra/CUPS-PDF.ppd this link].<br />
<br />
==== Print to postscript: CUPS-PDF virtual printer trick ====<br />
<br />
Printing to PDF in most applications like OpenOffice is no problem; just hit the button. Yet when printing out to postscript, matters take a little more work. For applications like OpenOffice where printing to kprinter is nebulous at best, there has to be another way -- and there is. The CUPS-PDF (Virtual PDF Printer) actually creates a postscript file and then creates the PDF using the ps2pdf utility. To print to postscript, what needs to be done is capturing the intermediate postscript file created by CUPS-PDF. This is easily accomplished with by selecting the "print to file" option in the print dialog. (choose either .ps or .eps as the extension) After selecting the "print to file" checkbox simply enter the filename and click "print".<br />
<br />
=====Configuring CUPS-PDF virtual printer=====<br />
#Set up the cups daemon using the instructions on this page.<br />
#Install {{Pkg|cups-pdf}} from [extra].<br />
#Access the cups print manager: http://localhost:631 and select:<br />
Administration -> Add Printer<br />
Select CUPS-PDF (Virtual PDF), choose for the make and driver:<br />
Make: Generic<br />
Driver: Generic CUPS-PDF Printer<br />
<br />
Now to print to postscript, just print as usual, in the print dialog choose "CUPS-PDF" as the printer, then select the checkbox for "print to file", hit print, enter the filename.ps and click save. This is handy for faxes, etc...<br />
<br />
===Another source for printer drivers===<br />
[http://www.turboprint.de/english.html Turboprint] is a proprietary driver for many printers not yet supported by GNU/Linux (Canon i*, for example). Unlike CUPS, however, high quality prints are either marked with a watermark or are a pay-only service.<br />
<br />
==Resources==<br />
* [http://localhost:631/documentation.html Official CUPS documentation], ''locally installed''<br />
* [http://www.cups.org/ Official CUPS Website]<br />
* [http://www.linuxprinting.org/ Linux Printing], ''[http://www.linuxfoundation.org The Linux Foundation]''<br />
* [http://www.gentoo.org/doc/en/printing-howto.xml Gentoo's Printing Guide], ''[http://www.gentoo.org/doc/en Gentoo Documentation Resources]''<br />
* [http://bbs.archlinux.org/ Arch Linux User Forums]</div>Surlyjakehttps://wiki.archlinux.org/index.php?title=Django&diff=170770Django2011-11-22T04:31:54Z<p>Surlyjake: /* Usage */ Clarify that django runs on python V2</p>
<hr />
<div>[[Category:Development (English)]]<br />
{{i18n|Django}}<br />
[[fr:Django]]<br />
''"[http://www.djangoproject.com Django] is a high-level [[Python]] Web framework that encourages rapid development and clean, pragmatic design."''<br />
=Installation=<br />
Django can be installed through pacman by installing the 'django' package.<br />
<pre><br />
# pacman -S django<br />
</pre><br />
There is also an svn PKGBUILD available in the AUR, 'django-svn'. Using yaourt it can be installed as follows.<br />
<pre><br />
# yaourt -S django-svn<br />
</pre><br />
Of course, you can always download it directly from [http://www.djangoproject.com/download/ The Official Website]<br />
<br />
=Usage=<br />
Django is not used like other python libraries for the most part, but it can. After installation, you should be able to simply import django in any python V2 script.<br />
<pre><br />
>>> import django<br />
</pre><br />
In order to start a project, use django-admin.py.<br />
<pre><br />
$ django-admin.py startproject myproject<br />
</pre><br />
This will create the directory ''myproject'' under the current directory. It will also create the ''manage.py'' script, which has more useful functions for managing and testing your project. For instance, django has a small test server built into ''manage.py''.<br />
<pre><br />
$ python2 manage.py runserver<br />
Validating models...<br />
0 errors found<br />
<br />
Django version 1.1, using settings 'modsite.settings'<br />
Development server is running at http://127.0.0.1:8000/<br />
Quit the server with CONTROL-C.<br />
</pre><br />
It can be changed to run at, say, port 8080 like so.<br />
<pre><br />
$ python2 manage.py runserver 8080<br />
Validating models...<br />
0 errors found<br />
<br />
Django version 1.1, using settings 'modsite.settings'<br />
Development server is running at http://127.0.0.1:8080/<br />
Quit the server with CONTROL-C.<br />
</pre><br />
For more help, please see the [http://www.djangobook.com Django Book] or [http://docs.djangoproject.com/en/dev/ Official Django Documentation]<br />
<br />
=eric4-IDE Tips & Tricks=<br />
Eric4 is a good IDE for Django. It has Highlighting, Autocompletion, CVS & Subversion, Debugger, and Breakpoints.<br />
<br />
First install eric4 and eric-plugins<br />
<pre><br />
pacman -S eric eric-plugins<br />
</pre><br />
<br />
To start a new Django Project.<br />
<br />
First click on the "Project/new."<br />
Then under "Project Type" select Django.<br />
After your new django project has been created, Right-click on the "Project Viewer", to the Left, and select "Configure", and in the configuration window set "Project type" to Django.<br />
<br />
After that, in eric4's "Settings/Preferences" select Django, from the left, and add this change to the "Console Command."<br />
<br />
If KDE,<br />
<pre><br />
konsole --workdir `pwd` -e<br />
konsole --workdir `pwd` --noclose -e<br />
</pre><br />
<br />
This will solve the problem...<br />
<pre><br />
/usr/bin/python2: can't open file 'manage.py': [Errno 2] No such file or directory<br />
</pre><br />
<br />
Note the "Django" menu next to "Project" and "Extras". There you will find Django tools to runserver and sync database.<br />
<br />
Now, just play around with it a little. All your Python code will be Added to the first tab of the "Project-Viewer" and your html templates will be opened in the second tab.</div>Surlyjakehttps://wiki.archlinux.org/index.php?title=DeveloperWiki_talk:NewMirrors&diff=170684DeveloperWiki talk:NewMirrors2011-11-20T21:07:49Z<p>Surlyjake: </p>
<hr />
<div>* someone could please add description about the storage requirement of a archlinux mirror? --[[User:Rae|Rae]] 10:46, 28 June 2010 (EDT)<br />
* added --[[User:Romashka|Romashka]]<br />
* i believe we should have an reference script here (maybe the links?) Pierre has some scripts but there's no explanation about them. -- [[User:T-u-N-i-X|tunix]]<br />
* Storage size for the repos is out of date. as of NOV 20, 2011: community->31G, core->460M, extra->11G, multilib->229M. others may need updating too.-- [[User:Surlyjake|surlyjake]]</div>Surlyjakehttps://wiki.archlinux.org/index.php?title=Spotify&diff=153122Spotify2011-08-24T02:24:23Z<p>Surlyjake: /* Get Spotify from the AUR */ disclaimer indicating that the linux version of spotify in AUR only works for premium accounts</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
[[Category:Wine (English)]]<br />
[http://www.spotify.com/ Spotify] is a digital music service that gives you access to millions of songs.<br />
<br />
This Internet music service allows you to select any song in it's database and stream for free. The service was recently introduced to the United States after previously being exclusive to Europe. The only client currently available on Linux is supported on Debian and Fedora distributions, while they do recommend use under Wine. The only catch to using this application as a free user is the inability to go mobile without a premium subscription. Their are also the occasional voice ads in between songs for users who do not wish to subscribe.<br />
<br />
Spotify also offers free users the ability to create playlist which can be shuffled, and set to repeat tracks. Content provided by Spotify comes in explicit versions as well as censored.<br />
<br />
== Installation ==<br />
<br />
If you are interested in using Spotify under Archlinux, you must ensure that you have [[Wine]] installed on your system. In addition to installing Wine you will need to take a moment to configure it for the user who will be running the application.<br />
<br />
Depending on your choice of architecture it may be necessary for you to enable the [[Official_Repositories#.5Bmultilib.5D|multilib]] repositories. This is necessary to install Wine on x86_64 systems, if not enabled [[pacman]] will inform you that the package was not found.<br />
<br />
# pacman -Syy<br />
# pacman -S wine wine_gecko<br />
<br />
=== Configure wine ===<br />
<br />
When wine is installed you will need to change some configuration settings using the winecfg application on your every day user account (not root).<br />
<br />
$ winecfg<br />
<br />
After launching the winecfg application you will be presented with multiple tabs that can assist you in tweaking the performance of the emulator. However for this purpose your main focus will be the Audio tab.<br />
<br />
While under the audio tab, you will enable either the ALSA or OSS driver by clicking the check box next to them, depending on what software you prefer to use. Also note that the hardware acceleration will need to be changed from Full to Emulation. When done you may exit the winecfg application.<br />
<br />
Failure to perform the above task will result in the inability to hear playback.<br />
<br />
=== Get Spotify ===<br />
<br />
Obtaining Spotify can be done by registering for an account on their Website, the application does not offer in-app registration.<br />
<br />
However you can obtain the application prior to registering by using the following URL. [http://download.spotify.com/Spotify%20Installer.exe]<br />
<br />
After you have registered and downloaded your copy of the installer you will need to run the application through Wine, depending on your setup you may be able to run the application by right clicking the file. If not terminal will work just fine, as long as you run the below command in the directory of your download.<br />
<br />
$ wine Spotify\ Installer.exe<br />
<br />
Once the application is successfully installed you may run Spotify by using one of the following commands in terminal, or in the ALT+F2 launcher:<br />
<br />
If you use a x86_64 copy of ArchLinux, you'll have to run it like this:<br />
<br />
$ wine "/home/username/.wine/drive_c/Program Files (x86)/Spotify/spotify.exe"<br />
<br />
If you use a x86 copy of ArchLinux, you can use this command just fine:<br />
<br />
$ wine ~/.wine/drive_c/Program\ Files/Spotify/spotify.exe<br />
<br />
If you have any additional problems, I recommend setting the winecfg to Windows XP or Windows 7 emulation.<br />
<br />
=== Get Spotify from the AUR ===<br />
There is also a copy of {{Package AUR|spotify}} available in the AUR, although it only works for premium accounts.<br />
<br />
==See also==<br />
*http://www.spotify.com/int/help/faq/wine/<br />
*http://www.spotify.com/int/download/previews/</div>Surlyjakehttps://wiki.archlinux.org/index.php?title=Spotify&diff=153121Spotify2011-08-24T02:20:59Z<p>Surlyjake: /* Get Spotify */ changed" #" to "$" on terminal commands. probably don't want to install and run spotify as root user...</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
[[Category:Wine (English)]]<br />
[http://www.spotify.com/ Spotify] is a digital music service that gives you access to millions of songs.<br />
<br />
This Internet music service allows you to select any song in it's database and stream for free. The service was recently introduced to the United States after previously being exclusive to Europe. The only client currently available on Linux is supported on Debian and Fedora distributions, while they do recommend use under Wine. The only catch to using this application as a free user is the inability to go mobile without a premium subscription. Their are also the occasional voice ads in between songs for users who do not wish to subscribe.<br />
<br />
Spotify also offers free users the ability to create playlist which can be shuffled, and set to repeat tracks. Content provided by Spotify comes in explicit versions as well as censored.<br />
<br />
== Installation ==<br />
<br />
If you are interested in using Spotify under Archlinux, you must ensure that you have [[Wine]] installed on your system. In addition to installing Wine you will need to take a moment to configure it for the user who will be running the application.<br />
<br />
Depending on your choice of architecture it may be necessary for you to enable the [[Official_Repositories#.5Bmultilib.5D|multilib]] repositories. This is necessary to install Wine on x86_64 systems, if not enabled [[pacman]] will inform you that the package was not found.<br />
<br />
# pacman -Syy<br />
# pacman -S wine wine_gecko<br />
<br />
=== Configure wine ===<br />
<br />
When wine is installed you will need to change some configuration settings using the winecfg application on your every day user account (not root).<br />
<br />
$ winecfg<br />
<br />
After launching the winecfg application you will be presented with multiple tabs that can assist you in tweaking the performance of the emulator. However for this purpose your main focus will be the Audio tab.<br />
<br />
While under the audio tab, you will enable either the ALSA or OSS driver by clicking the check box next to them, depending on what software you prefer to use. Also note that the hardware acceleration will need to be changed from Full to Emulation. When done you may exit the winecfg application.<br />
<br />
Failure to perform the above task will result in the inability to hear playback.<br />
<br />
=== Get Spotify ===<br />
<br />
Obtaining Spotify can be done by registering for an account on their Website, the application does not offer in-app registration.<br />
<br />
However you can obtain the application prior to registering by using the following URL. [http://download.spotify.com/Spotify%20Installer.exe]<br />
<br />
After you have registered and downloaded your copy of the installer you will need to run the application through Wine, depending on your setup you may be able to run the application by right clicking the file. If not terminal will work just fine, as long as you run the below command in the directory of your download.<br />
<br />
$ wine Spotify\ Installer.exe<br />
<br />
Once the application is successfully installed you may run Spotify by using one of the following commands in terminal, or in the ALT+F2 launcher:<br />
<br />
If you use a x86_64 copy of ArchLinux, you'll have to run it like this:<br />
<br />
$ wine "/home/username/.wine/drive_c/Program Files (x86)/Spotify/spotify.exe"<br />
<br />
If you use a x86 copy of ArchLinux, you can use this command just fine:<br />
<br />
$ wine ~/.wine/drive_c/Program\ Files/Spotify/spotify.exe<br />
<br />
If you have any additional problems, I recommend setting the winecfg to Windows XP or Windows 7 emulation.<br />
<br />
=== Get Spotify from the AUR ===<br />
There is also a copy of {{Package AUR|spotify}} available in the AUR.<br />
<br />
==See also==<br />
*http://www.spotify.com/int/help/faq/wine/<br />
*http://www.spotify.com/int/download/previews/</div>Surlyjakehttps://wiki.archlinux.org/index.php?title=Spotify&diff=153120Spotify2011-08-24T02:18:53Z<p>Surlyjake: /* Installation */ wine_gecko is needed to view messages in spotify and keeps an error from popping up during winecfg</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
[[Category:Wine (English)]]<br />
[http://www.spotify.com/ Spotify] is a digital music service that gives you access to millions of songs.<br />
<br />
This Internet music service allows you to select any song in it's database and stream for free. The service was recently introduced to the United States after previously being exclusive to Europe. The only client currently available on Linux is supported on Debian and Fedora distributions, while they do recommend use under Wine. The only catch to using this application as a free user is the inability to go mobile without a premium subscription. Their are also the occasional voice ads in between songs for users who do not wish to subscribe.<br />
<br />
Spotify also offers free users the ability to create playlist which can be shuffled, and set to repeat tracks. Content provided by Spotify comes in explicit versions as well as censored.<br />
<br />
== Installation ==<br />
<br />
If you are interested in using Spotify under Archlinux, you must ensure that you have [[Wine]] installed on your system. In addition to installing Wine you will need to take a moment to configure it for the user who will be running the application.<br />
<br />
Depending on your choice of architecture it may be necessary for you to enable the [[Official_Repositories#.5Bmultilib.5D|multilib]] repositories. This is necessary to install Wine on x86_64 systems, if not enabled [[pacman]] will inform you that the package was not found.<br />
<br />
# pacman -Syy<br />
# pacman -S wine wine_gecko<br />
<br />
=== Configure wine ===<br />
<br />
When wine is installed you will need to change some configuration settings using the winecfg application on your every day user account (not root).<br />
<br />
$ winecfg<br />
<br />
After launching the winecfg application you will be presented with multiple tabs that can assist you in tweaking the performance of the emulator. However for this purpose your main focus will be the Audio tab.<br />
<br />
While under the audio tab, you will enable either the ALSA or OSS driver by clicking the check box next to them, depending on what software you prefer to use. Also note that the hardware acceleration will need to be changed from Full to Emulation. When done you may exit the winecfg application.<br />
<br />
Failure to perform the above task will result in the inability to hear playback.<br />
<br />
=== Get Spotify ===<br />
<br />
Obtaining Spotify can be done by registering for an account on their Website, the application does not offer in-app registration.<br />
<br />
However you can obtain the application prior to registering by using the following URL. [http://download.spotify.com/Spotify%20Installer.exe]<br />
<br />
After you have registered and downloaded your copy of the installer you will need to run the application through Wine, depending on your setup you may be able to run the application by right clicking the file. If not terminal will work just fine, as long as you run the below command in the directory of your download.<br />
<br />
# wine Spotify\ Installer.exe<br />
<br />
Once the application is successfully installed you may run Spotify by using one of the following commands in terminal, or in the ALT+F2 launcher:<br />
<br />
If you use a x86_64 copy of ArchLinux, you'll have to run it like this:<br />
<br />
# wine "/home/username/.wine/drive_c/Program Files (x86)/Spotify/spotify.exe"<br />
<br />
If you use a x86 copy of ArchLinux, you can use this command just fine:<br />
<br />
# wine ~/.wine/drive_c/Program\ Files/Spotify/spotify.exe<br />
<br />
If you have any additional problems, I recommend setting the winecfg to Windows XP or Windows 7 emulation.<br />
<br />
=== Get Spotify from the AUR ===<br />
There is also a copy of {{Package AUR|spotify}} available in the AUR.<br />
<br />
==See also==<br />
*http://www.spotify.com/int/help/faq/wine/<br />
*http://www.spotify.com/int/download/previews/</div>Surlyjake