Linux and Open Source Blog

  • Home
  • WordPress Plugins
  • About
  • Contact

Category Archives: how to

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With HAProxy/Heartbeat On Debian Etch

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With HAProxy/Heartbeat On Debian Etch

This article explains how to set up a two-node load balancer in an active/passive configuration with HAProxy
and heartbeat on Debian Etch. The load balancer sits between the user
and two (or more) backend Apache web servers that hold the same
content. Not only does the load balancer distribute the requests to the
two backend Apache servers, it also checks the health of the backend
servers. If one of them is down, all requests will automatically be
redirected to the remaining backend server. In addition to that, the
two load balancer nodes monitor each other using heartbeat, and if the
master fails, the slave becomes the master, which means the users will
not notice any disruption of the service. HAProxy is session-aware,
which means you can use it with any web application that makes use of
sessions (such as forums, shopping carts, etc.).

Read more…

Leave a comment .

Creating Virtual Machines In VMware Server From ISO Files Without Burning CDs/DVDs

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

Creating Virtual Machines In VMware Server From ISO Files Without Burning CDs/DVDs

This article explains how you can create virtual machines in VMware
Server from .iso files without burning the .iso file to a CD or DVD.
This way you can save lots of blank CDs/DVDs.

Read more…

Leave a comment .

How To Upgrade Your Desktop From Mandriva 2007.1 To Mandriva 2008.0

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

How To Upgrade Your Desktop From Mandriva 2007.1 To Mandriva 2008.0

This guide shows how you can upgrade your desktop from Mandriva 2007.1 to Mandriva 2008.0.

Read more…

Leave a comment .

Installing Xen On An Ubuntu 7.10 (Gutsy Gibbon) Server From The Ubuntu Repositories

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

Installing Xen On An Ubuntu 7.10 (Gutsy Gibbon) Server From The Ubuntu Repositories

This tutorial provides step-by-step instructions on how to install Xen on an Ubuntu Gutsy Gibbon (Ubuntu 7.10)
server system (i386). You can find all the software used here in the
Ubuntu repositories, so no external files or compilation are needed.

Read more…

Leave a comment .

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With Pound/Keepalived On Debian Etch

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With Pound/Keepalived On Debian Etch

This article explains how to set up a two-node load balancer in an active/passive configuration with Pound
and keepalived on Debian Etch. The load balancer sits between the user
and two (or more) backend Apache web servers that hold the same
content. Not only does the load balancer distribute the requests to the
two backend Apache servers, it also checks the health of the backend
servers. If one of them is down, all requests will automatically be
redirected to the remaining backend server. In addition to that, the
two load balancer nodes monitor each other using keepalived, and if the
master fails, the slave becomes the master, which means the users will
not notice any disruption of the service. Pound is session-aware, which
means you can use it with any web application that makes use of
sessions (such as forums, shopping carts, etc.).

Read more…

Leave a comment .

How To Upgrade Your Desktop From Ubuntu Studio 7.04 To 7.10

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

How To Upgrade Your Desktop From Ubuntu Studio 7.04 To 7.10

This guide shows how you can upgrade your desktop from Ubuntu Studio 7.04 to Ubuntu Studio 7.10.

Read more…

Leave a comment .

Installing Songbird 0.3 Developer Pre-Release On Ubuntu 7.10 (Gutsy Gibbon)

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

Installing Songbird 0.3 Developer Pre-Release On Ubuntu 7.10 (Gutsy Gibbon)

This guide shows how to install the Songbird media player
(0.3 Developer Pre-Release) on an Ubuntu 7.10 (Gutsy Gibbon) desktop.
Songbird is a free software audio player with media database
capabilities written using XUL and VLC, with an interface similar to
Apple’s iTunes. From the Songbird web site: “Songbird
is a desktop media player mashed-up with the Web. Songbird is committed
to playing the music you want, from the sites you want, on the devices
you want, challenging the conventions of discovery, purchase,
consumption and organization of music on the Internet.”

Read more…

Leave a comment .

Monitoring Tomcat 5.0 on Ubuntu

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

Monitoring Tomcat 5.0 on Ubuntu

This document describes how to set up and enable Hyperic HQ for monitoring
on Ubuntu and Tomcat. The resulting system provides a comprehensive, web-based
Systems Management Software. It’s the next stage of classical monitoring and
able to manage all kinds of operating systems, web servers, application servers
and database servers. The install comes prepared to monitor almost 70 different
technologies natively and provides many detailed features. For brevity sake, I
won’t list all of them here.
Hyperic HQ is available as an open source distribution licensed under the GPL
v2.

Read more…

Leave a comment .

The Perfect Desktop – Ubuntu Studio 7.10

Posted on November 11, 2007 by Linewbie.com Posted in guides, how to, tips, tutorials .

The Perfect Desktop – Ubuntu Studio 7.10

This document describes how to set up an Ubuntu Studio 7.10 desktop.
The result is a fast, secure and extendable system with focus on
multimedia creation – the real-time (RT) kernel is installed by
default. It provides all you need for daily work and entertainment.

Read more…

Leave a comment .

Using Bash Script to Mass Create Users And Change Passwords

Posted on November 7, 2007 by Linewbie.com Posted in guides, how to .

These two scripts are very important for the system admin who regularly works with mail servers and somehow forgets to backup his system username and password! Let’s say somehow we lost the usernames and passwords of the mail server. In this case the admin has to manually create all the users and then change the passwords for all the users. 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:

./userlist.txt

This will add all the users to the system. Now we have to change the passwords. Let’s 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 follows:

#!/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 passwords are changed.

If you want to force all your users to change password, use the following code:

Force all your users to change their passwords because the temporary password is a security risk

#!/bin/sh
for i in `more userlist.txt `
do
echo $i
echo $i | change -d 0 "$i"
echo; echo "User $i will be forced to change password on next login!"
done

I then log as that user and see this

WARNING: Your password has expired.
You must change your password now and login again!
Changing password for user amcorona.
Changing password for amcorona
(current) UNIX password:

1 Comment .
Tags: bash script, change password, create user, force password change, linux create user, linux user .
« Previous Page
Next Page »

Recent Posts

  • Does an un-confirmed Bitcoin transaction expire?
  • Looting of the Fox: The Story of Sabotage at ShapeShift
  • Decentralization, Scalability, and Fault Tolerance of Bitcoin
  • Stripe will soon accept Bitcoin payments
  • Zynga announces Bitcoin acceptance in game
  • How to import very large sql dump via phpmyadmin
  • How to compare the content of two folders automatically
  • Top 5 reasons to start experimenting with Linux
  • The day our mind became open sourced
  • Mark Shuttleworth wants to turn canonical (ubuntu) into the next Apple Inc.

Categories

  • applications/software (26)
    • browsers (2)
    • development (1)
    • information management (1)
    • Mobility (1)
    • multimedia (5)
    • office suites (2)
    • security (6)
    • servers (6)
    • system (2)
  • audio/video/pics (3)
  • Bitcoin (3)
  • books & literature (1)
  • cms/portals (1)
  • desktop environments (7)
    • gnome (2)
    • kde (5)
  • events/shows (3)
    • interviews (1)
    • people (1)
    • surveys (1)
  • games & gaming (2)
  • general topics (4)
  • guides (112)
    • how to (105)
    • tips (87)
    • tutorials (86)
  • hardware (8)
    • desktop & laptop pc (5)
    • gadgets & mobiles (2)
  • howtoforge (47)
  • internet/web (4)
    • design & development (2)
  • linux and open source blog (49)
  • linux.com (76)
  • linux/unix/os distros (113)
    • debian/ubuntu based (10)
    • mac/osx (2)
    • other distros (3)
  • news (217)
  • open source (8)
    • business & foss (2)
  • other (26)
    • uncategorized (26)
  • Programming (3)
    • PHP (2)
  • quotes & thoughts (10)
  • random stuff (4)
    • cool stuff (3)
    • funny stuff (1)
  • review/preview/tests (7)
  • wordpress/blogging (3)

Archives

  • July 2016
  • April 2016
  • January 2015
  • April 2014
  • January 2014
  • November 2013
  • February 2013
  • November 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • August 2011
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2006

Recent Posts

  • Does an un-confirmed Bitcoin transaction expire?
  • Looting of the Fox: The Story of Sabotage at ShapeShift
  • Decentralization, Scalability, and Fault Tolerance of Bitcoin
  • Stripe will soon accept Bitcoin payments
  • Zynga announces Bitcoin acceptance in game
  • How to import very large sql dump via phpmyadmin
  • How to compare the content of two folders automatically
  • Top 5 reasons to start experimenting with Linux
  • The day our mind became open sourced
  • Mark Shuttleworth wants to turn canonical (ubuntu) into the next Apple Inc.

Categories

  • applications/software (26)
    • browsers (2)
    • development (1)
    • information management (1)
    • Mobility (1)
    • multimedia (5)
    • office suites (2)
    • security (6)
    • servers (6)
    • system (2)
  • audio/video/pics (3)
  • Bitcoin (3)
  • books & literature (1)
  • cms/portals (1)
  • desktop environments (7)
    • gnome (2)
    • kde (5)
  • events/shows (3)
    • interviews (1)
    • people (1)
    • surveys (1)
  • games & gaming (2)
  • general topics (4)
  • guides (112)
    • how to (105)
    • tips (87)
    • tutorials (86)
  • hardware (8)
    • desktop & laptop pc (5)
    • gadgets & mobiles (2)
  • howtoforge (47)
  • internet/web (4)
    • design & development (2)
  • linux and open source blog (49)
  • linux.com (76)
  • linux/unix/os distros (113)
    • debian/ubuntu based (10)
    • mac/osx (2)
    • other distros (3)
  • news (217)
  • open source (8)
    • business & foss (2)
  • other (26)
    • uncategorized (26)
  • Programming (3)
    • PHP (2)
  • quotes & thoughts (10)
  • random stuff (4)
    • cool stuff (3)
    • funny stuff (1)
  • review/preview/tests (7)
  • wordpress/blogging (3)

Archives

  • July 2016
  • April 2016
  • January 2015
  • April 2014
  • January 2014
  • November 2013
  • February 2013
  • November 2012
  • April 2012
  • March 2012
  • January 2012
  • December 2011
  • August 2011
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2006
Privacy Policy

Est. 2002

linewbie.com serving the linux and open source community since April 09, 2002

CyberChimps WordPress Themes

© Linux and Open Source Blog