Ubuntu :: Making Scipts Executable From Any Directory?
Feb 15, 2010
I have a script called, test.sh, which is located in /home/username/scripts/ I know that I can run it by typing ./test.sh from the /home/username/scripts/ directory... but what do I do to enable the script to be run from anywhere *WITHOUT* having to type the whole directory path?
View 3 Replies
ADVERTISEMENT
Sep 11, 2010
i installed "littler" from Synaptic. it's a front end for R, for those curious. it's not in my start menu. i searched for the app and don't know where it is. assuming i can find it, how do i set things up so that i can run it from a listing in the start menu? sorry to be so basic, but i mean from locating this app to getting it to start to making it available in the start menu, how would i do this
View 1 Replies
View Related
Oct 14, 2010
I just upgraded to 10.10 (everything was working fine in 10.04). I have .jar files that in 10.04 would execute with OpenJDK. Now I get an error message, telling me that it is blocked:
"The file '[path]' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit."
I try to set it as executable like it was before, and it's a no go. My checkmark takes then quickly disappears before my eyes.
View 5 Replies
View Related
May 30, 2011
I downloaded Java from the Java website, and went into the root to try and make it an executable file, and it says "chmod: cannot access `home/Non-Admin/Downloads/jre-6u25-linux-i586-rpm.bin': No such file or directory". Is there some sort of program I can install that will automatically turn the rpm.bin/.bin into an executable file?
View 8 Replies
View Related
Nov 2, 2010
- Newly installed Fedora 14- Firefox 3.6.12- All latest Fedora updates installed- Denial occured after the installation of jre1.6.0_22 from here - Linux (self-extracting file) and creating symbolic links as follows;
Code:
[root@Freedom opt]# ln -s /opt/jre1.6.0_22/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
Code:
[code]....
View 3 Replies
View Related
Jan 19, 2011
I have noticed that in the /etc directory there are some subdirectories of /etc/cron.daily and /etc/cron.hourly. Also I have determined that there is a service included as part of the Fedora OS 'crond' which I have started with the use of 'service crond start'. My question is this. If I drop an executable file into the '/etc/cron.daily' directory will it just run? If not what configuration files should I go about editing to run my executable daily? There seems to be a pretty large network of cron related files. I'm trying to make sense out of all of it.
View 9 Replies
View Related
Jun 27, 2011
Create the following directories: parent/child
Navigate to child and create a file named child (this is an executable file in my case, not sure if that makes a difference). I need to create two "link to executable" links in the parent.
I had assumed that this would work:
ln -sf ./child ../child1
ln -sf ./child ../child2
But that creates a "link to folder" (./child) in the parent directory. If I change it to:
ln -sf -t.. ./child child1
ln -sf -t.. ./child child2
I get an error, "ln: '../child': cannot overwrite directory".
If I do it from the parent directory (which I cannot do, this is part of a Makefile recipe):
ln -sf ./child/child ./child1
ln -sf ./child/child ./child2
It works. Note that I cannot alter the names of any directories or files. How do I create the links when the current directory is the child?
View 1 Replies
View Related
Oct 11, 2010
I am setting up a LAMP server for my home LAN. I want to move the data out of / into a new disk partition for ease of backup and especially away from any clean installation I might do. What
I have in mind:
Shut down MySQL and Apache
Make a new partition, format as ext4
Mount new partition on /mnt
Copy all of /srv to /mnt
Copy MySQL stuff from /var/lib/mysql to /mnt/mysql
Update /etc/my.conf to point to /srv/mysql
Unmount /mnt
Update /etc/fstab to mount new partition on /srv
mount /srv
Start mysql, apache
Will a fresh install or upgrade keep its fingers out of /srv, in the same way as /home? Or will those parts of apache installed in /srv/www be updated?
View 4 Replies
View Related
Mar 31, 2011
I have been playing around with the tar command and I know this is how to use it.
Code:
tar -cf [filename] [directory]
But what I want to make an archive from the current directory I thought just to not enter a directory but that doesn't work. I get an error about creating a empty archive so how to do I make it so how do I tell it to do the current directory?
View 5 Replies
View Related
Jun 13, 2011
I just joined LinuxQuestions and find no Forum specific to command-line syntax questions, so I'll post it here. Here is the question. I can use:
cp -vr --parents /a/b/c/this /x/y
to create a directory /x/y/a/b/c/this containing this and everything under this.
But how could I create a directory x/y/b/c/this (ie omitting a)? I could MOVE to /a/ and then use
cp -vr --parents b/c/this /x/y
but I really don't want to do the MOVE (and can think of circumstances where I might not be able to).
I'm really looking for something exactly similar to the
tar -C DIRECTORY
switch that allows one to make a virtual move to the directory DIRECTORY before commencing the tar operation.
View 5 Replies
View Related
May 5, 2010
The *.dbf files (DBase III Plus files) have a header (metadata) and follow with n fixed records. I'd like to make a directory entry (like a symbolic link) that point to the fixed record area into a .dbf file. Is it possible in linux? The request is motivated by access a .dbf file from a Firebird SQL Database using CREATE TABLE EXTERNAL FILE '/tmp/mydbf.dbf' ( ... ); but this command only works on fixed records.
View 1 Replies
View Related
Sep 3, 2010
I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?
fatal: bad magic number in executable `prime' (not an executable?)
View 1 Replies
View Related
May 10, 2011
I am trying - to no avail - to take an old script I found in the forum help-needed-in-grep-for-tar-gz-658730/ The code:
Code:
#!/bin/bash
if zgrep $1 $2 > /dev/null 2>&1
[code]....
View 3 Replies
View Related
Jun 20, 2010
I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?
View 3 Replies
View Related
Aug 21, 2011
I hope this post stands in the right section.I have a commandline i need to enter in terminal when i want to run a program. i tought lets put that piece of command in an .sh file and just click the file to run the program (then i dont need to open terminal first an give in the command) however the .sh file does not open the program. so i propably need to make a executable (application/x-executable).
View 3 Replies
View Related
Mar 12, 2010
i want to compile Graphviz but i got stuck on a nice problem which i cant resolve. Here it is. I downloaded the 2.26.2 version and made the usual configure etc.. But i received such an error during compile time:
[Code]...
I am on Slackware 13 64. I think i have all the libraries needed as well. I tried and the SlackBuild but same problem. Something weird is happening for sure.I tried and other versions but no luck. Its always that problem.
View 6 Replies
View Related
Feb 24, 2010
I do alot pf C++, I like that I can just type "g++ myprogram.cpp" and it will comile into an executable, but when I try to run it in the terminal by double clicking or right clicking and choosing open nothing happens. The program works perfectly if I do
Code:
./myprogram.out
but when I double click it, and choose "run in termminal", nothinh happens. How can I get it configured to open the terminal and run when run it from GUI?
View 9 Replies
View Related
Nov 22, 2010
So I can not get executable.Last week I wanted to use Intel Fortran compiler and had problems with other program,the removed libf2c.so.(put libf2c.a)What should I do know?How to see where the problem is?
View 2 Replies
View Related
Jan 11, 2010
No error messages, just nothing happens. I tried with the Fonrpage Express, FS98, A video converter, Visual Foxpro, etc.
Some other work, although with a rather poor performance.
View 1 Replies
View Related
Apr 13, 2010
I am fairly new to Linux systems but I have a code that I just compiled and it produced an executable file that I need to run but I have no idea how to run that file. Is there a certain command to type to do it?
View 3 Replies
View Related
Jun 9, 2010
I have lightly used previous versions of Ubuntu, and this "feature" was not present. But now, with 10.04. I cant install the software I want to install. Namely Steam under Wine. I know I could do the play on linux deal, but I would really like to disable this "feature" entirely. Can I do that, and how?
View 4 Replies
View Related
Jun 23, 2010
I have just installed Ubuntu 10.4 and having problems reinstalling an app I used to use routinely on 9.10 using wine 1.2 - Is there way round this? I tried installing from USB hard drive and CD and just get this: I don't know whether it is a wine or OS issue.The file '/media/Data disc (23 Jun 10)/macromedia8/Fireworks8-en.exe' is not marked as executable.If this was downloaded or copied form an untrusted source, it may be dangerous to run. For more details,read about the executable bit
View 2 Replies
View Related
Oct 22, 2010
I can't change the permissions to script on my USB device, if the script is executable and I changed the permissions en my /home/user for example it works but when I copy the file again to my memory it is -x.
I try:
chmod 777 /media/usb/script
chmod +x /media/usb/script
As root and with my user but it doesn't work.
View 2 Replies
View Related
Sep 22, 2010
I want to run minecraft, but when clicking Minecraft.jar it wont cuz of Ubuntu's policy crap. Is there a way to turn this off, because this is worse than Windows UAC. If not, using Java SDK 6, how can I run it? I'm assuming it's a terminal command since wine lets you get around the restrictions with a sudo wine command.
View 2 Replies
View Related
Feb 10, 2010
Because my internet doesn't work on my laptop, I installed OpenOffice through the debian package manager. Everything worked to perfection, except that I couldn't find the executable file!
I did a search of the computer for files with "openoffice" in their name, but none would open as an executable. It's not in any menu either.
View 9 Replies
View Related
Jul 20, 2010
I have a copy of "Riven" for Windows 95 still laying around, and I decided to see if I could run it in WINE just for the hell of it. I got the following error when I tried to run the "Setup.exe" file (or any other executable on the CD-ROM, for that matter) using WINE:
Quote:
The file '/media/Riven1/Setup.exe' is not marked as executable. If this was downloaded or copied form an untrusted source, it may be dangerous to run. For more details, read about the executable bit.I read about the executable bit, and while I understand the security reasons for it being there, I would still like to know if there's a way to circumvent it, or even a workaround. I tried chmod on the exe file, but since it's on read only media, that didn't work. I'm running Lucid.
View 9 Replies
View Related
Aug 2, 2010
I'm trying to open an executable called qview (a GUI program) from Nautilus. The overall goal is to open a certain file type with it. If I run from terminal, there's no problem, but when I click on it from Nautilus, it doesn't seem to do anything. I changed the ownership to me, to make sure the permissions were set properly.
View 3 Replies
View Related
Nov 7, 2010
Even as root when running Nautlis, it won't let me mark as executable, when the file in question is in a partition that is not / - that is, on my win7 partition. I check the box, and it unchecks immedietly. It has no problem doing so when it's on /. What do I do to make it happen?
View 9 Replies
View Related
Dec 16, 2010
I can find all kinds of evince files but no executable or "link to executable." I can find all the other ubuntu installs, like gedit, gimp, etc. in my /usr/bin folder. But not evince. Even though Document Viewer runs fine.I need this because I installed Adobe reader (ugh) and it took over as the default .pdf reader. The simple ways of trying to return default application to evince did not work, so I searched here and found a solution (y'all rule) -- edited the mimeapps.list file. Worked great. .pdf files now open in Document Viewer by default again.
Except, Thunderbird is still using Adobe reader as default for pdf files, and to change that I have to browse to the program I want to use instead. (Evince does not show up in the "open with" options I get by right clicking.) Can't browse to evince or enter path because I don't know where it is and can't find it anywhere..
View 3 Replies
View Related
Jan 23, 2011
I use wine to execute my games. Now it says all the exes are unexecutable.I'm not very use to ubuntu
View 9 Replies
View Related