Feeds:
Posts
Comments

Poking around with Pointers

I started learning Object Oriented Programming and I am feeling great. As if I am gifted with a powerful weapon, a great skill. Indeed it is. There are several concepts easy, difficult and confusing. Pointers is one such. Pointers will be confusing if you do not devote you full concentration.

What are Pointers good at?

They Point!

They point at things like Objects and Variables. They store the address where the Object or Variable is stored hence point at them. Lets understand what Pointers are and how they can be used using the example of a Pointer pointing at a Variable.

Since C++ is a good language to learn OOP I will be using it to explain (in fact this is how I learnt about pointers properly). Continue Reading »

Advertisements

For my web designing and related activities I needed a server running on my laptop. That meant I would need Apache, MySql and PHP running on the laptop. Since I am using Ubuntu, (Linux), hence we can say we are setting up a LAMP server.

What all we need to do

We need to install apache, php, mysql and phymyadmin.

All the required packages are available in the repositories. All the things to be done are provided step by step in this website. I felt this tutorial very very helpful. Hope it helps you too.

Installing LAMP on Ubuntu for Newbies

Compiz-Fusion

The next best thing to happen to my Ubuntu was the setting up of compiz fusion. It just add some great new features in some real cool fashion. The first thing after having my graphics up and running was to google about compiz-fusion.

Forlong’s Blog had everything that was required to be done.

First Things First

I had to install the ccsm, that is the Compiz Config Settings Manager.

sudo apt-get install compizconfig-settings-manager

Note internet connection or some source for repositories required for the above code to work. And it has to be typed in the terminal.

Next ccsm, had to opened.Typing ccsm in the terminal opens the Compiz Config Settings Manager. Here we have a lot of options which are called plugins. To find what we need, we have the filter box, which filters the plugins based on the search string.

Get the Cube! Continue Reading »

Linux all Along

Finally, made the switch. I am now entirely a linux user. Of course, I do have Windows installed on the Laptop, and don’t have plans of uninstalling it. I use Windows once in a blue moon.

I will share in this post with you my experiences and hindrances I faced (and to date facing) while using Linux.

The distro I use is Ubuntu Hardy. I work on my HP-Compaq Presario CQ50 laptop which has an AMD Athlon X2 64 bit. When I was at home, there was no problem. Just plug in the ethernet cable, connect to the internet and install the required software using apt-get or synaptics.

But after coming to college it’s not that easy. I can access Internet only via a proxy. Hence even if I plug the cable into my laptop, I need to connect to a different server and use internet on it. Hence my laptop is not ‘directly’ connected to the internet. Hence

sudo apt-get install <package>

simply won’t work. I have to manually download packages, copy it to my laptop from the other account on the server and then install. If there are any missing dependencies, then I have to hunt them up again.

I figured out that there were repos available on the college lan. That’s good, and that should do. But unfortunately, the repos were of i386 binary. I needed amd 64 bit repos. 😦 Can’t use those repos either.

So, chuck that for now. I will go home at the end of this semester and get all I need.

The next thing I notice is that my laptop doesn’t have a proper sound driver for Ubuntu. The sound is all cracked up and popping. So it isn’t a nice idea to run multimedia on Ubuntu. That helps in some ways for now. πŸ˜€

And, my wireless. The red glow never turns blue in Ubuntu Hardy. So can’t use wireless either. Again it is because of the absence of some driver or other, which can be installed only with a direct internet connection. Well, it’s ok for now.

The most irritating problem I face is regarding the touchpad. There is some malfunctioning with it (of course on Ubuntu). Doesn’t entirely work the way it is intended to work.

Now that’s too much of problems. I look at them as challenges rather than trouble. It has made me read a lot on a lot of topics. It’s made me wiser.

If it was on Windows, just a click and it would have repaired everything itself. It would have never let us properly know, what was wrong and how it was rectified. For the comman man that may be more than what he would have expected. Well, not for me, cause I am not the comman man, I hate to be just the comman man.

Currently I am typing out this post from Ubuntu, and I am happy for choosing Ubuntu over Windows. It’s free, safe and beautiful. πŸ™‚

P.S. : Waiting for October 10th, waiting for Ubuntu Intrepid. Hope it will put an end to my woes.

Please don’t come to the conclusion that this post is some sort of negative campain for Linux. In fact I love Linux. I have just tried to tell all of you that, when starting to use Linux, everyone shall face some problem or the other. Don’t be a coward and move back to Windows. Face them and Learn from them.

Internet on Ubuntu

One of the most important reason for me to not stick with ubuntu initially was because, I had no idea of how to access internet from ubuntu. Today I learned how to do it.

It wouldn’t be a great idea if I didn’t blog about it, right!

I have a broad band connection at home. ADSL internet connection using an ethernet PPPoE modem. Read on ADSL and PPPoE from wikipedia.

So soon, I have my laptop running and plug in the internet cable from the modem. I log into ubuntu and open the terminal.

How to Access the Terminal?

Press Alt+F2, and then type gnome-terminal. Press enter, and you have your terminal running.

Alternative: Applications>Accessories>Terminal

Configuring PPPoE

1. Type sudo pppoeconf into the terminal.

2. You get something called a text based menu program. It guides you through the remaining steps. What you basically do is, confirm if your ethernet card is detected. Then your provide your username and password for authentication. Keep pressing Yes through the remaining steps.

Note: Password will be displayed as ordinary text. So make sure, no one is peeping from behind!

3. Finally you will be asked if you want to establish connections. Of course that’s the whole purpose right!

4. The menu goes off, and this info appears on the terminal. Plugin rp-pppoe.so loaded.

Starting the Connection

Now just one more command between you and internet. That command is pon.

sudo pon dsl-provider.

Done. Open firefox, and oh! well you know what to do!.

Finally Ubuntu!

Yeah guys. Finally, I have got a laptop (HP Compaq Presario CQ50) for myself with Ubuntu 8.04 installed! I installed it myself! (Of course, under the supervision of my father, so that I don’t screw up stuffs again. πŸ˜€ ). Well, it isn’t entirely Ubuntu, of course there is Vista Home Premium installed.

I haven’t worked with Ubuntu before, only Fedora (no super powers 😦 , I mean no root access). There are some differences in the way you get to execute commands. In Fedora you have the substitute user (su) command. (Some call it the super user command). The su command is used to log into another account without actually logging out from the account you have initially logged in. So you type in the root (the god or the administrator) password, and gain system wide access to do anything you wish to do. This is a level of security, as only if you log as root can you cause drastic screwing up. But if you forget to log out of root, and absent mindedly set a command to do something naughty, BHAM!, there goes your system.

In Ubuntu, we have theΒ sudo command. This ensures that you run certain commands as root. If I jump into the details I might start boring you. There are many other documents that have interesting tutorials for Ubuntu. Well, got one point to start loving Ubuntu over Fedora and Windows. It’s secure.

Well, I am what I am, so I just can’t avoid messing up things even with all this security. I wished to get high level graphics, and hence downloaded some drivers from the internet (Yes! Thanks to Papa, I am indeed accessing internet on Ubuntu. Finally I can now stick to Linux! (Meeting GNU/Linux, read the post-script). Ubuntu wanted me to restart, I obliged, and then? Display won’t work! Yes, successfully screwed up the display! My dad, quickly came to the rescue. He said he could recover it, using the recovery mode, but I had other plans. I wanted to install Ubuntu myself once (That’s how I ended up installing Ubuntu in the first place!).

Ubuntu back on track and am still looking for new ideas to screw it. πŸ˜€

So what next?

The most obvious thing was watching some movie on linux, but I thought otherwise. Let me learn some shell scripting. And that’s what is keeping me busy now.

More on shell scripting the next time!

P.S.: Want to know more. Here’s more :Β Tux Magazine

Meeting GNU/Linux

After Spider and Delta web design classes in the second semester, it’s time for another class. This time I it’s about something new, something I also wanted to mess my hands up with. It’s about Linux. I had always used Windows and have been happy with Windows. But since the day I heard about Linux, and it’s Free Software Movement, I got curious to know more and actually use this Operating System. But, because of reasons I do not know, I have never used linux for more than a day. I remember using Ubuntu then. I got bored and quickly shifted to Windows XP, loaded up IE or FF, and surfed, till my hearts content (or till my father finds that I have been burning holes in his pockets πŸ˜€ ).

But still I longed to completely shift to Linux from Windows. With that initiative, I bought a Linux Bible book and started reading it. But due to installation problems, I couldn’t try out the shell commands effectively. And hence the makeover to Linux never happened. At college, my experiences with linux were while working with the sangam server running on linux. I could access a linux desktop using vncserver from a windows computer. I tried out a few shell commands, but still to no avail. I still didn’t know much about Linux.

Finally Linux Users in NIT-T arranged these blessed Linux classes. I had also been inducted into Delta, the college Webteam, and linux knowledge would definitely come in handy, I felt. The classes were cool, as cool as Linux is. Except that we were accessing Linux, via a Windows computer. It’s the terminal all that we needed. The umpteen number of Linux shell commands, the bash scripts, the enthusiastic seniors, the cheat sheets were all quite an experience. I also got a Ubuntu Live CD and a Fedora DVD. Thanks to the MGL (Meet GNU/Linux) classes. I am now feeling confident enough to shift from Windows to Linux.

Linux isn’t for hard core games, at least for now. It has it’s own reasons. It’s for people those who love to learn, experiment and contribute. It’s free, it’s linux and it’s fun.

P.S. I finally figured why I couldn’t stick to Linux at home. We didn’t know how to access the Internet via Linux at home. So there wasn’t much stuffs for me to do in Linux. That’s why I had the urge to jump back to XP and surf. πŸ™‚

So friends, try messing your hands around with Linux. It’s cool and it’s fun. I am planning to write more posts about my Linux encounters. Do try out Linux and share your experience.