It achieves a bash script that takes two parameters (command line). These two parameters must be two paths of two directories (existing, and different such as not being of the other sub-folder). Path1 and path2 are for simplicity.The script will recursively visit the two directories and all sub-directories, sub-sub-directories, etc.. Looking for differences between their contents (files or directories). In particular, suppose that we work with both path1 and path2 directory, and scanned the files contained therein. These situations can occur:
* Path1 exists in a file that is not present in path2: in this case, the script displays the path of the file to you (print screen) and asks if he wants the file is copied in path2 or not. Reads the user's response and acts accordingly.
* Path2 exists in a file that is not present in path1: in this case, the script displays the path of the file and asks if the user wants the file is copied in path1 or not. Reads the user's response and acts accordingly.
* Both path1 path2 in a file with the same name but different contents: in this case, the script displays the path of the two files (which of course will start with path1 and path2 but end with an equal) to the user together with the two dates have been changed last time. Then asks if you want the file to be replaced by one in path1 path2, or that the file is replaced by one in path2 path1, or that both are left unchanged. Reads the user's response and acts accordingly.
* Both path1 path2 in a file with the same name and same content, in which case the script does nothing and proceeds with the next file.This is done for all regular files in path1 and path2. The special file (socket, device, symbolic link ...) are ignored. For folders in path1 and path2 is recursively by:
* Path1 if there is a folder that is not present in path2: in this case, the script displays the path to the folder and asks if you want the folder and all its contents are copied to path2. Reads the user's response and acts accordingly.
* Path1 if there is a folder that is not present in path2: similar at first.
* Both path1 path2 that there are two folders with the same name as the script works recursively on the two folders.
I'd like to have a copy of a web site on my local drive. Then when I make changes to that copy, have those changes automatically updated on the site's server. Ideally I'd like to tell it to only do this for certain file types. Does anybody know of a way to do this with Linux?
I'm looking for the best distributed filesystem to share my home directory among all my computers, and I'm interested in what advice I could get here.
Here are my requirements: 1) It must be completely POSIX compliant, because I've noticed that many programs will break if not. 1a) Must support file locking (i.e. flock()) preferably sharing lock advisories between the clients 1b) Must support hard links, and be able to recognize a hard link connection by looking at the number of references 2) It must have encryption, and security suitable for it to be exposed to the internet. 2a) I would like to use password-less authentication. Preferably SSL client certs (HTTPS style). Static keys (SSH style) are also fine. I would begrudgingly accept a password authenticated system if it used a fairly secure challenge/response algorithm if it met all of my other requirements. (Extra points if it supports PKCS#11 and thus supports smart cards) 2b) Encrypted traffic must be an option. 2c) No thanks to kerberos. It was too annoying to maintain when I tried it before and I don't like passwords. 3) Preferably, it should be stable and fairly easy to maintain. 4) Optionally, it should be tolerant of network drops, and reconnect automatically as needed, because my laptop wireless is a little flaky sometimes.
I have installed Google Earth under Ubuntu 10.10. It runs fine but I can only run it from a Terminal using the command Googleearth. How can I add it to the Applications/Internet Menu?
I need to run application, wich originally wrote for linux, under windows. SMPCallBuilder - application name. There is actually windows version for this program, but unfortunatelly without abillity to run it from console, AND I DO need to run this program from console, because I white program wich should work automatically.
Last week my ubuntu 8.04 os got a Seamonkey browser update ( 70-80MB totally )which I was happy to get. The down side is the new seamonkey wiped out all of my many different profiles and the many different bookmarks that were in those profiles ( 300-350 or so )!I am wondering, and hoping, that there is linux software program available that could independently hold many easily available bookmarks!!Does anyone know if such a program exists and if they have had any experience
I have openSUSE 11.4 KDE (64-bit). Very inexperienced Linux user. I just dragged Thunderbird's icon to the lower panel so that it can be launched quickly. But now when I go to Application Launcher -> Applications -> Internet -> E-mail, the Thunderbird entry is no longer visible.How do I bring it back?
I'm putting a program in my startup applications that is completely GUI, with no command line options. The program is Calibre, if anybody is curious. Is there any way to start this program minimized? Gnome, Lucid, x64
I was wanting to know what's a good programming suite that is comparable to MS Visual C++. I'm also curious about the portability of something I make in Linux, can I make a program in Linux and import it over to Windows, and what would be involved in making it compatible?
I can't get a program (wbar) to run directly from my user account, it fails saying "Image not found -> maybe using a relative path?". But if I run su -c "wbar", it shows up and manages to load the image. I think it has something to do with ImLib2 or whatever loads the image. I checked permissions on libImlib2.so.1 and it's world-readable and executable. Can libImlib2.a be causing this problem, set to 644? What else should I be checking?
I'm interfacing with a device using putty and right now I have to use a reference document to dissect the data I'm sending and receiving. I'd like to build a program that can build packets according to user input and then dissect them upon receipt; basically an [ english <=> proprietary packet structure ] program that talks to the device via USB. The packets come in varying sizes, but are composed of well-defined fields and values.
Is anyone aware of a program which will open .mus music notation files or convert them to .xml files? I have several files from FINALE which I would like to open in Linux, but Linux distros will not allow FINALE to run. .xml files will open in MuseScore.
I have this weird program: dns2tcpc (creates a dns tunnel). I would like it to run at startup. However, I found that the program doesn't work when backgrounded! EX: dns2tcpc -z dns.domain.com -l 8888 208.67.222.222 Works, and I can use SSH to port 8888. However, if I try to background it, like: dns2tcpc -z dns.domain.com -l 8888 208.67.222.222 & Then trying to connect to SSH won't get any response
Now, I know this is a bug in dns2tcpc, and I really don't feel like compiling it or anything (I may have to), so is there any way to "trick" an application into thinking it's running in the foreground (like typing the command from the terminal window)? (Bonus if no addition installation is required)
I have Mint 10 installed, and I am using Pidgin with GFire plugin for my messenger. I am having an issue where pidgin will become greyed out, and I am unable to use the program after it greys out. This happens fairly fast after I start up pidgin, maybe 2 or 3 minutes. Screenshot below, cant post links so trying this.
What I want to do is force my DVD burner to use full writing power on the entire surface of a DVD. This should be able to invisibly damage the contained data, and should work on CDs, DVDs and BRDs too (in theory). I don't want to write data over it, so it's not a matter of having a RW disc or a R one. The result I want to obtain is simply an unreadable disc that does not look damaged. Do you know if there's a program able to ignore a disc being already full and perform this task?
I just installed fedora 15 and this version seems to be missing a lot of the programs in the old version of fedora 14 I had. I just need to know what that program that manages startup applications is called. I used to use it in fedora 14 for a keyboard fix(a key wasn't assigned to the right symbols). I just need to run a xmodmap script to fix it but I don't know how to make it run everytime I start the system.
My requirement is to save files before shutting the Linux machine down, unattended ie: when the user is not near the machine. This is done whenever the UPS battery is about to die, so that the files get saved. open-Office/text-editor applications that can be saved using keystrokes will have to be found from the running processes and keystrokes should be sent to them from a C program that was started in non-graphics stage. ie: from a C program that forks into memory as a daemon before xwindows part starts. How to I send keystrokes to a running application? (like cotrol + F and then wait and then send next set of keystrokes till the file is saved as a new file or as the same file itself), either from C program or a script?
I use ubuntu 10.04 on my desktop pc and i have on my laptop installed Windows XP with Office 2007. The office suite has been activated for the third and last time, because windows crashed on me twice before, prompting my move to linux. while this third activation of office is still working i was wondering if there was some way to salvage this activation, so i don't lose it should it fail, which it most likely will at some point in the future. i was thinking if there was a software that could copy an already installed operating system and turn it into a virtual machine. That software would of course have to run in an windows environment.
I know i can use openoffice, and i do. Its great to get things done quickly, but my college course is specific to office 2007, and i have to memorise the interface to be able to write up procedures from memory.I'm not sure but xp is probably very hardware specific so as long as i run that virtual machine on my laptop with a linux distro i should be fine.
In Fedora 12, I am trying to use a program that uses uinput to inject mouse events to control X applications. This worked with Fedora 9, but doesn't with Fedora 12. I see the following in my Xorg.0.log:
(II) config/hal: Adding input device Prototype IRPointer Device (II) LoadModule: "synaptics" (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so (II) Module synaptics: vendor="X.Org Foundation" compiled for 1.7.1, module version = 1.2.1 Module class: X.Org XInput Driver ABI class: X.Org XInput driver, version 7.0
[Code]...
The device is not a synaptics touchpad, and so the X load of the driver is incorrect. But I don't know how to get X to ignore it's own driver and use evdev. (Or even if that's the right thing.) A general explanation of how hal and evdev are related, for the current X server,
i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.
I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.
I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.
I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?
I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.
for example in a directory(anish). 5 different types files 1- directory 2- .txt files 2- .sh files
like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!
Before I could not even get to identify the Ipaq on the usb port.
Now, after blacklisting ipaq I got this:
Quote:
But still can't see it on the computer nor in media folder, what goes next? I also installed activesync trhough wine, but still no success on actively detecting the device.
On Ubuntu 10.10 x64, when trying to sync via right click "Ubuntu One/Synchroniser ce dossier" Synchronize to Ubuntu One, nothing happens. When within the "Documents" folder I select "Synchroniser ce dossier" Synchronize this folder from the upper right section of the window I get an error message: "Erreur lors de l'activation du dossier. Impossible d'activer la synchronisation du dossier /home/ao/Documents avec Ubuntu One"
ao@Ordi-AO-Ubuntu:~$ u1sdtool --list-folders No folders ao@Ordi-AO-Ubuntu:~$ u1sdtool -s State: QUEUE_MANAGER
[Code]....
Within the Ubuntu One app, my computer is identified and connected.
I wanted to know, I it is possible to synchronize two systems. I�ve got one System on an ext. hard- drive, and one on a desktop computer. An example for better understanding:If I update on the ext. HD and I connect the ext. HD to the desktop, the desktop should be updated to. Or, when I create a new user on the desktop, and I connect the ext. hd, the user should get created to.Is this possible?
I have made a backup of my files on a remote server and I'd like to maintain that backup using rsync. The problem is that the timestamps don't match perfectly between the source and the backup.
What can I do? I'd rather not replace all the files in my backup because there is so much data it would take a very very long time.
Is there perhaps a way to compare checksums and then update the timestamps? Both are low power boxes with no GUI and only BusyBox CLI access.
I have two computers with Ubuntu 10.10 on them, a desktop and a laptop. I have two options for handling them: Try and keep them the same Accept that they have different 'personalities' and branch off their on way
However, I've chosen the first option because I like to keep my files and settings the same on both computers. I am in the process of extracting a tar archive I made of my entire desktop's hard drive (9.7GiB) onto my laptop, so after this is done they will be exactly the same. However, upon turning the laptop on with my freshly-copied system, things will become different. If I take the laptop to school, for example, and do stuff there, then come back home, and do stuff on my desktop, how can I sync these computers (both ways!) with the new changes at the end of the day/week/whatever?
Scenario: An IDE is set up on a Linux desktop box, editing PHP files locally. Every time I save a file, I want this change to appear on the linux server where Apache is running. The server has ssh (and samba and nfs for that matter).As a reference, when I edited files on Windows, I finally came over WinSCP as the exact tool I needed - WinSCP have just this feature present, with initial synch and then continuous update, using the filesystem watch service: "Keep Remote Directory up to Date".
On Linux, one could argue that sshfs could be employed to sidestep the need for synchronization entirely. On windows, a samba-share would do the same. However, I want the IDE to work with local files (on a SSD disk!), not having to go over the network to do PHP indexing and whatnots, which takes ages.But sshfs might be a part of the solution nevertheless - so that the continuous synchronization just needed to be done between two local directories.