Ubuntu :: Profile Restoration Script And Gvfs Permissions?
Feb 19, 2011
I am having a problem with a script I am developing to restore a profile from a snapshot. It is part of a deployment strategy for patron computers at our county library. Every night I run the script to restore the "guest" account from a a preset snapshot. Basically this is what the script does:
1 Kill the guest login session if logged in
2 Copy Firefox places.sqlite to backup # preserve for audit trail
3 Remove /.backup/guest.Backup # previous CYA copy of guest account
4 Move /home/guest to /.backup/guest.Backup # New CYA backup of guest
5 Un tar snapshot of guest to /home/guest
6 Copy saved Firefox places.sqlite from step 2 to guest account
The problem I am having is I am getting an error:
rm: cannot remove `/.backup/guest.Backup/.gvfs': Is a directory
What is the best approach here. I wouldn't think killing the gvfs-fuse-daemon is the solution. I think I just want to temporarily disable it to the restore and prevent the error being generated. I want to get this script ironed out, because I want to deploy this on about 15 workstations.
I just converted to Fedora from Ubuntu and I have some questions: 1. How can I install nvidia driver? There is no 'jockey-gtk' in my fedora :3 (video card is nvidia 7200GS) 2. whats the equivalent for 'ubuntu-restricted-extras' in fedora? (ubuntu-restricted-extras is a package for A/V codecs, Java, microsoft fonts and Flash plugin) 3. I just move data from other hard disk to the fedora ones and now all the folders are locked (lock icon).
I try with: su chown -R fedora:fedora /home/fedora but the permissions are denied for gvfs.
When I use nautilus open my home directory, everything is OK except that the file contents in the home directory are not presented. It seems that nautilus is still waiting and busy.
After that, I try to enter the user's home directory by the Terminal and succeed. I can use 'ls' to display the file in the home directory, But when I use 'ls -a' to print the hiden files, again the Terminal seem to be lock. the 'ls -a' is locked, I fail to 'kill' it.
At last, I find that everything that connects to the behavior which need to enter, delete or just dsplay the /home/$USER/.gvfs will fail and lock, and without any error message.
Recently upgraded to F12. K3B can't burn DVDs. Drive was working fine in Fedora 10 before the upgrade, and I've applied all updates.
Here is the output when run from console:
Code:
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/SlowCoder/.gvfs Output information may be incomplete. (K3bDevice::HalConnection) unlock queued for /org/freedesktop/Hal/devices/storage_model_DVD__RW_GA10N First sec data area: 43:41:33 (LBA 196608) (402653184
I have a directory, say, of /home/user/program/sub-folder/sub-sub-folder/file. Now I take the /file and save it to a backup drive. Later I want to restore that /file to its original directory, BUT I FORGOT WHERE IT CAME FROM!!! Is there a way to know where it came from? Where are website username and passwords stored? Are these some of whats referred to as cookies?
I've already gotten into the .mozilla folder and found the profiles.ini file. My windows XP system has it's Documents and Settings folder on a seperate drive (D:Documents and settings) And I've located the profile (application datamozillafirefoxprofiles) Now all I need to do is put the path into the profiles.ini file in the .mozilla folder in Ubuntu. The problem is I don't know exactly how to format it.
In windows the path is:
How would I translate this into something ubuntu "follows?" I already have the profile name changed as well.
Is booting a previous kernel the best approach to this? I've seen upgrades knock out wireless, and now I just solved a video ordeal. Is there any sort or System Restoration?
I am trying to prepare procedures for email restoration following a file system loss that contained user Maildir directories. Assuming that my most recent backup is earlier than the last time that many users received and downloaded email, the restored mail directories will not contain messages that were previously received and downloaded to clients following the backup and preceding the crash. This is not a problem in itself, however, it does appear to cause problems for the email clients.
My desire would be for email clients (outlook, outlook express, thunderbird) to properly recognize the messages that currently exist on the server, ignore previously downloaded messages and download newly arriving messages.The behavior that I am seeing is that the email client fails to recognize that any new messages exist and fails to download any messages at all. By removing the dovecot.index... files and the uidlist file, the clients will download ALL messages that are present in the "new" and "cur" directories even if previously downloaded. This is also an undesirable outcome.
When I plug in my digital camera, it mounts it as a gvfs-mount. I have a few problems with this:
- It takes 2 times: I have to plug it in, wait, unplug it, plug it back in before it shows on the desktop - Don't have command line access: Nothing in ~/gvfs after mount and I cant do anything with gphoto2://[usb....] - Cant access it from another desktop instance: gvfs-mount -l lists it when I'm on a terminal on the desktop, but not when I'm ssh'ed into the system.
Really I just want to mount, rsync photos for backup, unmount and be done with it (all this in 3 lines of a shell script that I'll add to udev so its fired when ever the camera is plugged in)
dmesg: usb 1-5: new high speed USB device using ehci_hd and address 8. Configuration #1 chosen from 1 choice lsusb: Bus 001 Device 008: ID 04a9:3176 Canon, Inc. PowerShot A590
How can I mount it as a normal mount (perhaps something that automatically shows up in /media or something).
I installed ifuse (a utility to mount your iPhone or iPod touch via the USB cable) and I want this to be the default way my iPhone is mounted when I connect it. Currently, when I connect it, it gets mounted by the gvfs (Gnome virtual file system) at ~/.gvfs/iPhone. Either one change should be made (the 'default command to execute when this device is connected') or two changes (tell gvfs not to mount, and tell ifuse to automount). I don't know how I can get this to work.
-add all network shares to the nautilus favourite places
-our script is working fine if you are running the script manually from an opened session
-it's not working when placed in /etc/profile.d
What the script is doing:
-reading the .bat script name from the AD using the user login
-mounting the netlogon share
-reading the content of the netlogon script
-finding the network share names and adding them to the nautilus favourite places
What is failing: it does not mount the netlogon share using gvfs-mount Maybe because it's run too early in the process? note that a new user may log in any time, and we want this to be entirely automatic. So we cannot put the script in /home/login/*, as the home is not created yet at first login.
I have the gvfs-fuse package installed, and if I understand it correctly it should make GVFS mounts appear in ~/.gvfs.
However it doesn't, when I mount something with GVFS (e.g. my Canon digital camera using PTP), I can only access the files from Nautilus, not from command line.
setup consist of three machines: 2 servers (A and B)(ubuntu) and my local laptop Server A is a company controlled server which holds project data Server B is our office local server, which we use for development purposes. The problem occurs when i ssh from my local laptop to server B. After loggin in, i execute a script to transfer data from A to B. This script mounts server A using gvfs-mount. It fails to mount completely and gives me the following error
Code:
Error mounting location: volume doesn't implement mount
However if i log onto server B, using the servers keyboard and monitor (using a gnome session) i can execute the line. To verify that it's something related to the ssh login, i tried the following: (My local laptop is also running ubuntu) from laptop open a terminal. See the gvfs mount work as expected. open another terminal and ssh localhost tried to execute gvfs-mount from the local ssh session and i get the above mentioned error. After googling a bit, i found that it might related to dbus (which i know _nothing_ about) and i tried
Code:
dbus-launch gvfs-mount and then tried to gvfs-mount server A, but it fails again.
As stated , gvfs is extremely slow when browsing smb shares.Mount cifs runs in a third of the time gvfs takes.Often gvfs hangs up while listing.I've searched and see tons of noise about it but no real signal.Does anyone here have any info on gvfs as to why it's so slow browsing?"Name : gvfsArch : x86_64Version : 1.6.2"
I have a UUID file that has grown to 8.4 gigs... and I don't know what to do. Its sucking up all the free space in the partition. I guess I will have to delete the file but I don't know how to do it properly.I suspect this is a backup of all the data I have been moving around between drives recently.
I need to check and see that dbus, udisks and gvfs are running correctly, how can I check them?
I'm running only LXDE on a custom install of Lucid I did and I can't get my usb hard drive to automount properly and I was told by an LXDE developer that I need to check and make sure these three are running ok.
I need to set Nagios and permissions. I get one critical error in Nagios regarding disk. It says: DISK CRITICAL - /home/administrator/.gvfs is not accessible: Permission denied I guess Nagios need a permission to access the administrator folder. How can I set up a permission to fix this error?
I already posted a link in the ubuntuusers.de Forum (german) [URL].. But I haven't found a solution yet. The problem is, that I wanna set an Emblem in Nautilus via a Script that is called by cron. The problem happens in that line
Code: /usr/bin/gvfs-set-attribute -t stringv /path/to/file metadata::emblems minus14 thats the error: Error setting attribute: Setting attribute metadata::emblems not supported I already tried to call the script via /etc/crontab and /var/spool/cron/crontabs/meles, i tired it with Code: /path/to/script
I've been using ubuntu earlier and when connecting to a samba shared folder it appeared in /home/user/.gvfs folder. I can browse the samba share, it's ok, but I prefer Midnight Commander than Nautilus when copying files. So, where does it reside in Debian?
1.crash & warning showed as soon as dekstop was prepare ( note that i had not even installed f14...i was about too but this error drive me crazy and make me confuse ? )alright i got that , here is all u need ...gnome disk utility 2.32.0-1fc14reson process/usr/libexec/gdu-notification deamon was killed by signal 6(SIGABRT)crash count :11.crash & warning showed as soon as dekstop was preparegvfs crash 1.6.4-2,fc14reason process/usr/libexec/gvfs-gdu-volume monitor was killed by signal 6(sigabrt_crash count :2so now tell wheather i should install f14 frm this cd or make another ?
I have a Debian testing box with Xfce (no Gnome, no Nautilus). It has all gvfs-related stuff installed, including all backends and fuse interface. But any attempts to gvfs-mount anything (like sftp://... or smb://...) fail with error opening file: Operation not supported, and gigolo shows only 'unix device (file)' in the list of supported protocols.My ~/.gvfs has rwx permissions, and I'm a member of fuse group; other fuse-related stuff works for me.
I loved Gnome's Nautilus and FTP integration and being able to mount a remote FTP directory as a regular bookmark/directory, and double clicking any remote files to open in any unmodified program. I also loved editing text files with GVim.
However, if I double clicked file on Nautilus to open a text file in Gvim, then saving a file will take about 10 seconds and GVim will hang for that amount of time. The major irritant is that I cannot continue editing while the text editor is waiting for the write to finish, this delay interrupted my workflow and thought process and saving becomes a painful process. The other problem is that I don't think simply uploading a file should take that much time.
I'm aware of GVim's internal FTP support, but they are not as well integrated with Nautilus's FTP and it suffers from the same problem.
So a few question:
Is there a way to make GVim or GVFS to save in background while I continue editing? Why is GVFS so slow? Is there any way to set GVFS to use a single persistent FTP connection instead of creating a new FTP connection each time?
I have a samba based domain controller which has a share with limited privileges for different usernames. When I log in the gvfs wizard in ubuntu everything is all good and I can access all the files I am supposed to be able to.
I suspect it has to do with the owner and group of the directory not being a user in the local machine. When mounted via gvfs the owner and group are the local user and group whereas when mounted via the mount command the user and group are foreign uids and gids.I had thought that gvfs would have relied on mount() system call under the bonnet but is this not the case as gvfs mounts don't appear in the list when you type 'mount'.Can this be solved in the standard smbfs mount or is gvfs simply a better implementation that does some magic behind the scenes to set the owner and groups in accordance with the smb protocol?
I recently upgraded to Squeeze and in general I'm loving it.One problem I'm having is that I can no longer open remote files via SCP/SSH using GVFS from Geany.This functionality still works in gedit.I've checked the syslog and can see no clues, and I also can't find any references on Google.
after update f12 to f13 geany stopped to work correctly on remote storage (sftp). Geany opens file correctly, but when I try to save, it saves empty file. I tried "notepad" and "gedit", they work good on f13. Geany on f12 worked correctly too.