Ubuntu :: The Script To Trigger Whenever A New File Gets Copied Or Placed On The Desktop?

Feb 15, 2010

I wanted to make a simple script that would trigger on certain environment events. For instance, I want the script to trigger whenever a new file gets copied or placed on the Desktop, and cut that file and place it somewhere else. Sort of cleaning the Desktop process. Here's the thing: I want to trigger on it's own, not requiring me to open shell and invoke it from there

View 7 Replies


ADVERTISEMENT

General :: When Copy File And Then Power Off / On Copied File Is Gone

Nov 16, 2010

I have an embedded linux system (Debian 'Lenny') which booting from a microSD flash. If I make a copy of a file on the flash file system (cp test test1) and then power off (disconnect power spontanious). Connects power again and the system come up, but the file test1 is gone. How can I secure that test1 is NOT disappear if the power get lost?If I copy file and then restart system with reboot command, the file test1 does not disappear.

View 7 Replies View Related

Ubuntu :: File Permissions For Copied Files On External HDD?

Mar 24, 2010

I'm sure that the issue I'm having is easily solvable once I gain some understanding about copying files - and file permissions in Ubuntu. Here's my situation:

I have an external HDD where I like to back up some files (I mess around with distros on my main machine and feel less stressed knowing the important stuff is backed up). I have an ext4 partition on the external drive where I have copied files, both through the terminal (cp 'filename' /dev/sdc3) and by drag and drop (gnome-terminal).

The problem is, once the files are copied, most are inaccessible. I can view them, but some directories and individual files say I do not have permission to open them. Others are accessible. This is from the same user profile that copied them.

How do I see what's going on? More importantly, how do I make files on external drives available to any user or OS (that can handle ext4)? I want to make sure that if my whole system gets effed that I could still do a reinstall of my OS and then access those backup files.

View 5 Replies View Related

Ubuntu :: File Names With Spanish Accents / Copied From Windows And Don't Work

May 18, 2010

we have two work computers, one with windows and one with Ubuntu. We are going to change the windows computer to Ubuntu, and put them on a network. So we copied all of the documents on the windows computer to the Ubuntu computer as a first step. The problem is, with the documents and folders that we copied, if they have spanish accents we can't open them.I tried looking on the forum but I didn't find anything about exactly that problem. One post suggested that the "locale" might be the problem, but our locale seems to be the correct one for our country and language.

The accents show up as white question marks inside a black diamond. If I open a file inside a folder with an accent, or a file with an accent, it tells me that the file doesn't exist.But when I change the name of the containing folder or the file, and replace the question marks with accents, I can open the folders and files.But we have lots and lots of documents, and it would take a really long time to change the name of all of the folders and files. How can I fix all of them at the same time?

View 9 Replies View Related

Fedora Security :: Having A Script That Will Report Whenever A File Is Copied?

May 12, 2009

have a script that will report whenever a file is copied? Some useful information would be the time/date, user, and destination whenever a file is copied. I've looked into the stat command, but it does not distinguish between copy and access.

View 4 Replies View Related

General :: Generating SSH Key At The Console - What File Needs To Be Copied To Usb Drive

Feb 17, 2011

I've been giving the task to go to a Linux console as root. and generate a ssh rsa 4096bit key, and copy the private key to a USB drive.

1) What command should I use here? ssh-keygen -t rsa -b 4096 ?

2) Do I need to append the new private key to the authorized_users file? Which file exactly must be appended there? Would this be sufficient?

mkdir -p /home/myuser/.ssh
cat id_rsa_LOCAL.pub >> /home/myuser/.ssh/authorized_keys

Should any special permissions be applied to this file?

3) Which file must be sent to my usb drive so that I can take it home to connect with?

View 5 Replies View Related

General :: Scp With Range Of Files To Be Copied To - From - Or Between Different Hosts - Error - No Such File Or Directory

Jun 27, 2011

Working fine: ==> scp my_log-bin.01393[0-9] root@192.168.103.66:/backup/ error - No such file or directory: ==> scp my_log-bin.0139[30-99] root@192.168.103.66:/backup/

View 4 Replies View Related

Security :: Debian Shows File Permissions Change When Copied To A Windows Partition?

Dec 10, 2010

Some time back using this computer a SucKit rootkit was found. Having dd urandomed the drive, flattened CMOS battery, flashed BIOS, run Knoppix live CD 6.1,using no flat pack battery (laptop), and memtested the RAM, I am still having problems with what I suspect is a javascript file that tries to reload the rootkit from? firmware. I suspect the firmware as everything else should have eradicated it??

Also it or a hacker via a backdoor then corrupts the drivers so devices malfunction. Windows security programs and rootkit detectors don't seem to pick it up. Fresh install of Windows or linux after the above still show this problem, though internet not used. The person who admitted rootkitting this machine is capable of writing java programs or using javascripts to do all this.

When viewed using Ubuntu 8.4 files and dates on a Windows partition appear normal both in file manager and terminal. However booting using Knoppix CD these files are all green, and I cannot change their permissions, even as root. ie: everything is green including text files etc. If I copy them to a linux partition, I can change their permissions and make them nonexecutable and nonwritable. Also on the Windows FAT32 partition the . directory has the date 1 Jan 1970.

If I disable any green files, I can shutdown and reboot cleanly. If I don't I start having problems shutting down [/usr/sbin/init ?] And always these follow a pattern:

Can't remember details as I have now corralled the beast but error messages relating to:

nfs-server
inet.d/statd

are the start of these.

View 3 Replies View Related

Ubuntu :: Hotkeys Trigger While Typing?

Mar 12, 2011

This has been happening for a while and I can't figure out how to fix it. If I'm surfing the web listening to music, when I type something -- the song will start changing. Has anyone else run into this problem? Does anyone know how to fix it

View 1 Replies View Related

Ubuntu :: Remotely Trigger Gnome Apps Over SSH?

Jan 11, 2010

I have a keyboard&monitor damaged laptop which I've converted into a media server/HTPC with a large external monitor. I've installed Ubuntu 9.10, and attached an external 1TB HDD with my video collection. As a media player it works perfectly fine. I can connect to it through my home network, both with VNC and with SSH. I can use VNC on my current laptop to access the player's desktop and play video files. However, this is awkward as the screen resolution of the playback monitor is 1920x1080 - much bigger than the laptop's screen - which means I either end up scrolling the viewpoint around, or scaling the virtual screen down to make reading text very difficult.

What I'd like to be able to do is to trigger Gnome applications - specifically the Totem video player - via a SSH session, on the current Gnome desktop. The idea is that I'd like to be able to browse the directories which house my video collection in SSH, launch the player in the session, and have it appear on the monitor. Ultimately, I'd like to be able to invoke this from a PHP script - thus allowing me to create a (simple) web application on a LAMP installation which would allow me to browse & play my video collection. Currently, when I try and invoke totem, it seems to want to connect the invocation of the software to the SSH session, which - of course - it can't do. Where I might start in trying to set this up?

View 7 Replies View Related

Ubuntu Networking :: Using VPN Disconnect To Trigger An Event

Mar 3, 2010

I use network-manager-pptp to connect to my VPN server. However, occasionally my VPN drops out (although my Internet stays up). I was just wondering how I could make the VPN drop-out trigger a bash script, for example playing a sound to alert me that the VPN has dropped?

View 1 Replies View Related

Ubuntu :: Way To Trigger Root-level Process?

Jun 29, 2010

I have what I hope someone finds to be a simple problem. I am running a data acquisition computer for a research project, where multiple people use the same non-privileged user account to take data and save it to /incoming. Once the file has been closed, I would like to somehow copy the data into a more permanent location owned by root. Obviously giving the shared user account sudo permission would be a huge security hole.

I know that this should be possible using some sort of client/server connection, but writing my own server just for this little task seems a bit cumbersome, and is something I have no experience with. Nor have I ever written a daemon/init script before.

Does anyone have any ideas on a simple procedure I could use? Very few things are fixed in stone, but the copy operation is necessary - the final location is a RAID5 array, and the write speeds are too slow to keep up with the data stream.

If a client/server type of thing really is the best way to go, anyone have any links to good tutorials to make a simple server and daemonize it?

View 2 Replies View Related

Ubuntu :: Possible To Instead Of Using Desktop Folder Plasmoid / Usual Desktop Act As File Manager?

Nov 12, 2010

1. Is it possible to instead of using the Desktop Folder plasmoid, have a usual Desktop act as a file manager?
2. What is Akondi? There are tons of processes which have Akonadi in their name, and it seems to be using up lots of memory.Can I disable these somehow, or is it safe to do so?
3. Any general tips on how to reduce the amount ram that is used on startup? I am using somewhere around 750MB on startup, which is about double the amount Gnome uses. After a few hours of use, Xorg uses close to 1GB of memory.
4. Whenever I get a notification, they don't delete themselves, so when I click on the (i), I see tons of notifications. Is there a way to get them to delete themselves after they have been shown?

View 1 Replies View Related

Ubuntu :: Command Trigger Safely Remove Drive?

Jan 31, 2010

I wanted to know command to triggered "Safely Remove Drive".So I could implement it on Hardy 8.04
http://ubuntuforums.org/showthread.p...88#post8674988

View 6 Replies View Related

Ubuntu :: Gnome-schedule Not Triggering - How To Make It Trigger

Aug 1, 2010

Scheduled Tasks is giving me a hard time. I have a command set for 23:00 daily as "gthumb -f ~/Pictures/ScheduledPic.jpg", but when the time rolls around, nothing happens. The strange thing is, it does work when I press "Run scheduled task." I get the same results if I select a different time or change it to "google-chrome ~/Pictures/ScheduledPic.jpg". My other scheduled task, a Perl script, works fine.

View 2 Replies View Related

General :: How To Initiate/trigger A Key Stroke

Feb 12, 2010

to initiate/trigger a key stroke in Linux, as if the user has pressed those keys?

View 4 Replies View Related

Programming :: What Can Trigger A Segmentation Fault

Jan 15, 2010

I have this basic program that is supposed to scan a string for a delimiter and output which segment of the string the user wants, like awk '{print $2}'. The problem is, I always get a segmentation fault when I run the code and I can't figure out what triggered it.

Here is my code:

Code:

int main(void) {
char *string = "my name is joe";
char dlimit = ' ', *good;
int index = 2, round = 0;
int i, place = 0, t;

[code]....

It keeps track of how many times the delimiter was found with round, and the position of the last found delimiter with place. index is to specify which segment of the string the user wants. One more thing, is it necessary to manually allocate memory with malloc() or calloc() when you can just initialize a variable and it be fine? Like:

Code:

int z = malloc(sizeof(int));
when you can:
int z;

View 12 Replies View Related

Ubuntu :: Manual Method To Trigger Command-not-found Search?

Jan 15, 2010

I really like that in Ubuntu when you type in a command that's not on the system you get a message saying the package that provides that command. Unfortunately it also slows down my system, so I would like a way to trigger this manually. Something like search-command command-I-dont-have

Is there any way to do this? I'm using Ubuntu 9.04 under andLinux but would also like to use this on a regular Ubuntu 9.04 install.

View 3 Replies View Related

Ubuntu Installation :: Udenadm Trigger Is Not Permitted While Ndev Is Unconfigured

Mar 6, 2010

when I update the ubuntu, I set it shutdown after 60 minutes uisng "sudo shutdown 60",because I think the update will complete in 40 minute. However today when I start the computer, it can not startup the ubuntu. I got a screen which sown the message in the title,after I search it using google, some people have encounted this proble, their solve way is to use a live cd to chroot to the old root and complete the update.
However I can not. The following is my suitation:

http://imagebin.org/87841 my command

http://imagebin.org/87840 my partition

View 2 Replies View Related

Ubuntu Servers :: Trigger A Shell Script Upon DHCP Request?

May 13, 2011

Is there a way trigger a shell script after my DHCP server successfully gives out, either a specific IP address or to a specific MAC address.I have two Xbox360's in my house that both receive IP address via DHCP reservations from the Ubuntu server.I have come to accept that without having two public IP addresses getting both to have an open NAT will be very difficult. I have decided that I am OK with only one being able to have an Open NAT at a time, but I want to change the firewall rules according to which Xbox 360 turned on first. This way I can move between level in my house and play online without having to modify rules manually.

View 3 Replies View Related

Ubuntu Servers :: Udevadm Trigger Is Not Permitted While Udev Is Unconfigured

Aug 27, 2011

I'm having a bit of a nightmare with my ubuntu hardy server (using hardware raid 1+0). Following a power cut I get the message "udevadm trigger is not permitted while udev is unconfigured" on boot. Before the power cut the server had been up for ~450 days.

I managed to get access to /boot (which was empty) by using the repair option on the alternate cd and mounting /dev/myserver/root. I've installed the packages linux-headers-server, linux-image-server and linux-server. The various 2.6.24-29 files were installed and update-initramfs was automatically run (I noticed others have used update-initramfs to solve this error when upgrading from 8.04 to 10.04 in some posts I've read). No luck with this though - just the same error booting. I've also tried reinstalling udev, but again with no success.

I rebooted and pressed the Esc key to get the boot menu up. Only options were for kernel 2.6.24-26 (rather than the 2.6.24-29 just installed). I ran the recovery option anyway and got "/dev/mapper/myserver-root does not exist".

View 1 Replies View Related

General :: Trigger Off Rsync By Plugging In A USB Drive?

Feb 17, 2011

I'd like to know if it's possible to automatically mount, and fire up rsync to sync a USB drive with a directory? Specifically, I'd like to copy as much data as the drive can hold and only delete the oldest files if space is needed. I would assume I'd do something like this with a script, but my problem, is where to start.

View 2 Replies View Related

Server :: Trigger SSH Jobs To Continue After Disconnecting?

Feb 27, 2010

I have a server here and want to set up transfer jobs to run overnight.

I log in via SSH to it from my laptop and would like to start the job, disconnect yet still have it run.

Is this possible, if so, how?

View 4 Replies View Related

Ubuntu Installation :: Udevadm Trigger Not Permitted While Udev Unconfigured / Sort It?

Sep 2, 2010

I use Parallels 5 for Mac (10.6.4). I started my Ubuntu 10.4 virtual machine and it didn't load the Ubuntu Gnome desktop. In stead I did get a command line prompt. I could login with normal username and password, rebooted again, but same result.I tried to update the system with code...

View 4 Replies View Related

CentOS 5 :: Would Like A Proftpd Log To Trigger Logwatch To Send Email?

May 8, 2010

I have CentOS 5.4 running my file server. I finally got proftpd to work. I configured logwatch to send me email on a daily basis however I would like to be sent an email immediately when the proftpd log file changes. Is this possible?

View 5 Replies View Related

Ubuntu Installation :: Boot After Updates - Udevadm Trigger Is Not Permitted While Udev Is Unconfigured

Sep 7, 2010

I just performed an update thru the Update Manager, & on re-boot got this message: ( Ubuntu 10.04.1 LTS, kernel 2.6.32-24-386 ) udevadm trigger is not permitted while udev is unconfigured. Gave up waiting for root device. Common problems :

- Boot args ( cat /proc/cmdline )
- Check root delay= ( did the system wait long enough? )
- Check root= ( did the system wait for the right device? )
- missing modules ( cat /proc/modules; ls /dev )

ALERT! /dev/disk/by-uuid/df0200e3-e6e9-439a-922f-100d92af0c58 does not exist. Dropping to a shell!. BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu11) built in shell (ash) (initramfs)_ Info: I can boot into older version: Ubuntu 10.04.1 LTS, kernel 2.6.32-23-386. The Update Manager does not seem to want to show any updates that are available.

View 3 Replies View Related

Ubuntu Installation :: Crashed - Error - Udevadm Trigger Is Not Permitted While Udev Is Unconfigured

Oct 2, 2010

I was updating the security updates in my deskptop. It did not executed successfully even after 7 hours. It remain just like hang up. So I switched off the PC and rebooted. Then it is showing the error: "udevadm trigger is not permitted while udev is unconfigured. Gave up waiting for root device."

Now my Lucid Linx is almost dead. There is also no 'Repair' option while booting from Ubuntu 10.04 CD. Pl help to restore it.

View 2 Replies View Related

Ubuntu Installation :: Cannot Boot After Update (udevadm Trigger Is Not Permitted While Udev Is Uncon?

Dec 19, 2010

I upgraded to the last ubuntu last week and since I get the error: "udevadm trigger is not permitted while udev is unconfigured."I followed different posts on the forums but none helped: [URL]I did the sequence:

"1. Boot liveCD
2. "sudo fdisk -l" to find your boot disk, in my case it is /dev/sda5.
3. "sudo mkdir /media/newroot"

[code]....

View 1 Replies View Related

Fedora X86/64bit :: IM-Settings-Daemon Error Cannot Trigger Ibus?

Oct 12, 2009

i think IM-settings is dead. i cannot get ibus or scim work.IM-Settings-Daemon[6769]: CRITICAL **: Giving up to bring the process up because Main Input Method process for ibus rapidly died many times. See .imsettings.log for more details.i have re-installed butProblem has been solved...re-install or update gtk2/glib2 and remove imsettings scim ibus im-chooser etc, everything.re-install imsettings ibus and im-chooser...thats it! i found sometimes the binary is not as good as source....

View 4 Replies View Related

General :: Automatically Trigger A Cron Job Each Time I Log In On System Account?

Jul 27, 2011

Is there any way to automatically trigger a cron job each time I log in on my linux account.

View 9 Replies View Related







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