Posts Tagged ‘center’

How to install Skype on 64 bit Ubuntu (amd64) architecture

Sunday, July 17th, 2011

It seems Skype has troubles installing on 64 bit Ubuntu via Ubuntu’s Graphical Package Install manager which in Ubuntu 11.04 is called (Ubuntu Software Center)

During my attempt to take advantage of the nice GUI apt frontend, I encontered the error:
Wrong Architecture amd64

And Skype install failed, as you see in below’s picture (which you might be unable to read since it’s stating the error in Bulgarian 😉

error Ubuntu 11.04 Skype Install error in architecture amd64

The error is quite understandable, since the Skype deb package which tried to install was built for the i386 architecture.
Since the Software Center was not intelligent enough to work around the issue, I finally fixed it myself using the good old apt-get in terminal, like so:

root@ubuntu:~# apt-get install skype
...

apt did not even complain that the package had a different architecture for i386 and installed skype without any errors as well Skype worked immediately even though the arthictural difference.
This is probably because even though it’s a amd64 Ubuntu it has a kernel module loaded to support i386 binaries 😉
Now my sister can enjoy her skype on the shiny Ubuntu 😉

How to enable AUTO fsck (ext3, ext4, reiserfs, LVM filesystems) checking on Linux boot through /etc/fstab

Tuesday, July 12th, 2011

How to auto FSCK manual fsck screenshot

Are you an administrator of servers and it happens a server is DOWN.
You request the Data Center to reboot, however suddenly the server fails to boot properly and you have to request for IPKVM or some web java interface to directly access the server physical terminal …

This is a very normal admin scenario and many people who have worked in the field of remote system administrators (like me), should have experienced that bad times multiple times.

Sadly enough only a insignifant number of administrators try to do their best to reduce this down times to resolve client stuff downtime but prefer spending time playing the ztype! game or watching some porn website 😉

Anyways there are plenty of things like Server Auto Reboot on Crash with software Watchdog etc., that we as sysadmins can do to reduce server downtimes and most of the manual human interactions on server boot time.

In that manner of thougts a very common thing when setting up a new Linux server that many server admins forget or don’t know is to enable all the server partition filesystems to be auto fscked during server boot time.

By not enabling the auto filesystem check options in Linux the server filesystems did not automatically scan and fix hard drive partitions for fs innode inconsistencies.
Even though the filesystems are tuned to automatically get checked on every 38 system reboots, still if some kind of filesystem errors are found that require a manual confirmation the boot process is interrupted and the admin ends up with a server which is not reachable remotely via ssh !

For the remote system administrator, this times are a terrible times of waitings, prayers and hopes that the server hardware is fine 😉 as well as being on hold to get a KVM to get into the server manually and enter the necessery input to fsck prompt.

Many of this bad times can be completely avoided with a very simple fix through /etc/fstab by enabling all server partitions containing any filesystem to be automatically checked and fixed in case if inconsistencies or errors are found by fsck.ext3, fsck.ext4, fsck.reiserfs etc. commands.

A very typical default /etc/fstab file you will find on many servers should look something like:

/dev/sda8 / ext3 errors=remount-ro 0 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda1 /home ext3 defaults 0 0

Notice the line:
/dev/sda1 /home ext3 defaults 0 0

The first column in the example contains the device name, the second one its mount point, third its filesystem type, fourth the mount options, fifth (a number) dump options, and sixth (another number) filesystem check options. Let’s take a closer look at this stuff.

The ones which are interesting to enable auto fsck checking and error resolving is provided usually by the last sixth variable (filesystem check option) which in the above example equals 0 .

When the filesystem check option equals 0 this means the auto fsck and repair for the respective filesystem is disabled.
Some time in the past the dump backup option (5th option in the example) was also used but as far as I can understand today it’s not that important in modern GNU/Linux distributions.

Now having the above sample crontab in order to enable the fsck file checking on Linux boot for /dev/sda1 , we will need to modify the above line’s filesystem check option be 2, e.g. the line would afterwards look like:

/dev/sda1 /home ext3 defaults 0 2

Setting the 2 as an option for filesystem check is necessery for every filesystem which is not mounted as a root filesystem /

In above example /etc/fstab you already see that auto filesystem fsck is enabled for root partition:

/dev/sda8 / ext3 errors=remount-ro 0 1
(notice the 1 in the end of the line)

Finally a modified version of the default sample /etc/fstab which will check the extra /dev/sda1 /home partition would look like so:

/dev/sda8 / ext3 errors=remount-ro 0 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda1 /home ext3 defaults 0 2

Making sure all Linux server partitions has the auto filesystem check option enabled is something absoultely necessery!
Enabling the auto fsck on servers always makes me sleep calmer 😉
Hope it helps your too. 🙂

Reboot Safely a frozen (hanged up) Linux Server with Magic SysRQ Key combination

Monday, June 20th, 2011

Linux Magic SysRQ Key picture

Being a remote system administrator for many years from now, I’ve experienced many times sudden Linux crashes, mostly caused by system hardware overloads.

This is a common thing especially on busy Web Servers with (Apache/MySQL). Situations like this are really messy and many times in order to bringt the server back online, one has to either physically go to the Data Center or contact the Technical support to request a server reboot.

In this terrible times, data loss might occur if the Server reset button is used to cold reboot it.

Happily in 99% of the cases the data loss which might occur could be prevented with Linux’s kernel capability to support the Magic SysRQ key !

Having the Magic SysRQ key functionality being supported in Linux in past times wasn’t that common, thanksfully these days this has changed andlmost every Linux distrubution supports this handy feature.

Now you might wonder what is the magic with those Magic SysRQ key ?

Let me explain, Magic SysRQ is a kernel level functionality which supports even completely crashed Linux systems with the horrifying:

Kernel Panic
message to be properly shutdown.

Using Magic SysRQ instead of the mostly used indiced cold reboots is really advantageous, as all the opened files by programs on the crashed server which hanged will be properly saved and closed and thus possible data loss caused by the sudden server crash will be minimized.

One other good thing about the Magic SysRQ Key keyboard combination is that initiating the Magic SysRQ could be made blindly (no need for server monitor or display to present any error messages on the failed server).

Now to check if the magic sysrq is enabled on a server one should issue the command:

Here are some Magic SysRQ keyboard combinations one can use in case of server failure:

ALT+SYSRQ+M to dump memory info;
ALT+SYSRQ+P to dump processes states;
ALT+SYSRQ+S to sync disks;
ALT+SYSRQ+U to unmount all mounted filesystems;
ALT+SYSRQ+E to terminate processes;
ALT+SYSRQ+I to kill all processes
ALT+SYSRQ+U to try to unmount once again;
ALT+SYSRQ+B to reboot.

I would skip to explain what each of the keyboard combinations will do as I believe the above description explains it well.

One classics of combinations one might want to issue on a failed Linux server supporting the Magic SysRQ would be:

ALT+SYSRQ+R
ALT+SYSRQ+E
ALT+SYSRQ+I
ALT+SYSRQ+S
ALT+SYSRQ+U
ALT+SYSRQ+B

The ALT+SYSRQ+REISUB key combination is very popular among system administrators.
Also Magic SysRQ is heavily used by kernel developers as it includes many handy debugging options.

If you try the Magic SysRQ key on older servers and you realize it doesn’t react you will have to recompile the linux kernel and enable the CONFIG_MAGIC_SYSRQ kernel time compilation option.

The Magic SysRQ can also be initiated remotely on a properly running server 😉 by initiating:

server:~# echo b > /proc/sysrq-trigger

This command would be useful if you want to just have fun and test that magic sysrq works on your system for sure 😉

To sum it up using the Magic SysRQ will guarantee your locked up, server a Safe Reboot and will hopefully save you a lot of time for backups recovery.

st. Georgi’s day in Pomorie Monastery st. great Martyr Georgi pilgrimage of the relics of saint great martyr George

Saturday, May 7th, 2011

the relics of saint great martyr GeorgePomorie Monastery st. (George) Georgi miraculous craeting icon of saint George

Currently I’m once again in Pomorie’s monastery for the Saint George’s day

It is the second year I take the time to come for a pilgrimage in Pomorie’s Monastery st. great Martyr George (Georgi).<</b>

I’m named after the great Christian saint (It’s my Name day today :)!) and I do wanted to receive a spiritual blessing here in the monastery.

The believing Orthodox Christians this year could receive a spiritual blessing this year from the Monastery as some of the Holy Relics of many great saints are temporary in the monastery for the Monastery’s feast day which is the day we commemorate our great Orthodox Christian martyr saint Georgi.

It’s unique that this year by God’s grace the monastery has temporary received a small particle of the holy relics of st. George.
The pilgrims could come here and does venerate the great saint martyrs for which I thank God for being allowed by his providence to be here in the monastery and venerate the holy relics.

Here are few photos of the Holy relics from the monastery, on the pictures you see the holy relics of Saint Cyprian & St. Justina on the right, st. George’s holy relics in the center and st. Macrina’s holy relics on the left.
Saint Georgi (George) holy relics in Pomorie Monastery Bulgaria

Abbot of Pomorie Monastery Father Ierotei and holy relics of st. Macrina

On the picture above you see the Abbot of Pomorie monastery Father Ierotei (who is a truly great father and a wonderful spirited man !) with the holy relics (bones) of saint Macrina on his left.

On this last picture you can see the holy relics of the Pomorie’s monastery embedded into icons (the two icons on the right).

Pomoriiski Manastir Holy relics

I thank God for blessing me with being here in this holy cloister and blessing me with being able to venerate the holy martyrs relics and through this bless me and strengthen me.!

It’s important to say that we the orthodox Christians had the tradition to venerate our saint holy remains as a way to venerate God himself in accordance to the holy bible psalm which says Great and Glorious is God in his saints!

I’m sorry to provide my readers with this bad quality pictures, I’ll try to put some better quality pictures of the holy remains in very short time.
Being able to show this holy remains to other orthodox christian brother and sisters is also a great grace and blessing which by God’s grace was given to us the sinners! Just to close I’ll say glory be to our God – The Holy Trinity now and forever and ever amen!

Palm Sunday day feast in Bulgareevo (Bylgareevo) – A Pilgrimage Journey to venerate a particle of the life giving cross

Sunday, April 17th, 2011

palm sunday cvetnica orthodox icon

I’m just coming back from the Bulgareevo (a small village cituated nearby Kavarna).
Bylgareevo is a middle size bulgarian village situated near the sea and is not famous with anything significant.
The village has two Orthodox Church temples and a serving Priest (an Archimandrite, father Metodii).
Father Metodii is one of this priests that is a person to remember as he is a truly devoted to Christ monk. Since about two years of time he has reconstructed his local village house and the yard nearby the house into something which hopefully in the short future will become a fully monk inhabited spiritual fortress (A Monastery).
Father Metodii lives and believes part of his service to God constitutes in rising this small monastery and gathering together Bulgarian believers in order to further rise up the Bulgarian faith in Christ and to become a center for spiritual pilgrimage.

The monastery already has a monastery bell, a monks cells and the small chapel (parakles/paraklis) prepared to be as a place for monks pilgrimage.

Father Metodii’s efforts to make the monastery an attractive place for future candidate novice Monks and Monks are truly genuine!
All he has done by so far is a good example for all us the Christians to follow. Most of the expenses related to the Monastery building are being paid by the Father himself as he has donated all his possession to the Church.
As part of this efforts to rise up the place as a place for spiritual pilgrimage by God grace Bylgareevo’s monastery has been granted the honour to contain a particle of the Holy Live giving Cross Tree on which our Lord Jesus Christ has been crucified.. By God’s mercy the Patriarch of Jerusalem and the local national museum has donated two particles of the Holy Cross on which our Lord Jesus Christ was Crucified and suffered for our sins.

Now the holy crucifixion cross remains particles are being kept in the Monastery’s small chapel for pilgrimage. Thus the opportunity for a pilgrimage journey to Bylgareevo on this day of great spiritual joy Palm Sunday was a huge blessing for me and the few more brothers and sisters with whom we traveled to Bulgareevo
Below I present you with a picture on which you can see Father Metodii (Methodius) holding in hands the small particle of the Crist’s Crucifixion cross tree (embedded in the center of the wood cross on the picture).Father Methodius holding a cross containing a particle of the cross on which the Lord Jesus's Christ was crucified

The name of the village Bulgareevo is also really interesting as it’s a direct direvative from the word Bylgariq (which translates as Bulgaria).
Along with the two particles of the Holy life giving Cross where the saviour Jesus Christ was crucified, father Metodii has collected some great saint relics, just to name a few of the relics which are in the newly built monastery in Bulgareevo; holy relics of saint Panteleimon, holy Relics of Saint John of Rila etc.

Now going back to Palm Sunday‘s feast essense, Palm Sunday is among the 12 Church feasts in the Orthodox Churches, we use to call (The Lord’s feasts [Gospodski Praznici]), and thus is one of the 12 feasts which are most spiritually richful for Bulgaria as an Orthodox Nation and for all other national Orthodox Churches around the world.

Palm Sunday is always celebrated on the Last Sunday before the beginning of “the passionate week”, the week in which we who believe in Christ’s name remember the great trials and suffering our Lord and Saviour Jesus Christ has carried for the salvation of all Christians.

Palm Sunday is the feast in which we as we read in the Gospel readings in the Church, commemorate Christ’s entrance in Jerusalem on a small donkey.
Here is a small chunk of the Gospel reading for the day:

They took palm branches and went out to meet him, shouting, "Hosanna!" "Blessed is he who comes in the name of the Lord!" "Blessed is the King of Israel!"

In this scripture text as we read above the people were glorifying God and Christ as the son of the God in accordance to the Old testament scriptures in which it was prophecised that the Saviour of Mankind (The Messiah) would walk in through the entrance doors of Jerusalem riding a donkey.
People who were present observing the Lord’s entrance were witnessing the fulfilment of the old testament psalms prophecies by glorifying the Lord.

This were the same people which just a week later were screaming “crucify” him …

On Palm Sunday it is a Church tradition in the Bulgarian Orthodox Church that willow branches are being blessed by the priest and then distributed among layman as a blessing and a remembrance of the Palms which were layed upon the Lord’s entrance in Jerusalem.

Later on we took the willow branches in our homes and place it in our home icon-stands (the place with the icons we use for a prayer to God).

The use of willow branches in our Church has been established through the years as a Palm Trees substitute as the Palm tree does not grow in the Bulgarian lands

In Bulgaria Palm Sunday is known as Tsvetnitsa. People with flower-related names, (for example Tzviatko, Margarita, Lilia, Violeta, Yavor, Zdravko, Zjumbjul, Nevena, Temenuzhka, etc.) has a name day on that date.
It’s a pity that many bulgarian people who are baptized in our Bulgarian Orthodox Church, fails to understand the symbolic meaning of the willow branches and doesn’t really understand the essence of the Church feast but just go to Church to light up a candle “to have a good fortune and health”., usually mostly missing the spiritual importance for us the Christians of this feast.. but I hope things would get better with time and more Bulgarians who lost their roots during communism will come back to their ancient faith the Orthodoxy.

I recommend to all Orthodox Christian believers from Bulgaria, Romania and Russia who has the oportunity to visit Bulgaria as a tourist destination or on any other occasion to visit Bylgareevo and do a pilgrimage journey to Bylgareevo newly constructed monastery containing the holy relicts.

You will receive the great spiritual blessing of venerating the particle of the cross on which our Lord Jesus Christ’s most holy body was hanging on!
The cross on which the redemption of mankind was achieved by God’s son 2010 years ago!
The cross on which we have received a forgiveness of our sins!
I thank the Lord for having this good blessed day and I pray that we all who believe in his name come to the understanding to know his as he knows us!