systemd - start, status, enable example

This is just a quick note to remind myself how to enable or disable services using Systemd. In this example, I’m using denyhosts service. Check if a service is running. # systemctl status denyhosts denyhosts.service - SSH log watcher Loaded: loaded (/usr/lib/systemd/system/denyhosts.service; disabled) Active: inactive (dead) Start a service and verify its running status: # systemctl start denyhosts # systemctl status denyhosts denyhosts.service - SSH log watcher Loaded: loaded (/usr/lib/systemd/system/denyhosts.service; disabled) Active: active (running) since Thu 2014-07-17 01:44:29 EDT; 1min 25s ago Process: 15722 ExecStart=/usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf (code=exited, status=0/SUCCESS) Process: 15719 ExecStartPre=/bin/rm -f /run/lock/subsys/denyhosts (code=exited, status=0/SUCCESS) Main PID: 19367 (denyhosts.py) CGroup: /system.slice/denyhosts.service └─19367 /usr/bin/python /usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf Jul 17 01:44:29 pidora.local systemd[1]: PID file /run/lock/subsys/denyhosts not readable (yet?) after start. Jul 17 01:44:29 pidora.local systemd[1]: Started SSH log watcher. Check if a denyhosts service is enabled or not: ...

July 17, 2014 · 1 min · 162 words · kenno

Managing LVM

LVM stands for Logical Volume Manager. It is a tool for logical volume management allowing us to allocate disks, strip, mirror and resize logical volumes. With LVM, we can manage partitions dynamically. Recently at work, we opted to use LVM to create logical partitions instead of physical partition on Linux desktop. This post is just a note to remind me of some common used commands. If you want to learn more about LVM, hit this link instead. ...

July 4, 2014 · 2 min · 394 words · kenno

Eclipse ADT Fatal Error on Linux

The Eclipse IDE that comes bundle with Android Development Tools (ADT) crashes when run on my laptop running Fedora. The error message which logged to console is: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000003cc2270061, pid=9653, tid=140330452297472 # # JRE version: Java(TM) SE Runtime Environment (7.0_55-b13) (build 1.7.0_55-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.55-b03 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libsoup-2.4.so.1+0x70061] soup_session_feature_detach+0x11 # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # Fortunately, there’s a way to fix this problem by opening ‘eclipse.ini’ file, in my case: ...

July 2, 2014 · 1 min · 143 words · kenno

Running Kompare from command line

Recently I started to use Kompare a lot to compare the differences between two files. The way I compare two files is to open both files from the menu (File -> Compare Files). This is annoying and how I wish there were a way to just run Kompare from the command line passing 2 files as options. Well, it looks like my wish has been granted. I found the information here on how to do just that: ...

June 11, 2014 · 1 min · 94 words · kenno

New P&E OpenSDA Firmware v115 for K20D50M

Having trouble uploading compiled code to K20D50M board? There’s a new firmware that (should) fix this. A few weeks ago, I’ve updated the OpenSDA firmware on my Freescale FRDM-K20D50M to v114 only to find out that it no longer let me uploading any compiled files to the board. At first I thought my board was faulty, but felt relieved to hear that Erich Styger, an mbed expert, confirming this v114 firwmare also affected his K20D50M. Erich contacted P&E, and they in turn confirmed the problem. ...

June 3, 2014 · 1 min · 162 words · kenno