All items...           Popular tags: Linux (7), Hack (6), DIY (3), Debian (3), Other (3), Retrocomputing (3), Electronics (2), Database (1)


Listing contents with tag Linux:

Eee PC 900 as ultra-portable computer

2017-05-03 17:38:06,  In: Linux, Debian, Retrocomputing

Few weeks ago I bought a damaged Asus Eee PC, model with widescreen and Celeron processor. These computers were sold about 10 years ago as "netbooks", which were a transition between notebooks and tablets, when companies were not so sure that they will force users only to consume ad-filled "content" from the Internet. The computer has been repaired and now it works. I decided to make some use of it. Let's look what is inside:
- Intel Celeron processor at 900MHz
- 1GB of RAM in DDR2 SODIMM stick
- 4GB on-board SSD disk
- 16GB SSD disk using proprietary connector.
- Wi-fi, sound, Intel GMA950 video card, SD card reader and battery - all which modern laptop should have.



Previously, the computer had Windows XP installed, in its Home edition. There is a sticker for it so someone bought a license. Unfortunately, even fresh install of Windows XP on this machine works terribly, it is slow, overuses hard disk and suffers of few-second freezes. I decided to go with Linux as these...

... Read More


Building Ted under Debian Jessie

2016-11-25 21:30:22,  In: Linux, Debian

Ted is a Linux rich text editor which has one significant good side: It is not bloated. It is written in pure C/C++ and offers everything a simple word processor may offer: Pages and margins, choosing font, attributes (bold, italic etc.), saving to text files, RTF and even simple HTML format. But the most important thing in TED is that it is not wasting memory and CPU cycles for useless things. Editors which need GTK require few GB of libraries. AbiWord likes to pull significant part of Gnome from repo. Ted is just working on basic libraries. It is possible to have a program to write being focused on writing without gigabytes of libraries! However, the biggest problem with Ted is that it is not supported anymore in Debian, as well as in many other distributions.

Unfortunately Linux is a system for programmers, and programmers like to write code. WYSIWYG software has no chance here to be maintained. So Ted became difficult to build. In this text I'll show how to build Ted in modern Debian Jessie...

... Read More


Making KiCad work offline

2016-10-26 18:22:31,  In: Electronics, Linux

KiCAD is distributed in many Linux distributions repository or as Windows installer package. Unfortunately most of these installation types have one problem - they don't install, or don't register, component footprint libraries. These libraries used by CvPcb are downloaded from Git repository each time user launches CvPcb. Although theoretical goal of this approach was to offer the user always fresh libraries, in practice it results in few minutes of lag (when the files are downloaded) and few hundred MBs occupied on disk each time. More, if someone used a library which is not available anymore, e.g. has been renamed or joined with another, there will be error message. Or maybe you don't have access to the Internet? So you won't design a PCB. Let's get rid of this Git support at all and use locally-stored libraries updated on demand. In this tutorial both Windows and Linux screenshots will be used.

   Windows version

After launching KiCAD, create a blank project and open Eeschema. Now open CvPcb by...

... Read More


Two ways to work remotely on Linux

2016-09-08 00:26:03,  In: Linux, Hack

At work, I have my Linux laptop and Linux workstation. Usually both are running. Sometimes I want to work on my small (12.1-inch) notebook using a nice Full-HD display and full-sized keyboard of my Workstation. Because both of these computers are in the same LAN and "see" each other IP addresses, I can use different open source solutions to connect them for remote control. Typical and well tested one is VNC (Virtual Network Computing) while older and not commonly used is X forwarding, popular in scientific software in 1980s and early 1990s (later replaced by proprietary client solutions). For some time I was working with VNC, now I switched to X forwarding. Here I'll show these solutions, their positive things and problems with them. All tests have been performed on Linux, a 64-bit Debian Jessie with TDE window manager (if you don't know, it's an older KDE). However, a test has been made to show that, contrary to common myth, it is possible to connect by X-forwarding using Windows...

... Read More


Using dead multimedia keys in Linux.

2016-08-20 20:46:22,  In: Linux, Keyboard, Hack

For years I was using a KeyMaestro keyboard connected to PS/2 port. This keyboard is a normal AT keyboard with a set of multimedia/Internet keys. When I switched to Linux, I decided to still stick with it as most multimedia keys were working OK.
But not all the keys. Let's try to make them all running.
First, you should know how the keyboard is used in Linux. The user presses a key, then the keyboard emits the code. Driver in Linux kernel emits the SCANCODE, and Linux program responsible for keyboard mapping maps it to KEYCODE. The keycode may be then used by the system (to be translated to letter as keysym, but we don't go up this level). This way many different keyboards for different platforms may be used by only altering the scancode-to-keycode translation method.
To make key do things we want, we must get its keycode. The most simple method is to use xev and, after seeing the window, pressing the keys. In the console, you will...

... Read More


Perl::Tk and "is not a hash" error

2016-08-09 19:23:13,  In: Linux, Perl, Debian

In Debian 8 (Jessie), after installing Perl::Tk, all scripts return the following error whenever Perl::Tk main loop is called:
2773678 is not a hash at /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/Tk/MainWindow.pm line 53.
Line number may be different depending on Tk library version. Path usually will be different too (your architecture may differ), the most important thing here is this is not a hash error. The source of this problem is with using legacy form color parameter. In earlier X Window versions, colors responsible for window theming were stored as X Window system resources. This was never done completely in Linux, and the last desktop which done it in larger part was CDE from 1990s, and most Linux software just ignored parameters if there were any. However, some definitions survived until few years ago X have been updated. But Perl::Tk still needs some colour definition in order to generate a dialog window - it needs to know the background color.
To solve this problem, edit (or...

... Read More


Mountable, compressed full disk backup in Linux

2016-07-20 14:50:16,  In: Linux, Hack

The biggest problem with compressed full-disk backups in Linux is "all or nothing" philosophy. If you make an image by streaming dd's output to GZip, making a ".img.gz" file, you will end with file which needs decompression before any processing. Want to extract one file - decompress everything! And you need storage for it.
As a help, we can use SquashFS - a compressed file system used in embedded device systems. To start, let's boot the computer off you favourite distro not to run from disk under backup and mount the drive which will be backed up (in this example it's mounted in /mnt/custom).
Then let's fill the empty space up:
root@sysresccd /mnt/custom % dd if=/dev/zero of=/mnt/custom/rubbish.tmp bs=16384
According to your drive you can use smaller or larger block sizes (bs). When it finally ends, we will get a drive filled to the maximum. Remove the file we created:
root@sysresccd /mnt/custom % rm /mnt/custom/rubbish.tmp
This way, we've completely blanked a free...

... Read More



Older posts...       Main page       Newer posts...