General :: Can't Launch Scripts In Terminal (ubuntu)?
Oct 17, 2009
I am a total linux n00b and am having trouble with scripts. I am taking a basic linux class and I have to write a script with input and output, and it must have branching (a loop or if statement). In any case, I have decided to write a script (hopefully) that will ask the user what the base and height of their triangle is, and then my script will calculate the area for the user.
Writing the actual script will be fun and challenging for me, but to test out launching scripts I have been researching them online and found this website: http://tldp.org/HOWTO/Bash-Prog-Intr...O-2.html#ss2.1 In any case, I am using Ubuntu right now and went to: Applications -> Accessories -> Text Editor. Then wrote:
#!/bin/bash
echo Hello World
I then clicked file -> save as... and the name of my file is "hello.sh". Under the "save in folder" option I chose the folder "Documents". So then I click Applications -> Accessories -> Terminal and type "./hello.sh" and the next line says "bash: ./hello.sh: No such file or directory" How do I launch a script in terminal!
View 5 Replies
ADVERTISEMENT
Apr 22, 2010
I have a favorite REXX program called fv2. When I was a Windows user I had an icon for fv2 on the Quick Launch bar. Click that icon, and the program ran. Now, as a Linux (Ubuntu) user it is necessary to go through several steps to run fv2.
1) Launch a terminal by clicking on the terminal icon at the top of the screen. What's that area called? The GNOME panel?
2) Enter: ~/Desktop/RexxScripts
3) Enter: regina fv2
I run fv2 several times per day and would really like to have the convenience of a clickable icon.
View 3 Replies
View Related
Nov 3, 2010
I cannot launch gnome-terminal from the Applications -> System Tools -> Terminal menu. However a gnome-terminal process is created (I can see it in a terminal that I happened to have open) but it doesn't seem to actually run (I have several of these terminals in the ps list now but they haven't actually run as terminals and it's been at least 2 hrs). At first I thought they weren't running at all until I checked (it looked like the Starting Terminal message at the bottom of the gnome GUI ran abnormally long and then terminated so I thought at first that they weren't running at all).
Also it looks like my gnome session is clobbering the CPU: running at or over 80% of cpu time at times (it does change but mostly it is high). All I'm doing is minor web work + updating a file in Open Office - when I noticed this I got out of Open Office and that had no effect. So it looks like application software is running (this was launched from a terminal) but running from the menu seems to result in processes with low priority (that doesn't seem right though). This just started today and my system has been mostly running correctly for a year or so (last year I got an Acer 5532 on sale, wiped it and installed Fedora 11).
View 1 Replies
View Related
Feb 7, 2010
I am unable to launch gcc through command terminal.I am using red hat platform.
View 4 Replies
View Related
Jun 14, 2011
I want to launch the screen program by default and automatically every time that I open the bash terminal. How can I set this in terminal? I'm using lxterminal - terminal for lxde desktop environment.
View 2 Replies
View Related
Dec 16, 2010
Is there a way to possibly launch a terminal by using a keyboard shortcut?
View 4 Replies
View Related
Sep 25, 2009
Is there a way to find out the currently installed packages and the corresponding command line to launch the package from a terminal. For example, I know that I have openoffice installed but I do not know how to find the command line to launch it.
View 5 Replies
View Related
Oct 8, 2010
I have a copy of Shake (I was given it by my friend) It is the Linux version and I have followed instructions to install and after a few problems and errors I think I have everything in place. However when I type the advised command from Terminal: 'csh Shake' All that happens is the terminal moves to a new line with no text. I can still type and press enter but nothing happens, just goes to a new blank line. Thing is it doesn't give any errors. I have chmod'd the correct folders, have installed all required included files and library's. Also, im sorry for posting this here, I could not post in the Multimedia section
View 1 Replies
View Related
Feb 13, 2010
I need to creat launcher that launches Terminal into a specific Profile..
I found a website that says that this code will work
Code:
gnome-terminal --window-with-profile=<Profile_name>
But, I also need to launch to specific Directory also. So, My code looks like this
Code:
gnome-terminal --window-with-profile=Scripts --working-directory /home/mike2/Desktop/Scripts
But it doesnt work.. I have a feeling I'm doing something wrong, though.
View 9 Replies
View Related
Oct 12, 2010
I recently installed Ubuntu and dolphin file manager but when I press Shift+F4 for Terminal I get this error: Could not launch the terminal client: KDEInit could not launch 'konsole'.: Could not find 'konsole' executable. Now, I know I can open it with Ctrl+Alt+T but with shift+f4 from dolphin, terminal starts with current folder in command line.
View 2 Replies
View Related
Aug 8, 2011
I installed Open SSH and don't know how to launch it from the terminal.
View 7 Replies
View Related
Jun 25, 2010
I am trying to launch gnome-terminal on a specific workspace (4). I have tried the following :
gnome-terminal -t mytitle; wmctrl -r mytitle -t 3
but this just causes the terminal not to launch.
View 9 Replies
View Related
Dec 30, 2010
Does anyone know of some things I can check to find the root cause behind this error? I pulled startupmanager via apt-get, and I get an error when I try to launch the startupmanager executable from a terminal in Gnome.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-24-generic
Found initrd image: /boot/initrd.img-2.6.35-24-generic
[code]....
View 2 Replies
View Related
Nov 30, 2009
I generally use gnome but with latest hulla-boo about graphics tempted me to check kde. where i found following problem to configure:
1) no keyboard shortcut to launch a terminal
2) my laptops dedicated volume control is not working
3) gnome package manager is not there, though i can use yum
View 6 Replies
View Related
Jun 7, 2011
so i want to have an embedded terminal on my desktop. alltray --borderless --skip-taskbar --sticky Terminal --hide-menubar --hide-borders --geometry 60x600+10-10 seems to work, however, its just on one desktop and it's appearing in the panel, despite my
View 4 Replies
View Related
Feb 23, 2010
openSUSE 11.2, just installed. When I start the "Root Terminal", I get this error message: Could not launch 'Root Terminal' Failed to execute child process "gksu" (No such file or directory) This error message doesn't mean enough to me to know what I need to do.
View 9 Replies
View Related
Dec 31, 2009
I'm trying to launch a root terminal with a profile preloaded, but I'm not yet used to the way gnome handles its syntax, so the default link to root terminal has me confused:
Code:
gksu -D Terminal -- env -u ORBIT_SOCKETDIR /usr/bin/x-terminal-emulator
Apparently, the method using gnome-terminal is to add a trailing
Code:
--window-with-profile=PROFILENAME
but this did not work, probably because in this case I'm not calling directly on gnome's terminal.
View 4 Replies
View Related
Jan 24, 2011
I work on a number of servers and do so many repetitive tasks that it's easier for me to make launchers on my desktop for these tasks. It's also necessary for opening windows in my secondary screen. I like to view the error logs as I work, so I have a screen session on my servers that 'tail -f /the/error.log' for easy viewing. I set up a launcher on my desktop that launches the following command:
Code: gnome-terminal --display :0.1 --geometry=156x33 -x ssh -t my-server 'screen -r' The command works perfectly. The window is created on the correct screen, with the correct size and information. The problem is gnome-terminal will exit/crash with no errors after a little while. This happens sometimes when I get up from my computer as well as while I am working on it.
I am saying that there are no errors because I have opened a terminal and ran the command in that terminal. When the new gnome-terminal closes, there are no errors or abnormal output on the generating gnome-terminal.
View 1 Replies
View Related
Apr 21, 2011
I was trying to make uDev let me mount and unmount devices from my Xfce desktop... I installed udiskie, modified fstab, and finally got it working, but somewhere in the process, my terminal emulator just... died. Now, when I try to launch it, I get this error message: "" (I think I can translate that as Failed to execute child... process? not quite sure) "getpt failed: Not such file or directory." So far, I've been looking but couldn't find anything similar anywhere. also: this happens with all the terminal emulators I've tried (Terminal, gnome-terminal, sonata), except for xterm... which does just nothing: doesn't launch or send error messages.
View 2 Replies
View Related
Feb 24, 2011
Fresh guest install of current as of changelog dated 16-Feb-2011, in to VirtualBox 4.0.4 (13.1 x86_64 host).
1. About 6 of the icons normally residing in the top half of Settings Manager are missing (names are their and functions work). Selecting 'Appearance -> Icons' and re-selecting the one choice available restores one, the rest remain MIA.
2. Default xfce Terminal launch fails with error <????> Re-selecting the default 'Preferred Applications -> Utilities -> Terminal -> Xfce Terminal' has no effect. 'Properties' shows the usual 'exo-open --launch TerminalEmulator'.
Setting 'Preferred Applications' to 'X Terminal' launches an xterm successfully as expected.
View 4 Replies
View Related
Mar 21, 2011
when I want to launch "asoundconf-gtk" from terminal, I get the following output:
[Code]...
View 3 Replies
View Related
Jan 19, 2010
I am having issues with Update Manager after cancelling an Update.The Update Manager shows a number of required updates, but when I click on Install Updates... Nothing happensWhen I launch sudo dpkg --configure -a in a terminal I receive the following message:dpkg: status database area is locked by another process.On another forum i saw something regarding a gksu.lock file that needed to be deleted... but I can't find any such file....If I try to launch update manager via a terminal: sudo update-manager I get the following error:
requiredDownload could not be calculated: E:Unable to parse package file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_karmic-updates_main_binary-amd64_Packages (2), E:Unable to parse package file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_karmic-updates_main_binary-amd64_Packages (1), E:Unable to parse package file /var/lib/apt/lists
[Code]....
View 9 Replies
View Related
Mar 5, 2011
Is there a terminal emulator which works well in an Ubuntu desktop and provides the following features which Mac OS X's Terminal application has? Re-wrapping text when the window is resized.A Clear command which clears scrollback (as the shell clear does not) and does not clear the cursor's line (typically containing a prompt).
View 2 Replies
View Related
May 10, 2010
Is it possible to make terminal (xfce4-terminal) transparent from bash script?
Maybe by enabling compostion?
View 1 Replies
View Related
May 26, 2010
How can I make terminal applications immune to terminal emulator close, but still able to use all virtual terminal features?
egin{UPDATE}I want my terminal application remain alive and accessible if I accidentally close terminal emulator. This functionality is provided by screen and tmux, but they have issues with colors and they flush screen.Yes,I can run the shell inside screen, but I do not want the shell remain alive unless there is some other program running.
end{UPDATE}I see this must be something like screen, but without VT100 terminal emulation, something which will just apply whatever application does with "terminal proxy"'s terminal (like outputting something to stdout/stderr or using stty to set terminal options) to the terminal this proxy runs in.
// I know about screen and altscreen on, but it makes either this (screen with TERM=screen):
or this (screen with TERM=rxvt-unicode):
while I want this (rxvt-unicode without screen):
I have figured out that everything looks fine if I compile rxvt-unicode with USE=-xterm-color (in fact vim looks like on the second picture even without screen if I add this USE flag) and set TERM=screen-256color, but I do not like this workaround because it actually changes colors and I can't be sure that it will always change them only this way:
View 4 Replies
View Related
Jun 19, 2010
Right now when I start a program from a terminal I can't use that terminal instance again until I close the program.
I am a new user of linux, and I want to know if there is a way to execute a program/application from a terminal without blocking the terminal until the program ends.
View 3 Replies
View Related
Jan 12, 2011
I'm trying to install Java IDE for developers through VMware using CentOS 5.5, dunno how to launch and to source it
View 1 Replies
View Related
Oct 31, 2010
I downloaded the tar ball of seamonkey,
copy it to Document folder, unzip it and get a folder named seamonkey.
Everytime to launch it, i open the terminal windows, cd to that directory and type ./seamonkey.
My question is, how to launch it from any where? Just type ./seamonkey and it will run?
View 14 Replies
View Related
Apr 22, 2010
So i'm really loving the whole gnome-do/docky thing. My question is that on other docks, you can hold down a modifier key to launch a new instance rather then switching to an already opened instance of an app. So lets say I have chrome on the win7 dock
first click launches chrome
other clicks will focus the opened window
shift click will open a new instance of chrome
ctrl-shift-click will launch a new instance as admin
Is there anything similar in docky?
View 2 Replies
View Related
Feb 22, 2010
I typed in sudo apt-get install ubuntu-desktop and it tells me it's already installed. Good. So it should work. I type sudo/etc/init.d/gdm start and the screen goes blank for 8 seconds three times in a row and then back to the command line. I have also tried gdm start without the path before and it says GDM already running. Aborting! I have 8.10 and it's a valid disk (no errors).
View 14 Replies
View Related