Showing posts with label Linux Tips and Tricks. Show all posts
Showing posts with label Linux Tips and Tricks. Show all posts

লিনাক্সে মেশিনকে বিভিন্ন মোডে শাডডাউন করা

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

এছাড়া ধরুন ভ্রমনে আছেন তখন বারবার মেশিন চালু করা সময়সাপেক্ষ এবং এর জন্য ব্যাটারী চার্জ ও দ্রুত শেষ হয়ে যায়। তাই আপনার মেশিনটি Suspend মোডে রেখে ব্যাগে রেখে দিতে পারেন এবং আবার প্রয়োজনে পাওয়ার বাটন চাপ দিলেই কয়েক সেকেন্ডে মেশিন চালু হয়ে যাবে।

Suspend মোডে মেশিনকে ল্যাপটপ ব্যাটারী দিয়ে ১-৩ দিন বা ৫ দিন ও রেখে দেয়া যায় ব্যাটারী ক্ষমতা উপর নির্ভর করে। যেমন আমি নিজেও পরীক্ষা করে দেখেছি Suspend মোডে রেখে ঘন্টাখানেক পর এসেও চার্জ ১০০% পেয়েছি ল্যাপটপে যদিও সে সময় পাওয়ার সাপ্লাই বন্ধ রেখেছিলাম।

এবার আসুন জেনে নিই কোন মোডে কি কাজ হয় ।

Suspend মোডে মেশিনের পুরো স্টেট Ram এ সেভ হয় এবং মেশিনের প্রায় সকল হার্ডওয়্যার এ মোডে বন্ধ থাকে তাই পাওয়ার খুব কম লাগে । Suspend মোডে খুব সামান্য পরিমান ব্যাটারী চার্জ নষ্ট হয় তাই ১/২/৩ এমনকি ৫ দিন পরও মেশিন চালু করা সম্ভব।

Hibernate মোডে মেশিনের পুরো স্টেট হার্ডডিস্কে সেভ হয় এবং এ অবস্থায় যতদিন পরই মেশিন ওপেন করুন না কেন সে অবস্থায় ফিরে পাবেন । Hibernate অবস্থায় ব্যাটারী চার্জ নষ্ট হয় না।

Hybrid মোডটি উপরের দুটি মোডের সমন্বয় বলতে পারেন। অর্থাৎ এ মোডে মেশিনের পুরো স্টেট হার্ডডিস্কে সেভ হয় কিন্তু মেশিনের পাওয়ার পুরো শাটডাউন হয় না। তাই মেশিন দ্রুত চালু করা যায় এবং মেশিনের চার্জ শেষ হয়ে গেলেও Hibernate মোডের মত মেশিনকে আবার চালু করা যায়।

আসুন ডেবিয়ান জিএনইউ/লিনাক্সে কিভাবে এগুলি ব্যবহার করবেন তা দেখি-

এ কমান্ডগুলির জন্য অবশ্যই pm-utils নামক প্যাকেজটি লাগবে । এটি ইনস্টলের কমান্ডঃ
aptitude install pm-utils

ইনস্টল হয়ে গেলে কয়েকটি প্রোগ্রাম চালু করুন একই সাথে। তারপর টার্মিনাল খুলে রুট ইউজার হিসেবে কমান্ড দিনঃ

pm-suspend

ব্যস মেশিন suspend মোডে চলে যাবে। এ অবস্থায় ল্যাপটপের একটি ইন্ডিকেটর লাইট জ্বলতে/নিভতে থাকবে। পাওয়ার ডিসকানেক্ট করার পরও করতে থাকবে । চিন্তার কিছু নেই। এ অবস্থায় ল্যাপটপকে ব্যাগের মধ্যে রেখে দিতে পারেন। তারপর কয়েক ঘন্টা পর আবার চালু করার জন্য পাওয়ার বাটনকে একবার চাপ দিন। কয়েক সেকেন্ডের মধ্যে আগের চালু করার প্রোগ্রামগুলি সহ মেশিন চালু হয়ে যাবে।

অন্য দুটি মোডের কমান্ড হচ্ছে-
pm-hibernate
এবং
pm-suspend-hybrid

এগুলিও পরীক্ষা করে দেখতে পারেন এক এক করে। আশা করি এগুলির কাজ বুঝতে পারবেন।

এভাবে কমান্ড মোডে কমান্ড না দিয়ে আপনার ব্যবহৃত ডেস্কটপ এনভারোনমেন্ট যেমন- কেডিই, গ্নোম, এক্সএফসিই, এলএক্সডিই এর শাটডাউন/পাওয়ার অপশন থেকেও কমান্ড দিতে পারেন মাউসের মাধ্যমে ।

লিনাক্স ইনস্টলেশন প্রস্তুতি - ১ (হার্ডডিস্ক পার্টিশন)

লিনাক্স ইনস্টল করতে গিয়ে শুরুতে অনেকে বিভিন্ন সমস্যায় পড়েন। কারন লিনাক্স ইনস্টলের পদ্ধতি আর উইন্ডোজ ইনস্টলের পদ্ধতি পুরোপুরি ভিন্ন । এজন্য উইন্ডোজ ইনস্টলে দক্ষ ও অভিজ্ঞ ব্যক্তি ও লিনাক্স ইনস্টলের সময় হার্ডডিস্কের পার্টিশন ফরম্যাট করে ফেলা, পুরো পার্টিশন টেবিল ভেঙ্গে একটি করে ফেলা, উইন্ডোজ পার্টিশন মুছে ফেলা, উইন্ডোজ অপারেটিং সিস্টেম মুছে ফেলা ইত্যাদি নানা ধরনের সমস্যা সৃষ্টি করে ফেলেন। কিন্তু একটু সময় নিয়ে অভিজ্ঞদের সহায়তা ও ম্যানুয়াল পড়ে নিলে এ ধরনের সমস্যা এড়ানো সম্ভব।
তাই আসুন আজ আমরা লিনাক্স ইনস্টলের জন্য চমৎকারভাবে হার্ডডিস্ক পার্টিশন করা শিখে নেই।
শুরুর দিকে উইন্ডোজ ইনস্টলের জন্যও কমান্ড লাইনে fdisk নামের একটা টুলসের সাহায্যে হার্ডডিস্ক পার্টিশন করতে হত। কিন্তু বিষয়টি এখন ক্লিক এন্ড গো এর মতই সোজা । তবে একটি বিষয় এক্ষেত্রে সবার দৃষ্টি এড়িয়ে যায় আর তা হল আগে কমান্ড লাইনে কাজ করতে গিয়ে কমবেশী সবাই জেনে নিতেন হার্ডডিস্কের গঠন কাঠামো ও ফাইল সিস্টেম সম্পর্কে । আর এখন বাস্তবতা হলো- ক্লিক এন্ড গো পদ্ধতিতে কাজ করতে গিয়ে সবাই হার্ডডিস্কের ডিটেইলস সম্পর্কে না জেনে তালগোল পাকিয়ে ফেলেন।
প্রথমে আমরা উইন্ডোজ ফাইল ম্যানেজার/মাই কম্পিউটারে ঢোকার পর যে C/D/E/F ড্রাইভ দেখি এটার কথা সাময়িকভাবে ভুলে যাই। কারন এটি আপনাকে হার্ডডিস্কের আসল রহস্যটা লুকিয়ে রেখে উপরের অংশটা দেখায়। হার্ডডিস্কের ডিটেইলস জানতে হলে My Computer এর উপর রাইট মাউস বাটন ক্লিক করে Manage এ ক্লিক করুন। তারপর বাম দিকের ট্রি কন্ট্রোল/মেনু থেকে Disk Management এ ক্লিক করুন। তাহলে নিচের মত দেখতে পাবেন।
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DeHdhTlZPcFo4cVk
খেয়াল করে দেখুন, ছবির একদম নিচে পার্টিশন মোট ৩ প্রকার- Primary partition, Extended partition, Logical drive। প্রাইমারি পার্টিশন এর কালারের সাথে যেগুলি মিলবে সেগুলি প্রাইমারি পার্টিশন। নীল কালারের যে ৫টি লজিক্যাল ড্রাইভ /পার্টিশন রয়েছে সেগুলিকে ঘিরে আরেকটি সবুজ রংয়ের বর্ডার বিদ্যমান। অর্থাৎ এ ৫টি লজিক্যাল ড্রাইভ একটি এক্সটেনডেড পার্টিশন এর আওতায় রয়েছে ।
লিনাক্সে এটি দেখার জন্য শেল প্রম্পটে ঢুকে কমান্ড দিন- sudo fdisk -l অথবা gparted চালু করুন।
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DeHdhTlZPcFo4cVk
এবার আসুন কিছু তাত্ত্বিক কথাবার্তা বলি। একটি হার্ডডিস্কে সর্বমোট ৪টি প্রাইমারি পার্টিশন থাকতে পারবে । এর বেশী প্রাইমারী পার্টিশন করা সম্ভব না । যখন হার্ডডিস্কের ধারন ক্ষমতা ছিল খুব কম মাত্র কয়েক মেগাবাইট/এক বা দুই গিগাবাইট তখন এটি ছিল যথেষ্ট । কিন্তু যখন ধারনক্ষমতা বৃদ্ধি পেতে শুরু করে তখন প্রাইমারি পার্টিশন ছাড়াও আরও বেশী পার্টিশন তৈরির প্রয়োজনীয়তা দেখা দেয়। তখন ৩টি প্রাইমারী পার্টিশন করা হয়ে গেলে বাকী স্পেসকে একটি প্রাইমারী এক্সটেনডেড পার্টিশন হিসেবে তৈরীর সুযোগ দেয়া হয় । এই এক্সটেনডেড পার্টিশনকে যেকোন সংখ্যক পার্টিশনে বিভক্ত করা সম্ভব ।
তাহলে আমরা দেখলাম-
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DZmRQeE9QXzlNeTA
মোট ৪টি প্রাইমারী পার্টিশন থাকতে পারে একটি হার্ডডিস্কে এবং শেষের টিকে এক্সটেনডেড পার্টিশন (এটি ও মূলতঃ প্রাইমারী পার্টিশন) হিসেবে নিয়ে যেকোন সংখ্যক পার্টিশনে ভাগ করা যেতে পারে। অর্থাৎ উপরের হার্ডডিস্ককে আমরা এখন নিচের মত ভাগ করতে পারি-
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DYmVhNllUNm1iWDg
উপরের পার্টিশনটিকে উইন্ডোজের মাই কম্পিউটারে দেখাবে এমনভাবে-
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DYllNOTNHVnc0Zm8
তাই মাই কম্পিউটারে ঢুকে বোঝা সম্ভব নয় ঠিক কতটি প্রাইমারী ও লজিক্যাল পার্টিশন রয়েছে আপনার হার্ডডিস্কে। যদি আরেকটি হার্ডডিস্ক জুড়ে দেয়া হয় আপনার মেশিনে বর্তমানটির সাথে তবে সেগুলিও লজিক্যাল পার্টিশন হিসেবে দেখা যাবে My Computer → Manage এ গেলে।
এবার আমরা দেখি উপরের হার্ডডিস্কটিকে লিনাক্সে কিভাবে দেখাবে-
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DT3hLOWM0V283Tzg
যদি আপনার ডিস্কে প্রাইমারি পার্টিশন ১টি কম থাকে তবে উইন্ডোজে একইরকম দেখা যাবে।
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DbUEzcTgxajFhOUE
কিন্তু লিনাক্স এক্ষেত্রে আরো স্মার্ট। লিনাক্সে দেখাবে নিচের মত।
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DNUVkdXVzb3prYTA
অর্থাৎ লিনাক্স সবসময় প্রাইমারি পার্টিশন এর জন্য ১-৪ নম্বর রিজার্ভ রাখে। লজিক্যাল পার্টিশন শুরু হবে ৫ নম্বর থেকে । তবে উপরের sda1 দেখে হয়তো ভাবছেন এটা আবার কি জিনিস। এর থেকে তো C/D/E/F বোঝাই সহজ। তবে আপনার জন্যই বলি, লিনাক্সের পার্টিশন টেবিল যদি একবার বুঝে যান তখন উইন্ডোজ এর টি ফালতু মনে হবে। আচ্ছা বলুন তো- যদি ৩ টি হার্ডডিস্ক থাকে আপনার মেশিন তাহলে বলতে পারবেন C/D/E/F দেখে কোনটি কোন হার্ডডিস্কের পার্টিশন? লিনাক্সে তাও সম্ভব। আসুন দেখা যাক বিষয়টি-
এখানে sda1 প্রথমে বুঝে নেই। যদি আপনার হার্ডডিস্কটি SCSI/SATA হার্ডডিস্ক হয় তবে প্রথম দুটি অক্ষর দেখবেন sd আর যদি IDE হার্ডডিস্ক হয় তবে এটিকে দেখবেন hd হিসেবে। আর sd এর পরে a এর অর্থ হল প্রথম হার্ডডিস্ক। যদি দ্বিতীয় হার্ডডিস্ক হয় তবে দেখবেন b, তৃতীয় হার্ডডিস্ক হলে দেখবেন c ইত্যাদি। তারপর আছে 1 অর্থাৎ প্রথম পার্টিশন এবং অবশ্যই এটি প্রাইমারি পার্টিশন কারন ১-৪ পর্যন্ত সবই প্রাইমারী পার্টিশন। যদি 5 হতো তাহলে এটি হতো প্রথম লজিক্যাল ড্রাইভ। যদি একটি প্রাইমারী পার্টিশন থাকে মেশিনে তবে sda5 হবে উইন্ডোজের D ড্রাইভ আর লিনাক্সের প্রথম লজিক্যাল পার্টিশন। sda3 হলে উইন্ডোজে এটি হবে E ড্রাইভ আর লিনাক্সে হবে প্রথম হার্ডডিস্কের ৩য় প্রাইমারী পার্টিশন।
এখন বলুন তো, sdc5 হলে কি হবে? হ্যাঁ ঠিক ধরেছেন, এটি হবে তৃতীয় হার্ডডিস্কের প্রথম লজিক্যাল পার্টিশন। আর উইন্ডোজে কি হবে তা প্রথম ও দ্বিতীয় হার্ডডিস্কের পার্টিশন কয়টি এবং তৃতীয় হার্ডডিস্কের প্রাইমারী পার্টিশন কয়টি তার উপর নির্ভর করবে । তাই বলা সম্ভব নয়। যদি প্রথম ও দ্বিতীয় হার্ডডিস্কে মোট ৮ টি পার্টিশন থাকে ওবং তৃতীয় হার্ডডিস্কে ২ টি প্রাইমারী পার্টিশন থাকে তবে এটি উইন্ডোজে M ড্রাইভ হিসেবে দেখাবে।
আর লিনাক্সের সবধরনের ডিস্ক, ডিভাইসকে /dev/ ফোল্ডারে দেখানো হয় তাই /dev/sda1 এর পূর্নাঙ্গ অর্থ হবে এরকম-
/dev/sda1 - /dev ফোল্ডারে প্রথম(a) sd হার্ডডিস্কের প্রথম (1) প্রাইমারী পার্টিশন। (উইন্ডোজে C Drive)
/dev/sda5 - /dev ফোল্ডারে প্রথম(a) sd হার্ডডিস্কের প্রথম (5) লজিক্যাল পার্টিশন। (উইন্ডোজে D Drive যদি একটি প্রাইমারী পার্টিশন হয়)
/dev/sda7 - /dev ফোল্ডারে প্রথম(a) sd হার্ডডিস্কের তৃতীয় (7) লজিক্যাল পার্টিশন। (উইন্ডোজে E Drive যদি একটি প্রাইমারী পার্টিশন হয়)
/dev/hda5 - /dev ফোল্ডারে প্রথম(a) hd হার্ডডিস্কের প্রথম (৫) লজিক্যাল পার্টিশন। (উইন্ডোজে D Drive যদি একটি প্রাইমারী পার্টিশন হয়)
সুতরাং লিনাক্সে আরো ভালভাবে বলা যায় আপনি কোন হার্ডডিস্কের কত নম্বর প্রাইমারী/লজিক্যাল পার্টিশনে কাজ করছেন যা উইন্ডোজে খুজে পাওয়া বেশ কষ্টকর My Computer → Manage থেকে।
তাই লিনাক্স বেশী স্মার্ট।
আরেকটি কথা- উইন্ডোজ OS প্রাইমারী পার্টিশন ছাড়া ইনস্টল করা যায় না কিন্তু লিনাক্স OS প্রাইমারী/লজিক্যাল যেকোন পার্টিশনে ইনস্টল করা যায়।
তাই পূর্বে উইন্ডোজ ইনস্টল করা মেশিনে gparted দিয়ে একটি আলাদা লজিক্যাল পার্টিশন তৈরী করে নিয়ে লিনাক্স ইনস্টল করতে পারেন। এক্ষেত্রে আপনার আগের ইনস্টল করা উইন্ডোজ থাকবে অক্ষত।
বুট করার সময় উইন্ডোজ/লিনাক্স কোনটিতে যেতে চান সেরকম অপশন পাবেন। সিলেক্ট করে দিলে মেশিন আপনার চাহিদামত লিনাক্স/উইন্ডোজে বুট করবে।
লিনাক্স ইনস্টলের জন্য পার্টিশন করার সব থেকে সহজ উপায় হচ্ছে লিনাক্সের সিডি/ডিভিডি/বুটেবল পেনড্রাইভ দিয়ে মেশিন বুট করুন। তারপর মেনু থেকে gparted সিলেক্ট করে একটি লজিক্যাল পার্টিশন তৈরী করে নিন।
তারপর লিনাক্স ইনস্টল করুন। ইনস্টলের জন্য কমান্ড এখান থেকেই দিতে পারবেন। সাধারনতঃ লিনাক্স সিডি/ডিভিডি/পেনড্রাইভ থেকে বুট করার পর ডেস্কটপের উপর শর্টকার্ট/প্রোগাম মেনুতে ইনস্টলের জন্য মেনু (Install Linux on Your Machine বা এ রকম) থাকে। উইন্ডোজের মত ইনস্টলের জন্য সিডি থেকে আলাদা বুট করতে হয় না। এমনকি সিডি থেকে আপনি সব প্রোগ্রাম চালিয়ে দেখতে পারেন ইনস্টলের আগেই যা উইন্ডোজ অপারেটিং সিস্টেমে সম্ভব নয়।
আলাদা পার্টিশন করার আগে যে ড্রাইভে জায়গা বেশী ফাঁকা সেটি থেকেই জায়গা নিতে পারেন অথবা সব থেকে শেষের পার্টিশন থেকে জায়গা বের করে নিন ঐ ড্রাইভের ফাইলসমূহ অন্য ড্রাইভে কাট-পেস্ট/মুভ করে। তবে শেষের পার্টিশন থেকে জায়গা বের করে নেয়াই নিরাপদ। এটি করলে পরবর্তীতে ঝামেলা কম হয়। এটি করাও বেশ সহজ। লিনাক্সের সিডি থেকে বুট করার পর ফাইল ম্যানেজার চালু করে উইন্ডোজের মাই কম্পিউটারে ঢুকে যেভাবে কাট-পেস্ট করেন ঠিক সেভাবে করতে পারবেন।
ফাইল সরিয়ে নেয়ার পর আসুন কিভাবে পার্টিশন করবেন তা হাতে কলমে দেখি।
প্রথমে System Tools → Administration → Gparted Partion Editor চালু করুন।
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DRTh2ZzdqSHl1WFk
যে পার্টিশনটি থেকে স্পেস নিবেন সেটির উপর রাইট মাউস বাটন ক্লিক করে Resize/Move এ ক্লিক করুন। তারপর Free space following (MiB) বক্সে ক্লিক করুন এবং লিখুন ১২০০০-১৩০০০ এর মধ্যে যেকোন সংখ্যা।
অর্থাৎ আমরা ১২ গিগার কাছাকাছি একটি রুট পার্টিশন করছি লিনাক্সের জন্য । এটাই যথেষ্ট । সোয়াপ পার্টিশন যাদের ১ গিগা Ram আছে তাদের দরকার নেই। যারা আলাদা হোম পার্টিশন করতে চান তারা নিজ দায়িত্বে করুন। একজন নতুন ব্যবহারকারীর জন্য রুট (/) পার্টিশনই যথেষ্ট। কারন উইন্ডোজের ড্রাইভগুলিতে লিনাক্স থেকেই ফাইল সেভ/এডিট করা যায়। লিনাক্সের জন্য আলাদা ডেটা পার্টিশন না থাকলেও চলে । তবে হোম ফোল্ডার সবসময় খালি রাখার চেষ্টা করবেন। বেশী ভারী হলেই ডেটা অন্য পার্টিশনে মুভ করে নেবেন। কারন হোমে জায়গা না থাকলে প্রোগ্রামগুলিই রান করবে না যেহেতু আপনার রুট এবং হোম ফোল্ডার একই পার্টিশনে আছে এক্ষেত্রে । এটি সবসময় খেয়াল রাখবেন তা না হলে পরে সমস্যায় পড়তে পারেন।
তারপর আবার New Size(MiB) বক্সে ক্লিক করুন। তাহলে আপনার দেয়া নতুন ড্রাইভ সাইজ প্রদর্শন করবে। এবার Resize/Move বাটনে ক্লিক করুন।
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DcXFRa3Eya2VtNTg
এবার Apply All Operations এ ক্লিক করে অপেক্ষা করুন। আশা করি আপনার পার্টিশন তৈরী হয়ে যাবে ।
https://drive.google.com/uc?export=view&id=0B4dfDqcrM72DVmpBSFNKUGlrS3M
সবশেষে একটি কথা- বারবার জিপার্টেড দিয়ে হার্ডডিস্ক পার্টিশন ফরম্যাট/এডিট/ডিলিট করা থেকে বিরত থাকুন কারন ঘনঘন করলে তা আপনার হার্ডডিস্কে ঝামেলা করতে পারে। তাই প্রথমে কাগজ কলম নিয়ে বসে হার্ডডিস্কের একটি পার্টিশন টেবিল তৈরি করে নিন- অর্থাৎ কয়টি প্রাইমারি, কয়টি লজিক্যাল থাকবে, কোন ড্রাইভে কি ধরনের ফাইল রাখবেন- তা ঠিক করে নিয়ে বসে পড়ুন। তারপর ধীরে ধীরে কাজ শেষ করুন। তাড়াহুড়ো করবেন না, তাতে আপনারই ক্ষতি।
সামনের দিন দেখবো কিভাবে আপনার তৈরী করা পার্টিশনে লিনাক্স ইনস্টল করবেন। আজ এ পর্যন্তই । ভাল থাকুন – সুস্থ থাকুন ।
(এটি একই সাথে আমার ব্লগেও প্রকাশিত এবং স্ক্রিনশটগুলি নেয়া হয়েছে মুক্ত বাংলা জিএনইউ/লিনাক্স থেকে- মুক্ত বাংলা লিনাক্স সম্পর্কে জানতে এখানে দেখুন- http://forum.projanmo.com/topic46595.html )

নতুনভাবে যারা জিএনইউ/লিনাক্স দিয়ে শুরু করতে চান তাদের জন্য কিছু টিপস

সিকিউরিটি সমস্যা/ ব্যক্তিগত তথ্য নিয়ে পৃথিবীর বিভিন্ন দেশে ইউএসএর বিরূদ্ধে গোয়েন্দাবৃত্তির অভিযোগ আমরা ইতিমধ্যে শুনছি প্রতিনিয়ত। ইউএসএ বেজড কোন কোম্পানির ক্লোজড সোর্স ওএস ব্যবহার করা তাই এখন বেশ ভয়ের কারন। কে জানে হয়তো আপনার অগোচরেই সাধের উইন্ডোজ আপনার ব্যক্তিগত তথ্য এনএসএর সার্ভারে পাঠিয়ে দিচ্ছে। তাই অনেকেই এখন লিনাক্সের প্রতি আগ্রহী হয়ে উঠছেন। কিন্তু লিনাক্স ইনস্টলের পর শুরু হয় আসল পরীক্ষা।
আপনার মডেমটি দিয়ে নেট কানেকশন পাচ্ছেন না।
আপনার প্রিন্টারটি লিনাক্স সাপোর্ট করছে না।
আপনার ল্যাপটপটির গ্রাফিক্স রেজুলেশন ঠিকমত আসছে না।
আপনার পছন্দের গেমস চালাতে পারছেন না।
লিনাক্সে ফটোশপ, বিজয় চলে না।
ইত্যাদি আরো অনেক অনেক সমস্যা।
তাই লিনাক্স দিয়ে শুরুর আগেই কিছু পরিকল্পনা ও পদক্ষেপ নিন।
১. যদি নতুন কোন ডেস্কটপ/ল্যাপটপ কিনে লিনাক্স ব্যবহার করতে চান তবে- প্রথমে পেনড্রাইভে লাইভ হিসেবে লিনাক্স ইনস্টল করে নিন unetbootin দিয়ে।
২. দোকানে গিয়ে পেনড্রাইভ দিয়ে মেশিনটি বুট করে দেখে নিন লিনাক্সে সব কিছু ঠিকমত চলে কিনা?
৩. মডেম, প্রিন্টার, স্ক্যানার ইত্যাদি কেনার আগেই দেখে নিন লিনাক্স সাপোর্টেড কিনা? প্যাকেটের গায়ে লেখা থাকলেই কিনবেন না। বরং ফোরাম বা নেটে গিয়ে সার্চ দিয়ে দেখে নিন বা প্রশ্ন করে জিজ্ঞাসা করুন সেটি চলবে কিনা? এজন্য প্রজন্ম ফোরামের এ লিংকে যেতে পারেন-
http://forum.projanmo.com/topic45998.html
৪. লিনাক্সের বিভিন্ন ডিস্ট্রো থেকে অন্ততঃ দুটি জনপ্রিয় ডিস্ট্রোর সিডি/ডিভিডি যোগাড় করুন। তাতে আপনার সুবিধা হবে। একটি ডিস্ট্রোতে মনিটর, প্রিন্টার, স্ক্যানার ইত্যাদি ড্রাইভার সাপোর্ট না পেলে অন্যটিতে পাওয়ার সম্ভাবনা থাকে। আমি হাতের কাছে - লিনাক্স মিন্ট ও ডেবিয়ানের ডিভিডি রাখি।
ডিস্ট্রো খোজার জন্য যান - http://distrowatch.com/
৫. উইন্ডোজে যেসব সফটওয়্যার ব্যবহার করেন লিনাক্সে তার বিকল্প একটি তালিকা তৈরি করুন। যেমন-
মাইক্রোসফট অফিস - বিকল্প - লিব্রে অফিস/ ওপেন অফিস
উইন্ডোজ এক্সপ্লোরার - বিকল্প - ফায়ারফক্স/আইসউইজেল/ক্রোমিয়াম
আউটলুক এক্সপ্রেস - বিকল্প - থান্ডারবার্ড/আইসডাভ
বিজয় কি-বোর্ড - বিকল্প - SCIM Input Method (bn-unijoy, probhat, national)
ফটোশপ - বিকল্প - GIMP
উইন্ডোজ মিডিয়া প্লেয়ার - বিকল্প - VLC Media Player
এমএসপেইন্ট - বিকল্প - মাই পেইন্ট
নোটপ্যাড - বিকল্প - Gedit/Kwrite/
লিনাক্সের জন্য কয়েকটি প্রোগ্রামিং এডিটর - Netbeans, Eclipse, codeblocks, kdevelop
লিনাক্সের জন্য কয়েকটি গেমস - lbreakout, chromium-bsu, neverball, dreamchess, secret mario chronicles, torcs
৬. লিনাক্স ইনস্টল করার সময় বেশীরভাগ ক্ষেত্রে পার্টিশন করার বিষয়টি অনেকে তালগোল পাকিয়ে ফেলেন। এজন্য gparted দিয়ে লিনাক্সের লাইভ সিডি থেকে কিভাবে পার্টিশন করা যায় সুন্দরভাবে তা ইন্টারনেট ঘেটে শিখে নিন। এটি না জানা থাকলে হার্ডডিস্কের সব তথ্য গায়েব হয়ে যেতে পারে।
৭. অনেকেই মনে করে থাকেন লিনাক্স ইনস্টল করা মানে উইন্ডোজ বাদ দেয়া।  কিন্তু উইন্ডোজের পাশাপাশি ভিন্ন পার্টিশনে লিনাক্স ইনস্টল করা যায়। মেশিন বুটের সময় লিনাক্স/উইন্ডোজ যেটি চান সেটি সিলেক্ট করে দিলেই হল। ব্যস মেশিন সেটিতে চালূ হবে। তাই নির্ভয়ে এগিয়ে যেতে পারেন।
পাশাপাশি কিছুদিন ব্যবহারে অভ্যস্ত হয়ে গেলে পুরোপুরি উইন্ডোজ মুছে দিতে পারেন। যদিও তা না করলে কোন সমস্যা নেই।
৮. লিনাক্স ব্যবহার করার পর থেকে ছোট ছোট কিছু কমান্ড লাইনের কাজ শিখতে থাকুন। এটি না পারলেও কোন সমস্যা নেই। বেশীরভাগ কাজ লিনাক্সে গ্রাফিক্যালী করা যায়। তবে মেশিন কোন কারনে বুট না করলে বা কোন সমস্যা হলে যেমন - বুট মেনু/গ্রাব না পেলে, কোন প্রোগ্রামের কনফিগারেশন ফাইলে সমস্যা হলে - আপনার এ জ্ঞানটি কাজে লাগবে। এর ফলে পুনরায় লিনাক্স ইনস্টলের হাত থেকে রেহাই পেতে পারেন।
বেসিক কয়েকটি কমান্ড-
ls -al                 - To see the directory/Folder contents
df -h                 - To see the harddisk space information
free -m            - To see the memory usage information
cp -R /src /dest            - To copy src folder to dest folder
rm -rf /folder            - To delete /folder
man command - To see the manual of the command
cd dir                - To move to the dir
fdisk -l              - To see the hardisk partitions
du -sh /path     - To see the usage space of the /path
find /path -name "*file_name*" - To find a file in /path
lsusb - To see the usb devices
lspci - To see the pci devices
uname -a - To see the kernel version
whoami - Current user
chmod -R 777 /folder_or_file- To change the permission of folder or file
fsck /dev/sda9 - To scan/check the /dev/sda9 partition and fix them manually
ntfsfix /dev/sda1 - To fix a ntfs/windows partition from linux
এছাড়া যেকোন কমান্ডের প্রথম এক/দুটি অক্ষর লিখে দুবার Tab চাপুন তাহলে ঐ অক্ষরগুলি দিয়ে শুরু হওয়া কমান্ডের লিস্ট স্ক্রিনে দেখতে পাবেন। এটি বেশ কাজের।
৯. লিনাক্সের জন্য কমান্ড লাইন/শেল নির্ভর টেক্সট এডিটর রয়েছে বেশ কয়েকটি যেমন- vi, emacs, nano ইত্যাদি। এর যেকোন একটি শিখে নিন। এটিও বিপদের সময় কাজে লাগবে।
১০. সবসময় নিজেকে আপটুডেট রাখুন প্রযুক্তির বিষয়ে। নিয়মিত টেকসাইটগুলি ভিজিট করুন আর জানুন লিনাক্স সম্পর্কে। যেমন- www.distrowatch.com, http://www.tuxmachines.org/ ইত্যাদি।
www.4shared.com সাইটে গিয়ে লিনাক্সের কিছু বই ডাউনলোড করে নিন- Linux System Administration, Red Hat Linux ইত্যাদি দিয়ে সার্চ দিলে বই পেয়ে যাবেন।
আশা করি পরামর্শগুলি অনেকের কাজে লাগবে - সে প্রত্যাশায় শেষ করছি।

সিস্টেম রেসকিউ টুলস-এক পেনড্রাইভে একাধিক অপারেটিং সিস্টেম

ছোট্ট একটি গল্প দিয়ে শুরু করি।

শাহেদ একটি প্রাইভেট ফার্মে কাজ করে। ফার্মের বেশীরভাগই কাজই কম্পিউটারে করা হয়ে থাকে। কম্পিউটারে সে কিছুটা এক্সপার্ট হওয়াতে কোন ডেস্কের পিসিতে সমস্যা হলেই তার ডাক পড়ে। আগে সে বেশীরভাগ ক্ষেত্রেই উইন্ডোজ রি-ইনস্টল করে দিত। কিন্তু তা ছিল অনেক সময় সাপেক্ষ। উইন্ডোজ রি-ইনস্টলে ৪০/৫০ মিনিট সময় তো লাগতই সাথে আর ও ঘন্টা খানেক লাগত পুরো পিসির ডাটা রিকভারি ও অফিস সহ অন্যান্য সফটওয়্যার ইনস্টলে। তবে বিভিন্ন ফোরাম, ব্লগ ও ইন্টারনেট সাইটে ঘোরাঘুরি করে শাহেদ ধীরে ধীরে কম্পিউটার এর বিভিন্ন সমস্যাগুলিকে ডায়াগনোসিস করা শিখে গেছে। তাই সবক্ষেত্রেই উইন্ডোজ রি-ইনস্টল না করে প্রথমে এগুলিকে বিভিন্ন রেসকিউ টুলস এর মাধ্যমে ঠিক করার চেষ্টা করে থাকে এবং বেশীরভাগ ক্ষেত্রেই সফল হয়। তবে এজন্য তাকে সাথে অনেকগুলি সিডি রাখতে হয় যেমনঃ ক্যাসপারস্কি রেসকিউ ডিস্ক, এভাস্ট বার্ট সিডি, হিরেন বুট সিডি ইত্যাদি। এছাড়া বেশ কয়েকটি লিনাক্সের লাইভ সিডি ও মাঝে মাঝে কাজে লাগে তার যেমনঃ পাপ্পি লিনাক্স, উবুন্তু লিনাক্স, ড্রিম লিনাক্স।

কয়েকদিন আগে এক বন্ধু তাকে পেন ড্রাইভে unetbootin দিয়ে কিভাবে লিনাক্স ইনস্টল করতে হয় তা বলে দেয়াতে সে এখন সাথে একটি পেন ড্রাইভ ও রাখে। পেন ড্রাইভে সে পাপ্পি লিনাক্স ইনস্টল করে নিয়েছে। এখন এটি ও বেশ কাজের একটি টুলস কারন অনেক কম্পিউটারে সিডি রম না থাকায় তাকে সাথে এক্সটারনাল সিডি রম বহন করতে হতো। যা আরও ঝামেলার মনে হত তার। কিন্তু অন্যান্য টুলস ব্যবহার করার জন্য তাকে আগের মতই সিডিরম ব্যবহার করতে হয়। এজন্য সে চাইছিল এমন একটি পদ্ধতি যাতে একটি পেন ড্রাইভেই সব ধরনের টুলস ইনস্টল করে ব্যবহার করা যায়। কারন তার পেনড্রাইভে অনেক ফাঁকা জায়গা অব্যবহৃত হয়ে আছে। আর বর্তমানে বেশীরভাগ পিসিতেই ইউএসবি ড্রাইভ/ পেনড্রাইভ থেকে বুট করার সুবিধা আছে। তাই নিঃসন্দেহে এ ধরনের একটি পেনড্রাইভ সাথে থাকলে অনেক সুবিধা। তাছাড়া বিভিন্ন এন্টিভাইরাসের ভাইরাস ডেফিনেশন ফাইলটি বারবার সিডিতে রাইট করে আপডেটের ঝামেলাও আর থাকে না। শুধুমাত্র ভাইরাস ডেফিনিশন ফাইলটিকে পেনড্রাইভের নির্দিষ্ট ফোল্ডারে কপি করে দিলেই এন্টিভাইরাস আপডেট হয়ে যাবে। তারপর পেনড্রাইভটিকে নিয়ে আক্রান্ত মেশিন বুট করে ভাইরাস ক্লিন করা থেকে শুরু করে যাবতীয় মেইনটেন্যান্সের কাজ দ্রুত করে নেয়া সম্ভব যেহেতু সিডি অপেক্ষা পেনড্রাইভের গতি অনেক বেশী হয়ে থাকে।

উপরের ঘটনাটি সাধারন ব্যবহারকারীদের মনে হয়ত নাও আসতে পারে - তবে যারা প্রতিনিয়ত এ ধরনের কাজ করে থাকেন তারা এরকম একটি টুলস এর প্রয়োজনীয়তা প্রায়ই অনুভব করে থাকেন। তাহলে আসুন কিভাবে এ ধরনের একটি টুলস তৈরী করে নিতে পারি তা দেখা যাক। এ টুলসটি উইন্ডোজ মেশিনের জন্য খুব দরকারী এবং লিনাক্স মেশিনেও ডাটা রিকভারী করার জন্য ব্যবহার করা যেতে পারে।


কি কি লাগবেঃ


১. একটি ১ গিগা পেনড্রাইভ (তবে ৪ গিগার উপরে না হওয়াই ভাল) - কারন আমরা যে টুলসটি (syslinux) ব্যবহার করব তা শুধুমাত্র ফ্যাট সিস্টেম সাপোর্ট করবে। অবশ্য ৪ গিগার উপরে পেনড্রাইভ হলে তার জন্য আলাদা টুলস (extlinux)ব্যবহার করতে হবে।

২. পেনড্রাইভ বুটেবল করার সফটওয়্যার - syslinux ডাউনলোড করুন এখান থেকে - লেটেস্ট ভার্সন। তবে এ জিপ ফাইলে অনেক ধরনের টুলস থাকায় কোনটি দিয়ে কাজ করতে হবে তা খুজে বের করা অনেকের জন্যই কঠিন হবে।

তাই আমি আরেকটি জিপ ফাইল আপনাদের ডাউনলোডের জন্য আপলোড করে দিলাম। ডাউনলোড করুন এখান থেকে। আমার জিপ ফাইলটিতে শুধুমাত্র পেনড্রাইভ মাল্টি-বুটেবল করার জন্য যেটুকু দরকার সেটুকুই আছে - সাথে দিয়েছি কিছু কনফিগারেশন ফাইল (syslinux.cfg, syslinuxmenu.cfg) ও কয়েকটি ব্যাচ ফাইল (bootinst.bat, bootinst.sh - এ ফাইলগুলির সাহায্যে ডস/শেল মোডে কমান্ড না দিয়ে এর উপর ডাবল ক্লিক করেই পেনড্রাইভ বুটেবল করা যায়)।

তবে ঘাটাঘাটি করার জন্য প্রথম জিপ ফাইলটি ডাউনলোড করতে পারেন অভিজ্ঞ যারা। কারন এখানে সিডি, পিএক্সই, হার্ডডিস্ক ইত্যাদি বুটেবল করার জন্যও বিভিন্ন টুলস দেয়া আছে যেমনঃ isolinux, pxelinux, lilo/grub।

৩. আপনার কাংখিত বুটেবল সিডি ও লাইভ সিডি বেজড অপারেটিং সিস্টেম - যেগুলি পেনড্রাইভে ইনস্টল করতে চাচ্ছেন। আমি এগুলির লিংক দিচ্ছি না। কারন যাদের কাছে এগুলি নেই তারা হয়ত এটি করতে চাইবেন না। কয়েকটির নাম তো আগেই বলেছি- যেমন এভাস্ট বার্ট সিডি, পাপ্পি লিনাক্স, উবুন্তু/ড্রিম লিনাক্স, হিরেন বুট সিডি। লিনাক্স ও.এস. ডাউনলোডের জন্য সবচেয়ে ভাল সাইট ডিস্ট্রোওয়াচ.কম।

৪. আই.এস.ও ফাইল থেকে ফাইল এক্সট্রাক্ট করার জন্য লেটেস্ট 7zip 4.65 ভার্সন। এটি ডাউনলোড করুন এখান থেকে। তবে সেভেনজিপ এর নিজস্ব সাইট থেকেও ডাউনলোড করে নিতে পারেন। কিন্তু অনেকেই ডাউনলোড করতে গিয়ে লিংক খুজে পান না বা সার্ভার ডাউন থাকে মাঝে মধ্যে এজন্য আমি আপলোড করে দিলাম। তবে এ কাজে অন্যান্য আই.এস.ও. এক্সট্রাক্ট করার সফটওয়্যার ও ব্যবহার করতে পারেন। এছাড়া ২ নং এ বর্নিত জিপ ফাইলটিও সেভেন জিপ ফরম্যাটে দিয়েছি যা আনজিপ করার জন্যও সেভেন জিপ সফটওয়্যার লাগবে।

কার্যপ্রনালীঃ

প্রয়োজনীয় টুলসগুলী জোগাড় তো হল। আসুন এবার মূল কাজ শুরু করা যাক।

১. প্রথমেই পেনড্রাইভটিকে FAT16/FAT32 সিস্টেমে ফরম্যাট করে নিন। এজন্য এ ইউএসবি ফরম্যাট টুলসটিও ব্যবহার করতে পারেন।

২. boot.7z ফাইলটিকে পেনড্রাইভে এক্সট্রাক্ট করে নিন। সরাসরি এক্সট্রাক্ট করুন। কোন ফোল্ডারে করলে কাজ নাও করতে পারে।

৩. সবচেয়ে গুরুত্বপূর্ন ধাপ এটি। এবার অন্যান্য লাইভ সিডি/বুট সিডি থেকে কপি করার পালা। যদি আপনার কাছে লাইভ অপারেটিং সিস্টেমের ISO ফাইল থাকে তবে সেভেন জিপ সফটওয়্যার দিয়ে ISO থেকে পেন ড্রাইভের একটি ফোল্ডারে এক্সট্রাক্ট করুন সব ফাইলগুলি।

যেমনঃ পাপ্পি লিনাক্সের জন্য পেন ড্রাইভে puppy নামে একটি ফোল্ডার তৈরী করি। তারপর পাপ্পির ISO ফাইলটি এ ফোল্ডারে এক্সট্রাক্ট করে নিই। ফলে এ ফোল্ডারে নিচের মত ফাইল গুলি দেখতে পাবেন।

ছবি

এ ফোল্ডারে isolinux.cfg ফাইলটিকে wordpad এ খুলুন। তাহলে নিচের মত কয়েকটি লাইন পাবেনঃ
label puppy
kernel vmlinuz
append initrd=initrd.gz pmedia=cd

এ ফাইলটি বিভিন্ন অপারেটিং সিস্টেমে বিভিন্ন ফোল্ডারে থাকে। যেমনঃ পাপ্পিতে রুট ফোল্ডারে থাকে, স্লিটাজে থাকে \boot\isolinux\ ফোল্ডারে। কিছু কিছু লিনাক্সে আবার এ ফাইলে থাকে অন্য কোন cfg ফাইলকে লোড করার বিবরন। সে ক্ষেত্রে অন্যান্য cfg ফাইলগুলিকে ওপেন করে দেখুন এক এক করে এ জাতীয় এন্ট্রি পাওয়ার জন্য। অবশ্য লিনাক্সে অভিজ্ঞরা দেখলেই বুঝতে পারবেন কোনটি কার্নেল ফাইল ও কোনটি র‌্যামডিস্ক ফাইল।

এ লাইনগুলি আমাদের বুট লোডারের ফাইল syslinux.cfg অথবা আরেকটি কাস্টোমাইজড ফাইল syslinuxmenu.cfg এর যেকোন একটিতে লিখতে হবে যেটি পাবেন আপনার পেনড্রাইভের \boot\syslinux পাথে অর্থাৎ যেখানে boot.7zip ফাইলকে আনজিপ করেছেন । এগুলির সাহায্যেই syslinux বুট লোডার অপারেটিং সিস্টেমটিকে বুট করবে পেন ড্রাইভ থেকে।

syslinux.cfg ফাইলে সরাসরি না লিখে আরেকটু ফ্লেক্সিবল করার জন্য এগুলিকে আমি syslinuxmenu.cfg ফাইলে লিখেছি এবং syslinux.cfg ফাইলে লেখা আছে INCLUDE /boot/syslinuxmenu.cfg এ লাইনটি - যার সাহায্যে syslinuxmenu.cfg ফাইলটি লোড হবে। এভাবে না লিখে সরাসরি ও syslinux.cfg ফাইলে লেখা যেত। কিন্তু আমরা এখানে লিনাক্স থেকে ও যাতে পেন ড্রাইভ বুটেবল করা যায় সেজন্য একটি কমন ফাইলে অপশনগুলি রেখেছি।

এ ধরনের cfg ফাইল বেশীরভাগ ডিস্ট্রোর সাথেই পাবেন। যা সিডি থেকে / ISO ফাইল থেকে দেখে নেয়া যায়। ISO ফাইল খুলে দেখার জন্য সেভেন জিপ ব্যবহার করুন।

এবার পেনড্রাইভে অবস্থিত boot ফোল্ডারের ভিতর syslinuxmenu.cfg ফাইলটি এডিট করে পাপ্পি লিনাক্সকে বুটেবল করার অপশন দিয়ে দেই। এটিকে নোটপ্যাড বা কোন এডিটরে ওপেন করুন। তারপর নিচের লাইনগুলি লিখুন। আমার দেয়া জিপ ফাইলে এটি লেখাই আছে শুধু মিলিয়ে নিন। প্রয়োজনমত আপনার নিজস্ব পাথ ব্যবহার করতে পারেন তবে প্রথমবার আমার দেয়া পাথই ব্যবহার করা ভাল। তাহলে ঝামেলা কম হবে।

প্রথমে TIME OUT, BACKGROUND, MENU WIDTH, COLOR ইত্যাদি দেয়া আছে। তারপর অপারেটিং সিস্টেমের এন্ট্রি শুরু হয়েছে।

পাপ্পির জন্য এন্ট্রিঃ

LABEL Puppy
MENU LABEL Linux Puppy
KERNEL /puppy/vmlinuz
APPEND initrd=/puppy/initrd.gz PMEDIA=usbflash
প্রথম লাইনটি হচ্ছে LABEL ভেরিয়েববল - তারপর মেনুর নাম - এখানে PUPPY। এটি SYSLINUX ব্যবহার করে থাকে।

২য় লাইনে MENU LABEL এর সামনে যা লিখবেন তাই পর্দায় দেখা যাবে বুটের সময়। যা সিলেক্ট করে এন্টার চাপতে হয়।

৩য় লাইনটি অপারেটিং সিস্টেমের কার্নেল লোড করবে। /puppy দিয়ে পেনড্রাইভের puppy ফোল্ডার এর পাথকে নির্দেশ করে।

৪র্থ লাইনটি RAMDISK যোগ করার জন্য। APPEND initrd= এর সামনে Ramdisk এর জিপ ফাইল পাথ দিতে হবে এবং PMEDIA অপশনে usbflash অপশন দিয়ে দিয়েছি কারন এটি ইউএসবি থেকে বুট করবে।

এগুলির বিস্তারিত বর্ননা আর এখানে দিলাম না। নতুনদের অসুবিধা হতে পারে। আর যারা অভিজ্ঞ তারা তো বুঝেই গেছেন।

এভাবে অন্যান্য অপারেটিং সিস্টেম যোগ করে নিতে হবে। আমার ফাইলে পাপ্পি ছাড়াও SLITAZ, HIREN, MINI XP কিভাবে এন্ট্রি দিতে হবে তা দেয়া আছে। যেমনঃ হিরেন বুট সিডির জন্যঃ
LABEL Hiren
MENU LABEL Start Hiren Boot CD
KERNEL /HBCD/memdisk
APPEND initrd=/HBCD/boot.gz root=/HBCD/boot.gz

উপরোক্ত এন্ট্রিগুলি হিরেন বুট সিডির ভিতর HBCD ফোল্ডারের isolinux.cfg ফাইলে পাওয়া যাবে।

এছাড়া উইন্ডোজ বেজড অপারেটিং সিস্টেম লোড করার জন্য আমি grab4dos কে দিয়ে দিয়েছি জিপ ফাইলের সাথে যেটি লোড করার কমান্ড হচ্ছে নিম্নরূপঃ
LABEL Grub4DOS
MENU LABEL Grub4DOS
KERNEL /boot/grub/grub.exe
অর্থাৎ এখানে syslinux অন্য আরেকটি লোডার গ্রাবকে লোড করবে যেটি উইন্ডোজ বেজড অপারেটিং সিস্টেমকে chainloader এর মাধ্যমে লোড করতে পারে। এজন্য গ্রাব লোডারের ফাইল menu.lst পরিবর্তন করে দিতে হবে যেটি পাবেন আপনার পেনড্রাইভের /boo/grub পাথে। এটিও আমাদের আগের ফাইল syslinuxmenu.cfg এর মত। যেমনঃ হিরেন বুট সিডির সাথে দেয়া মিনি এক্সপিকে লোড করার কমান্ড হচ্ছে-
title Mini Windows Xp
find --set-root /HBCD/XPLOADER.BIN
chainloader /HBCD/XPLOADER.BIN
প্রথম লাইনে যথারীতি পর্দায় প্রদর্শনের টাইটেল দিতে হবে title এর সামনে।

২য় এবং ৩য় লাইনের মাধ্যমে এক্সপিকে chainloader এর সাহায্যে বুট করবে।

ইচ্ছা করলে আপনি অন্যান্য লিনাক্সকে ও এ ফাইলের মাধ্যমে বুট করতে পারেন। সেক্ষেত্রে syslinux এর কাজ হবে শুধুমাত্র Grub কে লোড করা। বাকী সব কাজ হবে গ্রাবের মাধ্যমে যা এ ফাইল ডিফাইন করে দিতে হবে।
যেমন menu.lst ফাইলে পাপ্পি এর জন্য কমান্ড হবেঃ
title Linux Puppy
kernel /puppy/vmlinuz PMEDIA=usbflash
initrd /puppy/initrd.gz
syslinuxmenu.cfg এবং menu.lst এর কমান্ড প্রায় কাছাকাছি। একটু খেয়াল করলেই বুঝতে পারবেন আশা করি। তবে যাদের লিনাক্সে গ্রাব এবং লিলো বুট লোডার নিজে হাতে এডিট করার অভিজ্ঞতা আছে তাদের জন্য এটা ডালভাত।

উপরে দেখিয়েছি কিভাবে ISO ফাইল থেকে অপারেটিং সিস্টেম এক্সট্রাক্ট করবেন সে পদ্ধতি। তবে যদি ISO থেকে এক্সট্রাক্ট না করে সরাসরি সিডি থেকে কপি করতে চান তবে তা আরো সোজা। পেন ড্রাইভে একটি ফোল্ডার তৈরী করে সিডি থেকে ফাইলগুলী সরাসরি কপি করে দিন এখানে। তারপরের ধাপগুলি উপরের মতই। এভাবে আপনার পেনড্রাইভের ধারনক্ষমতা অনুযায়ী অনেকগুলি অপারেটিং সিস্টেম ইনস্টল করতে পারবেন।

৪. উপরে পয়েন্টে আমরা ধাপে ধাপে LIVE OS সমূহ পেন ড্রাইভে কপি করা, তারপর বুট লোডার এর ফাইলে এন্ট্রি দেয়া ইত্যাদি কাজগুলি করেছি।

এবার সর্বশেষ কাজ - পেন ড্রাইভ বুটেবল করতে হবে।

উইন্ডোজ মেশিন থেকে

এজন্য বুট ফোল্ডারে ঢুকে bootinst.bat ফাইলে ডাবল ক্লিক করুন। তারপর কি-বোর্ডের যেকোন বাটন চাপুন। ব্যস- আপনার পেন ড্রাইভ বুটেবল হয়ে যাবে। তারপর মেশিন রি-স্টার্ট করে পেন ড্রাইভ থেকে মেশিন চালু করুন। যদি পেন ড্রাইভ খুজে না পায় মেশিন তবে বায়োসে গিয়ে বুটেবল ডিভাইস অপশনে গিয়ে পেন ড্রাইভ/ইউএসবি ডিভাইস/ইউএসবি জিপ কে প্রথম অপশন দিয়ে দিন। তারপর আবার মেশিন চালু করুন।


লিনাক্স মেশিন থেকেঃ
/boot/ ফোল্ডারে bootinst.sh ফাইলে ডাবল ক্লিক করে একইভাবে কাজ করুন।

সতর্কতাঃ এটি খুব সাবধানে করবেন এবং হার্ডডিস্কের কোন ফোল্ডার থেকে এ ফাইলে ভুলেও ক্লিক করতে যাবেন না। তাতে পরের বার আপনার অপারেটিং সিস্টেম লোড নাও হতে পারে। এটি অবশ্যই পেনড্রাইভের ফোল্ডারে (boot) থাকা অবস্থায় করবেন। আর বুট ফোল্ডারের নাম পরিবর্তন করবেন না।

আমার পেন ড্রাইভের চিত্র নিম্নরূপঃ

ছবি

এখানে puppy ফোল্ডারে পাপ্পি লিনাক্স, slitaz ফোল্ডারে স্লিটাজ লিনাক্স, HBCD ফোল্ডারে হিরেন বুট সিডি এবং AVAST BART CD ফোল্ডারে এভাস্ট বার্ট সিডি ইনস্টলড রয়েছে।

ডাউনলোডকৃত আইএসও ইমেজ-কে রিপোজিটরী হিসেবে ব্যবহার করুন

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

এ পদ্ধতিতে আপনাকে আইএসও ফাইল এবং তার ফোল্ডারগুলো অবশ্যই চিনিয়ে দিতে হবে যাতে বুট করার সময়ে অটোমেটিক্যালি সেগুলো পেয়ে যান এবং সেখান থেকে যে কোন সময়ে ইনস্টল করতে পারেন।

নিচের লাইনগুলিতে my-user-name এর জায়গায় আপনার নিজের নাম/ফোল্ডার এর নাম হবে।
এজন্য প্রথমেই আপনি হোম এ অবস্থিত আপনার ফোল্ডার এর ভিতরে isos নামে একটি ফোল্ডার তৈরি করুন আইএসও/ইমেজগুলি রাখার জন্য।

এ ফোল্ডারে আইএসও ফাইলগুলি নেট থেকে ডাউনলোড করুন আর কপি করে রাখুন /home/my-user-name/isos/ পাথে যাদের নাম হতে পারে এরকম- debian1.iso debian2.iso debian3.iso

এবার isos ফোল্ডার এর অধীনে আরো তিনটি ফোল্ডার তৈরী করি iso1, iso2, and iso3 নামে।

এবার আপনার পছন্দের টেক্সট এডিটরে (vim, gedit, kedit-যে কোন একটিতে ) /etc/fstab ফাইলটি খুলুন এবং নিচের লাইনগুলি যোগ করুন এ ফাইলের একদম শেষেঃ

কমান্ডঃ sudo gedit /etc/fstab অথবা
sudo vim /etc/fstab

/home/my-user-name/isos/debian1.iso /home/my-user-name/isos/iso1/ udf,iso9660 user,loop 0 0
/home/my-user-name/isos/debian2.iso /home/my-user-name/isos/iso2/ udf,iso9660 user,loop 0 0
/home/my-user-name/isos/debian3.iso /home/my-user-name/isos/iso3/ udf,iso9660 user,loop 0 0


এরপর সিন্যাপ্টিক এর রিপোজিটরীতে নিচের লাইনগুলি যোগ করতে হবেঃ
এটি গ্রাফিক্যালি টুলস দিয়ে করতে পারেন অথবা /etc/apt/sources.list ফাইলে উপরের মতই কোন এডিটর দিয়ে লাইনগুলি যোগ করতে পারেনঃ

file:/home/my-user-name/isos/iso1 lenny main
file:/home/my-user-name/isos/iso2 lenny main
file:/home/my-user-name/isos/iso3 lenny main


(এখানে প্রথম অংশ ফাইলটি কোথায় আছে তার লোকেশন, দ্বিতীয় অংশ এর ডিস্ট্রিবিউশনের নাম-লেনি, তৃতীয় অংশ হচ্ছে উক্ত ডিস্ট্রো এর main অংশকে নির্দেশ করে।

এখন নতুন করে রিবুট করুন তাহলে আইএসও গুলি স্বয়ংক্রিয়ভাবে মাউন্ট হয়ে যাবে এবং সিন্যাপ্টিকে পেয়ে যাবেন। সিন্যাপ্টিকে ও রিলোড বাটনে ক্লিক করে নিতে ভুলবেন না।

ডেবিয়ান/উবুন্তুতে বাংলা ফন্ট ইনস্টল করা

লিনাক্স ইনস্টলের পর পছন্দের বাংলা ফন্ট না থাকলে লেখাগুলি দেখতে একটু খারাপ-ই লাগে। আবার ইউনিকোড ছাড়া অন্য কোন ফন্ট যেমন সুতন্বী, আদর্শলিপি ইত্যাদি ফন্টের লেখা একদমই লিনাক্সে দেখা যায় না। তাই অনেকেই আমরা একটু হতাশ হয়ে যাই। এতে হতাশ হওয়ার কিছুই নেই। আপনি আপনার পছন্দের যেকোন ফন্ট লিনাক্সে ইনস্টল করে আপনার ডকুমেন্টগুলি সঠিকভাবে দেখতে পারবেন। তাহলে আসুন শুরু করি।

প্রথমে টার্মিনাল খুলে রুট হিসেবে লগইন করুন। এবার ডেবিয়ান এর সাথে কিছু বাংলা ফন্ট দেয়া থাকে সিডিতে যেগুলি আমরা প্রথমে ইনস্টল করে নেই।

প্রথমেই ফন্ট প্যাকেজ দেখার জন্য কমান্ড দিতে পারেনঃ

aptitude search bengali

এভাবে আপনি যেকোন প্যাকেজ এর নামের কিছু অংশ দিয়ে সার্চ করতে পারেন।

ফলে আপনি প্যাকেজের নাম সঠিকভাবে খুজে পাবেন। যেমন আমার এখানে প্যাকেজটির নাম ttf-bengali-fonts

তাই উক্ত প্যাকেজটি ইনস্টলের কমান্ড হবে এরকমঃ

aptitude install ttf-bengali-fonts


যদি উবুন্তুতে ইনস্টল করতে চান কমান্ড এর আগে sudo শব্দটি ব্যবহার করুন। অর্থাৎ এক্ষেত্রে কমান্ড হবেঃ

sudo aptitude install ttf-bengali-fonts

উপরের ফন্টগুলি ইনস্টল হয়ে গেলে নিচের কমান্ড এর মাধ্যমে আপনার উইন্ডোজ ড্রাইভ/পেন ড্রাইভ থেকে ফন্টগুলি লিনাক্সের ড্রাইভে কপি করে দিন।

ফন্ট কপি করার কমান্ডঃ

syntax:

cp sourcepath destinationpath


command:
cp /media/win_D/banglafont/solaimanlipi.ttf /usr/share/fonts/truetype/ttf-bengali-fonts/

এখানে /media/win_D/banglafont/SolaimanLipi.ttf বলতে উইন্ডোজ এর ডি ড্রাইভের banglafont নামক ফোল্ডারে থাকা SolaimanLipi.ttf ফন্টকে বুঝিয়েছি। এটি আপনার পছন্দের যেকোন ফন্ট হতে পারে। তার পাথ উল্লেখ করে দিন এখানে।

সবশেষে ফন্ট ক্যাশ আপডেটের জন্য কমান্ড দিনঃ

fc-cache -fv


যাতে এটি সব এ্যাপ্লিকেশনের সাথে কাজ করতে পারে।

In Depth: 50 amazing Ubuntu time-saving tips

The end of October saw the much anticipated release of Ubuntu 8.10 - affectionately called the Intrepid Ibex.

It's a release that sees Ubuntu going from strength to strength.

And with its popularity reaching stratospheric proportions, we thought that now was the perfect time to pool together our favourite tips into one place.


If you've never tried Ubuntu, there's never been a better time to dive in. If you're already a convert, read on to discover how to get the best from your installation.

System performance

1. Shorten the boot menu timeout
If you're fed up of waiting for the boot menu to timeout before your favourite operating system launches, open '/boot/grub/menu.lst' with a text editor and look for the line starting with 'timeout'. Just lower the number to its the right. This is the number of seconds the menu system will wait before booting the default operating system (0 or 1 is not recommended).

2. Monitor boot performance
One of the best utilities you can install for checking your system's performance is called 'bootchart'. After installation and a reboot, 'bootchart' will create a complex graph of everything that's running and taking up resources as your system boots, and place an image of the graph in the /var/log/bootgraph folder.

3. Improve boot speed
When the boot menu appears (you might have to press escape) select the default Ubuntu boot option and press 'e'. Cursor down to the line starting with 'kernel' and press 'e' again. You're now editing the boot parameters, and you need to press space and add the word 'profile'. Press return followed by 'b' to boot. Disk access during your boot sequence will now be profiled, which means that subsequent booting should be faster.

4. Trim unwanted services
The default Ubuntu installation takes an over cautious approach to background services. Bluetooth tools may be be running, for example, even if you don't have the hardware. Disable the services you don't need by opening the Services window from the System>Administration menu. Be careful not to disable services you rely on.

5. Monitor CPU usage
You might think that CPU monitors are purely for geeks trying to steal a few extra cycles from their overclocked processors. But this isn't true. A discreet CPU monitor is the best way detecting a wayward process that's slowing down the rest of the system. Right click on the desktop panel, and select 'System Monitor' for our favourite. There's a similar applet for KDE.

6. Manage your processes
If you do detect a process on your system that's stealing more CPU cycles than it really should, then you need to end that process to get those cycles back. Save all your work, and use the Ubuntu process manager. This is part of the System Monitor tool, and this can be opened from the System>Administration menu.

7. Be nice to one another
If you use the System Monitor to manage your running tasks, you might have noticed the 'nice' column. 'nice' is basically a task's priority, and ranges between -20 to 19. If you have a CPU heavy task running, such as a 3D calculation for example, increasing the nice will lower its priority, and make your system feel more responsive.

The default Gnome desktop

8. Enable Gnome Auto login
A lot of us are the sole users of our computers, and it makes little sense navigating through a login screen before getting to our desktops. You can enable auto-login for a default account on your Ubuntu machine by selecting 'Login Window' from the System> Administration window. Switch to the 'Security' page, enable 'Automatic Login' and select the user.

9. Prune your menus
The more applications you install, the more cumbersome the launch menu becomes. But you can enable the applications you're most likely to use right clicking on Ubuntu icon that hides the menu, and selecting 'Edit Menus'. The application that appears will let you enable or disable menus in the hierarchy.

10. Remove the menu popup delay
HCI gurus insist that there should be a delay between when you click on a menu and when it appears, but if it's speed you're after, you can remove the delay. Open a terminal, and type 'nano ~/.gtkrc-2.0', then add a single line 'gtk-menu-popup-delay = 0'. Save this by pressing escape and typing 'Y', and after a restart you should find your menus are ultra quick.

11. Add More Workspaces
Workspaces are one of the best things about Linux. They're a great way of organising your applications onto different virtual screens. By default, Ubuntu sets up only two, but you can adjust this number by right clicking on the workspace switcher in the bottom right corner of the display and opening the Preferences window.

12. Use Workspaces more effectively
Use 'Ctrl alt' and either cursor left or right to switch between adjacent workspaces, and if you hold down the shift key, the active window will move to the new desktop too. For better control, right click on any windows top border to open a context menu, and from here you can choose to move the window to another workspace.

13. Don't start everything
As with system services, the average Ubuntu installation runs lots of different programs at startup. You can remove those you don't need by launching the Sessions window from the Preferences menu. If you don't use the desktop search, for instance, disable 'Tracker'. Other likely candidates for removal include Bluetooth, the Evolution Alarm Notifier and the Print Queue Applet.

14. Remember the running session
Another neat feature of the setting manager is that you can configure your desktop to remember the applications that were running when you shutdown your machine. This is a great way of quickly launching into your working environment. Just switch to the Session Options page and enable the 'Automatically Remember' option.

15. Fine tune the Gnome desktop
Application shortcuts are hidden behind the Gnome equivalent of the Windows registry editor. This can be launched from the command-line by typing 'gconf-editor'. But be careful, settings changed here could mess up your desktop. If you do, then the desktop can be restored to its default state by deleting the '.gconf' and '.gconfd' folders from your home directory.

16. Launching applications with a key combination
One of the settings hidden in Gconf is the ability to launch applications with a key combination. Navigate to 'apps>metacity>key_binding_commands', double click on one of the 'command_' entries and enter the launch command for the application you want to run. To set the key, double click on the same entry in 'apps>metacity> global_keybindings' and press a key. Holding 'Ctrl Shift alt' and that key will now launch the application.

17. Use pervasive searches
Ubuntu comes with an excellent utilities for searching through the contents of files and emails, but it's not enabled by default. Open the Search and Indexing window from the Preferences menu, and enable both indexing and watching. After the index has been created, you can search through your files using the 'Tracker Search Tool' in the 'Applications>Accessories' menu.

18. Switch To A Faster Desktop
Ubuntu uses the Gnome desktop by default. It's a good choice because Gnome is powerful, capable and popular. But it's not streamlined or particularly efficient. A faster alternative is XFCE, the source of Xubuntu, and this can be installed through the Synaptic package manager by searching for the 'xubuntu-desktop' meta-package.

The KDE desktop

19. Switch to an KDE
If neither Gnome or XFCE are helping you be more productive, then try KDE. It's the most configurable of the Linux desktops, and often takes a different slant on browsing and file management. Version 4 has vastly improved the environment, and it can be installed by searching for the 'kubuntu-desktop' in Synaptic.

20. KDE auto-login
If you prefer Kubuntu or the KDE desktop, then you'll need to use a different configuration panel to enable auto-login. Open KDE's System Settings application, and switch to the Advanced page and open the Login Manager. Enter your root password and switch to the convenience page. From here you can choose to enable a user for auto login.

21. Pre-load Konqueror
If you're always launching KDE's file and web browser, you can pre-load several instances of it to speed up launch time. Open the Settings>Configure Konqueror window, and switch to the Performance page. Increase the number of instances from 1 to something like 4 or 5. Each instance takes extra system memory, but each session of Konqueror will now load almost instantly.

22. Use Konqueror shortcuts
Konqueror is a great file and web browser with plenty of shortcuts for the power user. Our favourite is the ability to use shortcuts in the location field to perform online searches. Typing 'wp:linux' will search Wikipedia for Linux, while 'gg:linux' and ggi:linux' will search Google and Google Images.

System-wide

23. Launch OpenOffice.org faster
The default OpenOffice.org configuration errs on the side of caution. There are 100 levels of undo, for example, and reducing this number will reduce the amount of memory it uses. This setting can be found from the Options window by switching to the Memory page. Try reducing the undo steps to 30.

24. Use the quick launch toolbar
In both Gnome and KDE, you can drag applications from the launch menu onto the desktop and onto the toolbar. Clicking on these icons is the quickest way of launching your most used applications, short of holding down a certain key combination.

25. Replace slow applications
One of the best things about open source is that there's always an alternative, and switching to one can vastly improve your system's performance. Try Abiword instead of OpenOffice.org's Writer, Thunar instead of Nautilus and Opera instead of Firefox. All are broadly compatible with their alternatives, and perform faster.

26. Rapid application launch
If you know the name of the application or tool you want to launch, you can quickly start it by pressing Alt and F2. This displays a single command-line prompt in a window, and into this you type your application name. Type 'firefox' and its icon will appear. Pressing enter will launch it.

27. Take a screenshot
Pressing the Print key will take a screenshot and bring up the save file window. Being able to take a screenshot at any moment is incredibly useful, and is great for saving online order details, for example, or just your high score in Crack Attack. Pressing Alt and Print will take a screenshot of the currently active window.

28. Quickly restart the desktop
Occasionally, you may find that your desktop hangs and you can no longer use the keyboard or mouse. Fortunately, the desktop process is entirely independent of the rest of the operating system, and you can reset the desktop by holding down the Ctrl Alt and backspace keys. But you will still lose any unsaved data, so be careful.

29. Jump to a console
Another option if your desktop has crashed is jumping to a command-line console. Pressing Ctrl and alt, followed by F1-F6 will switch the display to one of six different consoles. From here, you can login and try to kill the process causing trouble, before switching back to your desktop by pressing Ctrl Alt and F7.

30. Create a separate Home partition
When you next perform a fresh installation of Ubuntu, choose the manual partition option and create three separate partitions. One needs to be for '/', and should be around 10-20GB, . Another should be for the swap space, and be around the same size as your installed memory. And the final partition is '/home', and will contain all your personal files. When you next install Ubuntu, choose manual again and your Home partition won't be reformatted, keeping all your personal files and configuration options in tact.

31. Tweak your Nvidia settings
After installing the proprietary driver, Nvidia graphics hardware provides exceptional 3D and 2D acceleration for the Linux desktop. You can fine-tune your Nvidia hardware by installing an application called 'nvidia-settings', from which you can edit your monitor settings, enable twin displays and add a drop shadow to the cursor.

32. Track down large unused files
Large and scattered files can start to slow your desktop down, as well as any applications that rely on reading the contents of a directory. The best tool we've found for consolidating and deleting unused files is called Filelight. It uses a pie chart to show where the largest files are located, and you can easily delete directories of junk from the right click menu.

33. Enable vertical sync in Compiz
Compiz, the 3D whizzy desktop effects application, can be either a resource hog or even an acceleration tool. It depends on the power of your graphics hardware. But we've nearly always had better more responsive results on the desktop by enabling the vertical sync option in the general option page of the Compiz settings manager.

34. Don't Compiz
On the other hand, the wonderful effects that Compiz produces can't really be described as functional, although they do provide some improved usability for some. You can free up plenty of resources by disabling the desktop effects from the Visual Effects page of the Preferences>Appearance window.

35. Get packages off a CD or DVD
Even in these times of pervasive internet, you sometimes need to be able to install a package without having an internet connection. Fortunately, the Synaptic package manager can read the contents of an Ubuntu installation CD, and add those packages to the database for installation from the drive. Open the Software Sources window from the Administration menu, switch to the 'Third Party' page and click on the 'Add CD-ROM' button.

36. Boost load speed with Preload
Preload is a tool you can install through the Synaptic package manager. It will run silently in the background, from where it will try to guess which libraries you're likely to use before you use them. It will then load these into memory so that your applications load quicker. The effects seem to be minimal with recent releases of Ubuntu, but it's worth a try.

37. Use a virtual desktop
If you enjoy trying different distributions, but have always been put off by the installation, try Virtual Box from the official Ubuntu repositories. It's easy to use and lets you install a virtual version of almost any Linux installation (and even Windows) right on your desktop, and running at close to native speeds.

38. Boot into text mode
Sometimes, a graphical environment is unnecessary, especially if you use your machine as a server. Which is exactly why there's a version of Ubuntu called the Server edition. By default, Server has no graphical desktop. But in all other ways, it's the same Ubuntu. This makes it perfect as a web or media streaming server.

39. Suspend your system
Why wait for your system to boot when you can resume your session from hibernation. This is quicker than booting, and you can continue where you left off. But it's also dependent on your hardware behaving itself. Just give it a go to see if your hardware supports the feature. Click on the logout button, and if hibernate appears as an option, it should work.

40. Customise your kernel
If you're feeling really brave (and we'd never recommend this for anyone with too little time on their hands), you could build your own kernel. It's not as hard as it sounds and it will enable you to add only the features and hardware you're likely to use. Excellent step by step instructions can be found here: https://help.ubuntu.com/community/Kernel/Compile

The command-line

41. Try it, it's really not that bad
The command-line really is your friend. After opening Terminal from the Applications>Accessories menu (or Konsole in KDE), you can accomplish many common tasks much more effectively than from any desktop GUI. To copy folder, for example, type 'cp -rf source destination', rename a file with 'mv' and edit a text file using a command called 'nano'.

42. Easy command shortcuts
You can press the tab key while using the command-line to automatically complete command names as well as system paths. You can also cursor up through your command history, and use 'Ctrl + r' to search for a command starting with the characters you begin to type.

43. Replace heavy GUI applications with command-line equivalents
There are command-line versions of most desktop applications. You could install and use 'pine' for your email and news, for instance. Or try 'lynx' for web browsing and 'wget' or 'ncftp' for downloading files. 'mc', short for Midnight Commander, is a feature-full file manager, and all of these tools will run on hardly any memory with hardly any CPU requirements.

44. Create an ISO image from a CD or a DVD
You can create an ISO image from optical media, and most attached devices, by using a single command on the terminal. Type 'dd if=/dev/cdrom of=disk.iso bs=1024' to make a raw copy of the data and drop it into the disk.iso file. You may need to unmount the drive first, by typing 'sudo umount /dev/cdrom'.

45. Read an ISO disc image without burning it
If you've downloaded an ISO disc image, and you want to access the files on it without wasting an optical disk, you can create a virtual drive from the image with a single command. Open the terminal from the Accessories menu. Type 'sudo mkdir /mnt/image', followed by 'sudo mount -o loop disk.iso /mnt/image'. You can now browse the disc by pointing a file browser at the '/mnt/image' folder.

46. Use the 'screen' command
After you've got used to the command-line, one of the best commands to learn is called 'screen'. It's the command equivalent to virtual desktops, and it lets you run several sessions at once, as well as suspend and resume a session. Type 'screen' to start, then press 'Ctrl a' followed by 'c' to create a new session. 'Ctrl a' and 'n' or 'p' will switch through the active sessions. 'Ctrl a' and 'd' will detach from the session, while typing 'screen -r' will resume one.

47. Access your Ubuntu machine from anywhere
The best thing about the command-line is that you can use it to access your machine securely from anywhere on the internet. The key to this is something called 'SSH' - the secure shell. Install 'openssh-server' through Synaptic and use a tool called 'putty' on a Windows machine, or 'ssh' on Linux, to access the command-line through your user accounts on your Ubuntu box.

48. Transfer files between computers files quickly and securely
With the open SSH server installed and running, you can quickly and securely transfer files to and from the remote computer using the 'sftp' command. It works just like FTP, and accepts both 'put' and 'get' for file tranfers. If you prefer a GUI, we recommend using Filezilla on Windows, or 'sftp://' as a protocol in KDE.

49. Avoid typing 'sudo'
You might have noticed that for almost every important configuration command you type, you need to precede it with 'sudo' and your password. This can be a real pain if you're typing one sudo command after the other. Avoid this hassle by typing 'sudo bash', this transparently replaces the current shell with a new one, complete with administrator privileges.

50. Create a root account
If you find yourself spending more and more time requiring system administration privileges, you may as well enable the root account. Just type 'sudo passwd root', and enter your password followed by a new one for the root account. You can now type 'su root' to login as root, but you should only use this mode for essential system maintenance.