News aggregator

Touchpad pointer wiggles Ubuntu 10.04

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 03:29
Hello,

I am running Ubuntu 10.04 on a Compaq Presario X1012QV 1.3GHz with touchpad and scroll pad to the right of the touchpad. I am experiencing a wiggling pointer (moves a few pixel left/right) when I rest my finger on the touchpad and it's very annoying. I can not find a solution online. I am new to the linux world, I would appreciate any help !!!!

Best Regards,
Nick


Perl backquotes on Fedora-13 problem

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 03:27
Hi

When executing the following perl statements on Fedora-13, error messages will be output.

statement:
Code: use strict;
use warnings;
my $tr = `ls`; error messages:
Code: Can't exec "ls": No such file or directory at test.pl line 3 But if I use absolute path `/bin/ls` instead of `ls` in the line 3. It worked fine. Perl version is v5.10.1.
This only happens on Fedora-13. Is this a perl issue or Fedora-13 issue?
If I just want to use `ls`(its output is desired), not `/bin/ls`, how can I do it without error?


Bored. Need Project

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 03:27
Hello all,

I have a triple boot system - Vista (which I never use), Ubuntu Hardy (always use) and Slackware 12.1 (not used in a long time and is mainly a backup OS). Was thinking of doing something with my Slackware 12.1 because its just sitting idle and so am I. Looked through the net for "Cool things to do in Linux" and didn't find the suggestions like setting up a music webserver or a home server very appealing. Would like something based more on compiling source code.

Was thinking of this:
Compile from scratch an entire desktop system - KDE with QT and all desktop effects.

Anyone know of anything people are doing related to compiling packages?

Thanks.


Parse log file with bash

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 03:09
I'm not a programmer and barely a scripter (compared to many of the God here) so I'm having a hard time deciding what I should do in parsing the snare.log file. I only need a bit of information from certain lines. For instance when someone logs in with SSH, I want to know when, who, successful/unsuccessful and from where.

So one entry from the snare log looks like this:

Code: vm-rhel5        LinuxKAudit    criticality,0  event,login_start,20100907 22:22:43    uid,0,root      id,    gid,0,root      euid,,root      egid,,root  process,32519,ssh        return,0,yes    acct,mijohnst  addr,127.0.0.1  auid,500,mijohnst      exe,/usr/sbin/sshd      hostname,vm-rhel5      msg,PAM session open  subj,system_u:system_r:unconfined_t:s0-s0:c0.c1023      terminal,ssh Of coarse everything I need is in this entry, but how do I pick through what I don't need. I've written a short command to help.

Code: egrep "return\,0\,yes" /var/log/audit/audit.log | awk '{print "Date = " $5" "$4"\t\tUID = "$13"\t\tFrom = "$14}' The problem with this command is that the output data isn't always located in the same column. So UID might be $21 for one entry and $22 for the next. An example would be like:

Code: Date = 22:22:43 event login_start 20100907              UID = acct mijohnst            From = addr 127.0.0.1
Date = 22:22:43 event login_auth 20100907              UID = addr 127.0.0.1            From = auid 500 mijohnst So I guess my question is, what's the best way to proceed? I'm thinking somehow I should be able to write a function that assigns the beginning of certain columns with a veritable, ie. any line beginning with "acct" would automatically be written into a variable called $ACCOUNT. Does that make sense?

I don't expect anyone to know this, I guess I'm still trying to solve it out in my head and it's helping to write it down, think about it and hope someone might have a direction to point me. As always, thanks again!


Wireless Internet Connection in RHEL5

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 02:59
Laptop : Dell XPS m1330
OS : RHEL5

I am not able to configure wireless internet connections.
Instruct me in stepwise guys.


Cannot probe storage on luci!

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 02:58
Hi, I am (and still) trying to create a 2 Node cluster on Centos5.2 with a Dell MD3000 as a storage. However I am getting this when I try to probe for storages in luci:

An error has occured while probing storage:

<?xml version="1.0" ?>
<dict name="result">
<var name="diff" type="num" value="24"/>
<var name="max_inactive" type="num" value="600"/>
<var name="inactive" type="num" value="False"/>
<result name="success" value="true"/>
</dict>

(The xml changes sometime)

Anyone know what this message means. I also get the this in /var/lib/luci/log/event.log


INFO ZPublisher.Conflict ConflictError at /luci/storage/cache_report: database conflict error (oid 0x0196, class Products.Transience.TransientObject.TransientObject, serial this txn started with 0x0388bfa893e2b5bb 2010-09-09 02:48:34.660684, serial currently committed 0x0388bfacf8bdd955 2010-09-09 02:52:58.298812) (20 conflicts (1 unresolved) since startup at Wed Sep 8 17:41:15 2010)


And I also get errors on /var/log/messages
end_request: I/O error, dev sdf, sector 0
Buffer I/O error on device sdh, logical block 0

Not sure if these are related...really lose and confuse..


How to redirect compilation/build error to a file?

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 02:42
Hello everyone,

How do you redirect or save compilation errors to a file? This is useful for building kernel since most warning and errors are too many sometimes?

For example, how to save/capture the "make[x]: *** Error " and warnings here?

Quote: archie@archie-desktop:~/od-kernel/kernel$ make modules | awk '{print}' | tee sample
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
drivers/media/video/samsung/tv20_ap/acc_tvout.c: In function 'init_sd':
drivers/media/video/samsung/tv20_ap/acc_tvout.c:332: error: expected ';' before '}' token
drivers/media/video/samsung/tv20_ap/acc_tvout.c: At top level:
drivers/media/video/samsung/tv20_ap/acc_tvout.c:530: warning: initialization from incompatible pointer type
make[5]: *** [drivers/media/video/samsung/tv20_ap/acc_tvout.o] Error 1
make[4]: *** [drivers/media/video/samsung/tv20_ap] Error 2
make[3]: *** [drivers/media/video/samsung] Error 2
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CC [M] drivers/media/video/samsung/tv20_ap/acc_tvout.o perl or awk scripts are also appreciated.

Thanks,
archieval


LXer: Linux Mint 9 (Debian) Review

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 02:40
Published at LXer:

A full review of the Debian version of Linux Mint 9. Each time Ubuntu is updated, we get also get another version of Linux Mint. I usually end up reviewing most of the Linux Mint derivatives of Ubuntu. This time around though, we’ve gotten a delightful surprise from the Linux Mint developers. A Debian version of Linux Mint! Yes, there is now a rolling release Linux Mint distro!

Read More...


Need solution to Sed problem. Want to match "&" but not "&amp;"

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 02:29
I want to used sed or some other linux command to convert special characters in XML files.

Here is an example:
-bash-3.2$ echo "P&G"
P&G

Now I want to change the "&" to "&amp;" so I run:
-bash-3.2$ echo "P&G" | sed -e "s/&/&amp;/ig"
P&amp;G

I got the result I want, but if someone runs the conversion program again, the output files get messed up. Here is an example:
-bash-3.2$ echo "P&G" | sed -e "s/&/&amp;/ig" | sed -e "s/&/&amp;/ig"
P&amp;amp;G

Is there a way to find all the "&" and replace them only if the match is not already converted to "&amp;"? So I want to match all "&" but not match "&amp;".

I want to create a conversion program that can be ran any number of times on the same files and always come up with the same output.

Thanks,

Chris


RSYNC Creates New Folder Every Time (on remote server).

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 01:59
I am using SSH and Rsync as a backup system. I just want to try copying the contents of one folder to one on a remote server. What happens is that rsync recreates the directory AND changes the permissions on that remote directory.

This is the command:

Code: rsync -av -e "ssh -i ~/my_secret_key" /home/billg/videos/ steveb@192.168.1.50:/home/steve/backup/video.bak The permissions on the remote dir change from this:
Code: drwxr-xr-x steve steve 4096 2010-09-09 15:13 video.bak To this:

Code: drwxrwxrwx steve steve 4096 2010-09-09 15:13 video.bak not good. Why does this happen?

I have a trailing slash on the source directory.


What's with the reputation/measuring device icon? Is this justice?

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 01:50
Iv'e been away from LQ for a few months and I don't get the gist of it. The icon is nifty though. It looks like they borrowed it form DownloaderX.


LXer: Spotlight on Linux: Zenwalk Linux 6.4 "Live"

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 01:50
Published at LXer:

Zenwalk Linux is a Slackware based distribution introduced in early 2004 that aims to be fast, easy, modern. Zenwalk tends to have a very loyal user-base in addition to leaving most distro hoppers and reviewers impressed. Most agree with Zenwalk's latest tagline: It just works.

Read More...


using subshell in another xterm

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 01:23
Hi there guys, problem is simple, i want to run some parts of a script in different terminals. I already found about subshell, () using parenthesis to group commands and using xterm -e (function), problem is i can not get pid for the function running in the other terminal. And if I use & to set the job in background the terminal goes away as soon as it ends the job.
I am using log files, and then send it them using built in mail.

After all the parts finish i have to run the "main" script which needs the data from all the pieces.

Also other question, i usually use bash, but to load a tool i need csh, the tool is not mine so i can not change the csh usage. There is anyway of passing bash scripts/commands at the moment of changing/invoking to csh shell in the same console?


Harddrive corrupts issueing command "shutdown -r now" using Sorcerer Linux

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 01:21
On an install of Sorcerer Linux, when I have completed the install and all updates on a Dell 610 Laptop when I issue the command "shutdown -r now" upon reboot the system stops with fsck unable to complete sda1 unreadable, press cntrl D to continue. When I press control D it goes nowhere and I cant access the drive. Is there something that I am missing in the command? Should I umount the drive first?
Also this doesnt happen if I just press the power button and shut the laptop down. Thank you.


LXer: Inside Ubuntu's Engineering Organization

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 01:11
Published at LXer:

Recent years have seen the Ubuntu Linux distribution, led by Canonical, experiencing rapid growth in both users and features. With the upcoming Ubuntu 10.10 Maverick Meerkat release, set for October, Ubuntu developers will continue to push the boundaries further of both server and desktop Linux. Sitting at the upper rung of Ubuntu's engineering efforts is Matt Zimmerman, Canonical's CTO, who helps to lead Ubuntu's technical direction.

Read More...


Best tone generator for Ubuntu/Gnome?

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 00:45
I'm running Ubuntu, with the Gnome desktop. I need a tone generator that will allow me to generate a timed sequence of tones. To be more specific, I need to be able to do something like a one-second 457.9 Hz tone, followed by a three-second 368.5 Hz tone. Is there anything out there that can do what I need?


LXer: SetiQuest Project Could Bring The Goodness of Open Source to SETI's Search for Alien Life

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 00:40
Published at LXer:

SETI or Search for Extra Terrestrial Life is a project that started some 50 years ago. SETI is one of those science projects that had caught the public's imagination like no other. But with the escalating costs and dwindling manpower, SETI needs a new vision. And if things happened during SETIcon, a weekend conference organized by the SETI Institute to honor SETI’s 50th anniversary, are any indication, the new vision could just be 'Open Source'.

Read More...


Serial ports, USB-Serial adapters, and Linux

LinuxQuestions.org latest posts - Thu, 09/09/2010 - 00:38
I have a tool that communicates with a robot via serial. My eventual goal is to build a man-in-the-middle box for the serial communication line, so that I can listen to the transmitted serial messages and modify them if desired, and then transmit them on. A small amount of latency introduced is not a problem. Can I do this with, say, a PC running Linux, and Perl? Is there a better way?

As a proof of concept, I figured I could use my laptop and two USB-to-Serial adapters.

As a first step, I plugged both serial adapters in, and connected them to each other through a null modem.

Now what? I figured I could just Code: cat /dev/ttyX , and then in a different terminal, Code: echo "blarg" >> /dev/ttyY , and I would see "blarg" show up in the terminal that had cat running. The problem is figuring out what /dev/ttyX and /dev/ttyY are. My system has a bunch of tty device files, but how can I know which of them correspond to my two serial adapters?

Once upon a time, I had a perl script to communicated with a piece of lab equipment, and all I did was

Code: open(MEOUT, ">>/dev/ttyUSB0"); 
open(MEIN, "</dev/ttyUSB0");
print MEOUT "*rst\n"; #reset the tool The trouble I'm having is I have two USB-Serial adapters plugged in and I only have one /dev/ttyUSB0.



Even though I plugged two serial adapters in, there is only the one /dev/ttyUSB0 when they are both plugged in.

Code: chaz@singularity:~$ ls /dev/tty*
/dev/tty    /dev/tty16  /dev/tty24  /dev/tty32  /dev/tty40  /dev/tty49  /dev/tty57  /dev/tty8
/dev/tty0  /dev/tty17  /dev/tty25  /dev/tty33  /dev/tty41  /dev/tty5  /dev/tty58  /dev/tty9
/dev/tty1  /dev/tty18  /dev/tty26  /dev/tty34  /dev/tty42  /dev/tty50  /dev/tty59  /dev/ttyS0
/dev/tty10  /dev/tty19  /dev/tty27  /dev/tty35  /dev/tty43  /dev/tty51  /dev/tty6  /dev/ttyS1
/dev/tty11  /dev/tty2  /dev/tty28  /dev/tty36  /dev/tty44  /dev/tty52  /dev/tty60  /dev/ttyS2
/dev/tty12  /dev/tty20  /dev/tty29  /dev/tty37  /dev/tty45  /dev/tty53  /dev/tty61  /dev/ttyS3
/dev/tty13  /dev/tty21  /dev/tty3  /dev/tty38  /dev/tty46  /dev/tty54  /dev/tty62  /dev/ttyUSB0
/dev/tty14  /dev/tty22  /dev/tty30  /dev/tty39  /dev/tty47  /dev/tty55  /dev/tty63
/dev/tty15  /dev/tty23  /dev/tty31  /dev/tty4  /dev/tty48  /dev/tty56  /dev/tty7
chaz@singularity:~$


Debian Project News - September 8th

tuxmachines.org - Thu, 09/09/2010 - 00:16

debian.org: Welcome to this year's eleventh issue of DPN, the newsletter for the Debian community. Topics covered in this issue include:

Advertisement:

read more

LF Announces Program for 2010 End User Summit

tuxmachines.org - Thu, 09/09/2010 - 00:14

linuxfoundation.org: World’s most advanced Linux users from British Telecom, Citigroup, Morgan Stanley, NASDAQ, and more meet with kernel community to collaborate on requirements and opportunities

Advertisement:

read more

Syndicate content