"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects." (Robert A. Heinlein)
Thursday, 24 December 2015
Thursday, 3 December 2015
After almost one year I managed, just in these days, to change my Internet provider and have back my land-line ADSL connection. First things first, I started with updating my home desktop computer (the Acer Veriton S661) I left mostly unattended during this period since my mobile Internet contract was barely enough for daily connectivity needs. Unfortunately it seems my computer has been left too much without upgrading and the update process halted signaling many “404” errors while accessing to different repository locations. May be I could find another solution to upgrade my system but, since I usually keep the “/home/” folder on a separate partition, I decided to go for a complete re-installation of latest Ubuntu-Gnome release.
The installation process
I proceeded with installing as usual, prepared a USB disk with Ubuntu's tool, booted from it and went on with installing. On order to maintain my separate home partition I selected the custom “Something else” installation type
Monday, 23 November 2015
Also this seventh year of blogging has passed. Unfortunately this year I have expereinced many Internet connection problems: my land-line appears to have been caught in a undeclared war between two of the biggest and greediest italian Internet providers. So I'm tied to connecting to the internet using my cell-phone since almost one year. This kept me from most of the upgrading (my computer) and updating (myself) and, of course, from posting about it.
By the way this is no gain in complaining (at least here) so let me thanks all my readers and visitors and hope next blogging year will be more proficuous.
Friday, 25 September 2015
It happens, sometimes, that I download a “new” programming language or a framework or library in order to give it a try. Of course the word “new” is relative to my personal or professional experience, mostly orbiting around the Java galaxy. This time the “new” programming language is Python. Python is, of course, a widely used and far from being a new programming language but I never had the thought of giving it a try before.
Python on Eclipse: PyDev
I'm willing to learn new languages but I'm not so eager to install and use a new IDE while doing it. I so went looking for a Python development Eclipse plug-in and the choice fell on PyDev. Installing PyDev on Eclipse has been quite simple, just matter of selecting it on Eclipse Market Place and completing the installation wizard.
Before creating the first project PyDev plug-in needs to know where python interpreter is. There is a handy automatic search feature but I preferred the manual configuration in order to have more meaningful configuration names.
Sunday, 9 August 2015
You could count only a handful of tasks where a home server can be really useful, almost all are about making digital media more available. After installing the DLNA server on the Raspberry PI I was still looking for a software tool to easily browse the pictures I keep on my network NAS. I so installed the LAMP server components and I've been trying several PHP based gallery web-applications like Gallery 3 or Piwigo. They are all valuable tools but unfortunately didn't fit with my requirements because couldn't hook to preexisting picture folders or didn't perform well on the not-so-powerful Raspberry PI . On the other hand these applications offers a wide set of features, like users management, I don't need since my gallery isn't going anywhere outside my home LAN.
SFPG: (zero configuration) Single File PHP Gallery
Single File PHP Gallery (SFPG) is a simple gallery web application all contained into a single PHP script. It might sound odd from a purely programming point of view but It greatly simplifies application deployment. In addition to its being single-file SFPG doesn't need MySQL or any other database, since it stores all information it needs on files. Last but not least, under the proper conditions, SFPG can work without any configuration by just placing it on the pictures root folder.
Some bare-bone configuration
Even if SFPG can be deployed without the need of configuration it offers a wide range of configuration by editing the “define” instructions listed at the beginning of the (unique) “index.php” file. I changed the gallery root path to point to my NAS pictures folder in order to separate actual pictures folder from SFPG data folder:
…define('GALLERY_ROOT', '/media/public/Pictures/');define('DATA_ROOT', './_sfpg_data/');define('SECURITY_PHRASE', 'some phrase to be used as random seed');…
I also set a security phrase that SFPG uses as seed in generating random paths. SFPG can also automatically set the security phrase if the PHP script has permission to modify itself.
Friday, 31 July 2015
Ubuntu Mate is a Ubuntu derivative distribution equipped with Mate desktop environment. Ubuntu Mate has been recently admitted among the official Ubuntu derivatives, I've been reading some very positive post about it so I decided for giving it a quick (live) look on the EEEPC even if I had already reinstalled my netbook computer with Xubuntu,
After the usual process of preparing a USB disk an booting the netbook from it I've been welcomed from a very Gnome-2-looking interface.
The default interface provide the usual Applications, Places and System menus:
Thursday, 25 June 2015
I've been working a little more on my Raspberry PI based server. After installing Minidlna server my Raspberry PI server needed some easy way to transfer media files into the USB disk. Sharing the disk with Samba has been, to me, the obvious solution. Also I installed the basis of a LAMP server (Apache2, MySQL, PHP5) for future installation of server applications.
Sharing a disk with Samba
The first step has been so installing samba from command line apt-get
sudo apt-get updatesudo apt-get install samba samba-common-bin
then I edited samba configuration file
sudo vim.tiny /etc/samba/smb.conf
where I added the definition instructions for sharing the USB disk
[usbdisk]comment = Raspberry PI USB diskpath = /media/usbdiskbrowsable = yesguest ok = yesread only = nocreate mask = 0777directory mask=0777public= yesonly guest = noforce user = piforce group = users
To keep things on the easy-to-use side I set the share for a public “guest” use without asking for passwords. Since my Raspberry server is still in a experimental status I don't have, not yet at least, many security worries to think about.
I tested the configuration with the testparm command
and eventually restarted the samba service.
sudo service samba restart
Wednesday, 27 May 2015
After some testing of light-weight desktop environments I decided, at last, for installing Xubuntu (Xfce flavored Ubuntu) on my good old EEEPC 900. Xubuntu choice came because Xfce desktop environment behaved well, during my tests, working smoothly on the resource-poor EEEPC while being still able to render a modern enough user interface. Last but not least I've been using for years Xubuntu on my old desktop Sempron 2400 without problems.
Before starting with installation procedure I had to do some preliminary operation. First has been, of course, backing-up my home folder into an external USB disk (hosting all my backup since I removed original Xandros installation). Then I executed Ubuntu's disk analysis tool in order to have a hint about how to partition the new installation disks. Until now, in fact, I kept the EEEPC900 4GB on-board disk for a minimal Windows XP installation (when I bought it the EEEPC was my fastest computer) but time has come to get rid of it. So a fair distribution of disk usage among the two netbook disks is going to be important.
The disk analysis showed how my disk usage was almost evenly split between the “home” and the “usr” folder (where most of application are installed) while the rest of system folder are well less of the 4GB limit.
Thursday, 7 May 2015
My first though about how to use the Raspberry Pi has been to set-up a always-on, low-power, home-server. There are not many services that could be really useful at home but, among them, a DLNA compatible server is the one that more interested me.
Mounting the USB drive
In order to be a useful server, especially a media server, the Raspberry first needed some bigger disk than the system 8 GB micro SD. I so selected as main storage for Raspberry a old 3.5” IDE USB drive. No problems from the electrical power side since the drive it's externally powered.
Mounting a USB drive on the Raspberry is just a basic exercise of CLI Linux: after getting the device name with the lsusb command the disk can be mounted with a simple command:
sudo mkdir /media/usbdisk
sudo mount /dev/sda /media/usbdisk
the mount command automatically recognized the XFS file system the disk was formatted with (I used it, before, attached to the NAS). In order to make the disk permanently mounted I added the following line to the /etc/fstab file
/dev/sda1 /media/usbdisk xfs rw,defaults 0 0
Sunday, 5 April 2015
Friday, 20 March 2015
As promised in previous post I continued in my touring about testing lightweight desktop environments on the EEEPC. This time I installed on my netbook the most famous lightweight desktop: Xfce.
I've been using Xfce for many years on my, now dismissed, old Sempron 2400 desktop computer. I never worked with it on the EEEPC. At the time the EEEPC was my “fastest” computer and Gnome used to work fine enough on it.
Installation and first impressions
I installed Xfce from shell by simply typing:
sudo apt-get install xubuntu-desktop
After the installation process competed I logged off from the Gnome-Shell session and logged back in after selecting Xfce (Xubuntu Session) as desktop environment.
Here is the Xfce just after logging in:
Thursday, 12 March 2015
As my hardware is getting old I start living the usual “Upgrade season” with more anxiety than eagerness. The question “Will the computer still work with the new release” becomes every year more fundamental and eventually I enter in a sort of “No-news-good-news” spirit where shorter new features list are welcomed while every novelty is looked with suspicious.
So I downloaded the newly released Ubuntu-Gnome 15.04 (Vivid Vervet) in order to test it on my old netbook mostly to see if it would continue working properly after being upgraded.
I booted the EEEPC from my USB disk and, after a quite short boot time, I've been taken to the usual “Install or Try it” welcome screen:
Sunday, 25 January 2015
My good old EEEPC netbook is, day by day, getting too old. Apart from usual aging hardware problems, like the decreasing battery capacity, also the software side is worsening at every update. I still have the latest Ubuntu release installed but Gnome-Shell is showing a persistent delay in responding to some mouse actions like opening menus or showing the activities screen.
I decided for giving a look to some of the so called “light-weight” desktop engine in order to possibly completely or partially replace Gnome-Shell.
Lxde is, together with Xfce, among the most famous lightweight desktop environments. I decided to install it on my netbook instead of performing my tests with a live disk like I usually do. This should let me obtain a more accurate and realistic test. I'm not too worried about leaving my system too “dirty” since I'm probably going to re-install the whole operating system on the EEEPC once I'll have come to a decision.
I so installed Lxde trough the apt-get command:
sudo apt-get install lubuntu-desktop
then I logged out from Gnome-Shell and logged back in after selecting Lxde from the login menu. Lxde offers, in the login menu, selection between two desktop modes: the “classic” (Lubuntu) and the netbook (Lubuntu-Netbook) mode.
Lxde “Classic” mode
The “Classic” Lxde desktop shows a Gnome-2-like user interface with a bottom panel and a bottom-left program launcher menu.