Tag Archives: linux

When will Google update kernel in Chromebooks

In the light or latest vulnerabilities found in Intel, AMD and some ARM processors found by Google researchers, everybody has summoned to create and install patches and fixes.

As an owner of one ARM Chromebook  currently running Linux Kernel Ver. 3.14.0 (Chrome OS after all updates installed) I am not sure whether it is subject of Meltdown and Spectre vulnerabilities, but according to Kroah-Hartman one of the main Linux kernel maintainers:

“If you rely on any other kernel tree other than 4.4, 4.9, or 4.14 right now, and you do not have a distribution supporting you, you are out of luck. The lack of patches to resolve the Meltdown problem is so minor compared to the hundreds of other known exploits and bugs that your kernel version currently contains. You need to worry about that more than anything else at this moment, and get your systems up to date first. Also, go yell at the people who forced you to run an obsoleted and insecure kernel version, they are the ones that need to learn that doing so is a totally reckless act.” read more

Switching to Raspberry Pi 3

As my server was running on A20-OLinuXino-LIME board, it started to freeze. I thought it is software issue and after some update it will be fixed, but that didn’t happen. When freezes even blinking LED stops blink.

So I decided to try Raspberry PI and installed Raspbian OS. No SSD disk as before, all running on micro SD card.

I am playing wit Pis for a long time (my first one is Rpi 1 Model B still running my weather station on the balcony).

Here I am – my blog on Pi, so far so good, will see. read more

My Accounting program

I’ve made a program for tracking my finances. It is not a big deal, but it does the job for me.

It is web based, works on top of LAMP stack (Linux, Apache, MySQL and Php).

You can try it – the code is available at: GitHub

The install:

1). Drop the source code in a folder at Apache’s document root:


git clone https://github.com/jet-/tinyacc

2). Create a database in MySQL (for example acc_usd), and change the conf.php file accordingly.

3). Tables creation – run: read more

My new Chromebook

I bought an ASUS Chromebook Flip 10.1″ Touchscreen Laptop (Quad Core, 4GB, 16GB eMMC) – Aluminum Chassis. I know it is like a dumb terminal (browser), but as a Linux fan my intention is to install Linux on it. Boy that thing is thin – love it.

  • With 10-finger touchscreen, ASUS Chromebook C100 can be flipped over from 0 to 360 degree, using it as a Chromebook, or a tablet.
  • Quad-Core ARM 1.8GHz processor with 4GB RAM, Wireless 802.11 A/C
  • Built with aluminum chassis, 10.1″ HD IPS Display 1280 x 800. HD Webcam
  • Run android apps

When start it Chrome OS comes in no time. You have a browser and all Android apps in your disposal. read more

OLED display to Raspberry Pi

Today I played with an OLED Display. I bought it from Amazon for $14 which is 0.96 Inch I2C and SPI Serial 128 x 64. It needs only 4 wires to connect to Raspberry Pi. This display is a monochrome (blue) – hence the price.

 i2cdetect -y 1

Showed the display detected on the I2C bus

Couple of lines of code from GitHUB – show IP address and the time. Graphics also can be drawn – lines, circles, rectangles, ellipses etc. even displaying .png files.

oledoled_1

#!/usr/bin/env python # # !!! Needs psutil (+ dependencies) installing: # $ sudo apt-get install python-dev # $ sudo pip install psutil # import os import sys if os.name != 'posix': sys.exit('platform not supported') import psutil from datetime import datetime from oled.device import ssd1306, sh1106 from oled.render import canvas from PIL import ImageDraw, ImageFont f = os.popen('/sbin/ifconfig wlan0 | grep "inet\ addr" | cut -d: -f2 | cut -d" " -f1') your_ip=f.read() from time import gmtime,localtime, strftime t = strftime("%Y-%m-%d %H:%M:%S", localtime()) def stats(oled): font = ImageFont.load_default() font3 = ImageFont.truetype('/root/oled/fonts/C&C Red Alert [INET].ttf', 18) font4 = ImageFont.truetype('/root/oled/fonts/C&C Red Alert [INET].ttf', 22) with canvas(oled) as draw: draw.text((0, 26), your_ip, font=font4, fill=255) draw.text((0, 48), t, font=font3, fill=255) def main(): oled = ssd1306(port=1, address=0x3C) stats(oled) if __name__ == "__main__": main() read more

Added Solid State Disk to the web server

Today I bought a Solid State Disk (SSD) ADATA 120GB for $45 and added it to the server in hope the performance will improve.

Root file system is still on the original SD card, I just moved /var directory and the swap file onto the new disk. Mind you that MySQL server, Apache web server, log files etc. are in /var directory.

First I created partition table and partitions with cfdisk. Next I formatted the partition with EXT4 file system, mounted the partition, added an entry in fstab.

Next I switched Linux to single user mode – server was connected to HDMI cable to the TV and USB keyboard (this can’t be done via ssh). Then I moved var folder onto the new partition and created symlink to the original place var should be. Rebooted and everything was back to normal. read more

How I Met Linux

It was 1998, I was working in a large corporation using Novell Netware, mostly DOS, Windows 3.11 for Workgroups, some Windows 95. A co-worker brought in his laptop with nice desktop – turned out was RedHat Linux 5. He showed me our file server mounted nicely as part of the laptop’s file system, transferring files back and forth in couple of terminal windows, was reading a PDF document in another window and desktop was very responsive even while formatting a floppy disk (at that time Windows was unusable during formatting even till Windows XP era). He was checking his email, browsing internet, FTP files from his home computer. He telnet to our Solaris server. read more

50 Things I Can Do With Linux, But Cannot in Windows

I read about lots of complains/ rants that Linux is not good or is not ready for desktop usage. For me it does the job and even beyond. At my work place I work under Windows, at home I am using Linux. On a daily base I see the differences and similarities. Here is my take on this.

1. Install Linux and start using it immediately.

Why: Because almost all “drivers” are in the kernel.

Why not in W.: You always need 3rd party drivers installed to use your PC: chipset, video card, touch-pad, audio controller, CD/DVD drive, Wifi adapter, Ethernet controller. Many times you finish installation and unable to access internet because of missing LAN adapter driver which needs to be downloaded in first place. read more

The heart of the site

I have installed this site on a teeny-tiny computer A20-OLinuXino-LIME (credit card size like Raspberry Pi).

It is open source hardware, based on A20 ARM dual core Cortex-A7 processor at 1GHz with 512MB RAM. It is running 32bit Debian Linux 7.9 directly from micro SD card class 10.

Currently it runs: Apache web server, MySQL and NFS server. WordPress instance is served without issues.

Here is some Runtime statistics which updates every 3 minutes

It is not a speed daemon, but power consumption is very low 2.2W and is quiet (no moving parts). read more