Board index FlightGear Support Tools FGCom

[SOLVED] fgcom running on PCLinuxOS 2010: permissions help

FGCom is a realtime voice communication system specially designed for FlightGear.

[SOLVED] fgcom running on PCLinuxOS 2010: permissions help

Postby bishb25 » Mon Aug 30, 2010 3:39 am

Hi all,

I have fgcom and fgcomgui installed and running on PCLOS 2010, however, I can only run them as the root user. If start fgcom via fgcomgui as a user I get:
Code: Select all
$ /usr/local/bin/fgcom -Sfgcom.flightgear.org.uk -i0.75 -o0.75 -p16661
/usr/local/bin/fgcom - a communication radio based on VoIP with IAX/Asterisk
(c)2007 by H. Wirtz <wirtz@dfn.de>
Version 1.2.2 build 249M (with FGComGui patch)
Using iaxclient library Version SVN 249

Successfully parsed commandline options.
Reading list of airports...done.
Initializing IAX client as guest:xxxxxxxxxxx@fgcom.flightgear.org.uk
WatchDogProc: cannot set watch dog priority!
WatchDogProc: killing hung audio thread!
AL lib: ALc.c:1879: exit(): closing 2 Devices
AL lib: ALc.c:1808: alcCloseDevice(): destroying 1 Context(s)
AL lib: ALc.c:1420: alcDestroyContext(): deleting 1 Source(s)
AL lib: ALc.c:1818: alcCloseDevice(): deleting 20 Buffer(s)

In order to get fgcomgui to compile I had to modify some paths in the in the SConstruct file to read:
Code: Select all
env.Append(
   MOC_BIN = "/usr/lib/qt4/bin/moc", # qt meta object compiler
   RCC_BIN = "/usr/lib/qt4/bin/rcc", # qt resource compiler
   CCFLAGS = [
      "-pipe",
      "-Wall"
   ],
   CPPPATH = [
      "/usr/lib/qt4/include",
      "/usr/lib/qt4/include/Qt",
      "/usr/lib/qt4/include/QtCore",
      "/usr/lib/qt4/include/QtGui"
   ],
   LIBPATH = [
      "/usr/lib"

I left the installation paths as default so the executables are located at /usr/local/bin/, whereas, PCLOS is setup so most executables are installed in /usr/bin/ when I install a program via synaptic.

So, how do I make fgcom and fgcomgui work for all users without being root? (sudo for all you debian users)

my system:
PCLinuxOS 2010
Kernel 2.6.32.11-pclos2.bfs
Xorg 1.6.5
Intel(R) Pentium(R) 4 CPU 3.00GHz
Radeon HD4650 PCIe
Last edited by bishb25 on Sun Dec 12, 2010 10:52 pm, edited 1 time in total.
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: fgcom running on PCLinuxOS 2010: need permissions help

Postby bishb25 » Tue Aug 31, 2010 10:54 pm

Changing permissions isn't working... of all the information out there that I've found for installing fgcom and fgcomgui to get them working I can't find one scrap of info for how to uninstall them.

I think what I want to do is uninstall fgcom and fgcomgui and reinstall them using a different installation path.

So, is there a clean way to uninstall fgcom/fgcomgui or do I have to manually delete all related files?

Can I just move the files to the folders I want them in or will that bork fgcom/fgcomgui?
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: fgcom running on PCLinuxOS 2010: need permissions help

Postby Jester » Tue Aug 31, 2010 11:26 pm

Isolate the problem by checking if fgcom by itself runs properly.
Jester
 
Posts: 1191
Joined: Wed Feb 28, 2007 4:53 pm
Location: Hungary
Callsign: BA996,Rescue1
IRC name: Jester01
Version: GIT
OS: Debian Linux

Re: fgcom running on PCLinuxOS 2010: need permissions help

Postby bishb25 » Tue Aug 31, 2010 11:46 pm

fgcom works but only if i run it as root user
Callsign: cncman
"The only thing smart about me... I know where to find the answers." I think?
bishb25
 
Posts: 136
Joined: Wed Sep 09, 2009 5:11 pm
Location: 10mi southwest of KLBE
Callsign: cncman
Version: GIT
OS: Linux

Re: fgcom running on PCLinuxOS 2010: need permissions help

Postby MBantz » Tue Nov 30, 2010 2:29 am

The reason is that an ordinary user only can change audio thread priorities from 0-40 (taken from memory) in PCLinuxOS case and fgcom need to have priorities from 0 to around 60 to work,

just alter your /etc/security/limits.conf audio rtprio to 60 and reboot then you won't get this message and the program keep running.

I have just built fgcom and fgcomgui as RPM's for PCLinuxOS, these can soon be easily installed with Synaptic in PCLinuxOS along with the other fg programs,

cheers,
MBantz
MBantz
 
Posts: 5
Joined: Tue Jun 01, 2010 12:43 am


Return to FGCom

Who is online

Users browsing this forum: No registered users and 3 guests