Available languages

Useful links
Читать на русском

Tuesday, March 13, 2012

Create custom Unity launcher / Menu entry

There are quite a few applications, which don’t integrate directly with Ubuntu’s Unity shell by default. They either won’t get kept in the launcher or their icon is not displayed.

General Workaround

Type gnome-desktop-item-edit ~/Desktop/ --create-new
Create launcher. Place it into /usr/share/applications directory.

Taken from http://shuffleos.com/3274/how-to-create-desktop-launchers-in-ubuntu-11-10-oneiric-ocelot/

Workaround 1
Type gksudo gedit /usr/share/applications/.desktop
 

After entering the password, gedit will open in root mode.
Paste the following into the file:

[Desktop Entry]
Version=1.0 #or whatever version the software is
Type=Application
Terminal=false
StartupNotify=true
Icon=<> # fill in path to logo
Name=
Comment=<> # any description
Exec=env UBUNTU_MENUPROXY=0 <> # fill in path to the executable
Categories=Application; # add as many categories as you see fit
After filling in the required data in the file, save it and close it.

Next time you search for the application in the dash, it will be found with logo and all. You can drag&drop it on the launcher, or start it and right click then ‘Keep in launcher’.

Some of the software I have used this for are: Eclipse and Skrooge.


Taken from http://ubuntutechnical.wordpress.com/2011/11/10/create-custom-unity-launcher/


Workaround 2
Just do the following
wget  http://dl.dropbox.com/u/47950494/Create-Launcher
cp Create-Launcher ~/.gnome2/nautilus-scripts
chmod +x ~/.gnome2/nautilus-scripts/Create-Launcher
mv ~/.gnome2/nautilus-scripts/Create-Launcher ~/.gnome2/nautilus-scripts/”Create Launcher”
"Create-Launcher" is just a bash script, you can create it self. Do not forget to do "chmod +x Create-Launcher" afterwards. Its contents:
#!/bin/bash
gnome-desktop-item-edit --create-new ~/Desktop
Taken from http://shuffleos.com/3708/how-to-create-desktop-launchers-right-click-context-menu-ubuntu-11-10/

I hope everybody can do it now. (including me)

Friday, January 20, 2012

Top Coder SRM strategies & Kawigi Edit plugin

Top Coder SRM strategies - it's just a copy of this thread.
Top Coder Arena - Java Web Start Application or just Java Applet.
You can find all information about KawigiEdit here.
View all arena plugins.
How to Compete in SRM Algorithm Competitions - articles.

Tuesday, January 3, 2012

Split a big image in some smaller - Image Magick - Ubuntu Linux - Note 1

I have always been thinking and I'm still thinking that everything in Linux is very easy...

One small correction: if you know how.

Today I wanted to split one big screen-shot in some smaller parts so that they fit my screen...

Solution (is very easy)

convert big.png -crop '100x6.66%' small.png
 
This command splits a big image into an appropriate number
of smaller ones, each of following size: 100% of big width,
6.66% of big height. It was a good solution in my case.
 
More info at imagemagick.org

Wednesday, October 5, 2011

Acer Iconia Tab Linux Driver

There is no need to install any driver to browse/manage/control your Acer Iconia Tab from you laptop/desktop PC running Ubuntu (or any other Linux distribution, probably).
You only need to follow the instructions here to install and configure the latest Android SDK and here to let Android SDK know the rules needed to measure with your tablet.

That's it. See you next time.

Tuesday, August 2, 2011

Adding REAL Firefox to Debian Lenny

it's a copy of original post:

Adding REAL Firefox to Debian Lenny

December 26, 2008
I realize it’s a touchy subject, but some of us prefer unmodified Firefox — including the standard Firefox icon — to Debian’s Iceweasel alternative. Here’s a three-step way to substitute Firefox for Iceweasel on a fresh Lenny install.

This procedure assumes you’ve downloaded and installed the latest Debian Lenny (aka “testing,” currently) GNU/Linux distribution, along with its standard GNOME desktop environment.
  • Using Iceweasel for the last time, download Firefox to your home directory. Let’s assume the name of the file you downloaded is “firefox-3.0.5.tar.bz2″ (the current version as of this writing).
  • Open up a terminal window and, as root, type the following commands (following each by hitting Enter):
      apt-get remove iceweasel mv firefox-3.0.5.tar.bz2 /usr/lib/ cd /usr/lib/ tar -jxvf firefox-3.0.5.tar.bz2 ln -s /usr/lib/firefox/firefox /usr/bin/firefox
    If you prefer, you can simplify the above commands by copying/pasting the following text onto your terminal command line:
      apt-get remove iceweasel; mv firefox-3.0.5.tar.bz2 /usr/lib/; cd /usr/lib/; tar -jxvf firefox-3.0.5.tar.bz2; ln -s /usr/lib/firefox/firefox /usr/bin/firefox
  • Finally, you’ll need a launch icon on your desktop. You can create that the standard way GNOME allows, or simply save this file to your GNOME desktop.
That’s all there is to it!
Well, one other point. To make use of browser plugins that have already been set up by your Debian installation, you’ll want to create a symlink from /usr/lib/firefox/plugins/ to /usr/lib/mozilla/plugins/, using this two-part command (as root):
    rm -rf /usr/lib/firefox/plugins; ln -s /usr/lib/mozilla/plugins /usr/lib/firefox/plugins
Incidentally, on my installation, the default flash plugin that came with Lenny (flash-mozilla.so) required me to click a large play button (shown at right) each time I visited a web page that used flash. So, I went to Adobe’s flash plugin download page and downloaded the flash plugin for debian, then installed it with the command “dpkg -i install_flash_player_10_linux.deb” (as root). That plugin (flashplugin-alternative.so) works much better.

Saturday, July 9, 2011

Driver for Canon Pixma MP280 printer-scanner

The driver is officially released by Canon
Printer driver: http://support-in.canon-asia.com/con...100301402.html
Extract the archive and find the .deb packages in the extracted folder... install the deb file that has "common" word in the name first, then the mp280 deb file.
Similarly download and install the scanner package: http://support-in.canon-asia.com/con...100302702.html
The same concept.
Download the scanner instructions from here: http://support-in.canon-asia.com/con...300410501.html
Solution of http://ubuntuforums.org/showthread.php?t=1582497 by dhayfule.