You may be doing a great job, and that MAY keep your job safe, but don't count on it. Politics rules.
Nothing is more frustrating than to work under people who are lower in skills than yourself. Unfortunately, that is not unusual, but the norm in today's corporate IT environment.
You say your manager regards you as a threat, but you are not interested in having his job, just being left alone to do your work and have your opinions and ideas listened to and considered fairly. HAVE YOU TOLD YOUR MANAGER THIS?
If you can do so safely (I don't know how open he is to discussion), he might relax and not be so fearful and determined to make problems for you if he understands you just want to do as good a job as you can for the company. Consider his position - the general manager hired you from outside - why? It is only natural for him to suspect you are being groomed to take his place. Just be sure you will be satisfied with working for him and don't be surprised if he still mistrusts or doesn't believe you, he may think you are just trying to get him to lower his guard.
DO NOT take this to the general manager - if his plan IS to have you replace your manager, it will be because he is not happy with your manager's performance. If that is the case and he offers you the job, then take it (provided you can handle the stress and the possible longer hours in light of your mother' needs as well for your time). Even if you don't plan on staying there permanently, it will look good in your resume'!
You want to stay near your mother who is ill, so this limits your options some, but you are sure you would be better off elsewhere, then take a look around (discretely) in the country/city you are in. Go to a headhunter. Talk to any friends or business contacts (outside your own company) who can point you in the right direction.
You say you are in the Middle East, I have noticed when I was over there that the diploma is king, so if you don't have an IT-related degree, it may be hard to move. If that is your situation, then you may be better off staying where you are, and just 'bite the bullet'. Do the best job you can and don't ruffle your manager's 'feathers', because the 1st rule about dealing with people that have poor skill sets is that they constantly live in fear that someone will eventually find out how little they know, so they make a concerted effort to 'seek and destroy' any potential threats posed by competent people around them. This is where the political games come in.
But if you DO have the degree, then don't be afraid to look for work elsewhere. I don't know your national or ethnic background or how familiar you are with Middle Eastern societies, but I do know that foreigners working in the Middle East, while they will never be allowed to assume high positions of management (these are reserved for their own people - remember, we're talking familial, tribal oriented societies), their opinion and professionalism is generally considered fairly and matched with suitable compensation (good health benefits, insurance, help with living expenses, assistance with any immigration problems) and lots of money.
You mentioned you have no ambition to be the IT overall manager, so that leaves you always facing the situation of being a worker, not a leader. But there is nothing wrong with pursuing a lower profile and being proud of your own ability to solve the problems your employer depends on you to take care of, maybe you need the time for your family needs. Job satisfaction is king. No matter the money, if you have enough to live on and like your work, you will be les stressed and enjoy your life more than the typical "A' personality type obsessed with having it all as soon as possible.
Hard work and professionalism will usually protect you, but when politics walks in the door, all bets are off. Avoidance may be the best policy - going head-to-head with your boss is never a good idea, no matter what his talents are.
He did not get his present position by doing nothing. It may not have been demonstrating any particular skills, but by being sure to make friends with the right people, making him the most dangerous kind of antagonist to deal with. In your situation, discretion may be the better part of valor as long as yu stay nyour present job, but moving to healthier job environment may result in a real improvement in job satisfaction and your overall level of stress.
You have enough to worry about with your mother, so decide what your long and short term goals are, weigh and prioritize your choices and make your decision. You never get something for nothing, just weigh the benefits against the sacrifices then make your choice.
Good luck, believe me, we have almost all of us faced a similar situation in our careers.