Archive

Archive for the ‘Linux and OSS’ Category

Window controls flipped to left in Lucid Lynx (Alpha 3)

March 9th, 2010

Ubuntu came out with the Alpha 3 version of Lucid Lynx (Ubuntu 10.04) in the last week of February. The window control buttons (minimize, maximize and close) were still on the right hand side. Then on March 8th, there was a change in metacity. Regardless of which theme you choose, the window controls are seen on the top left hand corner of each window. Its taking me a bit of getting used to. Since I have been using OS-X theme for my windowing, this has come freakishly close to looking like a Mac, and its not good.

Location of controls is switched to left in Lucid Lynx Alpha 3

Location of controls is switched to left in Lucid Lynx Alpha 3

The release is still in its alpha stage. If a lot of people express dissatisfaction at the new placement of these buttons, it might be reverted back to its old location.

slash_boot Linux and OSS , , ,

Review of Lucid Lynx Alpha 1 (Ubuntu 10.04)

December 23rd, 2009

A few weeks ago, the Ubuntu development team released the Alpha 1 of their upcoming release, Lucid Lynx. Since most Ubuntu releases are known only by their first name, I’m hoping the term that most people would use to describe this release would be ‘Lucid’ - like, “we just got a printer and we’ll be using it with Lucid over the network.”

The options for upgrading to Alpha 1 are:

1. Clean install from a downloaded .iso for the flavour you are interested in.

2. Upgrade from earlier version - 64-bit Karmic in my case.

I chose the second option, since I didn’t want to lose any of my installed non-open source programs such as Matlab during the installation process. In order to upgrade from Karmic, open up the terminal and type in -

sudo update-manager -d

It will bring up the update manager and you can then see the option of upgrading to a newer distro. You’ll be asked if you’re okay with removing certain packages and upgrading some of the existing ones to which you have to answer ‘yes’. During installation, all of your third party repositories would be disabled. The most commonly used third party repository is the Medibuntu repository, which will be disabled. But don’t worry, after (successful) upgrade, you can re-enable the medibuntu repository for Karmic, since there still isn’t a medibuntu repository for Lucid.

During the upgrade process, be sure not to keep any program running otherwise the system starts freaking out a little. In my case, Firefox 3.5 kept signing me out of my gmail account over and over - so the best thing is to keep all programs closed.

After the upgrade is complete, you’ll be asked to restart the system. Currently, Lucid is running the 2.6.32.9 kernel, and it won’t be too long before it goes on to 2.6.33.xx.

I’ve read elsewhere that Ubuntu 10.04 will be stripping out some of the programs like GIMP from the basic distro. You can of course obtain it from the repositories once you have got the basic system up and running. Some people are quite worked up about it - but the simple fact is it doesn’t take that long to get GIMP or any program on the repositories once you have the network up and running. Now that’s the beauty of upgrading from an earlier version - that way you don’t have to worry about such things. All the programs that you’ve installed, and that are now in the repository, are automatically upgraded to the latest snapshot.

It takes about 45-90 minutes depending upon your processor speed, the network speed, and the number of programs that you’ve installed. After all the upgrades are completed, you’ll also be asked if you want to remove certain packages, and after those are removed, you’ll need to restart the computer for the changes to take effect.

So, on to restarting. When you restart you’ll see a painfully long list of kernels and recovery options. Frankly speaking, once you have the latest kernel working correctly, there is no point in having an entry to an older kernel in the Grub menu. After this reviw, I’ll be posting the way you can remove the items from the grub menu that you won’t be needing.

Now comes the fun part. When you’re booting Lucid (Alpha 1) for the first time, the X is quite likely to be all messed up. But Lucid now has a failsafe option which defaults the graphics to 1024×768 regardless of what your monitor resolution is. But the good thing is that, you have the option to log in using the failsafe mode, and it works quite well too.

After searching for a way to fix the X issue, I finally found out that there is a conflict with the fglrx drivers included in Alpha1. The fix is to remove all the fglrx drivers that have been installed. I forget the name of the package, but its something like xorg-drivers-fglrx.

sudo apt-get remove xorg-drivers-fglrx

(or something similar)

In addition to removing the fglrx drivers, you also need to clear out the xorg.conf file.

sudo gedit /etc/X11/xorg.conf

Just clear out all the lines in there such that it looks like an empty file. Then save it and reboot the computer. This time it boots with proper resolution.

If you were to do a hardware driver search, and in case you have a graphics card - its quite likely that the installation of that graphics card will fail at this point in time. On doing a hardware drivers search, it found the driver for my ATI Radeon card, but it wouldn’t let me install the driver stating some sort of conflict. It will soon be resolved, but as of now I can’t use compiz - no big deal.

Besides this - there was no problem whatsoever. The wireless card work flawlesslessly, the previously installed third party programs from Medibuntu worked well, and even the /home folder settings for all users were preserved.

Graphics wise, there doesn’t seem to be any change. The usplash doesn’t show up, so there is no way to tell if that logo has been changed to something else now. The icon set looks the same and so do the pop up boxes. Its too early to have any aesthetic changes compared to the earlier version.

With this said, lets see how long I can go updating each day before something gets broken :) But so far, except for the graphics card (and thus compiz effects), everything is working quite well. If you want to try it out, its definitely not as risky as some of the earlier Alpha versions have been.

slash_boot Linux and OSS , , , ,

Installing Google Chrome in Karmic (Ubuntu 9.10)

November 17th, 2009

I followed the procedure outlined by UbuntuGeek, but some of the things are little different - at least when I installed it today.

First, you’ll need to add the repository which contains the deb for Chrome.

sudo gedit /etc/apt/sources.list

Assuming you are running Karmic Koala (Ubuntu 9.10), you’ll need to add the following two lines towards the end of that file.

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main

Next, you’ll have to retrieve the PGP keys for this repository.

sudo add-apt-repository ppa:chromium-daily/ppa

Update the sources,

sudo apt-get update

And then instal Chrome

sudo apt-get install chromium-browser

After the installation is successful, you can launch the browser, and import settings from Mozilla Firefox. However, Firefox needs to be closed when the importing of options and favourites is taking place. When Chrome restarts, it will have options configured like you had them in Firefox. The are no add-ons that I could find for Chrome, though - Adblock Plus and Video Download Helper are the two plugins that would make me stick with Firefox for a while.

slash_boot Linux and OSS , ,

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

November 10th, 2009

Sometimes when you change some of the IP settings, or are using a different wireless card on a machine that has been registered with a server, and for many other reasons, you might have encountered a warning which would’ve looked like this:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
f2:92:1d:da:81:2a:d7:16:0a:48:f0:43:20:1c:f4:b5
………………..

The simplest way to deal with this is to remove the ~/.ssh folder, however this clears out all the exchanged keys with all the ssh machines you have ever communicated with. Removing the ~/.ssh folder would mean that each time you reconnect to a SSH server that you have previously connected to, you will have to confirm that the connection is secure and all that.

There is however another simple way to change just the entry for a specific server in question. At the terminal type in -

ssh-keygen -R name_of_the_server.com

name_of_the_server.com in the above example would need to be replaced by the actual server name that you are trying to connect.

slash_boot Linux and OSS , ,

Remove Karmic (Ubuntu 9.10) login screen sound

November 3rd, 2009

The GDM in Ubuntu changed a bit since Karmic. Now you no longer need to type in both username and password. Instead there is a list of users that shows up, similar to what we have in Windows and Mac. That way you don’t accidentally type in the password when you are supposed to be typing your user name. While this is a really nice way to login, Ubuntu added a drum sound which plays each time you arrive at the login screen - this can be when a user logs out or starts the computer. There is no simple way to disable that sound using GUI. There is however a simple command line which disables this login screen sound as lets you login silently.

If you are a sudoer, open up the terminal and type in:

sudo -u gdm gconftool-2 –set /desktop/gnome/sound/event_sounds –type bool false

The next time you logout, or restart the computer, the sound won’t be played again.

****

Update: The above methods doesn’t work for everyone. There have been a couple of other methods that have been known to work.

To actually disable the “login ready” sound you need to edit your /etc/gdm/custom.conf file.

sudo gedit /etc/gdm/custom.conf

Under the [greeter] section add the line:

SoundOnLogin=false

Another method that has worked for some is the removal of ubuntu-sounds package. This will remove all the event sounds as well, but your media should work just fine.

sudo apt-get remove ubuntu-sounds

These are some of the methods that have worked for several people. YMMV - unfortunately.

slash_boot Linux and OSS , ,

Karmic Koala (Ubuntu 9.10) released

October 29th, 2009

The snapshot before the LTS version of Ubuntu is out now! Karmic Koala would be supported for about another year after which one will have to upgrade to  Lucid Lynx, which would be coming out in April 2010, this the name Ubuntu 10.04 LTS.

Karmic has been functional on my machines since Alpha 3 - so no surprises await me as of today. But I would be posting some observations and neat tricks that one can use with Karmic Koala and Ubuntu Linux in general.

The first trick is to use a torrent for downloading the .iso image instead of downloading it directly from some mirror. The advantage of doing that is that you get much faster download rates when using P2P networks for downloading the .iso image, this is especially true for a week since the release, since the mirrors literally crawl to a halt from all the traffic following the release.

Karmic Koala (Ubuntu 9.10): Header used during release

Karmic Koala (Ubuntu 9.10): Header used during release

The listing of all the torrents for Ubuntu 9.10 codenamed Karmic Koala can be found at:

Karmic Koala (Ubuntu 9.10) : List of releases on bit torrent

If you come across some performance issues, you can always take your questions to Ubuntu Forums, where you can search if someone has already resolved that issue, and if not, post a query.

slash_boot Linux and OSS ,

Change default size of gnome terminal

October 26th, 2009

Its not quite obvious how to change the default size of gnome-terminal from the gconf-editor menu. The terminal itself is a subset of xterm. Gnome-terminal is an xterm emulator, and it follows a termcap file for this.

On gnome based distributions (Fedora/SUSE/Debian/Ubuntu etc.) do the following:

sudo gedit /usr/share/vte/termcap/xterm

There’s a lot of stuff in this file you probably don’t want to touch, but you can change the line that describes the terminal geometry:

xterm-xfree86|xterm-new|xterm terminal emulator (XFree86):\
:am:km:mi:ms:xn:\
:co#80:it#8:li#24:\

:co#80 specifies 80 columns, and li#24 specifies 24 lines. Change this to 100 and 30 or whatever you want.

:co#100:it#8:li#30:\

Now all terminals should open for this default size.

Adopted from a post on Fedora Forums.

slash_boot Linux and OSS ,

Using .bashrc without restart

October 8th, 2009

Getting the changes in .bashrc to take effect immediately, all you need to do is execute either of these following commands in the terminal -

source ~/.bashrc

or

bash

That’s it. The changes made to .bashrc file will take effect.

slash_boot Linux and OSS

Finch is a command line Instant Messenger

August 28th, 2009

When you are mostly involved with coding, and use the Terminal for a fair amount of time, it’s quite beneficial if we use another Terminal window/tab for IMs. Searching around for a command line instant messenger, I learnt that there was a variant of Pidgin called Finch. It lets you connect and chat with your online buddies using nothing but text.

To install finch on Ubuntu, run:

sudo apt-get install finch

at the Terminal.

Once Finch is installed, you can load it by typing, finch at the Terminal.

Finch Buddy List

Finch Chat Window

Finch Chat Window

Different commands to access and configure finch can be found at:

Using Finch

slash_boot Entertainment, Linux and OSS ,

Getting VNC to work in Ubuntu (Karmic Koala)

July 3rd, 2009

For the first time I was able to get VNC to work with Ubuntu with Gnome session instead of a xterm on gray background. The steps involved were exactly the same as I was following earlier, with one exception:  the setup of xstartup in the ~/.vnc folder.

For your xstartup file in ~/.vnc (the “.vnc” folder in
your home directory), you need the following:
—————————–
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
gnome-session &
# twm &
————————

instead of uncommenting the lines as the script suggests, you change the window manager to gnome-session

make sure restart vnc4server

The line which got Gnome working was “gnome-session &”

========================================

Now for all the steps involved (works in Karmic Koala Alpha 2, Ubuntu 9.10, kernel 2.6.30-10)

1. Install ssh server, ssh client, VNC viewer, VNC server, and xinetd

sudo apt-get install openssh-server openssh-client vnc4server xinetd  vncviewer

2. Setup the ssh password for your login

ssh-keygen

3. Test out the ssh server by typing in

ssh localhost  or ssh your_login@your_ip_address

4. Then create a vnc password

sudo vncpasswd ~/.vncpasswd

5. Edit the xstartup file in ~/.vnc directory

For your xstartup file in ~/.vnc (the “.vnc” folder in
your home directory), you need the following:
—————————–
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
gnome-session &
# twm &
————————

instead of uncommenting the lines as teh script suggests, you change the window manager to gnome-session

6. Create a VNC desktop

vnc4server :1 -geometry 1024×768

7. Then to tunnel into your VNC desktop, first create a SSH tunnel by logging into SSH with the comand:

ssh -L 5901:your_ip_address:5901 your_username@your_ipaddress

8. Finally, load up your VNC desktop

vncviewer localhost:1

And now you are ready to use connect to your machine remotely and use t

slash_boot Linux and OSS , ,

List hardware specs under Linux: lshw-gtk

June 25th, 2009

In order to find the exact address maps and to see a list of devices attached to different ports one can use:

sudo lshw

This outputs the hardware specs to the terminal. However in order to check the detailed specs in a graphical format, we need to use the lshw-gtk command. Before you do that, you first need to install it using:

sudo apt-get install lshw-gtk

Then running the lshw-gtk as sudo brings up the list of hardware that you can browse through. It is similar to checking the hardware information from Windows’ control panel.

List detailed hardware specs under linux: lshw-gtk

List detailed hardware specs under linux: lshw-gtk

That’s it. It provides you with relevant information about your processor, memory, display cards, and also some information about the devices connected to USB ports. A quite handy tool for Linux.

slash_boot Linux and OSS ,

Kernel 2.6.30-10: Green Screen Of Death

June 24th, 2009

The upcoming release of Ubuntu 9.10 (Karmic Koala) is in its Alpha 2 stage at the moment. One outcome of having an alpha released installed on your machine is the massive amounts of daily updates - with a major kernel update every once in a while. Things were going pretty smooth with the Karmic Koala until it was on 2.6.30-9 kernel.

Just this morning, there were a bunch of updates listed in the update manager. Among the things that were in line for the upgrade was a brand new kernel, 2.6.30-10. The updating process itself went pretty well. Then when it was time to restart, I picked the newly updated kernel from the Grub expecting nothing unusual.

Booting options after updating to kernel 2.6.30.10

Booting options after updating to kernel 2.6.30-10

After selecting Kernel 2.6.30-10, all I got was a green screen and the computer refused to do anything past that point. The only alternative was to restart and boot with the 2.6.30-9 kernel which I am currently using to make this post.

Ubuntu Karmic Koala (Kernel 2.6.30.10): Green Screen Of Death

Ubuntu Karmic Koala (Kernel 2.6.30-10): Green Screen Of Death

It not something one sees that often with Linux distros. I saw it today!

P.S.: The newer kernel 2.6.30-10 has been fixed. It boots and functions normally now.

admin Linux and OSS , , , ,

Creating gif files from jpg, png, bmp, etc.

March 3rd, 2009

I had to create a movie/animation out of a series of images that I had in my folder. There were several methods described on several forums which suggested using GIMP for creating GIF files from JPG or PNG files when one is using Linux. Now the problem was that I had 70 files in total and it would have taken me a long to time to add all those images to GIMP in order to create my animation file.

Then I read somewhere that we can actually create GIF images in command line mode using Imagemagick. But to do so you need to have Imagemagick installed on your system. To install it in Ubuntu, run:

sudo apt-get install imagemagick

This program has several features that would let you do all sorts of things with images. I was interested in converting a bunch of PNG files into an animated GIF file. To do so, we need to  rename the files in a way that they would lie in a sequence when arranged alphabetically (if you plan on doing it the easy way). Suppose you have files named slide_01.png, slide_02.png, slide_02.png….slide_xx.png, and you want to convert them to movie.gif, we run:

convert -delay 10 -loop 0 slide*.png movie.gif

The parameter delay inserts a desired delay between two consecutive slides. The number x used for delay inserts 10x milliseconds of delay between two frames. Loop parameter 0 makes it repeat infinitely.

If you had files with non-uniform names, then you need to input each of them in a sequence after the delay and loop parameters. Suppose you have file summer.jpg, fall, winter.jpg, fall.jpg and spring.jpg and you want to order them as fall, winter, spring and summer in the gif image seasons.gif with a 1 second delay between each of them, use:

convert -delay 100 -loop 0 fall.jpg winter.jpg spring.jpg summer.jpg seasons.gif

Here are some animations of numbers from 0 to 9 with varying delays.

The delay values specified the above cases were: 1, 5, 15, 25, 50 and 100.

gif animation with 10 millisecond delay

GIF animation with 10 millisecond frame delay

gif animation with 50 millisecond delay

GIF animation with 50 millisecond frame delay

gif animation with 150 millisecond delay

GIF animation with 150 millisecond frame delay

gif animation with 250 millisecond delay

GIF animation with 250 millisecond frame delay

gif animation with 500 millisecond delay

GIF animation with 500 millisecond frame delay

gif animation 1 second delay

GIF animation 1 second frame delay

=================

slash_boot Imaging, Linux and OSS , , , ,

Broken audio and a workaround in Ubuntu 9.04

February 25th, 2009

Today’s update for Ubuntu 9.04 (Jaunty Jackalope Alpha 4) broke the audio mixer and the volume control modules. This update was for in kernel 2.6.28.8. Technically there was nothing modified in the audio modules, but the updates changed some of the user settings which disabled the user from accessing audio modules.

The workaround for this problem is quite simple. In the Terminal run the following command:

sudo adduser your_username audio

Restart the computer and you have access to all the audio devices like before.

slash_boot Linux and OSS , ,

Linux ain’t virus-free no more

February 17th, 2009

A few days ago an article appeared on geekzone that described how the KDE and Gnome based linux desktop systems are vulnerable to virus and trojans. The point that jumped out was a statement by the blog author: “False sense of security is worse than no security”, and I’ve been guilty of having this false sense of security all along. By all along I mean whenever I was logged in to some Linux distro.

The article is titled: How to write a Linux virus in 5 easy steps

Linux is vulnerable to Viruses and Trojans

Linux is vulnerable to Viruses and Trojans

Its an interesting read, and one can only hope that everyone in the Linux community takes this as a serious flaw in their beloved OSs and helps out in addressing this issue whichever way they can.

slash_boot Linux and OSS , ,

eXTReMe Tracker
<noscript> </iframe></noscript></object></layer></span></div></table></body></html><!-- adsok --> <script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>