Thursday, October 30, 2014

উবুন্টুতে XAMPP ইন্সটল করার উপায় (গ্রাফিকাল প্যানেল শর্টকাটসহ!!)

1 comments
ওয়েব ডেভেলপমেন্টের জন্য XAMPP/জ্যাম্প খুব প্রয়োজনীয় একটি সফটওয়্যার। এটি আমাদের জন্য আমাদের কম্পিউটারেই একটি লোকাল সার্ভার তৈরি করে যাতে আমরা ওয়েবসার্ভারে আপলোড না করেই ওয়েবভিত্তিক সফটওয়্যারগুলোকে কম্পিউটারেই টেস্ট করতে পারি।

আর উবুন্ট হচ্ছে প্রোগ্রামারদের দ্বারা তৈরি প্রোগ্রামিংয়ের জন্য বেস্ট এনভায়রনমেন্ট। উবুন্টু হচ্ছে উইন্ডোজের মতই একটি অপারেটিং সিস্টেম। এটি হার্ডডিস্কে অথবা চাইলে পেন ড্রাইভেও সেটাপ করা যায়। ওয়েব ডেভেলপাররা যেহেতু প্রোগ্রামিং করে থাকেন, কাজেই উবুন্টু আর XAMPP এর মেলবন্ধনটা বেশ ভালই হবে।

তাহলে আজ জেনে নিন কিভাবে উবুন্টুতে XAMPP ইন্সটল করতে হবে। শুধু তাই নয়। আমরা জানবো কিভাবে কমান্ড লাইন ছাড়াই জ্যাম্প চালু ও বন্ধ করতে হয়।



স্টেপ-১: আসল কাজ, ইন্সটলেশন!

১. প্রথমেই https://www.apachefriends.org/download.html ঠিকানায় গিয়ে XAMPP এর লিনাক্স ভার্সন নামিয়ে নিন। এতে আপনি .run এক্সটেনশনযুক্ত একটি ফাইল পাবেন।



এখানে দ্রস্টব্য, আমি 1.8.3 ভার্ষনটি নামিয়েছি। 1.8.3এর আগের ভার্সনগুলোর ইন্সটল করার পদ্ধতি এই ভার্ষনের তুলনায় ভিন্ন। তাই আপনিও 1.8.3 বা তার পরের ভার্সন নামানোর চেষ্টা করুন।

২. ধরি আপনি ডাউনলোড করার পর এটি আপনার হোম ফোল্ডারের Downloads ফোল্ডারে আছে। (তাহলে xampp-linux-1.8.3-1-installer.run ফাইলটির লোকেশন হল ~/Downloads/xampp-linux-1.8.3-1-installer.run )



এটি একটি এক্সিকিউটেবল ফাইল। কিন্তু লিনাক্সে এক্সিকিউটেবল ফাইল চালানোর জন্য একে এক্সিকিউট করার পারমিশন দিতে হয়। তাই এটিকে রান করার জন্য একে রাইট ক্লিক করুন এবং Properties এ যান। তারপর Permissions ট্যাব-এ গিয়ে Allow executing file as program এ চেক দিয়ে close চাপুন।



৩. এখন ফাইল ব্রাউজার খোলা রেখেই টার্মিনাল ওপেন করুন (Ctrl+Alt+T)। তাতে টাইপ করুন sudo তারপর একটি স্পেস দিন। এখনই এন্টার চাপবেন না। XAMPP ফাইলটিকে টার্মিনালের উপর ড্র্যাগ করে ড্রপ করুন। এবার এন্টার চাপুন।


এতে আপনি উইন্ডোজের যেকোন সফটওয়্যার ইন্সটলের মতই একটি উইজার্ড পাবেন।


এতে Next next দিয়ে যান তাহলেও হবে। তবে আমি সাদারণত Select Components পেজে এসে XAMPP developer files এ চেক তুলে দিই। ওতে স্পেস কিছুটা কম ইউজ হয়। কিন্তু আপনি সেটা দিয়ে রাখতে পারেন।

সবশেষে Finish পেজ-এ আমি সাধারণত Run XAMPP now অপশনটি তুলে দিই। তবে এটা আপনার ইচ্ছা।

এখন আপনি যদি ফাইল ব্রাউজারের Computer এর ক্লিক করে /opt/lampp ডিরেক্টরিতে যান। এখানেই আপনার XAMPP ইন্সটল হয়েছে। ডিরেক্টরিতে lampp দেখে ঘাবড়াবেন না। XAMPP এর লিনাক্স ভার্সনকে LAMPP বলা হয়। দুটো একই জিনিস!

স্টেপ-২: গ্রাফিকালি জ্যাম্প রান করা

আপনি যদি কমান্ড লাইনের ফ্যান হন তাহলে টার্মিনালে sudo /opt/lampp/lampp start রান করেই জ্যাম্প স্টার্ট করতে পারবেন। কিন্তু সবাই তো আর কমান্ডলাইনে অভ্যস্ত নন। তাই তাদের জন্য গ্রাফিকাল ইন্টারফেসে জ্যাম্প ব্যবহারের উপায় বাতলে দিচ্ছি।

১. প্রথমত বলে রাখি আমরা XAMPP Control Panel ব্যবহার করবো। এটির একটি ডিপেন্ডেন্সি আছে। এটি ইন্সটল না করলে জ্যাম্প কন্ট্রোল প্যানেল রানই করবে না (তখন Error importing pygtk2 and pygtk2-libglade এরকম একটি এরর দেখায়)। তাই এটি ইন্সটল করতে টার্মিনালে (Ctrl+Alt+T) রান করুন:

sudo apt-get update && sudo apt-get install python-glade2

এতে ডিপেন্ডেন্সিটি ইন্সটল হয়ে যাবে।

২. এখন gedit (বা অন্য কোন প্লেইন টেক্সট এডিটর) খুলুন এবং নিচের কমান্ডটি তাতে কপি করুন।

[Desktop Entry]
Encoding=UTF-8
Name=Xampp Control Panel
Comment=Start or Stop XAMPP
Exec=sudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon=/opt/lampp/htdocs/favicon.ico
Categories=Application;Development;Web
Version=1.0
Type=Application
Terminal=0


৩. তারপর File - Save-এ যান। Home-এ ক্লিক করুন। এবার Ctrl+H চাপুন। এতে হিডেন ডিরেক্টরিগুলো দেখাবে। এখন .local/share/applications এ গিয়ে ফাইলটিকে xampp.desktop নামে সেভ করুন।

এখন ড্যাশে গিয়ে xampp লিখে সার্চ করুন। তাহলেই XAMPP Control Panel পাবেন। ওটা রান করুন।


এতে বড় একটি Start XAMPP বাটনটিতে ক্লিক করুন, এতে XAMPP চালু হবে। (আপনি যদি আগেই স্টার্ট করে থাকেন তাহলে সেখানে Stop লেখা আসবে।)

ব্যস! হয়ে গেল জ্যাম্প ইন্সটল! এখন আপনি জ্যাম্প ব্যবহার করতে পারবেন সবচেয়ে সিকিউরড এনভায়রনমেন্টে।

Ref:
http://askubuntu.com/questions/444623/xampp-control-panel-can-not-launch
Continue reading ...

Thursday, September 11, 2014

Homemade HD video - 3

0 comments
Hi again. I am writing about my adventures in Homemade video making. Previously I was in a dillema. I chose Canon 650d as my favorite option, but then I found out that the camera was out of stock. It will take a week or two to reach another lot in Dhaka from Singapore.

In the meanwhile father was forcing me to buy quickly. I didn't know what to do. I was still doing my research. With my research and my conscience, I found out the situation as a sign! A sign that is telling me to buy 700d. I researched some more, and when I read in depth review of 700d, I found out that it is a good choice for me. I don't want a noisy lense to do my video. I want a silent one. I also want a latest model. Why buy a model that is 2 years old? 700d was 1 year old, so I should go for it. And who knows which bugs are fixed from 600d to its new version. Rebel series (500d through 700d) is a popular series. But choosing from the best of the best is hard task. I did it at last!

So, I decided to buy 700d. But is it original? If I buy from the importers, I should get the original one for sure. The Canon dealer in Bangladesh is J.A.N. Associates. I contacted them. They sell 700d but they sell it with 18-135mm lense. And they won't sell body only. That would cost a fortune! 78000 BDT!! That brought in a lot of sweat in my body!

I contacted my old friend Royal, who helped me get a generous discount on my Nikon point & shoot. He tried his best and let me a discount of generous amount, but it still isn't good for me. I want the original, but my budget won't let me have it. How dreadful!

Unfortunately I had to choose the Bashundhara version. 700d would still cost me 52500 BDT. But that felt okey. I went from 40k to 52k. I think that's enough.

I went on a special day to Bashundhara City and bought it. Canon 700d with a tripod (52500 + 1600 BDT). I bought mine from Camera Zone which is a reputed camera store in Dhaka. But they provide 5 years service warranty only. Whereas other stores offer 1 year replacement warranty + 5 year service warranty. They explained it as well, that others sell a warranty-replaced camera to another person, but they don't.

In the way of going to Camera Zone I also went to the Fujifilm camera store. The cameras were original royal vintage cameras - Japan-made. For professionals, they are a gem. But as a beginner I couldn't get a clear idea about them. They felt like old to me. That's just me. But my father was impressed by one model. It was certainly a tough body camera but I couldn't make my mind for it.

When I reached home that day, it felt awesome. It felt like I had a weapon to shoot. Not humans, but pictures! I felt like the world is in my hands. There's no other feeling that can be compared to that.

At the very first day I tried my camera out, to be honest, I was dissapointed. I couldn't take pictures that are good enough. They either are too dark of too bright. Back then I thought that I am an amateur and that's why I couldn't take photos. But now I understand that it was because it was a new camera. With the same settings, I kept testing the camera day after day and it got better. Maybe it takes time to normalize its potential.

I started to read the camera manual and as I was soring through the pages, I got amazed with the features of this little device. And soon I found out a way to do timelapse, a way to make fast forward video. I'll talk about it in my later post.
Continue reading ...

Tuesday, July 22, 2014

Homemade HD video - 2

0 comments
Hello. Previously I wrote about my little journey on the way to HD home-made video making. I said that my father understood the need for a professional camera. I thought to myself, professional video cameras used by TV channels and video production firms are not cheap. They are going to cost me 2 lakhs minimum. So it is not an option for me. I only had a budget of 40k BDT.

I heard that DSLRs have a good video quality. I also saw some tutorials on recording videos on DSLRs. I checked the facebook page of Camera House recommended by my friend Rony from my versity. The good thing is that they regularly posted camera price list. So I looked at the list and saw Nikon D3200. It was 32500 BDT. Definitely on my budget. And I thought I don't need a high end DSLR for my shooting. So it seemed okey to me.

I was lucky that I had a photographer collegue, Razib vai. He told me that Canon is better for video recording than Nikons. Then a confusion was in my mind. I shot with a Nikon point & shoot before and it was great. I also know its functions very well. It is easy for me to use. But Canon would feel alien to me.

I started my research on the internet. After searching for one month, I found out that his words were true. Canon is better for video. I compared the pictures on both Nikon and Canon cameras available in most review sites. It seems that Canon has a cleaner look in the pictures too. It impressed me.

Now that I selected Canon to be my camera of choice, it is up to the model that I should buy. Again, lots and lots of choices, lots of specifications to look for. It is bewildering how you choose a model and then a couple thousand taka extra can give you more of the cool features you want. Finding a balance between the price and features is really hard.

I researched a lot... a loooottt. I cannot even emphasize how much I researched about the models available in the market. I watched a lot of review videos, manuals, read reviews, asked friends and so on.

When I was reasearching, a camera just took my mind away. I always looked for a beginner friendly camera that is in my price range and it had features that pro cameras have. I found Canon 650d. It has a touch screen and the screen was articulating (that means it can be rotated). It has built in HDR which the cheaper models didn't have. It has full time auto focus and a wide variety of choices of lenses. It can record FUll HD videos at 24/30/60 frame per second. 24 frames per second is film standard and 60p is a good choice for slow motion, which could be utilized to show slow motion of the excercise if I needed that. It was nearly a professional featured camera and with a latest DIGIC5 processor that even the higher ends don't have. I am fond of latest technologies and it fit my needs.

But it was 50,500 BDT back then. My budget was 40k. I had to convince my father to increase the budget. That was a hard thing for me.

I decided to buy 650d. But after a week or so, I found its successor model - Canon 700d. In the reviews I found it had no new significant features. But when I dug deeper I found out that it had updated quite many things. First, the 18-55mm kit lense is noise free. It is of STM type which it has a Stepper Motor. In an STM lense the focusing happens inside the lense so there is no noise when it tries to focus. Previously, 18-55mm lenses used to create great noise that got into the video (through the internal mic).

Secondly, my friend Rony told me I should buy a 700d because it is a newer model. If I need it to repair someday, the parts should be more available. The price difference is just 2,000 BDT. But to me that was something huge. So I refused to change my decision and I still was with 650d.

One day I visited Bashundhara City at Panthapath, Dhaka. (I heard that it is the best place for buying Cameras.) I found out that 650d is out of market. Alas! My favorite camera was out of market. I thought maybe it was because it is after the Pahela Baishakh. I was in a great shock. What did I do? May be I will tell you in my next post.
Continue reading ...

Saturday, July 12, 2014

Homemade HD video - 1

0 comments
Long time I had a wish for working with videos. Film making was a great interest of mine. Well, I got to shoot a video for my father. He is a Yoga Guru. He already had a DVD released previously. But it wasn't up to the mark. I wanted to prepare better videos to let it be comparable to the international ones.

With my enthusiasm I got my father to do shoot for a video. It was a video of Surya Namaskar. I didn't have a high end DSLR camera. I only had a Nikon s3100 point & shoot. It had 720p HD video. But I wanted Full HD videos as it is the latest trend. But what to do. I have to shoot when I have to shoot. I shot with the Nikon. And this the result:

Or check out here: https://www.youtube.com/watch?v=yPE4YCUExnI

Back then I didn't have a tripod. My hands were shaky. Also the camera stopped recording sometimes without any reason. Moreover father was ill back then. Still I had a strong passion and it led me to finishing the project.

For editing I couldn't use Adobe Premiere. I have a Dual Core PC with only 2GB of RAM. Premiere just hangs now and then. Then I had to try with Blender. Blender is a 3D software but it has basic video editing capabilities. It took me almost 2 weeks to learn its functions. But eventually I got it working. I should say, that Blender is an execellent video editor that was more stable than Premiere. Although it may seem like a weird interface for first time user. But I used it before, so it felt like easy to me. If anyone wants to use it, it is Free and Open Source (FOSS) and can be downloaded from: blender.org

After seeing the video, my father understood the importance of a Full HD professional Camera. So he told me to do some research to point out the best camera suited for us. But it is another story to be told in the next post.
Continue reading ...

Thursday, March 6, 2014

How to install Unijoy in Ubuntu 14.04 LTS to write in Bangla (with video)

5 comments
This is a very simple tutorial on how to write Bangla using Unijoy in Ubuntu Linux version 14.04 LTS. Unijoy is similar to Bijoy layout and is confortable for use with Bijoy keyboards available widely.

I am showing this in Beta version of Ubuntu. The stable will be out in April this year. But the process will most probably be the same in stable.

You can see this video to further clear the instruction given below:


The process:

1. Open terminal _Ctrl+Alt+T_
2. Type and enter:
sudo apt-get install ibus-m17n m17n-db m17n-contrib ibus-gtk

It will install a couple of packages/softwares to write Bangla. If you haven't run sudo apt-get update before, then //a/ go to dash //b/ type software and select "Software & updates". //c// check all the checkboxes in the Download from option you may select Bangladesh -- Dhakacom mirror... its fast!!. //d// click close. This will automatically update the software database. Now run the above command.

3. Now that you have installed unijoy, type and enter the following:
ibus-daemon -xdr
It'll run the ibus daemon to allow the Unijoy layout to appear in Keyboard settings.

4. Now click the power/cog icon at the right top part of your screen then click System Settings. Now click Text Entry. Click the plus button, select Bengali (unijoy (m17n))

5. Now open writer or gedit or where you want to type Bangla. Press Super/Win key+space and write in Bangla. If you want to type in English again press the same keyboard shortcut again.

Enjoy!!!
Continue reading ...
 

Blogroll

Translate This Blog

Copyright © আদনানের ব্লগ Design by BTDesigner | Blogger Theme by BTDesigner | Powered by Blogger