Showing posts with label How To. Show all posts
Showing posts with label How To. Show all posts

Monday, April 14, 2014

How to improve font rendering in Ubuntu/Mint/Elementary?

Many people have never heard of Infinality and until today I was one of them. It is a tool that greatly improves the font rendering in Linux systems.
Infinality is a set of Freetype patches. These patches aim to provide a superior font rendering for Linux and also allow easy customization. Users can adjust the settings as they please. Through Infinality you supposedly are able to emulate the font style of various Mac and Windows versions, or use the "Linux" or "Infinality" styles.
Ubuntu is considered to have a pretty good font rendering capability. That is why even though Infinality is very useful for most Linux distributions, it's usefulness is doubted in the Ubuntu case. Well there are plenty of users who install Infinality in their Ubuntus. One of them is the Ubuntu Bulgarian Translator admin Miroslav Hadzhiev(Мирослав Хаджиев). Here is something he has said concerning the matter:
"[...] this [Infinality] project has brought me back to Linux. I work with documents all day long so the fonts are VERY important to me".
He also adds that with Infinality, the fonts are sharper and more vivid  especially on large screens. Here is a screenshot provided by Hadzhiev. Here you can see his Ubuntu computer. On the left you have the default Ubuntu version but on the right you have the Infinality with Linux style.


In this picture, the change is noticeable. Using Infinality for a short period myself I must admit that at first look you won't notice the difference. It will take a little bit but you will slowly begin to see the differences. 
Here is a zoomed look at the 2 versions:


I use Elementary OS and the clearest change is seen in the Chrome tabs. Before they were somewhat blurry, now they are crisp and very vivid. Also in certain webpages the words are much better(facebook being one of them). Combined with Helvetica as a general font for the system everything looks much much better. 

How to install:

This install method is not reserved to only Ubuntu, Mint and Elementary OS. It can be done in all distros deriving from Ubuntu 12.04, 13.04 and or 13.10. Freetype with Infinality patches has its own PPA so it is not much harder than typing a few lines of code in a terminal window.
sudo add-apt-repository ppa:no1wantdthisname/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fontconfig-infinality 
 After finishing the installation, just log out and log back in. You will pinch your eyes in the first minutes to see the difference but it is there believe me. 

Configuration:

To configure it and set the style you want you just need to type the following command in your terminal:
sudo bash /etc/fonts/infinality/infctl.sh setstyle
 Choose whichever style you want and then log out and log back in again to see the effects. Linux is recommended here. If you choose the other ones remember to also use the fonts of the system Windows or OSX.

Optional: edit /etc/profile.d/infinality-settings.sh with a text editor.
To use gedit just paste this in terminal
sudo -H gedit /etc/profile.d/infinality-settings.sh
Change USE_STYLE="DEFAULT" into one of the possibilities below:


  • DEFAULT - A compromise that should please most people;
  • OSX - Simulate OSX rendering;
  • IPAD - Simulate iPad rendering;
  • UBUNTU - Simulate Ubuntu rendering;
  • LINUX - Generic "Linux" style - no snapping or certain other tweaks;
  • WINDOWS - Simulate Windows rendering;
  • WINDOWS7 - Simulate Windows rendering with normal glyphs;
  • WINDOWS7LIGHT- Simulate Windows 7 rendering with lighter glyphs;
  • WINDOWS - Simulate Windows rendering;
  • VANILLA - Just subpixel hinting;
  • CUSTOM - Your own choice;
  • Infinality styles:
    • CLASSIC - Infinality rendering circa 2010. No snapping;
    • NUDGE - CLASSIC with lightly stem snapping and tweaks;
    • PUSH - CLASSIC with medium stem snapping and tweaks;
    • SHOVE - Full stem snapping and tweaks without sharpening;
    • SHARPENED - Full stem snapping, tweaks, and Windows-style sharpening;
    • INFINALITY - Settings used by the Infinality developer;
    • DISABLED - Act as though running without the extra infinality enhancements (just subpixel hinting).


Infinality.net

How to install Android on your PC, natively?


Android is the 2nd most used Operating System in the world. But if you ask anyone about it you will get answers like: "The thing I have on my phone and tablet". Android is an open source project, so its limitations are few. It if very flexible in terms of the hardware that it can run on. So what about the computers and laptops? Well, as long as there is desire there is a way. So yes there is a version of Android for computers with x86 architecture. And I am talking about the real thing running natively, not virtual methods such as BlueStacks.

So the guys at android-x86.org bring us unofficial builds of Google's OS able to run on a lot of different hardware than intended at first.
This is a project to port Android open source project to x86 platform, formerly known as "patch hosting for android x86 support". The original plan is to host different patches for android x86 support from open source community. A few months after we created the project, we found out that we could do much more than just hosting patches. So we decide to create our code base to provide support on different x86 platforms, and set up a git server to host it.

Requirements:

  • Android x86 ISO(you can download the version you want here)
  • Either a USB Flash drive or a CD/DVD(I prefer the USB, keep the planet clean!).
  • Some free gigabytes in your hard drive, this is where the operating system will installed:
    • 2Gb: From Android Froyo to ICS
    • 8Gb: For Android Jelly Bean 4.2 and 4.3
    • 10Gb: For the latest KitKat 4.4.2
  • A partition to install the new OS.
  • To burn the ISO into the USB use UNetbootin. You can download it here for Windows, Linux and Mac.
How to install:
  1. Download UNetbootin from the source above. Select the version you need.
  2. Download the version of Android x86 that you plan to install. Remember the space needed for each of them. And don't forget where you downloaded it, you'll need it in the next step.
  3. Create the bootable USB drive. To do this just start UNetbootin. Click on Diskimage instead of Distribution. Then just find ISO file that you downloaded before.
  4. After creating the bootable USB you will need to reboot you computer. You will need to boot from the USB. To do this you might need to change some settings in your BIOS or simply press a function button depending on the type of computer you have. The newer machines have USB boot by default if available.
  5. Select the partition in which you wish to install Android x86. It is recommended that you have a new and formatted partition.
  6. You will be asked to confirm some settings about GRUB Bootloader. It is imperative that you do confirm these prompts. GRUB will be your new bootloader(if you don't have it yet) from now on.
  7. Another thing you will have to confirm is the permissions of the system. You want to have a /r/w system. This is especially necessary if you would like to modify your Android x86 system later.
  8. If you have chosen to install a version from the first group(Froyo to Ice Cream Sandwich) you will be asked to install a virtual SD card. The maximum supported is 1800 MB. I recommend you to use that amount.
  9. Reboot your computer again.
And you are done. Now you have a computer with Android in it. It may not be mobile like meant by Google but it is cool all the same. Remember the GRUB Bootloader that you installed? It will allow you to boot into any OS you have installed, may it be Windows or Linux or Android.

It is also possible to do this in a virtual machine using VirtualBox for example but this is the real native experience.

Some Sources:

Monday, April 7, 2014

New Google Drive add-ons, How to use them?

On March 11th Google presented for the first time add-ons for its Office apps. More specifically Docs and Sheets are the services which are getting this new feature. Basically the idea behind this is to do more without ever leaving the Drive. These add-ons are not written by Google itself, instead 3rd party developers are invited to create as many of them as possible.


Now, approximately one month later there are 35 add-ons available, from Charts to Bible Verses.
To find the add-ons all you need to do is to open a new document or spreadsheet. There on the menu bar you can find the "Add-ons" button.


Click it and then just find what you want to add. Being a student, I often have to write bibliographies for papers. They can be a pain. So for the purposes of this article I am installing the "EasyBib Bibliography Creator". After you press add, a permission window, like the one in Android, will pop up. Press Accept.


After installing to launch the Bibliography Creator all I need to do is go to Add-ons again and press Start or Manage the Bibliography in this case.


The add on will usually appear in the a sidebar to the right of the page. Keep in mind that only one add-on can be displayed at a time.
To remove an add on simply go to Add-ons>Manage add-ons... The click manage on the add on you want to remove and press Remove.


Enjoy these new features! Here is the video Google prepared for this new feature.

Friday, April 4, 2014

What is Komodo Edit and how to install it in Ubuntu?

"Komodo Edit is the free and Open-Source counterpart of Komodo IDE.
Looking for a powerful editor without all the advanced functionality an IDE comes with? Komodo Edit is for you. "-ActiveState

The sentences quoted above are taken from the official Komodo Edit website. This app is a beefed up text editor. If you want to work on your HTMLs or Css' (and much more) this is a great text editor.
Komodo Edit is based on Komodo IDE, a commercial product from ActiveState. The later one is a complete development environment for web and cloud-based projects. It's "little brother" Komodo Edit is a little different. It is open-source and has an unbeatable price, its free. It is based on the same codebase as Firefox so it is available for all major OSs. It also has a Firefox-like system to find and install add-ons.

Komodo supports customizable color schemes. You can find the themes online and simply drag and drop them on the apps window. This will install the theme
Another feature is its build in FTP client. This allows you to work with files on your servers without needing to download them or to create new projects.
Komodo also offers autocompletion, code folding and simple text zooming using the mouse wheel.

Installation:
Komodo Edit is offered for:
How To Install in Debian/Ubuntu/Mint

Although the installation for Windows and OS X is pretty straightforward, the same can not be said for Linux users. They offer a binary file which can be a pain to install for a big number of people. I am going to write here 3 simple command through which you can install in a non-painful way(for most).

sudo add-apt-repository ppa:mystic-mirage/komodo-edit

sudo apt-get update
sudo apt-get install komodo-edit

Enjoy!

PS: My editor of choice is Sublime text. If you want to try that one out too, click here: 

Sublime Text: How to install in Ubuntu based distributions

CCleaner comes to Android


CCleaner is one of the tools that I recommend to anyone who owns a laptop/desktop. It is great to clean up, optimize and maintain your device.
Now this awesome tool is coming to Android. Right now it is in the Beta stage, but still packs some good features.

The app allows you to:
  • clear app cache and data
  • bulk uninstall unwanted applications
  • erase your browser history or call logs
  • remove your clipboard data.
 Some of these features are available from Android itself. I guess it doesn't hurt to have some extra ones, and all together at the same place.

To get it you will need to join the Google+ Community and then download the app from Piriform.*

*There is a Play Store link but it doesn't work for me. You can try it. Link

Nautilus Terminal, File Manager and Terminal combined

Nautilius is the file manager of choice of Ubuntu. It is one of the best file managers out there, and since Ubuntu is the number 1 Linux distribution out there, is used by the majority of Linux users.
Terminal on the other hand, is one of the most important apps in Linux. It allows the user to communicate to the shell and pass instructions. Most of the people who don't know Linux think that everything is still done in the terminal.
Even though that is not completely true, the Terminal is a vital part of the Linux experience. You just can't completely ignore it. Of course new user-friendly distributions are trying to change this. To this day, none has been completely successful. It is not the distros' fault. There are simply a lot of apps out there who aren't represented in the different software centers, or just don't put Linux in their top priorities.
So at some point you'll have to use the Terminal.

Nautilius Terminal combines these two essential apps together. It follows your movements in the GUI and shows them in the terminal(cd ./example). Some of its features are:
  1. Completely compatible with Nautilus File Browser.
  2. Designed to follow your movement and Instructions within directories.
  3. Feature of Hide/Show Terminal in file browser, as required makes it very much useful.
  4. Supports Copy and Paste in Terminal.
  5. Supports Drag and Drop of files/folders in Terminal.
  6. The Embedded Terminal is re-sizeable, as per need.
 Following are the instructions on how to install it:

Debian/Ubuntu/Mint
$ sudo add-apt-repository ppa:flozz/flozz
$ sudo apt-get update
$ sudo apt-get install nautilus-terminal

Thursday, April 3, 2014

How to completely uninstall LibreOffice from Ubuntu and derivatives

I found myself installing LibreOffice by mistake in Elementary OS. Yes, I am not a LibreOffice fan. I like Kingsoft Office a lot more, but that's not the purpose of that post. After noticing my mistake I tried wanted to get rid of it. 

My first instinct  was to go to the Software Center and remove it using the comfortable GUI that it offers. Since I installed the office suite in a bulk installation I didn't know that in the software center, the apps were separate. So I started removing them one by one, hoping that after 5 clicks I would be done. 
Unfortunately though, I wasn't. There was still the "App who rules them all".
It wasn't just the icon that was left. Also the defaults were still set to LibreOffice to open documents and spreadsheets. What annoyed me most was Google Chrome trying to launch it each time I clicked on a document.

So I went to the good old terminal and did it the right way. I'll put it here so that everyone who wants to can use it.
sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
Enjoy!

Sunday, March 30, 2014

How to download songs from Grooveshark directly from Chrome

Grooveshark is a music streaming service used by many people(including me). Even though it has many legal disputes it is still one of the best music streaming services out there. The ability to upload you own songs and get music others have uploaded is the feature that makes this service so successful.


Image from Wikipedia
Google Chrome, on the other hand, is the browser of choice of approximately half the web users today(55.7% according to W3Schools).
Now trying to download music from Grooveshark would kind of beat the purpose of the service itself, which is to listen to music online. For different reasons though, we find the need to have access to some of our music even offline. When we want to listen  music on our mobile devices, mobile data plans can get pretty pricey.
Luckily, Chrome has plenty of add ons. One of them is Grooveshark Downloader. This simple add on allows you to download songs from your Grooveshark collection. It will add an icon on the right side of your Omnibox. That icon doesn't do much. If you click it, it will launch Grooveshark in a new tab.

What you need to do to use it though is to go to a certain list(it doesn't work on your entire song collection) and a download button will appear on the right side of the singer. Click it and a progress percentage will take its place when done it will ask you to save the mp3 file.

 Now the question is how to install it. Since the add on is not form the Store you can't install it the normal way. Here is what you should do.

1. Save the add on file in your hard drive. Download 
2. Type  chrome://extensions/ in your Omnibox.
3. Drag and drop the file.
4. Install and enjoy downloading your songs.

Wednesday, March 26, 2014

How to Install Microsoft Fonts in Linux

Using Linux on a daily basis you'll often find yourself missing some of the standard things you'd find in a Windows OS. For many, this may not be a big deal especially when the missing things are just fonts. But for some of us, they are part of our daily routine.
Students for example are required to use certain standards. Hell, I've had professors who wouldn't accept a paper if not written in Times New Roman.

The good news is that these fonts are just a command line away. There are graphical ways to do this but they may not work in every case. This command line though will get you the fonts you need in most cases of Ubuntu based distros.


sudo apt-get install msttcorefonts

Now this process takes a while to complete. Just be patient while the terminal gets the files and installs them. In the end you will have fonts such as Times New Roman, Arial, Comic, etc.

Monday, March 24, 2014

Sublime Text: How to install in Ubuntu based distributions

Sublime Text is one of the best text editors out there. It is full of features that aim to make every developers life easier. It is available  for Windows, Mac and Linux. In this post I will show you different ways of getting the app for Linux(Ubuntu based distros)




Install via the Package Manager(apt-get):

I know this already answered but you can simply just add to your packages:

For Sublime-Text-2:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

For Sublime-Text-3:

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

Install Manually via Terminal:

Download from the Sublime Site:
32-bit:
wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2.tar.bz2
tar vxjf Sublime\ Text\ 2.0.2.tar.bz2
64-bit:
wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.2\ x64.tar.bz2
tar vxjf Sublime\ Text\ 2.0.2\ x64.tar.bz2
For Both::
sudo mv Sublime\ Text\ 2 /opt/
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime

Enjoy Sublime Text!
Source: Ask Ubuntu

Saturday, March 22, 2014

Caffeine, Solution to Computer Sleep

This is a solution to a problem I had raised in a previous post, that of the computer going to sleep while watching a video usually with flash player.

Post: A-bugging-thing-in-everyday-linux-based-OSs

Thankfully I found an app that targets this specific problem. It's called Caffeine and it does exactly that. It allows you to add programs that will prevent the computer from sleeping while their running. It even has an option specific to Adobe Flash Player.

Here is a picture demonstrating this:

Its pretty simple and straight forward to use.

How to install:

Just copy paste the following commands in the Terminal


sudo add-apt-repository ppa:caffeine-developers/ppa

sudo apt-get update



sudo apt-get install caffeine python-glade2

Tip: Connecting to archive.ubuntu.com takes a long time? 

Friday, March 21, 2014

Connecting to archive.ubuntu.com takes a long time?

Each time I add new repositories to my Elementary OS(Ubuntu based) I need to update the package lists. So normally I have to apply the following command:
sudo apt-get update
Each time I do this though, the terminal gets stuck at a certain point.
100% [Connecting to security.ubuntu.com (2001:67c:1360:8c01::19)]
 After looking around a little bit I found out that there is a problem with what protocol does the system use IPv4 or IPv6. It is better to let it chose by itself. The remedy for this would be to modify a small config file. The file I'm talking about is situated in the /etc folder and it's called gai.conf.

This file though is not modifiable by the user. To fix this you can just paste the following command in the terminal:
sudo chmod 777 /etc/gai.conf
Now just go and open the file with your favorite text editor and uncomment the precedence line:
#
#    For sites which prefer IPv4 connections change the last line to
# 
precedence ::ffff:0:0/96 100  

Now everything should run smoothly. Enjoy installing new stuff again! 

Elementary OS: How to map a network drive?

As the tittle says this post is about how to connect to a network drive in Elementary OS Luna. I used the term "map", to make it more familiar to Windows Users. 

In Windows to do this you just right click on the My Computer icon and follow the steps.

In Elementary OS it is not very different. "Files" is the default file manager. It is through Files that we will connect to the network drive just like to any other drive.

Unfortunately in Elementary OS you can't take screenshots while the right mouse button is clicked. So I will try to be simple.

First open files through the Applications drawer.



Right click on Entire Network and select "Connect to Server..."

A new window will appear that will require you to fill in the required information to connect to the network drive. In my case I am using a Windows Share server in my university. I have used asterisks for privacy purposes. 

After filling everything and clicking continue it will ask you to verify your credentials once again. Don't worry just click continue again.


As you can see the network drive successfully connected. It is listed in the Network Section, and you can unmount it just like a normal drive. 

Wednesday, May 8, 2013

How to download mp3 from YouTube with up to 320 kb/s

YouTube nowadays isn't used to just share videos, but also music. I prefer to have high quality music stored in my devices. When I try to use services that convert YouTube videos to mp3 I usually end up with low quality songs with a rate of 128 kb/s.

After a lot of searching for a free and convenient way to download with high quality I found one site called youtubemp3pro.com. It allows you to decide what bitrate you will use 128, 192 or 320 kb/s.

How to use it?

You can add it as a bookmark to your browser. It supports Google Chrome, Mozilla Firefox and Opera. After installing it, it is pretty and intuitive to use. you just select the bit-rate and press Download mp3.



You can also download the software for Windows from here.

Or if you don't want to add extra software to your PC or to your browser you can do it this way:

type http://www.youtubemp3pro.com/#"the link of the video without quotation marks"#qualityXXX 

instead of XXX you should write 128 or 192 or 320.

Enjoy your music!

Source:
youtubemp3pro.com/

Tuesday, May 7, 2013

How to kill a program in Linux

Before starting the post I want to tell everyone that I use Linux as my primary OS. More specifically I use Linux Mint. The simplicity and user friendliness of this OS are really astonishing.

Even though it is a pretty stable system, errors and problems are bound to appear once in a while. For example a program might freeze. People accustomed to windows will look for a task bar, but since there is none, they often get stuck.

After some research I found an efficient way to kill any frozen program.

xkill

1. Open a terminal. Either by pressing Ctlr+Alt+t, or Alt+F2 and typing gnome-terminal in it.

2. In the terminal type sudo xkill *, then using your mouse cursor click on the program that you want to kill.

* You will be required to input your password like with any other command that requires administrative rights. (that contains "sudo" in it)


There are other ways to kill a frozen program, but I prefer this one since it more user friendly.