Posts Tagged ‘wine’

Wine in The Central Park

Friday, January 11th, 2008

I and Alex Drunk Asenovgrad’s Mavrut in the central park it was very cold, but at least an experience. Right now I’m a little hot (cause of the wine). I’m urinating too often recently and it drives me mad. Also I’m a kind of lost I told Sasho about Torsion fields and stuff but he make a fun of that no matter I think that’s a serious matter here is an interview with Nikolay Palushev that may be of an interest to the reader
http://www.spiralata.net/kratko/articles.php?lng=bg&pg=128 .

Today I had English in the college pretty boring haven’t had a lot of work I had to fix few binary permissions part of a postfix also delete some old backups and create a new samba share some mail server problems for few minutes I think that’s all … I hate this world so much everything is so useless and awful. I hope to meet God soon …

Geri’s Birthday

Friday, January 18th, 2008

The day before yesterday, I was in a pretty bad mood and decided to went out. I went to the Mino’s coffee and accidently it happened that Geri a friend of mine had a birthday it was refreshing to spend some timewith real people even thought I thought about all’s behaviour and particularly “how hipocrity they are”.I drinked two glasses of wine for which Miro (Geri’s husband) said it smells like socks. Good heavens my nose was stalled. Yesterday I was out for a coffee with Lily :). 

The weekend was a sort of peaceful.Servers and everything runs fine thanks to the Lord! (ofcourse). I’ll end the post with a quote fromthe bible through the small program called “verse”.

Here is the quote” “For the eyes of the LORD run to and fro throughout the whole earth, to show himself strong in the behalf of them whose heart is perfect toward him…” II Chronicles 16:9 :)END—–

Friday Night

Sunday, January 20th, 2008

At Friday I, Zuio and Kiro (Kumcho Vylcho :). Went in the central park with a bottle of wine and 2l of beer. After the alcoholwas depleted Zuio suggested to buy 2 more bottles of wine. And we got very drunk it’s a miracle we are now fine.Yeterday I had a terrible headache. Yesterday I was on a birthday of Andon (Blackstar^) :). Tomorrow I haveexam in HRQM. I haven’t seriously studied yet. So I had to sit on my back and study.END—–

My pleasent time back home in Bulgaria

Sunday, January 4th, 2009

I experienced mostly a great time in Bulgaria. Refreshing days went to Kavarna with Nomen to confess my sins in front of a priest. I purposely has selected Kavarna’s Church and father “Vasilii” because I liked him as a priest. I’ve been on a liturgy once during the summer in the church where he takes care for. After the Liturgy I drived Mitko’s Audi A3 towards Dobrich. I’m a new driver so I need to practice. I drived during this days few more times. We went several times for a coffees and pubs with Nomen and Alex. We also went out with Nicki Mitko’s brother a couple of times and we had a great time together coffee-ing. I also went to a dentist. It seems that I had caries and they had to fix my teeth. The caries was in the last stage that it could be so the dentist had to kill and remove my nerve and he did so, the nerve was killed (with arsenic fluid) and removed and the tooth was filled in. I also went out for a drink 3 times with Lily. I went to liturgy 2 times. I met a nice priest (Father Veliko). In Varna when I came back from the Netherlands I met Order and had a great time with him. A lot of other things that I can hardly remember. The Christmas this year. My whole family was there except my grandma who had to be in the hospital (however the Christmas was just perfect!) Thanks to God! I and my family gathered together and had a nice talk and dinner even we said the Lord’s prayer before we started eating it was so nice … The New Year eve was a nice one as well. Even my grandma was there. If we don’t count few minor downfalls like a small quarrel with my sis all went well. I was home with my family until 1.30 in the morning and afterwards went to Denica’s who is a close friend of Nomen, Pavlin was there as well he is an old friend from the metal days of my past. I drinked a couple of glasses of beer and wine. In the morning I had a little hang-over as as a consequence from the drinking. The 13 days I was in Bulgaria has passed so quickly. I shared with my grandma and mother that I feel bad physically, emotionally and mentally. During my stay I also have been aguest in my aunt a couple of times, so nice time there as well.The food in Bulgaria is so great I was very, very happy to eat the delicios food there. The food here in the Netherlands is completely terrible compared to the one at home! In short that was how my days passed there. And I’m so happy about them! I’m looking forward to go home as fast as possible I realize my place is not abroad. When I firstly came here I thoiught that maybe my place is somewhere in some of the developed countries like here in The Netherlands. Now I think differently. It’s quite interesting that after I went out of Bulgaria I became much more a patriot. When I was living there I always has praised the developed countries way of living and thinking. Now it’s a completely different story I sometimes even like the bad things in Bulgaria. I wonder if other people who went out of Bulgaria to work or study has experienced the same.Anyways thanks to the Lord I had a safe journey from Bulgaria to the Netherlands. And here I’m here in the dorm again. I’m gonna tell in short my experiences from the trip back from Bulgaria to the Netherlands in a different post in a minute.END—–

Passed the Statistics exam Glory be to the Creator of Heaven and Earth!

Wednesday, January 24th, 2007

Aloha. Yesterday was a nice day. I was on the marketing exam, and after that I suggested to one of my collegues (Narf) to drink a coffee together. We discussed various stuff IRC(mainly), and then computer general stuff. Then he explained me about some interesting scripts that enhance the irssi irc experience. Then we I suggested him to go home to show him my FreeBSD box and geek for some time. In the path to home we saw Nomen, he just checked if I’m home and was going to his home. We stayed home for some time, watched BB, some games Diablo II with wine etc. After that he said he had to go. Later we went out with Mitko to one pub called regal we drinked a bear per man. And decied to go to his home to watch a film concerning the life of One very famous (now dead) “prophetess” called Grandma Vanga. As I thought before that and most of my friends christians from what I saw I’m almost convinced this woman did prophecised and did stuff with the help of the Evil Seducer ( The Devil ). Praise the Lord I passed the Statistics exam thanks to the Lord’s help HalleluYah to his Heavenly Throne. After that I went home and decided to take a shower to remove the EGG I put on my hair few days ago :], and after that went to bed. Today I feel really awful I probably get cold Yesterday :[. Hope I’ll be okay for a day or two. Thanks God for being merciful to me. As soon as you see and hear me I hope soon you’ll set me up on the place you’ve prepared for me Lord 😛 :]. I should start learning soon for my next exam which is in International Law, but again I’m too lazy.END—–

How to add repository manually from command line in Ubuntu Linux

Sunday, January 8th, 2012

I'm on a way trying to install Free Mega Games Pack and I'm facing troubles in following the instructions to add a the latest development wine version described on http://www.winehq.org/download/ubuntu
The guys from WineHQ has to update the wine install instructions, since the instructions are targetting older versions of Ubuntu which are not compatible with newer Ubuntus which comes natively with Unity
In order to complete the step in adding the WineHQ Ubuntu PPA development repository my only way was to add it using command line.
Here is how:

root@ubuntu:~# apt-add-repository ppa:ubuntu-wine/ppa
You are about to add the following PPA to your system:
Latest official WineHQ releases
Welcome to the Wine Team PPA. Here you can get the latest available Wine betas for every supported version of Ubuntu. This PPA is managed by Scott Ritchie, and is a replacement for the WineHQ budgetdedicated.com repository used for Jaunty and earlier.
More info: https://launchpad.net/~ubuntu-wine/+archive/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.bvo21sFWKG --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 883E8688397576B6C509DF495A9A06AEF9CB8DB0
gpg: requesting key F9CB8DB0 from hkp server keyserver.ubuntu.com
gpg: key F9CB8DB0: public key "Launchpad PPA for Ubuntu Wine Team" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)

Similarly adding a PPA repository on Debian is also possible by using a little shell script add-apt-repository.sh . add-apt-repository.sh simulates what ubuntu's apt-add-repositry python script does.

It is educative to mention PPA stands for (Personal package Archive) and the difference between normal repository and PPA is mainly in the fact that PPA repositories makes a package distributed by the repository like the native Ubuntu packages issued by Canonical.
Once for example a new version of a file is placed in PPA deb package repository, the newer package will be automatically installed to the system using it.

How to solve ALSA sound problems with old Linux programs and games depending on (OSS)’s /dev/dsp / fix wine games and pulseaudio problems – My few thoughts on OSS and ALSA

Wednesday, January 11th, 2012

 

ALSA OSS Pulseaudio ESD Some fixes workaround to gnu linux audio messI remember GNU / Linux, 11 years from now, times when ALSA was not standardly shipped with Linux.
Back then ALSA still lacked good support for many SoundCards and was still a "baby project".
In that time what we used to have sound on Linux was OSSOpen Sound System. OSS emerged right after the first ever Linux sound system VoxWare (formerly known as the Linux Sound Driver).

Back in those days OSS was used for multimedia support on both GNU / Linux and BSD based free OSes. It was few years later when I heard and used ALSA for a fist time and it wasn't really a love from first sigth.

One can easily find out by the name ALSA it is a system especially built for the Linux kernel and that's one of the reasosn why *BSD systems has their custom separate sound system.
There is plenty of reasons why OSS was substituted with ALSA. Main reason was its commercial like license, OSS wasn't completely "open source" GPLed (free software), there was resctions on use of OSS for commercial goals.

With its emerge ALSA started to push away OSS slowly. Somewhere in 2003, alsa has officially entered the Linux kernel source and until 2005 it was the default standard for all GNU / Linux operating systems.

As of time of writting ALSA has become the only sound system to have support for multiple sound card devices for Linux.
My experiences with ALSA, however ain't so nice if I take a look in my past experiences.
Since the very beginning of using ALSA, I had plenty of troubles with configuring properly my sound card not to mention, even after configuring it the MIDI support was not there.
Besides all the troubles main problems were stemming from the many applications still written to use OSS as sound system and hence with those sound was impossible with ALSA.The most problematic thing about apps written with OSS in mind was all of them tried to stream sound via /dev/dsp (OSS Digital Sound Processor), since alsa did not used /dev/dsp those programs was soundless.

On the other hand OSS was creating issues as well, one severe problem with OSS was the inability to stream multiple sounds simultaneously, because each sound stream required to pass voice through /dev/dsp and usually there was only one /dev/dsp.

The message;

/dev/dsp: Device or resource busy
and the proceeding irritation that used to annoy us in the early GNU / Linux days had of course some raw workarounds hacks but generally the workaround did not fix problems always.

Introduction of alsa free us from /dev/dsp issues but on the other handy has created a whole ocean of new BIG problems …
ALSA has modular structure and this imposes a great problem nowdays. The modular architecture is generally a good idea, however the way this was implemented within ALSA is far away from clear and easy to understand by the end user and therefore makes it very unintuitive and obscure.
Alsa misses simplicity which somehow was partially in the days of OSS. Thinking over the general situation with Linux multimedia nowdays, I believe it was exactly ALSA Project responsible for the so delayed mass Desktop Linux adoption.

Many long year standing Linux users had certainly had the alsa troubles during new system installs (correct me if I'm wrong).
The only fix to multiple soundcard initialization problems was to download alsa source and compile from source and hence made it hard and discouraging for people giving Linux a try.
This kind of ALSA "brokenness" pattern continues even to this very day (in Debian) Linux and probably building the alsa system from source is among the good practices to have a functional Linux sound system…

With all said the historic reason why ALSA was not quickly adopted and still is not a preferred default system for many applications ported to Free Software OSes by commercial company vendors is clear. Its simply not working out of the box …

Hope some ALSA developers will read this post work on changing the crazy structure of ALSA over complexity. ALSA needs automate way to solve issues with itself, the configuration should be more trivial and unified if Linux has to become more attractive for Desktop adoption.

Anyways, after the few words of history and indicating my pesonal observations on ALSA. I will proceed and explain few things on how ALSA can be configured to support and play nice with OSS dependant programs as well some basic explanations on common incompatibility between esd and pulseaudio and how this can be fixed;.

To assure nowdays OSS API built programs and games would work with Alsa its necessery to have installed;

ALSA wrapper for OSS applications

On Debian, Ubuntu, Fedora and most Linux distributions the Alsa OSS compatability layer comes under a (deb / rpm) package named alsa-oss

To install OSS compatability on Debian, Ubuntu and the like Debian based distributions issue:

debian:~# apt-get install alsa-oss alsaplayer-oss
...

On Fedora and other rpm based distributions install is with:

[root@fedora ~]# yum install alsa-oss alsaplayer-oss
...

alsa-oss provides with a command called aoss that should be used to work around some issues with old applications still depending on OSS:

hipo@debian:~$ aoss programName

Using aoss is helpful especially in situations if you have to run programs which deal with MIDI and others which somehow want to use /dev/dsp

There is also alternative way to enable alsa native support for MIDI and OSS by loading 3 kernel modules:

debian:~# modprobe snd-seq-oss
debian:~# modprobe snd-pcm-oss
debian:~# modprobe snd-mixer-oss

Note! The three modules has to be separately build using kernel source at most cases and does not come with most Linux distributions, so on many installations (including my current), they will be missing. If for you they load properly or you have customly build them add them also to load on system boot, like so:

echo 'snd-seq-oss' >> /etc/modules
echo 'snd-pcm-oss' >> /etc/modules
echo 'snd-mixer-oss' >> /etc/modules

The Linux sound situation becomes even more messy when ESD enters the scene. Many of the novice new Linux users certainly don't remember (Enlightened Sound Daemon) . ESD historically preceded PulseAudio . Hence it will be good to mention ESD was used for few years in GNOME and in around 2006-2007 it was substituted by PulseAudio.
Many applications, however who was ported or written for Linux especially (the proprietary ported ones) was already built to work with ESD and even though newer GNOME releases was fully using pulseaudio, this (non free software apps and games) were still depending on ESD.

The situation was partially fixed by creation of module for pulseaudio which added emulation support for esd . This was done by a module library for pulseaudio called libprotocol-esound.so
The package for almost all Linux distributions which does the esd emulation via pulse is pulseaudio-esound-compat . In latest Fedora Linux pulseaudio-esound-compat is installed by default.
In Debian and other Linux distributions it might need to be installed via apt with;

debian:~# apt-get install pulseaudio-esound-compat
...

pulseaudio-esound-compat solves some of the ESD app incompability but not always …
Handy tool also worthy to mention in solving PulseAudio, OSS incompatibility issues is padsp

padsp is helpful in solving obsolete issues with OSS applications (trying to access /dev/dsp) and therefore unable to communicate with Pulseaudio
padsp – is a PulseAudio OSS Wrapper.

An example where padsp is helpful is in case of /dev/dsp errors like:

/dev/dsp: Device or resource busy
Could not open /dev/dsp

Another common problem with sound on Linux is when running windows applications (running windows games with wine).
Quite often sound fails to work since wine tries to directly communicate with alsa and fails because alsa sound channel is taken by pulseaudio.

To workaround wine issues with pulseaudio, one of the solutions is to temporary stop pulseaudio, before running the wine emulated application:

hipo@debian:~$ pulseaudio --kill

Later on when the windows wine emulation is completed, pulseaudio has to be started once again in order to make Pulseaudio applications produce sound again, e.g. one has to issue:

hipo@debian:~$ pulseaudio --start
Alternative way to workaround wine sound issues is by using a script to kill pulseaudio every second. Here is fix_pulseaudio_wine_sound_probs.sh script

This script was reported by many people as fix to problems with wine games failing to play sounds and music, anyhow I personally prefer using the stop / start pulseaudio method.

The picture below is taken from Wikipedia and illustrates, clearly the intergalactical complexity of sound systems on Gnu / Linux and BSD

I just hope one day this (OSS, ALSA, esd, Pulseaudio) mess will be over! In the mean time I hope my suggested work arounds helps someone. If someone has a better more unified script or solution please share in comments