Linux User Group of Mauritius Promoting open source software in our beautiful island


Recovering GlusterFS password

Posted by Selven

recover or reset gluster password

Well, drinking too much is bad, you shouldn't. I recently had a gfs installation which  i have changed the default password, password which i happenned to have forgotten.

Since there was no forgot password option, i decided to look around if  there was anybody who ever bumped into this, couldn't seem to find anything [ph33r my leet googling skills :p].

Anyways, after searching and searching i realized i would be better off following the code. I had no clue where they had it, but thankfully, i was able to boot the gluster machine into single user mode [ am not going into the boring details ]

once inside, type this:

cat /GLUSTER/webagent.auth

ofcourse you can use vi or nano or whatever text editors they have there, the password is stored in clear text.

I guess this should save someone some times, since i lost like 15 minutes looking through the codes  through which way was it doing authentication since it kept referencing functions from this or that file. I had to go through /var/www/html/modules/login/index.php, /var/www/html/classes/user-authentication.class.php,  /var/www/html/modules/setting/change-password.php to finally get a clue to where it was storing the password.

Hope it helps.

+selven /

Filed under: Uncategorized 2 Comments

Using 3G/UMTS in Mauritius

Posted by Jochen Kirstaetter

After some conversation, threads in online forum and mailing lists I thought about writing this article on how to setup, configure and use 3G/UMTS connections on Linux here in Mauritius. Personally, I can only share my experience with Emtel Ltd. but try to give some clues about how to configure Orange as well.

Emtel 3G/UMTS surf stick

Emtel provides different surf sticks from Huawei. Back in 2007, I started with an E220 that wouldn't run on Windows Vista either. Nowadays, you just plug in the surf stick (ie. E169) and usually the Network Manager will detect the new broadband modem. Nothing to worry about. The Linux Network Manager even provides a connection profile for Emtel here in Mauritius and establishing the Internet connection is done in less than 2 minutes... even quicker.

Using wvdial

Old-fashioned Linux users might not take Network Manager into consideration but feel comfortable with wvdial. Although that wvdial is primarily used with serial port attached modems, it can operate on USB ports as well. Following is my configuration from /etc/wvdial.conf:

[Dialer Defaults]
Phone = *99#
Username = emtel
Password = emtel
New PPPD = yes
Stupid Mode = 1
Dial Command = ATDT

[Dialer emtel]
Modem = /dev/ttyUSB0
Baud = 3774000
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+cgdcont=1,"ip","web"
ISDN = 0
Modem Type = Analog Modem

The values of user name and password are optional and can be configured as you like. In case that your SIM card is protected by a pin - which is highly advised, you might another dialer section in your configuration file like so:

[Dialer pin]
Modem = /dev/ttyUSB0
Init1 = AT+CPIN=0000

This way you can "daisy-chain" your command to establish your Internet connection like so:

wvdial pin emtel

And it works auto-magically.
Depending on your group assignments (dialout), you might have to sudo the wvdial statement like so:

sudo wvdial pin emtel

Orange parameters

As far as I could figure out without really testing it myself, it is also necessary to set the Access Point (AP) manually with Orange. Well, although it is pretty obvious a lot of people seem to struggle. The AP value is "orange".

[Dialer orange]
Modem = /dev/ttyUSB0
Baud = 3774000
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+cgdcont=1,"ip","orange"
ISDN = 0
Modem Type = Analog Modem

And you are done.

Official Linux support from providers

It's just simple: Forget it!

The people at the Emtel call center are completely focused on the hardware and Mobile Connect software application provided by Huawei and are totally lost in case that you confront them with other constellations. For example, my wife's netbook has an integrated 3G/UMTS modem from Ericsson. Therefore, no need to use the Huawei surf stick at all and of course we use the existing software named Wireless Manager instead of. Now, imagine to mention at the help desk: "Ehm, sorry but what's Mobile Connect?"

And Linux after all might give the call operator sleepless nights... Who knows?

Anyways, I hope that my article and configuration could give you a helping hand and that you will be able to connect your Linux box with 3G/UMTS surf sticks here in Mauritius.

Tagged as: Comments Off