Posts Tagged ‘Linux’

الأحتكار الصارخ و المستفز

May 13th, 2007

النهارده كنت بظبط جهاز محمد اخويا الصغير و طبعاً هو من مستخدمين ويندوز اللعين! و انا بفتح الوندز لقيت رسالة تحذير بأن الويندوز غير اصلية و مايكروسوفت بدأت تحارب سرقة البرامج و بناء على هذا الويندوز مش هتعمل تحديث و طبعا الويندوز لو معملتش تحديث يبقي بعد بكرة الصبح هتلاقي الكراكرز عاملين عالية عيد ميلاد و جايبين العيال الصغيرة الي لسا بتتعلم كراك علي جهاز الواد الغلبان .

الموضوع ده استفزني لدرجة كبيرة جداً و بدأت افكر في الخساير الفادحة اللي هنخسرها كأمة من حيث الفلوس و القيمة.

القصة إن ميكروسوفت فضلت تحتل عقول الشباب من المستخدمين و المطورين لحد اما بقي كل الناس فاكرة ان الكمبيوتر هو الويندوز و ان مفيش حاجة غيره! دا انا مرة بكلم واحد صاحبي و بقوللو عن السولاريس و بقولو انه كويس و كده لقيتة بيقوللي “هو فيه حد بيستخدمة ده؟” فقلتلة ان اكبر شركات البترول و البنوك و الأتصالات بتستخدمة و انه مشهور جدا و الحقيقة ان مايكروسوف قعدت مده طويلة جداً مسيطرة علي تفكيري و تعليمي لدرجة اني كنت باتمني اشتغل فيها و مكنتش ابداً عارف ده تأثيرة ايه علينا. الحقيقة ان عايز اوضح نقطة و هي ان مايكروسوفت فضلت فتره كبيييييييييرة سايبة الدنيا في الويندوز عال البحري و الشباب كلة بينسخ و السريال واحد و كله تمام، لكن الواقع انها كانت بالطريقة دي بتعمل دعاية خفية حتي اصبحت الويندوز الأساس بتاع الكمبيوتر بين الشباب، ده غير ان الناس اتعودت على مشاكل الويندوز الكتيرة و بقى شئ عادي

لكن دلوقي ميكروسوفت بتعمل اعلاناات في الراديو عشان تبيع النسخة الفاشلة تماماً “فيستا” و التي تطلب مواصفات خارقة اللينكس بيعتبرها مواصفات سيرفر و اعتقد ان ده بالتعاون مع شركات الهاردوير عشان كله ياكل عيش. و عملت الأختراع اللي اسمة
“Windows Genuine Check”

و بقى دلوقتي اللى عندة ويندوز مش اصلية يشربها عشان مفيش تحديث و الويندوز ب 500 جنية مصري يعني صدقوني الناس هتبدأ تنصاع للفكرة و كلة هايشتري كأنها قطعة من مكونات الكمبيوتر

امتى بقى الناس تفوق و ضميرها يصحي و زي ما بتطبق المقاطعة في الأكل تتطبق المقاطعة لمنتجات الاحتكار الامريكية و خصوصاً ان فية بديل مجاني و احسن و مش عايز اتكلم عن مميزاته الفنية ، لكن عايز اقول انه يمكن يكون بيدينا فرصتنا الأخيرة اننا نرجع اسياد العلم في العالم و نرجع اصحاب كلمة و صوت وسط الدول الأولي في صناعة السوفت وير

يمكن يكون هو الأمل في ان المهندسين يتخرجوا على مستوى محترم من العلم و روح المشاركة ، يمكن يكون هو ده حل مشاكل امه مالهاش هدف ، يمكن يمكن يمكن

و يمكن لأ، لكن الفكرة تستحق التجربة و التضحية

الفكرة دي هي اللينكس! يا مسلمين افيقوا و حرروا الأمة

My Storage Server

May 4th, 2007

I’d a very complicated problem related to storing data, I have a bad story also about losing my work files. So I decided to unify my storage into a single (24/7) online storage server – but low cost -.

I had some old hardware in my closet and I decided to use them as effecient as possible, so I started with a Manli Motherboard and a P3 Processor (1.2 GHz) with 1 20GB Harddisk and 2 160GB SATA Harddisks.

I had a problem regarding the SATA harddisks as I don’t have SATA controller in my Motherboard, so I searched in the hardware market and I found a PCI SATA Controller based on VIA VT6421 chipset which was perfectly compatible with Linux 2.6 kernel. At then I started assembling things together and I bought a good ventilated chassis to make things comfortable for the hardware inside.

I have used the IDE 20GB Disk as the system harddisk and installed Fedora core 6 i386 on it and then I had a large free space remaining on the disk. I used this disk to mirror the fedora updates repos and I wrote a small script to rsync the fedora updates mirror every 2 days on 3:30AM automatically using Vixie Cron.

#!/bin/bash
if rsync -avrt rsync://distro.ibiblio.org/fedora-linux-core/updates/6/i386/ \
–exclude=debug/ –exclude=repodata/ –exclude=*debuginfo* –exclude=*i18* \
–exclude=*langpack* /fedora-6/updates/
then
createrepo /fedora-6/updates/
fi

The remaining 2 160GB SATA Disks were connected and configured as RAID 1 (Mirror) to get a high redundancy and availability possible having a total storage area of 160GB. I think I’ll buy another 160GB disk and I’ll switch into RAID 5 to get 320GB of total storage.

The machine is headless and I’m using VNC to control everything, It’s used also as a DNS caching and forwarding server to my computers and download machine ;)

The last thing is to see how to access my files in an effecient and a speedy way, I used a NFS server optimized to get the best performance on LAN, I can get transfer rates up to 9Mbytes/Sec and Samba server with authentication to have access from windows machines.

The performance is really nice although the machine is pretty old and has only 256MB of memory but Linux is working great with outstanding performance and excellent stability. I’ve achieved disk reads of 53.5 Mbyte/Sec with buffered reading on the RAID 1 array.
Soon I’ll buy a real IP address to bind with this machine to have it accessible through the internet for remote files access. I’ll show you some of pictures about it ;)

Getting Toshiba Built-in SD Card Reader to Work under Fedora

March 24th, 2007

Today I wanted to get my toshiba built-in SD card reader to work because I hated to have an internal reader and use an external one (shame, huh?).

So I decided to give it some tries and after many searches I discovered that this device isn’t supported in the linux kernel, so we don’t have a driver for it, but I discovered something too, This device has a built-in generic controller that moves the control into the SD-Host and we can allow this by changing a generic PCI-register value called “MMC_SD_DIS”, this register is usually configured by EEPROM and written to the laptop using the proper driver and since we don’t have a driver we will do this by hand each time the machine boots into linux, or you can put this line into /etc/rc.local

The solution is to write the following in your terminal screen as a super-user:

# setpci -s `lspci |grep “PCIxx21 Integrated”|cut -d” ” -f1` 4c=0×22

as soon as you execute this command the SD-Reader works like magic :)

I was really happy to get this to work and thanks for the opensource community for the free forums that helped alot :D

C++ Linux GUI Programming with QT Series 1

July 11th, 2006

Al Salamo 3alykom,

I’m going to introduce a new series in linux programming, it’s the C++ programming with QT3.

first of all, we don’t know what a “QT” is. so let’s understand what does QT means and rock’n'roll :woot:
Qt is a comprehensive C++ application development framework. It includes a class library and tools for cross-platform development and internationalization.

Qt is Cross-Platform
Qt is the leading framework for native cross-platform application development. The Qt API and tools are consistent across all supported platforms, enabling developers to learn one API and perform truly platform-independent application development and deployment. Using Qt, development teams can create native applications for all major operating systems – from all major development platforms. » Read more: C++ Linux GUI Programming with QT Series 1