2017-09-11

Android Oreo (8.0) USB debug hassles on Fedora Linux

After my phone received the Android Oreo update I was having trouble getting it to connect to adb. I was seeing errors like this:

$ adb devices
List of devices attached
025d15a338973018        no permissions (verify udev rules); see [http://developer.android.com/tools/device.html]


This recipe worked for me.

https://github.com/M0Rf30/android-udev-rules


Android Oreo, adb, Fedora, Linux

2016-04-29

Tip : Don't install p4v in /usr/bin on Fedora 22 and above.

I normally install p4v into /usr/bin and /usr/lib. This is a bad idea on a system such as Fedora 22 or 23 that use Qt5. 

The reason is that the p4v tarball contains a file qt.conf. If this file is placed in /usr/bin it overrides all of the default paths that Qt uses to find the various plugins. This causes some (or most) of the Qt based applications to crash.

On reboot it also prevents the KDE Plasma Workspace from starting preventing anyone from logging in via the graphical desktop. The startup of the graphical desktop fails with a message like below.

This application failed to start because it could not find or load the Qt platform plugin "xcb" in "".   

Warwick 

PS. p4v is the graphical client to the Perforce Helix source code management system.

2015-09-14

New NVIDIA graphics card (GeForce GTX 750 Ti) causes me lots of woes

My old NVIDIA graphics card died, so I replaced it with a new one, a GeForce GTX 750 Ti.  Sadly this caused me lots of problems. I couldn't find the right video driver for Fedora 22 until I found this post.

http://forums.fedoraforum.org/showpost.php?p=1692880&postcount=10

I want to say a very big thanks to the forum user leigh123linux


2013-11-10

KDE fails to start with "Could not start D-Bus. Can you call qdbus?"

I had been running Fedora 19 for quite a while with KDE as my desktop happily. Then one day after a yum update I could no longer start KDE. An error message appeared each time I tried to start KDE from login.

Could not start D-Bus. Can you call qdbus?

After some debugging it turns out that kde4-config --qt-binaries returns /usr/bin/bin as the location of the Qt binaries, which is a bogus directory. 

# kde4-config --qt-binaries

/usr/bin/bin

I have temporarily worked around the problem by creating a soft link from /usr/bin/bin to /usr/bin while I search for a proper solution.

2012-10-06

Installing skype on 64 bit linux

Skype needs a number of i686 RPMS to run on a 64 bit Fedora Linux machine. 

yum install glibc.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 qt.i686 qt-x11.i686

2012-04-12

VMWare Player 4.0.2 doesn't like the latest kernel that is available for Fedora 16. A bit of patching is required.

http://weltall.heliohost.org/wordpress/2012/01/26/vmware-workstation-8-0-2-player-4-0-2-fix-for-linux-kernel-3-2-and-3-3/

A big thanks to those that posted the solution.

2012-03-05

Making OpenVPN run as a service on Fedora 16

Make sure the config file is named something like myvpn.conf in
/etc/openvpn
# ln -s /lib/systemd/system/openvpn@.service /etc/systemd/system/multi-user.target.wants/openvpn@myvpn.service
Then start and stop the service manually this way:
# systemctl start openvpn@myvpn.service
# systemctl stop openvpn@myvpn.service
Or enable it to start at boot time:
# systemctl enable openvpn@myvpn.service
Thanks to those that took the time to post the solution here: http://forums.fedoraforum.org/showthread.php?t=272612

2012-02-26

Booting into single user mode

Every time I receive a new kernel I must install the NVIDIA drivers.
  1. Boot the new kernel into single user mode. Add "single" and "vga=normal" to the grub boot command
  2. Switch to run level 3 with telinit 3
  3. 3. Log in and run the NVIDIA installer

2011-11-20

Fedora 16

Once again after the installation of a new version of Fedora things have changed.

Grub has become grub2 and the administration of it is different. The first change I had to deal with is the setting of the default boot partition.

http://fedoraproject.org/wiki/Grub2

2011-06-19

Fedora 15

I have installed Fedora on my guinea pig machine. Things went pretty smoothly apart from two problems.

1. selinux was stopping openvpn from working. The simple solution is to disable selinux like I usually do.
2. Bluetooth is not enabled and started by default on F15. This seems to be a bug. The steps to enable it require interacting with the new systemctl utility.

systemctl status bluetooth.service
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service

2011-03-08

C++0x feature support in GCC 4.5

Here is a description of some nice new features available in C++0x supported by GCC 4.5.

http://www.ibm.com/developerworks/aix/library/au-gcc/index.html?cmp=dw&cpb=dwaix&ct=dwnew&cr=dwnen&ccy=zz&csr=030311

Here are some highlights.

Static assertions:

static_assert(sizeof(int) == 4, "Integer sizes expected to be 4");

New character types

char16_t guaranteed to be able to hold a UTF-16 character
char32_t guaranteed to be able to hold a UTF-32 character

Auto syntax type

auto *num1 = new int(7); // type for num1 it int*
const auto num2 = 3.1415; // type for num2 is double


Initializer lists

// in a variable definition
std::vector doubles = {2.3, 4.511, 1.23, 0.99};

// Initializer list used with new
std::list *d2 = new std::list {1.2, 1.3};

// Initialize a map
std::map = { {“key1”, 1}, {“key2”, 2} };

2011-02-07

Flash on 64 bit Fedora 14

Download: http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_2_p3_64bit_linux_111710.tar.gz

# tar xzf flashplayer10_2_p3_64bit_linux_111710.tar.gz
# cp libflashplayer.so ~/.mozilla/plugins

Thanks to the Fedora forums:
http://forums.fedoraforum.org/archive/index.php/t-256318.html

If tail -f file gives "too many open files"

If tail -f file gives "too many open files" then add this to your /etc/sysctl.conf
fs.inotify.max_user_watches=16384

Or interactively:
# sysctl -w fs.inotify.max_user_watches=16384

2010-06-10

Setup grub as the boot loader in your MBR

# Boot from CD and choose linux rescue which will mount the system.
# Write to the MBR. Assuming grub.conf is intact, continue with the process. Type "grub" (return) to enter the grub shell.

Tell grub where to find the requisite files. If you know where they are, enter something like:

root (hd0,1)

(hd0,1) means primary controller master, second partition. If you DON'T know where they are, type:

find /boot/grub/stage1

setup (hd0)

This command will install grub on the MBR of the first drive.

# Type quit and reboot. Everything should proceed normally.

In our case, the details were all identical except that we used (hd0,0) in place of (hd0,1) because our /boot was on the first partition of the first drive.

How to put real java on your Linux machine

Fedora Systems

This set of commands will get rid of the stupid gcj java that is packaged with Fedora and other Linux distros and replace it with the real java from Oracle.

alternatives --config java
alternatives --remove java /usr/lib/jvm/jre-1.4.2-gcj/bin/java
alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1
alternatives --config javac
alternatives --remove javac /usr/lib/jvm/java-1.4.2-gcj/bin/javac
alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 1

Ubuntu

update-java-alternatives -l
update-java-alternatives -s java-6-sun

2010-06-03

Building an RPM on Fedora 12 for an older system

If you are building an RPM on a Fedora 12 system (or later) and you want that RPM to be installed on a system with an older version of rpm, such as an older Fedora or Centos, define these values in your ~/.rpmmacros.

%_binary_filedigest_algorithm 1
%_source_filedigest_algorithm 1
%_binary_payload w9.gzdio

This sets the hash algorithm and the payload compression used by RPM to be compatible with older versions of rpm. This avoids the following errors:

error: Failed dependencies:
rpmlib(FileDigests) <= 4.6.0-1 is needed by x
rpmlib(PayloadIsXz) <= 5.2-1 is needed by x

2010-04-22

Linux drivers for a Dell 1235CN printer - kudos to Samsung

I purchased a Dell 1235CN laser multi-function printer, which arrived today. Unfortunately Fedora 12 doesn't know about the printer, so this lead me to the inevitable search for the right drivers.

I found a post by someone who had the same problem. She/he had called Dell support who told her/him that Dell did not support Linux for that printer, but that the printer is actually a rebadged Samsung CLX-3175 printer.

I visited the Samsung web site and was really happy to see that Samsung to a great job of supporting their printers on Windows, Mac and Linux. I was able to download a Linux tarball that contained the necessary drivers wrapped up in an easy to use installer.

http://www.samsung.com/au/consumer/print-solutions/print-multifunctions-copiers/colour-multifunction/CLX-3175FN/XSA/index.idx?pagetype=prd_detail&tab=support

After installing the tarball my printer was working.

Thanks to the people at Samsung! Excellent work for your top class Linux support.

2010-04-04

VMWare MKS Console Plugin - problem and solution

While messing around with a beta service from Melbourne IT called vCloud Express, that is based on VMWare, I was frustrated that I could not get the VMWare MKS console plugin to work in Firefox on Fedora 12.

I tracked down a forum post that showed me how to run it from the command line:

~/.mozilla/firefox/.default/extensions/VMwareMKSPlugin\@vmware.com/plugins/viewer

This was very useful because I showed that I was missing a number of old shared libraries on which the VMWare console plugin relies: libexpat.so.0 and libstdc++.so.5.

It was then a simple matter of installing the two RPMS: compat-expat1 and compat-libstdc++-33.

2009-12-16

Problems with NetworkManager and DHCP

I have great troubles with NetworkManager not being able to acquire an IP address via DHCP on my home network. By accident I killed it and it restarted and immediately acquired the address. It seems that this might be some sort of startup ordering problem.

The simple solution for now is to kill and restart NetworkManager and all is well.