General :: How To Utilize Inotify Command Properly

Jan 21, 2010

I am using inotify-tools in order to achive my task. inotify-tools has two commands inotifywait or inotifywatch. I am using inotifywait. I want to be able to extract unique paths that inotifywait will output and then take those unique file path run them through clamscan and quarantine the files if necessary. Here's what I have come up with so far.

View 6 Replies


ADVERTISEMENT

General :: View The Files / Dir Inotify Is Monitoring?

Feb 15, 2010

I was wondering if it is possible to view all the files or dirs that inotify is monitoring.

View 2 Replies View Related

General :: Recursive Filesystem Notifications (inotify) For Karmic Koala?

Mar 11, 2010

I need a program which generates events when a file is moved, removed or its extended attributes are changed. I'm running Ubuntu Karmic Koala 32-bit desktop.inotify is the standard solution for such problems, but inotify cannot install a recursive watch, so the only option is to the equivalent of find on the filesystem, and add an inotify watch on each node. This is what e.g. inotifywatch does. This won't work for me, because my filesystem has 1 million files, and installing watches to all of them takes forever.

fanotify could work except that I would have to patch the kernel for that (I'm currently running 2.6.31-20), and maintaining patches to the Linux kernel is beyond my time commitment.I used to use rfsdelta (whose kernel module is similar to rlocate), but it just doesn't compile on 2.6.31, because it uses obsolete Linux security framework APIs.

View 1 Replies View Related

General :: Usermod Command Not Working Properly?

Mar 22, 2011

I created a user named Bob. Now i want to change its home directory to be Bob1. I did this

usermod -d /home/Bob1 Bob

but not effect !!!

The name was still Bob. What might be issue ?

View 8 Replies View Related

General :: Shutdown-command Doesnt Work Properly - End Up With A Black Screen

Jan 14, 2010

When i use the shutdown-command in the terminal as root, it nearly works. It starts to shut down, and it looks like all programs and the kernels shuts down. I end up with a black screen, sometimes with the ubuntu-logo on, but it never powers off. I have to force it off by holding the power button. When i use the graphical interface to shut it down, it works perfectly. The poweroff-command works without problem too.

Here is the command i use:

Code:

View 4 Replies View Related

General :: Create Tunnel To Utilize For Telnet Connection?

Nov 8, 2010

Machine A is located behind client firewall. The machine runs telnetd. This is Linux machine with Python 2.5.4 installed. I do not know the IP addy of the router and firewall is not open incoming. outgoing firewall is open.

Machine B (Windows machine) is a server with well known IP address. I can install any programs I want on either machine.

The idea is that I want Machine A to open a socket to machine B. Then I want to hold that socket and use to run a telnet session from Machine B to Machine A telnetd server.

View 1 Replies View Related

General :: Move And Utilize Root /boot And Swap Dir To Temporary Location?

Oct 16, 2009

I'll start by explaining what my system layout currently is. I have Fedora 11 X64 installed on my system, it is an HP Dv9380ca laptop. My system has 2 hdd /dev/sda /dev/sdb. During the setup i set my home directory to reside on /dev/sdb. After booting i realized that my root and swap partition are part of a volume group name vg_sharpfed and are set in fstab as:

/dev/mapper/vg_sharpyfed-lv_root / ext4 defaults 1 1
/dev/mapper/vg_sharpyfed-lv_swap swap swap defaults 0 0

Output of Fdisk -l /dev/sda

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1aecda8d

[code]....


My /dev/sda2 partitions is 100gigs and set as an LVM. Essentially what i am getting at is, if it's possible to temporarily copy / /boot and swap to my second partition, edit grub if needed and fstab to mount to the temp locations, format sda to ext4 create partitions for / /boot and swap partitions, then copy back the original directories edit required fstab to mount the original locations and no longer have them contained in a Logical volume.

View 3 Replies View Related

Ubuntu :: Change Permissions On A File In /proc/sys/fs/inotify?

Sep 16, 2010

Trying to change permissions on a file in /proc/sys/fs/inotify. The command syntax are:

Code:
sudo chmod u+w max_user_watches
and the result is:

Code:
chmod: changing permissions of `max_user_watches': Operation not permitted Also tried to change it when logged in as root, same results. Parent directory permissions are dr-xr-xr-x, and are the same up the chain. Tried to change the directory permissions to u+w, that didn't work either. FWIW, /proc is part of the / partition, and it has ~600MB free space.

View 9 Replies View Related

General :: "file" Command Not Working Properly For UTF8 Files?

Oct 30, 2009

I have some files which are UTF8 and have first line as blank. It shows as data file by "file" command. If I remove the blank line, it shows it as UTF8 text file. I have to choose displayable text files from many files, so I used "file" command.

Note: I do not have permission to attach file. So not able to attach sample file here.

View 5 Replies View Related

Ubuntu :: Dconf - Inotify - NFSv4 Home Directory Mounts Don't Work In 10.10

Dec 16, 2010

I have noticed that when I have my home directory mounted over network with NFSv4 ==> applications that use dconf to save preferences do not work correctly.

If I try to save preferences they won't save and I'm getting "Unable to contact dconf service" errors with Evince, Empathy etc.

I was googling this issue and I figured out that Dconf uses inotify() ( [url] and [url]) and those notifys don't work with NFS at all so the whole "dconf thing" doesn't work!

Am I right that Ubuntu is moving from GConf to DConf? If that is true I think this issue will be a serious problem if most of the applications use mechanism to save settings that doesn't work with NFS mounted drives. It is quite common to use NFS to mount home directory in some schools, companies and LTSP-machines.

I've tried to reinstall dconf and libdconf0 packages with no working result. When I'm using my home directory locally there is no problems.

And with Ubuntu 10.04/9.10/9.04... there were no these problems.

Links:
[url]
[url]
[url]
[url]

View 2 Replies View Related

Server :: SCP Command Is Not Working Properly Due To SSH Enabled?

May 27, 2011

My Question is I have installed the ssh key authentication in Server A. User can connect this using key file via SSH. without authentication user can't connect this system via SSH. Now I am trying to copy the file from Server B through SCP command. But it is not working. While I am trying use this command from Server B I am getting below error "ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection timed out lost connection". xxx.xxx.xxx.xxx is Server A. SSH is enabled in both server A,B.

why SCP command is not working?

View 1 Replies View Related

Ubuntu :: Command Not Working Properly In Encrypted Home Dir?

Mar 2, 2011

I have installed Ubuntu 10.10 to a live USB stick and created a new user with an encrypted home directory.Everything is working fine apart from a weird problem.when I create a new file or directory in the encrypted home it does not show up in directory listing.eg:cd ~/Documentstouch test.txtls -aldrwxr-xr-x 2 USER USER 4096 2011-03-02 14:12 .drwx------ 32 USER USER 8192 2011-03-02 13:03 ..if I try editing the file by entering the path, it works, even though ls does not list it!eg: nano ./testls as root makes no difference and the file is not hidden.If I create a file in nautilus, it shows there but still does not show in the terminal or any other app

View 2 Replies View Related

Ubuntu :: X86 To Utilize 8gb Of Ram?

Jul 14, 2011

I know in Windows that if you install the x86 version, it can't utilize more than four gigabytes of ram, is that true for Ubuntu/Linux? I have 8GB of ram and I want to make sure it is all utilized. Linux Ubuntu-Aphex 2.6.35-30-generic-pae #54-Ubuntu SMP Tue Jun 7 20:28:33 UTC 2011 i686 GNU/Linux

View 3 Replies View Related

Programming :: Ptrace System Command Not Working Properly In X86 Platform

Apr 20, 2011

basically in the child process iam just calling the ptrace(PTRACE_TRACEME, 0, NULL, NULL) system call but if add this stsyem call rest of the code not working properly. i found the reason basically what happening is when we have ptrace() system call its printing the same variable 3 times i.e its not executing it 3 times but just it is printing 3 times .iam just wondering how it could be possible.

View 1 Replies View Related

Networking :: Utilize 2 Connections At Once?

Sep 13, 2010

there is a cable connection and a wireless connection. Is it possible that I use the cable and the wireless to run a segmented download on both connections? Like half goes to wireless and the other half goes to the cable? Or if not the segmented download, then at least I surf the Internet with one and download on the other?

View 1 Replies View Related

Networking :: How To Utilize Multiple Ext. Ip

Jan 10, 2010

i have 3 external IPs, assigned on eth0, eth0:1 and eth0:2.I have a game bot that connects to a game network, but the game network only accepts a limit of 5 connection from same ip. The game network has multiple IP addresses. (e.g. game.com resolves to 1.1.1.1, 1.1.1.2, 1.1.1.3 etc)How do i specify that certain bot connects via eth0:1 and eth0:2? Currently all bots are using eth0's ip

View 14 Replies View Related

Fedora :: Utilize The Screen Edges (Namely The Left And Right) In Fluxbox

Jul 16, 2010

Is there a way to utilize the screen edges (Namely the left and right) in Fluxbox. I've looked around but I couldn't find a way. I mainly want to switch the workspace when the mouse encounters the screen edge.

View 6 Replies View Related

OpenSUSE Hardware :: Run And Utilize AMD Up Coming Llano APUs?

May 25, 2011

I was wondering if anyone has any suggestions on some of the software packages one would need to comfortably run and utilize AMD up coming Llano APUs.

View 2 Replies View Related

Ubuntu Networking :: Utilize Airmon-ng But Cannot Detect My Wlan

May 16, 2011

I'm new to Ubuntu. I'm trying to utilize airmon-ng but I can not detect my wlan. I can access the web.

gianmario@ubuntu:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI b

[Code].....

View 4 Replies View Related

Ubuntu Installation :: How To Utilize Maximum Space Of 16gb USB

Jun 13, 2011

I have a transcend pendrive USB of 16 GB . I installed Linux ubuntu and i am able to allot only 4gb for working with linux ubuntu. I want to utilize my maximum space of 16gb USB.Can i alot more disk space for Linux in my USb ?

View 5 Replies View Related

Software :: BitToClients Utilize Bandwidth For Faster Downloading?

Feb 26, 2010

The three I have narrowed it down to are Deluge, BitTornado or Azureus/Vuze (are they different clients??). What I really need to know is which one will allow me greatest control of my torrents, and which one will utitlise bandwidth best for faster downloading. It is important, as I tend to download LARGE torrents (currently have one which is over 200GB in size), but they usually aren't smaller than about 4GB. How much system resources they use are not a major issue, though obviously lighter is preferrable. I just need the speed and control.

View 4 Replies View Related

Ubuntu Multimedia :: How To Configure 'Transmission' Client To Utilize Connection

Jan 9, 2010

I have Ubuntu installed, using transmission client to download a torrent.The torrent is coming down at ~300kbps, but my internet connection speedtests @ 50mbps...how do I configure connection to utilize connection?

View 4 Replies View Related

Ubuntu Networking :: 9.10 / Broadcom - Utilize The Patches That Would Allow Packet Injection

Jan 30, 2010

I was playing around with Aircrack the other night, and trying to utilise the patches that would allow packet injection, but it wasn't working for me, so I rebooted. After that, though, my wireless card seems to have gone completely haywire. It doesn't show up at all in iwconfig. Before, I had 4 entries: lo, eth0, irda0, and eth1, which was the wireless. Now, only the first three show up. This is what it comes up as under lspci:

Code: 04:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01) I've tried a number of solutions I've found online, including doing a cold boot, reinstalling the driver (Broadcom STA) and starting up from a cold boot, and am now trying this approach. Nothing has worked, so far. I'm getting really desperate. I need my wireless working for university, which starts shortly, and I might even switch back to Windoze if there's no feasible solution.

View 4 Replies View Related

Ubuntu :: Faster Download Speed - Utilize Internet Connection Better?

Jun 24, 2011

So I switch between Ubuntu and Windows alot, because some games I can only get to run smoothly in the windows environment. Anyways, one thing I have been noticing ever since I got Ubuntu but never really questioned, was about my download speeds. When downloading a torrent in Windows, I topped out out about 2.0 mb/s. Where as in my Ubuntu install, running the same torrent program (utorrent) and downloading the same file, I was getting 3.0 mb/s. I was wondering, what is it about Ubuntu that is utilizing my internet connection better? Only a hand ful of times have I ever reached 3.0 in my windows install (such as right now while I am downloading a game through steam).

View 3 Replies View Related

CentOS 5 Server :: How To Utilize Access Map And Relay-domains To Achieve Same Thing?

Feb 3, 2010

I run a few sendmail servers that run MailScanner/Spamassassin/sendmail (current versions) on Centos 5.4 and Centos 4.8 These boxes accept mail for a large number of domains (6000+) scan the mail removing spam and then forward the ham to another server for delivery. I am attempting to stop any backscatter that these servers cause by only accepting mail for specific users@domain or for domains with a catch-all account.I currently use /etc/ mail/ access.db as the access map for the domains, but this allows all mail to be accepted for the domain before the attempting to send it on for final delivery which causes NDR and backscatter for those domains which do not have a catch-all account.

I have looked at adding "To:user@domain RELAY" to the access mapand also adding "define(`_RELAY_FULL_ADDR_', `1') " in the sendmail.mc and running make -C /etc/mail but this has no effect on the sendmail.cf file. My understanding is that if I can get sendmail to accept this undocumented feature then all will be fine as I will be able to use the access map to allow mail to those specific users as well as entries of the type "domain RELAY".My second question is: Does anyone have any ideas on how to utilise access map and relay-domains to achieve the same thing?

View 6 Replies View Related

Software :: Get Ubuntu To Utilize OpenGl Support For Nvidia 8800 GTS Video Card

Feb 21, 2009

I have downloaded latest Nvidia drivers but am not having much luck getting .run to install properly. How do I go about this?

View 2 Replies View Related

Fedora :: Set Up Multipath Properly To Two Devices Properly?

Mar 29, 2011

How can I set up multipath to two devices properly? I'm sure that I need to do something more then just: /etc/init.d/multipathd start

View 1 Replies View Related

Fedora :: User Memory Allocation - Set A Maximum Limit On The Amount Of Ram A User Can Utilize?

Jul 24, 2009

I have a few multi-user servers in an academic laboratory. I am having a problem with some users maxing out the available RAM, causing such sever slowdowns the machine essentially crashes. My servers are Dell Power Edge's running Ubuntu 8.10 Server Edition (Not my choice). I would like to set a maximum limit on the amount of ram a user can utilize. This morning I experimented with setting limits via /etc/security/limits.conf and using ulimit. Neither of them prevented my test program, a simple infinite loop of mallocs, from crashing the server.

View 7 Replies View Related

OpenSUSE :: Get Application To Utilize More Than One Core In Multi-core Setup?

Mar 27, 2011

I have a command line OCR program called OCR Shop XTR (Vividata corp) that I am using on a system with a 6-core AMD chip. I changed the bios so that the 6-cores were activated, but htop shows me that while the program is running, I am only getting activity on one core (the program maxes out the one core with consistent usage between 97% and 100%).

I have read that many programs are not written to take advantage of multiple core cpu's. However, I am just hoping that there is some way to get this program to take advantage of the extra cores. Does anyone know of a way to invoke programs from the command line which would spread the workload out among additional cores?

Here is the output of uname -a:Linux linux 2.6.37.1-1.2-desktop #1 SMP PREEMPT 2011-02-21 10:34:10 +0100 i686 athlon i386 GNU/LinuxAnd here is the output for one of the cores from cat /proc/cpuinfo:processor : 5

vendor_id : AuthenticAMD
cpu family : 16
model : 10
model name : AMD Phenom(tm) II X6 1100T Processor
stepping : 0

[Code].....

View 5 Replies View Related

General :: How To Set JAVA_HOME Properly

Jan 10, 2009

I have problems with setting my JAVA_HOME variable. I am using Slackware 12.0, bash shell. I have set JAVA_HOME in my /etc/profile, like this:

But when I login in with my user name and type env on the command line, I get for JAVA_HOME the following:

Also, in my /etc/profile I have put the path to my java in the PATH variable, like this:

And when I type env when I login, then the PATH variable contains correctly the path to the jdk (as I have put it into /etc/profile).

I expect that after I have set everything as I want in /etc/profile, and restart the computer then what I have set will be relevant and when I login and type env, I will get values to the variables equal to those I have set in /etc/profile. Why it does not happen?

I have particularly a problem with a Java application, which I want to run. When I type ant, I get: error: JAVA_HOME is not defined correctly.

We cannot execute /usr/lib/java/bin/java.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved