Posts Tagged ‘openSUSE’

What I hate about Pulseaudio is its crappy default configuration. After fresh installation of SUSE Leap 42.2 I encountered an issue that subwoofer didn’t work with Amarok… again((( Lucky me, the first link that google provided me with was link to my own(!!!) thread that I started about 6 years ago (sick!!!). In 2011 I encountered the same issue, asked for help, but solved on my own and answered for my own request. And now future me was able to find that long forgotten thread of mine. That’s so sweet to recieve a messege to miself )))

This time I will put the answer here to remember it better 😉

The problem solved, tnx to this post.
In /et/pulse/daemon.conf I’ve made following changes:

Code:
 
enable-lfe-remixing = yes
default-channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
Advertisements

GRUB2 Recovery

Posted: March 9, 2013 in This and That
Tags: ,
Encountered an unpleasant issue today. Suddenly without any reason GRUB2 at my dual boot laptop halted with the “GRUB” string on the black screen and refused to proceed any further. Seems that is a known issue for the openSUSE 12.2 (GRUB2 became a bootloader for this version).
GRUB recovery usually an easy procedure and I did it quite often having several machines with a windows as a spare OS (it has an annoying habit deleting GRUB during own installation). I just used openSUSE live USB to load, and in Yast in Bootloader settings asked to propose the configuration for GRUB and then just saved it to the /boot partition.
This time it didn’t work at all… So I’ve spent all the day looking for solution. This two sources helped me a lot: Re-install Grub2 from DVD Rescue and openSUSE Help and Troubleshooting. Here you are the steps that helped me with my dualboot needs:
  1. Boot to Rescue System from the openSUSE installation DVD (login is root).
  2. Run fdisk -l to locate root partition (/dev/sda6 for me)
  3. Mount all that is needed (including partitions with other OSs so they will be scanned and included in GRUB configuration):
    • mount /dev/sda6 /mnt 
    • mount --bind /dev /mnt/dev 
    • chroot /mnt 
    • mount /proc 
    • mount /sys 
    • mount -a
  4. If the configuration file for GRUB is lost (like in my case):
    • grub2-mkconfig -o /boot/grub2/grub.cfg
  5. Write GRUB2 configuration to disc:
    • grub2-install /dev/sda
  6. Unmount and reboot:
    • umount -a
    • exit
    • reboot
 

It is quite annoying to download the whole 1Gb archive of SRTM30 DEMs when you need only couple of dozens of them. In case of Leningrad region for example I had to download 4 archives and face necessity of finding needed DEMs amongst several thousands(!!!) of files and deletion the rest… Too tedious and too long task to do it manually. Lets optimise it!

 We will use QGIS and Linux (I prefer openSUSE) console (and a text editor of your choice). The algorithm is applicable to other similar issues too.

Firstly we will get the list of names of files that we need to save (for our actual project). Collect all DEMs from archives in a single folder. And use Image Boundary plugin (or Raster tile index from “Raster” menu) to create a polygon shp-file with borders of all the DEMs from the folder and corresponding file name and path.

Open this layer in your canvas and select polygons that intersects your area of interest:

Now you can either to “save selection as” CSV from the layer menu or “copy selected rows to clipboard” from attribute table and paste it to the empty text-file. In LibreOffice Calc (or use other text editor for this) delete all columns exept that which contains file names and add to the list name of the text-file itself (lets name it FILELIST). NOTE: this file should contain ONLY NAMES without pathsPlace this file to the directory with DEMs.

We are ready for the final step – deletion of a thousands of DEMs that we are not going to use. A recipe I found here: using console go to the folder with DEMs and execute following command:

ls -1 | sort FILELIST FILELIST - | uniq -u | xargs rm

Where FILELIST is our text-file containing names of files that we need to KEEP. This command will delete all files from the folder except files which names are listed in FILELIST.

I hate Pulseaudio! This piece of crap never worked ever out of the box as it should. Usually I just disable it or remove completely. But in openSUSE 12.1 disabling or removing pulseaudio didn’t work.


The issue: my 5.1 system sounds crappy (and subwoofer doesn’t work) when I use Amarok (or flash audio from the web) and pulseaudio is enabled; but VLC and other videoplayers are able to play nice 5.1 sound. If I disable pulseaudio Amarok sounds great (and subwoofer works), but videoplayers are unable to play 5.1 – only stereo (VLC claims that audio device is busy and no workaround form web were unable to fix it).


So I decided to stick with pulseaudio, and had to make all 6 channels to work for stereo files. I’ve made following changes in /etc/pulse/daemon.conf:

enable-lfe-remixing = yes default-channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe

Over a month ago a motherboard of my 4 years old desktop died right in the middle of the important work. I had to make a decision whether I should repair it or buy a new PC. At that moment I’ve already faced a lack of performance and knew that a simple upgrade will not help much. But I had no intentions to spend money for purchasing completely new PC. So I decided to buy new powerful CPU, a corresponding motherboard, and a lot of fast RAM. (more…)

I’ve encountered a problem with connecting R and GRASS in openSUSE to multiply their power. “spgrass6” library was unwilling to install properly. Here is a workaround for this issue.

“spgrass6” needs libxml2-dev (can be found here) package for installation (actually this  package is required by “XML” library that needed for “spgrass6”) so install it 😉

If you will try to install “spgrass6” normally (as root), you may receive the message (first two lines of installation logs) that this library will be installed in '/root/R/x86_64-unknown-linux-gnu-library/2.13’ because 'lib' is not defined which means that this library will be available only for root. So you need to perform installation as user and everything will be fine.

We’ve  bought HP ProBook 4520s for my wife recently. It came with SLED 11 SP1 preinstalled. The hardware and preinstalled software worked just fine, but due to the lack of the software in repositories designed for SLED, lack of information in web about it’s several aspects it was decided that openSUSE 11.4 should be installed. So now it is much easier to get needed software, but on the other hand hardware issues appeared. Drivers from official HP site available only for SLED, so there are issues with WiFi button, “Unsupported hardware” watermark from AMD, and the most annoying – flawed two fingers scrolling.

The issue is that two finger scrolling works ones in a 20 attempts or so, which means it is completely useless, and emulation of the right mouse button click (which requires two fingers as well) is challenging and you will need some training to perform it. “Psynaptics” installation brought no help, guess touch pad drivers settings need some customization… I was too bored to search for solution. But occasionally I was able to find a workaround for this issue: you just have to use your thumb (its outer side) instead! Seems the length of the continuous flesh  matters. This move is quite natural and actually is more convenient than two finger usage because you don’t have to change position of your hand, and wrist stays where it lies! The same benefit is for the right mouse button click emulation – you just tap with the outer side of your thumb – this shit was never easier before! The minor bug became an awesome feature!

There is no way I would wanna fix initial issue from this moment! 🙂

That’s how it looks like:

Right mouse button emulation (click to view animation)

 

Scrolling (click to view animation)

 

I’ve updated my openSUSE 11.3 to 11.4 version! It’s awesome!!!

The last time I’ve tried to update 11.2 to 11.3 I failed and had to perform a clean installation, but this time it was Ok. Maybe because this time I’ve added new repos for additional software before updating, not just basic official repos. This update saved a great deal of time – I don’t need to set up the environment and install needed software.

openSUSE 11.3 was more stable than 11.2 so I accepted it’s performances issues (it worked little bit slower than Window7, which I have in dual boot, and some programs stuck from time to time). I don’t know what was the reason for these minor issues. Now with 11.4 these issues are gone!

Of course there are some minor problems after update. PulseAudio is a default audio driver and as always it’s a crap –  I can’t stand so terrible sound. Disabling it didn’t help so I deleted PulseAudio completely. Sound is Ok now. The second problem is broken VLC-player. I’ve reinstalled it several times but still every time I’m trying to open something it crashes with the segmentation fault and telling something about my locale (which I decided to change from RU to US before updating). This is not a tragedy, because M-Player works just fine. G-mail plasmoid started to work properly only after it was deleted and reinstalled. Amarok’s play-lists were broken. Other issues aren’t noticed so far.

One of the most delicious change in 11.4 version for me was clouds [updated everyday] added to the desktop map. [as a geographer] I’ve tuned one of the desktops (in KDE) which is used to work with GIS to show the world map with the night shadow, which shows where is night at this moment. It is interesting, that globe as desktop backgroundin KDE environment wasn’t available for Fedora and Kubuntu when I used them last year.

One of the my desktops with the night shadow moving across the world map.
Settings for the image above

Also the world map is available as interactive globe, Open Street Map, and if you’re tired of Mother Earth just chose Moon instead.

Thanks to this post I was able to install R-commander in openSUSE. I’ve modified recipe a bit and don’t want to search for it the next time.

You have to perform several steps:

  1. Install R-base and R-base-devel packages from here.
  2. Install gfortran :~> sudo zypper install gcc-fortran
  3. :~> su
  4. [as root] start R : # R
  5. In R console type > install.packages(“Rcmdr”, dependencies=TRUE)
  6. You will receive several warnings after installation – fuck that shit.
  7. In R console type > library(Rcmdr). A warning window about missing packages will appear – click Ok to allow installation.
  8. In R console type >  library(Rcmdr) and enjoy R-commander!

P.S. R is a powerful programme, but it has a shitty name to search for. I was close to start shitting bricks when tried to find repositories with R in the first place.