Posts

Showing posts with the label Linux

Fedora 19: Swap left and right pulseaudio channels

Why would anyone want to swap left and right pulseaudio channels? After some web searching I found that I am hardly alone. The classic problem is that your computer is on one side or the other, the audio-in cable goes to one speaker or the other, and the audio cable is too short. But this is linux, after all, so most things if not all things are possible, right? The first fix I came across was simple enough except sadly it didn't work. This called for editing /etc/pulse/deamon.conf and uncommenting the lines ; default-sample-channels = 2 ; default-channel-map = front-left,front-right to appear as default-sample-channels = 2 default-channel-map = front-right,front-left and then restarting pulseaudio with pulseaudio -k Seemed very clean and elegant except that it didn't work. :( The next answer from  here  and this worked great. The steps (reproduced here) are: cat /proc/asound/cards and use the name string for the device you wish to use (the one in squ...

alternatives --install gets stuck: failed to read link: No such file or directory

Alternatives utility gets stuck doing install. Fedora 17 x86_64. Removing the /var/lib/alternatives/javaws file resolved the issue (for me). # alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_07/jre/bin/javaws  20000 failed to read link /usr/bin/javaws: No such file or directory # ls /usr/bin/javaws ls: cannot access /usr/bin/javaws: No such file or directory # ls -al /var/lib/alternatives/javaws -rw-r--r--. 1 root root 105 Sep 22 11:39 /var/lib/alternatives/javaws # rm /var/lib/alternatives/javaws rm /var/lib/alternatives/javaws rm: remove regular file `/var/lib/alternatives/javaws'? y # alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.7.0_07/jre/bin/javaws  20000 # which javaws /bin/javaws # ls /usr/bin/javaws /usr/bin/javaws # ls -al /var/lib/alternatives/javaws -rw-r--r--. 1 root root 65 Sep 22 11:50 /var/lib/alternatives/javaws # cat /var/lib/alternatives/javaws auto /usr/bin/javaws /usr/java/jdk1.7.0_0...

Special Characters on Fedora 17 Gnome 3 - Make Caps Lock a "Compose" Key

I would like to type special characters - for example À la recherche du temps perdu or Du côté de chez Swann.  There are a LOT of methods to do this on Linux up to and including memorizing the unicode hex codes for each accented character and escaping these with ctrl-shift-U.  Sorry, not going to go there - that's too much like work. But many of the other methods involve using the ALT or Windows or CTRL keys as modifiers and again - sorry - I need those for all sorts of other uses. What seems like a decent solution - at least for me - is to use the Caps Lock key which up until now I had disabled on Linux. One can turn this into a "compose key" and you simply hit Caps Lock, then for example hit the back tick key, and then the "e" and you have composed è. Seems easy enough to remember, easy enough to type, and doesn't muck with my Xemacs, my Gnome Shell, my VNC etc. etc. To do this all that's needed is System Settings | Region and Language | Layo...

Linux Pidgin won't accept input (interaction with Gnome 3 shell extension)

This apparently can happen in a number of situations when using Pidgin under Linux but for me it happens while using Pidgin integrated with "pidgin-conversation-integration@kageenshi.com" Gnome 3 shell extension. The exact sequence for me is that I get an IM Notification via the Shell (as expected) and via a series of mouse clicks in the notification area I am able to bring up the Pidgin Chat Window. However, I am unable to type into the chat window as it won't accept keyboard input. The solution is to right-click the chat window then click in "Input Methods" "System (Simple)" even though this setting already appears to be checked. This immediately fixes the issue and it stays fixed (until possibly the next  chat message is notified). Apparently other users have reported the same symptom with Pidgin but under different circumstances but for me it only occurs in the setting of the aforementioned Gnome 3 shell extension. Addendum: This is being...

Networked Canon MP640 on Fedora 17 (64 bit)

Addendum: This has been "working" for a long time but ... often the printer would get "stuck". I noticed that in the CUPS interface the default paper size was set to A4. I changed that to US Letter and the reliability improved considerably. Most info I got from this Ubuntu Board - I don't have too much here that adds to that but anyways .... Get the Canon Print Driver from here:   http://software.canon-europe.com/products/0010757.asp Specify Linux, English, and choose the RPM version. This turns out to be a 32-bit driver which seems to work fine on my 64-bit system. What gets downloaded is                   MP640_rpm_driver_pack.tar So first we need to               tar xvf MP640_rpm_driver_pack.tar The tarball contains another tarball (weird but that's how they did it). So next need to               tar zxvf cnijfilter-mp640series-3.20-1-i386...

Scanning with SANE on Fedora 16 (HP Scanner)

Hadn't done much with scanning on linux but wanted to get going with it. As will soon be clear this is related to using an HP Photosmart C8100 series all-in-one device. First step - see what devices are attached. scanimage -L device `hpaio:/net/Photosmart_C8100_series?ip=192.168.1.5' is a Hewlett-Packard Photosmart_C8100_series all-in-one (Note the backtick quote at the beginning but the normal single tick at the end of the output - so cut and paste won't work here.) Probably could have gotten to the answer faster by simply quoting the device name properly right away - the correct syntax is scanimage -d 'hpaio:/net/Photosmart_C8100_series?ip=192.168.1.5' --format=tiff > out.tiff Here the entire device name is correctly quoted including the ip address for this networked printer/scanner. However, I tried some incorrect syntax and got some strange errors. If you leave off the ip address the command will be accepted but you'll get an error that...

John Weighs in on Linux Backspace/Delete Topic

If you google "Linux Backspace Delete" you'll be treated to an array of articles that are exceedingly comprehensive and well written explaining how The whole topic of keyboard handling in linux is very complex. How backspace and delete are particularly problematic. The complexity goes all the way back to the early days of computing, and how VT100 terminals were implemented. You would think that here in 2012 we would no longer be saddled with issues related to trying to emulate these historical relics but that, sadly, is not the case.   The layers of processing that go on between a key being pressed on your keyboard and a character appearing on your screen are way more than you might think. There are scancodes, keycodes, and keysyms. There are termcap and terminfo databases, there is X which has a say in the whole matter, and there are the individual applications themselves. And then there are the terminals (xterm, gnome-terminal, KDE console, etc.).  To ma...

Viewing Android Files from Linux

Apparently this is easier with Windows - something is done automatically there. What I found worked for Linux was On phone - Settings | Applications | Development | Enable USB Debugging. Connect Phone to Linux using USB. This will create a notification on phone - tap the notification - phone will ask if you wish to access files from PC and answer "Yes".  As a side note I couldn't add ringtones from the Sound Menu. Need to create folders on the phone which are all one word and all lower case named ringtones notifications alarms And put the proper sound files in the proper folders. Some folks say you have to restart your phone for this to take effect but I did not have to do this - it just worked.