Tag Archives: fedora

GDM Doesn’t Start on Fedora 23 Beta and VirtualBox

I just finished upgrading Fedora 22 to Fedora 23 Beta and upon rebooting, gdm no longer started. I tried to reinstall the VirtualBox Guest Additions; unfortunately it still didn’t fix.

To cut the story short, someone has given a working tip at this forum. The solution is to downgrade xorg-x11-server-Xorg package.

# dnf --showduplicates --allowerasing --releasever=22 downgrade xorg-x11-server-Xorg
# mount /dev/cdrom /mnt; cd /mnt
# ./VBoxLinuxAdditions.run
# reboot

After rebooting, I was able to login again.

Credit: http://forums.fedoraforum.org/showthread.php?t=306857

Set Timezone in Fedora 20

While looking at the log file on my Raspberry Pi (running Fedora 20 Remix), I noticed that the date/time didn’t look right.

# date
Mon Jul 21 09:01:18 EDT 2014
# timedatectl 
      Local time: Mon 2014-07-21 08:56:16 EDT
  Universal time: Mon 2014-07-21 12:56:16 UTC
        Timezone: n/a (EDT, -0400)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  Sun 2014-03-09 01:59:59 EST
                  Sun 2014-03-09 03:00:00 EDT
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  Sun 2014-11-02 01:59:59 EDT
                  Sun 2014-11-02 01:00:00 EST

EDT is a North American Eastern Daylight Time, which is 4 hours behind UTC. You can read more about it here. In my case, I prefer the time zone set to AEST (Australian Eastern Standard Time), which is 10 hour ahead of UTC.

Here’s how it can be done.

# timedatectl set-timezone Australia/Sydney
# timedatectl status
      Local time: Mon 2014-07-21 23:06:22 EST
  Universal time: Mon 2014-07-21 13:06:22 UTC
        Timezone: Australia/Sydney (EST, +1000)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2014-04-06 02:59:59 EST
                  Sun 2014-04-06 02:00:00 EST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2014-10-05 01:59:59 EST
                  Sun 2014-10-05 03:00:00 EST
# date
Mon Jul 21 23:06:25 EST 2014

Tonight I learned a new command ‘timedatectl’, thanks to the link found in below credit.

Credit: Fedora 20 – Set Timezone:Server World

systemd – start,status,enable example

This is just a quick note to remind myself how to enable/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 if it’s running:

# 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 enable or not:

# systemctl is-enabled denyhosts
disabled

Let’s enable it so it’ll start automatically on boot:

# systemctl enable denyhosts    
ln -s '/usr/lib/systemd/system/denyhosts.service' '/etc/systemd/system/multi-user.target.wants/denyhosts.service'

Ref: https://wiki.archlinux.org/index.php/systemd

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.

ADT

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:

vim /opt/adt-bundle-linux-x86_64-20131030/eclipse

and added this line to the end of that file:

-Dorg.eclipse.swt.browser.DefaultType=mozilla

Credit: Android – Solución Fatal Error del IDE Eclipse (ADT)