LinuxQuestions.org latest posts

Syndicate content LinuxQuestions.org
LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.
Updated: 17 min 40 sec ago

disable wheel click for any X11 Window managers?

10 hours 16 min ago
Hi,

I tried to follow some internet instructions on how to disable the wheel click (that paste the clipboard contents) but I still can't make it work.

I tried to add a button mapping to X11 conf file:

Option "ButtonMapping" "1 1 3 4 5"

I also tried by creating a hal policy:

Code: <?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.mouse">
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
        <merge key="input.x11_options.ButtonMapping" type="string">1 2 3 4 5 0 0 0 0 0 0 0</merge>
      </match>
    </match>
  </device>
</deviceinfo> But nothing seems to disable the wheel click.

I am using Xfce 4.6.1 with Slackware 13.0. My Mouse is a Microsoft
IntelliMouse USB PS/2 compatible

Thanks in advance.
QLands


sending RSA public/private keys into calling function

10 hours 22 min ago
Hi,

I am newbie to openssl...

My calling application will accept only strings and interger.

we are replacing RSA bsafe library to openssl. using RSA bsafe, we have generated the private and public key in BER format. Then convert the keys, BER format into ASCII format to send the calling function. (these everything done by using RSA supplied bsafe library)

same way i have to right using openssl..i m now able convert the RSA public and private key into DER format

rsa = RSA_generate_key(1024, 3, NULL, NULL);
{
size_t size;
unsigned char *iend, *keybuf;
int i;
size = i2d_RSAPublicKey(rsa, NULL);
printf("size %d\n",size);
keybuf = (unsigned char *) malloc(size * sizeof( unsigned
char));
iend = keybuf;
size = i2d_RSAPublicKey(rsa, &iend);
/* size returns the size of public key in bytes */
printf("\n");
printf("key :");
for(i=0;i<size;++i) {
printf("\n%02X", keybuf[i]);

1. is it possible to convert this DER format into ASCII?

2. I am able to print the keybuf value into stdout in the as mentioned below

size 138
key : 30818702818100BAEF6AB1AD2503FFDC900B612BA2BCED9AF74E337A43B21D1FF69A30651AD7A492C1E199CB40A9DF693

is it possible to convert the key into DER format again?

=========================================
if i use %c instead %X it is printing some junk..is it right?

for(i=0;i<size;++i) {
printf("\n%c", keybuf[i]);

oÓÍÈu^ÅYÌ9eP¿>±§ëùüÓ@3nJâp%}ùK8sY*ÿ àï ÚOåû\

Thanks in advance,
kris


Editing XMP metadata in AVI files

10 hours 23 min ago
Hey,

Is there a tool to edit XMP metadata in AVI files for Linux? I found that this XMP metadata editor can do it, but it's a Win only tool.

Thanks


gcc configure error

10 hours 36 min ago
Hi,

I tried to install gcc 4.3.2 on slackware 10.2 but I keep getting the GMP and MPFR building error.

I install both, used both --with-gmp=/pathname --with-mpfr=/pathname but keep getting the same error.

I can solve one, mpfr by doing this:
Code: --with-mpfr=/pathname/mpfr.h But than gmp stops working in the configure and specifying the path to gmp.h doesn't help.

How can I solve this?


Thanks.


Missing dependency error with yum

10 hours 36 min ago
Hi all, I am new to Red Hat. I have problem with yum missing dependency error when I tried to update or install rpm. Below are short sample of it:

Error: Missing Dependency: rpm = 4.4.2.3-18.el5 is needed by package rpm-devel-4.4.2.3-18.el5.i386 (installed)
Error: Missing Dependency: gnome-vfs2 = 2.16.2-6.el5 is needed by package gnome-vfs2-devel-2.16.2-6.el5.i386 (installed)
Error: Missing Dependency: libtiff = 3.8.2-7.el5_3.4 is needed by package libtiff-devel-3.8.2-7.el5_3.4.x86_64 (installed)

I tried to find the solution in internets and forums,such as yum clear all, but nothing works.

Here are the results of my repolist:

# yum repolist
Loaded plugins: rhnplugin, security
repo id repo name status
adobe-linux-i386 Adobe Systems Incorporated enabled: 18
rhel-x86_64-client-5 Red Hat Enterprise Linux Desktop (v. 5 for 6 enabled: 7,430
repolist: 7,448

Please help me with this problem, I thank you in advance first:)


Free Multiplayer Games for older computer

10 hours 39 min ago
Playing over internet is fun. There seem to be many games that support online play.

Please posts only games that:
-work on machines with 1 gb ram smothly.
-install trough ubuntu software center is plus.
-have online play option where you can acutally meet players (they come to play) -populated games
or
-anonymious(no sign up) browser games count too! (with link)

My recomendations:
Hedgewars
Battle of weshnot
Blobby volley 2
Frozen bubble


After moving mysql db to NFS[netapp] unable to start mysql server throws error

10 hours 42 min ago
Hi All,
Need help with mysql db data store movement. After moving the mysql db data store to NFS drive[netapp] i am unable to start mysql server. It throws the below error

Code: service mysqld start
touch: cannot touch `/usr/mysql/log/mysqld.log': Permission denied
chmod: changing permissions of `/usr/mysql/log/mysqld.log': Operation not permitted
chown: changing ownership of `/usr/mysql': Operation not permitted
chmod: changing permissions of `/usr/mysql': Operation not permitted
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL:                                            [FAILED] Any ideas ???


Introduction

10 hours 51 min ago
Hello all ...


html tables issue

11 hours 4 min ago
Dear friends,
I am not vary familiar to html, but managed to wrote one, which
behaves as expected in firefox.
please have a look at
http://bose.res.in/~rudra/aboutme.html
But when I tried to view the same in any other browser(IE,chrome or
safari) the left hand columns are looking a mess.
there is no fancy thing like java or css...plain html-transitional
developed with quanta
where is the problem?
i donot think posting the code is helpful as the tables contains
picture, still i am posting a short one. Code: <!DOCTYPE HTML PUBLIC "-//W3C//
 DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/
 loose.dtd">
 <html>
 
<head>
  <title>Talks given</title>
 
  <meta name="GENERATOR" content="Quanta Plus">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 </head>
 <body bgcolor="#4674a0">
 <table>
  <tbody>
    <tr>
      <td width="20%" valign="top"><br><br><br><br><br>
 <A href="work.html"><IMG src="images/img_work.png" width="30%"
 height="30%" align="left" border="0"></A><IMG src="images/here.png"
 width="10%" height="10%" align="left" border="0"><br><br>
 </td>
 <td width="60%" valign="top" bgcolor="#4674a0">
 <table width="100%" bgcolor="#e6f0f8"><tbody>
 <DIV align="center"><IMG src="images/mf_up.png" width="100%"> </DIV>
 <tr>
 
<td>
 
<ol>
 <li><strong>Parallel Computation on Shared Memory System</strong></
 li><dd>This was an informal talk given to the beginners of our group
 as a basic exposure to parallel computation, how it works, and the
 structure of parallel programming w.r.t. that of serial one. It
 includes parallalizing codes in shared memory  system (mainly
 OpenMP).</dd>
 <li><STRONG>ASR code and application in different binary alloys</
 STRONG></li><dd>Talk given to Young  Physicists Colloquium 2009
 (YPC-2009) on the development of the ASR code and its application to
 binary disorder alloy.</dd>
 
</ol>
 </td>
 
</tbody>
 </table>
 <DIV align="center"><IMG src="images/mp-bt.png" width="100%"
 border="0"></DIV>
 
</td>
 
    <td  width="25%" valign="top"><br><br><br>
 <table width="100%">
  <tbody valign="top">
    <tr valign="top"><td valign="top"><A href="http://www.bose.res.in/
 ~abhijit" name="amooks home" target="_blank"><IMG src="images/
 img_amook.png" width="100%" height="100%" align="left" border="0"></
 A></td>
    </tr>
    <tr valign="top"><td><A href="publication.html" name="my
 publications"><IMG src="images/img_publication.png" width="80%"
 height="80%" align="left" border="0"></A></td>
    </tr>
    <tr valign="top"><TD><a  href="#" name="Talks given"><IMG
 src="images/img_talk.png" width="60%" height="60%" align="left"
 border="0" alt="talk"></a><IMG src="images/here.png" width="10%"
 height="10%" align="left" border="0"></TD></tr>
  </tbody>
 </table>
 </td>
    </tr>
  </tbody>
 </table>
 </body>
 </html> looking for your help.


Basic PHP Mail function help

11 hours 9 min ago
Hi guys my php code is this

PHP Code: <?php
if (isset($_REQUEST['email']) && $_REQUEST['email'] != '') {
    $to = "my@email.com";
    $subject = "Contact Form Enquiry";
    $message = $_REQUEST["message"];
    $from = $_REQUEST["email"];
    mail($to,$subject,$message,$from);
    header('Location:/thanks.php');}
else{
header('Location:/error.php');
exit();
}
?> And my html is this...

Code:         <form id="form" action="contactscript.php" method="post">
              <fieldset id="field">
                  <legend id="leg">Contact Form</legend>

                  <span class="formtext"><label for="fname">First Name:</label></span>        <input class="input" id="first" name="first" type="text" size="30" /><br /><br />
                  <span class="formtext"><label for="sname">Surname:</label></span>                <input class="input" id="surname" name="surname" type="text" size="30" /><br /><br />
                  <span class="formtext"><label for="email">Email:</label></span>                <input class="input" id="email" name="email" type="text" size="30" /><br /><br />
                  <span class="formtext"><label for="contac">Contact Number:</label></span>                <input class="input" id="contact" name="contact" type="text" size="30" /><br /><br />
                  <span class="formtext"><label for="message">Message:</label></span>        <textarea id="textarea" name="message" class="input" rows="10" cols="30" >Please Type Your Message Here</textarea><br /><br />
                                                                                                  <input id="submit" class="input" type="submit" value="Send!"  />
                                                                                                                                 
              </fieldset>
            </form> Now if my site is hosted locale (127.0.0.1) the script runs (apart from sending the email) and redirects to the correct pages stated in the header() function. However if I host the site on the internet when I click on the submit button instead of executing the script it pops open with a dialogue box to state whether I wasn't to download/open the script like when you click on a file to download...

Anyone know why this is happening??

Any help is majorly appreciated! :D


Can't install software on 10.04

11 hours 10 min ago
This was working at one time, I used unetbootin that downloaded Ubuntu 10.04 LTS. To my netbook 1005hba with a the boot flash drive with unetbootin on it and the 10.04 LTS ISO.
Everything was working fine now it won't install any software the following error is what I get:


InstallArchives() failed: dpkg: failed to open package info file `/var/lib/dpkg/available' for reading: No such file or directory


The above error is what I get, either in Ubuntu software center or synaptic package manager. And even update manager gets this error also.

So there is no way to update my Ubuntu.

Is there a way to correct this or do I have to do another fresh install?


read only file system

11 hours 12 min ago
The search doesn't seem to take strings very well.

I have logged in to a remote system via SSH. There I want to use wget to get and install software. This worked in the past flawlessly, but:
Code: wed@headroom:~$ wget http://ww1.microchip.com/downloads/en/DeviceDoc/pk2cmdv1.20LinuxMacSource.tar.gz
--2010-09-09 13:03:59--  http://ww1.microchip.com/downloads/en/DeviceDoc/pk2cmdv1.20LinuxMacSource.tar.gz
Resolving ww1.microchip.com (ww1.microchip.com)... 92.123.155.66, 92.123.155.80
Connecting to ww1.microchip.com (ww1.microchip.com)|92.123.155.66|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 223175 (218K) [application/x-gzip]
pk2cmdv1.20LinuxMacSource.tar.gz: Read-only file system

Cannot write to "pk2cmdv1.20LinuxMacSource.tar.gz" (Read-only file system).
wed@headroom:~$ I tried:
ssh root@192.168.xx and then "su wed" as well as "- wed"
ssh wed@xxx

Since ls -l shows /home/wed to be "drwx--x--x 28 wed users 4096 Sep 8 11:07 wed", I can only guess that I'm not really being me being logged in in this way. But I am puzzled as to why this has worked before.

I am working from a Debian Lenny system, through two Smoothwall gateways to a Debian server and SSH from there to a Slack 13.1 client.

Help is much appreciated.


Slackware Upgrade ?

11 hours 14 min ago
Hi to all!
From recently i am using slackware and i want to upgrade from 13 to 13.1 without reinstalling the whole system,so i am wondering is it possible to do that from within the OS itself and if it is ,can someone please tell me few advices of how to?
Thanks in advance
:)


where to get compat-libstdc++-33 and libstdc++.so.5 files for Symantec Backup Agent ?

11 hours 15 min ago
Hi All,

I've just install RALUS (linux backup agent) from BE 2010 R2 by manually uploading it to the server and then extracting it followed by executing the install script.
after the install i deleted the extracted directory, when i go to my Media Server i cannot browse for this server eventhough i already put the IP address of this server.

here's my diagnostic regarding this error:
Code: [root@bentley /]# vi /var/VRTSralus/beremote.service.log
/opt/VRTSralus/bin/beremote: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory where can i download that file so that i can SCP to the proper directory in my Fedora COre 5 x86 Linux server ?

Thanks

Thanks.


LXer: Eban Moglen: Doing What It Takes: Current Legal Issues in Defending FOSS

12 hours 20 min ago
Published at LXer:

Eben Moglen's LinuxCon keynote was met with a standing ovation. Watch this to hear what he says it will take to defend FOSS against patents and how to protect freedom.

Read More...


freeware sdk for ARM development such as mobile etc...

12 hours 44 min ago
i would like to use a sdk or compiler to run/execute a program on ARM type processors but to compile the programs in desktop PC.
the sdk or compiler should be a freeware.


Some software downloaded with Software Manager (Mint 9-Gnome) does not show in Menu

12 hours 44 min ago
While I was downloading software through the Software Manager of Linux Mint 9 - Gnome, I noticed that not all the programs received a shortcut to the Mint Menu. Does anyone know why this is and how I can correct it?


Can Linux logo be used for commercial purpose

13 hours 4 min ago
Hi all,
Can any one provide information about using Linux Logo,
Can Linux logo can be used by everyone for commercial purpose,
Can Linux logo be used as company logo


Thanks & Regards
sivakumar
Attached Images 280px-Tux-linux_logo.svg.png (43.6 KB)


Disable the Desktop Effect on Fedora 9

13 hours 13 min ago
I tried to enable Desktop Effect in my Gnome. I am running Fedora 9 on my Desktop. I did System > Preferences > Look and Feel > Desktop Effects. Once I enables this, I had a white screen which I could not do any thing with it. I did this when i was logged in as root.

Being newbie to Gnome, all I want is to know how to disable the desktop effects in my user account? That is which files I should edit/remove to get back my Desktop again.

Thanks,

Sachin


Localization - please help

13 hours 17 min ago
Hi,
I never before was interested to localize my computer - English was quite enough for me - but now it seems I have to set up my Slackware to work with my native language. First of all I want have both English and Polish on my computer. I don't really know how to localize Slackware. It was always a mystery for me. How it should be done on Slackware?