I have been using Ubuntu since 2008. Which is exactly how long I have been using Linux (and aware of it). Back then when I was learning about Linux and all the culture behind the free and open source movement, I found that Ubuntu was (probably still is) one of the best beginner friendly distros if not the best. However, when I started using it back in late 2008, not everything worked on my laptop, most importantly, the wireless adapter. A few google searches later led me to the terminal and some cryptic lines of codes that I had no idea what they would do when entered and wallah, it made it even worse that I had to re-install the OS. That is how I learned how to use Linux. That is what got me into programming, IT. security, and even micro-controllers development boards such as Arduino. Back to the recent time, I have been using Ubuntu as my main desktop’s and laptop’s OS. aside from Kali Linux when working on security stuff and I got very comfortable that I decided to take the next logical step and change distro. The logical step came in the form of Fedora. I […]
Category: linux
Bash script for a mono wallch indicator
I wrote this simple script to change wallch indicator to a mono one because I didn’t like the current one. I once participated in adding Arabic to wallch and I just love this program. What is Wallch? Wallch is a wallpaper changer. It doesn’t simply change your desktop background with the wallpapers that you have in your hard disk, though. While it does that well by monitoring the folder that you have selected for new or deleted pictures, it has lots of features, like Picture of the day, Live Earth, Wallpaper Clocks and Live Website! Wallch is Open Source, which means that anyone can download and inspect the code. It currently works on Gnome (with or without Unity integration), LXDE, XFCE and Mate. Wallch version 4.0 is now available for download. http://melloristudio.com/wallch/ you can do it manually by downloading quick icon i did from here and replacing it in “/usr/share/wallch/files/” or simply download and run the script or just copying it #!/bin/bash echo “Changing Wallch indicator icon to mono” wget https://www.dropbox.com/s/vi7emuehp7krayj/indicator_ambiance_normal.png sudo cp /usr/share/wallch/files/indicator_ambiance_normal.png /usr/share/wallch/files/indicator_ambiance_normal_original.png sudo cp indicator_ambiance_normal.png /usr/share/wallch/files/ rm indicator_ambiance_normal.png echo “Done” have fun. […]
Kali Linux and transparent backgrounds
I never seemed to be able to get it working right..and searching didn’t really help..until I found this discussion > https://forums.kali.org/archive/index.php/t-4337.html I just want to post it here for reference and maybe to help a fellow pen tester. jnpa all you need to do is: go to Applications > System tools > dconf editor then go to org > gnome > metacity and check the compositing-manager box this did it for me with no problems. enjoy. […]
StatusR
I love the command line interface..I love the terminal. i wanted to create a script that runs after login on my ubuntu machine and do something or show something interesting -at least to me- so I started thinking of something I can do with a script that will show information that I might find it useful. StatusR The main idea of this bash script is to get and show status report quickly on weather, Internet status, Google DNS status, OpenDNS status, Internet threat level, and space weather. Possibly other information in the future. it could be altered easily to show more or less. its great for fun and can be really useful. Its also a great way to learn about bash script. here is the code #!/bin/bash ######################################################### # The main idea of this bash script is to # # get and show status report quickly on # # Weather, Internet threat level, and Space # # Weather. Possibly other information in the # # future. # # It could be altered easily to show more or # # less. # ######################################################### # https://sourceforge.net/projects/statusr # originally written by: Mohamed Adel # e-mail: mohamedation[at]gmail[dot]com # this v2 is a minor edit […]
Linux, Ubuntu, Distros – The Story
كنت ناوي اكتب الموضوع ده من زمان بس كنت بكسل او بنسي.. لكن اتسألت اكتر من مرة و حبيت اني اكتبه بقي. الموضوع اكيد منتشر علي الانترنت و في كتب كتير لكن حبيت اكتبه بطريقتي. ايه لينكس ده؟ و ايه ابونتو؟ طيب لينكس هو ابونتو لا ده حاجة و دي حاجة؟ الموضوع سهل.. لكن محتاج الاول نفهم ايه هو نظام التشغيل… نظام التشغيل عبارة عن برنامج في اساسه هو مجرد وسيلة علشان الهاردوير او مكونات اجهزة الكومبيوتر تتواصل مع بعضها و تقوم باللي هي معمولة علشان تقوم بيه سواء الصوت, الصورة, المعالجة, الخ. بجانب البرنامج ده بيبقي في برامج تانية ليها وظيفة تانية اللي بتبقي عبارة عن السوفتوير اللي بنستخدمها او بنلعبها زي المتصفحات او سوليتير مثلا. طيب يعني اللي هو زي ايه؟ في العادة الاغلبية عارفين الوندوز و عارفين الماك او نظام شركة أبل و اكيد بنسمع لينكس من وقت لاخر. في كتير….اي حاجة بنستخدمها غالبا فيها نظام تشغيل.. كومبيوتر, تليفيزيون, ماكينات صرف النقود او الATM و غيرهم كتير… اغلبهم بيبقي نظام التشغيل لينكس لانه مجاني.. مش مجاني بس انه ببلاش لكن ممكن اي حد يعدل او يغير فيه و يعيد توزيعه من غير ماحد يقوله بتعمل ايه و علشان طريقة برمجته و لغته كان من السهل انه يتعدل […]
shutdown bash script
you can remove the first 2 echos if you like. #!/bin/bash echo -e “Welcome to auto shutdown” sleep 1 echo -e “Brught to you by Mohamed Adel” sleep 1 echo -e “Please insert the time you want the computer to shutdown at in Minutes. For example : ‘5’ will auto shutdown after 5 minutes.” read time notify-send “Your system is going to auto shut down in $time minutes” sudo shutdown -P $time | echo -e “Now enter your password, set back and relax :)” […]
Shell Script to post your external IP address to Ubuntu One.
Because I use ssh a lot between my 2 desktops and my laptop (sometimes even mobile phones) and I also don’t have a static IP address, I needed a way to keep updated with my desktop external IP. there is nothing more easier or convenient than shell scripts in Linux. the idea was to get my external IP and then have it delivered to me somehow.. all i could think about was to email it to my self somehow, but then i got this idea to use the script to post the IP to a text file which is located on a shared folder on Ubuntu One so every time I run the script it would get my IP address and then post it to a txt file on Ubuntu One folder that gets updated on the cloud across all connected devices and its accessible from the internet using my account. I wanted to share this simple way i thought of and maybe someone out there would find it helpful. Requirements:- *note that the requirements could be changed if you modified the script with your commands* – lynx web browser which is a text based web browser. more info about it Here. It can be easily installed […]
بدايتي مع ثقافة الـOpen Source
بما اني بكتب كل حاجة بفكر فيها و كل حاجة انا شايفها بطريقتي يبقي لازم اتكلم عن الموضوع ده لانه جزء مهم جدا مني. البرامج مفتوحة المصدر او الـOpen Source هي المفروض برامج لكن انا هاسميها ثقافة. ببساطة لانها فعلا ثقافة. فالبرامج مفتوحة المصدر ثقافة قائمة علي ان العلم و المعلومات ملك لكل البشر. برنامج “مجاني” بكل ما في الكلمة من معني. عايز تحطه علي اسطوانات و توزعه؟ وزعه. بتعرف تبرمج و عايز تغير حاجة فيه؟ غير. لاقيت مشكلة فيه و حلتها؟ انشرها للكل. و اقتبس الجزء التالي من ويكيبديا.. الموسوعة الحرة: المصدر المفتوح هو مصطلح يعبر عن مجموع من المبادئ التي تكفل الوصول إلى تصميم وإنتاج البضائع والمعرفة. يستخدم المصطلح عادة ليشير إلى شيفرات البرامج المتاحة بدون قيود الملكية الفكرية. وهذا يتيح لمستخدميالبرمجيات الحرية الكاملة في الإطلاع على الشيفرة البرمجية للبرامج، وتعديلها أو إضافة مزايا جديدة لها.ظهر مصطلح (Open Source) الذي يتم ترجمته للمصدر المفتوح، في نهاية التسعينات من قبل إريك ريموند (Eric Steven Raymond) في محاوله منه لإيجاد مصطلح بديل عن مصطلح برمجيات حرة (free software) الذي كان يفهم خطأ على أنه برمجيات مجانية بسبب اللبس الحاصل في معاني كلمة Free في اللغة الإنجليزية، كما في لغات أخرى كثيرة توجد كلمتان منفصلتان للتعبير عن ما هو مجاني (gratis) […]