Ubuntu :: Builtin Source . (dot) Command / Cannot Be Run From A Launcher?
Nov 23, 2010
Whenever I compile Dreamcast games, I must source a certain .sh file before running make. I like to use the Netbeans IDE, so I must run these commands in a terminal
Code:
$ source environ.sh
$ "/usr/local/netbeans-6.9.1/bin/netbeans"
However, this forces me to run netbeans from the terminal when I'd like to run netbeans from a launcher or alt + f2. This method forces me to keep the terminal open when I run netbeans. The problem is, source is a shell builtin command and cannot be run from a launcher (as far as I know).
View 5 Replies
ADVERTISEMENT
Apr 14, 2011
When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.
View 4 Replies
View Related
Jan 13, 2010
I made gnome launchers (shortcut or what they are called). I selected them : opened by terminal (with some simple commands). The problem is that I have 3 command lines and don't want to use 3 icons (launchers) to execute them. If I edit my launcer on gedit, I get this kind of lines :
Code:
[Desktop Entry]
Encoding=UTF-8
[code]....
View 5 Replies
View Related
Sep 20, 2010
I had a problem with viewing webcams on Skype, and after searching I found out that running Skype through the terminal with this command "export XLIB_SKIP_ARGB_VISUALS=1 && skype" makes the webcams work perfectly. What I wanted to do was to integrate this command into the main menu so that I won't have to type it into the terminal (and thus keep the terminal open all the session) every time I want to use Skype. So I edited the command of the Skype button in the Applications menu and put that line instead of "skype", but it gives me "Failed to execute child process "export" (No such file or directory)". I tried editing .bashrc and added the following line:
alias skp='export XLIB_SKIP_ARGB_VISUALS=1 && skype'
Now the command 'skp' works through the terminal, but it gives me the same error message when I put it into the command line of the applications menu.
View 6 Replies
View Related
Jul 13, 2010
I'd like to connect to a site via the sshfs command from a launcher on the task bar. The problem is, instead of prompting for the password for my private key (key based authentication)the launcher freezes the computer.The command runs fine from the terminal... but is there a way to add a password prompt to a launcher?
View 2 Replies
View Related
Jul 27, 2010
I've got a script, "setup", that sets some environment variables. I have another script, "launch", that launches a program for me. A launcher on my menu panel is set to run command "launch".Here's what the text of "launch" looks like:
source setup
export FOO=$VAR_FROM_SETUP
gui-program
If I run this from the launcher, the program sees an empty string for FOO.If I run it from a terminal, the program sees a correct value for FOO.Why the discrepancy?there a workaround that will allow a launcher to set variables via "setup"before running my program?
View 1 Replies
View Related
Jan 15, 2010
I'm having Ubuntu Kramic Koala and i want to create a custom application launcher on the panel so when it is clicked it should open a terminal window and run the following command and then show the output for 5 secs and then closes the terminal... how can i do this?
Code:
cat /proc/sys/vm/laptop_mode && sleep 5
the above command is what i want to be executed at time of running the custom application launcher. if i paste the command in a terminal, it will show the output for 5 secs and then terminates... that's almost what i want. what i exactly want is that, i want it to work like when i click on the shortcut launcher, it should open a terminal and then exectues that command, show the output for 5 sec, pause, and then exits the teriminal.
View 8 Replies
View Related
Jul 15, 2010
I tried
Code:
tomboy --title-note "To Do"
but it returns
Quote:
[INFO 14:55:56.264] Initializing Mono.Addins
and opens in notification area.
but the note does not open.
View 4 Replies
View Related
Apr 15, 2010
I recently downloaded the program cronometer (calorie counter) and I love it. It is run using a script I wrote (its a java program) that is in the directory of the program files (so the program does not appear under any of the application menus). The script functions only when it is in the destination folder. I did make the script executable. A symbolic link to the file also works but again, only when in the same folder. When I try to make a launcher on the desktop or in CairoDock, citing the script path as the command, nothing happens. I have tried it with both "bash" and "sh" prefixes on the command without success. Any ideas on how I could get this launcher to work?
View 1 Replies
View Related
Apr 29, 2011
For some reason the general launcher button (+ in circle) in the unity menu has disappeared. I do not know how to restore it. Which means I have great problems to start al apps that are not standard in the menu.
View 1 Replies
View Related
May 6, 2011
How do you delete ufw rules which you didn't make?
I want to block the FTP ports (20 & 21) but even if I put in DENY rules, it appears that these rules are letting traffic through
Code:
9 400 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 21,20 state RELATED,ESTABLISHED
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 21,20 state RELATED,ESTABLISHED
How do I delete these rules? I've tried.
Code:
sudo ufw delete allow 20
sudo ufw delete proto tcp from any to any 20
but I get "Could not delete non-existent rule".
Since I didn't make those rules I have no idea what OpenBSD's PF syntax (what ufw uses) is for them.
View 2 Replies
View Related
Nov 25, 2010
I am trying to record audio via line-in with audacity (iMac 7.1, ubuntu lucid, 2.6.31-11-rt, ALSA; I uninstalled pulseaudio) and I get input simultaneously from line-in and the builtin microphone. There does not seem to be any option to turn it off, and disabling mic in Alsamixer does not work. I don't think reinstalling pulse will solve this; other people on the net seem to have the same problem with audacity, but I did not find a solution.
View 6 Replies
View Related
Jul 12, 2010
There is an issue with built-in microphone on the KAV60 laptop - it produces no signal to apps. If I plug in external mike - it works fine.
lspci shows:
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
Adding various options "model=..." for snd-hda-intel ALC272 does not help (ALC272 is returned by "aplay -l"). What else could I try?
View 1 Replies
View Related
Jun 3, 2011
use dell D531 builtin wifi card
View 2 Replies
View Related
Jun 26, 2010
So the title pretty much sums it up. She is running a pangolin performance which came with lucid while I am running a pangolin performance which came with karmic and i upgraded to lucid (bought before her). For some reason hulu always worked for me, so I was trying to fix it on her computer too, but somehow one of the commands I told her to run made her computer not be able to recognize that her built in webcam exists anymore.
The reason that this is so hard is that I don't remember which commands I told her to run, but one of them was the instructions from post #5 on this page: [URL]. But I don't know how messing with flash stuff could have possibly screwed up her computer detecting her webcam. The drivers are definitely installed for webcam, however when she 'locate uvcvideo' it tells her that permission is denied, so the problem might be that her computer isn't giving her the permission to access the webcam drivers to use the webcam, just an idea.
View 1 Replies
View Related
May 2, 2011
I'm trying to remember how to use the output of a nested Bash builtin call. So `which prog` gives me the path to the program, i'm interested in. Then I would like to get the directory path leading to that program and plug it into 'cd', so i end up in the directory containing the program.
View 5 Replies
View Related
Aug 8, 2009
I have installed SLES 10 SP2 but my network card is undetected. Model: Intel(R) 82567V-2 Gigabit Network I have the drivers for linux on my installation cd as:
- e1000-8.0.2.1.tar.gz
- e1000e-0.3.3.3.tar.gz
- igb-1.2.24.tar.gz
How do i install these drivers on linux?
View 4 Replies
View Related
Mar 3, 2010
9.10 Bash shell.
Code:
Linux $ sudo source ./vars
sudo: source: command not found
Linux $ sudo . ./vars
sudo: .: command not found
[Code]....
View 8 Replies
View Related
Feb 18, 2010
where i get the tee command source code?.
View 2 Replies
View Related
Aug 11, 2010
What is different? When I execute the "man source", and "man ." are same. Is it same? or not? If it is different, what is it?
View 2 Replies
View Related
Sep 10, 2009
I just need to develop a new command for deleting a file in LINUX Character mode , same like as windows instead of deleting the file , it should move to a folder name trash .I just started reading the source code of coreutil , need to write a code for the new command "delete".Am a MS student with BITS , want to do my dessertation in this , can anyone help me out .
View 6 Replies
View Related
Jan 19, 2010
Where can I find the top command source code... I got it from "http://procps.sourceforge.net/index.html" but it seems for Solaris. where can I get the source code for top commend running on Linux????
View 3 Replies
View Related
Apr 5, 2010
I am trying to run a script to setup environment variables and then run other commands in a make file. But the source or the dot operator (shell is bash) does not seem to take any effect as the subsequent command didn't pick the environment up. Do I have to put every lines of the environment setup in the first script into the makefile instead?
sample setenv.sh
#!/bin/sh
export MYDIR=/somedir
sample makefile:
all: source ./setenv.sh
echo $(MYDIR)
View 5 Replies
View Related
May 20, 2010
My laptop has a dead battery. Even when it's fully charged, if the power cable is pulled out it only lasts for about 4 minutes before it dies. I'm running Ubuntu Lucid Lynx 32-Bit. What I want to do is create some sort of script or program that will immediately set my computer to go into hibernation once it detects that the power cable has gone dead. I'm willing to look into all ways of doing this. I can program in C, but I'm not familiar with the API used to manage Power Management in Linux.
[Code]...
View 5 Replies
View Related
Dec 8, 2009
Where is the source implementation of the free command?
View 2 Replies
View Related
Jun 14, 2010
I have written a set of aliases in a file.When i tried to dot it( "Prompt> . filename" ). It said " Permission denied. "But, when I sourced it ("Prompt> source filename"). It worked perfectly.Linux manual has one entry for both the commands. Then what am I missing ?
View 5 Replies
View Related
Feb 18, 2010
I just need to edit the "rm " command such that it should move all the files / dir to a particular folder instead of deleting. How to edit the source code for rm, such that it should preserve all the deleted files / dir.
View 14 Replies
View Related
Nov 21, 2008
Does anyone know where is the source code for file command?
View 2 Replies
View Related
Jan 23, 2009
I just want to see how the command line such as : "cat", "split", "ls"...ect source code ? Are they written in C or other language ? I don't know where to search those?
View 6 Replies
View Related
Apr 28, 2011
How do you access preferences for changing size of the launcher bar or icon size, etc? I looked through system settings and could not find it.
View 4 Replies
View Related