Syntax highlighting in nano

We are used to some great pieces of software like Gedit, Notepad++, Brackets or Atom for writing our code. Among their multiple advantages, the syntax highlighting is one of their most useful, as it help us to quickly identify the blocks of our code.

However, sometimes we need to use the terminal, for example, for editing a file that is being through ssh.

Thanks to scopatz we can easily modify our nano to show our code in colours and highlight the syntax:

[codebox 1]

Screenshot from 2014-05-30 14:05:48

Take a look to his nanorc‘s github for more details.

Note:

If you are using a version of nano under 2.1.5, your .nanorc should look like this to avoid compatibility problems:

[codebox 2]

Pimp your Fedora

Although the use of Fedora is not as extended as Debian/Ubuntu/Linux Mint, it’s a robust distro and it’s really wide-distributed and easy to use. Unlike Ubuntu and Linux Mint, Fedora is not based on Debian, but on Red Hat, and it includes Gnome 3 as the default desktop.Guidelines-fedora-logo.jpg

If you are thinking about giving a chance to this great distro, for sure these utils are going to save a lot of time and effort:

Fedy: Installs codecs, software, repositories…

[codebox 1]

Gnome Tweak Tool: Customize advanced Gnome 3 options.

[codebox 2]

dConf Editor: Editor for low-level settings.

[codebox 3]

Gnome Extensions: add plugins and extra functions to your Gnome 3 desktop.

PostInstallerFedora: simplify and automatize the installation of a long list of available software.

 

 

Fedora 20 not booting after installing nvidia drivers

After installing the propietary nvidia drivers from the RPM Fusion repository, probably Fedora 20 is not going to finish the booting process… However, pressing [CTRL]+[F2] we can log in the text-only terminal and fix the problem.

  1. Remove the installed drivers: [codebox 1]
  2. Reboot: [codebox 2]
  3. Now you should have a basic graphic interface. Go to /etc/X11 and remove any xorg.conf files. You will need superuser permissions.
  4. Clean and update yum: [codebox 3]
  5. Install nVidia: [codebox 4]
  6. Force akmod: [codebox 5]
  7. Reboot.

That should be enough to solve the problem.