I asked recently about using /etc/redhat-release and got some useful answers.
My thanks to all who replied.
Now a slight variant:
Can anyone suggest some resource that a PROGRAM (compiled C program) can
examine while running to find out what platform it is runninng on ?
Things that come to mind include:
1. output of uname to see if the kernel version contains "elX" where X
is a digit, such as el4, el5, etc., identifying RHEL-4, RHEL-5, etc.
2. do the same thing by exmining the filename of the kernel (if I knew
how to find the file for the currently running kernel, that is.
can anyone suggest any other checks I could do?
---- Fred Smith -- fredex(a)fcshome.stoneham.ma.us -----------------------------
The Lord detests the way of the wicked
but he loves those who pursue righteousness.
----------------------------- Proverbs 15:9 (niv) -----------------------------
Trying to burn a iso image in k3b and I get a error in Filesize and Volume,
Can some tell me what problem I have and how to fix it ?
I can see a difference of .1 mb.
Detected: iso9660 image
Filesize: 498.0 Mib (different than declared volume size)
Volume: 498.1 Mib
k3b(25465)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know ""
localhost kernel: sr 2:0:0:0: [sr0] Result: hostbyte=DID_OK
Jul 1 17:15:48 localhost kernel: sr 2:0:0:0: [sr0] Sense Key : Illegal
Jul 1 17:15:48 localhost kernel: Info fld=0x0
Jul 1 17:15:48 localhost kernel: sr 2:0:0:0: [sr0] Add. Sense: Logical
block address out of range
Jul 1 17:15:48 localhost kernel: sr 2:0:0:0: [sr0] CDB: Read(10): 28 00
00 00 00 00 00 00 01 00
Jul 1 17:15:48 localhost kernel: end_request: I/O error, dev sr0, sector 0
Jul 1 17:15:48 localhost kernel: quiet_error: 40 callbacks suppressed
Jul 1 17:15:48 localhost kernel: Buffer I/O error on device sr0,
logical block 0
> Is there a way to query nscd and ask it what's in it's cache?
have not used it, but quick lookup below may help ?
> nscd --help
> nscd -g | --statistics
> nscd -d | --debug
> ls -al /var/db/nscd/
Trobleshooting Name Service Information
Each name service provides tool for acquiring information stored
within it. The problem is that it displays only information pertinent
to a particular name service without understanding of the influence of
/etc/nsswitch.conf on the real behavior of the system. To solve this
problem Selecting the correct In Solaris the getent utility provides
a generic retrieval interface to search several name service databases
in the order in which they are specified in/etc/nsswitch.conf.
Usage of the getent utility instead of service specific utilities like
nslookup, dig, ypmatch, etc can reduce troubleshooting time when
isolating name service malfunctions.
[root@blandrum linux-2.6.34]# make gconfig
and I get the following:
* Unable to find the GTK+ installation. Please make sure that
* the GTK+ 2.0 development package is correctly installed...
* You need gtk+-2.0, glib-2.0 and libglade-2.0.
make: *** No rule to make target `scripts/kconfig/.tmp_gtkcheck', needed
by `scripts/kconfig/gconf.o'. Stop.
make: *** [gconfig] Error 2
Thanks in advance
On 07/01/2010 10:13 AM, Jurek Bajor wrote:
> in Fedora 13:
> right-click net icon in Panel
> select Edit Connections
> select your interface (repeat for all used):
> e.g. Wired
> select System eth0
> click Edit
> click IPv6 Settings tab
> select Method: Ignore
> click Apply
> give password for root
> click Close
>> Hi Jurek,
>> I am not running Network manager, so I do not
>> have a net icon on the panel.
>> I ran sudo /usr/bin/system-config-network
>> and I select the wifi ra0 device, click edit but I see no
>> IPv6 Settings tab
just Google for: fedora turn off ipv6
The first result will be:
Just follow the instructions in there (they are well written).
in Fedora 13:
right-click net icon in Panel
select Edit Connections
select your interface (repeat for all used):
select System eth0
click IPv6 Settings tab
select Method: Ignore
give password for root
On Thu, 2010-07-01 at 18:57 +0200, Jurek Bajor wrote:
> when executed by a non-root user, the yum entry crashes because it is unable
> to access a database.
> It should reject the entry for non-root user.
> [jb at localhost ~]$ yum history list all
> Loaded plugins: fastestmirror, langpacks, presto, priorities, protect-packages,
> : refresh-packagekit
>> Does it work for root? It works for me as both root and non-root.
>> Perhaps there really is a problem with the database (though it would
>> still be better if yum didn't crash).
It works for root.
when executed by a non-root user, the yum entry crashes because it is unable
to access a database.
It should reject the entry for non-root user.
[jb@localhost ~]$ yum history list all
Loaded plugins: fastestmirror, langpacks, presto, priorities, protect-packages,
Adding en_US to language list
ID | Login user | Date and time | Action(s) | Altered
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
File "/usr/share/yum-cli/yummain.py", line 254, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 109, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 356, in doCommands
File "/usr/share/yum-cli/yumcommands.py", line 1314, in doCommand
ret = base.historyListCmd(extcmds)
File "/usr/share/yum-cli/output.py", line 1297, in historyListCmd
for old in self.history.old(tids, limit=limit):
File "/usr/lib/python2.6/site-packages/yum/history.py", line 449, in old
cur = self._get_cursor()
File "/usr/lib/python2.6/site-packages/yum/history.py", line 220, in
self._conn = sqlite.connect(self._db_file)
sqlite3.OperationalError: unable to open database file