Ubuntu :: Error While Setting Emblems With Gvfs-set-attribute And Cron
Aug 26, 2010
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
Recently installed Fedora 11 from CD on eeepc900HA. Update manager suggested 402 updates available. trying to update I get the following traceback error report:
Traceback (most recent call last):
On trying this process a second time after having selected specific packages I noticed that a prepare machine for upgrade package (not selected by me) seemed to be where the process stalled.
Trying a third time with attempt to upgrade some (random) python packages I get the same result via a system/admin/upgrade or download software .
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.
Which command should I use programmatically (in ldap.h) to change only ONE of the attributes above? say i only want to change the userPassword from value secret -> notasecret
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
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 ?
Traceback (most recent call last): File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 1830, in _runYumTransaction rpmDisplay=rpmDisplay) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3813, in processTransaction pkgs = self._downloadPackages(callback) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3837, in _downloadPackages probs = self.downloadPkgs(dlpkgs) File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1372, in downloadPkgs self.plugins.run('predownload', pkglist=pkglist) File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 177, in run func(conduitcls(self, self.base, conf, **kwargs)) File "/usr/lib/yum-plugins/presto.py", line 577, in predownload_hook (problems, more) = downloadPkgs(conduit, pinfo, download_pkgs) File "/usr/lib/yum-plugins/presto.py", line 419, in downloadPkgs cb.start(text="<delta rebuild>", size=rebuild_size) File "/usr/lib/python2.6/site-packages/urlgrabber/progress.py", line 129, in start self._do_start(now) File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2551, in _do_start self.updateProgress(name, 0.0, "", "") File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2593, in updateProgress pkg = self._getPackage(name) File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2534, in _getPackage sections = name.rsplit('-', 2) AttributeError: 'NoneType' object has no attribute 'rsplit'
I am in Ubuntu 10.04 with its standard desktop environment. Exaile was working great. Now, suddenly it refuses to work. It brings up the splash/loading image and then dies. It works fine under a different user account. I completely restarted, completely uninstalled, completely reinstalled through the Ubuntu Software Center. No luck. I then tried to run it via a terminal.
Here was the output: wmeler@ubuntu1004:~$ exaile INFO : Loading Exaile 0.3.1.1... INFO : Loading settings... INFO : Setting up deferred idle manager function... INFO : Loading plugins... INFO : Loading collection... INFO : Loading devices... Traceback (most recent call last): File "/usr/lib/exaile/exaile.py", line 52, in <module> main() File "/usr/lib/exaile/exaile.py", line 49, in main exaile = main.Exaile() File "/usr/lib/exaile/xl/main.py", line 84, in __init__self.__init() File "/usr/lib/exaile/xl/main.py", line 189, in __init location=os.path.join(xdg.get_data_dirs()[0], "covers")) File "/usr/lib/exaile/xl/cover.py", line 121, in __init__self.load() File "/usr/lib/exaile/xl/cover.py", line 330, in load data = pickle.load(f) EOFError Exception in thread Thread-4:Traceback (most recent call last): File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner self.run() File "/usr/lib/python2.6/threading.py", line 484, in run self.__target(*self.__args, **self.__kwargs) File "/usr/lib/exaile/xl/hal.py", line 66, in connect logger.warning("Failed to connect to HAL," AttributeError: 'NoneType' object has no attribute 'warning'
create a tar file from a list? My script returns the error: AttributeError: 'list' object has no attribute 'startswith' I want to create a compressed tar file containing the directory /usr/lib and the files in the list assigned to variable b.
code:
import tarfile tar = tarfile.open("backup.gz", "w:gz")
I've read a lot on how to setup a task in crontab. I think I understand how to edit the file, but when I try to save the changes, it says "no crontab for xxx." Then it says that it cannot create a new crontab. I have ubuntu desktop 9 running as a webserver. I've read the details in these posts and it isn't helping.
I am having some trouble setting up a cron job that creates a tunnel to my remote machine to work correctly on Ubuntu 9.10. The setup looks like the following:
(1) myscript.sh (executable) Code: #!/bin/bash ssh -2 -x -i /home/user/.ssh/id_rsa.prv -L 3128:myremotemachine:3128 myaccount@myremotemachine (2) crontab -e, added the following lines:
While booting my Linux System (Red hat Enterprises edition 5.1) I am getting a messsage as below , the message is getting generated during file checking on first boot. Extended attribute block 18875430 has reference count 2 , should be 1. and after this system remains in the same sate.
I wanted to add some custom emblems so I could label my folders more effectively and after a little bit of work, I figured out how to do it and I thought I should share that info with the group. The first thing to note is that the emblems are stored in the folder /usr/share/icons/gnome/32x32/emblems. The first problem you are going to run into is that you don't have permission to add files to this folder. The way I got around this was by changing the owner of the folder to myself. I am using a computer for recording, so my user name is "band." Change that to your user name.
Code: sudo chown band "/usr/share/icons/gnome/32x32/emblems" After you do that, you can paste your icons (I would use the .png format) into the folder. Next, you have to resize your icons so they are 32x32. You can do this by right clicking on the image then Open With > Gimp Image Editor. When Gimp starts up, go to Image > Scale Image. Change the width to 32. If your image is square, it will automaticly change the hight to 32. If it isn't then you can either force it to be 32 by unchecking the chain icon between the width and height, or you can resize the layer so it fits within 32x32. Then File > Save. If it is not a .png file, I would use Save As and save it as a .png by replacing the current format (.jpg, ect.) to .png. The Gimp will automaticly change the settings so it save it to the right format. I know for some of you these steps were obvious, but I thought I should help people out who aren't too familiar with the terminal or with the Gimp.
I just upgraded to Natty, and while U1 is working, it no longer changes the files & folders emblems according to the status of the item (not synchronized, doing synch, synchronized). I'm searching for hours and found nothing on that.
In my orig. post I did not state that I was now using gnome in Ubuntu 10.10.I have "light sensitive eyes" and I have to be able to change the back ground colors from white to dark in such programs as Nautilus and editors. This is the main reason I've used KDE for years, it's very easy to change in KDE. I have read the help from:(http://library.gnome.org/users/user-...mblems.html.en) and every thing I can find "here" on changing the background colors to no good. Heres whats happening:I open Nautilus>Edit>Backgrounds and EmblemsI select Patterns>Drag a pattern title to an object to change itBut it don't work. I've tried the same thing with "Colors" and itdon't work.I have dragged using right mouse button, middle button, and left button and they don't work
Well I was curious to try Nautilus Elementary from its PPA. The install was fine, but the search function was broken. After having issues removing the PPA and my package manager having errors I have old Nautilus back, but without its old Backgrounds and Emblems in the Edit menu. I tried doing remove completely of Nautilus and its related packages but I don't have the old nautilus back as I need it.
I don't want to have to reinstall everything just for one application, as it means configuring settings and installing the rest of my apps all over again.
I've recently acquire a new HDD and I've decided to use it for multimedia files. So I've edited my fstab so it mounts this disk at startup.
What's more important, I've bind the folders in that disk (i.e. media/theDisk/Music) to a folder in my home directory (i.e. /home/me/Music) so I can have all the folder mounted at home (Mount the disk in /home/user is not possible because Nautilus start to whim about not being able to set some files in .nautilus or something, I believe its because it does not know which disk to save to or something like that)
So everything works fine, except for folder icons. When I open the home directory, all folders in the disk are shown with the Desktop default icon. Even if I change them (whether from home or from the mounted disk) the next time I open the home directory they are shown with the Desktop icon. Emblems are lost too.
my folder emblems just stay grey. I don't know what it is I did that caused it but when I try to change the theme the folder emblems just stay the same (grey and simple) but it looks different on my panel.
since I setup my system so that I'd receive system errors via email, I get an email each day from /etc/cron.daily/apt.Just wondering why this is, how I can fix it, or if I can just remove apt from cron.daily?uote:
To: root@jon-desktop Subject: fcron <systab@jon-desktop> run-parts --report /etc/cron.daily /etc/cron.daily/apt:
I've been an ubuntu user for a while, and just started trying out fc15. In nautilus, there used to be an "emblems" side panel, as well as an emblems tab in the file properties window. (emblems being the little overlays you could assign to files or folders, like a tick or a cross or a smiley fdace or whatever). Is there some package I need to install to get this functionality back? Has it never been present in fedora, or is it a change in gnome3 / fc15?
Code: #!/bin/sh chown -Rc steven:users "/home/steven" I have more lines in the script but each line does the same error. This is run in a cron job but it always returns.
Code: chown: cannot access `/home/steven ': No such file or directory But it is a valid directory I have even tried adding an / and even a space on the end and still same error.
I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.
I have a desktop environment with Apache2.(If someone asks why desktop to run Apache2, its because the desktop must display a local website)When I update the html files from a windows box it is being copied in a home/user folder.Cron now has to copy the files with r to the localhost area.sudo cp -R home/myself/Downloads/* /var/www/ works fine:The script containing just that one line is in a file in my /home/myself/Documents folder named: copy_site_localhost.Cron entry in turn was created with the command: sudo crontab -e and the entry is:*/10 * * * * /home/myself/Documents/copy_site_localhostThe error in the syslog file in /var/logs is as follows:
.......CRON[1234] (root) CMD (home/myself/Documents?copy_site_localhost) .......CRON[1236] error (grandchild #1234 failed with exit status126) .......CRON{1236] info (No MTA installed, disregarding output)
I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).
The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.
The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.
I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)