August 29, 2010

Installing TweetDeck In Ubuntu 10.04

Follow the simple steps below in order to install TweetDeck on your Ubuntu system.

Install Adobe AIR

You can install Adobe AIR either from Synaptic Package Manager or Ubuntu Software Centre or from the Adobe site. In case you decide to install from the site, download and double click the downloaded file, or select Open with GDebi Package Installer.

Install TweetDeck

Go to link, and download file, or directly open with Adobe Air by selecting Open with Adobe AIR Application Installer.

In my case, the usual link did not work. Clicking on Download now, it's free showed me Installing TweetDeck button for more than hour.


Happy tweeting!



Meddling Around With Namoroka

After having installed Namoroka on my Ubuntu system, I found the following discrepancies.

1. No Facebook Chat

i) Open a new tab in Namoroka. Type about:config in the address bar.

ii) Search for general.useragent.extra.firefox.

iii) Under value, double-click Namoroka 3.6.2pre and replace it with Firefox.

iv) Restart your browser.


2. Echofon doesn't work. You get the error "Echofon does not support this platform or custom build Firefox. (Can't get OAuth signer.)"

Installing an older version of Echofon solved this problem, thanks to Manohar Bhattarai of LUG@IITD mailing list. Download this version (1.9.6.4) of Echofon from https://addons.mozilla.org/en-US/firefox/addon/5081/eula/88620?src=version-history.


[Source:

1.
http://support.mozilla.com/tiki-view_forum_thread.php?locale=lt&comments_parentId=659480&forumId=1

2. http://groups.google.com/group/iitdlug/browse_thread/thread/4c7c6012d7f846f

]



August 28, 2010

Firefox And Namoroka

In an attempt to install Firefox 4, I accidentally bumped into Namoroka.

Seems like the PUBKEY EF4186FE247510BE isn't available at the moment. I tried exporting the key, as given on Rectifying apt-get GPG Error, but couldn't succeed. Adding the repository ppa:ubuntu-mozilla-daily/ppa did not work either.

Then on searching in Synaptic Package Manager, I found that firefox-4 was there (much to my surprise, as adding the repository failed). I installed it, and found that Namoroka Firefox pre-release has been installed on my Ubuntu 10.04 system. It is Firefox after all, but not the usual one we prefer.


Obviously there are a few changes and incapabilities, which I'll discuss in the next post.



August 27, 2010

Solving "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" in Ubuntu 10.04

All of a sudden, I wasn't able to open localhost on my browser, and I realized I wasn't able to restart Apache2.

varsha@varsha-laptop:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName


I found a simple solution, as given on http://mohamedaslam.com/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu/.

Helped a lot!



Setting Up Proxy For Subclipse In Ubuntu

After installing the Subversion Eclipse Plugin in Eclipse, I wasn't able to add an SVN repository. I was getting the error RA layer request failed in eclipse. I realized that it was due to incorrect proxy settings that I wasn't able to connect to the SVN server. Configuring proxy in this case may not be as easy as entering the address and port number in Eclipse preferences.

To set up the proxy for the SVN server, do the following:

1. varsha@varsha-laptop:~$ cd .subversion/

2. varsha@varsha-laptop:~/.subversion$ ls

3. varsha@varsha-laptop:~/.subversion$ gedit servers

4. In the servers file, find the lines with http-proxy-host and http-proxy-port under [global] section.

5. Uncomment those lines and enter the host address and the port number respectively for http-proxy-host and http-proxy-port.

6. Save and close the editor.

7. In the SVN Repository view in Eclipse, try adding a new repository location.

Hope it works.


Note: Make sure you don't leave a space before the statements after uncommenting the two lines as said above, else you are likely to get the error
Cannot map the project with svn provider.



August 21, 2010

Use Of "sudo cd" Command

There are certain privileged directories on the Linux system, that a normal user can't access. You need to know the root password or at least be a sudoer to access those directories. Some people try sudo cd to cd into such directories, but end up with an error. I am describing a few here along with the explanation.

1. sudo cd does not work.

varsha@varsha-laptop:~$ sudo cd /etc

[sudo] password for varsha:
sudo: cd: command not found


Explanation: cd is a shell command, and not a program. So, when you try sudo cd, there is no program that can be launched, and so you get the error sudo: cd: command not found.

Also, there is a list of commands that can be run by certain users and not ALL commands can be run. This is maintained through a sudoers file. See:

varsha@varsha-laptop:~$ man sudoers

2. Becoming root first, and then the cd command works.

varsha@varsha-laptop:~$ su
Password:
root@varsha-laptop:/home/varsha# cd /directory-path
root@varsha-laptop:/directory-path#


Explanation: Anyone can use sudo to enter a directory and manipulate files, so this calls for the use of su instead of sudo.

Thanks to Sharad Birmiwal for some of the information. Please refer to http://groups.google.com/group/iitdlug/browse_thread/thread/c1523585d9fc7987 for the discussion.



August 5, 2010

Solving Error "E: Sub-process /usr/bin/dpkg returned an error code (2)" In Ubuntu 10.04

I noticed that suddenly my Synaptic and apt-get weren't installing any package on my new Ubuntu 10.04. On looking at the details, I found the following error being flashed:

dpkg: unrecoverable fatal error, aborting:
statoverride statoverride unknown group gnokii
E: Sub-process /usr/bin/dpkg returned an error code (2)


I Googled and found the following two links:

1. http://ubuntuforums.org/showthread.php?t=508679

2. http://ubuntuforums.org/archive/index.php/t-329560.html

From the two links above, I knew I had to see or even edit my /var/lib/dpkg/statoverride file.

It contained:

root mlocate 2755 /usr/bin/mlocate
hplip root 755 /var/run/hplip
root gnokii 4750 /usr/sbin/mgnokiidev


I deleted the last line "root gnokii 4750 /usr/sbin/mgnokiidev". But it gave a similar error:

dpkg: unrecoverable fatal error, aborting:
statoverride file contains empty line
E: Sub-process /usr/bin/dpkg returned an error code (2)


This was shocking as the file isn't empty.

Then, I realized that my cursor was on an empty line. Doing a backspace and bringing it to the last non-empty line solved the problem, irrespective of the line "root gnokii 4750 /usr/sbin/mgnokiidev" being present in the file.

It wasn't a serious problem anyways.