tag:blogger.com,1999:blog-41462364361162436022024-02-21T08:11:57.432+01:00Opensource LifeMohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comBlogger46125tag:blogger.com,1999:blog-4146236436116243602.post-52514923391187687432011-09-24T12:27:00.002+02:002011-09-24T12:27:48.687+02:00Back<div dir="ltr" style="text-align: left;" trbidi="on">
BACK........</div>
Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-51718832846875490662010-08-23T17:29:00.003+02:002010-08-23T17:35:29.135+02:00Installing TTF Fonts in GNOME<span class="Apple-style-span" style=" color: rgb(51, 51, 51); line-height: 19px; font-family:Verdana, sans-serif;font-size:13px;"><h3 class="post-title entry-title" style="margin-top: 0px; font: italic normal bold 141%/normal Arial, sans-serif; letter-spacing: -1px; color: rgb(255, 102, 51); "><span class="Apple-style-span" style="font-family:Verdana, sans-serif;color:#333333;"><span class="Apple-style-span" style="font-style: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; font-size:-webkit-xxx-large;"><span class="Apple-style-span" style=" ;font-size:13px;"><span style=" ;font-family:arial;"><span style="font-weight: bold; ">1.</span> Open a nautilus window. Type "<span style="color: rgb(255, 0, 0); ">fonts:///</span>".<br /><br /></span><span style=" ;font-family:arial;"><span style="font-weight: bold; ">2.</span> Open another nautilus window. Browse to the directory where your ttf fonts are.<br /></span><span style="font-weight: bold; "><br />3.</span> Drag and drop ttf fonts from your font window (Step 2) to main font window (Step 1).<br /><span style="color: rgb(102, 0, 204); ">Notice: You wont see the dropped files immediately in nautilus.</span><br /><span style="font-weight: bold; "><br />4.</span> Now you should see the fonts in .fonts directory in your home directory.<br /><span style="font-weight: bold; "><br />5.</span> Logout.</span></span></span></h3></span>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-43439544223195120342010-08-21T12:05:00.000+02:002010-08-21T12:11:48.414+02:00Gentoo Mirrors: Mixed IPv4/IPv6 rotations<span class="Apple-style-span" style="font-family: 'Lucida Grande', Verdana, Arial, sans-serif; font-size: 10px; color: rgb(68, 68, 68); "><p style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; "><em>Prenote: According to <a href="http://tunnelbroker.net/" style="color: rgb(34, 85, 136); text-decoration: none; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(221, 221, 221); ">tunnelbroker.net</a> there are only 426 days until IPv4 exhaustion, at the time of this writing.</em></p><p style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; ">You might have seen me say that the mirror-admin team will support IPv6 rotations “soon” multiple times. It took much discussion, mainly because it is a low priority subject, and thus much time as well. I say it is low priority because on our official IPv6 (<em>rsync.ipv6.gentoo.org</em>) rotation we only see about ~10-15 client syncs per day out of ~23000. <em>Yes, there will be some stats generated “soon” for some value of soon <img src="http://blog.jolexa.net/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; " /> </em>. We decided to move away from dedicated v4 and v6 rotations and instead used mixed rotations.</p><p style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; ">But, I digress, the point of this post is to highlight that the <em>rsync.de.gentoo.org</em> rotation will be the first to get full IPv6 support. That is, if the sponsor has IPv6. I just added one IPv6 mirror to the rotation now. In a few days, I’ll make a call to other members in the de rotation and then it will be declared full support to the extent possible. From there, the timeline will go something like this:</p><ol><li style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; ">Call for more .de mirrors that have IPv6 to get added to the rotation</li><li style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; ">Call for the rest of the community mirrors that have IPv6 to get added to the rotations, not just .de.</li><li style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; ">Wait some time to let that settle out and see if there are any problems that develop.</li><li style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; ">Enable mixed rotations on the country rotations using the individual country v6 addresses collected above.</li><li style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; ">Enable mixed rotation on <em>rsync.gentoo.org</em> and deprecate <em>rsync.ipv6.gentoo.org</em></li></ol><p style="margin-top: 0px; font-size: 1.2em; line-height: 1.5em; text-align: justify; ">For clients, the default behavior of rsync on an IPv6 capable system is to use IPv6 if the DNS query returns some v6 address. If you want to explicitly use IPv4 you need to pass “-4″ to rsync. You can specify that in <code style="font-size: 12px; background-color: rgb(248, 248, 248); color: rgb(17, 17, 17); ">/etc/make.conf</code> with the <code style="font-size: 12px; background-color: rgb(248, 248, 248); color: rgb(17, 17, 17); ">PORTAGE_RSYNC_EXTRA_OPTS</code> variable. Rsync does the proper thing most of the time as my testing has revealed. With that said, I don’t anticipate any issues here, but please file a bug to mirror-admins if something comes up. I would be very interested in hearing about it. I’m assuming no issues, so the future plans will not be announced and it will just happen.</p></span>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-1235368456859521282010-08-21T12:04:00.000+02:002010-08-21T12:05:41.225+02:00Auto_increment fun!<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, Geneva, sans-serif; font-size: 12px; color: rgb(51, 51, 51); line-height: 18px; "><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; ">Discovered some fun things in MySQL today..</p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; ">Set the variable @id to 0:<br /><code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">SET @id = 0;</code></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; ">Update the column id to be id + 1 – this will re-index your id column in one fell swoop. Very nice:<br /><code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">UPDATE tblname SET id = (@id := @id + 1);</code></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; ">Set the first value for an auto_increment column:<br /><code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ALTER TABLE tblname AUTO_INCREMENT = 196;</code><br />(this won’t work if there are rows with a higher value already in the table)</p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; ">All in all, a few nice bits and pieces for cleaning up your tables.</p></span>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-87240762358369496562010-08-21T12:03:00.000+02:002010-08-21T12:04:38.828+02:00MySQL 5 and old clients (like php4)<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, Geneva, sans-serif; font-size: 12px; color: rgb(51, 51, 51); line-height: 18px; "><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; "><code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /blah/somepage.php on line 123</code></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; ">The reason for this warning is because PHP4 can’t communicate with a MySQL5 server unless it’s using old passwords (set by using the OLD_PASSWORD() function below.)</p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; ">There are two simple ways to fix this. The first would be to upgrade your version of php. Unless you *really* need php4 (or below?!) upgrade! I’m not sure php4 is supported any more and should be considered a security risk. If you can’t upgrade, just do this in your database:</p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; "><code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">update mysql.user set password=OLD_PASSWORD('thepassword') where user = 'theusername';</code><br />and:<br /><code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">flush privileges;</code></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; ">This should do the trick. Be warned, if you issue any GRANT statements after this you will have to update mysql.user again.</p></span>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-3411181703387379092010-07-18T08:18:00.002+02:002010-07-18T08:21:32.879+02:00ACMNow<div><br /><div><span class="Apple-style-span" style="font-family: Arial, Geneva, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">I am Professional member of ACM</span></div></div><div><span class="Apple-style-span" style="font-family: Arial, Geneva, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br /></span></div><div><span class="Apple-style-span" style="font-family: Arial, Geneva, sans-serif; font-size: 13px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span class="Apple-style-span" style="font-family: arial, sans-serif; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: small; line-height: 15px; "><em style="font-weight: bold; font-style: normal; ">ACM</em>, the world's largest educational and scientific computing society, delivers resources that advance computing as a science and a profession.</span></span></div>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-4447766809230731582010-07-12T22:56:00.000+02:002010-07-12T22:57:23.625+02:00Living with Linux<span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 13px; line-height: 18px; ">As you all know I am a Linux Lover. If you didn't know then you do now :) I use Linux at home, at work and I will blather on about it given half of a quarter of a chance. So what! You may think. Just another pot bellied four eyed long haired geek who still wishes he had his pocket protector. True, I am one of those people, although I never had a pocket protector and my belly is quite a bit larger than a pot :) I was the same sort of person when I was just as in love with windows as I now am with Linux. The person I am has not changed, except for domestication caused by marriage. Just the operating system.<br /><br />I still do use windows occasionally for some things at work and for compiling the windows versions of my parts catalogue program. I use windows so little that it does not even deserve a separate partition on my hard drive. I run it under a virtual box session so I never need to reboot my computer, which runs 24/7. Even when I was a windows advocate my computer ran 24/7. Computers should run 24/7 so they can do work and plot with each other over the internet about how to take over the world :)<br /><br />Right now I am not at my usual place typing this article. I am currently sitting in a house, over 400 kilometres away (you guys who have twelve fingers and toes can convert it yourselves :) typing this on my daughters laptop. This laptop is, of course, running Linux. It took a while but my daughter was finally fed up with the speed and virus infestations of her windows and asked for Linux to be installed.<br /><br />There is also, next to me, another faster, newer shinier laptop which I can use. It runs windows. I have used it once to check my mail before I pulled this laptop out of the car. Only once and only for a very short time and I will explain why.<br /><br />I was scared to use the windows laptop! It was a previously unseen machine and I had no idea what state it was in. As a computer professional and knowing the ways of windows I was understandably wary of what junk could be on that laptop. So what was the first thing I did? I checked the anti-virus program to make sure it was up to date and had no virus's. Somewhat assured I checked my mail and closed it down quickly. Even though I saw that the windows machine had been protected by a better than average user I still didn't trust it. When we pulled my daughters laptop out of the car I booted it up and did my banking work in a Linux environment that I knew I could trust.<br /><br />Be assured that I am not trying to be a Linux is safe, windows is rotten campaigner. Not in this article anyway :) This is exactly how I felt and always feel when I come across a windows machine. This is not a good feeling and I really don't like it but it is there. This is what happens in real life. I don't want to plug in anything to, or use, a windows machine unless I have properly vetted the machine for virus's. Unfortunately I can't always do that and have been bitten.<br /><br />This happened to me with a relatives windows computer. They appeared to be quite knowledgeable with computers and certainly were not a clueless (l)user. They even had antivirus running and I had also done a scan before plugging in my flip video camera (thanks ITtoolbox!). The antivirus program did not pick up any malware but that computer still infected my flip camera. As I found out when I plugged it back into my Linux system and saw the damage that virus had done. So, once bitten and twice shy as they say, I do not want to even touch a windows computer if I can help it. At least windows computers that I do not have complete control over.<br /><br />In my life before Linux I also had the same feelings with other computers. It seems to be a part of knowledgeable windows users life to be unsure. Unsure if the computer has virus's, unsure if it has other malware or not. Unsure about their computer integrity and safe useage. It is a sad state of affairs but it is true, unless these people are using rose coloured glasses and refusing to see the danger.<br /><br />When I am using Linux I have no worries about that sort of stuff. I am not scared to go and do my banking online. I feel that my computing integrity is not so easily compromised when I am on a Linux machine. I know that when I plug in my flip camera or memory stick I will not be left with a nasty present. For me, my life with Linux is comfortable, safe and secure. I feel sorry for those who cannot use their computers with the same sort of feeling. At least those who know about the dangers of computer malware. Yes I do know that there is malware and malicious users for Linux as well. I also know that I am ninety percent more likely to be shafted by a windows computer than a Linux one.<br /><br />Yes, a properly looked after and protected windows computer is safe. As is a misconfigured Linux computer unsafe. What are the chances of coming across the former compared to the latter? What are the chances of being stung by a windows machine compared to a Linux one? You tell me in the comments. I already know what I think :)<center><p><i>"I get paid to support Windows, I use Linux to get work done."</i></p></center></span>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-61099492865356651552010-07-09T20:28:00.003+02:002010-07-09T20:36:04.413+02:00Love<span class="Apple-style-span" style=" color: rgb(51, 51, 51); font-family:'lucida grande', tahoma, verdana, arial, sans-serif;font-size:11px;"><h3 class="UIIntentionalStory_Message" ft="{"type":"msg"}" style=" color: rgb(51, 51, 51); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: normal; overflow-x: hidden; overflow-y: hidden; font-size:13px;"><span class="UIStory_Message">Who the Hell Do U think U are?!!! Yes U're My Love! But first Love And not even The last ;) Lies Lies Lies! Free lies :X So I give Them To U for Free:) Go Away =) Im gonna Find a better LOVE! haha </span></h3></span>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-82615233036903872652010-07-08T06:15:00.012+02:002010-07-08T07:39:17.274+02:00June / July<div style="text-align: center;"><span class="Apple-style-span" style=" color: rgb(51, 51, 51); line-height: 19px; font-family:tahoma, Verdana, Arial, sans-serif;font-size:-webkit-xxx-large;"><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; direction: rtl; text-align: left; "></p><div style="text-align: left;"><span class="Apple-style-span" style=" ;font-size:small;">June 12th was my last day at FarsiWeb.</span><br /><span class="Apple-style-span" style="font-size:small;">July 5th was my last day at </span><span class="Apple-style-span" style="font-size:small;"><a href="http://www.iosn.net/" style="color: rgb(153, 68, 68); text-decoration: none; ">International Open Source Network</a>.</span><br /><span class="Apple-style-span" style=" ;font-size:small;">But In a couple of weeks I will start working for...</span><br /><span class="Apple-style-span" style=" ;font-size:small;">July 12th back to iran .</span><br /><span class="Apple-style-span" style=" ;font-size:small;">July 25th I am @ Netherlands without my best Friend. :((</span><br /><span class="Apple-style-span" style=" ;font-size:small;">That’s all for June and July.</span><br /><span class="Apple-style-span" style=" ;font-size:small;"> Now ! Spanish ! :))</span></div><p></p></span></div><span class="Apple-style-span" style=" color: rgb(51, 51, 51); line-height: 19px; font-family:tahoma, Verdana, Arial, sans-serif;font-size:12px;"><p></p></span>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-68159178899196884522010-06-15T11:56:00.000+02:002010-06-15T12:02:03.799+02:00Interesting links...Being a part of the FOSS community means exchanging ideas... constantly. Well I definitely received a lot of ideas over the weekend at SouthEast LinuxFest. Lots of people from various geographic locations and different communities coming together is always a good thing!<br /><br />So I collected a few URLs that I thought were worth passing along...<br /><br />http://opensource.com/<br />Red Hat's "why to be opensource" website. Very good information.<br /><br /><br />http://whatwillweuse.com/<br />Apparently this page was created as a bet to see whether or not Microsoft would have a majority market share by SELF 2011. I guess we'll have to wait and see.<br /><br />http://www.slideshare.net/macoafi/sysadmins-rosetta-stone<br />Mackenzie Morgan's presentation from last year's Ohio Linux Fest for Sysadmins.<br /><br />http://geekfeminism.wikia.com/wiki/Southeast_LinuxFest<br />A study on women in technology and more specifically what are the trends of women presenters at area linux fests. Good to see the trend on the upswing.Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-87663743403759505282010-05-14T09:53:00.000+02:002010-05-14T09:54:05.881+02:00What is new in Fedora 13 ?<span style="color: purple;">Automatic Print Driver Installation : </span>gutenprint-packages such as cups, hpijs and pbm2l2030 must be installed on demand when the hardware that require drivers are detected.<br /><br /><span style="color: purple;">Color Management : </span>Color Manager GNOME session is a framework that makes it easy to handle, install and create color profiles in the GNOME desktop<br /><br /><span style="color: purple;">Easier Debugging Python : </span>The gdb debugger has been extended so that it can communicate detailed information about the inner workings of Python 2 and Python 3 runtimes <br /><br /><span style="color: purple;">3D Support: </span>In Fedora 12 experimental support for 3D through-mesa-dri package-experimental drivers for ATI cards became available and has been expanded in Fedora 13 to support the systems through Nouveau Nvidia Driver.<br /><br /><span style="color: purple;">PulseAudio Integration KDE :</span> Fedora 13 offers a better integration of PulseAudio in Phonon KDE and KMix<br /><br /><span style="color: purple;">Bluetooth DUN NetworkManager:</span> NetworkManager now supports easy-to-use Bluetooth Dial-Up Networking (DUN) support.<br /><br /><span style="color: purple;">Include include Gnome 2.30.</span><br /><br /><span style="color: purple;">Mobile NetworkManager Status :</span> The NetworkManager applet shows the current signal strength, technology (GPRS / EDGE / UMTS / HSPA or 1x/EVDO etc), and roaming status while connected to the cards which support this functionality.<br /><br />Fedora 13 SC have KDE 4.4, GNOME 2.30, support NFSv4, RPM 4.8, support both Python 3 and Python 2.x, OpenOffice.org 3.2.0, the Sugar desktop 0.88 (famous for its integration into the XO laptop One Laptop Per Child project), Firefox 3.6.2, and Upstart 0.6.0.Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-75160997453637836872010-05-14T09:51:00.000+02:002010-05-14T09:53:12.639+02:00How to Root login on Ubuntu 10.04Ubuntu root access was blocked by default for GUI. For Enabling This you need to reset password for root.<br /><br />once password for root is reset. You can login root on GUI using <b>Other..</b> option available on <b>Login Screen</b><br /><br />Use the following command to Reset root password<br /><br /><b>$ sudo passwd root</b>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-9568044984992694512010-04-14T16:41:00.000+02:002010-04-14T16:42:48.966+02:00Remove Mint and Welcome KarmicIt seems that Mint users are not as much as i thought, so after some consideration, i deleted the Linux Mint repository. After all, the repository is very small, as most of Linux Mint's packages are taken from Ubuntu Karmic Koala, so i guess it's better to have Karmic's repository, so it can be used by Linux Mint users and also Ubuntu 9.10 (Karmic) users.<br /><br />So few hours ago, i started to modify the rsync script to add Karmic repository for i386 and amd64 architecture. I don't know how much space is needed to add this repository, but i'm hoping that it will be finished by tomorrow morning.Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-59926668293762254242010-04-12T01:36:00.002+02:002010-04-12T01:42:49.722+02:00How To hide Apache2 version Information from hackersSome times we need to hide apache banner information, because hackers check version details, before attacking a sever, If you close this door, it is more difficult for them to exploit any system holes and thus making vulnerability scanners work harder and in some cases impossible without knowing version information.<br /><br /><span style="font-weight: bold;">Do the following steps </span><br />Modify<span style="color: rgb(51, 51, 255);"> </span><span style="color: rgb(51, 51, 255); font-weight: bold;">/etc/apache2/apache2.conf </span><br />Change the <span style="color: rgb(51, 51, 255); font-weight: bold;">ServerSignature on</span> to <span style="color: rgb(204, 0, 0); font-weight: bold;">ServerSignature Off </span><br />Change the <span style="color: rgb(51, 51, 255); font-weight: bold;">ServerTokens full</span> to: <span style="color: rgb(204, 0, 0); font-weight: bold;">ServerTokens Prod</span><br />Restart Apache: <span style="color: rgb(51, 51, 255); font-weight: bold;">/etc/init.d/apache2 restart </span>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-29097084707032757162010-04-12T01:28:00.005+02:002010-04-12T01:43:12.722+02:00How to start PHP Programming. Write your First Program in PHPHere I will show how to start php programming. Lot of my friends like php, but there is a starting trouble. This will help you to write your first php program.<br /><p><br />You need to install LAMP (Linux Apache, Mysql, PHP )Server.<br /><br />Now you can check your Apache webserver<br /><br /><span style="color: rgb(0, 0, 153);">Open a browser (firefox) and type <span style="font-weight: bold;">http:// 127.0.0.1</span> in address bar</span><br /><br />It Shows " <span style="color: rgb(153, 51, 0); font-weight: bold;">It Works</span> "<br /><br />Now you can test your PHP<br /><br />See your server root is pointed to the folder /var/www by default. So you have to save your programs in /var/www. But There is a problem, you can't write in to the folder /var/www as ordinary user, it needs root privilege . (I am using gksu for solving this proble, it will ask for your sudo password)<br /><br />open a terminal type the following<br /><br /><span style="color: rgb(0, 0, 153);">$cd /var/www</span><br /><br /><span style="color: rgb(0, 0, 153);">$ gksu gedit helloworld.php</span><br /><br />write the program<br /></p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir1se4pIdeKZelmEbxd-deUSO8i0_yihrSu71jm5BWtB7R70Te-KoruU1EPzyeRud8UxZi-alUnph4v2jdoDDky-u4AsFHd2ll26fOB_FFtdtxiSFG4LU5lUShB6m1DYJclSNiqzzEWED-/s1600/Untitled.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 169px; height: 75px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir1se4pIdeKZelmEbxd-deUSO8i0_yihrSu71jm5BWtB7R70Te-KoruU1EPzyeRud8UxZi-alUnph4v2jdoDDky-u4AsFHd2ll26fOB_FFtdtxiSFG4LU5lUShB6m1DYJclSNiqzzEWED-/s400/Untitled.png" alt="" id="BLOGGER_PHOTO_ID_5459027814569895714" border="0" /></a><br /><br /><br /><br /><br />now <span style="font-style: italic;">save and quit</span><br /><br />open browser (firefox)<br /><br />type the following in the address bar<br /><span style="color: rgb(0, 0, 153);">http://127.0.0.1/helloworld.php</span><br /><br />Now You will get the result in the browser<br /><br /><span style="font-weight: bold; color: rgb(0, 0, 153);">" hello world"</span><br /><br />Now your First PHP program is Working<br /><br />write valuable comments for helping php beginnersMohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-36278625862453756892010-04-10T22:27:00.000+02:002010-04-10T22:29:16.334+02:00Ubuntu 10.04 Beta 2I have downloaded the latest <a href="http://www.ubuntu.com/testing/lucid/beta2">Ubuntu 10.04 Beta 2</a> and install it on VMWare. Unlike the previous Beta, this version works and i can use it without any problem. The first beta couldn't finish the installation and the installer crashed during copying the files.<br /><br />My first impression about 10.04 is the speed. It loads very fast even on VMWare and i can get into login prompt in less than 5 seconds. If you enable auto login, you will get your desktop in less than 10 seconds. That's very nice of it.<br />Another thing that is unique in 10.04 is the <a href="http://lwn.net/Articles/381546/">left-orientation</a> of the window control buttons, such as close, minimize, and maximize button. It's like what we see in Mac OS X. It seems that Ubuntu designers have adopted Mac-like design. I hope users will not complain about this.Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-74047369290352772792010-04-08T19:31:00.002+02:002010-04-08T19:32:36.717+02:00Essential Keyboard shortcuts in Ubuntu LinuxKeyboard Shortcuts will increse your efficiency of Computer user. Here you can see some essential shortcuts for ubuntu<br /><br /><span style="color: rgb(51, 51, 255);">Desktop Shortcuts</span><br /><br />* Alt + F1: Open main menu.Use up/down/right/left arrow keys to select in Applications/Places/System.<br />* Alt + F2: Run Application.This will bring up a window,type command to run an application.<br />* Print Screen: Make a screenshot of whole screen.<br />* Alt + Print Screen: Make a screenshot of current window.<br /><br /><span style="color: rgb(51, 51, 255);">Windows Short Cuts</span><br /><br />* Alt + F4: Close the current window.<br />* Alt+F5 Returns window to 'normal' or previous size.<br />* Alt+F7 Moves the current window<br />* Alt+F8 Resizes current window<br />* Ctrl + Alt + d: This will minimize all windows and apps,and bring you to desktop.<br />* Alt + F9: Minimize the current window.<br />* Alt + F10: Maximize the current window.<br />* Alt + Tab: Switch in windows.<br /><br /><span style="color: rgb(51, 51, 255);">System Short Cuts</span><br /><br />Ctrl + Alt + Delete - Restart the computer immediately, without saving open files<br />Ctrl + Alt + BackSpace-Restart X Windows<br />Ctrl + Alt + Plus (numeric keypad) - Rotate through supported screen resolutions<br />Ctrl + Alt + Minus (numeric keypad) - Rotate backwards through supported screen resolutions<br />Ctrl + Alt + F1 --- F5 - Open Virtual Terminal<br />Ctrl + Alt + F7 - Return to Graphics screen from Virtual TerminalMohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-89383329876346733312010-04-08T19:29:00.001+02:002010-04-08T19:29:43.272+02:00KubuntuI'm also testing the new kubuntu on my vmware (currently, it's still installing at the time i wrote this blog post). It's Kubuntu 10.04 Beta 1 and i will try to update all the packages using the repo that i have created.Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-34358717007977106332010-04-07T01:52:00.001+02:002010-04-07T01:52:57.847+02:00Modeling Tools for LinuxIf you are looking for UML or any other development tools on Linux platform, don't forget to check it's <a href="http://www.visual-paradigm.com/download/">download page</a>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-18681378447306404262010-04-06T19:44:00.003+02:002010-04-06T19:54:48.637+02:00GNOME 2.30 Build Order<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVeVQGzmXvn4OXmTBmLo18-M_3vHSy-AtRRi7DHRwDrzjmxLfaK4Q4ecj3YomsFaUbepsVIjNrzOxoBnbzcMQY4blDVFCsFKGqqcBgOuaOKPtSIbzTpsEE5F8RvbIzG0VlY52fETE1myyb/s1600/gnome_logo.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 264px; height: 320px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVeVQGzmXvn4OXmTBmLo18-M_3vHSy-AtRRi7DHRwDrzjmxLfaK4Q4ecj3YomsFaUbepsVIjNrzOxoBnbzcMQY4blDVFCsFKGqqcBgOuaOKPtSIbzTpsEE5F8RvbIzG0VlY52fETE1myyb/s400/gnome_logo.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5457083827337818642" /></a><br /><br />Before you read and use this order, I'm warning you that this order was used by me on fedora Current version. So I can guarantee that this order will be able to used on other fedora version.<br /><br />Below is my GNOME 2.30 build order, compiled from <a href="http://github.com/gnomeslackbuild/gsb-build-system">GSB list (thanks for GSB Dev Team)</a> and JHBUILD modules list. Most of the used patches came from GSB repo, several are taken from Fedora and Gentoo.Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-61272206612971455732010-04-04T17:36:00.001+02:002010-04-04T17:55:28.900+02:00Viva ! Fedora 13 Alpha Now Available!!!"The Fedora 13 'Goddard' alpha release is Now available. Now it supports automatic Printer Installation, You can Plug and Play your USB Printers in Fedora 13. It supports automatic installation of language packs; redesigned user management interface; color management to better set and control your colors for displays, printers, and scanners; NetworkManager improvements include Command Line Interface; experimental 3D extended to free Nouveau driver for NVIDIA cards." Firefox 3.6.1 included. Linux kernel 2.6.32, Greater suport for webcams. Fedora 13 alpha comes with KDE 4.4.<br /><br /><br /><a href="http://download.fedoraproject.org/pub/fedora/linux/releases/test/13-Alpha/Live/i686/F13-Alpha-i686-Live.iso">Download Fedora 13</a>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-22488814720210149882010-04-04T17:34:00.001+02:002010-04-04T17:36:37.360+02:00iPadToday, Apple officially released IPad, their newest product in their Apple Store. As usual, people lining up to get their hand on the product. They even willing to sleep outside the Apple Store to get it. Having Apple products is like a miracle and believe it or not, it makes other people starring at you for some time, making you like a celebrity instantly.<br /><br />As you can see in the picture above, that guy has become popular since he is holding IPad. It's an easy way to get famous instantly<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrDA99s5guEVxhMtrv5e4mAfHwfG9w5UmgjDCyqoMWqZwNYLo1c6IqKQ414MyHukQN8OlpGuYC7YlfICNRL7cNX5LTysrwIFG_J5Dcpfj9KtfwfDZMCbk4DDsV2WcwqUhkIdYtk5o_0mdn/s1600/ipad-launched-01-top.jpg"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 266px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrDA99s5guEVxhMtrv5e4mAfHwfG9w5UmgjDCyqoMWqZwNYLo1c6IqKQ414MyHukQN8OlpGuYC7YlfICNRL7cNX5LTysrwIFG_J5Dcpfj9KtfwfDZMCbk4DDsV2WcwqUhkIdYtk5o_0mdn/s400/ipad-launched-01-top.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5456306439661611282" /></a><br /><br />For a detailed review, please check on <a href="http://www.engadget.com/2010/04/03/apple-ipad-review/">Engadget</a>Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-27533852288062486822010-04-03T22:05:00.000+02:002010-04-03T22:07:23.398+02:00LiVES: Video Editing for LinuxToday, i browsed some sites and then i saw <a href="http://lives.sourceforge.net/">LiVES</a>, a video editing tool system for Linux platform. This is the application i have been searching for some time. I have tried to compile and install other applications, but most of them failed due to unsatisfied dependencies.<br /><br />This application does have lots of dependencies, but in the end, i managed to install this after fulfilling all the dependencies from <a href="http://slackbuilds.org/">Slackbuilds</a> project and now it's running very well on my desktop.<br /><br />If you want to try a nice video editing tool for Linux, try this on and i hope you like it as i like itMohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-48803405805244096292010-04-03T10:37:00.001+02:002010-04-03T10:40:24.222+02:00GNOME 2.30Done!<br />I have rebuilt all of my GNOME 2.30 core packages, upgraded all of GNOME applications packages.Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.comtag:blogger.com,1999:blog-4146236436116243602.post-41108163577026095812010-04-03T10:28:00.001+02:002010-04-03T10:55:18.927+02:00Creating Ubuntu RepositoryViva <br />Right now, i'm trying to build a Ubuntu repository for my campus ;)Mohammad Abbasihttp://www.blogger.com/profile/13700800424277874354noreply@blogger.com