Why is it this doesn't seem to happen any more? I recall some time ago, once an application had access to a file, it would lock out other applications from accessing it (the file). But recently I have noticed one can have the same file open in different apps and the file can be changed successfully by one app without "upsetting" any of the others. What's changed?
About a month ago, I had something go very wrong in my Karmic and my account (with an encrypted home dir) was essentially inaccessible. But I was eventually able to create a new account, and retrieve all my data, but now, for some reason, I cannot edit the 'Startup Applications'.
I open its window and make any changes (which the window seems to accept), but then when I hit close, and restart it, it has been reset to everything I had set from my other account. Which makes little sense.
After that problem, I did have some trouble with permissions of certain files, and am afraid that I inadvertently gave up permissions on my startup applications, but can't imagine what I'd have to do to fix it.some guidance?
Whenever I save a text file edited with LibreOffice, I get a new, locked file which can be identified with its "~.lock" file prefix. This locked file prevents access (probably for security reasons) to the original file. However, this is a serious impediment as it forbids any further editing of the original file or document so long as the locked file has not been removed. Though erasing this locked file (which can be made visible with "Ctrl-H" if hidden) should free the original, this in fact is not the case. how to unlock these locked files?
I have recovered most of my USB drive, but a couple of folders are locked and look like files. I'm unable to change permissions on them and "You are not the owner so you cannot change these permissions." appears in the properties tab. The owner is "184444735 - user #-184444735" and the group is "17414907" which makes no sense to me. Most other folders and files are OK. The disaster I recovered from was a partition move that failed. I used fsck to get most things back. Any idea how I get these couple of folders (the most important one is one of them "Documents" of course). to be visible?
I dual boot into Arch Linux and OS X 10.6 on my MacBook pro. I synced my UID between both OSes and created an HFS partition (with no journaling) to use as a shared home/Users partition. For the most part it works just as I'd expect, but sometimes when I'm booted into OS X certain files are "locked" (when I get info on a particular file the "Locked" box is checked under the "General" pane. I can resolve the issue by manually unchecking the box) and/or I get "Operation not permitted" when I try deleting or chmod'ing a file. In both cases I don't see anything out of the ordinary on the permission bits displayed with ls -l, except for a trailing '@' character in the position where the sticky bit would normally occur:
This '@' character shows up on ALL normal files, so doesn't seem to be linked to the locked/operation not permission situation.
On the Linux side of things I never have permission problems. To the best of my limited knowledge and experience with ACLs I've not found any ACLs on any of the files in question.
For what it's worth, I do most of my file editing using emacs (Aquamacs in OSX), is it possible it is setting weird permission bits?
What is the "locked" setting that OS X uses and does it have a permission bit equivalent (so at the very least I could recursively unlock all files in my home directory from the terminal) why might some, but not other files get "locked" when booting into OS X what is the meaning of the '@' character?
I want to use my flash drive, but I had files I put on using Ubuntu a few weeks back. Now I can only open them in read only copies and can't remove them, from the flash drive. I also have had some issues with file permissions on the hard drive. I was planning on reinstalling after a backup but now I don't know if that would be logical because the files might all be locked. I wanted to reinstall because I have issues with USB and these file issues.
I've just started using the amazingly useful Ubuntu One, but I can't sync files from my computer, due to the pesky locked keyring, default, which wishes to be unlocked. Unfortunately, I have no idea what the password for the default keyring is. Is there any way I could find this out? I've included a screenshot, just in case.
I have a laptop that I have been running 64bit lucid on after some problems with NFS Samba and SMB the installation got a bit trashed after some workarounds I removed nautilus completely and rebooted and got the looping login screen........ then I tried a suggestion to purge gdm but that left me with a blank grey screen and a mouse pointer. X11 has failed so I have no graphics
I can login properly to the drive from the terminal and can access my drive contents... I cannot load dolphin or nautilus from the terminal. So I have booted from a live cd and have moved some of my data to another partition but some is locked to the owner (me). How can I get my locked data opened so I can copy or move it to another drive, so I can perform a fresh install.
Nautilus problem in ubuntu 11.04 I recently upgraded and now having problems with nautilus.
1) I don't know for sure if it's related but all of the icons on my desktop (files located in desktop) have little lock symbols in the upper right-hand corner of the icon.
2) I cannot open files from the desktop (because they are evidently locked)
3) I cannot open any of the folders listed when I go to "Places" (between Applications and System top of the screen) Running nautilus from the terminal, I CAN go to different folders and open files in the usual manner.
I'm a bit worried about "too many mutexes" in my little curses-based app and would like to get confirmation/opinions that I'm doing this right. I've got an array: int nums[60] I've got 61 threads. 1-60 are doing math on the value in their array index (ie: thread1 increments nums[1], threadN increments nums[N]), then sleep(1) The 61st thread is my curses thread which does a for-loop over the array and prints out all the values to the screen, then sleep(1)
Right now, I've got 1 mutex which gets locked/unlocked each time one of the 60 threads needs to update its array-index with a new value, and the 61st thread locks the same mutex just before the for-loop beings reading the values and unlocks after ending the loop.
My questions: A) Does the above seem OK? (I know it's ok, cause everything works right now but would like opinions on it) B) Do I even need the mutexes since 1-60 only ever update their own index and 61 just reads? C) If I do need the mutex protection, is there a better, more efficient way?
I'm sure I'm missing something pretty obvious, but I can't for the life of me stop my pysqlite scripts crashing out with a database is locked error. I have two scripts, one to load data into the database, and one to read data out, but both will frequently, and instantly, crash depending on what the other is doing with the database at any given time.I've got the timeout on both scripts set to 30 seconds: cx = sqlite.connect("database.sql", timeout=30.0)and think I can see some evidence of the timeouts in that i get what appears to be a timing stamp (e.g 0.12343827e10 1) dumped occasionally in the middle of my curses formatted output screen, but no delay that ever gets remotely near the 30 second timeout, but still one of the other keeps crashing again and again from this. I'm running RHEL5.4 on a 64 bit HS21 IBM blade, and have heard some mention about issues about multi-threading and am not sure if this might be relevant.
Packages in use are sqlite-3.3.6-5 and python-sqlite-1.1.7-1.2.1, and upgrading to newer versions outside of RedHat's official provisions is not a great option for me. Possible, but not desirable due to the environment in general.I have had autocommit=1 on previously on both scripts, but have since disabled on both, and am now cx.commit()ing on the inserting script and not committing on the select script. Ultimately as I only ever have one script actually making any modifications, I don't really see why this locking should ever ever happen
I have just recently setup our network with an Ubuntu server which is being accessed by one Ubuntu workstation with nfs, & one XP workstation with Samba. Following instructions from the web, I set permissions like this:
sudo chmod 777 /media/Data sudo chown -R curley:curley /media/Data The problem is that files created in Samba are locked from nfs & vice/versa. I am assuming I need to add the nfs network share to the Curley group or use something more global than curley to make this work?
Samba is working ok from Ubuntu when browsing through Nautilus, but there is no access to shares when doing things like uploading or downloading files to the web (the "save file" window only shows local folders). So I guess I wouldn't mind just using Samba if I could map a folder in Samba to solve that problem.
just installed Peazip 3.1 from the repositories, and whenever i try to compress any file, i get a "some input files cannot be read (locked or corrupted)"
I got a free flash drive from Columbia College that has some files I want to remove. I did the right click thing and they are read only. I tried to change to read and write but I got. Sorry, could not change the permissions of "ColumbiaCollegeViewbook.pdf": Error setting permissions: Read-only file system
Now this thing only shows up as 5.4 MB Yea that is right Megabytes! But I have a plan for it. So is there any way to get the files off so I can put mine on it?
This is a real newb's question. I can't get to my files on a NAS once I'm in an application.ExampleI have a text/graphic file to open from the NAS. I can see it in Nautilus, and can double-click there to open in OpenOffice/Gedit/Gimp. Once I'm working I want to open another file so in my application I go File > OpenFrom there I can't see the NAS. (Interestingly I can see a locally-connected USB hdd).Do I really have to go through Nautilus every time I want to open something from the NAS?
I've heard a long time ago that linux applications are built by having a CLI first, and later writing a GUI above that. Does someone have any reference/links about that subject? I'm interested in the principles of this method.
into my php script, it works fine. However, if I put
Code:
$r = exec('myX11application'); echo $r;
it doesn't (to be precise, the script still works, but myX11application is not executed). Of course, scripts are run by user "apache", who doesn't have access to X11 server and doesn't even have DISPLAY variable defined.I installed virtual framebuffer Xvfb, created a small bash script:
Code:
Xvfb :2 export DISPLAY=:2 myX11application
and called it with exec from php, but it still doesn't run since it looks like Xvfb can't start if the normal X server is running (I need that for development purposes). The reported error from Xvfb is
Code:
(EE) config/hal: NewInputDeviceRequest failed (2)
Is there a solution to have php running your X11 applications with normal X server running?
Is there something like GtkRecentManager that will give you a list of recently-used or most-used applications instead of files, or will GtkRecentManager give you apps too?
I'm new on software development and I interested which SDK tools are best for creating application for WM platform, Android etc. Also my another question is on which distribution of Linux is best to do this?
I am using ssh on windows XP to remotely connect to a UNIX server that provides web application development services. The server is called snapper and is also designed to run computer-intensive engineering and GIS applications. I have been able to successful access the server. However, when I try to run an application I get an error message saying:Application initialization failed: no display name and no $DISPLAY environment variable
The ANSYS Launcher could not be started The most likely reason is that your DISPLAY environment variable I either not set (i.e. issue setenv DISPLAY dev:0.0 where dev is your device name) or is set to a device that is not accepting the connection. I was hoping someone could explain to me what the DISPLAY environment variable is and how to set it.
I run a OpenSUSE 11.4 64 bit with Gnome & KDE desktop. When I run my Gnome desktop all my KDE applications are missing their usr/share/icons/hicolor/48*48/apps/nameofapplication.png picture. The KDE applications work, and when I go to that destination file the png. picture is present. When I run a KDE environment, my KDE applications (that are missing in Gnome) have their icon 48*48 picture. Any idea why when running the Gnome environment, there is a missing path to the png. file for only the KDE applications?
Can I assume that Audible ( aa files ) cannot be handled by Linux in any way?I have paid and downloaded some audiobooks from Download Audio Books, iPod And Digital Audio Books | Downloadable Online Audio Books | Audible Audiobooks | Audible.com and I cannot find any way to get them on to my ipod.I've tried Wine with Itunes but that doesn't work and one or two other 'windoze' progs to convert to mp3 but non of them work.
I'm wondering if you can share some tips in regards to finding .conf files in programs when installing using package managers. I'm scratching my head on the fact that when you install a program through yum/apt-get, I don't know what and where the software is being installed at. In Windows, I know that when it installs an application, it goes into the Program Files directory, it's that simple.I know Linux has predefined directories for applications but sometimes it installs configuration files in /etc or some other locations in /usr which I have a tough time sifting through.
Is there a way to trace what .conf or any files for that matter which relates to what software that needs it? It's just hard for me to understand what file relates to what application at the moment. As much as I would like to learn more about Linux, this process for me takes up alot of time. I hope you can help me out on this one.