Nano History Error

I experienced a “nano” editor error this morning. It displayed this:

Error reading /home/ulysses/.nano_history: Permission denied
Press Enter to continue starting nano.

The error doesn’t prevent you from using the nano editor, but it displays an annoying message. You have to press the Enter key each time you want to use the editor. I’m not sure how I manage to make the nano editor behave this way. I probably edited a file in my home directory while I was root. It’s a common mistake.

So, when accessed as a regular user, I simply didn’t have permissions to the nano history. A simple fix for this is to delete the .nano_history file while logged in as root. Switch back as a regular user and run nano again. Nano will re-create the history file the next time you use it.

$ sudo rm /home/ulysses/.nano_history

That should take care of it.

Mac Pro

Apple Mac Pro will go on sale tomorrow. The cylindrical high-end desktop is made and assembled in the USA and priced somewhere between $3000 to $4000. The lower end unit features a 3.7 Ghz quad-core Intel Xeon E5 processor, 12 GB of RAM, two FirePro D500 graphics processing units and 256 GB of flash storage.

The high-end unit will have upgrade to faster processors, more memory and 1 TB of SSD flash storage. The Mac Pro is geared towards movie editors that need lots of processing power. The Mac Pro is available at Apple.com, Apple stores and select resellers.

The Mac Pro can support up to three 4K Ultra HD video displays at once. It also has six thunderbolt ports which support up to six displays as well.

Gimp on Mac OS X

Gimp is the GNU image manipulation program that I use exclusively for editing and creating image files. It’s open-source and it’s free. Gimp on the Mac OS X has come a long way. Last year, Gimp went native on OS X, meaning it no longer required XQuartz or Apple’s X11 to run on the Mac OS.

When Apple released Mac OS X Mavericks a couple of months ago, Gimp followed with its own release supporting Mavericks. However, there are some serious bugs that need fixing, particularly with the keyboard focus. When Gimp is prompted with a text box, the keyboard focus remains in the background.

Typing something in text box results in either nothing or some odd behavior in the background. Fortunately, there’s a temporary workaround with the keyboard focus issue. You must disable the keyboard shortcuts. You can do that by accessing Preferences > Interface > Remove All Keyboard Shortcuts.

The problem disappears once the keyboard shortcuts are disabled. I don’t really use keyboard shortcuts, so it doesn’t affect me. However, there are others that may be dependent on them. Hopefully, there will be a fix soon.

Heatsink and Modem

My DSL router/modem is failing miserably. My Internet connection slows down to a crawl. Pinging a host online takes twice as long. Resetting the router/modem fixes the problem temporarily, but only for a couple of hours, then it’s back to its slow crawl.

Rummaging through my stash of electronics, I found an old DSL modem that I put away years ago. There’s a reason why it’s in the electronic pile. It has problems with overheating as I recall. Desperate for a fix. I pried off the heatsink from an old motherboard, and placed it on top of the overheating chip on the modem.

heatsink2

Well, after 12 hours of operation, so far, so good. Surprisingly, the heatsink is still quite warm to the touch. I don’t know how Motorola failed see the heating issues with this particular model. Anyways, I can’t replace the modem cover because the heatsink is way too big. Suffice to say, the modem cover looks nicely as a stand.

Heatsink and modem, just like the horse and carriage.

Installing Laravel 4.1

Laravel version 4.1 was released just a couple of days ago. With the latest release of Laravel, the installation and setup couldn’t be any easier. In this article, I will show you how easy it is to install Laravel on Ubuntu. You can quickly adapt these commands to other Linux flavors using either the ‘yum’ or ‘rpm’ commands.

The preferred way of installing Laravel is by using Composer, which is a dependency manager for PHP. In this article, I will be using Composer because it’s by far the easiest way to install Laravel.

First things first, update Ubuntu to the latest and greatest patches.

$ sudo apt-get update
$ sudo apt-get upgrade

You can skip the following command if you’ve already installed Apache, MySQL and PHP.

$ sudo apt-get install apache2 mysql-server mysql-client php5 libapache2-mod-php5

In addition, we also want to make sure PHP5 mcrypt and Json is also installed.

$ sudo apt-get install php5-mcrypt php5-common

We will now install Composer first using the curl command from the Terminal. Once the install is finished, we will now rename ‘composer.phar’ to ‘composer’ and move it to the ‘/usr/local/bin’ directory so it’s accessible from anywhere on the system.

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Now that we have Composer installed, we will now install Laravel using Composer. The only variable that we need to modify is ‘test.’ This is the target directory where Laravel will be installed from the current directory.

$ composer create-project laravel/laravel test --prefer-dist

Relax and grab a cup of coffee. This process will take approximately 2-3 minutes to complete. Composer will be installing Laravel and all its dependencies.

After Laravel install is complete, we need to give read and write permissions to the app/storage directory.

$ sudo chmod 777 app/storage

You can now access Laravel from the browser. To make it simpler, you can setup a virtual host if you like. I recently wrote an article on how to create a new virtual host. Check it out.