Thursday, July 31, 2014

Swap partition always unknown on Ubuntu system

After upgrading the system from Ubuntu 13.10 to 14.04 LTS, or even installing ver. 14.04 fresh, sometimes it causes the swap partition to be damaged or unknown by the system, which prevents the system from using the swap partition.

I've tried many times to re-create & re-enable the swap partition which worked fine till I rebooted my system to figure out again that it's not been recognized by the system. Also will show in the System Monitor => Resources, the Swap "not available" [see img-1],


img-1
I'll try in this article to show you how to fix and enable the encryption in the swap partition. 

Follow the steps below.

1- Click Ctrl+Alt+T keys to open a Terminal window, we need now to stop the swap by typing this command: "sudo swapoff -a"

2- In my case, gparted utility shows my swap partition corrupted [see img-2] so I need to format it again as Linux-swap type, you can use gparted utility, in the terminal write this command: " gksu gparted"


img-2
3- on gparted right-click on the linux-swap partition after formatting it and select from the pop-up menu "swapon"
4- Run "sudo swapon -s" command to make sure the swap is enabled. now if you check the System Monitor you will see the system started using the swap area. [see img-3].
img-3
5- Run "sudo blkid" command to list the unique UUID for the swap partition, which we need to confirm later on.


6- now, we need to confirm the same UUID is used in the filesystem table, by running the following command: "sudo cat /etc/fstab"
in the line before the last one the swap line is hashed or remarked with "#" which means system will not execute this line also the used UUID is wrong "UUID=aa27439a-c1f2-4a91-8ff3-9869ab88e63f", coz this for the old swap partition before the format, we already re-formatted the swap partition so new UUID has been generated for the swap partition, now we must modify the "fstab" file to changed the swap UUID with the new one which will allow the system to auto mount the swap partition when we boot the system. Also we must remove the old encryption line which is the last line in the file.

7- Run "sudo gedit /etc/fstab" and do the following:
7.1- Remove the last line which points to the old encryption "/dev/mapper/cryptswap1 none swap sw 0 0"
7.2- Replace the old UUID for the swap "UUID=aa27439a-c1f2-4a91-8ff3-9869ab88e63f" with the new UUID which listed after we run the "blkid" command above "UUID=206a4ee5-e8e4-4501-aa31-2448b283d3b4"
7.3- Now remove the "#" mark from the swap UUID line which is the last line in our case

7.4- Save the file, then run this command again "sudo cat /etc/fstab" to make sure the "fstab" file is changed and saved, so the new file should look like the below image [img-4]


img-4
8- Reboot the system to make sure that the swap partition will automatically be mounted and used by the system. by running the System Monitor again, in my case I see the swap is running well as in [img-4] above.

We can run again steps # 5 & # 7 above to make sure the UUIDs for the swap are matching.

Great all is ok.

Now if you are encrypting your /home, I strongly recommend you encrypt your swap partition as well, otherwise your data wont be protected as your swap area could be a leake point. So below steps will be used to encrypt the swap part

If you are upgrading your system & your previous system you had encrypted swap, and you try to encrypt your swap now by running this command "ecryptfs-setup-swap" your encryption setup may fail and show an error message like the below image [img-5].

img-5
to make sure your encrypt table is empty or not, run this command "sudo cat /etc/crypttab", if it shows data something like below image [img-6], then your encryption setup will not run correctly:
img-6
and to fix this you must empty the encrypt table then run the encryption setup by running the following steps:

9- Run "sudo gedit /etc/crypttab", then delete all the lines in it then save it. (make backup of the original file before you do this)
10- Reboot your system

11- Now, run the encryption wizard "sudo ecryptfs-setup-swap" and follow the wizard, then reboot.

Monday, March 31, 2014

توقف حساب اﻻنستجرام دون سبب مقنع

من المشاكل التي يواجهها بعض مستخدمي الانستجرام تعليق او قفل الحساب فجأة دون سبب مقنع ويحدث ذلك احيانا بعد قيام المستخدم بالتعليق المستمر على تعليقات الغير او بعمل الكثير من ﻻيك بطريقة مستمرة وفي وقت قصير، مما يجعل نظام المراقبة ومكافحة السبام الخاص بالانستجرام باﻻعتقاد ان المستخدم  هو آلي او حساب وهمي وبالتالي يقوم بقفل لحساب

وتختلف مدة اقفال الحساب حسب آليه معينه ﻻ اعرفها وتتراوح فترة الاقفال بين ساعات حتى 24 ساعة ومنها من يقفل حسابه لفترة تصل الى 4 اسابيع

وهناك حالات يقفل الحساب ومباشرة يطلب الانستجرام ويسمح للمستخدم بتفعيل حسابه في نفس اللحظة وذلك باظهار خانة لادخال رقم الهاتف حتى يستلم المستخدم رمز التفعيل عليه عن طريق رسالة نصيه تصل الى خطه. وفي هذه الحالة يكون اﻻنستجرام قد حصل على رقم هاتف المستخدم اذا كان المستخدم قد استخدم رقم هاتفه الفعلي وهذه احدى الطرق التي يستخدمها الانستجرام لضبط الحسابات الوهمية

 وللعلم، هناك برامج ممكن اﻻستعانه بها وفائدتها انها تعطي المشترك رقم خط هاتف سواء امريكي او كندي ويمكن استخدامه ﻻستلام الرسائل النصية الـ اس ام اس، ويمكن استخدام هذا الرقم في عملية التفعيل ايضا

 واود ان اشير هنا الى ما ذكرته في تويتري قبل ايام وذكره ايضا العديد من المغردين بان الحساب يقفل بمجرد كتابة جملة "لا اله الا انت سبحانك اني كنت من الظالمين" واعتقد البعض ان الانستجرام يتعمد ضبط هذه الكلمات وان له علاقه بمعادات اﻻسلام او شئ من هذا القبيل، وكما رأينا قيام العديد بشن حملات ضد اﻻنستجرام

أنا لا اعتقد ان الموضوع له علاقه بمعادات الاسلام او كلمات التوحيد، ولكنه كما ذكرت سابقا فيما يتعلق بنظام المراقبه في اﻻنستجرام ضد الحسابات الوهميه والسبام، او كما ذكره اﻻستاذ عبدالله العلي في تعليقه

كما انني لا استبعد وجود عيب فني في برمجة الانستجرام وهو ما نطلق عليه في برمجة الحاسوب الـ software bug


Monday, February 17, 2014

The 2nd Annual Kuwait Social Media Summit

There are millions of users on social media platforms such as Facebook, Twitter, and LinkedIn today -- and that means there are millions of leads you haven't found yet.

The 2nd Kuwait Social Media Summit taking place 23-24 April 2014 to help you discover new opportunities to use social media to identify and analyse conversations as well as generate new leads.

Supported by the Kuwait Central Agency for Information Technology (CAIT), the Summit will provide you with the right tools to effectively utilize social media and connect with your audience. 

The Kuwait Social Media Summit will include practical workshops, panel discussions and presentations by social media leaders from UK, USA, Belgium, India, UAE, KSA, Jordan and Qatar.

Download the brochure for more information about the topics covered. You can also download our Speaker E-book to learn more about the summit speakers.

Register now to participate at the Kuwait Social Media Summit and learn new ways to generate leads for your business through social media.

Wednesday, December 25, 2013

أخصائية اﻻبتدائي في مدرسة الجيل الجديد تعاقب طلاب الصف الرابع بالضرب بعصاة وتؤذي ابني

 فوجئت عند عودتي من العمل بتورم اصبع ابني وظهور القليل من اللون الازرق في اصبعه اﻻبهام في يده اليمنى، وبسآله عن السبب اتضح ان اﻻستاذة اخصائية المرحلة الابتدائي عاقبت صفه (الرابع) بالضرب بعصاة  بسماكة 1سم وعرض 5سم والطول ؟؟ انظر الصورة ، وقد انكسرت قطعة من العصاة على ايدي الطلاب اثناء ضربها لهم وفي الصورة القطعة المكسوره والتي تظهر نوع العصاة المستخدمة

 
من المعروف ان وزارة التربية والتعليم قد اوضحت بكثير من قراراتها بعدم السماح بالضرب بالمدارس ويبدو ان اﻻستاذة الاخصائية ليست مهتمة بتلك القرارات
كيف يعاقب طالب في الصف الرابع بمثل هذه العصاة وكيف يضرب بهذه القوة والتي ادت الى انكسار عصاة بمثل هذه السماكة
وكيف تسمح ادارة المدرسة بمثل هذا التصرف وكيف لا تعلم ادارة المدرسة بوجود هذه العصاة في غرفة  الاخصائية ... ام انها على علم بذلك

يجب على ادارة المدرسة ومن يمثلها من مشرفين واخصائيين ضبط النفس والتصرف بعقلانيه وحكمه  وان لا يكون تصرفهم وعقابهم للطلاب بصورة انتقامية لاي سبب كان  .. لكي ﻻ تتطور الامور بشكل قد يؤذي الطالب وبذلك يكون هذا دافع لاهالي الطلاب بتحريك دعوى قضائية ضد المعتدي

فأهالي الطلاب ﻻ يدفعون الرسوم المدرسية كي يهان او يضرب ابنائهم .. بل نحن ندفع الرسوم كي يتلقى التعليم وليس الضرب والاصابات

اتمنى من ادارة مدرسة الجيل الجديد الاهلية (الكويت) التصدي لمثل هذه التصرفات اللامسئولة ومحاسبة المعتدي

اﻻربعاء - الموافق 2013-12-25

Saturday, November 16, 2013

Facebook is not safe for children!! be careful

Many times when I access my FB page I see a wizard in the top asking me to complete my profile in FB every time I ignore it, but finally I deiced to do it to get rid of it.

I started filling my information till I reached the Movies section where it asks "What movies have you watched?" and under this title it shows some suggested movies list including its cover picture .. Guess what .. after browsing some suggested movies that stupid (sorry) FB started to list some nude images for movies like "Anatomy of Hell", "Lie with Me", "Cheerleaders (film)" Ops Ops .. thanks God non of my children were near me.

I said, what about my children accounts in FB, no way, FB should know the age of the account owner from the date of birth (if correct) in the account therefore it should filter these bad and naked things.

Then I decided to open my son's FB account which shows his age as 13 years old and double check, good none of the bad images were there, I was happy, then I browsed forward to Books then TV Shows then returned back to Movies, and here I got shocked the same nude movies list appear again in my son's account, which means FB doesn't have any kind of age restrictions or filtering on such things.

In addition to that I searched for some of those bad movies to see if any has a page of FB, and yes I found the worst one with the same scandalous picture. Directly I reported that page to FB.

Some of you may think that the nude picture I'm talking about is like someone on the beach no no this one is much worst its naked completely.

This issue is very dangerous and very sensitive, there are many children with accounts on FB and they are browsing the FB without any “parental control” coz we consider it as safe place to certain extent, that is why non of us watch his children activity on FB.

This is not acceptable, Facebook .. you have to do something about it and you should not be part in the Moral Dissolution!


Sunday, November 29, 2009

You must install these Internet adviser software

Dear All,

Internet security is a very important subject, all of us used to serve the Internet daily & visit many websites wither directly or by clicking a web link & most of them we know nothing about them whether they are safe or not, & some of us get infected & suffer because of these sites ... so what shall we do ??!

Out of my experience & research you will find bellow two tested & suggested FREE softwares which I suggest to install on your computer, they will "WARN you about risky websites" by showing an indicator on your browser as soon as you access the site.

The beauty of "WOT" software .. that you can customize the worming messages & actions for example if your children using the same computer then you can customize the action to block the site & not allowing them to access it :-) very nice!

1. "WOT" which called "Web of Trust", download @ www.mywot.com

2. "McAfee SiteAdvisor" download @ www.siteadvisor.com


For any comments, please comment on my blog !
.