Fedora Core 2: Fix for Missing keyboard layouts problem

Fedora Core 2: Fix for Missing keyboard layouts problem

(this article has moved here)
After the upgrade of my Fedora from Core 1 to Core 2, I noticed very serious problem – my keyboard layouts were missing, no switching – nothing! In KDE Control Panel -> Regional & Accessibility -> Keyboard Layout, the Available Layouts list was empty, also XKB options list was empty too.
I was astonished! After a long Google struggle, I found the solution here. It seems that the XFree86 to XOrg migration, which occurs in Core 2, has caused this problem. Seems also that Control Center expects to find the available layouts in the xfree86.lst file, while the new xorg layouts are placed in xorg.lst.
Execution of these commands as root fixed my problem:

cd /usr/X11R6/lib/X11/xkb/rules
ln -s xorg.lst xfree86.lst
ln -s xorg.xml xfree86.xml

Thanks to Ralf Ertzinger for his post – it saved my day!

PCMCIA Fedora Core 2 problem fixed!

PCMCIA Fedora Core 2 problem fixed!

(this article has moved here)

Yesterday I upgraded the Fedora on the notebook (Acer TM 202). The new linux kernel was 2.6.6. Surpsingly, after the reboot PCMCIA networking stopped. There was an error about eth0 not being present (because PCMCIA was loaded after the networking), and that’s it – it was not getting online after loadig of the PCMCIA.

Before (in Core 1) the behavior was the same, but after PCMCIA loading it was somehow working – it seems it was detecting/raising the eth0! Now it was refusing to do so. And I had to look for another solution.

I checked the Google – nothing special :(. Similar problems, lots of results (more than 5000), but no straight solution for my problem (logically: Fedora Core 2 was only 5 days old).

I started to solve the problem manually, and after:

rmmod 3c509_cs
rmmod ds
/etc/init.d/pcmcia restart

it went fine! HELL! It seemed that the eth0 failure (when PCMCIA driver was not yet present) was locking something, which ruined the success of any future network driver loading.

I decided to ask LUG-Bulgaria. After one hour maximum I received a valuable answer from Peter Georgiev, who told me to switch the PCMCIA loading priority from 24 (current) to 9 (higher than the networking). His precise instructions were:

  1. Open /etc/init.d/pcmcia
  2. Change the line
    # chkconfig: 2345 24 96

    to

    # chkconfig: 2345 09 96

    Yes, it’s in a comment, but it seems it has meaning to the chkconfig command (see below).

  3. Execute
    chkconfig --level 2345 pcmcia reset

After these changes, PCMCIA executes before my network, and all works.

I am still wondering if that solution is correct. Maybe we just killed the resulting symptom, not the real problem, but it works for now. I do not hear the standart “beep beep” when my PCMCIA gets up, and I do not hear it when I remove/insert a card. But I can live with that.

Please, if someone reads this, and if this someone has another explanation of my problem – I will be really curious to hear it. It seems that the problem is somewhere in the newer kernel modules, but… I am yet too lame to find and resolve it. I miss the old way, but the newer kernel is more important than it.

Nice Fedora FAQ

Nice Fedora FAQ

While looking about article how to fix my yum.conf in order to update to base only, I just found a nice Unofiicial Fedora 2 FAQ page. There I found good explanation about how to install Java JRE – a thing which I needed before some time (and fixed locally). Now I have working JRE for all the users :).
I continue with my “yum update” saga – we’ll see…
Ah, also I found another Fedora News site… I think more dynamic than the original FedoraNEWS.org.

Which file to which RPM belongs…

Which file to which RPM belongs…

Today Alexander Shopov was giving me some help because of a very severe problem I had here. The problem (already solved by magic – we did not noticed what exactly solved it) was that

rpm -qi kernel

was showing two kernel packages installed, but when I try to remove the older one, it was reporting that the package was not (?) installed. However, as I said – the problem was solved magically – after many tries, the last “rpm -e” command strangeously why succeeded.
However, this article is not about this. It’s about some nice rpm query commands that I want to remember. And the best way to remember them is to store them here :).
The first command to remember is:

rpm -qi <package name>

This command gives you valuable information about all installed package’s versions. If this this information is too much for you, and if you need the real package(s) names, in the way they should be given in probable “rpm -e” command, then you should use the second command to remember:

rpm -qa <package name>

This command enlists all packages with thie name (and their different versions). You may use the output as source of the “rpm -e” command later.
And during Alexander’s help, I learned the third command (mini-script) to remember:

for i in*; do echo -n "$i :: " && rpm -qf $i; done

If you run this mini script in given directory, it will list each file from that directory and the rpm, to which this file eventually belongs to. If the file does not belong to any rpm – you will have the corresponding message about it. Very useful thing indeed!
I would like to thank again to Alexander for all his time! I learned valuable things, and he also helped me (though I did not understood how finally it worked) to overcome my problem!

Running scheduled tasks

Running scheduled tasks

This article should continue my Linux lame articles, which I post here. I am starting to think to rename the “Hacking” category to “Lamer” :). Maybe later…

Today I had another Linux-newbie problem to solve. It’s simple, it’s newbie, and although I’m Linux user since 1994, I never had need to sove similar problems, or I never wrote my experience about such. So now I decided to write it here, and when I need it again after 5 years, I will just consult my blog ;).

The problem: I had to force SIM to erase some history files regularly. Usually, people just redirect the needed history file(s) to /dev/null, but strangeously why, my SIM-ICQ 0.9.3 was not able to accept such solution (**really** weird things started to happen with all accounts, which had their history files as links to /dev/null, so I quit trying that solution).
I had to create a script, and make it run each day on the morning. I wanted even more – I wanted cron to force all scripts, placed in given directory, to run at given time.
The really **big problem** was the fact that I was lazy to read! I wanted to solution right now in my hands, so I had to ask Veselin Kolev, one of the Linux gurus, for help. I know it’s a shame to waste experienced people time like that, but again, I was lazy to read, and Veso was online :).
He told me in few lines the solution. And here it is:

  1. First, I had to create the folder in my home directory. I chosed the name “.cron”, because it was looking nice to me, and it’s a hidden folder – it would not bother me when browsing my home with Konqueror;
  2. Now it was turn to make the script. So I did, I placed the script in that folder.
  3. Now it was time for root access. I modified /etc/crontab – I added the following line to it:
    # `doncho` scripts
    00 6 * * * doncho run-parts /home/doncho/.cron >> /dev/null 2>&1
  4. Now, all the scripts from directory “/home/doncho/.cron” will run each day at 6:00 AM.

During our conversation, Veso explained me how to use the “at” command for tasks, which I need to run once at given scheduled time. His brief explanations were:

  1. You create a script, and place it somewhere. Example – the following script (named ~/download), which downloads some site at some dir:
    #!/bin/bash
    wget --directory-prefix=/home/doncho/dobwload http://nana_download_server
  2. Now we must schedule the execution using the “at” command:
    at -f ~/download 23:00 05182004
  3. This script will run on May 18th 2004 at 23:00
  4. If the computer was switched off at that time, the script will run as soon as the computer gets up later, i.e. it would not be forgotten if the computer was offline when that time comes.

That’s all for today :). I hope you did not get too bored :).

How to create shared space on a Linux machine (for idiots)

How to create shared space on a Linux machine (for idiots)

My system: Fedora Core 2
A few days ago I was infront of a trivial problem, which I never solved before. I had to create some shared space (without quotas or other fancy stuff) on my Linux partition. I needed any user, who belongs to given group, to be able to have full control to that space.
I started with creating group ‘users’ and adding the needed users to it. After that (as root) I created the folder ‘/home/SHARED’, and I

chown -R root:users /home/shared

After that I logged on with another user (who belongs to ‘users’) and – whoops – it was not working. Permission denied. I double-checked the permissions, but all seemed correct.
I got mad. I though I *knew* these things – it should not happen like that. Maybe my madness stopped me from finding the solution of the problem right now, but I tried tons of stuff/experiments – and nothing! The other user could not write to that shared place! I got completely mad! If you would like to know how mad I was, just have in mind that I had crazy thoughts digging through the source of chown or chmod commands in order to understand how the permissions work :(. Fortunately, I did not started with that – I just went to bed. Before that I switched off the machine.
This morning – suprisingly, it worked! I still do not uderstand how and why (the hell) it needed that restart – maybe you could help me? But I was lucky – my friend Nikola Antonov was online, and I asked him that question. He supposed that the yesterday’s user should be logged off/logged on in order new permissions to be taken into account? I still do not believe that.
The fact is that now the shared space works fine. There was just one small problem, which Nikola showed me how to remove (and that’s why I decided to share in English my experience with you). The problem was that though it was shared space, if user A creates a folder, user B (both A and B are in ‘users’ group) cannot delete that folder if it’s not empty. If it’s empty – all works. That was because when creating the folder by A, the newly created object gets owner A:A, and not A:users. Invoking the command

chmod -R g+s

solved that problem too – now when whoever creates an object there, this object has as owner :users, which makes it fully accessible by all others.

Злото никога не идва само, приятели…

Злото никога не идва само, приятели…

Ужасен ден! Един от най-ужасните в животът ми, не се лигавя като го казвам. Ден, който може да обърне бъдещето ми в такова, каквото не съм си го представял.
Ангел, слава Богу, върви към оправяне. И това е единственото светло нещо в ден като този :(. Не питайте, моля Бог да не разберете какво съм имал впредвид.

Болница…

Болница…

Това се очакваше :(. Т.е. – мислел съм си го, в един от най-лошите ми планове за развитието на болестта на детето.
Оказва се, че поради обезводняването, ще го вземат в болница. Ей тъй – за всеки случай. Веси ми съобщи това, докато карах към Пловдив – аз си знам как изминах останалите 50 км, докато изключих двигателя пред нас.
Събрах огромна чанта с багаж (списъкът беше наистина дълъг), и беж – при тях в болницата. Видях #Ангел#, не мога да кажа че съм спокоен :(. Много блед, макар и жилав и подвижен, както обикновено. Утре предстоят изследвания – дано, дано всичко е наред :(. Много съм притеснен, #Веси# и тя не не много по-добре :(. Дано изследванията са ОК.
Ще ги държат поне 3 дни. Тези 3 дни ще го изследват. Ако това разстройство продължи – не знам – ще счупя нещо :(. Толкова безсилен не съм се чувствал и аз не знам от кога (комай от казармата, но там всички знаем за безсилието, което човек го обзема на моменти).
Няма да пиша повече. Извинявайте, че ви натоварих с проблемът си – но тази болест наистина измъчи Ангел, и започна вече да ни изнервя много! Няма ли да и се види краят вече 🙁 ?

Ангел вече започна да оздравява?

Ангел вече започна да оздравява?

След 2 дни притеснения, :Ангел: като че ли бавно оздравява. Горкото дете – много се измъчи (по описания на мама :Веси:). Това май е най-сериозното заболяване, което той изкарва откакто се знаем вече – цели 2 години! Дано по-рядко да се случват такива болести, че и за него тежко, и за нас.

:Веси: сигурно е затънала в работата си – трябваше да свърши ревизия тази седмица, но болничните за :Ангел: я дръпнаха и нея една седмица назад. Тепърва сигурно ще ми се оплаква, когато се прибера днес в Пловдив.

В работата нещата тръгват – бавно, но неумолимо. Ще ставам и аз Джавар – то е ясно! Няма да ми се размине. Дано само този период на адаптация да мине по-бързо и да започне истинската работа: за пореден път се убеждавам, че познания по един език се придобиват само и единствено с работа, а не с правене на примерчета и тестчета от книжки. И още по-малко – само с четене на книжки.

Днес в ICQ е заврял някакъв странен спам във връзка с нерадостната съдба на нашите мед. сестри в Либия. Ал-Джазира пуснали гласуване (естествено – само на арабски!) дали нашите сестри да умрат или не. Все едно от тях зависи нещо! Но нали са араби – показват и те солидарност! Да, ама нашите напипали това гласуване, и вече има хитри скриптове (само не забравяйте да си изключите cookies за www.aljazeera.net), чрез които гласуването започна да набъбва с такива темпове, че скоро чакам да стигне 99.8% в наша полза. Явно българите с компютри не спим. Колко жалко, че ще анулират най-вероятно това гласуване :).

Довечера пътувам за Пловдив. Тази седмица без Веси и с притесненията около Ангел ми се видя ужасно дълга!

Вечер сам

Вечер сам

Тази вечер прекарах сам, но във виртуалната компания на Весо Колев и Интернет.

:Веси: беше спешно откомандирована за Пловдив, когато на обед научихме че :Ангел: е с 39,1 градуса температура и майка отправи зов за помощ. С :Веси: правихме планове да ходим на театър (това бяха нейни планове, но и аз бях навит също) – и ето как те бързо се провалиха. Но провалянето всъщност е “бял кахър”, ако детето се оправи бързо!

След работа си купих ядене от закусвалнята (пак прекалих, голямо съм прасе!), прибрах се, казах “здрасти” на Тянко, Цонка и майка и (не я бях виждал повече от пет години сигурно), изскубнах кабела от телефона и се прибрах в стаята си.

Бях решил – вечер с ядене и Интернет – и си го изпълних. Преглътнах БТК, техните идиотски цени (между другото – миналият месец наистина сметката ни беше 0.24 ст за целият месец телефон!), и влязох в Мрежата.

С Весо дръпнахме як молбет по въпроса за Интернет, доставчиците, “админите” по разните хоум-ланки, възможностите и т.н. Разбрах, че от някакъв проект СУ най-накрая ще получи истинската свързаност, която един университет от неговият ранг трябва да има – ще бъде вързано на 140 МБит/сек към МАН мрежата. Весо сподели за интересни проекти, които предстоят да се изпълнят, и аз леко позавидях на ентусиазмът и на желанието за работа. Някога (когато и аз бях макар и за малко в образованието) този ентусиазъм го имаше и при мен. Но след това… 🙁 ! Успех, момчета!

Говорих си с Весо, но всъщност чаках #Веси# да влезе в ICQ, за да я разпитам за детето. Тя сподели в 18:20 по телефона, че :Ангел: е с много по-ниска температура (37.5), но въпреки всичко на мен ми се щеше да и сега да я чуя и да се успокоя и аз. А сега стоя и си мисля, че не влиза в Мрежата, защото е заета да му слага кърпи с оцет, и това ме притеснява още повече :(. А не мога да звънна по телефона, защото тогава мога да събудя детето… Абе, утре ще видим, дано всичко да е ОК тази вечер и да спят сравнително спокойно и без нощни тревоги или грижи. Крайно време е гнусният вирус да напуска малкото човече. Само ме е яд, че изчакахме толкова време, уж за да не стигаме до антибиотици, а всъщност сега сменяме 2-ри и пак стигнахме до не много слаб такъв. Дано само не стигнем и до 3ти :(!

Ох, неприятности. Било нормално, не било толкова страшно отстрани, така разправят за родителските тревоги. Да, ама като си далече, ти изглежда много по-зле и си мислиш какви ли не глупости! Дали да не си лягам, и да се опитам да се приспя с поредното фентъзи? Ще взема да пробвам, веднага след като изтръшкам сайтът на СЕГА. Дано междувременно и :Веси: да цъфне онлайн…

Theme: Overlay by Kaira Extra Text