Writings Photos Code Contact Resume Me
GNU/Linux

You are here

Generate random passwords under GNU/Linux...

Submitted by msameer on Fri, 10/02/2006 - 11:30pm

Well, I want to generate random passwords for people I give subdomains.

Since creating the subdomain involves a lot of steps, I decided to automate it a bit.

And since I only install the most needed things on the server, I decided to create a small script to generate the random password for me as I don't feel like installing a password generator.

dd if=/dev/random count=10 bs=1 | hexdump  | cut -d \  -f 2-| head -n 1 | tr -d " "

Now the only 2 problems with the above script are:
1) No upper case letters.
2) No special characters.

I don't really think that the above problems are fatal since the user will change the password after that to something stupid, Why ? Because users are idiots, They are not as smart as me ;-)


Minimalistic RSS feed aggregator.

Submitted by msameer on Wed, 08/02/2006 - 12:56pm

Ali of OpenCraft wanted an RSS feed aggregator that'll display the latest items like what we see on the T.V.

I had a perl script that'll grab the latest items and email them to you. I modified it to print the titles to the standard output. You can then use osd_cat to display it.

Now what ? I thought that I can rewrite it to use the traditional UNIX tools and the end was:

cat rss.xml  | sed -e 's/<title>\([^<]*\)<\/title>/\1/g' | tr -s " " | grep "^ \w"  | sed -e 's/^ //'


No more phaeronix contributions for me.

Submitted by msameer on Thu, 19/01/2006 - 4:39pm

No more phaeronix contributions for me.

Please, I hate this ....... .

Note to self: Be prepared for a lot of depressing things and a lot of discussions the following days.


AfricaSource 2, I'm back

Submitted by msameer on Wed, 18/01/2006 - 2:42am

I'm back.
I did it again and pissed in the source of the nil for the last time on the last night.
Next day we had to empty the resort, The last bus left at about 12, Damn that long way.

Nuagara hotel was full, We had to spend the night in another one called Antonio sessions club or whatever. No, I won't be able to say goodbye to my friends :-(

I slept early, Next day we were supposed to go to the city, But they told me that I have to go to Niagara because there's a bus leaving to the airport.
Good, I can say goodbye to all my friends.

To the airport and the 1st kiss in my life ;-)
Flight delay again.
Departure at 8:15 or so, It was supposed to b at 5:40

To Adis Ababa, The other flight to Cairo airport and here I'm!

Downloading my email.


fun++

Submitted by msameer on Wed, 11/01/2006 - 10:27am

yesterday i attended a session about computers and disability.

arun is amazing. i met him in india at asiasource but i didn't know that he's teaching bnd people programming.
i've got my batteries charged by yesterday and i'm back to photos.

it's raining since today morning.

short posts but i'm blogging from my ipaq.


Do you want to play with a GNU/Linux server ?

Submitted by msameer on Thu, 05/01/2006 - 3:10pm

This is my old VPS and I won't renew it.

Host: naboo.vpsland.com
User: root
Pass: root
OS: Debian sarge.

Use ssh!

You won't be able to add users or change the root password. If you discover how then you deserve it ;-)


وداعا 2005

Submitted by msameer on Mon, 02/01/2006 - 1:12pm

ساصر على الكتابة بالعربية هذه المرة

عام 2005 لم يكن عاما عاديا بلنسبة لى
بل كان مشحونا بالاحداث و النجاح و الفشل و القلق و الحزن و ...

لا مش هاكتب فصحى
عايز اعبر عن نفسى احسن

على مستوى العمل التطوعى و البرمجيات الحرة

رحت الهند اول السة للمشاركة فى معسكر TTC كممثل عن عربايز بالرغم من عدم كونى عضو فى الفريق التنيمى

شاء القدر بعد ذلك ان انضم الى الفريق التنظيمى و لكننى قررت تركه بعدها بعدة اشهر بعد ان فاض بى

المهم كنت ضمن الفريق الذى يحاول نقل خبرات اقلمة localization البرامج الى لحارين

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

التنمية العربية و تجربة التعاون مع الجامعة لتدريس جنو لينوكس

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

حضرت ايضا الانحسار الخاص بمجموعة جنو لينوكس مصر بالرغم ن محاولة احاءها بيوم اللينوكس فى شهر سبتمبر لكن اعترف اننا فشلنا هذا العام فشل ذريع!

رحت الاردن فى شهر 7 اللى فات اتكلم هناك عن البرااامج لحرة و عن حالة البرامج من حيث الاقلمة

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

بس السنة دى شهدت تحول foolab.org و home.foolab.org الى امتدادات شخصية لى و الربط بين الاثنين اصبح اكثر

اذكر فى احد الايام كنت امر بعدة مشاكل فى نفس الوقت و كانت القشة التى قصمت ظهر البعي هى مشكلة على السيرفر

المهم

تقنيا انا ممكن اكو ابتديت اعمل حاجا مبهرة لنفسى بالرغم من انها ليس لها تاثير كبير

كنت شغال اول السنة فى IT Synergy و انتهى بى العام فى OpenCraft و الفرق بين الاثنين شاسع بدون الدخل فى تفاصيل لان هذه اسرار عمل

المؤسف انىتركت IT Synergy و انا كاره لها
ما اقدرش انك انى اتعلمت كتير منها "مش تقنيا" لك كاسلوب تعامل و تصرف و حياة بالرغم من ان هناك اشياء لم استطع تطيقها و ادت الى فشل التجربه لكن اقدر اقول ان التاثيرات الايجابية كانت كتير و الكثير منها اثر فى فلسفتى الخاصة فى الحياة " التى اكتشفت كم هى ربة بعدها بعدة شهور!" كثير من المواقف كانت تحدث و كانت تتطلب تحليل ليس على مستى العمل فقط و انما على المستوى الشخصى ايضا
شكرا يوسف بالرغم من تالم لفقدك كصديق لكا اسعدنى اللقاء معك بالامس لانى قد بدات استعيدك مرة اخرى... و كفى!

من الناحية الانسانية OpenCraft اجمل

حد اهم الاكتشافات هى ان "الفلوس مش كل حاجة" فى فرق كبير ان الواحد يكون عارف كده نظرى و انه يجربه عملى

المحطة اللى قبل كده كمان كانت فى الهند
الاقى نفسى فجا لوحدى فى مكان من غير تشجيع من احد بالرغم من ان كل شىء يتحرك بالقصور الذاتى"
لا اتعلمت كتير يمكن حاجات م قادر اوصفها بس خبرة فى التعامل مع الناس وفى نشر البرامج الحرة و فى بناء مجتمعات
خبرة غريبة

ى مارس كان مؤتمر البرامج الحرة و التنمية و وقفت اتكلمت امام 80 مستمع
حاجه عمرى ما عملتها و اكيد دى ساعدتنى فى الاردن و خليتنى يوم اللينوكس اقف من نفسى و اشرح للناس تاريخ الجنو لينوكس و اكلمهم ليه هو مهم.

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

اكتشفت بعد كده انى حرام ارتبط بواحده لان مع الاسف شايف انى مش ممكن اسعدها. و دى برضو عملالى شكله
دى مشكله هاتفضل كتير لحد ما اعرف احلها

2005 يا 2005 ايه تانى ؟
قررت ان ابدا مشروع لبرمجة مدقق املائى عربى ر لان مع الاسف واضح ان مش هايتعمل لو انا ماعملتوش
انا حبل افكارى انقطع
كفاية كده


From Arab Source to Africa Source.

Submitted by msameer on Sun, 18/12/2005 - 9:09am

Arab source brainstorming meeting is over. I'm tired, My left eye is stillhurting.
I really need a vacation as I didn't spend an hour at home during the last2 days except to sleep.

Being busy didn't give me time for my personal feelings, I guess this might be good.

The participants were cool, With a few small exceptions; I guess it was fine.

Now I need to prepare my Uganda trip.


He is STUPID, I swear.

Submitted by msameer on Thu, 24/11/2005 - 11:37pm

When I say that certain places in this world are characterized by stupid people, No one should blame me. And here's a proof!

[00:43] --> You are now talking on #eglug
[00:47] <SmartUnix> hmmmmmmm what about my problem now , what should i don't
[00:47] <SmartUnix> do *
[00:48] <MSameer> SmartUnix: wat is your problem ?
[00:48] <SmartUnix> i can't install SuSE
[00:49] <MSameer> SmartUnix: can't install is a vague thing, what's EXACTLY your problem ?
[00:49] <xfree> SmartUnix,more info please>>>>
[00:49] <SmartUnix> ok , it's SuSE Linux 10 , i try to install it in 5 GB partition
[00:50] <SmartUnix> it's Toshiba laptop
[00:50] <SmartUnix> A10 , pantuim 4 2.0 GHz
[00:50] <xfree> SmartUnix, is this L10 or so stalitte
[00:50] <SmartUnix> it's satellite
[00:51] <MSameer> SmartUnix: we don't care about the laptop, we care bout your problem, give us more details please
[00:51] <SmartUnix> when i install SuSE it's hang , stop
[00:52] <MSameer> SmartUnix: hang when ?
[00:52] <MSameer> during the boot, during the install, ..........
[00:52] <SmartUnix> when it's install package
[00:53] <MSameer> SmartUnix: during package installation ? in the beginning or in the middle ?
[00:53] <xfree> SmartUnix, try other DVD
[00:53] <SmartUnix> in the beginning
[00:53] <SmartUnix> it's install some package
[00:53] <SmartUnix> then it's jang
[00:53] <SmartUnix> hang *
[00:53] <MSameer> SmartUnix: is the CD damaged ?
[00:54] <SmartUnix> i don't know
[00:54] <xfree> SmartUnix, did you have other PC
[00:54] <SmartUnix> yes but it's old
[00:54] <MSameer> SmartUnix: try to copy all the cd contents to your hard drive to verify
[00:55] <SmartUnix> ok then what should i do
[00:55] <MSameer> SmartUnix: then tell us whether it worked or not :P
[00:56] <MSameer> if the cd is damaged then that's it, otherwise we gotta thing of other reasons
[00:56] <SmartUnix> :D do you mean i copy cd contents then ?
[00:57] <MSameer> ?
[00:57] <SmartUnix> you say this
[00:57] <SmartUnix> "try to copy all the cd contents to your hard drive"
[00:58] <MSameer> i did
[00:59] <SmartUnix> ok , then what should i do ?
[00:59] <MSameer> [00:55] <MSameer> SmartUnix: then tell us whether it worked or not :P
[00:59] <SmartUnix> hmmmmmm
[01:00] <SmartUnix> ok
[01:09] <SmartUnix> :\
[01:11] <SmartUnix> i will resize partition from 5 GB to 10 GB
[01:11] <SmartUnix> then i will try to install it agian
[01:12] <SmartUnix> brb :)
[01:12] <MSameer> SmartUnix: did you try copying the CD ?
[01:12] <SmartUnix> no i still don't copying it
[01:12] <SmartUnix> becuase i don't know how i can use it
[01:13] <MSameer> SmartUnix: and youll retry installing without copying ?
[01:13] <MSameer> damn it
[01:13] <SmartUnix> copying to hardisk ?
[01:13] <MSameer> SmartUnix: you are copying it just to verify that the damn thing is not corrupted
[01:13] <MSameer> AUP
[01:13] <MSameer> BooDy: help him please
[01:13] <MSameer> i'm out of this
[01:14] <SmartUnix> ok if it's not corrupted , what is the result will show
[01:14] <SmartUnix> ?
[01:14] <xfree> SmartUnix, the MSameer give you smart way to test your DVD/CD ;)
[01:14] <SmartUnix> :) and i am still don't understand it
[01:14] <MSameer> SmartUnix: honestly ? stay with windows
[01:15] <SmartUnix> ok , thanks :)
[01:15] <xfree> SmartUnix, open this cd/dvd and use CTRL-A then create new folder on your desktop than paste it here
[01:16] <MSameer> SmartUnix: wen you copy the CD, if it's corrupted it won't copy it completely
[01:16] <MSameer> SmartUnix: got the point ?
[01:16] <SmartUnix> this information i asked you about :)
[01:17] <SmartUnix> ok i am starting copy
[01:17] <MSameer> what info ?
[01:17] <MSameer> SmartUnix: is it hard ?
[01:17] <SmartUnix> "if it's corrupted it won't copy it completely"
[01:17] <BooDy> MSameer, sorry its dinner time can't help anyone. if my father wants to install GNU/linux now I'll leave him alone
[01:17] <MSameer> BooDy: you kow my favorite channel ? ;)
[01:17] <xfree> MSameer, did you know if the suse come with test cd/dvd like redaht does?
[01:17] <MSameer> SmartUnix: use your freaking mind
[01:17] <MSameer> xfree: no idea honestly
[01:17] <BooDy> MSameer, no
[01:18] <MSameer> xfree: never used suse
[01:18] <MSameer> xfree: but it might be possible if you feel like trying with him :P[01:19] <xfree> MSameer, than what late me guess debian :)
[01:19] <SmartUnix> Cannot copy INSTALL : Cannot read the source file or disk
[01:19] <MSameer> SmartUnix: corrupted CD
[01:20] <xfree> SmartUnix, "if it's corrupted it won't copy it completely" ;)
[01:20] <SmartUnix> lol
[01:20] <SmartUnix> that's mean no Linux
[01:20] <MSameer> SmartUnix: please man please use your brain
[01:20] <MSameer> SmartUnix: where do you live ?
[01:20] <MSameer> SmartUnix: DSL or dial up ?
[01:20] <SmartUnix> dial up
[01:20] <MSameer> SmartUnix: where do you live ?
[01:21] <SmartUnix> in the arabian country ;)
[01:22] <MSameer> SmartUnix: you are in Kuwait
[01:22] <SmartUnix> that's right
[01:22] <MSameer> SmartUnix: i aske ubecause i might know someone near you to hand a you a copy
[01:23] <SmartUnix> :)
[01:23] <MSameer> SmartUnix: but honestly, Sorry even if I know, I won't try to arrange something for you
[01:23] <MSameer> guys, I'll violate the AUP
[01:23] <xfree> MSameer, wow you are kindly persone than i imagen :)
[01:23] <BooDy> MSameer, don't
[01:23] <MSameer> SmartUnix: you are a worthless DNA, this human behaviour can't be expected from someone outside a certain area you live in and I'm now more sure about it
[01:24] <MSameer> xfree: i'm not that kind
[01:24] <BooDy> MSameer, kick yourself
[01:24] <MSameer> xfree: i did ask him to arrange something for him, but i's very obvious tht he doesn't need that hep
[01:24] <MSameer> BooDy: nop, this is not a violation
[01:26] <MSameer> SmartUnix: and i guess that the best thing you should do is to ask the pink dragon what you should do every day when you wake up, I'm sure that by following his answer - which is something I doubt - you'll be a better person or at least more usefl if not to yourself then it'll be to the surrounding environment
[01:28] <SmartUnix> ok , thank you for this advice :)
[01:31] <SmartUnix> and thanks for the great method :)