Archive for October, 2012

Why do Orthodox Christians Baptize the Kids as babys / Why we Orthodox Christian practice Infancy Baptism

Thursday, October 25th, 2012

Why do Orthodox Christians Baptize the Kids and Babies / Information About proestants why orthodox Christians baptize their children
Why we practice a childrean baptizm inside the Orthodox Church?

Practicing baptizm on new born babies has been a criticism that many Protestant Churches has on us Orthodox Christians. The protestant arguments point at our Holy Orthodox Church claiming this is wrong, hence I decided to write this little article to explain to protestant as much as I can why their understanding that we should not baptize babies is wrong.

As I’m “conscious” Orthodox Christian since about 8 years, this question was making me wonder and making me distrust the Truthfullness of the Orthodox Christain faith back then.

So why we Orthodox Christian Baptize, if the children is still so young so it can’t understand the faith?
Where this new born babies practice come from? and why we still hold it in the Church?
It is due to one and only main reason;
Nobody knows how long he will live! – (maybe the new born will die in birth (God Forbid), maybe a sudden death will strike (God Forbid)!; Plus moreover in early days of the Church, it was a common thing that new born babies die in infancy or in a very young age in less than a year time. Thus seeing this in one spirit in leaded by the Holy Spirit in earlier times the One Holy Apostolic Church / Orthodox Church holy hiearachs lead by the Holy Spirit itself, decided together that baptism is practice on new borns. Back in those days Christian people’s Faith and Hope in God was huge, so it was usual that Christians baptized their kids in order for their kid to receive a higher blessing in very young times of the kid (few months, 40 days) or in the early days of childhood. The children baptizm was practiced with one and only reason to assure salvation of the kid (if it suddenly pass away) and grant him the Grace of the Holy Spirit (received after Christian Baptism) from its baby years. The historical facts on why we baptize kids is broader so anyone deeply interested in his faith and non-Orthodox or even Orthodox Christian might like to check it.

The earliest historical evidence of infancy baptism from histroy dates back to early II-nd century.
We read about it in the Apostolic Tradition of Hippolytus about year 215 A.D.. Little chunk extracted from the text is:

“Baptize first the children, and if they can speak for themselves let them do so. Otherwise, let their parents or other relatives speak for them.” (Hippolytus, Apostolic Tradition 21:15, c. 215 A.D.)

It might be shocking for Protestant Christians to find out that even their faith finding collosus (founding fathers) – Martin Luther and John Calvin believed and found baby baptism as something normal and necessery.

Of the baptism of children we hold that children ought to be baptized. For they belong to the promised redemption made through Christ, and the Church should administer it to them. (Martin Luther, The Smalcald Articles, Article V: Of Baptism, 1537)

“If, by baptism, Christ intends to attest the ablution by which he cleanses his Church, it would seem not equitable to deny this attestation to infants, who are justly deemed part of the Church, seeing they are called heirs of the heavenly kingdom.” (John Calvin, Institutes of the Christian Religion, 1559)

For us Orthodox Christians is understand as a sacrament – A Mystery (unexplainable and incomprehensible by human mind and knowled). We firmly believe in Christian Baptism, the priest communicates to us the Grace of the Lord over the baptised and it doesn’t matter if it is over fully grown adult person or a a baby which can’t dogmatically understand the truths of our faith.
Actually we perceive the kids Baptism as a way to enter and become part of the New Covenent given to us and established by the Blood of our Lord Jesus Christ spilled on the Cross for our Sins!

We also believe the Old Testamental circumcision practiced by Jewish (even to this day) used to be one other Old Testamental Prophecy about the Water Holy Baptism nowdays practiced in the Church. By Baptising in our Holy Orthodox Church, our hearts are mystically circumcised by the Grace of the Holy Spirit which descends over us and cleanse us from sin and all evil. Making our bodies a dwelling of God.

Baptism is the first thing which opens our doors to the 7 mysticisms of the Church and marks the beginning of our Christian life in Christ.
The link between Circumcision and Baptism is also mentioned by in Colossians 2:11-12 by St. Apostle Paul:

In [Christ] you were also circumcised, in the putting off of the sinful nature, not with a circumcision done by the hands of men but with the circumcision done by Christ, having been buried with him in baptism and raised with him through your faith in the power of God, who raised him from the dead. (Colossians 2:11-12)

As Protestant Christians like to quote the Bible and take as a trustful source of information and criteria about truthful Christianity, it is useful to mention following Bible Verses, which also are reference for the Early Age / Baby Baptism:

“… she [Lydia] and the members of her household were baptized…”
(Acts 16:15)

“… immediately he [the jailer] and all his family were baptized.”
(Acts 16:33)

“… I [the apostle Paul] also baptized the household of Stephanas…”
(I Corinthians 1:16)

Peter replied, “Repent and be baptized, every one of you, in the name of Jesus Christ for the forgiveness of your sins. And you will receive the gift of the Holy Spirit. The promise is for you and your children…” (Acts 2:38-39)

According to Orthodox Christian Traditioan Lydia, The Jailer and Stephanus had children and some of them had even kids in an infancy (baby) age.

It is also useful to mention what was the Lord and Saviour Jesus himself said concerning the kids, as this will make even more clearer what the Lord himself says for childrean and in my believe it answers should babys be baptised in this young unconscious age or not?

Then little children were brought to Jesus for him to place his hands on them and pray for them. But the disciples rebuked those who brought them. Jesus said, “Let the little children come to me, and do not hinder them, for the kingdom of heaven belongs to such as these.”

(Matthew 19:13-14)

I hope my little article will help someone to have a very, very basic clue on why we orthodox baptize our children in a very young age

It is useful to mention that my article is not intended to shed light on specifics on Orthodox Baptism as Holy Baptism includes another mystics which is oilment – A mysticism rejected by Protestant Christians and Roman Catholics. It just aims to give a very basic and simplistic (incomplete answer), I’m not a theologist myself and I’m not a Priest so specifics on Baptism should be always consulted with a Priest or a member of the Priestly spiritual Hierarchy in our Orthodox Church.
I hope this post will be also useful for seeking Christian people with AnaBaptist understanding for Baptism. For those who doesn’t know the AnaBaptists used to be a movement part of Protestant later days reformation who rejected baby baptism and began re-baptizing each other, thinking the baptism as kid was invalid.
Nowdays it is a pity even in Orthodox Christian Countries as Bulgaria, plenty of people who belive in the Lord Jesus Christ reject their infancy baptism (if had so) and think of re-baptizing themselves (even often in heretical protestant or Methodist Churches) – I myself know and heard of cases like this. However lets hope and pray that all this lost sheeps will realize the mistake they did and come back to the one and Holy Apostolic Church – the Holy Orthodox Church.

I myself was baptized and am Orthodox Christian in my 8th months after birth. But Though Glory be to God I was baptized as a kid, I was not exactly in details explained the Orthodox Christian faith in my young years (not having opportunity to learn in detail true Christian faith) due to the severe deliberate attempts of Communists to destroy our Bulgarian Church and faith in God

But obviously my baptism thanks to God has in my later years given its fruit as I little by little started researching Orthodox faith and by God’s Holy Spirit grace in the “set time” I was blessed with the gift of faith and little by little I started understanding the Church teachings and by the Mysticism of confession and taking Jesus’s blood and Flesh in sacraments re-united with our Lord Jesus Christ.

How to mount Windows share from command line (cmd.exe) on Microsoft Windows XP / Vista / 7

Wednesday, October 24th, 2012

MS Windows net command mount map attach command how to windows xp 7 and vista, mount share name with net cmd
I’m rarely using computer from a Windows host, but sometimes I need to as well. I’m not a big fan of M$ Windows, Microsoft and their products. Though to be truthful lately their OS has improved significantly. BTW from purely “it works” perspective Windows 7 is quite succesfully made OS. Windows 7 is hard to infect with Viruses, looks to me it works much more stable compared to XP and so on. Well anyways back to my topic. I write this post just to shortly show how one can mount a share in Windows Command Line (cmd.exe)

In all Windows NT based Windows OSes (except maybe some Home releases), the way to attach / mount a Windows Network Share (Samba share / SMB share – as we Linux users call it) is done with command:

  • net

The net command has many options, but most important ones in most cases are:

net view – Using to list a share content
and
net


C:\> net view \\NetworkShare.Domain-name.com\ /All
Shared resources at \\NetworkShare.Domain-name.com\
Share name Type Used as Comment
---------------------------------------------------
ADMIN$ Disk Remote Admin
C$ Disk Default share
IPC$ IPC Remote IPC
NETLOGON Disk Logon server share
SYSVOL Disk Logon server share
The command completed successfully.

As you see in above output, net view \\IP_ADDRESS\ /All or net view \\Whateveer-Host-Name.com\ lists every Shared folder on a host.
Once you have the list choose of possible mount points, you can easily map / mount share by opening Windows command line, cmd.exe (Quickest way I know of is press simultaneously Windows button + R (key) and typing in command prompt:


C:\> net use h: \\NetworkShare.Domain-name.com\Share-Name\
Shared resources at \\NetworkShare.Domain-name.com\

BTW sometimes administrators forget to set password to Administrator account, it is generally good rule of thumb if you’re in position to check your Windows Sharing server security by trying intruding with adminsitrator user:


C:\> net user administrator admin
....

Hopefully if you set a password for your Administrator you will get:


C:\> net user adminsitrator admin
System error 5 has occcured.
Access is denied.

If you need to login to a ShareName from command line on Winblows with certain username use:


net use d:\ \\server-share-name\share /USER:UserName

Just change Username with whatever username you need …

If the “Domain name” is created so it contains few words without a space you will need to Connect the Windows Share putting windomain name in “” :


C:\> net use k: "\\share name with spaces name"\Users

.....

Removing mapped Share is done with:


C:\> net use f: \\share-name\public /delete
....

Another useful net variation is to once for all map a Share, just like you have option from Windows Control Panel -> Network and Sharing Center


c:\> net use k: "\\whatever share name"\Users
C:\> net use /persistent:yes

Then whilst restart-ing Windows PC on next boot K:\ Drive will be mapped to “whatever share name”\Users

net command is among the swiss army knife tools of Windows crackers, hence I think any person interested in Windows Security or supposed to write .VBS logon scripts for Windows DomainController should check it (if not already) 🙂

net supports also to send a password directly from command line (very bad idea from security perspective):


C:> net use * \\remotepc\share /u:domainname\username password

The meaning of * character above is to map the network drive in the last free one drive letter on the system. Lets say that last Drive Letter mounted on the Win host is W:/, then net use * will automatically assign the new drive a letter corresponding to consequential letter Z:\

Here is complete syntax as pointed from Microsoft resources net cmd documentation:

Syntax
net use [{DeviceName | *}] [\\ComputerName\ShareName[\volume]] [{Password | *}]] [/user:[DomainName\]UserName] [/user:[DottedDomainName\]UserName] [/user: [UserName@DottedDomainName] [/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]

net use [DeviceName [/home[{Password | *}] [/delete:{yes | no}]]

net use [/persistent:{yes | no}]

net command is one of the most important commands for the Windows SysAdmin. It gives one access to add / delete / modify existing users and many, many more. If you want to learn a bit more on Windows Command Line or interested in Windows Scripting, I suggest you check out net docs thouroughfully
That’s all hope this post helps someone.

Why saint Apostle (James) Jacobs is called flesh brother to the Lord Jesus Christ / 23 October st. Jacobs feast in Bulgarian Orthodox Church

Tuesday, October 23rd, 2012


1st ArchiBishop (Patriach) of Jerusalem, First Patriach of Jerusalem Orthodox Church, Saint Apostle James - The Lord's brother by flesh

Today in Bulgarian Orthodox Church. We celebrate the feast of Saint Apostle Jacobs (brother by flesh) as being known from Holy Gospels. I have many protestant friends and I know they literally understand the said about Saint Apostle Jacobs (James as usually used in English) and fall in the trap to think St. Ap. Jacobs was born by the Holy Theotokos (Virgin Mary). This is a very wrong understanding, which I myself have pondered in the early days when I believed in Christ.

What it is meant by “brother in Flesh” is therefore an ambigious milestone for all Protestants, who reject our Orthodox Christian belief that the Mother of God (The Holy Theotokos) gave birth to the Incarnated Logos (The only begotten Son of God Lord Jesus Christ without loosing her virginity !)
This is a great miracle of God and the more one thinks over it the more he gets astounished on the greatness of the Lord and the righteousness of the Orthodox Christian faith!

The actual reason why the Gospel talks about the Lord having saint Jacob as a brother in flesh is due to fact he was Joseph’s Son (a good note to make here is Joseph was actually a man in his old age already even physically incapable to have kids – again something protestant christian and the protestant tens of thousands of denominations often did not know or if heard reject it fully).

Joseph was instructed by God to take Mariam as wife for the only reason to not allow the most Holy Theotokos (Virgin mary – which we consider higher in veneration and Spiritual Rank than Angels) from being accused by Jewish. It was very uncommon for ladies to bring forth kids without being married for that time, probably thousand of times more shameful than now. Jewish considered killing by stoning ladies which give birth to kids born by ladies without husband.

It was God’s salvationary plan for us Humans to bore Christ from a Virgin and this is why The Holy Theotokos conceived without being married by the Holy Spirit, the Old Testament prophecies states this will happen among with multiple other fully fulfilled prophecies by Christ – (Check old testament Messianic prophecies fulfilled by Christ (Prophecies for Christ) here ) or here .

With this said we firmly believe in Orthodox Church, The Good Lord give Joseph the order to marry her in order to “save” her from shameful unrighteous jewish accusations..
Joseph himself obeying to God’s instructions to live with Mariam (The Holy Theotokos) was a widowed a man with Sons born by a Holy woman. One of Joseph sons was Saint Apostle James who martyred for Christ in 63 A.D.

The Mother of God (Holy Thetokos) and Joseph were man and Husband officially during, all their earthly living, however they never lived together as man in life and never had sleep together (in a sense of man and wife) but lived in holiness and prayer during their whole living.


The Holy Family Greek Orthodox Christian Icon - The Holy Theotokos with Joseph and the Lord Saviour Jesus Christ

The Holy Family – Greek Orthodox icon

Therefore it is incorrect and sinful thinking to Think Virgin Mary gave birth to others except the Messiah (Christ) Lord Jesus.

Because saint James lived his life as official part of the Holy Family, later in Gospels he was called the brother in Flesh along with his other brothers / other sons of Joseph. Due to God’s desire st. Apostle Jacob was later also choosen in assembly of Holy Apostles, which gathered together and choose st. Jacob to be the first Patriarch of the Jerusalem Church.

St. James Orthodox icon window to heaven Anna Edelman

An Orthodox Church patriarchy which exists even to this day kept by the Grace of the Holy Spirit.

In moment the Good Lord Jesus Christ revealed himself to me and blessed me with the gift of Faith about 8 years ago, I didn’t believed in him reading Orthodox Christian Literature, Holy Apostles writings, the Living of the Saints, or not even had a clear idea that there is difference between Christians). How I believed was, I read the Holy Bible and the Holy Gospels of pure interest. Actually I was in a severe desperation not finding a meaning in life and cause of that researched different major faiths around the world (I put here this details because I think maybe there are others around in same or similar situation and my testimony might strengthen their faith in Christ and his one Holy Apostolic Church – The Orthodox Church). In my quest for truth, I decided to read the Holy Bible with a mindset that Probably it contains some Good Wisdom not believing back in that time it is 100% true). My reasoning to read holy Bible was due to fact Holy Bible is today one of the oldest circulating easy accessible books.

Now having a bit of personal story, I can continue with why Saint Apostle James is called flesh brother to the Lord Jesus Christ; I hope my personal shortly writen story on how I ended up believing in truthfulness of Orthodox Church will be useful for Protestant Christians seeking true faith and will help them find the true faith Christ has given us in the realm of our One Holy Apostolic Church nowdays known as the Orthodox Church

In Holy Gospels it is said Saint Apostle James is brother in flesh to the the Lord Jesus Christ. Earlier when I started being in deep interested to Christian faith and found Orthodox Christian faith is the only true faith in Christ currently present, in small steps I started realizing the teachings of Orthodox Church and Orthodox Saints are the only 100% trustable sources of interpretation which correctly explain the Holy Bible, Gospels and thereon inside the Orthodox Church it is only place where true Christian can find true spirituality and more in depth information on the living of the Lord Jesus Christ; his death on the Cross for our Salvation, His Glorious Resurrection triumphing over deapth, living of the saints, the desert fathers livings and the innumerous number of events and miracles which happened before the incarnation of our Lord Jesus Christ, after his Resurrection (from the Death) and all events related to Christianity and Church for passed 2000 years of Church existence.

According to our Church tradition Saint Apostle Jacob believed in his “brother in flesh” to be the Christ after listening to his words of life after the Lord Jesus’s first public preach.

After The Lord’s Resurrection, as st. Apostle Paul mentions the Lord show himself with his resurrected victorious body over death in front of 500 people and st. Apostle Jacob as well.

The Church tradition continues that saint Apostle Jacobs lived and spend all his life before his martyrdom in Jerusalem along with the rest of The Lord Jesus desciples, working for building, strengthening and extending the Church and faith in the Resurrected Savior.

Because of his great holiness he was well known in Jerusalem during his living by both the Church members and the rest of Jews. Publicly they address him as “Jacobs (James – The Just”.

Because of different translation in different languages there is some unambiguality between the old times (Old Testament) Patriach saint Jacobs and some of the new testamential saints also called Jacobs, hence in English st. Jacobs is often called James.


Saint Apostle Jacob the Just the first Hierarch of Jerusalem Antiochian Church orthodox icon


It was also st. Apostle Jacob who first has give the final decision concerning the big “argueing” division between people who claimed circumcision is necessery for salvation and the Church members who said that it is not. The Jewish people claimed it is necessery for everyone to be well educated in old testamential law and follow the circumcision and all jewish laws and tradition in order to obtain salvation. In Jerusalem on the assembly st. Barnaba and st. Paul along with st. Jacob and all the Church hierarchs decided led by the Holy Spirit in truth that gentiles will not be required to circumcise and follow all jewish traditions. They decided together that every Church member receives his salvation by the Grace through faith in the Lord Jesus Christ.
The Apostle assembly (council) occured in year 51 A.D. This assembly was an example on how huge Church discussions should be decided for future and set the building stone of the next Church Ecummenical Councils in which major decisions concerning our faith was taken.
The Jewish people who was in hatred for Jesus (rejecting him as Christ = Messiah (being the Messiah the Saviour of Israel) and the only one begotten Son of God) killed Holy Apostle Jacob by , first threw him from the summit of the Temple in Jerusalem and (being unable to kill him by throwing him down), then killed him with stones (stoned him). According to Eusibeus who retold what Hegesippus (earlier source history writer writen), the jewish broke the Holy Apostle skull with a fuller’s club trying to completely destroy his holy relics. But obviously as Psalm reads, they couldn’t – As “The memory of the righteous continues live on forver”. –

Psalm 112:6 Surely he will never be shaken; a righteous man will be remembered forever.

While I never before in depth read about Saint Apostle James – (often called THE JUST) for his holy living, whilst reading in in OrthodoxWiki about him, I found also the Church Hymns as translated in English. It is strikingly beautiful to hear and pray with them in this times of decaying less and less faith. Also I was amazed to read about such unachiavable in our generation righteousness in which St. Ap. James lived in; His glorious martyrdom is also one of the most striking ones I ever red ….

The Holy Apostle gave up the spirit after a short prayer, before the Jewish stoned him. He was aged 66 when he received his martyrdom for Christ.

St. James the Just – Troparion – (Tone 4)

As the Lord’s disciple you received the Gospel, O righteous James;
As a martyr you have unfailing courage;
As God’s brother, you have boldness;
As a hierarch, you have the power to intercede.
Pray to Christ God that our souls may be saved.

saint Apostle Jacob The Just and saint Dinisius from Areopagita / Teophan Kritski, Church Wall painting in Greece
Church Wall Painting painted by st. Teophanus from Crit and Smeon (year 1546) Church Saint Nikolas (Monastery StavroNikita Holy Mount Athos)

Kontakion in veneration of Saint James the first Patriach of Jerusalem – (Tone 4)

When God the Word, the Only-begotten of the Father,
Came to live among us in these last days,
He declared you, venerable James, to be the first shepherd and teacher of Jerusalem
And a faithful steward of the spiritual Mysteries. Therefore, we all honor you, O Apostle.

It is interesting fact actually the most ancient Holy Liturgy, text ever written is writen by Saint Apostle James (The Brother of God) himself. This year Praise be to God, a Jacobine Holy Liturgy, will be served in Vidin with blessing of Vidin’s Metropolitan – I read this news in Dveri.BG , an information site discussing Bulgarian Church and related news. Saint Jacob’s Holy Liturgy is served only once per year on his Church feast day. If My memory is not mistaken saint Jacob’s Holy Liturgy is served also on Our Lord Jesus’s Resurrection Day every (Easter), right before the Holy Fire descends from Heaven and lights up the candle of Jerusalem Patriarch

Let by the Holy Prayers of st. Apostle Jacobs (a brother in flesh to the Lord), God have merce on me the sinner and all Christians.

Common commands to Repair Broken or Unbootable Windows XP / Vista / 7 without system Re-install

Monday, October 22nd, 2012

Common commands to repair broken unbootable Windows XP 7 and Vista, the famous genuine great! mfc command :)
If you have severe problems with Windows 7 / Vista / XP whatever and you don’t want to re-install. It is handy to know about the existence of few commands, which can help you fix your basis Windows system without re-install. This commands are not to fix 100% of messed up Windows installs but in most cases I know, they either improved the state of the system or fixed it completely, so here are commands:

1. Change permissions of C:\boot.ini and delete it

Many Viruses install via standard Windows boot.ini file and change permissions of the file to make it hard to delete by programs and by
Administrator user. To solve that in Windows Safe Mode (without networking) exec:


C:\> COPY boot.ini boot.bak
C:\> ATTRIB -RSH C:\boot.ini
C:\> DEL boot.ini

-RSH ATTRIB cmd options instruct it to remove Read Only, System and Hidden flags from boot.ini.

2. Re-build boot.ini and other essential Win boot components


C:\> CD WINDOWS
C:\WINDOWS> BOOTCFG /REBUILD

BOOTCFG /Rebuild is a very important for recovering. The command will do complete evaluation with diagnostic tests trying to replace / repair whatever files are preventing OS boot.

3. Fix problems with Unbootable Windows Systems

If the system is completely unbootable you need to use the Windows Install (Setup) CDRecovery Console and in first boot up (blue screen), type R key to enter recovery console. There is option of automated recovery console but for me Automated System Recovery – ASR, never worked.
Once in Recovery Console to repair broken Windows boot up (fix winboot loader):


C:\WINDOWS> BOOTCFG /Rebuild
C:\WINDOWS> CHKDSK /R /F
C:\WINDOWS> FIXBOOT

You should already know from the MS-DOS, DR-DOS times CHKDSK (Check Disk) is thanksfully still on every next Windows release. As CHKDSK does a hard drive check for irregularities and BAD Blocks (depending on the size of HDD) it takes time usually from 30 minutes to 1 hour.
4. System File Checker (SFC) command – restore basis .DLLs and others to Setup CD (install) originals


C:\WINDOWS> SFC /SCANNOW

SFC – has been useful in many, many Windows installs, I fixed it is really precious cmd. It does check the system essential (DLL – Dynamic Loadable Libraries) and matches them against a clean working copy which was copied on the system by Windows Install (CD) SETUP program. If some of the primary win .EXE or .DLL files checksums are not matching, the file is substituted with a clean (working) copy of the Install CD original ones. Some Viruses and Spyware might change those original (clean) binary files placed by Windows during install time. So intelligent Virus progs are very rare so in lets say 90% of broken Windows installs SFC /SCANNOW solves problems with main win files 🙂

If you have doubt that those binaries which SFC matches with are changed, you can always use a Setup Install CD with same Service Pack version as installed on the host. To restore main Windows binaries and libs using the external recovery CD use:


C:\WINDOWS> sfc /offbootdir=c:\ /offwindir=c:\windows /scannow

This tutorial should solve also all kind of start-up errors like:


Windows could not start because the following file is missing or corrupt:
\\WINDOWS\\SYSTEM32\\CONFIG\\SYSTEM


You can attempt to repair this file by starting Windows Setup
using the original Setup CD-ROM.
Select ‘R’ at the first screen to start repair.

Windows NT could not start because the below file is missing or corrupt:
X:\\WINNT\\System32\\Ntoskrnl.exe


Windows NT could not start because the below file is missing or corrupt:
X:\\WINNT\\System32\\HAL.dll


NTLDR is Missing
Press any key to restart


Invalid boot.ini
Press any key to restart

GNU / Linux: Resuming failed / interrupted – scp, sftp, ftp)file or directory upload with rsync

Saturday, October 20th, 2012

Rsync SSH Logo Linux Continue failed upload logo

You probably wondered how and if it is possible to Continue / Resume interrupted SFTP / FTP, SCP commands file transfer ?

Continuing a failed Upload is something, very useful especially for people like me who use Linux over wireless and there are constant failures with Internet, or just have to move quickly from a Wireless location to another one while sftp user@host upload was in progress. SFTP protocol was not planned with a continues upload in mind, just like web HTTP proto (POST) file upload was not. Thus there is no direct way to continue file upload using some embedded SCP / FTP protocol feature.
This is really bad especially, if you’re uploading some enormous 10 Gigabytes files and upload interrupts on 95% percentage 😉

Thanksfully though default protos does not support continues downloads rsync does!

there is a possibility to continue SCP failed uploads!
Using rsync, you can continue uploading any failed upload nomatter the protocol supports resume or not 🙂

To continue an (interrupted) SCP, SFTP (SSH) or (FTP) proto transmission with rsync


# rsync --rsh='ssh' -av --progress --partial interrupted_file_name_to_be_uploaded.rar root@UPLOAD-HOST.COM:/root

If you need to resume failed upload to SSH server running on unusual port number use, let’s say SSH listening for connections on port 2202:


# rsync --rsh='ssh -p 2202' -av --progress --partial interrupted_file_name_to_be_uploaded.rar root@UPLOAD-HOST.COM:/root

For efficiency of upload for lage files it is also useful to use rsync’s file compression capabilities with -z switch:


# rsync --rsh='ssh -p 2202' -avz --progress --partial interrupted_file_name_to_be_uploaded.rar root@UPLOAD-HOST.COM:/root

Sometimes its necessery to resume a failed ( upload ) transfer of a directory with some sub directory structure to do so:


# rsync --rsh='ssh -p 22' -avztrlpog --progress --partial interrupted_file_name_to_be_uploaded.rar root@www.pc-freak.net:/root

Here is short explained each rsync switches you see above:


-e ssh rsync will use ssh client instead of rsh
-z compress file transfer
-t preserve time (other attributes as owner or permissions are also possible)
-l copy symlinks as symlinks
-r recursive into subdirectories
-p preserve permissions
-o preserve owner
-g preserve group
-v verbose

-tplog key switches are very useful as they will keep file creation and modification times, exact permissions, owner and group permissions and copy symlinks correctly.

Megaraid SAS software installation on CentOS Linux

Saturday, October 20th, 2012

With a standard el5 on a new Dell server, it may be necessary to install the Dell Raid driver, otherwise the OMSA always reports an error and hardware monitoring is therefore obsolete:

Previously, the megaraid_sys package was now called mptlinux

For this we need the following packages in advance:

# yum install gcc kernel-devel
Now the driver stuff:

# yum install dkms mptlinux
That should have built the new module, better test it:

# modinfo mptsas

# dkms status
After a kernel update it may be necessary to build the driver for the new version:

# dkms build -m mptlinux -v 4.00.38.02

# dkms install -m mptlinux -v 4.00.38.02

19 October – Saint John of Rila (The Greatest venerated Bulgarian saint) Dormition feast day

Friday, October 19th, 2012

Saint John of Rila The Greatest Veneration Bulgarian saint Hermit of all times feast day in Bulgarian Orthodox Church 19 of October

Today I’m joyed to note here in our Bulgarian Orthodox Church calendar we venerate the Greatest Bulgarian saint and maybe one of the greatest Hesychast (Hermits) of our timesSaint John of Rila

The spiritual ancestry of this great saint does enrich the Orthodox Churches around the world even to this very day. St. John of Rila is considered the forefather of Hermit Life in Bulgaria and officially heavenly protector of Bulgaria and our Bulgarian Orthodox Church

Great are the mercies over the years, we as Bulgarians received throgh the holy prayers of st. John.
The saint is called of Rila because he spend biggest part of his life in Rila Mountain “desert”, living a life of solitude and holiness. As his living states, he has numerous times been fighting the passions and been fighted by the devil and evil spirits, who tried to shutter his faith unsucessfully. With his vigilance and persistance in faith and his deep love for Christ, he achieved saintship.
Pupils of the saint has later established Rila Monastery – a monastery holding rich spirituality and being a spiritual fortress of Orthodox Christian faith. St. John is also considered a building stone (not to say creator) of Bulgarian lands monastic life. Here is the Troparion to the Saint:


Тропар на Св. Иван Рилски / St John of Rila’s antiphon

For his holy living our Lord Jesus Christ granted the Saint, great spiritual gifts including the gift of miracle making and healing.

The most famous story the meeting of Saint John with King Peter I is well known and documented in historical sources, Here is the story itself (Story is copied as translated from Bulgarian to English and located in wikipedia free encyclopedia:

Tsar Peter I (son of tsar Simeon I) took a 120 km. trip to the Rila Mountains in order to meet St. Ivan and seek spiritual advice. Their meeting is described in detail in one the hagiologies of St. Ivan Rilski as well as in the Testament of St. Ivan of Rila itself. After a long and exhausting trip, tsar Peter I reached the place where St. Ivan Rilski lived, however, upon arrival, the tsar then realized that the dwelling of the saint was inaccessible, probably due to the rough local terrain. As the medieval hagiologies point out, St. Ivan of Rila refused to meet the tsar in person to avoid the temptation of vanity and pride due to the extraordinary visit. As such, the two men only bowed to each other from a distance. The emperor sent a soldier to deliver the gifts that were brought for the saint. St Ivan of Rila kept only the a small portion of food and returned all of the gold and precious gifts, advising the tsar that monarchs need gold in order to protect the country and help the poor.

According to local Bulgarian Church Tradition, due to his saintship God granted the saint Dormition. Dormition is less used (word) term outside of Orthodox Christian faith, in short it means Jesus himself went down from Heaven with with Holy Theotokos and his Holy Angels to receive St. John of Rila’s saintly soul!

Those familiar with Orthodox Christian faith base, would know over the whole humanity history, there are few respected to receive Dormition. Most famous and greatest Dormition is of course, the Dormition of Holy Theotokos; According to our Church history in a similar way to Holy Theotokos Dormition, saint John received his Glorofication and Salvation on the day of his Dormition.

Shortly before his death (Aug 18, 946) St. Ivan of Rila wrote his Testament Zavet (the bulgarian word for testament). st. John’s Testament is a literary work and a a deeply spiritual Christian message instructing his successors how to adjoin to proper a high spiritual life. The testament is an instruction dedicated to teach the whole Bulgarian nation to stick firmly to faith in Christ and live a good life in Christ.

Disabling sound kernel modules on Debian and Ubuntu GNU / Linux servers

Friday, October 19th, 2012

First step is to list modules related to sound (snd):


root@pcfreak:/var/www# lsmod|grep -i snd
snd_hda_codec_realtek 235234 1
snd_hda_intel 20035 0
snd_hda_codec 53940 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 5220 1 snd_hda_codec
snd_pcm_oss 32415 0
snd_mixer_oss 12478 1 snd_pcm_oss
snd_pcm 60151 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_midi 4256 0
snd_rawmidi 15323 1 snd_seq_midi
snd_seq_midi_event 4628 1 snd_seq_midi
snd_seq 41281 2 snd_seq_midi,snd_seq_midi_event
snd_timer 15502 2 snd_pcm,snd_seq
snd_seq_device 4493 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 45998 11
snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 4566 1 snd
snd_page_alloc 6217 2 snd_hda_intel,snd_pcm

Then snd modules could be removed from current live system, for my Intel RealTek SoundBlaster, I had to remove following modules in (remove) order as follows:


root@pcfreak:/var/www# rmmod soundcore
ERROR: Module soundcore is in use by snd
root@pcfreak:/var/www# rmmod snd_hda_codec_realtec
ERROR: Module snd_hda_codec_realtec does not exist in /proc/modules
root@pcfreak:/var/www# rmmod snd_hda_intel
root@pcfreak:/var/www# rmmod snd_hda_codec
ERROR: Module snd_hda_codec is in use by snd_hda_codec_realtek
root@pcfreak:/var/www# rmmod snd_hda_codec_realtek
root@pcfreak:/var/www# rmmod snd_hda_codec
root@pcfreak:/var/www# rmmod snd_pcm_oss
root@pcfreak:/var/www# rmmod snd_seq_midi
root@pcfreak:/var/www# rmmod snd_rawmidi
root@pcfreak:/var/www# rmmod snd_seq_midi_event
root@pcfreak:/var/www# rmmod snd_seq
root@pcfreak:/var/www# rmmod snd_timer
ERROR: Module snd_timer is in use by snd_pcm
root@pcfreak:/var/www# rmmod snd_seq_device
root@pcfreak:/var/www# rmmod snd_pcm
root@pcfreak:/var/www# rmmod snd_seq_device
ERROR: Module snd_seq_device does not exist in /proc/modules
root@pcfreak:/var/www# rmmod snd_hda_intel
ERROR: Module snd_hda_intel does not exist in /proc/modules
rmmod snd_hwdep
root@pcfreak:/var/www# rmmod snd_mixer_oss
root@pcfreak:/var/www# rmmod snd_timer
root@pcfreak:/var/www# rmmod snd
root@pcfreak:/var/www# rmmod soundcore
root@pcfreak:/var/www#

Next step is to permanently disable all (blacklist) on system boot time loaded kernel modules, to do so in file /etc/modprobe.d/snd-bkaclist.conf, put:


blacklist soundcore
blacklist snd
blacklist snd_pcm
blacklist snd_pcsp
blacklist pcspkr

You can do it from shell ‘echo’-ing into file, like so:

# touch /etc/modprobe.d/snd-blacklist.conf
# cd /etc/modprobe.d/
# echo ‘blacklist soundcore’ >> snd-blacklist.conf
# echo ‘blacklist snd’ >> snd-blacklist.conf
# echo ‘blacklist snd_pcm’ >> snd-blacklist.conf
# echo ‘blacklist snd_pcsp’ >> snd-blacklist.conf
# echo ‘blacklist pcspkr’ >> snd-blacklist.conf

Another way is to use a tiny shellscript containing all previously shown rmmod commands and set the script to be executed via /etc/rc.local by adding the rmmod modules script, before exit 0 rc.local line.

Shell script removing my Realtek ICH sound driversis here
If you like to use it download it in /usr/local/bin or somewhere and invoke it via rc.local.
Removing sound blaster kernel support does not impact the overall machine performance, but in terms of security. Having sound driver modules constantly loaded in memory is a point which a possible attacker can use to root the host, so in my view always sound driver support should be removed.
Well that’s it hope this post helps someone 🙂

Fixing strange Debian Linux Squeeze system overloads and Apache Webserver crashes

Friday, October 19th, 2012

For quite some time, my home run server pre-installed with Debian Squeeze Linux has been crashing in a very strange circumstances inside dmesg kernel log and in /var/log/messages on times, when this crashes occur I see errors / warnings spitting not very helpful kernel debug messages like this:


Oct 16 11:32:28 pcfreak kernel: [66657.797930] Pid: 0, comm: swapper Not tainted 2.6.32-5-amd64 #1
Oct 16 11:32:28 pcfreak kernel: [66657.797931] Call Trace:
Oct 16 11:32:28 pcfreak kernel: [66657.797933] [] ? select_nohz_load_balancer+0x94/0x163
Oct 16 11:32:28 pcfreak kernel: [66657.797943] [] ? __report_bad_irq+0x30/0x7d
Oct 16 11:32:28 pcfreak kernel: [66657.797945] [] ? note_interrupt+0x105/0x16e
Oct 16 11:32:28 pcfreak kernel: [66657.797948] [] ? handle_fasteoi_irq+0x93/0xb5
Oct 16 11:32:28 pcfreak kernel: [66657.797952] [] ? handle_irq+0x17/0x1d
Oct 16 11:32:28 pcfreak kernel: [66657.797954] [] ? do_IRQ+0x57/0xb6
Oct 16 11:32:28 pcfreak kernel: [66657.797956] [] ? ret_from_intr+0x0/0x11
Oct 16 11:32:28 pcfreak kernel: [66657.797957] [] ? poll_idle+0x28/0x5b
Oct 16 11:32:28 pcfreak kernel: [66657.797963] [] ? poll_idle+0xa/0x5b
Oct 16 11:32:28 pcfreak kernel: [66657.797965] [] ? cpuidle_idle_call+0x94/0xee
Oct 16 11:32:28 pcfreak kernel: [66657.797968] [] ? cpu_idle+0xa2/0xda
Oct 16 11:32:28 pcfreak kernel: [66657.797971] [] ? early_idt_handler+0x0/0x71
Oct 16 11:32:28 pcfreak kernel: [66657.797974] [] ? start_kernel+0x3dc/0x3e8
Oct 16 11:32:28 pcfreak kernel: [66657.797976] [] ?x86_64_start_kernel+0xf9/0x106

and this:


Oct 16 15:53:14 pcfreak kernel: [82297.972509] apache2 invoked oom-killer: gfp_mask=0x200da, order=0, oom_adj=0
Oct 16 15:53:30 pcfreak kernel: [82297.972513] apache2 cpuset=/ mems_allowed=0
Oct 16 15:53:30 pcfreak kernel: [82297.972515] Pid: 8943, comm: apache2 Not tainted 2.6.32-5-amd64 #1
Oct 16 15:53:30 pcfreak kernel: [82297.972517] Call Trace:
Oct 16 15:53:30 pcfreak kernel: [82297.972523] [] ? oom_kill_process+0x7f/0x23f
Oct 16 15:53:30 pcfreak kernel: [82297.972527] [] ? timekeeping_get_ns+0xe/0x2e
Oct 16 15:53:30 pcfreak kernel: [82297.972529] [] ? __out_of_memory+0x12a/0x141
Oct 16 15:53:30 pcfreak kernel: [82297.972531] [] ? out_of_memory+0x140/0x172
Oct 16 15:53:30 pcfreak kernel: [82297.972534] [] ? __alloc_pages_nodemask+0x4ec/0x5fb
Oct 16 15:53:30 pcfreak kernel: [82297.972538] [] ? do_wp_page+0x386/0x707
Oct 16 15:53:30 pcfreak kernel: [82297.972541] [] ? autoremove_wake_function+0x9/0x2e
Oct 16 15:53:30 pcfreak kernel: [82297.972544] [] ? __wake_up_common+0x44/0x72
Oct 16 15:53:30 pcfreak kernel: [82297.972547] [] ? __wake_up+0x30/0x44
Oct 16 15:53:30 pcfreak kernel: [82297.972549] [] ? handle_mm_fault+0x704/0x80f
Oct 16 15:53:30 pcfreak kernel: [82297.972553] [] ? do_page_fault+0x2e0/0x2fc
Oct 16 15:53:30 pcfreak kernel: [82297.972556] [] ? page_fault+0x25/0x30


Oct 16 18:41:55 pcfreak kernel: [ 6582.554746] Mem-Info:
Oct 16 18:41:55 pcfreak kernel: [ 6582.554747] Node 0 DMA per-cpu:
Oct 16 18:41:55 pcfreak kernel: [ 6582.554751] CPU 0: hi: 0, btch: 1 usd: 0
Oct 16 18:41:55 pcfreak kernel: [ 6582.554753] CPU 1: hi: 0, btch: 1 usd: 0
Oct 16 18:41:55 pcfreak kernel: [ 6582.554755] Node 0 DMA32 per-cpu:
Oct 16 18:41:55 pcfreak kernel: [ 6582.554758] CPU 0: hi: 186, btch: 31 usd: 0
Oct 16 18:41:55 pcfreak kernel: [ 6582.554760] CPU 1: hi: 186, btch: 31 usd: 0
Oct 16 18:41:55 pcfreak kernel: [ 6582.554762] Node 0 Normal per-cpu:
Oct 16 18:41:55 pcfreak kernel: [ 6582.554765] CPU 0: hi: 186, btch: 31 usd: 5
Oct 16 18:41:55 pcfreak kernel: [ 6582.554767] CPU 1: hi: 186, btch: 31 usd: 0
Oct 16 18:41:55 pcfreak kernel: [ 6582.554773] active_anon:1580557 inactive_anon:308231 isolated_anon:9504
Oct 16 18:41:55 pcfreak kernel: [ 6582.554775] active_file:148 inactive_file:220 isolated_file:32
Oct 16 18:41:55 pcfreak kernel: [ 6582.554776] unevictable:0 dirty:5 writeback:494 unstable:0
Oct 16 18:41:55 pcfreak kernel: [ 6582.554777] free:12063 slab_reclaimable:4262 slab_unreclaimable:17553
Oct 16 18:41:55 pcfreak kernel: [ 6582.554778] mapped:148 shmem:43 pagetables:89423 bounce:0
Oct 16 18:41:55 pcfreak kernel: [ 6582.554781] Node 0 DMA free:15880kB min:20kB low:24kB high:28kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive
_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15328kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB
slab_unreclaimable:8kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
Oct 16 18:41:55 pcfreak kernel: [ 6582.554794] lowmem_reserve[]: 0 2947 7995 7995
Oct 16 18:41:55 pcfreak kernel: [ 6582.554798] Node 0 DMA32 free:24672kB min:4212kB low:5264kB high:6316kB active_anon:2153732kB inactive_anon:538456kB activ
e_file:32kB inactive_file:56kB unevictable:0kB isolated(anon):6912kB isolated(file):0kB present:3017744kB mlocked:0kB dirty:16kB writeback:336kB mapped:184kB
shmem:168kB slab_reclaimable:4400kB slab_unreclaimable:21908kB kernel_stack:1816kB pagetables:131140kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scann
ed:42 all_unreclaimable? no
Oct 16 18:41:55 pcfreak kernel: [ 6582.554812] lowmem_reserve[]: 0 0 5048 5048
Oct 16 18:41:55 pcfreak kernel: [ 6582.554815] Node 0 Normal free:7700kB min:7216kB low:9020kB high:10824kB active_anon:4168496kB inactive_anon:694468kB acti
ve_file:560kB inactive_file:824kB unevictable:0kB isolated(anon):31104kB isolated(file):128kB present:5169180kB mlocked:0kB dirty:4kB writeback:1640kB mapped
:408kB shmem:4kB slab_reclaimable:12648kB slab_unreclaimable:48296kB kernel_stack:3488kB
pagetables:226552kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_
scanned:224 all_unreclaimable? no
Oct 16 18:41:55 pcfreak kernel: [ 6582.554829] lowmem_reserve[]: 0 0 0 0
Oct 16 18:41:55 pcfreak kernel: [ 6582.554832] Node 0 DMA: 2*4kB 2*8kB 3*16kB 4*32kB 3*64kB 3*128kB 1*256kB 1*512kB 2*1024kB 2*2048kB 2*4096kB = 15880kB
Oct 16 18:41:55 pcfreak kernel: [ 6582.554842] Node 0 DMA32: 114*4kB 73*8kB 273*16kB 256*32kB 85*64kB 10*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 1*4096kB = 2
4672kB
Oct 16 18:41:55 pcfreak kernel: [ 6582.554852] Node 0 Normal: 867*4kB 103*8kB 7*16kB 13*32kB 7*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 7700
kB
Oct 16 18:41:55 pcfreak kernel: [ 6582.554862] 89702 total pagecache pages
Oct 16 18:41:55 pcfreak kernel: [ 6582.554864] 89257 pages in swap cache
Oct 16 18:41:55 pcfreak kernel: [ 6582.554866] Swap cache stats: add 4155760, delete 4066503, find 618278/801429
Oct 16 18:41:55 pcfreak kernel: [ 6582.554868] Free swap = 0kB
Oct 16 18:41:55 pcfreak kernel: [ 6582.554870] Total swap = 5787636kB
Oct 16 18:41:55 pcfreak kernel: [ 6582.581389] 2096640 pages RAM
Oct 16 18:41:55 pcfreak kernel: [ 6582.581392] 60657 pages reserved
Oct 16 18:41:55 pcfreak kernel: [ 6582.581394] 330845 pages shared
Oct 16 18:41:55 pcfreak kernel: [ 6582.581397] 2012293 pages non-shared

It took, me long time of thinking and pondering what is causing this errors ….
I thought it is due to some failing RAM bank or some kind of conflict URL hardware inconpitability, I had some thoghts that it is possible Hard Disk is failing or have some bad blocks; However as I bought the machine brand new and besides that it is not assembled one PC but brand one Lenovo ThinkEdge, I’ve further thought and investigated if Apache is failing due to some problem with Apache modules. After reviewing all system installed modules, I’ve found php5-suhosin, was installed on the system (probably as a dependency package) to something else I previously installed ??
I don’t have a very positive feedback on some other servers I configured with Apache, whether php5-suhosin was installed so decided to try removing it ….:


# dpkg -r php5-suhosin
.....
# dpkg --purge php5-suhosin

I’ve also lowered down a bit the StartServers and MaxSpareServers (mod_prefork_modules) section in /etc/apache2/apache2.conf:

StartServers there was set to: 700 and MaxSpareServers to 150, I’ve changed the values to read as so:



StartServers 500
MinSpareServers 100
MaxSpareServers 120
MaxClients 1000
MaxRequestsPerChild 10000

Just for info machine is with 8 Gigabytes of Memory and has 1x 2 cores CPU:


# free -m |grep -i 'mem:'
Mem: 7953 7871 81 0 91 753


# cat /proc/cpuinfo |grep -i proces -A 5
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Pentium(R) CPU G630 @ 2.70GHz
stepping : 7
--
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Pentium(R) CPU G630 @ 2.70GHz
stepping : 7

After that to make module already loaded in system memory by Apache main (parent) process, I restarted Apache as well:


# apache2ctl -k restart

Following that changes – Thanks God! ; I no longer experience the weird errors and Server overloads 😉

How to remove and disable BlueTooth support on Debian GNU / Linux servers

Thursday, October 18th, 2012

How to remove / disable bluetooth support on Debian GNU / Linux servers
If you running Debian Squeeze Linux (as server Apache, MySQL, Qmail etc.) on brand new purchased hardware with bluetooth support; you will notice default Linux kernel will detect and load modules for Bluetooth

This would not be a problem only if Bluetooth does not pose possible errors or (even at cases even maybe system hangs ups?). The actual reason in my case to want to disable bluetooth on a productive Linux server operating like host was I found out in dmesg produced output, some errors related to Bluetooth, here they are:


root@deb:~# dmesg|grep -i 'call trace' -A 8
[323406.744439] Call Trace:
[323406.744440] [] ? lapic_next_event+0x18/0x1d
[323406.744450] [] ? __report_bad_irq+0x30/0x7d
[323406.744453] [] ? note_interrupt+0x105/0x16e
[323406.744455] [] ? handle_fasteoi_irq+0x93/0xb5
[323406.744458] [] ? handle_irq+0x17/0x1d
[323406.744460] [] ? do_IRQ+0x57/0xb6
[323406.744463] [] ? ret_from_intr+0x0/0x11
[323406.744464]

I saw this error and similar ones occuring, every now and then obviously displaying something wents wrongs with IRQs related to BlueTooth Communication with Kernel (as it keeps processing requests loaded in system memory) …

Well anyways having the bluetooth kernel module loaded on memory just takes up few chunks of useless assigned memory.
I don't have intention to use bluetoothever in future on these host so I decided to completely remove bluetooth support on those Debian.

1. Remove blueetoh support on Debian GNU / Linux

First to check info about the loaded kernel module bluetooth.ko and its assigned module load alias run:


root@deb:~# /sbin/modinfo bluetooth
filename: /lib/modules/2.6.32-5-amd64/kernel/net/bluetooth/bluetooth.ko
alias: net-pf-31
license: GPL
version: 2.15
description: Bluetooth Core ver 2.15
author: Marcel Holtmann
srcversion: 9FD5BF98FC88505DC637909
depends: rfkill
vermagic: 2.6.32-5-amd64 SMP mod_unload modversions

Secondly disable memory preloaded bluetooth.ko on the current host with cmds:


root@deb:~# rmmod -f bnep
root@deb:~# rmmod -f l2cap
root@deb:~# rmmod -f sco
root@deb:~# rmmod -f bluetooth

Default way to control if Bluetooth (on host support is ON or OFF) is through /etc/default/bluetooth. Inside /etc/default/bluetooth is a control variable:


BLUETOOTH_ENABLED=1

To shut it off change its value to 0:


BLUETOOTH_ENABLED=0

Then to permanently prevent bluetooth.ko from being ever in future loaded its also good idea to blacklist modules – bnep, btusb, bluetooth:


root@deb:~# echo 'blacklist bnep' >> /etc/modprobe.d/bluetooth.conf
root@deb:~# echo 'blacklist btusb' >> /etc/modprobe.d/bluetooth.conf
root@deb:~# echo 'blacklist bluetooth' >> /etc/modprobe.d/bluetooth.conf

Onwards re-build, current kernel initramfs:


root@deb:~# update-initramfs -u -k `uname -r` -v
......
......

Next update boot init scripts with update-rc.d to make sure bluetooth (service / daemon) is not started:


root@deb:~# update-rc.d bluetooth remove
......

That's all bluetooth will not load up anymore on next boot and at present time will not take up useless mem space.

2. Re-enable disabled blueetooth on Debian Linux
 
I've been asked in one of comments, what to do If you need to re-enable bluetooth on your Debian Linux at some time in future, so here are the steps to turn back blueetooth on again


/etc/modprobe.d/bluetooth.conf

Change variable:

BLUETOOTH_ENABLED=0

to 

BLUETOOTH_ENABLED=1

Open  /etc/modprobe.d/bluetooth.conf and remove any blacklisted modules, e.g:

'blacklist bnep'
'blacklist btusb'
&39;blacklist bluetooth'

Rebuild again kernel ramfs

root@deb:~# update-initramfs -u -k `uname -r` -v
 
Enjoy 🙂