DevHeads.net

Postings by Toralf Lund

Run as root w/o terminal/gksu-polkit uses 100 % CPU

Hi,

On CentOS 7, what's the best way to start a GUI program as root without
a terminal? I mean, from a launcher or similar where you can't provide
terminal input to "sudo". I'm talking about applications that aren't
configured to switch to root out-of-the box, of course.

I just tried gksu-polkit from EPEL, and it kind of did the job but:

1. It consumed *a lot* of resources - CPU usage was reported at a
constant 100 %, more or less.
2.

Switch off laptop screen when docked with lid close - CentOS 7

Hi,

I'm using CentOS on a laptop that part of the time is connected to a
docking station with two monitor connected to it. When the laptop lid is
docked, its lid is closed, as the system is placed in a position where
it's not convenient to keep it open, let alone look at the screen.

Now in the past, with CentOS 5 (on a different laptop, but same physical
config) and 6, the screen has automatically been switched off in this
configuration - it's been as if it was no longer there after I docked
the machine, which is of course exactly what I want.

Intel Bluetooth problems - "Invalid request code (56)" - on CentOS 6.9

Hi,

I have Lenovo laptop with an Intel wireless and Bluetooth adapter,
running CentOS 6.9. The wireless works just fine, but I can't seem to
get Bluetooth to work. When I try to force it up from the command line I get

# hciconfig hci0 up
Can't init device hci0: Invalid request code (56)

There is also a similar message message in /var/log/messages from
start-up on boot.

Location of grub.conf etc. with UEFI boot (CentOS 6)

Hi,

What's the proper/normal way of setting up GRUB for a CentOS 6
installation that boots using UEFI? I've recently set up such a system,
but for technical reasons I mentioned in an earlier post, I booted in
"legacy" mode during installation, which meant I didn't get the correct
UEFI boot configuration, and had to set it up subsequently "by hand".
I've managed to get the system to start up, but I had to place grub.conf
under "/EFI/redhat/" on the EFI partition; without it, the system only
boots into the grub shell.

Small GRUB screen (menu/splash image)

Hi,

After moving my CentOS 6 installation over to a new PC, the GRUB
start-up screen looks a bit strange. On the old machine, the menu area
and splash image would cover the entire screen, but now they occupy only
a small rectangle in its centre. I think what happens is that the max
resolution of the graphics card/monitor combo is enabled even at this
early stage, but GRUB assumes a 640x480 display.

Is there any way I can change the resolution so that the GRUB screen
covers the entire display?

Lock-up during boot when Logitech unifying receiver is connected (UEFI problem?)

Hi,

I've got a bit of an issue after I switched to a new laptop for my
CentOS 6.9 installation: I'm using a Logitech cordless keyboard and
mouse that communicate with the system via a so-called "unifying
receiver". If this unit (a small USB thingummy) is connected when I try
to boot the system, it locks up completely. This happens before the GRUB
screen is displayed. The set-up otherwise works just fine, i.e.

Problem with attachments in thunderbird-45.5.1

Hi,

Has anyone else had problems opening attachments in Mozilla Thunderbird
under CentOS 6 lately? I find that when I open the application and
select a message with attachments and double-click on one of them,
everything works as expected. But, if I try to open another (and another
etc.), the helper application isn't started. In other words, I can only
view one attachment per session - if I want more, I have to restart
Thunderbird.

CentOS 7/GNOME 3 customise top panel

Hi,

Is there any way to customise the top panel in CentOS 7 with GNOME 3
(which I recently tried for the first time)? Specifically, I want to add
"application launchers", as it will make start-up faster than the
standard alternatives.

NetworkManger wireless issues - "Failed to load root certificates"/"unable to get local issuer certificate"

Hi,

I'm trying to connect my CentOS 6.8 laptop to the wireless net at work,
which is secured with WPA2 and AES. I've done this successfully in the
past using NetworkManager, but a new safety feature was recently
introduced: A CA certificate is required. After this, I've not been able
to connect. I have a DER format file, whose path I've entered in

CA certificate:

in the NetworkManager security page, but apparently, this isn't enough;
NetworkManager will try for a while, then pop up the security/login
dialog again.

"Windows" share issue; access via smb:// fails, "mount -t cifs" works

Hi,

Is anyone here using smb:// URLs to access "Windows" shares? I've been
doing this for a while with common file systems at work, and it used to
work just fine. Then I while back, I started getting issues; I will now
just keep getting asked for a password when I try to access something
through smb://.

Help viewer issues

Hi.

Does anyone else have issues with the GNOME help viewer on CentOS 6? I think it mostly worked a while back, but after some recent update or the other, I have problems like:

1. Nothing happens when I click "Desktop User Guide" or "GNOME Desktop Accessibility Guide" or "GNOME Desktop System Administration Guide" on the "Help Topics" page.
2. If I select "section" links in the column on the left-hand side (under "Desktop"), I do get new section headings, but when I select any of these, again, nothing happens.
3.

Mounting NFS file systems via Nautilus on CentOS 6

Hi,

I'm trying to set up my "work" laptop, which has CentOS 6.6, for easy
NFS access to a "NAS" disk at home. I can't set for a normal "permanent"
mount, since most of the time, the filesystem will not be available. I
know several different ways to mount temporarily from the command line,
but I was hoping I could set up the system so I could mount by clicking
in the file browser (Nautilus.) I can't seem to find a way to do this,
though. I've tried two different approaches:

1.

Logitech unifying receiver (pairing)

Hi,

Is anyone here using a Logitech wireless mouse our keyboard or whatever
using a "unifying receiver". Any luck with pairing new devices with the
unit?

I've tried various different programs from the net that's supposed to be
able to do this, but they all fail in one way or the other.

Java plugin (icedtea-web) does not load

Hi,

After some recent upgrade or the other, the browser plugin for java no longer works in my CentOS 6 x86_64 setup - using Firefox. Applets won't load, and no java plugin is mentioned in "about:plugins". The "openjdk" Java packages as well as icetea-web are installed, though, and everything worked just fine a few weeks ago.

Has anyone else seen this? Any idea what may be wrong and/or how to diagnose the problem?

Down-grading to an "obsoleted" package

Hi,

Does anyone know if there is a clean way to "downgrade" to the old rpm
package when it was previously replaced by another that obsolete it?

I mean, say that I have installed some rpm "A-1.0-1.x86_64.rpm", and
along comes "B-1.0-1.x86_64.rpm", whose spec has

Obsoletes: A

Now, if I do "rpm -U B-1.0-1.x86_64.rpm" or "yum install
B-1.0-1.x86_64.rpm" or (if B is available through an enabled repository)
"yum update", what happens is that "A" gets removed and "B" is installed
in its place. Then I decide I want to switch back to "A". So what do I
do?

Disk space warning ("gdu-notification-daemon" type) for remote systems

//Hi,/

/I need to implement a system of disk space checks and warnings for a
client-server setup running CentOS 6. Simply put, I just want a warning
popup rather like the ones given by gdu-notification-daemon when server
file system is full or nearly full, but they should appear on the client
display(s) rather than locally, and must also work when nobody is logged
directly in to the (server) system.

What do you reckon is the best way of achieving this? I can think of
ways to get what I want via scripts/custom programs/cron jobs, but
perhaps there are "standard" solutions already?

CentOS 6.5 VirtualBox

Hi

Is anyone here using VirtualBox? I've had it working rather well for
some time, but after some recent upgrade or the other it's started
exiting with a Segmentation fault just after startup, before windows are
opened or anything. I've tried a few different versions, all with the
same result. I'm using binary packages
<a href="http://download.virtualbox.org/virtualbox/rpm/el" title="http://download.virtualbox.org/virtualbox/rpm/el">http://download.virtualbox.org/virtualbox/rpm/el</a>.

So, have any of you lot seen this?

Filesystem missing from computer:///

Hi

Does anyone know what exactly controls which filesystems are listed when
opening Computer (URL computer:///) in the File Browser?

I have a system disk with 4 different data partitions, but only 3 of
them show up in the list. The "missing" one can, however, be mounted
just fine from the command line, and it's also included in
/dev/disk/by-label. It has an NTFS file system, but so do two of three
that do get listed.

Setting up paths etc. for Qt 4 development

Hi,

I was just wondering, is there a "correct" or "preferred" way of setting
up the path and other environment variables for Qt 4 development/build
using qmake and all - on a CentOS 6 system?

I mean, this does not work out-of-the box, at least if you have build
files that assume "qmake" may be executed just like that - as there is
no Qt 4 qmake on the path, although "qmake-qt4" is available. Also, if
qt3-devel is installed, and the default path setup is used, "qmake" will
point to the Qt 3 version, as the package includes a profile.d file that
modify the path in such a way.

Issue tracker question: Can I delete/replace an attachment?

Hi.

I recently uploaded a file to a certain issue in the CentOS issue
tracker. I then found it wasn't quite correct, so I edited it, then
tried "Upload file" again, with the same filename, but got a message saying:

APPLICATION ERROR #9

This is a duplicate file. Please delete the file first.

Please use the "Back" button in your web browser to return to the
previous page. There you can correct whatever problems were identified
in this error or select another action.

CentOS source rpm repository setup

Hi.

I thought I might set up my CentOS 6 system with a source rpm repository
config, so that I'll be able to download srpm files via "yumdownloader
--source" or similar.

Weird mouse behaviour (after upgrade to CentOS 6.4?)

Hi.

For a few days now I've had some pretty annoying mouse-related problems
on my CentOS setup. I'm not sure if I get "false" mouse events or what
it is, but quite frequently I find that the system has somehow got into
a state where mouse clicks are not properly received - although I can
move the pointer all right, and they keyboard also works just fine.

Eclipse (again)...

Hi

Just thought I might ask my recent question about Eclipse again, only in
a slightly different way:

Is anyone here using the Eclipse version supplied with the CentOS 6
distro (as opposed to a build downloaded from <a href="http://www.eclipse.org" title="www.eclipse.org">www.eclipse.org</a>)? Does it
work for you? Are you able to install additional components via the
built-in software setup mechanism?

Thanks,

- Toralf

This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only.

Eclipse CDT not working properly

Hello again,

Another problem with my new CentOS 6 installation:
The C/C++ support in Eclipse seems to be partial or missing - even
though eclipse-cdt is installed. Eclipse starts all right, and I get a
C/C++ perspective, but:

1. If I open a C++ file, it's sent to an external editor.
2. C or C++ is not mentioned in Preferences.
3. I can't find a reference to CDT under Help->About Eclipse
Platform->Installation Details

I've tried reinstalling all the eclipse packages, and also resetting the
workspace as well as the settings in ~/.eclipse, but it made no
difference.

"Can't install ... as no transaction" from PackageKit (CentOS 6)

Hello again,

Does anyone have any idea what the following message in the package
installer - gpk-install-local-file - is supposed to mean?

Can't install /tmp/mail-notification-4.0-3.el5.x86_64.rpm as no transaction

(Under "More details" in the "Local install failed" popup.)

This is something I got while trying to set up a "mail notification"
icon - refer to my other recent post. I happen to know what (part of)
the problem is - the package has dependencies that can't be resolved,
but why doesn't the message just say so? And what's the meaning of a
"transaction" anyway?

Mail notification in panel/system tray on CentOS 6

Hi.

Does anyone know of a way to add a "new mail" notification icon to the
panel/system tray under CentOS 6?
On CentOS 5, I used the "mail-notification" software package provided by
the Fedora "EPEL" distribution, but this is gone from the version 6
repository, and the one from version 5 won't install just like that due
to dependency issues.

Mail notification in panel/system tray on CentOS 6

Hi.

Does anyone know of a way to add a "new mail" notification icon to the
panel/system tray under CentOS 6?
On CentOS 5, I used the "mail-notification" software package provided by
the Fedora "EPEL" distribution, but this is gone from the version 6
repository, and the one from version 5 won't install just like that due
to dependency issues.

How to configure display on CentOS 6?

How exactly are you supposed to configure the display (i.e. set up X11)
on a CentOS 6 system? I mean, in the past, there was
system-config-display, but that's not supported any more. There is
gnome-display-properties/System->Preferences->Display, but that seems to
rely completely on auto-detection of the graphics card and monitors.
What if this fails? Surely there should be a way to specify everything
by hand?

Help, anyone?

- Toralf

This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged.

Accessing packages on DVD from rescue mode?

Hi,

Does anyone know a way to access rpm packages on the CentOS 6 install
DVD after booting into "rescue mode" from the same DVD? I mean, I can't
immediately see the Packages directory or a full DVD mount point...

TIA,

- Toralf

This e-mail, including any attachments and response string, may contain proprietary information which is confidential and may be legally privileged. It is for the intended recipient only.

One screen disabled on login with NVIDIA TwinView

Hi

Is anyone here using NVIDIA display drivers and a TwinView configuration
on their systems? I've got a bit of an issue with such a setup, which
started occurring after a recent driver update: I have a laptop that's
normally connected to an external monitor (a Samsung SyncMaster), where
this monitor and the built-in display on the laptop are set up with a
TwinView configuration.