Archive for October, 2006

Create user & Change password by BASH Script

October 9, 2006

This two scripts are very important for the system admin who regularly works with mail server and some how forget to backup their system username and password!!!. Let’s say some how we lost the server username and password of the mail server. In this case the admin has to manually create all the users and than change the password for all the user. Tedious job :-) . Let’s make our life easier.

First create a file which contains all the user name. Something like this:

nurealam
nayeem
mrahman
farid
rubi
sankar

Save the file as userlist.txt

Now create the following bash file:

#!/bin/sh
for i in `more userlist.txt `
do
echo $i
adduser $i
done

Save the file and exit. chmod 755 userlist.txt. Now run the file by ./userlist.txt. This will add all the user to the system.

Now we have to change the password. Lets say we want username123 as password. So for user nayeem the password will be nayeem123, rubi123 for user rubi and so on.

Create another bash file as following:

#!/bin/sh
for i in `more userlist.txt `
do
echo $i
echo $i”123″ | passwd –stdin “$i”
echo; echo “User $username’s password changed!”
done

Run the file. All the password are changed :-)

বাংলায় ব্লগ

October 2, 2006

ইকুশে ইউনিকোড ইনস্টল করলাম….বাংলায় ব্লগ…..খারাপ না….:-)

Migrating from M$ to Linux

October 2, 2006

If I am not wrong, everyone face the same problem while migrating from M$ to Linux; which software sould we use for what purpose!!! The following site gives the list of equivalents/replacements/analogs of Windows software in Linux.

http://www.linuxrsp.ru/win-lin-soft/table-eng.html

Love these lines from the site: “Newbies usually search for Linux analogs of Windows software, and advanced Linux-users cannot answer their questions since they often don’t know too much about Windows :)

Into opensource OS – Suse 10.1

October 1, 2006

Yesterday install Suse 10.1 in my Inspiron 6000 series laptop. Automatically detect my Graphic Card, WiFi, Sound Card. Though it detect Wi-Fi card automatically, but have to install the following packages to make it work:
hotplug-2004_03_29
ieee80211-1.1.13
ipw2200-1.2.0
Execute modrobe ipw3945 to add the ipw to module. After that KNetworkMananger can search the Wireless Network.

After having so much trouble, I was able to play mp3 in amaroK. Not yet tested my DVD burner. Looking for the right software like hyperterminal in windows.