Ubuntu :: All Folders Keep Executing Eclipse / "undo" This Custom Command?
Oct 26, 2010
Hey everybody, it seems I did something kinda stupid. So I tried right clicking on a folder and going to "Open With..." then under "Other Application..." I then selected custom command and typed in "eclipse." I thought I would just be able to open the folder as a project, but now it seems it's screwed up all of my folders. Now every time I try to open a folder in the GUI, Eclipse executes. I can still go through folders, delete files, etc. through the terminal, but I'd like to have GUI access as well. Does anyone know how to "undo" this custom command so Eclipse no longer executes?
I made a custom command to run when a cd gets mounted but now I need to change it.....how do I do that? I tried going to file management but the option wasn't there. I'm using 10.10..
I created a script, named mount_share.sh (in /etc/init.d), to mount the shared VirtBox dir at boot so I don't have to do it manually every time I load the VM. The script contains the following:
#!/bin/sh sudo mount -t vboxsf -o uid=1000 osx_shared /home/rob/ubuntu_shared
I made it executable:
sudo chmod +x mount_share.sh
Then I assigned it to run at startup:
sudo update-rc.d mount_share.sh start 51 S .
I'm thinking it may be either:
1) A pathing problem to the ubuntu_shared dir but, if I run "ls -al" from inside /etc/init.d, it does find the ubunt_shared dir
2) Trying to run as sudo from inside the script. But, since all startup scripts run as the root user, I shouldn't even need the "sudo" in there which I have tried to no avail.
I suppose I have a very common problem. While working on my project, I accidentaly hit 'rm file.tex' instead of 'rm file.aux' in the terminal of my Debian and now all of my work is gone. Could you please tell me if it is possible to undo this command? If soI should add that I am just a beginner in using the Linux system and though I have found some advice on my problem on websites, I am unable to follow it on my own. In other words I desperately need somebody to guide my through that process.
I recently upgraded the kernel in 9.10 to fix a problem of no sound on my laptop but this killed wireless However I could still boot into the previous kernel to use wireless (albeit without sound). I found a fix for this problem on the forums: [URL]... but It didn't work so well in my case. Specifically after executing the command
[Code]...
If anyone knows how to undo the rmmod dell_laptop command or has some insight into what I might be able to do let me know
I am looking to assign custom icons to my folders. Like the game folder having a joystick , Ebooks folder etc. but sadly i am unable to find any thing on google. Can any ome suggest some good places to look
I wrote a shell script and tried to execute it in separate terminal using command 'gnome-terminal -e <script>'. When executing first time, it went fine.From second time, I am getting error 'There is error creating child process for this terminal' repeatedly.
I have a php file that I need to execute via a cronjob. This file should be run by the www-data user as its a file in my /var/www/project folder. When I run this file under root (php -f cron.php) everything works perfectly, but I want it to run under the www-data to be safe. Before I run it vai crontab I tried it via command line as the www-data user and I receive errors:
Fatal Error: Allowed memory size of 8388608 bytes expired (tried to allocate 232 bytes).
But when I run it as the root user I get no errors and everything works correctly. The file cron.php is used to process automated tasks in my CRM. So I don't really want to have the root user running a crontab every few minutes for this.
Must the www-data user be given more permissions? I am using Ubuntu 6.06LTS PHP - 5.1.2 Apache - 2.0.55 MySQL - 5.0.22
I have a some c source code files that i have to copy to linux machine from a windows machine over a network. This source code folder has to be copied into a particular directory structure in the linux system at the other end. After copying the file into the appropriate folder in the linux server i have to instruct the linux machine to make(using the make file that is there with the c files) this source code from the windows machine. Does anyone have any idea in regard to how this can be implemented?? i am trying to have a gui client that has the above mentioned options(copying and inserting the c files into the appropriate directory and then for making the files and getting the executable.)
what we are trying to do is, to let the customer click a button in the web browser, and then the web server to call a shell script to do the work. The output from the stdout && stderr of the script should be displayed in the web browser once finished or timeout, along with the exit code of the script.
The shell script is however not on the web server, but on another app server. So to call this script from the web server as the identity 'tomcat':
Code: $ sh appuser@app-server:$appbin/app-script
The .ssh/id_rsa.pub thing is done, and we have no problem doing this in the command line so far.
Our loaded ex-colleage has left us the webpages (jsp) with code like these:
Code: <%@ include file="jsp_functions.jsp" %> <% String cmd = "sh $appbin/app-script"; ExecResult r = new ExecResult();
im searching for this answer now a pretty long time and i know that many similar questions where asked and i all looked themIm trying to run a the command "vncserver" on our opensuse11.2 server when its booted.many posts here endet in "put a sh script into your /kde4/Autostart" but that didtn help for me because the server runs without a screen and normally nobody is logged in. When i logged in that worked fine.i also tried to add the command "vncserver" to "/etc/init.d/boot.local " but that didnt work too. i think its to early executed to work.i also tried to activate the service to start up at boot with chkconfig vncserver start but the service vncserver is "unknown". when i type vncserver into the console after logging in everything is alright.you see i really tried a lot and searched a long time at google and in this forum but nothing worked
I tried to execute a shell command by M-! cmd RET but it did not work.M-! does not turn up in the microbuffer no matter how many times I press Alt+!.But if I go to Tools menu and select Shell Command... option then it writes M-! to the microbuffer and everything works fine.What is the problem here?
I want to fix my dns if I issue command service named restart it just wont execute the command all it say is connection refused error from rc.d just cannot figure out what the problem is my server is ruining on red hat Linux 9 which is also my proxy server.
I'm trying to run an application from the command prompt. I've set the path in .bashrc. My executable file and all other files needed by it are saved in the same directory as the path. When I enter the executable name to run it, I get an error message saying that the command is not found.
If I type this manually on the command line, it works
Quote:
ssh -Y user@machine 'firefox &'
I ssh into the remote machine as the named user and pop an instance of firefox from that machine back to my own. If I put the same thing into a shell script though, it fails.
Quote:
#!/bin/bash ssh -Y user@machine 'firefox &'
I'm just left sitting at a command line on the remote machine. Why does the script fail and how can I make it work?
I need to execute an external command with Python from Web. I know there is subprocess module that executes external programs but I'm trying to execute a command registered for the execution of a program. In this case when I execute my file in the shell everything is Ok, but from the Web it doesn't work.
I have the following command:ssh $USER@$HOST "ls /ops/pkg/ec/`grep "PKRTS" /ops/pkg/ec | awk '{print $1}'`* > /tmp/tmp_file"What the above SHOULD do..is, ssh to the host then execute the command.The command should first execute the grep and awk between the back ticks, and generate a file name, then ls using that filename* and write that data to a temp file.However, it executes the grep and awk before even SSH'ing and the command that goes to the server is simply an "ls /ops/pkg/ec/* > /tmp/tmp_file" since the grep and awk return nothing on the local machine.
I want to execute a awk command, which reads from txt files and sums the numbers from the first column for those listed only inside a <init> block -- The awk command is like
So, I want to execute it inside a perl script, and execute the awk command for the infile which is also defined outside awk loop, ie doing something like
Code:
foreach $infile (@ARGV) { $gzin = gzopen($infile, "r") || die ("Couldn't open file $infile "); # No. events and cross-section from current file
0509-036 Cannot load program /usr//bin/ssh because of the following errors: 0509-150 Dependent module /homepath/server/bin/libcrypto.a(libcrypto.so.0.9.8) could not be loaded. 0509-153 File /homepath/server/bin/libcrypto.a is not an archive or the file could not be read properly. 0509-026 System error: Cannot run a file that does not have a valid format.
I use a Dell inspiron 1525, with windows 7 and fedora 8 in dual boot. Ihave broadcom 4310 wireless card to use.. how ever i could not activate my wireless.. so i guess this the right place where i can get a solution to the problem. After installing the ndsiwrapper by yum, i tried to execute the command ndiswrapper -i bcmw15.inf This returns with an error couldn't open bcmw15.inf: No such file or directory at /usr/sbin/ndiswrapper line 219.
I had a folder I didn't want named '~', so from the command line I typedrm -rf ~and accidentally deleted my home folder (since ~ resolved to /home/username). Is there any way back or do I basically need to recreate the account from scratch?
I have been using Eclipse to program in Java for a long time, and have been using Jigloo for most of my GUI design. Recently I decided to try out the C/C++ plugin. I tried installing it, but it did not work. After many attempts, I finally gave up. However, after uninstalling it I found that Jigloo had stopped working. Any other plugins I try to install now also don't work. I have tried uninstalling and reinstalling plugins, and reinstalling eclipse, but nothing I have done fixes it. Although eclipse says that the software has been installed, nothing shows up in the features list or the plugins list.
Another problem: When I install eclipse from the repositories, it doesn't install a bunch of libraries and eclipse cannot recognize standard java files.
I recently had to reinstall Eclipse on ubuntu 10.10 and i did it twice, once just removing eclipse package, and the second time removing every package associated with an eclipse install.when i launch eclipse I go into my package view and select a package and then double click on a Java file.
I was messing around with Compiz today and it got me to wondering if I can create a custom command when my system goes to idle, instead of launching the screen saver. I want to start the Compiz Rain effect on system idle. is this possible?