Upgrading Cacti

  1. Backup the old Cacti database.

    shell> mysqldump -l --add-drop-table cacti > mysql.cacti

    Note: You will probably have to specify the -u and -p flags for the MySQL username and password. This user must have permission to read from Cacti's database or you will end up with an empty backup.

  2. Backup the old Cacti directory.

    shell> mv cacti cacti_old

    Read more

Share

Connecting openvpn server using openvpn gui client for windows

Assuming that you have a openVPN server ready to allow vpn connectivity from its clients. It is also assumed that CA Certificate (.pem) is also obtained from a valid CA and signed with the openVPN server.

Because the large number of parameters you can define either in the configuration file or in the command line, you could configure OpenVPN in many different manners. In any case, to obtain a connection with a opnVPN server, you only need to define a small number of them in your client's configuration file. In order to further simplify the configuration of the OpenVPN client, you could use an example of configuration as below:  

Read more

Share

Install GUI ins Ubuntu Server

First you nee to make sure you have enabled Universe and multiverse repositories in /etc/apt/sources.list file once you have enable you need to use the following command to install GUI

sudo apt-get update

sudo apt-get install ubuntu-desktop

The above command will install GNOME desktop

If you wan to install a graphical desktop manager without some of the desktop addons like Evolution and OpenOffice, but continue to use the server flavor kernel use the following command

sudo aptitude install –without-recommends ubuntu-desktop

If you want to install light weight desktop install xfce using the following command

sudo apt-get install xubuntu-desktop

If you want to install KDE desktop use the following command

sudo apt-get install kubuntu-desktop

Share

SCP in linux

In Unix, you can use the scp command to copy files and directories securely between remote hosts without starting an FTP session or logging into the remote systems explicitly. The scp command uses SSH to transfer data, so it requires a password or passphrase for authentication. Unlike rcp or FTP, scp encrypts both the file and any passwords exchanged so that anyone snooping on the network can't view them.

Warning: Be careful when copying between hosts files that have the same names; you may accidently overwrite them.

The syntax for the scp command is:

scp [options] [[user@]host1:]filename1 … [[user@]host2:]filename2

For example, if user dvader is on a computer called empire.gov, and wants to copy a file called file1.txt to a directory called somedir in his account on a computer called deathstar.com, he would enter:

scp file1.txt dvader@deathstar.com:somedir

Likewise, if he wanted to copy the entire contents of the somedir directory on deathstar.com back to his empire.gov account, he would enter:

scp -r dvader@deathstar.com:somedir somedir

Similarly, if he is working on another computer, but wanted to copy a file called file1.txt from his home directory on empire.gov to a directory called somedir in his account on deathstar.com, he would enter:

scp dvader@empire.gov:file1.txt dvader@deathstar.com:somedir

When using wildcards (e.g.,  *  and  ? ) to copy multiple files from a remote system, be sure to enclose the filenames in quotes. This is because the Unix shell, not the scp command, expands unquoted wildcards.

For more information about scp, consult its man page. At the Unix prompt, enter:

man scp

Share

Eating out in Dhaka- ঢাকার মধ্যের খাবার

নানা কিসিমের জার্নি দেখছি, এবার ঠিক করছি “”ফুড জার্নি দি ঢাকা”” স্টার্ট দেব। লেট’স জয়েন হু ওয়ান্টস!!!!
  
১ . বেচারাম দেউরীতে অবস্হিত নান্না বিরিয়ানি এর মোরগ – পোলাও
 
২ . ঝিগাতলার সুনামী রেস্তোরা এর কাচ্চি বিরিয়ানী
 
৩ . খিঁলগাও এর ভোলা ভাই বিরিয়ানী এর গরুর চাপ এবং মুক্তা বিরিয়ানী এর গরুর চাপ , খাসীর চাপ এবং ফুল কবুতর
 
৪ . মতিঝিলের ঘরোয়া হোটেল এবং হীরাঝীলের ভূনা খিচুড়ী
 
৫ . হোটেল আল – রাজ্জাকের কাচ্চি + গ্লাসি
 
৬ . লালমাটিয়ার স্বাদ এর তেহারী
 
৭ . নবাবপুর রোডে হোটেল স্টার এর খাসীর লেকুশ , চিংড়ি , ফালুদা
 
৮ . নয়াপল্টনে হোটেল ভিক্টোরীতে ৭০টি আইটেমের বুফে
 
৯ . হাতিরপুল মোড়ে হেরিটেজ এর শর্মা
 
১০ . শ্যামলী রিং রোডের আল – মাহবুব রেস্তোরার গ্রীল চিকেন

Read more

Share

How to enable automatic logon in Windows 2003 Advanced Server

Use Registry Editor (Regedt32.exe) to enable automatic logon

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows

To enable automatic logon, follow these steps:

  1. Start Regedt32.exe, and then locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
  2. Using your account name and password, double-click the DefaultUserName entry, type your user name, and then click OK.
  3. Double-click the DefaultDomainName entry, type the domain name, and then click OK.
  4. Double-click the DefaultPassword entry, type your password, and then click OK.

    Note If the DefaultPassword value does not exist, follow these steps:

    1. Click Add Value on the Edit menu.
    2. In the Value Name box, type DefaultPassword, and then click REG_SZ for the Data Type
    3. Type your password in the String box, and then save your changes.

    Also, if no DefaultPassword string is specified, Windows automatically changes the value of the AutoAdminLogon key from 1 (true) to 0 (false), which disables the AutoAdminLogon feature.

  5. Click Add Value on the Edit menu, enter AutoAdminLogon in the Value Name box, and then click REG_SZ for the Data Type.
  6. Type 1 in the String box, and then save your changes.
  7. Quit Regedt32.
  8. Click Start, click Shutdown, and then click OK to turn off your computer.
  9. Restart your computer and Windows. You are now able to log on automatically.

NOTE: To bypass the AutoAdminLogon process, and to log on as a different user, hold down the SHIFT key after you log off or after Windows restarts.

Src: http://support.microsoft.com/kb/310584

Share

Rajnikanta

রজনীকান্তের নাম বোধহয় অনেকেই শুনেছেন। যারা এই চিজকে চেনেন তারা তো জানেনই, যারা জানেন না তাদের জন্যে বলি: রজনীকান্ত হল কিংবদন্তী সাউথ ইন্ডিয়ান ফিল্ম অভিনেতা……. এর সিনেমায় এমন সব ঘটনা ঘটে যা আইজ্যাক আজিমভের মত খ্যাতনামা সায়েন্স ফিকশন রাইটারের মাথাতেও আসবে কিনা সন্দেহ,

■ পেঁয়াজ কাঁটতে যেয়ে চোখে পানি এসেছে ??? রজনীকান্ত সেই পেঁয়াজকে কাঁদাতে পারেন
■ রজনীকান্ত কম্পিউটারের রিসাইকেল বিন ডিলিট করতে পারেন
■ টেলিফোনের তার গলায় পেঁচিয়ে মেরে ফেলার ঘটনা দেখেছেন তো ??? রজনীকান্ত কর্ডলেস টেলিফোন দিয়েই এই কাজ করতে পারেন
■ রজনীকান্ত যেকোন মাছকে পানিতে চুবাতে পারেন
■ রজনীকান্ত কোন রুমে প্রবেশ করলে রুমের সব লাইট জ্বলে ওঠে….. এটাকে অটোমেটিক ব্যাপার ভাববেন না, ব্যাপার হল অন্ধকার রজনীকান্ত এর ভয়ে পালিয়ে যায়
■ একবার একটি গোখরা সাপ রজনীকান এর পায়ে কামড় দিয়েছিলো…. ৫ দিন অবর্ণনীয় কষ্ট ভোগ করার পরে সেই গোখরাটা মারা যায়
■ গ্লোবাল ওয়ার্মিং বলে কিছু নেই….. রজনীকান্ত এর ঠান্ডা লাগছিলো তাই সে সূর্যটাকে গরম করে নিয়েছে
■ প্রত্যেক সফল পুরুষের পিছনে একজন নারী রয়েছেন….. সকল মৃত ব্যক্তির মৃত্যুর পেছনে রয়েছেন: রজনীকান্ত
■ The square root of Rajanikanth is pain. Do not try to square Rajanikanth, the result is death.
■ পাই( ) এর শেষ ডিজিটটি হল রজনীকান্ত কারণ সবকিছুর শেষ হল রজনীকান্ত
■ রজনীকান্তের ক্যালেন্ডারে ৩১শে মার্চের পরের তারিখ ২রা এপ্রিল। কারণ: কেউ রজনীকান্তকে বোকা বানাতে পারবে না
■ রজনীকান্ত একটি পাখি দিয়ে ২টি পাথরকে হত্যা করতে পারেন
■ রজনীকান্ত ১-২-৩-…..-অসীম পর্যন্ত গুণে দেখিয়েছেন: তাও একবার নয়, ২বার
■ রজনীকান্ত কোন আয়নার সামনে দাঁড়ালে আয়না ভেঙ্গে যায়, কারণ কোন কিছুরই ক্ষমতা নাই রজনীকান্ত ও রজনীকান্তের সামনে দাঁড়ায়
■ নিউটনের ৩য় সূত্র মিথ্যা…. কারণ সবকিছুরই সমান ও বিপরীত প্রতিক্রিয়া থাকার কথা বলা হলেও রজনীকান্তের ঘুষির বিপরীতে কিছু নেই
■ Rajnikant is responsible for China's over-population. He was shooting in Beijing and all women within 1,000 miles became pregnant instantly
■ রজনীকান্ত পুশ-আপ দেয়ার সময় উপরে-নিচে উঠেন না, বরং পৃথিবী নিজে কিছুটা উপর-নিচ হয়ে তাকে পুশ-আপ করায়

Read more

Share

When i installed Debian, i forgot to install GNOME! How to install?

apt-get install x-window-system

Once X installed proceed with gnome, following packages are minimum but gives you gnome gui based interface… so on it's easier to add other packages from synaptic.

apt-get install gnome-core gdm synaptic

Be careful on you /et/apt/source.list file- if the CDROm is un-commented then installation will begin from CDRom otherwise it will download from internet… it's a relatively bigger downloads!

Share

.htaccess tips and tricks

Redirecits

redirectpermanent /training/test.html http://www.example.com/learning/newtest.html

Allow SSI FIles

AddType text/html .shtml .shtm .htm .html

AddHandler server-parsed .shtml .shtm .htm .html

Parsing PHP in HTML

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html 

Allow or prevent directory browing

IndexIgnore */*

Options +Indexes

Password Protection

<Files secret_file.html>
    AuthType Basic
    AuthName "Team Page"
    AuthUserFile path_to_password_file
    Require user username
</Files>
Share